/*
**
** The C code is generated by ATS/Anairiats
** The compilation time is: 2020-11-6:  1h:10m
**
*/

/* include some .h files */
#ifndef _ATS_HEADER_NONE
#include "ats_config.h"
#include "ats_basics.h"
#include "ats_types.h"
#include "ats_exception.h"
#include "ats_memory.h"
#endif /* _ATS_HEADER_NONE */

/* include some .cats files */
#ifndef _ATS_PRELUDE_NONE
#include "prelude/CATS/basics.cats"
#include "prelude/CATS/bool.cats"
#include "prelude/CATS/char.cats"
#include "prelude/CATS/byte.cats"
#include "prelude/CATS/float.cats"
#include "prelude/CATS/integer.cats"
#include "prelude/CATS/integer_ptr.cats"
#include "prelude/CATS/integer_fixed.cats"
#include "prelude/CATS/sizetype.cats"
#include "prelude/CATS/pointer.cats"
#include "prelude/CATS/reference.cats"
#include "prelude/CATS/string.cats"
#include "prelude/CATS/lazy.cats"
#include "prelude/CATS/lazy_vt.cats"
#include "prelude/CATS/printf.cats"
#include "prelude/CATS/list.cats"
#include "prelude/CATS/option.cats"
#include "prelude/CATS/array.cats"
#include "prelude/CATS/matrix.cats"
#endif /* _ATS_PRELUDE_NONE */
/* prologues from statically loaded files */

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"
/* external codes at top */
/* type definitions */
typedef
struct {
ats_ptr_type atslab_3 ;
ats_ptr_type atslab_4 ;
} anairiats_rec_0 ;

typedef
struct {
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_rec_1 ;

typedef struct {
ats_ptr_type atslab_0 ;
} anairiats_sum_2 ;

typedef struct {
int tag ;
ats_int_type atslab_0 ;
ats_ptr_type atslab_1 ;
ats_ptr_type atslab_2 ;
} anairiats_sum_3 ;

typedef struct {
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_4 ;

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_5 ;

typedef
struct {
ats_ptr_type atslab_p3at_loc ;
ats_ptr_type atslab_p3at_node ;
ats_ptr_type atslab_p3at_type ;
ats_ptr_type atslab_p3at_dvaropt ;
ats_ptr_type atslab_p3at_type_left ;
} anairiats_rec_6 ;

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
} anairiats_sum_7 ;

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
ats_int_type atslab_2 ;
ats_ptr_type atslab_3 ;
} anairiats_sum_8 ;

typedef struct {
int tag ;
ats_int_type atslab_0 ;
ats_int_type atslab_1 ;
ats_ptr_type atslab_2 ;
ats_ptr_type atslab_3 ;
} anairiats_sum_9 ;

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
ats_ptr_type atslab_2 ;
} anairiats_sum_10 ;

typedef
struct {
ats_ptr_type atslab_s2exp_srt ;
ats_ptr_type atslab_s2exp_node ;
} anairiats_rec_11 ;

/* external typedefs */
/* external dynamic constructor declarations */
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_cons_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_nil_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__None_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__Some_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_vt_cons_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_vt_nil_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__None_vt_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__Some_vt_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__WTHS2EXPLSTnil_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__WTHS2EXPLSTcons_none_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__WTHS2EXPLSTcons_invar_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__WTHS2EXPLSTcons_trans_3) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eat_12) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Ewthtype_31) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2VFINnone_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2VFINsome_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2VFINsome_lvar_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2VFINsome_vbox_3) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2VFINdone_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__LABP3AT_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tany_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tvar_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tcon_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tint_3) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tintrep_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tbool_5) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tchar_6) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tfloat_7) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tstring_8) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Ti0nt_9) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tf0loat_10) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tempty_11) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Trec_12) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tlst_13) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Trefas_14) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Texist_15) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tvbox_16) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Tann_17) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__P3Terrpat_18) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d2var_fin_none_some_9) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d2var_fin_some_some_10) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__C3TKsome_fin_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__C3TKsome_lvar_5) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__C3TKsome_vbox_6) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSset_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSlam_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSnil_2) ;

/* external dynamic constant declarations */
ATSextern_fun(ats_void_type, atspre_assert_errmsg) (ats_bool_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_vbox_make_view_ptr) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_prerr_newline) () ;
ATSextern_fun(ats_ptr_type, atspre_string_append) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, atspre_lte_int_int) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_gt_int_int) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_gte_int_int) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_eq_int_int) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_isucc) (ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_iadd) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_isub) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_idiv) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_ilt) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_igt) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_igte) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_size1_of_int1) (ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_add_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_sub_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_mul2_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_bool_type, atspre_lt_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_bool_type, atspre_gt_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_neq_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_ptr_alloc_tsz) (ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_ptr_zero_tsz) (ats_ref_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_ref_make_elt_tsz) (ats_ref_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_prerr_string) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, ListSubscriptException_make) () ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_alloc_tsz) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_free) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_initialize_funenv_tsz) (ats_ref_type, ats_size_type, ats_ptr_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_initialize_cloenv_tsz) (ats_ref_type, ats_size_type, ats_ref_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_split_tsz) (ats_ptr_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_takeout_tsz) (ats_ptr_type, ats_size_type, ats_size_type) ;
ATSextern_fun(anairiats_rec_0, atspre_array_ptr_takeout2_tsz) (ats_ptr_type, ats_size_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_foreach_funenv_tsz) (ats_ref_type, ats_ptr_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_iforeach_funenv_tsz) (ats_ref_type, ats_ptr_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, atspre_array2_ptr_takeout_tsz) (ats_ptr_type, ats_size_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atslib_qsort) (ats_ref_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_varet_type, _2tmp_2ATS_2dPostiats_2src_2pats_error_2esats__abort_interr) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location) (ats_ptr_type) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_addr) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_make_id_srt) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_var) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_at) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_nonlin) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_is_lin2) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_topize_0) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_error_2esats__prerr_the_staerrlst) () ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_agtz) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_ptr_addr_type) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_ptr_viewat_make) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2var) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_sym) (ats_ptr_type) ;
ATSextern_fun(ats_int_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_linval) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_linval) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_addr) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_addr) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_view) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_view) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_finknd) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_finknd) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_type) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_mastype) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_nil) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_free) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_ismem) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_add) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_listize) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__p3at_get_dvaropt) (ats_ptr_type) ;
ATSextern_fun(ats_int_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__s2exp_tyleq_solve) (ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2var_get_type_some) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(anairiats_rec_1, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2exp_exi_instantiate_all) (ats_ptr_type, ats_ptr_type, ats_ref_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_pop_and_add) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_push) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_svar) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_proplst_vt) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_hypadd_prop) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvaropt) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_top) () ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_llamd2vs) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_lam) (ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__lstbefitm_make) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_add_labp3atlst) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check) (ats_ptr_type, ats_ptr_type) ;

/* external dynamic terminating constant declarations */
#ifdef _ATS_PROOFCHECK
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2SATS_2list_2esats__list_length_is_nonnegative_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2SATS_2list_vt_2esats__list_vt_length_is_nonnegative_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2SATS_2array_2esats__array_v_takeout2_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____copy_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____free_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____assert_prfck () ;
extern
ats_void_type ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____assert_prfck () ;
#endif /* _ATS_PROOFCHECK */

/* assuming abstract types */
int _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__sasp__d2varenv_push_v = 0 ;

/* sum constructor declarations */
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSset_0) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSlam_1) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSnil_2) ;

/* exn constructor declarations */
/* global dynamic (non-functional) constant declarations */
/* internal function declarations */
static
ats_void_type prerr_FILENAME_02047_ () ;
static
ats_ptr_type ref_01088_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type loop_8 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type loop_13 (ats_ptr_type arg0) ;
static
ats_void_type list_vt_free_01499_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type loop_11 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_bool_type loop_19 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type aux_21 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_void_type auxlst_22 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_void_type auxset_23 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_void_type auxsetlst_24 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_void_type loop_29 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type list_app_funenv_01300_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type list_app_fun_01301_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type loop_31 (ats_ptr_type arg0) ;
static
ats_void_type prerr_error3_loc_02053_ (ats_ptr_type arg0) ;
static
ats_void_type auxerr1_33 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) ;
static
ats_void_type auxerr2_35 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type d2vfin_check_some_32 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type auxerr_37 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type d2vfin_check_none_36 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type loop_40 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type aux_42 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type auxlst_43 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type d2vfin_checked_44 (ats_ptr_type arg0) ;
static
ats_void_type auxvar_46 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type auxpatlst_47 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type prerr_interror_loc_02049_ (ats_ptr_type arg0) ;
static
ats_ptr_type p3at_get_var_50 (ats_ptr_type arg0) ;
static
ats_void_type d2vfin_unchecked_51 (ats_ptr_type arg0) ;
static
ats_void_type aux_invar_52 (ats_int_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type aux_trans_53 (ats_int_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type auxlst_54 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;

/* partial value template declarations */
/* static temporary variable declarations */
ATSstatic (ats_ptr_type, statmp31) ;
ATSstatic (ats_ptr_type, statmp34) ;
ATSstatic (ats_ptr_type, statmp35) ;
ATSstatic (ats_ptr_type, statmp36) ;

/* external value variable declarations */

/* function implementations */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 1616(line=49, offs=18) -- 1649(line=49, offs=51)
*/
ATSstaticdec()
ats_void_type
prerr_FILENAME_02047_ () {
/* local vardec */
// ATSlocal_void (tmp0) ;

__ats_lab_prerr_FILENAME_02047_:
/* tmp0 = */ atspre_prerr_string (ATSstrcst("pats_trans3_env_dvar")) ;
return /* (tmp0) */ ;
} /* end of [prerr_FILENAME_02047_] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 2206(line=86, offs=3) -- 3562(line=135, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp1) ;
ATSlocal (ats_ptr_type, tmp2) ;
ATSlocal (ats_ptr_type, tmp3) ;
ATSlocal (ats_ptr_type, tmp4) ;
ATSlocal (ats_ptr_type, tmp5) ;
ATSlocal (ats_ptr_type, tmp6) ;
ATSlocal (ats_ptr_type, tmp7) ;
// ATSlocal_void (tmp8) ;
ATSlocal (ats_ptr_type, tmp9) ;
// ATSlocal_void (tmp10) ;
ATSlocal (ats_ptr_type, tmp11) ;
ATSlocal (ats_ptr_type, tmp12) ;
// ATSlocal_void (tmp13) ;
ATSlocal (ats_ptr_type, tmp14) ;
// ATSlocal_void (tmp15) ;
ATSlocal (ats_ptr_type, tmp16) ;
// ATSlocal_void (tmp17) ;
ATSlocal (ats_ptr_type, tmp18) ;
// ATSlocal_void (tmp19) ;
ATSlocal (ats_ptr_type, tmp20) ;
// ATSlocal_void (tmp21) ;
ATSlocal (ats_ptr_type, tmp22) ;
ATSlocal (ats_ptr_type, tmp23) ;
// ATSlocal_void (tmp24) ;
ATSlocal (ats_ptr_type, tmp25) ;
ATSlocal (ats_ptr_type, tmp26) ;
// ATSlocal_void (tmp27) ;
ATSlocal (ats_ptr_type, tmp28) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize:
tmp2 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2var_get_type_some (arg0, arg1) ;
tmp3 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_addr (arg1) ;
do {
/* branch: __ats_lab_0 */
__ats_lab_0_0:
if (tmp3 == (ats_sum_ptr_type)0) { goto __ats_lab_1_0 ; }
__ats_lab_0_1:
tmp5 = ats_caselptrlab_mac(anairiats_sum_2, tmp3, atslab_0) ;
tmp4 = tmp5 ;
break ;

/* branch: __ats_lab_1 */
__ats_lab_1_0:
// if (tmp3 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_1_1:
tmp6 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_sym (arg1) ;
tmp7 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_make_id_srt (tmp6, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_addr) ;
/* tmp8 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_svar (tmp7) ;
tmp9 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_var (tmp7) ;
tmp11 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp11, atslab_0, tmp9) ;
/* tmp10 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_addr (arg1, tmp11) ;
tmp4 = tmp9 ;
break ;
} while (0) ;
tmp12 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_ptr_addr_type (tmp4) ;
tmp14 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp14, atslab_0, tmp12) ;
/* tmp13 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp14) ;
tmp16 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp16, atslab_0, tmp12) ;
/* tmp15 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_mastype (arg1, tmp16) ;
/* tmp17 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_linval (arg1, -1) ;
tmp18 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_agtz (tmp4) ;
/* tmp19 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_hypadd_prop (arg0, tmp18) ;
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_ptr_viewat_make (arg1, arg3) ;
tmp22 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp22, atslab_0, tmp20) ;
/* tmp21 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_view (arg1, tmp22) ;
tmp23 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_at (arg2, tmp4) ;
tmp25 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp25, atslab_0, tmp23) ;
/* tmp24 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_mastype (tmp20, tmp25) ;
tmp26 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_at (tmp2, tmp4) ;
tmp28 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp28, atslab_0, tmp26) ;
/* tmp27 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (tmp20, tmp28) ;
tmp1 = tmp20 ;
return (tmp1) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 3625(line=139, offs=3) -- 3689(line=140, offs=45)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize_none (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp29) ;
ATSlocal (ats_ptr_type, tmp30) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize_none:
tmp30 = (ats_sum_ptr_type)0 ;
tmp29 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize (arg0, arg1, arg2, tmp30) ;
return (tmp29) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d2var_mutablize_none] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/reference.dats: 1828(line=57, offs=18) -- 1902(line=59, offs=4)
*/
ATSstaticdec()
ats_ptr_type
ref_01088_ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp32) ;
ATSlocal (ats_ptr_type, tmp33) ;

__ats_lab_ref_01088_ats_ptr_type:
/* ats_ptr_type tmp33 ; */
tmp33 = arg0 ;
tmp32 = atspre_ref_make_elt_tsz ((&tmp33), sizeof(ats_ptr_type)) ;
return (tmp32) ;
} /* end of [ref_01088_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 4273(line=170, offs=22) -- 4366(line=174, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_top () {
/* local vardec */
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
ATSlocal (ats_ptr_type, tmp39) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_top:
tmp38 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp39 = ats_ptrget_mac(ats_ptr_type, tmp38) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_listize (tmp39) ;
return (tmp37) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_top] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 4437(line=177, offs=27) -- 4766(line=188, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_llamd2vs () {
/* local vardec */
ATSlocal (ats_ptr_type, tmp40) ;
ATSlocal (ats_ptr_type, tmp41) ;
ATSlocal (ats_ptr_type, tmp42) ;
ATSlocal (ats_ptr_type, tmp43) ;
ATSlocal (ats_ptr_type, tmp44) ;
ATSlocal (ats_ptr_type, tmp45) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_llamd2vs:
tmp41 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp42 = ats_ptrget_mac(ats_ptr_type, tmp41) ;
do {
/* branch: __ats_lab_2 */
__ats_lab_2_0:
if (((ats_sum_ptr_type)tmp42)->tag != 1) { goto __ats_lab_3_0 ; }
__ats_lab_2_1:
tmp43 = &ats_caselptrlab_mac(anairiats_sum_3, tmp42, atslab_1) ;
tmp44 = ats_ptrget_mac(ats_ptr_type, tmp43) ;
tmp45 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, tmp43) = tmp45 ;
tmp40 = tmp44 ;
break ;

/* branch: __ats_lab_3 */
__ats_lab_3_0:
if (((ats_sum_ptr_type)tmp42)->tag != 0) { goto __ats_lab_4_0 ; }
__ats_lab_3_1:
tmp40 = (ats_sum_ptr_type)0 ;
break ;

/* branch: __ats_lab_4 */
__ats_lab_4_0:
// if (((ats_sum_ptr_type)tmp42)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_4_1:
tmp40 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp40) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_llamd2vs] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 4861(line=194, offs=3) -- 5095(line=205, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp46) ;
ATSlocal (ats_ptr_type, tmp47) ;
ATSlocal (ats_ptr_type, tmp48) ;
ATSlocal (ats_ptr_type, tmp49) ;
ATSlocal (ats_ptr_type, tmp50) ;
ATSlocal (ats_ptr_type, tmp51) ;
ATSlocal (ats_ptr_type, tmp52) ;
ATSlocal (ats_ptr_type, tmp53) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar:
tmp47 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp49 = ats_ptrget_mac(ats_ptr_type, tmp47) ;
tmp48 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_add (tmp49, arg0) ;
ats_ptrget_mac(ats_ptr_type, tmp47) = tmp48 ;
tmp50 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_view (arg0) ;
do {
/* branch: __ats_lab_5 */
__ats_lab_5_0:
if (tmp50 == (ats_sum_ptr_type)0) { goto __ats_lab_6_0 ; }
__ats_lab_5_1:
tmp51 = ats_caselptrlab_mac(anairiats_sum_2, tmp50, atslab_0) ;
tmp53 = ats_ptrget_mac(ats_ptr_type, tmp47) ;
tmp52 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_add (tmp53, tmp51) ;
ats_ptrget_mac(ats_ptr_type, tmp47) = tmp52 ;
break ;

/* branch: __ats_lab_6 */
__ats_lab_6_0:
// if (tmp50 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_6_1:
break ;
} while (0) ;
return /* (tmp46) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 5182(line=210, offs=7) -- 5443(line=217, offs=25)
*/
ATSstaticdec()
ats_ptr_type
loop_8 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp55) ;
ATSlocal (ats_ptr_type, tmp56) ;
ATSlocal (ats_ptr_type, tmp57) ;
ATSlocal (ats_ptr_type, tmp58) ;

__ats_lab_loop_8:
do {
/* branch: __ats_lab_7 */
__ats_lab_7_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_8_0 ; }
__ats_lab_7_1:
tmp56 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp57 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp58 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_add (arg0, tmp56) ;
arg0 = tmp58 ;
arg1 = tmp57 ;
goto __ats_lab_loop_8 ; // tail call
break ;

/* branch: __ats_lab_8 */
__ats_lab_8_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_8_1:
tmp55 = arg0 ;
break ;
} while (0) ;
return (tmp55) ;
} /* end of [loop_8] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 5163(line=209, offs=3) -- 5544(line=222, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvarlst (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp54) ;
ATSlocal (ats_ptr_type, tmp59) ;
ATSlocal (ats_ptr_type, tmp60) ;
ATSlocal (ats_ptr_type, tmp61) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvarlst:
tmp59 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp61 = ats_ptrget_mac(ats_ptr_type, tmp59) ;
tmp60 = loop_8 (tmp61, arg0) ;
ats_ptrget_mac(ats_ptr_type, tmp59) = tmp60 ;
return /* (tmp54) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvarlst] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 5615(line=226, offs=3) -- 5703(line=229, offs=18)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvaropt (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp62) ;
ATSlocal (ats_ptr_type, tmp63) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvaropt:
do {
/* branch: __ats_lab_9 */
__ats_lab_9_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_10_0 ; }
__ats_lab_9_1:
tmp63 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
/* tmp62 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (tmp63) ;
break ;

/* branch: __ats_lab_10 */
__ats_lab_10_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_10_1:
break ;
} while (0) ;
return /* (tmp62) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvaropt] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list_vt.dats: 4893(line=177, offs=7) -- 5015(line=178, offs=73)
*/
ATSstaticdec()
ats_void_type
loop_13 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp72) ;
ATSlocal (ats_ptr_type, tmp73) ;

__ats_lab_loop_13:
do {
/* branch: __ats_lab_13 */
__ats_lab_13_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_14_0 ; }
__ats_lab_13_1:
tmp73 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp73 ;
goto __ats_lab_loop_13 ; // tail call
break ;

/* branch: __ats_lab_14 */
__ats_lab_14_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_14_1:
break ;
} while (0) ;
return /* (tmp72) */ ;
} /* end of [loop_13] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list_vt.dats: 4875(line=176, offs=14) -- 5054(line=182, offs=4)
*/
ATSstaticdec()
ats_void_type
list_vt_free_01499_ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp71) ;

__ats_lab_list_vt_free_01499_ats_ptr_type:
/* tmp71 = */ loop_13 (arg0) ;
return /* (tmp71) */ ;
} /* end of [list_vt_free_01499_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 5862(line=238, offs=8) -- 6307(line=251, offs=11)
*/
ATSstaticdec()
ats_ptr_type
loop_11 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp65) ;
ATSlocal (ats_ptr_type, tmp66) ;
ATSlocal (ats_ptr_type, tmp67) ;
ATSlocal (ats_ptr_type, tmp68) ;
ATSlocal (ats_ptr_type, tmp69) ;
// ATSlocal_void (tmp70) ;
ATSlocal (ats_ptr_type, tmp74) ;

__ats_lab_loop_11:
do {
/* branch: __ats_lab_11 */
__ats_lab_11_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_12_0 ; }
__ats_lab_11_1:
tmp66 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp67 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
ATS_FREE(arg0) ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp66 ;
tmp65 = tmp67 ;
break ;

/* branch: __ats_lab_12 */
__ats_lab_12_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_15_0 ; }
__ats_lab_12_1:
tmp68 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp69 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_2) ;
ATS_FREE(arg0) ;
/* tmp70 = */ list_vt_free_01499_ats_ptr_type (tmp68) ;
arg0 = tmp69 ;
arg1 = arg1 ;
goto __ats_lab_loop_11 ; // tail call
break ;

/* branch: __ats_lab_15 */
__ats_lab_15_0:
// if (((ats_sum_ptr_type)arg0)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_15_1:
tmp74 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_nil () ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp74 ;
tmp65 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSnil_2) ;
break ;
} while (0) ;
return (tmp65) ;
} /* end of [loop_11] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 5795(line=236, offs=4) -- 6645(line=264, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_pop () {
/* local vardec */
// ATSlocal_void (tmp64) ;
ATSlocal (ats_ptr_type, tmp75) ;
// ATSlocal_void (tmp76) ;
ATSlocal (ats_ptr_type, tmp77) ;
ATSlocal (ats_ptr_type, tmp78) ;
ATSlocal (ats_ptr_type, tmp79) ;
ATSlocal (ats_ptr_type, tmp80) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_pop:
tmp75 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp77 = ats_ptrget_mac(ats_ptr_type, tmp75) ;
/* tmp76 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_free (tmp77) ;
tmp78 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp80 = ats_ptrget_mac(ats_ptr_type, tmp78) ;
tmp79 = loop_11 (tmp80, tmp75) ;
ats_ptrget_mac(ats_ptr_type, tmp78) = tmp79 ;
return /* (tmp64) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_pop] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 6725(line=269, offs=19) -- 7006(line=279, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push () {
/* local vardec */
// ATSlocal_void (tmp81) ;
ATSlocal (ats_ptr_type, tmp82) ;
ATSlocal (ats_ptr_type, tmp83) ;
ATSlocal (ats_ptr_type, tmp84) ;
ATSlocal (ats_ptr_type, tmp85) ;
ATSlocal (ats_ptr_type, tmp86) ;
ATSlocal (ats_ptr_type, tmp87) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push:
tmp82 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp83 = ats_ptrget_mac(ats_ptr_type, tmp82) ;
tmp84 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_nil () ;
ats_ptrget_mac(ats_ptr_type, tmp82) = tmp84 ;
tmp85 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp87 = ats_ptrget_mac(ats_ptr_type, tmp85) ;
tmp86 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp86)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_5, tmp86, atslab_0, tmp83) ;
ats_selptrset_mac(anairiats_sum_5, tmp86, atslab_1, tmp87) ;
ats_ptrget_mac(ats_ptr_type, tmp85) = tmp86 ;
return /* (tmp81) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 7070(line=282, offs=23) -- 7251(line=288, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_lam (ats_int_type arg0) {
/* local vardec */
// ATSlocal_void (tmp88) ;
// ATSlocal_void (tmp89) ;
// ATSlocal_void (tmp90) ;
ATSlocal (ats_ptr_type, tmp91) ;
ATSlocal (ats_ptr_type, tmp92) ;
ATSlocal (ats_ptr_type, tmp93) ;
ATSlocal (ats_ptr_type, tmp94) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_lam:
/* tmp89 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push () ;
/* tmp90 = ats_selsin_mac(tmp89, atslab_1) */ ;
tmp91 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp93 = (ats_sum_ptr_type)0 ;
tmp94 = ats_ptrget_mac(ats_ptr_type, tmp91) ;
tmp92 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp92)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_3, tmp92, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp92, atslab_1, tmp93) ;
ats_selptrset_mac(anairiats_sum_3, tmp92, atslab_2, tmp94) ;
ats_ptrget_mac(ats_ptr_type, tmp91) = tmp92 ;
return /* (tmp88) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_lam] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 7319(line=291, offs=23) -- 7344(line=291, offs=48)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_let () {
/* local vardec */
// ATSlocal_void (tmp95) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_let:
/* tmp95 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_push () ;
return /* (tmp95) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_let] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 7436(line=295, offs=23) -- 7465(line=295, offs=52)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_try () {
/* local vardec */
// ATSlocal_void (tmp96) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_try:
/* tmp96 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_lam (0) ;
return /* (tmp96) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_push_try] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 7573(line=303, offs=5) -- 8295(line=330, offs=2)
*/
ATSstaticdec()
ats_bool_type
loop_19 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp98) ;
ATSlocal (ats_int_type, tmp99) ;
ATSlocal (ats_ptr_type, tmp100) ;
ATSlocal (ats_ptr_type, tmp101) ;
ATSlocal (ats_bool_type, tmp102) ;
ATSlocal (ats_ptr_type, tmp103) ;
ATSlocal (ats_ptr_type, tmp104) ;
ATSlocal (ats_ptr_type, tmp105) ;
ATSlocal (ats_ptr_type, tmp106) ;
ATSlocal (ats_ptr_type, tmp107) ;
ATSlocal (ats_bool_type, tmp108) ;
ATSlocal (ats_ptr_type, tmp109) ;
ATSlocal (ats_ptr_type, tmp110) ;

__ats_lab_loop_19:
do {
/* branch: __ats_lab_16 */
__ats_lab_16_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_19_0 ; }
__ats_lab_16_1:
tmp99 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp100 = &ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp101 = &ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_2) ;
do {
/* branch: __ats_lab_17 */
__ats_lab_17_0:
__ats_lab_17_1:
tmp102 = atspre_gt_int_int (tmp99, 0) ;
if (!tmp102) { goto __ats_lab_18_1 ; }
tmp104 = ats_ptrget_mac(ats_ptr_type, tmp100) ;
tmp103 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp103, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_4, tmp103, atslab_1, tmp104) ;
ats_ptrget_mac(ats_ptr_type, tmp100) = tmp103 ;
tmp105 = ats_ptrget_mac(ats_ptr_type, tmp101) ;
arg0 = tmp105 ;
arg1 = arg1 ;
goto __ats_lab_loop_19 ; // tail call
break ;

/* branch: __ats_lab_18 */
__ats_lab_18_0:
__ats_lab_18_1:
tmp98 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_19 */
__ats_lab_19_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_20_0 ; }
__ats_lab_19_1:
tmp106 = &ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp107 = &ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
tmp109 = ats_ptrget_mac(ats_ptr_type, tmp106) ;
tmp108 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_ismem (tmp109, arg1) ;
if (tmp108) {
tmp98 = ats_true_bool ;
} else {
tmp110 = ats_ptrget_mac(ats_ptr_type, tmp107) ;
arg0 = tmp110 ;
arg1 = arg1 ;
goto __ats_lab_loop_19 ; // tail call
} /* end of [if] */
break ;

/* branch: __ats_lab_20 */
__ats_lab_20_0:
// if (((ats_sum_ptr_type)arg0)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_20_1:
tmp98 = ats_false_bool ;
break ;
} while (0) ;
return (tmp98) ;
} /* end of [loop_19] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 7533(line=301, offs=3) -- 8596(line=351, offs=4)
*/
ATSglobaldec()
ats_bool_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_d2var_is_llamlocal (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_bool_type, tmp97) ;
ATSlocal (ats_ptr_type, tmp111) ;
ATSlocal (ats_bool_type, tmp112) ;
ATSlocal (ats_ptr_type, tmp113) ;
ATSlocal (ats_ptr_type, tmp114) ;
ATSlocal (ats_ptr_type, tmp115) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_d2var_is_llamlocal:
tmp111 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp113 = ats_ptrget_mac(ats_ptr_type, tmp111) ;
tmp112 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_ismem (tmp113, arg0) ;
if (tmp112) {
tmp97 = ats_true_bool ;
} else {
tmp114 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp115 = ats_ptrget_mac(ats_ptr_type, tmp114) ;
tmp97 = loop_19 (tmp115, arg0) ;
} /* end of [if] */
return (tmp97) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_d2var_is_llamlocal] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 8722(line=359, offs=5) -- 9147(line=374, offs=4)
*/
ATSstaticdec()
ats_void_type
aux_21 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp117) ;
ATSlocal (ats_int_type, tmp118) ;
ATSlocal (ats_bool_type, tmp119) ;
ATSlocal (ats_ptr_type, tmp120) ;
ATSlocal (ats_ptr_type, tmp121) ;

__ats_lab_aux_21:
tmp118 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_linval (arg0) ;
tmp119 = atspre_gte_int_int (tmp118, 0) ;
if (tmp119) {
tmp120 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__lstbefitm_make (arg0, tmp118) ;
tmp121 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp121, atslab_0, tmp120) ;
ats_selptrset_mac(anairiats_sum_4, tmp121, atslab_1, ats_ptrget_mac(ats_ptr_type, arg1)) ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp121 ;
} else {
/* empty */
} /* end of [if] */
return /* (tmp117) */ ;
} /* end of [aux_21] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 9171(line=376, offs=5) -- 9415(line=385, offs=2)
*/
ATSstaticdec()
ats_void_type
auxlst_22 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp122) ;
ATSlocal (ats_ptr_type, tmp123) ;
ATSlocal (ats_ptr_type, tmp124) ;
// ATSlocal_void (tmp125) ;

__ats_lab_auxlst_22:
do {
/* branch: __ats_lab_21 */
__ats_lab_21_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_22_0 ; }
__ats_lab_21_1:
tmp123 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp124 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
ATS_FREE(arg0) ;
/* tmp125 = */ aux_21 (tmp123, arg1) ;
arg0 = tmp124 ;
arg1 = arg1 ;
goto __ats_lab_auxlst_22 ; // tail call
break ;

/* branch: __ats_lab_22 */
__ats_lab_22_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_22_1:
break ;
} while (0) ;
return /* (tmp122) */ ;
} /* end of [auxlst_22] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 9445(line=387, offs=5) -- 9592(line=392, offs=4)
*/
ATSstaticdec()
ats_void_type
auxset_23 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp126) ;
ATSlocal (ats_ptr_type, tmp127) ;

__ats_lab_auxset_23:
tmp127 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_listize (arg0) ;
/* tmp126 = */ auxlst_22 (tmp127, arg1) ;
return /* (tmp126) */ ;
} /* end of [auxset_23] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 9619(line=394, offs=5) -- 10044(line=414, offs=4)
*/
ATSstaticdec()
ats_void_type
auxsetlst_24 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp128) ;
ATSlocal (ats_ptr_type, tmp129) ;
ATSlocal (ats_ptr_type, tmp130) ;
// ATSlocal_void (tmp131) ;
ATSlocal (ats_ptr_type, tmp132) ;
ATSlocal (ats_ptr_type, tmp133) ;
ATSlocal (ats_int_type, tmp134) ;
ATSlocal (ats_ptr_type, tmp135) ;
ATSlocal (ats_bool_type, tmp136) ;
ATSlocal (ats_ptr_type, tmp137) ;

__ats_lab_auxsetlst_24:
do {
/* branch: __ats_lab_23 */
__ats_lab_23_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_24_0 ; }
__ats_lab_23_1:
tmp129 = &ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp130 = &ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
tmp132 = ats_ptrget_mac(ats_ptr_type, tmp129) ;
/* tmp131 = */ auxset_23 (tmp132, arg1) ;
tmp133 = ats_ptrget_mac(ats_ptr_type, tmp130) ;
arg0 = tmp133 ;
arg1 = arg1 ;
goto __ats_lab_auxsetlst_24 ; // tail call
break ;

/* branch: __ats_lab_24 */
__ats_lab_24_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_25_0 ; }
__ats_lab_24_1:
tmp134 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp135 = &ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_2) ;
tmp136 = atspre_gt_int_int (tmp134, 0) ;
if (!tmp136) { goto __ats_lab_25_1 ; }
tmp137 = ats_ptrget_mac(ats_ptr_type, tmp135) ;
arg0 = tmp137 ;
arg1 = arg1 ;
goto __ats_lab_auxsetlst_24 ; // tail call
break ;

/* branch: __ats_lab_25 */
__ats_lab_25_0:
__ats_lab_25_1:
break ;
} while (0) ;
return /* (tmp128) */ ;
} /* end of [auxsetlst_24] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 8706(line=357, offs=3) -- 10509(line=435, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_save_lstbefitmlst () {
/* local vardec */
ATSlocal (ats_ptr_type, tmp116) ;
ATSlocal (ats_ptr_type, tmp138) ;
ATSlocal (ats_ptr_type, tmp139) ;
// ATSlocal_void (tmp140) ;
ATSlocal (ats_ptr_type, tmp141) ;
ATSlocal (ats_ptr_type, tmp142) ;
// ATSlocal_void (tmp143) ;
ATSlocal (ats_ptr_type, tmp144) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_save_lstbefitmlst:
/* ats_ptr_type tmp138 ; */
tmp138 = (ats_sum_ptr_type)0 ;
tmp139 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp31), atslab_1) ;
tmp141 = ats_ptrget_mac(ats_ptr_type, tmp139) ;
/* tmp140 = */ auxset_23 (tmp141, (&tmp138)) ;
tmp142 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp35), atslab_1) ;
tmp144 = ats_ptrget_mac(ats_ptr_type, tmp142) ;
/* tmp143 = */ auxsetlst_24 (tmp144, (&tmp138)) ;
tmp116 = tmp138 ;
return (tmp116) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_save_lstbefitmlst] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 10716(line=448, offs=3) -- 11731(line=501, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp145) ;
ATSlocal (ats_ptr_type, tmp146) ;
// ATSlocal_void (tmp147) ;
ATSlocal (ats_ptr_type, tmp148) ;
ATSlocal (ats_ptr_type, tmp149) ;
ATSlocal (ats_ptr_type, tmp150) ;
ATSlocal (ats_ptr_type, tmp151) ;
ATSlocal (ats_ptr_type, tmp152) ;
ATSlocal (ats_ptr_type, tmp153) ;
ATSlocal (ats_ptr_type, tmp154) ;
ATSlocal (ats_ptr_type, tmp155) ;
ATSlocal (ats_ptr_type, tmp156) ;
// ATSlocal_void (tmp157) ;
ATSlocal (ats_ptr_type, tmp158) ;
ATSlocal (ats_ptr_type, tmp159) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at:
tmp146 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__p3at_get_dvaropt (arg0) ;
/* tmp147 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvaropt (tmp146) ;
tmp148 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, arg0), atslab_p3at_node) ;
do {
/* branch: __ats_lab_26 */
__ats_lab_26_0:
if (((ats_sum_ptr_type)tmp148)->tag != 0) { goto __ats_lab_27_0 ; }
__ats_lab_26_1:
tmp149 = ats_caselptrlab_mac(anairiats_sum_7, tmp148, atslab_0) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (tmp149) ;
break ;

/* branch: __ats_lab_27 */
__ats_lab_27_0:
if (((ats_sum_ptr_type)tmp148)->tag != 1) { goto __ats_lab_28_0 ; }
__ats_lab_27_1:
tmp150 = ats_caselptrlab_mac(anairiats_sum_7, tmp148, atslab_0) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (tmp150) ;
break ;

/* branch: __ats_lab_28 */
__ats_lab_28_0:
if (((ats_sum_ptr_type)tmp148)->tag != 2) { goto __ats_lab_29_0 ; }
__ats_lab_28_1:
tmp151 = ats_caselptrlab_mac(anairiats_sum_8, tmp148, atslab_3) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst (tmp151) ;
break ;

/* branch: __ats_lab_29 */
__ats_lab_29_0:
if (((ats_sum_ptr_type)tmp148)->tag != 17) { goto __ats_lab_30_0 ; }
__ats_lab_29_1:
tmp152 = ats_caselptrlab_mac(anairiats_sum_5, tmp148, atslab_0) ;
arg0 = tmp152 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at ; // tail call
break ;

/* branch: __ats_lab_30 */
__ats_lab_30_0:
if (((ats_sum_ptr_type)tmp148)->tag != 3) { goto __ats_lab_31_0 ; }
__ats_lab_30_1:
break ;

/* branch: __ats_lab_31 */
__ats_lab_31_0:
if (((ats_sum_ptr_type)tmp148)->tag != 4) { goto __ats_lab_32_0 ; }
__ats_lab_31_1:
break ;

/* branch: __ats_lab_32 */
__ats_lab_32_0:
if (((ats_sum_ptr_type)tmp148)->tag != 5) { goto __ats_lab_33_0 ; }
__ats_lab_32_1:
break ;

/* branch: __ats_lab_33 */
__ats_lab_33_0:
if (((ats_sum_ptr_type)tmp148)->tag != 6) { goto __ats_lab_34_0 ; }
__ats_lab_33_1:
break ;

/* branch: __ats_lab_34 */
__ats_lab_34_0:
if (((ats_sum_ptr_type)tmp148)->tag != 7) { goto __ats_lab_35_0 ; }
__ats_lab_34_1:
break ;

/* branch: __ats_lab_35 */
__ats_lab_35_0:
if (((ats_sum_ptr_type)tmp148)->tag != 8) { goto __ats_lab_36_0 ; }
__ats_lab_35_1:
break ;

/* branch: __ats_lab_36 */
__ats_lab_36_0:
if (((ats_sum_ptr_type)tmp148)->tag != 9) { goto __ats_lab_37_0 ; }
__ats_lab_36_1:
break ;

/* branch: __ats_lab_37 */
__ats_lab_37_0:
if (((ats_sum_ptr_type)tmp148)->tag != 10) { goto __ats_lab_38_0 ; }
__ats_lab_37_1:
break ;

/* branch: __ats_lab_38 */
__ats_lab_38_0:
if (((ats_sum_ptr_type)tmp148)->tag != 11) { goto __ats_lab_39_0 ; }
__ats_lab_38_1:
break ;

/* branch: __ats_lab_39 */
__ats_lab_39_0:
if (((ats_sum_ptr_type)tmp148)->tag != 12) { goto __ats_lab_40_0 ; }
__ats_lab_39_1:
tmp153 = ats_caselptrlab_mac(anairiats_sum_9, tmp148, atslab_3) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_add_labp3atlst (tmp153) ;
break ;

/* branch: __ats_lab_40 */
__ats_lab_40_0:
if (((ats_sum_ptr_type)tmp148)->tag != 13) { goto __ats_lab_41_0 ; }
__ats_lab_40_1:
tmp154 = ats_caselptrlab_mac(anairiats_sum_3, tmp148, atslab_2) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst (tmp154) ;
break ;

/* branch: __ats_lab_41 */
__ats_lab_41_0:
if (((ats_sum_ptr_type)tmp148)->tag != 14) { goto __ats_lab_42_0 ; }
__ats_lab_41_1:
tmp155 = ats_caselptrlab_mac(anairiats_sum_5, tmp148, atslab_0) ;
tmp156 = ats_caselptrlab_mac(anairiats_sum_5, tmp148, atslab_1) ;
/* tmp157 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (tmp155) ;
arg0 = tmp156 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at ; // tail call
break ;

/* branch: __ats_lab_42 */
__ats_lab_42_0:
if (((ats_sum_ptr_type)tmp148)->tag != 15) { goto __ats_lab_43_0 ; }
__ats_lab_42_1:
tmp158 = ats_caselptrlab_mac(anairiats_sum_5, tmp148, atslab_1) ;
arg0 = tmp158 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at ; // tail call
break ;

/* branch: __ats_lab_43 */
__ats_lab_43_0:
if (((ats_sum_ptr_type)tmp148)->tag != 16) { goto __ats_lab_44_0 ; }
__ats_lab_43_1:
tmp159 = ats_caselptrlab_mac(anairiats_sum_7, tmp148, atslab_0) ;
/* tmp145 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_dvar (tmp159) ;
break ;

/* branch: __ats_lab_44 */
__ats_lab_44_0:
// if (((ats_sum_ptr_type)tmp148)->tag != 18) { ats_deadcode_failure_handle () ; }
__ats_lab_44_1:
break ;
} while (0) ;
return /* (tmp145) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 2457(line=87, offs=7) -- 2708(line=97, offs=6)
*/
ATSstaticdec()
ats_void_type
loop_29 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp163) ;
ATSlocal (ats_ptr_type, tmp164) ;
ATSlocal (ats_ptr_type, tmp165) ;
// ATSlocal_void (tmp166) ;

__ats_lab_loop_29:
do {
/* branch: __ats_lab_45 */
__ats_lab_45_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_46_0 ; }
__ats_lab_45_1:
tmp164 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp165 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
/* tmp166 = */ ((ats_void_type(*)(ats_ptr_type, ats_ptr_type))arg1) (tmp164, arg2) ;
arg0 = tmp165 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_29 ; // tail call
break ;

/* branch: __ats_lab_46 */
__ats_lab_46_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_46_1:
break ;
} while (0) ;
return /* (tmp163) */ ;
} /* end of [loop_29] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 2381(line=85, offs=20) -- 2757(line=100, offs=4)
*/
ATSstaticdec()
ats_void_type
list_app_funenv_01300_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp162) ;

__ats_lab_list_app_funenv_01300_ats_ptr_type:
/* tmp162 = */ loop_29 (arg0, arg1, arg2) ;
return /* (tmp162) */ ;
} /* end of [list_app_funenv_01300_ats_ptr_type] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 2821(line=103, offs=22) -- 3078(line=112, offs=4)
*/
ATSstaticdec()
ats_void_type
list_app_fun_01301_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp161) ;

__ats_lab_list_app_fun_01301_ats_ptr_type:
/* tmp161 = */ list_app_funenv_01300_ats_ptr_type (arg0, ats_castfn_mac(ats_ptr_type, arg1), atspre_null_ptr) ;
return /* (tmp161) */ ;
} /* end of [list_app_fun_01301_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 11804(line=505, offs=3) -- 11862(line=507, offs=48)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp160) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst:
/* tmp160 = */ list_app_fun_01301_ats_ptr_type (arg0, &_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at) ;
return /* (tmp160) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3atlst] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 11974(line=513, offs=7) -- 12195(line=523, offs=8)
*/
ATSstaticdec()
ats_void_type
loop_31 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp168) ;
ATSlocal (ats_ptr_type, tmp169) ;
ATSlocal (ats_ptr_type, tmp170) ;
ATSlocal (ats_ptr_type, tmp171) ;
// ATSlocal_void (tmp172) ;

__ats_lab_loop_31:
do {
/* branch: __ats_lab_47 */
__ats_lab_47_0:
if (arg0 != (ats_sum_ptr_type)0) { goto __ats_lab_48_0 ; }
__ats_lab_47_1:
break ;

/* branch: __ats_lab_48 */
__ats_lab_48_0:
// if (arg0 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_48_1:
tmp169 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp170 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;

tmp171 = ats_caselptrlab_mac(anairiats_sum_4, tmp169, atslab_1) ;
/* tmp172 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_add_p3at (tmp171) ;
arg0 = tmp170 ;
goto __ats_lab_loop_31 ; // tail call
break ;
} while (0) ;
return /* (tmp168) */ ;
} /* end of [loop_31] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 11943(line=512, offs=3) -- 12241(line=525, offs=2)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_add_labp3atlst (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp167) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_add_labp3atlst:
/* tmp167 = */ loop_31 (arg0) ;
return /* (tmp167) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__the_d2varenv_add_labp3atlst] */

/*
// /tmp/ATS-Postiats/src/pats_errmsg.dats: 2341(line=88, offs=17) -- 2399(line=91, offs=2)
*/
ATSstaticdec()
ats_void_type
prerr_error3_loc_02053_ (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp176) ;
// ATSlocal_void (tmp177) ;

__ats_lab_prerr_error3_loc_02053_:
/* tmp177 = */ _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location (arg0) ;
/* tmp176 = */ atspre_prerr_string (ATSstrcst(": error(3)")) ;
return /* (tmp176) */ ;
} /* end of [prerr_error3_loc_02053_] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 12479(line=544, offs=5) -- 12869(line=556, offs=2)
*/
ATSstaticdec()
ats_void_type
auxerr1_33 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
// ATSlocal_void (tmp174) ;
// ATSlocal_void (tmp175) ;
// ATSlocal_void (tmp178) ;
// ATSlocal_void (tmp179) ;
// ATSlocal_void (tmp180) ;
// ATSlocal_void (tmp181) ;
// ATSlocal_void (tmp182) ;
ATSlocal (ats_ptr_type, tmp183) ;

__ats_lab_auxerr1_33:
/* tmp175 = */ prerr_error3_loc_02053_ (arg0) ;
/* tmp178 = */ atspre_prerr_string (ATSstrcst(": the linear dynamic variable [")) ;
/* tmp179 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2var (arg1) ;
/* tmp180 = */ atspre_prerr_string (ATSstrcst("] is preserved but with an incompatible type.")) ;
/* tmp181 = */ atspre_prerr_newline () ;
/* tmp182 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_error_2esats__prerr_the_staerrlst () ;
tmp183 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp183)->tag = 10 ;
ats_selptrset_mac(anairiats_sum_5, tmp183, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_5, tmp183, atslab_1, arg1) ;
/* tmp174 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp183) ;
return /* (tmp174) */ ;
} /* end of [auxerr1_33] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 12897(line=557, offs=5) -- 13309(line=569, offs=2)
*/
ATSstaticdec()
ats_void_type
auxerr2_35 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp184) ;
// ATSlocal_void (tmp185) ;
// ATSlocal_void (tmp186) ;
// ATSlocal_void (tmp187) ;
// ATSlocal_void (tmp188) ;
// ATSlocal_void (tmp189) ;
// ATSlocal_void (tmp190) ;
// ATSlocal_void (tmp191) ;
ATSlocal (ats_ptr_type, tmp192) ;

__ats_lab_auxerr2_35:
/* tmp185 = */ prerr_error3_loc_02053_ (arg0) ;
/* tmp186 = */ atspre_prerr_string (ATSstrcst(": the linear dynamic variable [")) ;
/* tmp187 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2var (arg1) ;
/* tmp188 = */ atspre_prerr_string (ATSstrcst("] needs to be consumed but it is preserved with the type [")) ;
/* tmp189 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (arg2) ;
/* tmp190 = */ atspre_prerr_string (ATSstrcst("] instead.")) ;
/* tmp191 = */ atspre_prerr_newline () ;
tmp192 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp192)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_5, tmp192, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_5, tmp192, atslab_1, arg1) ;
/* tmp184 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp192) ;
return /* (tmp184) */ ;
} /* end of [auxerr2_35] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 12399(line=539, offs=1) -- 15915(line=665, offs=4)
*/
ATSstaticdec()
ats_void_type
d2vfin_check_some_32 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp173) ;
ATSlocal (ats_ptr_type, tmp193) ;
ATSlocal (ats_bool_type, tmp194) ;
// ATSlocal_void (tmp195) ;
ATSlocal (ats_int_type, tmp196) ;
ATSlocal (ats_bool_type, tmp197) ;
ATSlocal (ats_ptr_type, tmp198) ;
ATSlocal (ats_ptr_type, tmp199) ;
// ATSlocal_void (tmp200) ;
// ATSlocal_void (tmp201) ;
ATSlocal (ats_int_type, tmp202) ;
// ATSlocal_void (tmp203) ;
ATSlocal (ats_bool_type, tmp204) ;
ATSlocal (ats_ptr_type, tmp205) ;
// ATSlocal_void (tmp206) ;
ATSlocal (ats_ptr_type, tmp207) ;
ATSlocal (ats_ptr_type, tmp208) ;
// ATSlocal_void (tmp209) ;
// ATSlocal_void (tmp210) ;
ATSlocal (ats_ptr_type, tmp211) ;
ATSlocal (ats_ptr_type, tmp212) ;
ATSlocal (ats_ptr_type, tmp213) ;
ATSlocal (ats_ptr_type, tmp214) ;
ATSlocal (ats_bool_type, tmp215) ;
ATSlocal (ats_ptr_type, tmp216) ;
ATSlocal (ats_int_type, tmp217) ;
// ATSlocal_void (tmp218) ;
ATSlocal (ats_bool_type, tmp219) ;
ATSlocal (ats_ptr_type, tmp220) ;
// ATSlocal_void (tmp221) ;
ATSlocal (ats_ptr_type, tmp222) ;
ATSlocal (ats_ptr_type, tmp223) ;
// ATSlocal_void (tmp224) ;
// ATSlocal_void (tmp225) ;
ATSlocal (ats_int_type, tmp226) ;
// ATSlocal_void (tmp227) ;
ATSlocal (ats_bool_type, tmp228) ;
ATSlocal (ats_ptr_type, tmp229) ;
// ATSlocal_void (tmp230) ;
ATSlocal (ats_ptr_type, tmp231) ;

__ats_lab_d2vfin_check_some_32:
tmp193 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_finknd (arg1) ;
do {
/* branch: __ats_lab_49 */
__ats_lab_49_0:
if (((ats_sum_ptr_type)tmp193)->tag != 0) { goto __ats_lab_50_0 ; }
__ats_lab_49_1:
tmp194 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_is_lin2 (arg2) ;
if (tmp194) {
/* tmp195 = */ auxerr2_35 (arg0, arg1, arg2) ;
} else {
/* empty */
} /* end of [if] */
tmp196 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_linval (arg1) ;
tmp197 = atspre_gte_int_int (tmp196, 0) ;
if (tmp197) {
tmp198 = (ats_sum_ptr_type)0 ;
/* tmp173 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp198) ;
} else {
/* empty */
} /* end of [if] */
break ;

/* branch: __ats_lab_50 */
__ats_lab_50_0:
if (((ats_sum_ptr_type)tmp193)->tag != 1) { goto __ats_lab_51_0 ; }
__ats_lab_50_1:
tmp199 = ats_caselptrlab_mac(anairiats_sum_7, tmp193, atslab_0) ;
/* tmp200 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_push () ;
/* tmp201 = ats_selsin_mac(tmp200, atslab_1) */ ;
tmp202 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__s2exp_tyleq_solve (arg0, arg2, tmp199) ;
tmp204 = atspre_gt_int_int (tmp202, 0) ;
if (tmp204) {
/* tmp203 = */ auxerr1_33 (arg0, arg1, arg2, tmp199) ;
} else {
/* empty */
} /* end of [if] */
tmp205 = ATS_MALLOC(sizeof(anairiats_sum_10)) ;
((ats_sum_ptr_type)tmp205)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_10, tmp205, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_10, tmp205, atslab_1, tmp199) ;
ats_selptrset_mac(anairiats_sum_10, tmp205, atslab_2, arg2) ;
/* tmp206 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_pop_and_add (arg0, tmp205) ;
tmp207 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp207, atslab_0, tmp199) ;
/* tmp173 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp207) ;
break ;

/* branch: __ats_lab_51 */
__ats_lab_51_0:
if (((ats_sum_ptr_type)tmp193)->tag != 2) { goto __ats_lab_54_0 ; }
__ats_lab_51_1:
tmp208 = ats_caselptrlab_mac(anairiats_sum_7, tmp193, atslab_0) ;
/* tmp209 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_push () ;
/* tmp210 = ats_selsin_mac(tmp209, atslab_1) */ ;
tmp212 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg2), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_52 */
__ats_lab_52_0:
if (((ats_sum_ptr_type)tmp212)->tag != 12) { goto __ats_lab_53_0 ; }
__ats_lab_52_1:
tmp213 = ats_caselptrlab_mac(anairiats_sum_5, tmp212, atslab_0) ;
tmp214 = ats_caselptrlab_mac(anairiats_sum_5, tmp212, atslab_1) ;
tmp215 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_nonlin (tmp213) ;
if (tmp215) {
tmp216 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_topize_0 (tmp213) ;
tmp211 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_at (tmp216, tmp214) ;
} else {
tmp211 = arg2 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_53 */
__ats_lab_53_0:
__ats_lab_53_1:
tmp211 = arg2 ;
break ;
} while (0) ;
tmp217 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__s2exp_tyleq_solve (arg0, tmp211, tmp208) ;
tmp219 = atspre_gt_int_int (tmp217, 0) ;
if (tmp219) {
/* tmp218 = */ auxerr1_33 (arg0, arg1, tmp211, tmp208) ;
} else {
/* empty */
} /* end of [if] */
tmp220 = ATS_MALLOC(sizeof(anairiats_sum_10)) ;
((ats_sum_ptr_type)tmp220)->tag = 5 ;
ats_selptrset_mac(anairiats_sum_10, tmp220, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_10, tmp220, atslab_1, tmp208) ;
ats_selptrset_mac(anairiats_sum_10, tmp220, atslab_2, tmp211) ;
/* tmp221 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_pop_and_add (arg0, tmp220) ;
tmp222 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp222, atslab_0, tmp208) ;
/* tmp173 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp222) ;
break ;

/* branch: __ats_lab_54 */
__ats_lab_54_0:
if (((ats_sum_ptr_type)tmp193)->tag != 3) { goto __ats_lab_55_0 ; }
__ats_lab_54_1:
tmp223 = ats_caselptrlab_mac(anairiats_sum_7, tmp193, atslab_0) ;
/* tmp224 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_push () ;
/* tmp225 = ats_selsin_mac(tmp224, atslab_1) */ ;
tmp226 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__s2exp_tyleq_solve (arg0, arg2, tmp223) ;
tmp228 = atspre_gt_int_int (tmp226, 0) ;
if (tmp228) {
/* tmp227 = */ auxerr1_33 (arg0, arg1, arg2, tmp223) ;
} else {
/* empty */
} /* end of [if] */
tmp229 = ATS_MALLOC(sizeof(anairiats_sum_10)) ;
((ats_sum_ptr_type)tmp229)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_10, tmp229, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_10, tmp229, atslab_1, tmp223) ;
ats_selptrset_mac(anairiats_sum_10, tmp229, atslab_2, arg2) ;
/* tmp230 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_pop_and_add (arg0, tmp229) ;
tmp231 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
ats_selptrset_mac(anairiats_sum_2, tmp231, atslab_0, tmp223) ;
/* tmp173 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp231) ;
break ;

/* branch: __ats_lab_55 */
__ats_lab_55_0:
// if (((ats_sum_ptr_type)tmp193)->tag != 4) { ats_deadcode_failure_handle () ; }
__ats_lab_55_1:
break ;
} while (0) ;
return /* (tmp173) */ ;
} /* end of [d2vfin_check_some_32] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 16019(line=673, offs=5) -- 16282(line=682, offs=2)
*/
ATSstaticdec()
ats_void_type
auxerr_37 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp233) ;
// ATSlocal_void (tmp234) ;
// ATSlocal_void (tmp235) ;
// ATSlocal_void (tmp236) ;
// ATSlocal_void (tmp237) ;

__ats_lab_auxerr_37:
/* tmp234 = */ prerr_error3_loc_02053_ (arg0) ;
/* tmp235 = */ atspre_prerr_string (ATSstrcst(": the linear dynamic variable [")) ;
/* tmp236 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2var (arg1) ;
/* tmp237 = */ atspre_prerr_string (ATSstrcst("] needs to be preserved but it is consumed instead.")) ;
/* tmp233 = */ atspre_prerr_newline () ;
return /* (tmp233) */ ;
} /* end of [auxerr_37] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 15951(line=668, offs=1) -- 17121(line=712, offs=4)
*/
ATSstaticdec()
ats_void_type
d2vfin_check_none_36 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp232) ;
ATSlocal (ats_ptr_type, tmp238) ;
// ATSlocal_void (tmp239) ;
ATSlocal (ats_ptr_type, tmp240) ;
// ATSlocal_void (tmp241) ;
ATSlocal (ats_ptr_type, tmp242) ;
// ATSlocal_void (tmp243) ;
ATSlocal (ats_ptr_type, tmp244) ;

__ats_lab_d2vfin_check_none_36:
tmp238 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_finknd (arg1) ;
do {
/* branch: __ats_lab_56 */
__ats_lab_56_0:
if (((ats_sum_ptr_type)tmp238)->tag != 0) { goto __ats_lab_57_0 ; }
__ats_lab_56_1:
break ;

/* branch: __ats_lab_57 */
__ats_lab_57_0:
if (((ats_sum_ptr_type)tmp238)->tag != 1) { goto __ats_lab_58_0 ; }
__ats_lab_57_1:
/* tmp239 = */ auxerr_37 (arg0, arg1) ;
tmp240 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp240)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_5, tmp240, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_5, tmp240, atslab_1, arg1) ;
/* tmp232 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp240) ;
break ;

/* branch: __ats_lab_58 */
__ats_lab_58_0:
if (((ats_sum_ptr_type)tmp238)->tag != 2) { goto __ats_lab_59_0 ; }
__ats_lab_58_1:
/* tmp241 = */ auxerr_37 (arg0, arg1) ;
tmp242 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp242)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_5, tmp242, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_5, tmp242, atslab_1, arg1) ;
/* tmp232 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp242) ;
break ;

/* branch: __ats_lab_59 */
__ats_lab_59_0:
if (((ats_sum_ptr_type)tmp238)->tag != 3) { goto __ats_lab_60_0 ; }
__ats_lab_59_1:
/* tmp243 = */ auxerr_37 (arg0, arg1) ;
tmp244 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
((ats_sum_ptr_type)tmp244)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_5, tmp244, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_5, tmp244, atslab_1, arg1) ;
/* tmp232 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp244) ;
break ;

/* branch: __ats_lab_60 */
__ats_lab_60_0:
// if (((ats_sum_ptr_type)tmp238)->tag != 4) { ats_deadcode_failure_handle () ; }
__ats_lab_60_1:
break ;
} while (0) ;
return /* (tmp232) */ ;
} /* end of [d2vfin_check_none_36] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 17197(line=717, offs=14) -- 17574(line=741, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp245) ;
ATSlocal (ats_ptr_type, tmp246) ;
ATSlocal (ats_ptr_type, tmp247) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check:
tmp246 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_type (arg1) ;
do {
/* branch: __ats_lab_61 */
__ats_lab_61_0:
if (tmp246 == (ats_sum_ptr_type)0) { goto __ats_lab_62_0 ; }
__ats_lab_61_1:
tmp247 = ats_caselptrlab_mac(anairiats_sum_2, tmp246, atslab_0) ;
/* tmp245 = */ d2vfin_check_some_32 (arg0, arg1, tmp247) ;
break ;

/* branch: __ats_lab_62 */
__ats_lab_62_0:
// if (tmp246 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_62_1:
/* tmp245 = */ d2vfin_check_none_36 (arg0, arg1) ;
break ;
} while (0) ;
return /* (tmp245) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 17729(line=750, offs=5) -- 17952(line=758, offs=26)
*/
ATSstaticdec()
ats_void_type
loop_40 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp249) ;
ATSlocal (ats_ptr_type, tmp250) ;
ATSlocal (ats_ptr_type, tmp251) ;
// ATSlocal_void (tmp252) ;

__ats_lab_loop_40:
do {
/* branch: __ats_lab_63 */
__ats_lab_63_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_64_0 ; }
__ats_lab_63_1:
tmp250 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp251 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
ATS_FREE(arg1) ;
/* tmp252 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check (arg0, tmp250) ;
arg0 = arg0 ;
arg1 = tmp251 ;
goto __ats_lab_loop_40 ; // tail call
break ;

/* branch: __ats_lab_64 */
__ats_lab_64_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_64_1:
break ;
} while (0) ;
return /* (tmp249) */ ;
} /* end of [loop_40] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 17630(line=744, offs=20) -- 18021(line=763, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp248) ;
ATSlocal (ats_ptr_type, tmp253) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check:
tmp253 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_top () ;
/* tmp248 = */ loop_40 (arg0, tmp253) ;
return /* (tmp248) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 18110(line=769, offs=5) -- 18801(line=795, offs=4)
*/
ATSstaticdec()
ats_void_type
aux_42 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp255) ;
ATSlocal (ats_ptr_type, tmp256) ;
ATSlocal (ats_ptr_type, tmp257) ;
ATSlocal (ats_bool_type, tmp258) ;
// ATSlocal_void (tmp259) ;
// ATSlocal_void (tmp260) ;
// ATSlocal_void (tmp261) ;
// ATSlocal_void (tmp262) ;
// ATSlocal_void (tmp263) ;
// ATSlocal_void (tmp264) ;
// ATSlocal_void (tmp265) ;
// ATSlocal_void (tmp266) ;
ATSlocal (ats_ptr_type, tmp267) ;
ATSlocal (ats_ptr_type, tmp268) ;

__ats_lab_aux_42:
tmp256 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_type (arg1) ;
do {
/* branch: __ats_lab_65 */
__ats_lab_65_0:
if (tmp256 == (ats_sum_ptr_type)0) { goto __ats_lab_66_0 ; }
__ats_lab_65_1:
tmp257 = ats_caselptrlab_mac(anairiats_sum_2, tmp256, atslab_0) ;
tmp258 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin (tmp257) ;
if (tmp258) {
/* tmp259 = */ prerr_error3_loc_02053_ (arg0) ;
/* tmp260 = */ atspre_prerr_string (ATSstrcst(": the linear dynamic variable [")) ;
/* tmp261 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2var (arg1) ;
/* tmp262 = */ atspre_prerr_string (ATSstrcst("] needs to be consumed but it is preserved with the type [")) ;
/* tmp263 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp257) ;
/* tmp264 = */ atspre_prerr_string (ATSstrcst("] instead.")) ;
/* tmp265 = */ atspre_prerr_newline () ;
tmp267 = atspre_string_append ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 18637(line=787, offs=18) -- 18653(line=787, offs=34)", ATSstrcst("\n")) ;
/* tmp266 = */ atspre_assert_errmsg (ats_false_bool, tmp267) ;
/* tmp255 = */ ats_exit (1) ;
} else {
tmp268 = (ats_sum_ptr_type)0 ;
/* tmp255 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg1, tmp268) ;
} /* end of [if] */
break ;

/* branch: __ats_lab_66 */
__ats_lab_66_0:
// if (tmp256 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_66_1:
break ;
} while (0) ;
return /* (tmp255) */ ;
} /* end of [aux_42] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 18825(line=797, offs=5) -- 19089(line=811, offs=2)
*/
ATSstaticdec()
ats_void_type
auxlst_43 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp269) ;
ATSlocal (ats_ptr_type, tmp270) ;
ATSlocal (ats_ptr_type, tmp271) ;
// ATSlocal_void (tmp272) ;

__ats_lab_auxlst_43:
do {
/* branch: __ats_lab_67 */
__ats_lab_67_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_68_0 ; }
__ats_lab_67_1:
tmp270 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp271 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
ATS_FREE(arg1) ;
/* tmp272 = */ aux_42 (arg0, tmp270) ;
arg0 = arg0 ;
arg1 = tmp271 ;
goto __ats_lab_auxlst_43 ; // tail call
break ;

/* branch: __ats_lab_68 */
__ats_lab_68_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_68_1:
break ;
} while (0) ;
return /* (tmp269) */ ;
} /* end of [auxlst_43] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 18090(line=767, offs=3) -- 19167(line=815, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check_llam (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp254) ;
ATSlocal (ats_ptr_type, tmp273) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check_llam:
tmp273 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_get_llamd2vs () ;
/* tmp254 = */ auxlst_43 (arg0, tmp273) ;
return /* (tmp254) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_d2varenv_check_llam] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 19281(line=825, offs=5) -- 19461(line=834, offs=4)
*/
ATSstaticdec()
ats_void_type
d2vfin_checked_44 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp274) ;
ATSlocal (ats_ptr_type, tmp275) ;
ATSlocal (ats_ptr_type, tmp276) ;

__ats_lab_d2vfin_checked_44:
tmp275 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_finknd (arg0) ;
do {
/* branch: __ats_lab_69 */
__ats_lab_69_0:
if (((ats_sum_ptr_type)tmp275)->tag != 4) { goto __ats_lab_70_0 ; }
__ats_lab_69_1:
break ;

/* branch: __ats_lab_70 */
__ats_lab_70_0:
__ats_lab_70_1:
tmp276 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp276)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_7, tmp276, atslab_0, tmp275) ;
/* tmp274 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_finknd (arg0, tmp276) ;
break ;
} while (0) ;
return /* (tmp274) */ ;
} /* end of [d2vfin_checked_44] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 19638(line=845, offs=5) -- 20144(line=868, offs=4)
*/
ATSstaticdec()
ats_void_type
auxvar_46 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp278) ;
ATSlocal (ats_ptr_type, tmp279) ;
ATSlocal (ats_ptr_type, tmp280) ;
ATSlocal (ats_ptr_type, tmp281) ;
// ATSlocal_void (tmp282) ;

__ats_lab_auxvar_46:
tmp279 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_view (arg1) ;
do {
/* branch: __ats_lab_71 */
__ats_lab_71_0:
if (tmp279 == (ats_sum_ptr_type)0) { goto __ats_lab_72_0 ; }
__ats_lab_71_1:
tmp281 = ats_caselptrlab_mac(anairiats_sum_2, tmp279, atslab_0) ;
tmp280 = tmp281 ;
break ;

/* branch: __ats_lab_72 */
__ats_lab_72_0:
// if (tmp279 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_72_1:
tmp280 = arg1 ;
break ;
} while (0) ;
/* tmp282 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__d2vfin_check (arg0, tmp280) ;
/* tmp278 = */ d2vfin_checked_44 (tmp280) ;
return /* (tmp278) */ ;
} /* end of [auxvar_46] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 20171(line=871, offs=1) -- 20548(line=891, offs=4)
*/
ATSstaticdec()
ats_void_type
auxpatlst_47 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp283) ;
ATSlocal (ats_ptr_type, tmp284) ;
ATSlocal (ats_ptr_type, tmp285) ;
// ATSlocal_void (tmp286) ;
ATSlocal (ats_ptr_type, tmp287) ;
ATSlocal (ats_ptr_type, tmp288) ;
ATSlocal (ats_ptr_type, tmp289) ;

__ats_lab_auxpatlst_47:
do {
/* branch: __ats_lab_73 */
__ats_lab_73_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_77_0 ; }
__ats_lab_73_1:
tmp284 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp285 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp287 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp284), atslab_p3at_node) ;
do {
/* branch: __ats_lab_74 */
__ats_lab_74_0:
if (((ats_sum_ptr_type)tmp287)->tag != 1) { goto __ats_lab_75_0 ; }
__ats_lab_74_1:
tmp288 = ats_caselptrlab_mac(anairiats_sum_7, tmp287, atslab_0) ;
/* tmp286 = */ auxvar_46 (arg0, tmp288) ;
break ;

/* branch: __ats_lab_75 */
__ats_lab_75_0:
if (((ats_sum_ptr_type)tmp287)->tag != 14) { goto __ats_lab_76_0 ; }
__ats_lab_75_1:
tmp289 = ats_caselptrlab_mac(anairiats_sum_5, tmp287, atslab_0) ;
/* tmp286 = */ auxvar_46 (arg0, tmp289) ;
break ;

/* branch: __ats_lab_76 */
__ats_lab_76_0:
__ats_lab_76_1:
break ;
} while (0) ;
arg0 = arg0 ;
arg1 = tmp285 ;
goto __ats_lab_auxpatlst_47 ; // tail call
break ;

/* branch: __ats_lab_77 */
__ats_lab_77_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_77_1:
break ;
} while (0) ;
return /* (tmp283) */ ;
} /* end of [auxpatlst_47] */

/*
// /tmp/ATS-Postiats/src/pats_errmsg.dats: 1766(line=59, offs=19) -- 1906(line=65, offs=2)
*/
ATSstaticdec()
ats_void_type
prerr_interror_loc_02049_ (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp293) ;
// ATSlocal_void (tmp294) ;
// ATSlocal_void (tmp295) ;
// ATSlocal_void (tmp296) ;

__ats_lab_prerr_interror_loc_02049_:
/* tmp294 = */ _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location (arg0) ;
/* tmp295 = */ atspre_prerr_string (ATSstrcst(": INTERROR(")) ;
/* tmp296 = */ prerr_FILENAME_02047_ () ;
/* tmp293 = */ atspre_prerr_string (ATSstrcst(")")) ;
return /* (tmp293) */ ;
} /* end of [prerr_interror_loc_02049_] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 19541(line=839, offs=21) -- 20951(line=911, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__funarg_d2vfin_check (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp277) ;
ATSlocal (ats_ptr_type, tmp290) ;
ATSlocal (ats_ptr_type, tmp291) ;
// ATSlocal_void (tmp292) ;
// ATSlocal_void (tmp297) ;
// ATSlocal_void (tmp298) ;
ATSlocal (ats_ptr_type, tmp299) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__funarg_d2vfin_check:
tmp290 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg () ;
do {
/* branch: __ats_lab_78 */
__ats_lab_78_0:
if (tmp290 == (ats_sum_ptr_type)0) { goto __ats_lab_79_0 ; }
__ats_lab_78_1:
tmp291 = ats_caselptrlab_mac(anairiats_sum_2, tmp290, atslab_0) ;
ATS_FREE(tmp290) ;
/* tmp277 = */ auxpatlst_47 (arg0, tmp291) ;
break ;

/* branch: __ats_lab_79 */
__ats_lab_79_0:
// if (tmp290 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_79_1:
/* tmp292 = */ prerr_interror_loc_02049_ (arg0) ;
/* tmp297 = */ atspre_prerr_string (ATSstrcst(": funarg_d2vfin_check: there is no funarg.")) ;
/* tmp298 = */ atspre_prerr_newline () ;
tmp299 = atspre_string_append ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 20904(line=909, offs=5) -- 20920(line=909, offs=21)", ATSstrcst("\n")) ;
/* tmp277 = */ atspre_assert_errmsg (ats_false_bool, tmp299) ;
break ;
} while (0) ;
return /* (tmp277) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__funarg_d2vfin_check] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 21194(line=926, offs=5) -- 21640(line=944, offs=4)
*/
ATSstaticdec()
ats_ptr_type
p3at_get_var_50 (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp301) ;
ATSlocal (ats_ptr_type, tmp302) ;
ATSlocal (ats_ptr_type, tmp303) ;
ATSlocal (ats_ptr_type, tmp304) ;
// ATSlocal_void (tmp305) ;
ATSlocal (ats_ptr_type, tmp306) ;
// ATSlocal_void (tmp307) ;
// ATSlocal_void (tmp308) ;
// ATSlocal_void (tmp309) ;
// ATSlocal_void (tmp310) ;
ATSlocal (ats_ptr_type, tmp311) ;

__ats_lab_p3at_get_var_50:
tmp302 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, arg0), atslab_p3at_node) ;
do {
/* branch: __ats_lab_80 */
__ats_lab_80_0:
if (((ats_sum_ptr_type)tmp302)->tag != 1) { goto __ats_lab_81_0 ; }
__ats_lab_80_1:
tmp303 = ats_caselptrlab_mac(anairiats_sum_7, tmp302, atslab_0) ;
tmp301 = tmp303 ;
break ;

/* branch: __ats_lab_81 */
__ats_lab_81_0:
if (((ats_sum_ptr_type)tmp302)->tag != 14) { goto __ats_lab_82_0 ; }
__ats_lab_81_1:
tmp304 = ats_caselptrlab_mac(anairiats_sum_5, tmp302, atslab_0) ;
tmp301 = tmp304 ;
break ;

/* branch: __ats_lab_82 */
__ats_lab_82_0:
__ats_lab_82_1:
tmp306 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, arg0), atslab_p3at_loc) ;
/* tmp305 = */ prerr_interror_loc_02049_ (tmp306) ;
/* tmp307 = */ atspre_prerr_string (ATSstrcst(": s2exp_wthtype_instantiate")) ;
/* tmp308 = */ atspre_prerr_string (ATSstrcst(": p2at_get_var: the pattern is expected to be a variable.")) ;
/* tmp309 = */ atspre_prerr_newline () ;
tmp311 = atspre_string_append ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 21548(line=939, offs=22) -- 21564(line=939, offs=38)", ATSstrcst("\n")) ;
/* tmp310 = */ atspre_assert_errmsg (ats_false_bool, tmp311) ;
/* tmp301 = */ _2tmp_2ATS_2dPostiats_2src_2pats_error_2esats__abort_interr () ;
break ;
} while (0) ;
return (tmp301) ;
} /* end of [p3at_get_var_50] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 21673(line=946, offs=5) -- 21891(line=955, offs=4)
*/
ATSstaticdec()
ats_void_type
d2vfin_unchecked_51 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp312) ;
ATSlocal (ats_ptr_type, tmp313) ;
ATSlocal (ats_ptr_type, tmp314) ;

__ats_lab_d2vfin_unchecked_51:
tmp313 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_finknd (arg0) ;
do {
/* branch: __ats_lab_83 */
__ats_lab_83_0:
if (((ats_sum_ptr_type)tmp313)->tag != 4) { goto __ats_lab_84_0 ; }
__ats_lab_83_1:
tmp314 = ats_caselptrlab_mac(anairiats_sum_7, tmp313, atslab_0) ;
/* tmp312 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_finknd (arg0, tmp314) ;
break ;

/* branch: __ats_lab_84 */
__ats_lab_84_0:
__ats_lab_84_1:
break ;
} while (0) ;
return /* (tmp312) */ ;
} /* end of [d2vfin_unchecked_51] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 21928(line=957, offs=5) -- 22247(line=976, offs=4)
*/
ATSstaticdec()
ats_void_type
aux_invar_52 (ats_int_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp315) ;
ATSlocal (ats_ptr_type, tmp316) ;
ATSlocal (ats_bool_type, tmp317) ;
ATSlocal (ats_ptr_type, tmp318) ;
ATSlocal (ats_ptr_type, tmp319) ;

__ats_lab_aux_invar_52:
tmp316 = p3at_get_var_50 (arg1) ;
do {
/* branch: __ats_lab_85 */
__ats_lab_85_0:
__ats_lab_85_1:
tmp317 = atspre_eq_int_int (arg0, 0) ;
if (!tmp317) { goto __ats_lab_86_1 ; }
/* tmp315 = */ d2vfin_unchecked_51 (tmp316) ;
break ;

/* branch: __ats_lab_86 */
__ats_lab_86_0:
__ats_lab_86_1:
tmp318 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_view (tmp316) ;
if (tmp318 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 22135(line=970, offs=9) -- 22189(line=973, offs=29)") ; }
tmp319 = ats_caselptrlab_mac(anairiats_sum_2, tmp318, atslab_0) ;
/* tmp315 = */ d2vfin_unchecked_51 (tmp319) ;
break ;
} while (0) ;
return /* (tmp315) */ ;
} /* end of [aux_invar_52] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 22277(line=978, offs=5) -- 22811(line=1003, offs=4)
*/
ATSstaticdec()
ats_void_type
aux_trans_53 (ats_int_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp320) ;
ATSlocal (ats_ptr_type, tmp321) ;
ATSlocal (ats_bool_type, tmp322) ;
ATSlocal (ats_ptr_type, tmp323) ;
ATSlocal (ats_ptr_type, tmp324) ;
ATSlocal (ats_ptr_type, tmp325) ;
ATSlocal (ats_ptr_type, tmp326) ;
ATSlocal (ats_ptr_type, tmp327) ;
ATSlocal (ats_ptr_type, tmp328) ;
ATSlocal (ats_ptr_type, tmp329) ;

__ats_lab_aux_trans_53:
tmp321 = p3at_get_var_50 (arg1) ;
do {
/* branch: __ats_lab_87 */
__ats_lab_87_0:
__ats_lab_87_1:
tmp322 = atspre_eq_int_int (arg0, 0) ;
if (!tmp322) { goto __ats_lab_88_1 ; }
tmp323 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp323)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_7, tmp323, atslab_0, arg2) ;
/* tmp320 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_finknd (tmp321, tmp323) ;
break ;

/* branch: __ats_lab_88 */
__ats_lab_88_0:
__ats_lab_88_1:
tmp324 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_view (tmp321) ;
if (tmp324 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 22599(line=996, offs=9) -- 22637(line=996, offs=47)") ; }
tmp325 = ats_caselptrlab_mac(anairiats_sum_2, tmp324, atslab_0) ;
tmp326 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_addr (tmp321) ;
if (tmp326 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 22646(line=997, offs=9) -- 22684(line=997, offs=47)") ; }
tmp327 = ats_caselptrlab_mac(anairiats_sum_2, tmp326, atslab_0) ;
tmp328 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_at (arg2, tmp327) ;
tmp329 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp329)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_7, tmp329, atslab_0, tmp328) ;
/* tmp320 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_finknd (tmp325, tmp329) ;
break ;
} while (0) ;
return /* (tmp320) */ ;
} /* end of [aux_trans_53] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 22841(line=1005, offs=5) -- 23565(line=1035, offs=4)
*/
ATSstaticdec()
ats_void_type
auxlst_54 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp330) ;
ATSlocal (ats_int_type, tmp331) ;
ATSlocal (ats_ptr_type, tmp332) ;
ATSlocal (ats_ptr_type, tmp333) ;
ATSlocal (ats_ptr_type, tmp334) ;
ATSlocal (ats_ptr_type, tmp335) ;
// ATSlocal_void (tmp336) ;
ATSlocal (ats_int_type, tmp337) ;
ATSlocal (ats_ptr_type, tmp338) ;
ATSlocal (ats_ptr_type, tmp339) ;
ATSlocal (ats_ptr_type, tmp340) ;
ATSlocal (ats_ptr_type, tmp341) ;
// ATSlocal_void (tmp342) ;
ATSlocal (ats_ptr_type, tmp343) ;
ATSlocal (ats_ptr_type, tmp344) ;

__ats_lab_auxlst_54:
do {
/* branch: __ats_lab_89 */
__ats_lab_89_0:
if (((ats_sum_ptr_type)arg2)->tag != 2) { goto __ats_lab_90_0 ; }
__ats_lab_89_1:
tmp331 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_0) ;
tmp332 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_1) ;
tmp333 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_2) ;
if (arg1 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 23006(line=1015, offs=9) -- 23034(line=1015, offs=37)") ; }
tmp334 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp335 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
/* tmp336 = */ aux_invar_52 (tmp331, tmp334, tmp332) ;
arg0 = arg0 ;
arg1 = tmp335 ;
arg2 = tmp333 ;
goto __ats_lab_auxlst_54 ; // tail call
break ;

/* branch: __ats_lab_90 */
__ats_lab_90_0:
if (((ats_sum_ptr_type)arg2)->tag != 3) { goto __ats_lab_91_0 ; }
__ats_lab_90_1:
tmp337 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_0) ;
tmp338 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_1) ;
tmp339 = ats_caselptrlab_mac(anairiats_sum_3, arg2, atslab_2) ;
if (arg1 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 23221(line=1022, offs=9) -- 23249(line=1022, offs=37)") ; }
tmp340 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp341 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
/* tmp342 = */ aux_trans_53 (tmp337, tmp340, tmp338) ;
arg0 = arg0 ;
arg1 = tmp341 ;
arg2 = tmp339 ;
goto __ats_lab_auxlst_54 ; // tail call
break ;

/* branch: __ats_lab_91 */
__ats_lab_91_0:
if (((ats_sum_ptr_type)arg2)->tag != 1) { goto __ats_lab_92_0 ; }
__ats_lab_91_1:
tmp343 = ats_caselptrlab_mac(anairiats_sum_7, arg2, atslab_0) ;
if (arg1 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 23427(line=1029, offs=9) -- 23455(line=1029, offs=37)") ; }
tmp344 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
arg0 = arg0 ;
arg1 = tmp344 ;
arg2 = tmp343 ;
goto __ats_lab_auxlst_54 ; // tail call
break ;

/* branch: __ats_lab_92 */
__ats_lab_92_0:
// if (((ats_sum_ptr_type)arg2)->tag != 0) { ats_deadcode_failure_handle () ; }
__ats_lab_92_1:
break ;
} while (0) ;
return /* (tmp330) */ ;
} /* end of [auxlst_54] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 21068(line=918, offs=27) -- 24018(line=1058, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2exp_wthtype_instantiate (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp300) ;
ATSlocal (ats_int_type, tmp345) ;
ATSlocal (anairiats_rec_1, tmp346) ;
ATSlocal (ats_ptr_type, tmp347) ;
ATSlocal (ats_ptr_type, tmp348) ;
// ATSlocal_void (tmp349) ;
ATSlocal (ats_ptr_type, tmp350) ;
ATSlocal (ats_ptr_type, tmp351) ;
ATSlocal (ats_ptr_type, tmp352) ;
ATSlocal (ats_ptr_type, tmp353) ;
ATSlocal (ats_ptr_type, tmp354) ;
// ATSlocal_void (tmp355) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2exp_wthtype_instantiate:
/* ats_int_type tmp345 ; */
tmp345 = 0 ;
tmp346 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2exp_exi_instantiate_all (arg1, arg0, (&tmp345)) ;
tmp347 = ats_select_mac(tmp346, atslab_0) ;
tmp348 = ats_select_mac(tmp346, atslab_1) ;
/* tmp349 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_proplst_vt (arg0, tmp348) ;
tmp350 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, tmp347), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_93 */
__ats_lab_93_0:
if (((ats_sum_ptr_type)tmp350)->tag != 31) { goto __ats_lab_94_0 ; }
__ats_lab_93_1:
tmp351 = ats_caselptrlab_mac(anairiats_sum_5, tmp350, atslab_0) ;
tmp352 = ats_caselptrlab_mac(anairiats_sum_5, tmp350, atslab_1) ;
tmp353 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg () ;
if (tmp353 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_env_dvar.dats: 23800(line=1048, offs=9) -- 23878(line=1050, offs=6)") ; }
tmp354 = ats_caselptrlab_mac(anairiats_sum_2, tmp353, atslab_0) ;
ATS_FREE(tmp353) ;
/* tmp355 = */ auxlst_54 (arg0, tmp354, tmp352) ;
tmp300 = tmp351 ;
break ;

/* branch: __ats_lab_94 */
__ats_lab_94_0:
__ats_lab_94_1:
tmp300 = tmp347 ;
break ;
} while (0) ;
return (tmp300) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2exp_wthtype_instantiate] */

/* static load function */

// extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_atspre_2edats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_error_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2edats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_error_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload (void) ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__staload () {
static int _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__staload_flag = 0 ;
if (_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__staload_flag) return ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__staload_flag = 1 ;

// _2tmp_2ATS_2dPostiats_2src_2pats_atspre_2edats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_error_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2edats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_error_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_solve_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload () ;

// _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSset_0.tag = 0 ;
// _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSlam_1.tag = 1 ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSnil_2.tag = 2 ;
return ;
} /* staload function */

/* dynamic load function */

// dynload flag declaration
extern ats_int_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__dynload_flag ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__dynload () {
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__dynload_flag = 1 ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__staload () ;

#ifdef _ATS_PROOFCHECK
ATS_2d0_2e2_2e12_2prelude_2SATS_2list_2esats__list_length_is_nonnegative_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2SATS_2list_vt_2esats__list_vt_length_is_nonnegative_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2SATS_2array_2esats__array_v_takeout2_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2list_vt_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____copy_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____free_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____assert_prfck () ;
ATS_2d0_2e2_2e12_2prelude_2DATS_2array_2edats____assert_prfck () ;
#endif /* _ATS_PROOFCHECK */

/* marking static variables for GC */
ATS_GC_MARKROOT(&statmp31, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp34, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp35, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp36, sizeof(ats_ptr_type)) ;

/* marking external values for GC */

/* code for dynamic loading */
statmp34 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2varset_vt_nil () ;
statmp31 = ref_01088_ats_ptr_type (statmp34) ;
statmp36 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_dvar_2edats__LD2VSnil_2) ;
statmp35 = ref_01088_ats_ptr_type (statmp36) ;
return ;
} /* end of [dynload function] */

/* external codes at mid */
/* external codes at bot */

/* ****** ****** */

/* end of [pats_trans3_env_dvar_dats.c] */
