/*
**
** The C code is generated by ATS/Anairiats
** The compilation time is: 2019-12-18:  5h:29m
**
*/

/* 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/integer.cats"
#include "prelude/CATS/sizetype.cats"
#include "prelude/CATS/integer_ptr.cats"
#include "prelude/CATS/integer_fixed.cats"
#include "prelude/CATS/pointer.cats"
#include "prelude/CATS/bool.cats"
#include "prelude/CATS/char.cats"
#include "prelude/CATS/byte.cats"
#include "prelude/CATS/float.cats"
#include "prelude/CATS/string.cats"
#include "prelude/CATS/reference.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_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_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"

#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"

#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 {
int tag ;
ats_ptr_type atslab_0 ;
} anairiats_sum_1 ;

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

typedef struct {
int tag ;
ats_bool_type atslab_0 ;
} anairiats_sum_3 ;

typedef struct {
int tag ;
ats_int_type atslab_0 ;
ats_ptr_type atslab_1 ;
} anairiats_sum_4 ;

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

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

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

typedef
struct {
ats_ptr_type atslab_h3ypo_loc ;
ats_ptr_type atslab_h3ypo_node ;
} anairiats_rec_8 ;

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
ats_ptr_type atslab_2 ;
ats_ptr_type atslab_3 ;
ats_ptr_type atslab_4 ;
} 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_0 ;
} anairiats_sum_11 ;

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

/* 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__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__S2RTfun_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eint_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eintinf_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Ecst_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Evar_7) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Esizeof_13) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eeqeq_15) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eapp_17) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Emetdec_21) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__H3YPOprop_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__H3YPObind_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__H3YPOeqeq_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Evar_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ecst_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Enull_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eunit_3) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebool_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebvar_5) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebneg_6) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebadd_7) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebmul_8) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebeq_9) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebneq_10) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebineq_11) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Ebdom_12) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eiatm_13) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eicff_14) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eisum_15) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eimul_16) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Esizeof_17) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eapp_18) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eerr_19) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsvar_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsbexp_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTcons_2) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnonlin_3) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTmark_4) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnil_5) ;

/* external dynamic constant declarations */
ATSextern_fun(ats_void_type, atspre_vbox_make_view_ptr) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, atspre_eq_bool_bool) (ats_bool_type, ats_bool_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_bool_type, atspre_ieq) (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_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int) (ats_int_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_intinf) (ats_ptr_type, ats_ptr_type) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_int) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_addr) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_bool) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cst_get_srt) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2cst_s2cst) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cstmap_nil) () ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cstmap_find) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_make_srt) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_get_srt) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2var_s2var) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_is_bool) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_nil) () ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_add) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_is_equal) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_listize) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_cst) (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_app_srt) (ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2zexp_make_s2exp) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf_syneq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_syneq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2zexp_syneq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2cstref_equ_cst) (ats_ptr_type, ats_ptr_type) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_true_bool) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_false_bool) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_null_addr) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bool) (ats_bool_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_badd) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bmul) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlt) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlte) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_hypadd_bind) (ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_app) (ats_ptr_type, ats_ptr_type) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_null) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_beq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_int) (ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin) (ats_ref_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp) (ats_ref_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_nonlin) (ats_ref_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make) (ats_ref_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make) (ats_ref_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_s2cst_s2explst) (ats_ref_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_lintize) (ats_ref_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__constraint3_initialize_map) (ats_ref_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_constraint3_2esats__sasp__s2cfunmap = 0 ;
int _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__sasp__s2vbcfenv_push_v = 0 ;
int _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__sasp__s2vbcfenv_viewtype = 0 ;

/* sum constructor declarations */
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsvar_0) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsbexp_1) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTcons_2) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnonlin_3) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTmark_4) ;
ATSglobal(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnil_5) ;

/* exn constructor declarations */
/* global dynamic (non-functional) constant declarations */
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_null) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_unit) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_0) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_1) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_2) ;
ATSglobal(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_neg_1) ;

/* internal function declarations */
static
ats_void_type prerr_FILENAME_02083_ () ;
static
ats_ptr_type traux_10 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type loop_13 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) ;
static
ats_ptr_type list_fold_left_funenv_01350_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) ;
static
ats_ptr_type list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_ptr_type loop_9 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_bool_type synlt_s2hnf_s2hnf_16 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_bool_type synlte_s2hnf_s2hnf_17 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_bool_type synlte_s2hnf_s2explst_18 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_bool_type s2exp_synlt_19 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_bool_type s2exp_synlte_20 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type auxlt_21 (ats_bool_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) ;
static
ats_ptr_type auxlte_22 (ats_bool_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) ;
static
ats_ptr_type auxlst_23 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type s2exp_metdec_reduce_24 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type auxeq_25 (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_ptr_type auxbind_26 (ats_ptr_type arg0, ats_ref_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) ;
static
ats_void_type option_vt_free_01544_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type aux_34 (ats_ptr_type arg0) ;
static
ats_void_type loop_39 (ats_ptr_type arg0, ats_ref_type arg1, ats_ref_type arg2) ;
static
ats_void_type loop_42 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2) ;
static
ats_ptr_type list_extend_01337_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type s2vbcfenv_add2_cstapp_40 (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ptr_type arg4) ;

/* partial value template declarations */
/* static temporary variable declarations */
ATSstatic (ats_ptr_type, statmp7) ;
ATSstatic (ats_ptr_type, statmp8) ;
ATSstatic (ats_ptr_type, statmp9) ;
ATSstatic (ats_ptr_type, statmp10) ;
ATSstatic (ats_ptr_type, statmp11) ;
ATSstatic (ats_ptr_type, statmp12) ;
ATSstatic (ats_ptr_type, statmp13) ;
ATSstatic (ats_ptr_type, statmp14) ;
ATSstatic (ats_ptr_type, statmp15) ;
ATSstatic (ats_ptr_type, statmp16) ;
ATSstatic (ats_ptr_type, statmp17) ;
ATSstatic (ats_ptr_type, statmp18) ;
ATSstatic (ats_ptr_type, statmp336) ;
// ATSstatic_void (statmp337) ;
// ATSstatic_void (statmp338) ;

/* external value variable declarations */

/* function implementations */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 1671(line=52, offs=28) -- 1700(line=52, offs=57)
*/
ATSstaticdec()
ats_void_type
prerr_FILENAME_02083_ () {
/* local vardec */
// ATSlocal_void (tmp0) ;

__ats_lab_prerr_FILENAME_02083_:
/* tmp0 = */ atspre_prerr_string (ATSstrcst("pats_constraint3")) ;
return /* (tmp0) */ ;
} /* end of [prerr_FILENAME_02083_] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 2072(line=79, offs=11) -- 2091(line=79, offs=30)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp1) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err:
tmp1 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp1)->tag = 19 ;
ats_selptrset_mac(anairiats_sum_1, tmp1, atslab_0, arg0) ;
return (tmp1) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 2135(line=84, offs=11) -- 2231(line=88, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp2) ;
ATSlocal (ats_bool_type, tmp3) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var:
tmp3 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_is_bool (arg0) ;
if (tmp3) {
tmp2 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp2)->tag = 5 ;
ats_selptrset_mac(anairiats_sum_1, tmp2, atslab_0, arg0) ;
} else {
tmp2 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp2)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_1, tmp2, atslab_0, arg0) ;
} /* end of [if] */
return (tmp2) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 2297(line=92, offs=22) -- 2317(line=92, offs=42)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bvar (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp4) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bvar:
tmp4 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp4)->tag = 5 ;
ats_selptrset_mac(anairiats_sum_1, tmp4, atslab_0, arg0) ;
return (tmp4) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bvar] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 2361(line=97, offs=11) -- 2380(line=97, offs=30)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp5) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst:
tmp5 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp5)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_1, tmp5, atslab_0, arg0) ;
return (tmp5) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 2424(line=102, offs=11) -- 2458(line=102, offs=45)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_app (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp6) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_app:
tmp6 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp6)->tag = 18 ;
ats_selptrset_mac(anairiats_sum_2, tmp6, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_2, tmp6, atslab_1, arg1) ;
return (tmp6) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_app] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 3010(line=125, offs=12) -- 3055(line=126, offs=40)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool (ats_bool_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp19) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool:
if (arg0) {
tmp19 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true ;
} else {
tmp19 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false ;
} /* end of [if] */
return (tmp19) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 3125(line=132, offs=15) -- 3796(line=167, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp20) ;
ATSlocal (ats_ptr_type, tmp21) ;
ATSlocal (ats_ptr_type, tmp22) ;
ATSlocal (ats_ptr_type, tmp23) ;
ATSlocal (ats_ptr_type, tmp24) ;
ATSlocal (ats_ptr_type, tmp25) ;
ATSlocal (ats_ptr_type, tmp26) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt:
do {
/* branch: __ats_lab_0 */
__ats_lab_0_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_1_0 ; }
__ats_lab_0_1:
tmp21 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_get_srt (tmp21) ;
break ;

/* branch: __ats_lab_1 */
__ats_lab_1_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_2_0 ; }
__ats_lab_1_1:
tmp22 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cst_get_srt (tmp22) ;
break ;

/* branch: __ats_lab_2 */
__ats_lab_2_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_3_0 ; }
__ats_lab_2_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_3 */
__ats_lab_3_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_4_0 ; }
__ats_lab_3_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_4 */
__ats_lab_4_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_5_0 ; }
__ats_lab_4_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_5 */
__ats_lab_5_0:
if (((ats_sum_ptr_type)arg0)->tag != 5) { goto __ats_lab_6_0 ; }
__ats_lab_5_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_6 */
__ats_lab_6_0:
if (((ats_sum_ptr_type)arg0)->tag != 6) { goto __ats_lab_7_0 ; }
__ats_lab_6_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_7 */
__ats_lab_7_0:
if (((ats_sum_ptr_type)arg0)->tag != 7) { goto __ats_lab_8_0 ; }
__ats_lab_7_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_8 */
__ats_lab_8_0:
if (((ats_sum_ptr_type)arg0)->tag != 8) { goto __ats_lab_9_0 ; }
__ats_lab_8_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_9 */
__ats_lab_9_0:
if (((ats_sum_ptr_type)arg0)->tag != 9) { goto __ats_lab_10_0 ; }
__ats_lab_9_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_10 */
__ats_lab_10_0:
if (((ats_sum_ptr_type)arg0)->tag != 10) { goto __ats_lab_11_0 ; }
__ats_lab_10_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_11 */
__ats_lab_11_0:
if (((ats_sum_ptr_type)arg0)->tag != 11) { goto __ats_lab_12_0 ; }
__ats_lab_11_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_12 */
__ats_lab_12_0:
if (((ats_sum_ptr_type)arg0)->tag != 12) { goto __ats_lab_13_0 ; }
__ats_lab_12_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool ;
break ;

/* branch: __ats_lab_13 */
__ats_lab_13_0:
if (((ats_sum_ptr_type)arg0)->tag != 13) { goto __ats_lab_14_0 ; }
__ats_lab_13_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_14 */
__ats_lab_14_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_15_0 ; }
__ats_lab_14_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_15 */
__ats_lab_15_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_16_0 ; }
__ats_lab_15_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_16 */
__ats_lab_16_0:
if (((ats_sum_ptr_type)arg0)->tag != 16) { goto __ats_lab_17_0 ; }
__ats_lab_16_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_17 */
__ats_lab_17_0:
if (((ats_sum_ptr_type)arg0)->tag != 17) { goto __ats_lab_18_0 ; }
__ats_lab_17_1:
tmp20 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_int ;
break ;

/* branch: __ats_lab_18 */
__ats_lab_18_0:
if (((ats_sum_ptr_type)arg0)->tag != 18) { goto __ats_lab_19_0 ; }
__ats_lab_18_1:
tmp23 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp24 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt (tmp23) ;
if (((ats_sum_ptr_type)tmp24)->tag != 1) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_constraint3.dats: 3699(line=162, offs=9) -- 3741(line=162, offs=51)") ; }
tmp25 = ats_caselptrlab_mac(anairiats_sum_2, tmp24, atslab_1) ;
tmp20 = tmp25 ;
break ;

/* branch: __ats_lab_19 */
__ats_lab_19_0:
// if (((ats_sum_ptr_type)arg0)->tag != 19) { ats_deadcode_failure_handle () ; }
__ats_lab_19_1:
tmp26 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
tmp20 = tmp26 ;
break ;
} while (0) ;
return (tmp20) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 4734(line=205, offs=9) -- 4990(line=212, offs=31)
*/
ATSstaticdec()
ats_ptr_type
traux_10 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp47) ;
ATSlocal (ats_ptr_type, tmp48) ;
ATSlocal (ats_ptr_type, tmp49) ;
ATSlocal (ats_ptr_type, tmp50) ;

__ats_lab_traux_10:
do {
/* branch: __ats_lab_34 */
__ats_lab_34_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_35_0 ; }
__ats_lab_34_1:
tmp48 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp49 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_1) ;
ATS_FREE(arg1) ;
tmp50 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_add (arg0, tmp48) ;
arg0 = tmp50 ;
arg1 = tmp49 ;
goto __ats_lab_traux_10 ; // tail call
break ;

/* branch: __ats_lab_35 */
__ats_lab_35_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_35_1:
tmp47 = arg0 ;
break ;
} while (0) ;
return (tmp47) ;
} /* end of [traux_10] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 25316(line=913, offs=7) -- 25599(line=923, offs=20)
*/
ATSstaticdec()
ats_ptr_type
loop_13 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp56) ;
ATSlocal (ats_ptr_type, tmp57) ;
ATSlocal (ats_ptr_type, tmp58) ;
ATSlocal (ats_ptr_type, tmp59) ;

__ats_lab_loop_13:
do {
/* branch: __ats_lab_38 */
__ats_lab_38_0:
if (arg2 == (ats_sum_ptr_type)0) { goto __ats_lab_39_0 ; }
__ats_lab_38_1:
tmp57 = ats_caselptrlab_mac(anairiats_sum_5, arg2, atslab_0) ;
tmp58 = ats_caselptrlab_mac(anairiats_sum_5, arg2, atslab_1) ;
tmp59 = ((ats_ptr_type(*)(ats_ptr_type, ats_ptr_type, ats_ptr_type))arg0) (arg1, tmp57, arg3) ;
arg0 = arg0 ;
arg1 = tmp59 ;
arg2 = tmp58 ;
arg3 = arg3 ;
goto __ats_lab_loop_13 ; // tail call
break ;

/* branch: __ats_lab_39 */
__ats_lab_39_0:
// if (arg2 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_39_1:
tmp56 = arg1 ;
break ;
} while (0) ;
return (tmp56) ;
} /* end of [loop_13] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 25281(line=912, offs=20) -- 25655(line=927, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_fold_left_funenv_01350_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp55) ;

__ats_lab_list_fold_left_funenv_01350_ats_ptr_type_ats_ptr_type:
tmp55 = loop_13 (arg0, arg1, arg2, arg3) ;
return (tmp55) ;
} /* end of [list_fold_left_funenv_01350_ats_ptr_type_ats_ptr_type] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 25737(line=930, offs=28) -- 26032(line=939, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp54) ;

__ats_lab_list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type:
tmp54 = list_fold_left_funenv_01350_ats_ptr_type_ats_ptr_type (ats_castfn_mac(ats_ptr_type, arg0), arg1, arg2, atspre_null_ptr) ;
return (tmp54) ;
} /* end of [list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 3919(line=175, offs=5) -- 5529(line=235, offs=4)
*/
ATSstaticdec()
ats_ptr_type
loop_9 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp28) ;
ATSlocal (ats_ptr_type, tmp29) ;
ATSlocal (ats_ptr_type, tmp30) ;
ATSlocal (ats_ptr_type, tmp31) ;
ATSlocal (ats_ptr_type, tmp32) ;
ATSlocal (ats_ptr_type, tmp33) ;
ATSlocal (ats_ptr_type, tmp34) ;
ATSlocal (ats_ptr_type, tmp35) ;
ATSlocal (ats_ptr_type, tmp36) ;
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
ATSlocal (ats_ptr_type, tmp39) ;
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) ;
ATSlocal (ats_ptr_type, tmp46) ;
ATSlocal (ats_ptr_type, tmp51) ;
ATSlocal (ats_ptr_type, tmp52) ;
ATSlocal (ats_ptr_type, tmp53) ;
ATSlocal (ats_ptr_type, tmp60) ;
ATSlocal (ats_ptr_type, tmp61) ;
ATSlocal (ats_ptr_type, tmp62) ;
ATSlocal (ats_ptr_type, tmp63) ;
ATSlocal (ats_ptr_type, tmp64) ;
ATSlocal (ats_ptr_type, tmp65) ;

__ats_lab_loop_9:
do {
/* branch: __ats_lab_20 */
__ats_lab_20_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_21_0 ; }
__ats_lab_20_1:
tmp29 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp28 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_add (arg0, tmp29) ;
break ;

/* branch: __ats_lab_21 */
__ats_lab_21_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_22_0 ; }
__ats_lab_21_1:
tmp28 = arg0 ;
break ;

/* branch: __ats_lab_22 */
__ats_lab_22_0:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_23_0 ; }
__ats_lab_22_1:
tmp28 = arg0 ;
break ;

/* branch: __ats_lab_23 */
__ats_lab_23_0:
if (((ats_sum_ptr_type)arg1)->tag != 3) { goto __ats_lab_24_0 ; }
__ats_lab_23_1:
tmp28 = arg0 ;
break ;

/* branch: __ats_lab_24 */
__ats_lab_24_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_25_0 ; }
__ats_lab_24_1:
tmp28 = arg0 ;
break ;

/* branch: __ats_lab_25 */
__ats_lab_25_0:
if (((ats_sum_ptr_type)arg1)->tag != 5) { goto __ats_lab_26_0 ; }
__ats_lab_25_1:
tmp30 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp28 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_add (arg0, tmp30) ;
break ;

/* branch: __ats_lab_26 */
__ats_lab_26_0:
if (((ats_sum_ptr_type)arg1)->tag != 6) { goto __ats_lab_27_0 ; }
__ats_lab_26_1:
tmp31 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
arg0 = arg0 ;
arg1 = tmp31 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_27 */
__ats_lab_27_0:
if (((ats_sum_ptr_type)arg1)->tag != 7) { goto __ats_lab_28_0 ; }
__ats_lab_27_1:
tmp32 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp33 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp34 = loop_9 (arg0, tmp32) ;
arg0 = tmp34 ;
arg1 = tmp33 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_28 */
__ats_lab_28_0:
if (((ats_sum_ptr_type)arg1)->tag != 8) { goto __ats_lab_29_0 ; }
__ats_lab_28_1:
tmp35 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp36 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp37 = loop_9 (arg0, tmp35) ;
arg0 = tmp37 ;
arg1 = tmp36 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_29 */
__ats_lab_29_0:
if (((ats_sum_ptr_type)arg1)->tag != 9) { goto __ats_lab_30_0 ; }
__ats_lab_29_1:
tmp38 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp39 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp40 = loop_9 (arg0, tmp38) ;
arg0 = tmp40 ;
arg1 = tmp39 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_30 */
__ats_lab_30_0:
if (((ats_sum_ptr_type)arg1)->tag != 10) { goto __ats_lab_31_0 ; }
__ats_lab_30_1:
tmp41 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp42 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp43 = loop_9 (arg0, tmp41) ;
arg0 = tmp43 ;
arg1 = tmp42 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_31 */
__ats_lab_31_0:
if (((ats_sum_ptr_type)arg1)->tag != 11) { goto __ats_lab_32_0 ; }
__ats_lab_31_1:
tmp44 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
arg0 = arg0 ;
arg1 = tmp44 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_32 */
__ats_lab_32_0:
if (((ats_sum_ptr_type)arg1)->tag != 12) { goto __ats_lab_33_0 ; }
__ats_lab_32_1:
tmp45 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp28 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_add (arg0, tmp45) ;
break ;

/* branch: __ats_lab_33 */
__ats_lab_33_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_36_0 ; }
__ats_lab_33_1:
tmp46 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp51 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_listize (tmp46) ;
tmp28 = traux_10 (arg0, tmp51) ;
break ;

/* branch: __ats_lab_36 */
__ats_lab_36_0:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_37_0 ; }
__ats_lab_36_1:
tmp52 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
arg0 = arg0 ;
arg1 = tmp52 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_37 */
__ats_lab_37_0:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_40_0 ; }
__ats_lab_37_1:
tmp53 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp28 = list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type (&loop_9, arg0, tmp53) ;
break ;

/* branch: __ats_lab_40 */
__ats_lab_40_0:
if (((ats_sum_ptr_type)arg1)->tag != 16) { goto __ats_lab_41_0 ; }
__ats_lab_40_1:
tmp60 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp61 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp62 = loop_9 (arg0, tmp60) ;
arg0 = tmp62 ;
arg1 = tmp61 ;
goto __ats_lab_loop_9 ; // tail call
break ;

/* branch: __ats_lab_41 */
__ats_lab_41_0:
if (((ats_sum_ptr_type)arg1)->tag != 17) { goto __ats_lab_42_0 ; }
__ats_lab_41_1:
tmp28 = arg0 ;
break ;

/* branch: __ats_lab_42 */
__ats_lab_42_0:
if (((ats_sum_ptr_type)arg1)->tag != 18) { goto __ats_lab_43_0 ; }
__ats_lab_42_1:
tmp63 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp64 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp65 = loop_9 (arg0, tmp63) ;
tmp28 = list_fold_left_fun_01351_ats_ptr_type_ats_ptr_type (&loop_9, tmp65, tmp64) ;
break ;

/* branch: __ats_lab_43 */
__ats_lab_43_0:
// if (((ats_sum_ptr_type)arg1)->tag != 19) { ats_deadcode_failure_handle () ; }
__ats_lab_43_1:
tmp28 = arg0 ;
break ;
} while (0) ;
return (tmp28) ;
} /* end of [loop_9] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 3869(line=172, offs=15) -- 5607(line=241, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_fvs (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp27) ;
ATSlocal (ats_ptr_type, tmp66) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_fvs:
tmp66 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varset_vt_nil () ;
tmp27 = loop_9 (tmp66, arg0) ;
return (tmp27) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_fvs] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 5680(line=247, offs=3) -- 8425(line=348, offs=4)
*/
ATSglobaldec()
ats_bool_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp67) ;
ATSlocal (ats_ptr_type, tmp68) ;
ATSlocal (ats_ptr_type, tmp69) ;
ATSlocal (ats_ptr_type, tmp70) ;
ATSlocal (ats_ptr_type, tmp71) ;
ATSlocal (ats_bool_type, tmp72) ;
ATSlocal (ats_bool_type, tmp73) ;
ATSlocal (ats_ptr_type, tmp74) ;
ATSlocal (ats_ptr_type, tmp75) ;
ATSlocal (ats_ptr_type, tmp76) ;
ATSlocal (ats_ptr_type, tmp77) ;
ATSlocal (ats_ptr_type, tmp78) ;
ATSlocal (ats_ptr_type, tmp79) ;
ATSlocal (ats_ptr_type, tmp80) ;
ATSlocal (ats_ptr_type, tmp81) ;
ATSlocal (ats_bool_type, tmp82) ;
ATSlocal (ats_ptr_type, tmp83) ;
ATSlocal (ats_ptr_type, tmp84) ;
ATSlocal (ats_ptr_type, tmp85) ;
ATSlocal (ats_ptr_type, tmp86) ;
ATSlocal (ats_bool_type, tmp87) ;
ATSlocal (ats_ptr_type, tmp88) ;
ATSlocal (ats_ptr_type, tmp89) ;
ATSlocal (ats_ptr_type, tmp90) ;
ATSlocal (ats_ptr_type, tmp91) ;
ATSlocal (ats_bool_type, tmp92) ;
ATSlocal (ats_ptr_type, tmp93) ;
ATSlocal (ats_ptr_type, tmp94) ;
ATSlocal (ats_ptr_type, tmp95) ;
ATSlocal (ats_ptr_type, tmp96) ;
ATSlocal (ats_bool_type, tmp97) ;
ATSlocal (ats_int_type, tmp98) ;
ATSlocal (ats_ptr_type, tmp99) ;
ATSlocal (ats_int_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_ptr_type, tmp108) ;
ATSlocal (ats_ptr_type, tmp109) ;
ATSlocal (ats_ptr_type, tmp110) ;
ATSlocal (ats_bool_type, tmp111) ;
ATSlocal (ats_ptr_type, tmp112) ;
ATSlocal (ats_ptr_type, tmp113) ;
ATSlocal (ats_ptr_type, tmp114) ;
ATSlocal (ats_ptr_type, tmp115) ;
ATSlocal (ats_ptr_type, tmp116) ;
ATSlocal (ats_ptr_type, tmp117) ;
ATSlocal (ats_bool_type, tmp118) ;
ATSlocal (ats_ptr_type, tmp119) ;
ATSlocal (ats_ptr_type, tmp120) ;
ATSlocal (ats_ptr_type, tmp121) ;
ATSlocal (ats_ptr_type, tmp122) ;
ATSlocal (ats_ptr_type, tmp123) ;
ATSlocal (ats_ptr_type, tmp124) ;
ATSlocal (ats_bool_type, tmp125) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq:
do {
/* branch: __ats_lab_44 */
__ats_lab_44_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_47_0 ; }
__ats_lab_44_1:
tmp68 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_45 */
__ats_lab_45_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_46_0 ; }
__ats_lab_45_1:
tmp69 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2var_s2var (tmp68, tmp69) ;
break ;

/* branch: __ats_lab_46 */
__ats_lab_46_0:
__ats_lab_46_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_47 */
__ats_lab_47_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_50_0 ; }
__ats_lab_47_1:
tmp70 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_48 */
__ats_lab_48_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_49_0 ; }
__ats_lab_48_1:
tmp71 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2cst_s2cst (tmp70, tmp71) ;
break ;

/* branch: __ats_lab_49 */
__ats_lab_49_0:
__ats_lab_49_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_50 */
__ats_lab_50_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_53_0 ; }
__ats_lab_50_1:
do {
/* branch: __ats_lab_51 */
__ats_lab_51_0:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_52_0 ; }
__ats_lab_51_1:
tmp67 = ats_true_bool ;
break ;

/* branch: __ats_lab_52 */
__ats_lab_52_0:
__ats_lab_52_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_53 */
__ats_lab_53_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_56_0 ; }
__ats_lab_53_1:
do {
/* branch: __ats_lab_54 */
__ats_lab_54_0:
if (((ats_sum_ptr_type)arg1)->tag != 3) { goto __ats_lab_55_0 ; }
__ats_lab_54_1:
tmp67 = ats_true_bool ;
break ;

/* branch: __ats_lab_55 */
__ats_lab_55_0:
__ats_lab_55_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_56 */
__ats_lab_56_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_59_0 ; }
__ats_lab_56_1:
tmp72 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
do {
/* branch: __ats_lab_57 */
__ats_lab_57_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_58_0 ; }
__ats_lab_57_1:
tmp73 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp67 = atspre_eq_bool_bool (tmp72, tmp73) ;
break ;

/* branch: __ats_lab_58 */
__ats_lab_58_0:
__ats_lab_58_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_59 */
__ats_lab_59_0:
if (((ats_sum_ptr_type)arg0)->tag != 5) { goto __ats_lab_62_0 ; }
__ats_lab_59_1:
tmp74 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_60 */
__ats_lab_60_0:
if (((ats_sum_ptr_type)arg1)->tag != 5) { goto __ats_lab_61_0 ; }
__ats_lab_60_1:
tmp75 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2var_s2var (tmp74, tmp75) ;
break ;

/* branch: __ats_lab_61 */
__ats_lab_61_0:
__ats_lab_61_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_62 */
__ats_lab_62_0:
if (((ats_sum_ptr_type)arg0)->tag != 6) { goto __ats_lab_65_0 ; }
__ats_lab_62_1:
tmp76 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_63 */
__ats_lab_63_0:
if (((ats_sum_ptr_type)arg1)->tag != 6) { goto __ats_lab_64_0 ; }
__ats_lab_63_1:
tmp77 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
arg0 = tmp76 ;
arg1 = tmp77 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
break ;

/* branch: __ats_lab_64 */
__ats_lab_64_0:
__ats_lab_64_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_65 */
__ats_lab_65_0:
if (((ats_sum_ptr_type)arg0)->tag != 7) { goto __ats_lab_68_0 ; }
__ats_lab_65_1:
tmp78 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp79 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_66 */
__ats_lab_66_0:
if (((ats_sum_ptr_type)arg1)->tag != 7) { goto __ats_lab_67_0 ; }
__ats_lab_66_1:
tmp80 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp81 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp82 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp78, tmp80) ;
if (tmp82) {
arg0 = tmp79 ;
arg1 = tmp81 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_67 */
__ats_lab_67_0:
__ats_lab_67_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_68 */
__ats_lab_68_0:
if (((ats_sum_ptr_type)arg0)->tag != 8) { goto __ats_lab_71_0 ; }
__ats_lab_68_1:
tmp83 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp84 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_69 */
__ats_lab_69_0:
if (((ats_sum_ptr_type)arg1)->tag != 8) { goto __ats_lab_70_0 ; }
__ats_lab_69_1:
tmp85 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp86 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp87 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp83, tmp85) ;
if (tmp87) {
arg0 = tmp84 ;
arg1 = tmp86 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_70 */
__ats_lab_70_0:
__ats_lab_70_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_71 */
__ats_lab_71_0:
if (((ats_sum_ptr_type)arg0)->tag != 9) { goto __ats_lab_74_0 ; }
__ats_lab_71_1:
tmp88 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp89 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_72 */
__ats_lab_72_0:
if (((ats_sum_ptr_type)arg1)->tag != 9) { goto __ats_lab_73_0 ; }
__ats_lab_72_1:
tmp90 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp91 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp92 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp88, tmp90) ;
if (tmp92) {
arg0 = tmp89 ;
arg1 = tmp91 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_73 */
__ats_lab_73_0:
__ats_lab_73_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_74 */
__ats_lab_74_0:
if (((ats_sum_ptr_type)arg0)->tag != 10) { goto __ats_lab_77_0 ; }
__ats_lab_74_1:
tmp93 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp94 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_75 */
__ats_lab_75_0:
if (((ats_sum_ptr_type)arg1)->tag != 10) { goto __ats_lab_76_0 ; }
__ats_lab_75_1:
tmp95 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp96 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp97 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp93, tmp95) ;
if (tmp97) {
arg0 = tmp94 ;
arg1 = tmp96 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_76 */
__ats_lab_76_0:
__ats_lab_76_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_77 */
__ats_lab_77_0:
if (((ats_sum_ptr_type)arg0)->tag != 11) { goto __ats_lab_80_0 ; }
__ats_lab_77_1:
tmp98 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp99 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
do {
/* branch: __ats_lab_78 */
__ats_lab_78_0:
if (((ats_sum_ptr_type)arg1)->tag != 11) { goto __ats_lab_79_0 ; }
__ats_lab_78_1:
tmp100 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp101 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp102 = atspre_ieq (tmp98, tmp100) ;
if (tmp102) {
arg0 = tmp99 ;
arg1 = tmp101 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_79 */
__ats_lab_79_0:
__ats_lab_79_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_80 */
__ats_lab_80_0:
if (((ats_sum_ptr_type)arg0)->tag != 12) { goto __ats_lab_83_0 ; }
__ats_lab_80_1:
tmp103 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_81 */
__ats_lab_81_0:
if (((ats_sum_ptr_type)arg1)->tag != 12) { goto __ats_lab_82_0 ; }
__ats_lab_81_1:
tmp104 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2var_s2var (tmp103, tmp104) ;
break ;

/* branch: __ats_lab_82 */
__ats_lab_82_0:
__ats_lab_82_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_83 */
__ats_lab_83_0:
if (((ats_sum_ptr_type)arg0)->tag != 13) { goto __ats_lab_86_0 ; }
__ats_lab_83_1:
tmp105 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_84 */
__ats_lab_84_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_85_0 ; }
__ats_lab_84_1:
tmp106 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_is_equal (tmp105, tmp106) ;
break ;

/* branch: __ats_lab_85 */
__ats_lab_85_0:
__ats_lab_85_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_86 */
__ats_lab_86_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_89_0 ; }
__ats_lab_86_1:
tmp107 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp108 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_87 */
__ats_lab_87_0:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_88_0 ; }
__ats_lab_87_1:
tmp109 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp110 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp111 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_intinf (tmp107, tmp109) ;
if (tmp111) {
arg0 = tmp108 ;
arg1 = tmp110 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_88 */
__ats_lab_88_0:
__ats_lab_88_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_89 */
__ats_lab_89_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_92_0 ; }
__ats_lab_89_1:
tmp112 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_90 */
__ats_lab_90_0:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_91_0 ; }
__ats_lab_90_1:
tmp113 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq (tmp112, tmp113) ;
break ;

/* branch: __ats_lab_91 */
__ats_lab_91_0:
__ats_lab_91_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_92 */
__ats_lab_92_0:
if (((ats_sum_ptr_type)arg0)->tag != 16) { goto __ats_lab_95_0 ; }
__ats_lab_92_1:
tmp114 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp115 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_93 */
__ats_lab_93_0:
if (((ats_sum_ptr_type)arg1)->tag != 16) { goto __ats_lab_94_0 ; }
__ats_lab_93_1:
tmp116 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp117 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp118 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp114, tmp116) ;
if (tmp118) {
arg0 = tmp115 ;
arg1 = tmp117 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq ; // tail call
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_94 */
__ats_lab_94_0:
__ats_lab_94_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_95 */
__ats_lab_95_0:
if (((ats_sum_ptr_type)arg0)->tag != 17) { goto __ats_lab_98_0 ; }
__ats_lab_95_1:
tmp119 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
do {
/* branch: __ats_lab_96 */
__ats_lab_96_0:
if (((ats_sum_ptr_type)arg1)->tag != 17) { goto __ats_lab_97_0 ; }
__ats_lab_96_1:
tmp120 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2zexp_syneq (tmp119, tmp120) ;
break ;

/* branch: __ats_lab_97 */
__ats_lab_97_0:
__ats_lab_97_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_98 */
__ats_lab_98_0:
if (((ats_sum_ptr_type)arg0)->tag != 18) { goto __ats_lab_101_0 ; }
__ats_lab_98_1:
tmp121 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp122 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
do {
/* branch: __ats_lab_99 */
__ats_lab_99_0:
if (((ats_sum_ptr_type)arg1)->tag != 18) { goto __ats_lab_100_0 ; }
__ats_lab_99_1:
tmp123 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp124 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_1) ;
tmp125 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp121, tmp123) ;
if (tmp125) {
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq (tmp122, tmp124) ;
} else {
tmp67 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_100 */
__ats_lab_100_0:
__ats_lab_100_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_101 */
__ats_lab_101_0:
// if (((ats_sum_ptr_type)arg0)->tag != 19) { ats_deadcode_failure_handle () ; }
__ats_lab_101_1:
tmp67 = ats_false_bool ;
break ;
} while (0) ;
return (tmp67) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 8499(line=354, offs=3) -- 8823(line=365, offs=6)
*/
ATSglobaldec()
ats_bool_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp126) ;
ATSlocal (ats_ptr_type, tmp127) ;
ATSlocal (ats_ptr_type, tmp128) ;
ATSlocal (ats_ptr_type, tmp129) ;
ATSlocal (ats_ptr_type, tmp130) ;
ATSlocal (ats_bool_type, tmp131) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq:
do {
/* branch: __ats_lab_102 */
__ats_lab_102_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_105_0 ; }
__ats_lab_102_1:
tmp127 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp128 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
do {
/* branch: __ats_lab_103 */
__ats_lab_103_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_104_0 ; }
__ats_lab_103_1:
tmp129 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp130 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_1) ;
tmp131 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (tmp127, tmp129) ;
if (tmp131) {
arg0 = tmp128 ;
arg1 = tmp130 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq ; // tail call
} else {
tmp126 = ats_false_bool ;
} /* end of [if] */
break ;

/* branch: __ats_lab_104 */
__ats_lab_104_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_104_1:
tmp126 = ats_false_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_105 */
__ats_lab_105_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_105_1:
do {
/* branch: __ats_lab_106 */
__ats_lab_106_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_107_0 ; }
__ats_lab_106_1:
tmp126 = ats_false_bool ;
break ;

/* branch: __ats_lab_107 */
__ats_lab_107_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_107_1:
tmp126 = ats_true_bool ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp126) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 8913(line=373, offs=1) -- 9251(line=390, offs=4)
*/
ATSstaticdec()
ats_bool_type
synlt_s2hnf_s2hnf_16 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp132) ;
ATSlocal (ats_ptr_type, tmp133) ;
ATSlocal (ats_ptr_type, tmp134) ;
ATSlocal (ats_ptr_type, tmp135) ;

__ats_lab_synlt_s2hnf_s2hnf_16:
tmp133 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (arg1) ;
tmp134 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp133), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_108 */
__ats_lab_108_0:
if (((ats_sum_ptr_type)tmp134)->tag != 17) { goto __ats_lab_109_0 ; }
__ats_lab_108_1:
tmp135 = ats_caselptrlab_mac(anairiats_sum_2, tmp134, atslab_1) ;
tmp132 = synlte_s2hnf_s2explst_18 (arg0, tmp135) ;
break ;

/* branch: __ats_lab_109 */
__ats_lab_109_0:
__ats_lab_109_1:
tmp132 = ats_false_bool ;
break ;
} while (0) ;
return (tmp132) ;
} /* end of [synlt_s2hnf_s2hnf_16] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 9281(line=393, offs=1) -- 9404(line=397, offs=65)
*/
ATSstaticdec()
ats_bool_type
synlte_s2hnf_s2hnf_17 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp136) ;
ATSlocal (ats_bool_type, tmp137) ;

__ats_lab_synlte_s2hnf_s2hnf_17:
tmp137 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf_syneq (arg0, arg1) ;
if (tmp137) {
tmp136 = ats_true_bool ;
} else {
tmp136 = synlt_s2hnf_s2hnf_16 (arg0, arg1) ;
} /* end of [if] */
return (tmp136) ;
} /* end of [synlte_s2hnf_s2hnf_17] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 9502(line=405, offs=1) -- 9841(line=418, offs=25)
*/
ATSstaticdec()
ats_bool_type
synlte_s2hnf_s2explst_18 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp138) ;
ATSlocal (ats_ptr_type, tmp139) ;
ATSlocal (ats_ptr_type, tmp140) ;
ATSlocal (ats_ptr_type, tmp141) ;
ATSlocal (ats_bool_type, tmp142) ;

__ats_lab_synlte_s2hnf_s2explst_18:
do {
/* branch: __ats_lab_110 */
__ats_lab_110_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_111_0 ; }
__ats_lab_110_1:
tmp139 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp140 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_1) ;
tmp141 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (tmp139) ;
tmp142 = synlte_s2hnf_s2hnf_17 (arg0, tmp141) ;
if (tmp142) {
tmp138 = ats_true_bool ;
} else {
arg0 = arg0 ;
arg1 = tmp140 ;
goto __ats_lab_synlte_s2hnf_s2explst_18 ; // tail call
} /* end of [if] */
break ;

/* branch: __ats_lab_111 */
__ats_lab_111_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_111_1:
tmp138 = ats_false_bool ;
break ;
} while (0) ;
return (tmp138) ;
} /* end of [synlte_s2hnf_s2explst_18] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 9905(line=424, offs=1) -- 10058(line=431, offs=4)
*/
ATSstaticdec()
ats_bool_type
s2exp_synlt_19 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp143) ;
ATSlocal (ats_ptr_type, tmp144) ;
ATSlocal (ats_ptr_type, tmp145) ;

__ats_lab_s2exp_synlt_19:
tmp144 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg0) ;
tmp145 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg1) ;
tmp143 = synlt_s2hnf_s2hnf_16 (tmp144, tmp145) ;
return (tmp143) ;
} /* end of [s2exp_synlt_19] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 10088(line=434, offs=1) -- 10243(line=441, offs=4)
*/
ATSstaticdec()
ats_bool_type
s2exp_synlte_20 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp146) ;
ATSlocal (ats_ptr_type, tmp147) ;
ATSlocal (ats_ptr_type, tmp148) ;

__ats_lab_s2exp_synlte_20:
tmp147 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg0) ;
tmp148 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg1) ;
tmp146 = synlte_s2hnf_s2hnf_17 (tmp147, tmp148) ;
return (tmp146) ;
} /* end of [s2exp_synlte_20] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 10324(line=449, offs=5) -- 10590(line=462, offs=6)
*/
ATSstaticdec()
ats_ptr_type
auxlt_21 (ats_bool_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp149) ;
ATSlocal (ats_bool_type, tmp150) ;

__ats_lab_auxlt_21:
if (arg0) {
tmp149 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlt (arg1, arg2) ;
} else {
tmp150 = s2exp_synlt_19 (arg1, arg2) ;
if (tmp150) {
ats_ptrget_mac(ats_int_type, arg3) = 1 ;
} else {
ats_ptrget_mac(ats_int_type, arg3) = -1 ;
} /* end of [if] */
tmp149 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bool (tmp150) ;
} /* end of [if] */
return (tmp149) ;
} /* end of [auxlt_21] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 10631(line=465, offs=5) -- 10906(line=478, offs=6)
*/
ATSstaticdec()
ats_ptr_type
auxlte_22 (ats_bool_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp152) ;
ATSlocal (ats_bool_type, tmp153) ;

__ats_lab_auxlte_22:
if (arg0) {
tmp152 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlte (arg1, arg2) ;
} else {
tmp153 = s2exp_synlte_20 (arg1, arg2) ;
if (tmp153) {
ats_ptrget_mac(ats_int_type, arg3) = 1 ;
} else {
ats_ptrget_mac(ats_int_type, arg3) = -1 ;
} /* end of [if] */
tmp152 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bool (tmp153) ;
} /* end of [if] */
return (tmp152) ;
} /* end of [auxlte_22] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 10929(line=480, offs=5) -- 12215(line=528, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxlst_23 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp155) ;
ATSlocal (ats_ptr_type, tmp156) ;
ATSlocal (ats_ptr_type, tmp157) ;
ATSlocal (ats_int_type, tmp158) ;
ATSlocal (ats_int_type, tmp159) ;
ATSlocal (ats_ptr_type, tmp160) ;
ATSlocal (ats_ptr_type, tmp161) ;
ATSlocal (ats_bool_type, tmp162) ;
ATSlocal (ats_ptr_type, tmp163) ;
ATSlocal (ats_ptr_type, tmp164) ;
ATSlocal (ats_bool_type, tmp165) ;
ATSlocal (ats_bool_type, tmp166) ;
ATSlocal (ats_ptr_type, tmp167) ;
ATSlocal (ats_ptr_type, tmp168) ;
ATSlocal (ats_ptr_type, tmp169) ;
ATSlocal (ats_ptr_type, tmp170) ;
ATSlocal (ats_bool_type, tmp171) ;

__ats_lab_auxlst_23:
do {
/* branch: __ats_lab_112 */
__ats_lab_112_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_118_0 ; }
__ats_lab_112_1:
tmp156 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp157 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
/* ats_int_type tmp158 ; */
tmp158 = 0 ;
/* ats_int_type tmp159 ; */
tmp159 = 0 ;
do {
/* branch: __ats_lab_113 */
__ats_lab_113_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_117_0 ; }
__ats_lab_113_1:
tmp160 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp161 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_1) ;
tmp163 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp156), atslab_s2exp_srt) ;
tmp162 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_int (tmp163) ;
tmp164 = auxlt_21 (tmp162, tmp156, tmp160, (&tmp158)) ;
do {
/* branch: __ats_lab_114 */
__ats_lab_114_0:
__ats_lab_114_1:
tmp165 = atspre_gt_int_int (tmp158, 0) ;
if (!tmp165) { goto __ats_lab_115_1 ; }
tmp155 = tmp164 ;
break ;

/* branch: __ats_lab_115 */
__ats_lab_115_0:
__ats_lab_115_1:
tmp166 = atspre_eq_int_int (tmp158, 0) ;
if (!tmp166) { goto __ats_lab_116_1 ; }
tmp167 = auxlte_22 (tmp162, tmp156, tmp160, (&tmp159)) ;
tmp168 = auxlst_23 (tmp157, tmp161) ;
tmp169 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bmul (tmp167, tmp168) ;
tmp155 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_badd (tmp164, tmp169) ;
break ;

/* branch: __ats_lab_116 */
__ats_lab_116_0:
__ats_lab_116_1:
tmp170 = auxlte_22 (tmp162, tmp156, tmp160, (&tmp159)) ;
tmp171 = atspre_gte_int_int (tmp159, 0) ;
if (tmp171) {
arg0 = tmp157 ;
arg1 = tmp161 ;
goto __ats_lab_auxlst_23 ; // tail call
} else {
tmp155 = tmp170 ;
} /* end of [if] */
break ;
} while (0) ;
break ;

/* branch: __ats_lab_117 */
__ats_lab_117_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_117_1:
tmp155 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bool (ats_true_bool) ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_118 */
__ats_lab_118_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_118_1:
tmp155 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_bool (ats_false_bool) ;
break ;
} while (0) ;
return (tmp155) ;
} /* end of [auxlst_23] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 12264(line=532, offs=5) -- 12355(line=533, offs=72)
*/
ATSstaticdec()
ats_ptr_type
s2exp_metdec_reduce_24 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp172) ;

__ats_lab_s2exp_metdec_reduce_24:
tmp172 = auxlst_23 (arg0, arg1) ;
return (tmp172) ;
} /* end of [s2exp_metdec_reduce_24] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 12444(line=543, offs=1) -- 13057(line=570, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxeq_25 (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp173) ;
ATSlocal (ats_ptr_type, tmp174) ;
ATSlocal (ats_ptr_type, tmp175) ;
ATSlocal (ats_ptr_type, tmp176) ;
ATSlocal (ats_bool_type, tmp177) ;
ATSlocal (ats_bool_type, tmp178) ;
ATSlocal (ats_bool_type, tmp179) ;
ATSlocal (ats_bool_type, tmp180) ;

__ats_lab_auxeq_25:
tmp174 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, arg1), atslab_s2exp_srt) ;
tmp175 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, arg1) ;
tmp176 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, arg2) ;
do {
/* branch: __ats_lab_119 */
__ats_lab_119_0:
__ats_lab_119_1:
tmp177 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_int (tmp174) ;
if (!tmp177) { goto __ats_lab_120_1 ; }
tmp173 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq (tmp175, tmp176) ;
break ;

/* branch: __ats_lab_120 */
__ats_lab_120_0:
__ats_lab_120_1:
tmp178 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_addr (tmp174) ;
if (!tmp178) { goto __ats_lab_121_1 ; }
tmp173 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq (tmp175, tmp176) ;
break ;

/* branch: __ats_lab_121 */
__ats_lab_121_0:
__ats_lab_121_1:
tmp179 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_is_bool (tmp174) ;
if (!tmp179) { goto __ats_lab_122_1 ; }
tmp173 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_beq (tmp175, tmp176) ;
break ;

/* branch: __ats_lab_122 */
__ats_lab_122_0:
__ats_lab_122_1:
tmp180 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_syneq (arg1, arg2) ;
if (tmp180) {
tmp173 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true ;
} else {
tmp173 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err (_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool) ;
} /* end of [if] */
break ;
} while (0) ;
return (tmp173) ;
} /* end of [auxeq_25] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 13081(line=573, offs=1) -- 13445(line=592, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxbind_26 (ats_ptr_type arg0, ats_ref_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp181) ;
ATSlocal (ats_ptr_type, tmp182) ;
ATSlocal (ats_ptr_type, tmp183) ;
ATSlocal (ats_ptr_type, tmp184) ;
// ATSlocal_void (tmp185) ;

__ats_lab_auxbind_26:
tmp182 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_var (arg2) ;
tmp183 = auxeq_25 (arg1, tmp182, arg3) ;
tmp184 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg3) ;
/* tmp185 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_hypadd_bind (arg0, arg2, tmp184) ;
tmp181 = tmp183 ;
return (tmp181) ;
} /* end of [auxbind_26] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 13515(line=598, offs=3) -- 15188(line=663, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp186) ;
ATSlocal (ats_ptr_type, tmp187) ;
ATSlocal (ats_ptr_type, tmp188) ;
ATSlocal (ats_ptr_type, tmp189) ;
ATSlocal (ats_ptr_type, tmp190) ;
ATSlocal (ats_int_type, tmp191) ;
ATSlocal (ats_ptr_type, tmp192) ;
ATSlocal (ats_ptr_type, tmp193) ;
ATSlocal (ats_bool_type, tmp194) ;
ATSlocal (ats_bool_type, tmp195) ;
ATSlocal (ats_bool_type, tmp196) ;
ATSlocal (ats_ptr_type, tmp197) ;
ATSlocal (ats_ptr_type, tmp198) ;
ATSlocal (ats_ptr_type, tmp199) ;
ATSlocal (ats_ptr_type, tmp200) ;
ATSlocal (ats_ptr_type, tmp201) ;
ATSlocal (ats_ptr_type, tmp202) ;
ATSlocal (ats_ptr_type, tmp203) ;
ATSlocal (ats_ptr_type, tmp204) ;
ATSlocal (ats_ptr_type, tmp205) ;
ATSlocal (ats_ptr_type, tmp206) ;
ATSlocal (ats_ptr_type, tmp207) ;
ATSlocal (ats_ptr_type, tmp208) ;
ATSlocal (ats_ptr_type, tmp209) ;
ATSlocal (ats_ptr_type, tmp210) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make:
tmp187 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg1) ;
tmp188 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (tmp187) ;
tmp189 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp188), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_123 */
__ats_lab_123_0:
if (((ats_sum_ptr_type)tmp189)->tag != 7) { goto __ats_lab_124_0 ; }
__ats_lab_123_1:
tmp190 = ats_caselptrlab_mac(anairiats_sum_1, tmp189, atslab_0) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp190) ;
break ;

/* branch: __ats_lab_124 */
__ats_lab_124_0:
if (((ats_sum_ptr_type)tmp189)->tag != 0) { goto __ats_lab_125_0 ; }
__ats_lab_124_1:
tmp191 = ats_caselptrlab_mac(anairiats_sum_7, tmp189, atslab_0) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_int (tmp191) ;
break ;

/* branch: __ats_lab_125 */
__ats_lab_125_0:
if (((ats_sum_ptr_type)tmp189)->tag != 1) { goto __ats_lab_126_0 ; }
__ats_lab_125_1:
tmp192 = ats_caselptrlab_mac(anairiats_sum_1, tmp189, atslab_0) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf (tmp192) ;
break ;

/* branch: __ats_lab_126 */
__ats_lab_126_0:
if (((ats_sum_ptr_type)tmp189)->tag != 4) { goto __ats_lab_131_0 ; }
__ats_lab_126_1:
tmp193 = ats_caselptrlab_mac(anairiats_sum_1, tmp189, atslab_0) ;
do {
/* branch: __ats_lab_127 */
__ats_lab_127_0:
__ats_lab_127_1:
tmp194 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2cstref_equ_cst (_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_null_addr, tmp193) ;
if (!tmp194) { goto __ats_lab_128_1 ; }
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_null ;
break ;

/* branch: __ats_lab_128 */
__ats_lab_128_0:
__ats_lab_128_1:
tmp195 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2cstref_equ_cst (_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_true_bool, tmp193) ;
if (!tmp195) { goto __ats_lab_129_1 ; }
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true ;
break ;

/* branch: __ats_lab_129 */
__ats_lab_129_0:
__ats_lab_129_1:
tmp196 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2cstref_equ_cst (_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__the_false_bool, tmp193) ;
if (!tmp196) { goto __ats_lab_130_1 ; }
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false ;
break ;

/* branch: __ats_lab_130 */
__ats_lab_130_0:
__ats_lab_130_1:
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst (tmp193) ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_131 */
__ats_lab_131_0:
if (((ats_sum_ptr_type)tmp189)->tag != 17) { goto __ats_lab_134_0 ; }
__ats_lab_131_1:
tmp197 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_0) ;
tmp198 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_1) ;
tmp199 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp197), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_132 */
__ats_lab_132_0:
if (((ats_sum_ptr_type)tmp199)->tag != 4) { goto __ats_lab_133_0 ; }
__ats_lab_132_1:
tmp200 = ats_caselptrlab_mac(anairiats_sum_1, tmp199, atslab_0) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_s2cst_s2explst (arg0, tmp200, tmp198) ;
break ;

/* branch: __ats_lab_133 */
__ats_lab_133_0:
__ats_lab_133_1:
tmp201 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, tmp197) ;
tmp202 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (arg0, tmp198) ;
tmp186 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp186)->tag = 18 ;
ats_selptrset_mac(anairiats_sum_2, tmp186, atslab_0, tmp201) ;
ats_selptrset_mac(anairiats_sum_2, tmp186, atslab_1, tmp202) ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_134 */
__ats_lab_134_0:
if (((ats_sum_ptr_type)tmp189)->tag != 15) { goto __ats_lab_135_0 ; }
__ats_lab_134_1:
tmp203 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_0) ;
tmp204 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_1) ;
tmp186 = auxeq_25 (arg0, tmp203, tmp204) ;
break ;

/* branch: __ats_lab_135 */
__ats_lab_135_0:
if (((ats_sum_ptr_type)tmp189)->tag != 21) { goto __ats_lab_136_0 ; }
__ats_lab_135_1:
tmp205 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_0) ;
tmp206 = ats_caselptrlab_mac(anairiats_sum_2, tmp189, atslab_1) ;
tmp207 = s2exp_metdec_reduce_24 (tmp205, tmp206) ;
arg0 = arg0 ;
arg1 = tmp207 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make ; // tail call
break ;

/* branch: __ats_lab_136 */
__ats_lab_136_0:
if (((ats_sum_ptr_type)tmp189)->tag != 13) { goto __ats_lab_137_0 ; }
__ats_lab_136_1:
tmp208 = ats_caselptrlab_mac(anairiats_sum_1, tmp189, atslab_0) ;
tmp209 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2zexp_make_s2exp (tmp208) ;
tmp186 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp186)->tag = 17 ;
ats_selptrset_mac(anairiats_sum_1, tmp186, atslab_0, tmp209) ;
break ;

/* branch: __ats_lab_137 */
__ats_lab_137_0:
__ats_lab_137_1:
tmp210 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_6, tmp188), atslab_s2exp_srt) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_err (tmp210) ;
break ;
} while (0) ;
return (tmp186) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 15242(line=667, offs=3) -- 15450(line=671, offs=54)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_h3ypo (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp211) ;
ATSlocal (ats_ptr_type, tmp212) ;
ATSlocal (ats_ptr_type, tmp213) ;
ATSlocal (ats_ptr_type, tmp214) ;
ATSlocal (ats_ptr_type, tmp215) ;
ATSlocal (ats_ptr_type, tmp216) ;
ATSlocal (ats_ptr_type, tmp217) ;
ATSlocal (ats_ptr_type, tmp218) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_h3ypo:
tmp212 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_8, arg1), atslab_h3ypo_node) ;
do {
/* branch: __ats_lab_138 */
__ats_lab_138_0:
if (((ats_sum_ptr_type)tmp212)->tag != 0) { goto __ats_lab_139_0 ; }
__ats_lab_138_1:
tmp213 = ats_caselptrlab_mac(anairiats_sum_1, tmp212, atslab_0) ;
tmp211 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, tmp213) ;
break ;

/* branch: __ats_lab_139 */
__ats_lab_139_0:
if (((ats_sum_ptr_type)tmp212)->tag != 1) { goto __ats_lab_140_0 ; }
__ats_lab_139_1:
tmp214 = ats_caselptrlab_mac(anairiats_sum_2, tmp212, atslab_0) ;
tmp215 = ats_caselptrlab_mac(anairiats_sum_2, tmp212, atslab_1) ;
tmp216 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_8, arg1), atslab_h3ypo_loc) ;
tmp211 = auxbind_26 (tmp216, arg0, tmp214, tmp215) ;
break ;

/* branch: __ats_lab_140 */
__ats_lab_140_0:
// if (((ats_sum_ptr_type)tmp212)->tag != 2) { ats_deadcode_failure_handle () ; }
__ats_lab_140_1:
tmp217 = ats_caselptrlab_mac(anairiats_sum_2, tmp212, atslab_0) ;
tmp218 = ats_caselptrlab_mac(anairiats_sum_2, tmp212, atslab_1) ;
tmp211 = auxeq_25 (arg0, tmp217, tmp218) ;
break ;
} while (0) ;
return (tmp211) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_h3ypo] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 15553(line=680, offs=3) -- 15744(line=689, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp219) ;
ATSlocal (ats_ptr_type, tmp220) ;
ATSlocal (ats_ptr_type, tmp221) ;
ATSlocal (ats_ptr_type, tmp222) ;
ATSlocal (ats_ptr_type, tmp223) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make:
do {
/* branch: __ats_lab_141 */
__ats_lab_141_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_142_0 ; }
__ats_lab_141_1:
tmp220 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_0) ;
tmp221 = ats_caselptrlab_mac(anairiats_sum_5, arg1, atslab_1) ;
tmp222 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, tmp220) ;
tmp223 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (arg0, tmp221) ;
tmp219 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp219, atslab_0, tmp222) ;
ats_selptrset_mac(anairiats_sum_5, tmp219, atslab_1, tmp223) ;
break ;

/* branch: __ats_lab_142 */
__ats_lab_142_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_142_1:
tmp219 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp219) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 16329(line=716, offs=15) -- 16349(line=716, offs=35)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_nil () {
/* local vardec */
ATSlocal (ats_ptr_type, tmp224) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_nil:
tmp224 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnil_5) ;
return (tmp224) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_nil] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/option_vt.dats: 2556(line=86, offs=16) -- 2611(line=87, offs=49)
*/
ATSstaticdec()
ats_void_type
option_vt_free_01544_ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp231) ;

__ats_lab_option_vt_free_01544_ats_ptr_type:
do {
/* branch: __ats_lab_146 */
__ats_lab_146_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_147_0 ; }
__ats_lab_146_1:
ATS_FREE(arg0) ;
break ;

/* branch: __ats_lab_147 */
__ats_lab_147_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_147_1:
break ;
} while (0) ;
return /* (tmp231) */ ;
} /* end of [option_vt_free_01544_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 16376(line=719, offs=16) -- 16778(line=728, offs=27)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp225) ;
ATSlocal (ats_ptr_type, tmp226) ;
ATSlocal (ats_ptr_type, tmp227) ;
ATSlocal (ats_ptr_type, tmp228) ;
ATSlocal (ats_ptr_type, tmp229) ;
// ATSlocal_void (tmp230) ;
ATSlocal (ats_ptr_type, tmp232) ;
ATSlocal (ats_ptr_type, tmp233) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free:
do {
/* branch: __ats_lab_143 */
__ats_lab_143_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_144_0 ; }
__ats_lab_143_1:
tmp226 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp226 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free ; // tail call
break ;

/* branch: __ats_lab_144 */
__ats_lab_144_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_145_0 ; }
__ats_lab_144_1:
tmp227 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp227 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free ; // tail call
break ;

/* branch: __ats_lab_145 */
__ats_lab_145_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_148_0 ; }
__ats_lab_145_1:
tmp228 = ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_3) ;
tmp229 = ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_4) ;
ATS_FREE(arg0) ;
/* tmp230 = */ option_vt_free_01544_ats_ptr_type (tmp228) ;
arg0 = tmp229 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free ; // tail call
break ;

/* branch: __ats_lab_148 */
__ats_lab_148_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_149_0 ; }
__ats_lab_148_1:
tmp232 = ats_caselptrlab_mac(anairiats_sum_10, arg0, atslab_2) ;
ATS_FREE(arg0) ;
arg0 = tmp232 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free ; // tail call
break ;

/* branch: __ats_lab_149 */
__ats_lab_149_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_150_0 ; }
__ats_lab_149_1:
tmp233 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
ATS_FREE(arg0) ;
arg0 = tmp233 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free ; // tail call
break ;

/* branch: __ats_lab_150 */
__ats_lab_150_0:
// if (((ats_sum_ptr_type)arg0)->tag != 5) { ats_deadcode_failure_handle () ; }
__ats_lab_150_1:
break ;
} while (0) ;
return /* (tmp225) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_free] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 16856(line=733, offs=7) -- 17285(line=744, offs=42)
*/
ATSstaticdec()
ats_ptr_type
aux_34 (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp235) ;
ATSlocal (ats_ptr_type, tmp236) ;
ATSlocal (ats_ptr_type, tmp237) ;
ATSlocal (ats_ptr_type, tmp238) ;
ATSlocal (ats_ptr_type, tmp239) ;
// ATSlocal_void (tmp240) ;
ATSlocal (ats_ptr_type, tmp241) ;
ATSlocal (ats_ptr_type, tmp242) ;

__ats_lab_aux_34:
do {
/* branch: __ats_lab_151 */
__ats_lab_151_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_152_0 ; }
__ats_lab_151_1:
tmp236 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp236 ;
goto __ats_lab_aux_34 ; // tail call
break ;

/* branch: __ats_lab_152 */
__ats_lab_152_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_153_0 ; }
__ats_lab_152_1:
tmp237 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp237 ;
goto __ats_lab_aux_34 ; // tail call
break ;

/* branch: __ats_lab_153 */
__ats_lab_153_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_154_0 ; }
__ats_lab_153_1:
tmp238 = ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_3) ;
tmp239 = ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_4) ;
ATS_FREE(arg0) ;
/* tmp240 = */ option_vt_free_01544_ats_ptr_type (tmp238) ;
arg0 = tmp239 ;
goto __ats_lab_aux_34 ; // tail call
break ;

/* branch: __ats_lab_154 */
__ats_lab_154_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_155_0 ; }
__ats_lab_154_1:
tmp241 = ats_caselptrlab_mac(anairiats_sum_10, arg0, atslab_2) ;
ATS_FREE(arg0) ;
arg0 = tmp241 ;
goto __ats_lab_aux_34 ; // tail call
break ;

/* branch: __ats_lab_155 */
__ats_lab_155_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_156_0 ; }
__ats_lab_155_1:
tmp242 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
ATS_FREE(arg0) ;
tmp235 = tmp242 ;
break ;

/* branch: __ats_lab_156 */
__ats_lab_156_0:
// if (((ats_sum_ptr_type)arg0)->tag != 5) { ats_deadcode_failure_handle () ; }
__ats_lab_156_1:
tmp235 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnil_5) ;
break ;
} while (0) ;
return (tmp235) ;
} /* end of [aux_34] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 16833(line=732, offs=15) -- 17352(line=749, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_pop (ats_ref_type arg0) {
/* local vardec */
// ATSlocal_void (tmp234) ;
ATSlocal (ats_ptr_type, tmp243) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_pop:
tmp243 = aux_34 (ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp243 ;
return /* (tmp234) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_pop] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 17408(line=752, offs=16) -- 17481(line=754, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_push (ats_ref_type arg0) {
/* local vardec */
// ATSlocal_void (tmp244) ;
ATSlocal (ats_ptr_type, tmp245) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_push:
tmp245 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp245)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_1, tmp245, atslab_0, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp245 ;
return /* (tmp244) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_push] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 17565(line=760, offs=3) -- 18795(line=812, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp246) ;
ATSlocal (ats_ptr_type, tmp247) ;
ATSlocal (ats_ptr_type, tmp248) ;
ATSlocal (ats_ptr_type, tmp249) ;
ATSlocal (ats_ptr_type, tmp250) ;
ATSlocal (ats_ptr_type, tmp251) ;
ATSlocal (ats_ptr_type, tmp252) ;
ATSlocal (ats_bool_type, tmp253) ;
ATSlocal (ats_bool_type, tmp254) ;
ATSlocal (ats_ptr_type, tmp255) ;
ATSlocal (ats_ptr_type, tmp256) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp:
do {
/* branch: __ats_lab_157 */
__ats_lab_157_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 0) { goto __ats_lab_158_0 ; }
__ats_lab_157_1:
tmp247 = &ats_caselptrlab_mac(anairiats_sum_2, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
arg0 = tmp247 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp ; // tail call
break ;

/* branch: __ats_lab_158 */
__ats_lab_158_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 1) { goto __ats_lab_159_0 ; }
__ats_lab_158_1:
tmp248 = &ats_caselptrlab_mac(anairiats_sum_2, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
arg0 = tmp248 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp ; // tail call
break ;

/* branch: __ats_lab_159 */
__ats_lab_159_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 2) { goto __ats_lab_160_0 ; }
__ats_lab_159_1:
tmp249 = ats_caselptrlab_mac(anairiats_sum_9, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
tmp250 = ats_caselptrlab_mac(anairiats_sum_9, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
tmp251 = ats_caselptrlab_mac(anairiats_sum_9, ats_ptrget_mac(ats_ptr_type, arg0), atslab_2) ;
tmp252 = &ats_caselptrlab_mac(anairiats_sum_9, ats_ptrget_mac(ats_ptr_type, arg0), atslab_4) ;
tmp254 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__eq_s2cst_s2cst (arg1, tmp249) ;
if (tmp254) {
tmp253 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_syneq (arg2, tmp250) ;
} else {
tmp253 = ats_false_bool ;
} /* end of [if] */
if (tmp253) {
tmp246 = ATS_MALLOC(sizeof(anairiats_sum_11)) ;
ats_selptrset_mac(anairiats_sum_11, tmp246, atslab_0, tmp251) ;
} else {
arg0 = tmp252 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp ; // tail call
} /* end of [if] */
break ;

/* branch: __ats_lab_160 */
__ats_lab_160_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 3) { goto __ats_lab_161_0 ; }
__ats_lab_160_1:
tmp255 = &ats_caselptrlab_mac(anairiats_sum_10, ats_ptrget_mac(ats_ptr_type, arg0), atslab_2) ;
arg0 = tmp255 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp ; // tail call
break ;

/* branch: __ats_lab_161 */
__ats_lab_161_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 4) { goto __ats_lab_162_0 ; }
__ats_lab_161_1:
tmp256 = &ats_caselptrlab_mac(anairiats_sum_1, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
arg0 = tmp256 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp ; // tail call
break ;

/* branch: __ats_lab_162 */
__ats_lab_162_0:
// if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 5) { ats_deadcode_failure_handle () ; }
__ats_lab_162_1:
tmp246 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp246) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 18886(line=818, offs=3) -- 19928(line=865, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp257) ;
ATSlocal (ats_ptr_type, tmp258) ;
ATSlocal (ats_ptr_type, tmp259) ;
ATSlocal (ats_ptr_type, tmp260) ;
ATSlocal (ats_ptr_type, tmp261) ;
ATSlocal (ats_ptr_type, tmp262) ;
ATSlocal (ats_ptr_type, tmp263) ;
ATSlocal (ats_bool_type, tmp264) ;
ATSlocal (ats_ptr_type, tmp265) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin:
do {
/* branch: __ats_lab_163 */
__ats_lab_163_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 0) { goto __ats_lab_164_0 ; }
__ats_lab_163_1:
tmp258 = &ats_caselptrlab_mac(anairiats_sum_2, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
arg0 = tmp258 ;
arg1 = arg1 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin ; // tail call
break ;

/* branch: __ats_lab_164 */
__ats_lab_164_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 1) { goto __ats_lab_165_0 ; }
__ats_lab_164_1:
tmp259 = &ats_caselptrlab_mac(anairiats_sum_2, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
arg0 = tmp259 ;
arg1 = arg1 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin ; // tail call
break ;

/* branch: __ats_lab_165 */
__ats_lab_165_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 2) { goto __ats_lab_166_0 ; }
__ats_lab_165_1:
tmp260 = &ats_caselptrlab_mac(anairiats_sum_9, ats_ptrget_mac(ats_ptr_type, arg0), atslab_4) ;
arg0 = tmp260 ;
arg1 = arg1 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin ; // tail call
break ;

/* branch: __ats_lab_166 */
__ats_lab_166_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 3) { goto __ats_lab_167_0 ; }
__ats_lab_166_1:
tmp261 = ats_caselptrlab_mac(anairiats_sum_10, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
tmp262 = ats_caselptrlab_mac(anairiats_sum_10, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
tmp263 = &ats_caselptrlab_mac(anairiats_sum_10, ats_ptrget_mac(ats_ptr_type, arg0), atslab_2) ;
tmp264 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_syneq (arg1, tmp262) ;
if (tmp264) {
tmp257 = ATS_MALLOC(sizeof(anairiats_sum_11)) ;
ats_selptrset_mac(anairiats_sum_11, tmp257, atslab_0, tmp261) ;
} else {
arg0 = tmp263 ;
arg1 = arg1 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin ; // tail call
} /* end of [if] */
break ;

/* branch: __ats_lab_167 */
__ats_lab_167_0:
if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 4) { goto __ats_lab_168_0 ; }
__ats_lab_167_1:
tmp265 = &ats_caselptrlab_mac(anairiats_sum_1, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
arg0 = tmp265 ;
arg1 = arg1 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin ; // tail call
break ;

/* branch: __ats_lab_168 */
__ats_lab_168_0:
// if (((ats_sum_ptr_type)ats_ptrget_mac(ats_ptr_type, arg0))->tag != 5) { ats_deadcode_failure_handle () ; }
__ats_lab_168_1:
tmp257 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp257) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 20032(line=872, offs=5) -- 21356(line=918, offs=4)
*/
ATSstaticdec()
ats_void_type
loop_39 (ats_ptr_type arg0, ats_ref_type arg1, ats_ref_type arg2) {
/* local vardec */
// ATSlocal_void (tmp267) ;
ATSlocal (ats_ptr_type, tmp268) ;
ATSlocal (ats_ptr_type, tmp269) ;
ATSlocal (ats_ptr_type, tmp270) ;
ATSlocal (ats_bool_type, tmp271) ;
ATSlocal (ats_ptr_type, tmp273) ;
ATSlocal (ats_ptr_type, tmp274) ;
ATSlocal (ats_ptr_type, tmp275) ;
ATSlocal (ats_ptr_type, tmp276) ;
ATSlocal (ats_ptr_type, tmp277) ;
ATSlocal (ats_ptr_type, tmp278) ;
ATSlocal (ats_ptr_type, tmp279) ;
ATSlocal (ats_ptr_type, tmp280) ;
ATSlocal (ats_ptr_type, tmp281) ;
ATSlocal (ats_ptr_type, tmp283) ;
ATSlocal (ats_ptr_type, tmp284) ;
ATSlocal (ats_ptr_type, tmp285) ;
ATSlocal (ats_ptr_type, tmp286) ;
ATSlocal (ats_ptr_type, tmp287) ;
ATSlocal (ats_ptr_type, tmp288) ;
ATSlocal (ats_ptr_type, tmp289) ;
ATSlocal (ats_ptr_type, tmp290) ;
ATSlocal (ats_ptr_type, tmp291) ;
ATSlocal (ats_ptr_type, tmp292) ;

__ats_lab_loop_39:
do {
/* branch: __ats_lab_169 */
__ats_lab_169_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_170_0 ; }
__ats_lab_169_1:
tmp268 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp269 = &ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
tmp270 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp270, atslab_0, tmp268) ;
ats_selptrset_mac(anairiats_sum_5, tmp270, atslab_1, ats_ptrget_mac(ats_ptr_type, arg1)) ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp270 ;
tmp271 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_is_bool (tmp268) ;
if (tmp271) {
tmp274 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp274)->tag = 12 ;
ats_selptrset_mac(anairiats_sum_1, tmp274, atslab_0, tmp268) ;
tmp273 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp273, atslab_0, tmp274) ;
ats_selptrset_mac(anairiats_sum_5, tmp273, atslab_1, ats_ptrget_mac(ats_ptr_type, arg2)) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp273 ;
} else {
/* empty */
} /* end of [if] */
tmp275 = ats_ptrget_mac(ats_ptr_type, tmp269) ;
arg0 = tmp275 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_39 ; // tail call
break ;

/* branch: __ats_lab_170 */
__ats_lab_170_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_171_0 ; }
__ats_lab_170_1:
tmp276 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp277 = &ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_1) ;
tmp278 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp278, atslab_0, tmp276) ;
ats_selptrset_mac(anairiats_sum_5, tmp278, atslab_1, ats_ptrget_mac(ats_ptr_type, arg2)) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp278 ;
tmp279 = ats_ptrget_mac(ats_ptr_type, tmp277) ;
arg0 = tmp279 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_39 ; // tail call
break ;

/* branch: __ats_lab_171 */
__ats_lab_171_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_174_0 ; }
__ats_lab_171_1:
tmp280 = &ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_3) ;
tmp281 = &ats_caselptrlab_mac(anairiats_sum_9, arg0, atslab_4) ;
tmp283 = ats_ptrget_mac(ats_ptr_type, tmp280) ;
do {
/* branch: __ats_lab_172 */
__ats_lab_172_0:
if (tmp283 == (ats_sum_ptr_type)0) { goto __ats_lab_173_0 ; }
__ats_lab_172_1:
tmp284 = ats_caselptrlab_mac(anairiats_sum_11, tmp283, atslab_0) ;
tmp285 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp285, atslab_0, tmp284) ;
ats_selptrset_mac(anairiats_sum_5, tmp285, atslab_1, ats_ptrget_mac(ats_ptr_type, arg2)) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp285 ;
break ;

/* branch: __ats_lab_173 */
__ats_lab_173_0:
// if (tmp283 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_173_1:
break ;
} while (0) ;
tmp286 = ats_ptrget_mac(ats_ptr_type, tmp281) ;
arg0 = tmp286 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_39 ; // tail call
break ;

/* branch: __ats_lab_174 */
__ats_lab_174_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_175_0 ; }
__ats_lab_174_1:
tmp287 = ats_caselptrlab_mac(anairiats_sum_10, arg0, atslab_0) ;
tmp288 = &ats_caselptrlab_mac(anairiats_sum_10, arg0, atslab_2) ;
tmp289 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp289, atslab_0, tmp287) ;
ats_selptrset_mac(anairiats_sum_5, tmp289, atslab_1, ats_ptrget_mac(ats_ptr_type, arg1)) ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp289 ;
tmp290 = ats_ptrget_mac(ats_ptr_type, tmp288) ;
arg0 = tmp290 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_39 ; // tail call
break ;

/* branch: __ats_lab_175 */
__ats_lab_175_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_176_0 ; }
__ats_lab_175_1:
tmp291 = &ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
tmp292 = ats_ptrget_mac(ats_ptr_type, tmp291) ;
arg0 = tmp292 ;
arg1 = arg1 ;
arg2 = arg2 ;
goto __ats_lab_loop_39 ; // tail call
break ;

/* branch: __ats_lab_176 */
__ats_lab_176_0:
// if (((ats_sum_ptr_type)arg0)->tag != 5) { ats_deadcode_failure_handle () ; }
__ats_lab_176_1:
break ;
} while (0) ;
return /* (tmp267) */ ;
} /* end of [loop_39] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 20013(line=870, offs=19) -- 21515(line=926, offs=4)
*/
ATSglobaldec()
anairiats_rec_12
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_extract (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (anairiats_rec_12, tmp266) ;
ATSlocal (ats_ptr_type, tmp293) ;
ATSlocal (ats_ptr_type, tmp294) ;
// ATSlocal_void (tmp295) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_extract:
/* ats_ptr_type tmp293 ; */
tmp293 = (ats_sum_ptr_type)0 ;
/* ats_ptr_type tmp294 ; */
tmp294 = (ats_sum_ptr_type)0 ;
/* tmp295 = */ loop_39 (arg0, (&tmp293), (&tmp294)) ;
tmp266.atslab_0 = tmp293 ;
tmp266.atslab_1 = tmp294 ;

return (tmp266) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_extract] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 19194(line=690, offs=7) -- 19604(line=704, offs=6)
*/
ATSstaticdec()
ats_void_type
loop_42 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2) {
/* local vardec */
// ATSlocal_void (tmp303) ;
ATSlocal (ats_ptr_type, tmp304) ;
ATSlocal (ats_ptr_type, tmp305) ;
ATSlocal (ats_ptr_type, tmp306) ;
ATSlocal (ats_ptr_type, tmp307) ;
ATSlocal (ats_ptr_type, tmp308) ;
ATSlocal (ats_ptr_type, tmp309) ;

__ats_lab_loop_42:
do {
/* branch: __ats_lab_177 */
__ats_lab_177_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_178_0 ; }
__ats_lab_177_1:
tmp304 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_0) ;
tmp305 = ats_caselptrlab_mac(anairiats_sum_5, arg0, atslab_1) ;
tmp306 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp306, atslab_0, tmp304) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp306 ;
if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 19444(line=699, offs=13) -- 19470(line=699, offs=39)") ; }
tmp307 = &ats_caselptrlab_mac(anairiats_sum_5, ats_ptrget_mac(ats_ptr_type, arg2), atslab_1) ;
arg0 = tmp305 ;
arg1 = arg1 ;
arg2 = tmp307 ;
goto __ats_lab_loop_42 ; // tail call
break ;

/* branch: __ats_lab_178 */
__ats_lab_178_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_178_1:
tmp309 = (ats_sum_ptr_type)0 ;
tmp308 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp308, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_5, tmp308, atslab_1, tmp309) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp308 ;
break ;
} while (0) ;
return /* (tmp303) */ ;
} /* end of [loop_42] */

/*
// /home/ats-lang-anairiats-0.2.12/prelude/DATS/list.dats: 19136(line=688, offs=13) -- 19698(line=708, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_extend_01337_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp301) ;
ATSlocal (ats_ptr_type, tmp302) ;
// ATSlocal_void (tmp310) ;

__ats_lab_list_extend_01337_ats_ptr_type:
/* ats_ptr_type tmp302 ; */
/* tmp310 = */ loop_42 (arg0, arg1, (&tmp302)) ;
tmp301 = tmp302 ;
return (tmp301) ;
} /* end of [list_extend_01337_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 21572(line=931, offs=1) -- 22238(line=960, offs=4)
*/
ATSstaticdec()
ats_void_type
s2vbcfenv_add2_cstapp_40 (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ptr_type arg4) {
/* local vardec */
// ATSlocal_void (tmp296) ;
ATSlocal (ats_ptr_type, tmp297) ;
ATSlocal (ats_ptr_type, tmp298) ;
ATSlocal (ats_ptr_type, tmp299) ;
ATSlocal (ats_ptr_type, tmp300) ;
ATSlocal (ats_ptr_type, tmp311) ;
ATSlocal (ats_ptr_type, tmp312) ;
ATSlocal (ats_ptr_type, tmp313) ;
ATSlocal (ats_ptr_type, tmp314) ;
ATSlocal (ats_ptr_type, tmp315) ;

__ats_lab_s2vbcfenv_add2_cstapp_40:
tmp297 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp297)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_2, tmp297, atslab_0, arg4) ;
ats_selptrset_mac(anairiats_sum_2, tmp297, atslab_1, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp297 ;
tmp298 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_cst (arg1) ;
tmp299 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_var (arg4) ;
tmp300 = list_extend_01337_ats_ptr_type (arg2, tmp299) ;
tmp311 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_app_srt (_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2rt_bool, tmp298, ats_castfn_mac(ats_ptr_type, tmp300)) ;
tmp312 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make (arg0, tmp311) ;
tmp313 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_lintize (arg0, tmp312) ;
tmp315 = ATS_MALLOC(sizeof(anairiats_sum_11)) ;
ats_selptrset_mac(anairiats_sum_11, tmp315, atslab_0, tmp313) ;
tmp314 = ATS_MALLOC(sizeof(anairiats_sum_9)) ;
((ats_sum_ptr_type)tmp314)->tag = 2 ;
ats_selptrset_mac(anairiats_sum_9, tmp314, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_9, tmp314, atslab_1, arg3) ;
ats_selptrset_mac(anairiats_sum_9, tmp314, atslab_2, arg4) ;
ats_selptrset_mac(anairiats_sum_9, tmp314, atslab_3, tmp315) ;
ats_selptrset_mac(anairiats_sum_9, tmp314, atslab_4, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp314 ;
return /* (tmp296) */ ;
} /* end of [s2vbcfenv_add2_cstapp_40] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 22326(line=966, offs=3) -- 22371(line=966, offs=48)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_svar (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp316) ;
ATSlocal (ats_ptr_type, tmp317) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_svar:
tmp317 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp317)->tag = 0 ;
ats_selptrset_mac(anairiats_sum_2, tmp317, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_2, tmp317, atslab_1, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp317 ;
return /* (tmp316) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_svar] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 22437(line=971, offs=3) -- 22485(line=971, offs=51)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_sbexp (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp318) ;
ATSlocal (ats_ptr_type, tmp319) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_sbexp:
tmp319 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp319)->tag = 1 ;
ats_selptrset_mac(anairiats_sum_2, tmp319, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_2, tmp319, atslab_1, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp319 ;
return /* (tmp318) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_sbexp] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 22553(line=976, offs=3) -- 22760(line=986, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_nonlin (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp320) ;
ATSlocal (ats_ptr_type, tmp321) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_nonlin:
tmp321 = ATS_MALLOC(sizeof(anairiats_sum_10)) ;
((ats_sum_ptr_type)tmp321)->tag = 3 ;
ats_selptrset_mac(anairiats_sum_10, tmp321, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_10, tmp321, atslab_1, arg2) ;
ats_selptrset_mac(anairiats_sum_10, tmp321, atslab_2, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp321 ;
return /* (tmp320) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_nonlin] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 22893(line=996, offs=3) -- 23219(line=1010, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_cstapp (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
// ATSlocal_void (tmp322) ;
ATSlocal (ats_ptr_type, tmp323) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_cstapp:
tmp323 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (arg0, arg2) ;
/* tmp322 = */ s2vbcfenv_add2_cstapp_40 (arg0, arg1, arg2, tmp323, arg3) ;
return /* (tmp322) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_cstapp] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 23312(line=1016, offs=3) -- 23680(line=1035, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_cstapp (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
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_void (tmp329) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_cstapp:
tmp325 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (arg0, arg3) ;
tmp326 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_cstapp (arg0, arg2, tmp325) ;
do {
/* branch: __ats_lab_179 */
__ats_lab_179_0:
if (tmp326 == (ats_sum_ptr_type)0) { goto __ats_lab_180_0 ; }
__ats_lab_179_1:
tmp327 = ats_caselptrlab_mac(anairiats_sum_11, tmp326, atslab_0) ;
ATS_FREE(tmp326) ;
tmp324 = tmp327 ;
break ;

/* branch: __ats_lab_180 */
__ats_lab_180_0:
// if (tmp326 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_180_1:
tmp328 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_make_srt (arg1) ;
/* tmp329 = */ s2vbcfenv_add2_cstapp_40 (arg0, arg2, arg3, tmp325, tmp328) ;
tmp324 = tmp328 ;
break ;
} while (0) ;
return (tmp324) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_cstapp] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 23777(line=1041, offs=3) -- 24081(line=1057, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp330) ;
ATSlocal (ats_ptr_type, tmp331) ;
ATSlocal (ats_ptr_type, tmp332) ;
ATSlocal (ats_ptr_type, tmp333) ;
ATSlocal (ats_ptr_type, tmp334) ;
// ATSlocal_void (tmp335) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin:
tmp331 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_find_nonlin (arg0, arg1) ;
do {
/* branch: __ats_lab_181 */
__ats_lab_181_0:
if (tmp331 == (ats_sum_ptr_type)0) { goto __ats_lab_182_0 ; }
__ats_lab_181_1:
tmp332 = ats_caselptrlab_mac(anairiats_sum_11, tmp331, atslab_0) ;
ATS_FREE(tmp331) ;
tmp330 = tmp332 ;
break ;

/* branch: __ats_lab_182 */
__ats_lab_182_0:
// if (tmp331 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_182_1:
tmp333 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_get_srt (arg1) ;
tmp334 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2var_make_srt (tmp333) ;
/* tmp335 = */ _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_add_nonlin (arg0, tmp334, arg1) ;
tmp330 = tmp334 ;
break ;
} while (0) ;
return (tmp330) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 24475(line=1079, offs=3) -- 24945(line=1099, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_s2cst_s2explst (ats_ref_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp339) ;
ATSlocal (ats_ptr_type, tmp340) ;
ATSlocal (ats_ptr_type, tmp341) ;
ATSlocal (ats_ptr_type, tmp342) ;
ATSlocal (ats_ptr_type, tmp343) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_s2cst_s2explst:
tmp340 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cstmap_find (statmp336, arg1) ;
do {
/* branch: __ats_lab_183 */
__ats_lab_183_0:
if (tmp340 == (ats_sum_ptr_type)0) { goto __ats_lab_184_0 ; }
__ats_lab_183_1:
tmp341 = ats_caselptrlab_mac(anairiats_sum_11, tmp340, atslab_0) ;
ATS_FREE(tmp340) ;
tmp339 = ((ats_ptr_type(*)(ats_ref_type, ats_ptr_type))tmp341) (arg0, arg2) ;
break ;

/* branch: __ats_lab_184 */
__ats_lab_184_0:
// if (tmp340 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_184_1:
tmp342 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_cst (arg1) ;
tmp343 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_make (arg0, arg2) ;
tmp339 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_app (tmp342, tmp343) ;
break ;
} while (0) ;
return (tmp339) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_make_s2cst_s2explst] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3.dats: 25039(line=1104, offs=24) -- 25151(line=1107, offs=4)
*/
ATSglobaldec()
ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__constraint3_initialize () {
/* local vardec */
// ATSlocal_void (tmp344) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__constraint3_initialize:
/* tmp344 = */ _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__constraint3_initialize_map ((&statmp336)) ;
return /* (tmp344) */ ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__constraint3_initialize] */

/* static load function */

// extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_atspre_2edats__staload (void) ;
// extern ats_void_type ATS_2d0_2e2_2e12_2prelude_2SATS_2unsafe_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_basics_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_intinf_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_stacst2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__staload (void) ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__staload () {
static int _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__staload_flag = 0 ;
if (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__staload_flag) return ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__staload_flag = 1 ;

// _2tmp_2ATS_2dPostiats_2src_2pats_atspre_2edats__staload () ;
// ATS_2d0_2e2_2e12_2prelude_2SATS_2unsafe_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_basics_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2edats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__staload () ;

// _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsvar_0.tag = 0 ;
// _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTsbexp_1.tag = 1 ;
// _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTcons_2.tag = 2 ;
// _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnonlin_3.tag = 3 ;
// _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTmark_4.tag = 4 ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__S2VBCFLSTnil_5.tag = 5 ;
return ;
} /* staload function */

/* dynamic load function */

// dynload flag declaration
extern ats_int_type _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__dynload_flag ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__dynload () {
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2edats__dynload_flag = 1 ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_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(&statmp7, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp8, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp9, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp10, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp11, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp12, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp13, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp14, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp15, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp16, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp17, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp18, sizeof(ats_ptr_type)) ;
ATS_GC_MARKROOT(&statmp336, sizeof(ats_ptr_type)) ;

/* marking external values for GC */

/* code for dynamic loading */
statmp7 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Enull_2) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_null, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_null = statmp7 ;
statmp8 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Enull_2) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_unit, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_unit = statmp8 ;
statmp9 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)statmp9)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_3, statmp9, atslab_0, ats_true_bool) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true = statmp9 ;
statmp10 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)statmp10)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_3, statmp10, atslab_0, ats_false_bool) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false = statmp10 ;
statmp11 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int (0) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_0, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_0 = statmp11 ;
statmp12 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int (1) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_1, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_1 = statmp12 ;
statmp13 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int (2) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2 = statmp13 ;
statmp14 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int (-1) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1 = statmp14 ;
statmp15 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Enull_2) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 = statmp15 ;
statmp16 = (ats_sum_ptr_type)(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__S3Eunit_3) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1 = statmp16 ;
statmp17 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_2, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_2 = statmp17 ;
statmp18 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1) ;
ATS_GC_MARKROOT(&_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_neg_1, sizeof(ats_ptr_type)) ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_neg_1 = statmp18 ;
/* ats_ptr_type statmp336 ; */
statmp336 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2cstmap_nil () ;
/* statmp337 = */ atspre_vbox_make_view_ptr ((&statmp336)) ;
/* statmp338 = ats_selsin_mac(statmp337, atslab_1) */ ;
return ;
} /* end of [dynload function] */

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

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

/* end of [pats_constraint3_dats.c] */
