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

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

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

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_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_bool_type atslab_0 ;
} anairiats_sum_1 ;

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

typedef struct {
int tag ;
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
} 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 ;
} anairiats_sum_5 ;

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

/* 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_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) ;

/* external dynamic constant declarations */
ATSextern_fun(ats_void_type, atspre_assert_errmsg) (ats_bool_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_vbox_make_view_ptr) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, atspre_string_append) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, atspre_neg_bool) (ats_bool_type) ;
ATSextern_fun(ats_int_type, atspre_add_int_int) (ats_int_type, ats_int_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_int_type, atspre_ineg) (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_ilte) (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_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_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__lt_intinf_int) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__gte_intinf_int) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_int) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__neq_intinf_int) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__add_intinf_int) (ats_ptr_type, ats_int_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__add_intinf_intinf) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__mul_intinf_intinf) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_int_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__compare_s2cst_s2cst) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_int_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__compare_s2var_s2var) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_pair) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_gte) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_add) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_union) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var) (ats_ptr_type) ;
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_0) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_1) ;
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_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1) ;
ATSextern_val(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_neg_1) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool) (ats_bool_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq) (ats_int_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin) (ats_ref_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag) (ats_ref_type, ats_ptr_type, ats_ref_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag) (ats_ref_type, ats_ptr_type, 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 */
/* sum constructor declarations */
/* exn constructor declarations */
/* global dynamic (non-functional) constant declarations */
/* internal function declarations */
static
ats_ptr_type uns3exp_intinf_5 (ats_ptr_type arg0) ;
static
ats_ptr_type app_19 (ats_ptr_type arg0, ats_clo_ptr_type arg1) ;
static
ats_void_type loop_21 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ptr_type arg3) ;
static
ats_ptr_type list_map_funenv_01412_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_ptr_type list_map_vcloptr_01416_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_clo_ptr_type arg1) ;
static
ats_ptr_type list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_clo_ptr_type arg1) ;
static
ats_ptr_type __ats_fun_22 (ats_ptr_type env0, ats_ptr_type arg0) ;
static
ats_clo_ptr_type __ats_fun_22_closure_make (ats_ptr_type env0) ;
static
ats_ptr_type __ats_fun_22_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) ;
static
ats_ptr_type uns3exp_icff_28 (ats_ptr_type arg0) ;
static
ats_ptr_type s3exp_icff_add_29 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type s3exp_isum_pair_30 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type loop_34 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_ptr_type list_copy_01322_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type aux_32 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type s3exp_isum_list_31 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type __ats_fun_36 (ats_ptr_type env0, ats_ptr_type arg0) ;
static
ats_clo_ptr_type __ats_fun_36_closure_make (ats_ptr_type env0) ;
static
ats_ptr_type __ats_fun_36_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) ;
static
ats_void_type loop_38 (ats_ptr_type arg0) ;
static
ats_void_type list_vt_free_01499_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_ptr_type s3exp_imul_list_35 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type __ats_fun_42 (ats_ptr_type env0, ats_ptr_type arg0) ;
static
ats_clo_ptr_type __ats_fun_42_closure_make (ats_ptr_type env0) ;
static
ats_ptr_type __ats_fun_42_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) ;
static
ats_ptr_type __ats_fun_43 (ats_ptr_type env0, ats_ptr_type arg0) ;
static
ats_clo_ptr_type __ats_fun_43_closure_make (ats_ptr_type env0) ;
static
ats_ptr_type __ats_fun_43_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) ;

/* partial value template declarations */
/* static temporary variable declarations */
/* external value variable declarations */

/* function implementations */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 1731(line=60, offs=12) -- 2113(line=69, offs=24)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp0) ;
ATSlocal (ats_bool_type, tmp1) ;
ATSlocal (ats_bool_type, tmp2) ;
ATSlocal (ats_ptr_type, tmp3) ;
ATSlocal (ats_ptr_type, tmp4) ;
ATSlocal (ats_ptr_type, tmp5) ;
ATSlocal (ats_ptr_type, tmp6) ;
ATSlocal (ats_ptr_type, tmp7) ;
ATSlocal (ats_ptr_type, tmp8) ;
ATSlocal (ats_ptr_type, tmp9) ;
ATSlocal (ats_ptr_type, tmp10) ;
ATSlocal (ats_ptr_type, tmp11) ;
ATSlocal (ats_ptr_type, tmp12) ;
ATSlocal (ats_ptr_type, tmp13) ;
ATSlocal (ats_ptr_type, tmp14) ;
ATSlocal (ats_ptr_type, tmp15) ;
ATSlocal (ats_int_type, tmp16) ;
ATSlocal (ats_ptr_type, tmp17) ;
ATSlocal (ats_int_type, tmp18) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg:
do {
/* branch: __ats_lab_0 */
__ats_lab_0_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_1_0 ; }
__ats_lab_0_1:
tmp1 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
tmp2 = atspre_neg_bool (tmp1) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_1)) ;
((ats_sum_ptr_type)tmp0)->tag = 4 ;
ats_selptrset_mac(anairiats_sum_1, tmp0, atslab_0, tmp2) ;
break ;

/* branch: __ats_lab_1 */
__ats_lab_1_0:
if (((ats_sum_ptr_type)arg0)->tag != 6) { goto __ats_lab_2_0 ; }
__ats_lab_1_1:
tmp3 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp0 = tmp3 ;
break ;

/* branch: __ats_lab_2 */
__ats_lab_2_0:
if (((ats_sum_ptr_type)arg0)->tag != 7) { goto __ats_lab_3_0 ; }
__ats_lab_2_1:
tmp4 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp5 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp6 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp6)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp6, atslab_0, tmp4) ;
tmp7 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp7)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp7, atslab_0, tmp5) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp0)->tag = 8 ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_0, tmp6) ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_1, tmp7) ;
break ;

/* branch: __ats_lab_3 */
__ats_lab_3_0:
if (((ats_sum_ptr_type)arg0)->tag != 8) { goto __ats_lab_4_0 ; }
__ats_lab_3_1:
tmp8 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp9 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp10 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp10)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp10, atslab_0, tmp8) ;
tmp11 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp11)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp11, atslab_0, tmp9) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp0)->tag = 7 ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_0, tmp10) ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_1, tmp11) ;
break ;

/* branch: __ats_lab_4 */
__ats_lab_4_0:
if (((ats_sum_ptr_type)arg0)->tag != 9) { goto __ats_lab_5_0 ; }
__ats_lab_4_1:
tmp12 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp13 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp0)->tag = 10 ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_0, tmp12) ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_1, tmp13) ;
break ;

/* branch: __ats_lab_5 */
__ats_lab_5_0:
if (((ats_sum_ptr_type)arg0)->tag != 10) { goto __ats_lab_6_0 ; }
__ats_lab_5_1:
tmp14 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp15 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp0)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_0, tmp14) ;
ats_selptrset_mac(anairiats_sum_3, tmp0, atslab_1, tmp15) ;
break ;

/* branch: __ats_lab_6 */
__ats_lab_6_0:
if (((ats_sum_ptr_type)arg0)->tag != 11) { goto __ats_lab_7_0 ; }
__ats_lab_6_1:
tmp16 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp17 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
tmp18 = atspre_ineg (tmp16) ;
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
((ats_sum_ptr_type)tmp0)->tag = 11 ;
ats_selptrset_mac(anairiats_sum_4, tmp0, atslab_0, tmp18) ;
ats_selptrset_mac(anairiats_sum_4, tmp0, atslab_1, tmp17) ;
break ;

/* branch: __ats_lab_7 */
__ats_lab_7_0:
__ats_lab_7_1:
tmp0 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp0)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp0, atslab_0, arg0) ;
break ;
} while (0) ;
return (tmp0) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 2184(line=76, offs=3) -- 2450(line=87, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_badd (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp19) ;
ATSlocal (ats_bool_type, tmp20) ;
ATSlocal (ats_bool_type, tmp21) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_badd:
do {
/* branch: __ats_lab_8 */
__ats_lab_8_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_9_0 ; }
__ats_lab_8_1:
tmp20 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
if (tmp20) {
tmp19 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true ;
} else {
tmp19 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_9 */
__ats_lab_9_0:
__ats_lab_9_1:
do {
/* branch: __ats_lab_10 */
__ats_lab_10_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_11_0 ; }
__ats_lab_10_1:
tmp21 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
if (tmp21) {
tmp19 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_true ;
} else {
tmp19 = arg0 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_11 */
__ats_lab_11_0:
__ats_lab_11_1:
tmp19 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp19)->tag = 7 ;
ats_selptrset_mac(anairiats_sum_3, tmp19, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp19, atslab_1, arg1) ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp19) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_badd] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 2498(line=91, offs=3) -- 2770(line=103, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bmul (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp22) ;
ATSlocal (ats_bool_type, tmp23) ;
ATSlocal (ats_bool_type, tmp24) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bmul:
do {
/* branch: __ats_lab_12 */
__ats_lab_12_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_13_0 ; }
__ats_lab_12_1:
tmp23 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
if (tmp23) {
tmp22 = arg1 ;
} else {
tmp22 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false ;
} /* end of [if] */
break ;

/* branch: __ats_lab_13 */
__ats_lab_13_0:
__ats_lab_13_1:
do {
/* branch: __ats_lab_14 */
__ats_lab_14_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_15_0 ; }
__ats_lab_14_1:
tmp24 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
if (tmp24) {
tmp22 = arg0 ;
} else {
tmp22 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false ;
} /* end of [if] */
break ;

/* branch: __ats_lab_15 */
__ats_lab_15_0:
__ats_lab_15_1:
tmp22 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp22)->tag = 8 ;
ats_selptrset_mac(anairiats_sum_3, tmp22, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp22, atslab_1, arg1) ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp22) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bmul] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 2838(line=109, offs=3) -- 3061(line=117, offs=6)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_beq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp25) ;
ATSlocal (ats_bool_type, tmp26) ;
ATSlocal (ats_bool_type, tmp27) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_beq:
do {
/* branch: __ats_lab_16 */
__ats_lab_16_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_17_0 ; }
__ats_lab_16_1:
tmp26 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
if (tmp26) {
tmp25 = arg1 ;
} else {
tmp25 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg (arg1) ;
} /* end of [if] */
break ;

/* branch: __ats_lab_17 */
__ats_lab_17_0:
__ats_lab_17_1:
do {
/* branch: __ats_lab_18 */
__ats_lab_18_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_19_0 ; }
__ats_lab_18_1:
tmp27 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
if (tmp27) {
tmp25 = arg0 ;
} else {
tmp25 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg (arg0) ;
} /* end of [if] */
break ;

/* branch: __ats_lab_19 */
__ats_lab_19_0:
__ats_lab_19_1:
tmp25 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp25)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_3, tmp25, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp25, atslab_1, arg1) ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp25) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_beq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 3124(line=122, offs=3) -- 3348(line=130, offs=6)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp28) ;
ATSlocal (ats_bool_type, tmp29) ;
ATSlocal (ats_bool_type, tmp30) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneq:
do {
/* branch: __ats_lab_20 */
__ats_lab_20_0:
if (((ats_sum_ptr_type)arg0)->tag != 4) { goto __ats_lab_21_0 ; }
__ats_lab_20_1:
tmp29 = ats_caselptrlab_mac(anairiats_sum_1, arg0, atslab_0) ;
if (tmp29) {
tmp28 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg (arg1) ;
} else {
tmp28 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_21 */
__ats_lab_21_0:
__ats_lab_21_1:
do {
/* branch: __ats_lab_22 */
__ats_lab_22_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_23_0 ; }
__ats_lab_22_1:
tmp30 = ats_caselptrlab_mac(anairiats_sum_1, arg1, atslab_0) ;
if (tmp30) {
tmp28 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneg (arg0) ;
} else {
tmp28 = arg0 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_23 */
__ats_lab_23_0:
__ats_lab_23_1:
tmp28 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp28)->tag = 10 ;
ats_selptrset_mac(anairiats_sum_3, tmp28, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp28, atslab_1, arg1) ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp28) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bneq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 3414(line=136, offs=1) -- 3767(line=148, offs=20)
*/
ATSstaticdec()
ats_ptr_type
uns3exp_intinf_5 (ats_ptr_type arg0) {
/* local vardec */
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) ;

__ats_lab_uns3exp_intinf_5:
do {
/* branch: __ats_lab_24 */
__ats_lab_24_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_25_0 ; }
__ats_lab_24_1:
tmp31 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp31, atslab_0, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_0) ;
break ;

/* branch: __ats_lab_25 */
__ats_lab_25_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_26_0 ; }
__ats_lab_25_1:
tmp31 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp31, atslab_0, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_1) ;
break ;

/* branch: __ats_lab_26 */
__ats_lab_26_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_29_0 ; }
__ats_lab_26_1:
tmp32 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp33 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp34 = uns3exp_intinf_5 (tmp33) ;
do {
/* branch: __ats_lab_27 */
__ats_lab_27_0:
if (tmp34 == (ats_sum_ptr_type)0) { goto __ats_lab_28_0 ; }
__ats_lab_27_1:
tmp35 = ats_caselptrlab_mac(anairiats_sum_5, tmp34, atslab_0) ;
ATS_FREE(tmp34) ;
tmp36 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__mul_intinf_intinf (tmp32, tmp35) ;
tmp31 = ATS_MALLOC(sizeof(anairiats_sum_5)) ;
ats_selptrset_mac(anairiats_sum_5, tmp31, atslab_0, tmp36) ;
break ;

/* branch: __ats_lab_28 */
__ats_lab_28_0:
// if (tmp34 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_28_1:
tmp31 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_29 */
__ats_lab_29_0:
__ats_lab_29_1:
tmp31 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp31) ;
} /* end of [uns3exp_intinf_5] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 3818(line=152, offs=13) -- 4253(line=166, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (ats_int_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
ATSlocal (ats_ptr_type, tmp39) ;
ATSlocal (ats_bool_type, tmp40) ;
ATSlocal (ats_bool_type, tmp41) ;
ATSlocal (ats_bool_type, tmp42) ;
ATSlocal (ats_bool_type, tmp43) ;
ATSlocal (ats_bool_type, tmp44) ;
ATSlocal (ats_bool_type, tmp45) ;
ATSlocal (ats_bool_type, tmp46) ;
ATSlocal (ats_bool_type, tmp47) ;
// ATSlocal_void (tmp48) ;
ATSlocal (ats_ptr_type, tmp49) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq:
tmp38 = uns3exp_intinf_5 (arg1) ;
do {
/* branch: __ats_lab_30 */
__ats_lab_30_0:
if (tmp38 == (ats_sum_ptr_type)0) { goto __ats_lab_36_0 ; }
__ats_lab_30_1:
tmp39 = ats_caselptrlab_mac(anairiats_sum_5, tmp38, atslab_0) ;
ATS_FREE(tmp38) ;
do {
/* branch: __ats_lab_31 */
__ats_lab_31_0:
__ats_lab_31_1:
tmp40 = atspre_ieq (arg0, 2) ;
if (!tmp40) { goto __ats_lab_32_1 ; }
tmp41 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__gte_intinf_int (tmp39, 0) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool (tmp41) ;
break ;

/* branch: __ats_lab_32 */
__ats_lab_32_0:
__ats_lab_32_1:
tmp42 = atspre_ieq (arg0, -2) ;
if (!tmp42) { goto __ats_lab_33_1 ; }
tmp43 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__lt_intinf_int (tmp39, 0) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool (tmp43) ;
break ;

/* branch: __ats_lab_33 */
__ats_lab_33_0:
__ats_lab_33_1:
tmp44 = atspre_ieq (arg0, 1) ;
if (!tmp44) { goto __ats_lab_34_1 ; }
tmp45 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_int (tmp39, 0) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool (tmp45) ;
break ;

/* branch: __ats_lab_34 */
__ats_lab_34_0:
__ats_lab_34_1:
tmp46 = atspre_ieq (arg0, -1) ;
if (!tmp46) { goto __ats_lab_35_1 ; }
tmp47 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__neq_intinf_int (tmp39, 0) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bool (tmp47) ;
break ;

/* branch: __ats_lab_35 */
__ats_lab_35_0:
__ats_lab_35_1:
tmp49 = atspre_string_append ("/tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4128(line=162, offs=18) -- 4144(line=162, offs=34)", ATSstrcst("\n")) ;
/* tmp48 = */ atspre_assert_errmsg (ats_false_bool, tmp49) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_false ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_36 */
__ats_lab_36_0:
// if (tmp38 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_36_1:
tmp37 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
((ats_sum_ptr_type)tmp37)->tag = 11 ;
ats_selptrset_mac(anairiats_sum_4, tmp37, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_4, tmp37, atslab_1, arg1) ;
break ;
} while (0) ;
return (tmp37) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4320(line=171, offs=11) -- 4384(line=172, offs=50)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilt (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp50) ;
ATSlocal (ats_ptr_type, tmp51) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilt:
tmp51 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg0, arg1) ;
tmp50 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (-2, tmp51) ;
return (tmp50) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilt] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4429(line=176, offs=12) -- 4493(line=177, offs=50)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilte (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp52) ;
ATSlocal (ats_ptr_type, tmp53) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilte:
tmp53 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg1, arg0) ;
tmp52 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (2, tmp53) ;
return (tmp52) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ilte] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4538(line=181, offs=11) -- 4602(line=182, offs=50)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igt (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp54) ;
ATSlocal (ats_ptr_type, tmp55) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igt:
tmp55 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg1, arg0) ;
tmp54 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (-2, tmp55) ;
return (tmp54) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igt] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4647(line=186, offs=12) -- 4711(line=187, offs=50)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igte (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp56) ;
ATSlocal (ats_ptr_type, tmp57) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igte:
tmp57 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg0, arg1) ;
tmp56 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (2, tmp57) ;
return (tmp56) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_igte] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4756(line=191, offs=11) -- 4819(line=192, offs=49)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp58) ;
ATSlocal (ats_ptr_type, tmp59) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq:
tmp59 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg0, arg1) ;
tmp58 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (1, tmp59) ;
return (tmp58) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ieq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4864(line=196, offs=12) -- 4929(line=197, offs=51)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineq (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp60) ;
ATSlocal (ats_ptr_type, tmp61) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineq:
tmp61 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (arg0, arg1) ;
tmp60 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_bineq (-1, tmp61) ;
return (tmp60) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineq] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 4995(line=203, offs=11) -- 5062(line=205, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_int (ats_int_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp62) ;
ATSlocal (ats_ptr_type, tmp63) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_int:
tmp63 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__intinf_make_int (arg0) ;
tmp62 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf (tmp63) ;
return (tmp62) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_int] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5109(line=207, offs=24) -- 5142(line=207, offs=57)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp64) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf:
tmp64 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (arg0, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1) ;
return (tmp64) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_intinf] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5186(line=212, offs=12) -- 5554(line=230, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp65) ;
ATSlocal (ats_bool_type, tmp66) ;
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_ptr_type, tmp72) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff:
do {
/* branch: __ats_lab_37 */
__ats_lab_37_0:
__ats_lab_37_1:
tmp66 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_int (arg0, 1) ;
if (!tmp66) { goto __ats_lab_38_1 ; }
tmp65 = arg1 ;
break ;

/* branch: __ats_lab_38 */
__ats_lab_38_0:
__ats_lab_38_1:
tmp67 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__eq_intinf_int (arg0, 0) ;
if (!tmp67) { goto __ats_lab_39_1 ; }
tmp65 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 ;
break ;

/* branch: __ats_lab_39 */
__ats_lab_39_0:
__ats_lab_39_1:
do {
/* branch: __ats_lab_40 */
__ats_lab_40_0:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_41_0 ; }
__ats_lab_40_1:
tmp65 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 ;
break ;

/* branch: __ats_lab_41 */
__ats_lab_41_0:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_42_0 ; }
__ats_lab_41_1:
tmp68 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp69 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp70 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__mul_intinf_intinf (arg0, tmp68) ;
arg0 = tmp70 ;
arg1 = tmp69 ;
goto __ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff ; // tail call
break ;

/* branch: __ats_lab_42 */
__ats_lab_42_0:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_43_0 ; }
__ats_lab_42_1:
tmp71 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp72 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff (arg0, tmp71) ;
tmp65 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp65)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp65, atslab_0, ats_castfn_mac(ats_ptr_type, tmp72)) ;
break ;

/* branch: __ats_lab_43 */
__ats_lab_43_0:
__ats_lab_43_1:
tmp65 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp65)->tag = 14 ;
ats_selptrset_mac(anairiats_sum_3, tmp65, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp65, atslab_1, arg1) ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp65) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 54647(line=1953, offs=6) -- 54699(line=1953, offs=58)
*/
ATSstaticdec()
ats_ptr_type
app_19 (ats_ptr_type arg0, ats_clo_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp76) ;

__ats_lab_app_19:
tmp76 = ((ats_ptr_type(*)(ats_clo_ptr_type, ats_ptr_type))(ats_closure_fun(arg1))) (arg1, arg0) ;
return (tmp76) ;
} /* end of [app_19] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 52519(line=1874, offs=5) -- 52952(line=1891, offs=4)
*/
ATSstaticdec()
ats_void_type
loop_21 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ptr_type arg3) {
/* local vardec */
// ATSlocal_void (tmp78) ;
ATSlocal (ats_ptr_type, tmp79) ;
ATSlocal (ats_ptr_type, tmp80) ;
ATSlocal (ats_ptr_type, tmp81) ;
ATSlocal (ats_ptr_type, tmp82) ;
ATSlocal (ats_ptr_type, tmp83) ;
ATSlocal (ats_ptr_type, tmp84) ;

__ats_lab_loop_21:
do {
/* branch: __ats_lab_44 */
__ats_lab_44_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_45_0 ; }
__ats_lab_44_1:
tmp79 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_0) ;
tmp80 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
tmp81 = ((ats_ptr_type(*)(ats_ptr_type, ats_ptr_type))arg1) (tmp79, arg3) ;
tmp82 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp82, atslab_0, tmp81) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp82 ;
// if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp83 = &ats_caselptrlab_mac(anairiats_sum_6, ats_ptrget_mac(ats_ptr_type, arg2), atslab_1) ;
arg0 = tmp80 ;
arg1 = arg1 ;
arg2 = tmp83 ;
arg3 = arg3 ;
goto __ats_lab_loop_21 ; // tail call
break ;

/* branch: __ats_lab_45 */
__ats_lab_45_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_45_1:
tmp84 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp84 ;
break ;
} while (0) ;
return /* (tmp78) */ ;
} /* end of [loop_21] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 52444(line=1870, offs=3) -- 53099(line=1899, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_map_funenv_01412_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp77) ;
ATSlocal (ats_ptr_type, tmp85) ;
// ATSlocal_void (tmp86) ;

__ats_lab_list_map_funenv_01412_ats_ptr_type_ats_ptr_type:
/* ats_ptr_type tmp85 ; */
/* tmp86 = */ loop_21 (arg0, arg1, (&tmp85), arg2) ;
tmp77 = tmp85 ;
return (tmp77) ;
} /* end of [list_map_funenv_01412_ats_ptr_type_ats_ptr_type] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 54575(line=1951, offs=23) -- 54763(line=1956, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_map_vcloptr_01416_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_clo_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp75) ;

__ats_lab_list_map_vcloptr_01416_ats_ptr_type_ats_ptr_type:
tmp75 = list_map_funenv_01412_ats_ptr_type_ats_ptr_type (arg0, &app_19, arg1) ;
return (tmp75) ;
} /* end of [list_map_vcloptr_01416_ats_ptr_type_ats_ptr_type] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 54041(line=1936, offs=19) -- 54491(line=1948, offs=2)
*/
ATSstaticdec()
ats_ptr_type
list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_clo_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp74) ;

__ats_lab_list_map_cloptr_01415_ats_ptr_type_ats_ptr_type:
tmp74 = list_map_vcloptr_01416_ats_ptr_type_ats_ptr_type (arg0, arg1) ;
return (tmp74) ;
} /* end of [list_map_cloptr_01415_ats_ptr_type_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5638(line=234, offs=24) -- 5666(line=234, offs=52)
*/
ATSstaticdec()
ats_ptr_type
__ats_fun_22 (ats_ptr_type env0, ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp88) ;

__ats_lab___ats_fun_22:
tmp88 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (env0, arg0) ;
return (tmp88) ;
} /* end of [__ats_fun_22] */

typedef struct {
ats_fun_ptr_type closure_fun ;
ats_ptr_type closure_env_0 ;
} __ats_fun_22_closure_type ;

ats_ptr_type
__ats_fun_22_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) {
return __ats_fun_22 (((__ats_fun_22_closure_type*)cloptr)->closure_env_0, arg0) ;
} /* end of function */

ATSinline()
ats_void_type
__ats_fun_22_closure_init (__ats_fun_22_closure_type *p_clo, ats_ptr_type env0) {
p_clo->closure_fun = (ats_fun_ptr_type)&__ats_fun_22_clofun ;
p_clo->closure_env_0 = env0 ;
return ;
} /* end of function */

ats_clo_ptr_type
__ats_fun_22_closure_make (ats_ptr_type env0) {
__ats_fun_22_closure_type *p_clo = ATS_MALLOC(sizeof(__ats_fun_22_closure_type)) ;
__ats_fun_22_closure_init (p_clo, env0) ;
return (ats_clo_ptr_type)p_clo ;
} /* end of function */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5603(line=233, offs=15) -- 5667(line=234, offs=53)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp73) ;
ATSlocal (ats_ptr_type, tmp87) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff:
/* ats_ptr_type tmp87 ; */
tmp87 = __ats_fun_22_closure_make (arg0) ;
tmp73 = list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (arg1, tmp87) ;
ATS_FREE(tmp87) ;
return (tmp73) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5718(line=238, offs=12) -- 5752(line=238, offs=46)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp89) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg:
tmp89 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1, arg0) ;
return (tmp89) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 5796(line=243, offs=12) -- 5971(line=249, offs=27)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp90) ;
ATSlocal (ats_ptr_type, tmp91) ;
ATSlocal (ats_ptr_type, tmp92) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum:
do {
/* branch: __ats_lab_46 */
__ats_lab_46_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_49_0 ; }
__ats_lab_46_1:
tmp91 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_0) ;
tmp92 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
do {
/* branch: __ats_lab_47 */
__ats_lab_47_0:
if (tmp92 == (ats_sum_ptr_type)0) { goto __ats_lab_48_0 ; }
__ats_lab_47_1:
tmp90 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp90)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp90, atslab_0, arg0) ;
break ;

/* branch: __ats_lab_48 */
__ats_lab_48_0:
// if (tmp92 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_48_1:
tmp90 = tmp91 ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_49 */
__ats_lab_49_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_49_1:
tmp90 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 ;
break ;
} while (0) ;
return (tmp90) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 6041(line=255, offs=13) -- 6074(line=255, offs=46)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isucc (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp93) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isucc:
tmp93 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd (arg0, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_1) ;
return (tmp93) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isucc] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 6097(line=257, offs=13) -- 6134(line=257, offs=50)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ipred (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp94) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ipred:
tmp94 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd (arg0, _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_neg_1) ;
return (tmp94) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ipred] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 6179(line=262, offs=13) -- 7078(line=306, offs=4)
*/
ATSglobaldec()
ats_bool_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp95) ;
ATSlocal (ats_ptr_type, tmp96) ;
ATSlocal (ats_ptr_type, tmp97) ;
ATSlocal (ats_ptr_type, tmp98) ;
ATSlocal (ats_ptr_type, tmp99) ;
ATSlocal (ats_int_type, tmp100) ;
ATSlocal (ats_ptr_type, tmp101) ;
ATSlocal (ats_ptr_type, tmp102) ;
ATSlocal (ats_int_type, tmp103) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte:
do {
/* branch: __ats_lab_50 */
__ats_lab_50_0:
if (((ats_sum_ptr_type)arg0)->tag != 13) { goto __ats_lab_53_0 ; }
__ats_lab_50_1:
tmp96 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
do {
/* branch: __ats_lab_51 */
__ats_lab_51_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_52_0 ; }
__ats_lab_51_1:
tmp97 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp95 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_gte (tmp96, tmp97) ;
break ;

/* branch: __ats_lab_52 */
__ats_lab_52_0:
__ats_lab_52_1:
tmp95 = ats_true_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_53 */
__ats_lab_53_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_57_0 ; }
__ats_lab_53_1:
tmp98 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
do {
/* branch: __ats_lab_54 */
__ats_lab_54_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_55_0 ; }
__ats_lab_54_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_55 */
__ats_lab_55_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_56_0 ; }
__ats_lab_55_1:
tmp99 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp100 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__compare_s2var_s2var (tmp98, tmp99) ;
tmp95 = atspre_ilte (tmp100, 0) ;
break ;

/* branch: __ats_lab_56 */
__ats_lab_56_0:
__ats_lab_56_1:
tmp95 = ats_true_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_57 */
__ats_lab_57_0:
if (((ats_sum_ptr_type)arg0)->tag != 1) { goto __ats_lab_62_0 ; }
__ats_lab_57_1:
tmp101 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
do {
/* branch: __ats_lab_58 */
__ats_lab_58_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_59_0 ; }
__ats_lab_58_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_59 */
__ats_lab_59_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_60_0 ; }
__ats_lab_59_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_60 */
__ats_lab_60_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_61_0 ; }
__ats_lab_60_1:
tmp102 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp103 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__compare_s2cst_s2cst (tmp101, tmp102) ;
tmp95 = atspre_ilte (tmp103, 0) ;
break ;

/* branch: __ats_lab_61 */
__ats_lab_61_0:
__ats_lab_61_1:
tmp95 = ats_true_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_62 */
__ats_lab_62_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_68_0 ; }
__ats_lab_62_1:
do {
/* branch: __ats_lab_63 */
__ats_lab_63_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_64_0 ; }
__ats_lab_63_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_64 */
__ats_lab_64_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_65_0 ; }
__ats_lab_64_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_65 */
__ats_lab_65_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_66_0 ; }
__ats_lab_65_1:
tmp95 = ats_false_bool ;
break ;

/* branch: __ats_lab_66 */
__ats_lab_66_0:
if (((ats_sum_ptr_type)arg1)->tag != 3) { goto __ats_lab_67_0 ; }
__ats_lab_66_1:
tmp95 = ats_true_bool ;
break ;

/* branch: __ats_lab_67 */
__ats_lab_67_0:
__ats_lab_67_1:
tmp95 = ats_true_bool ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_68 */
__ats_lab_68_0:
__ats_lab_68_1:
tmp95 = ats_false_bool ;
break ;
} while (0) ;
return (tmp95) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 7136(line=312, offs=5) -- 7212(line=314, offs=42)
*/
ATSstaticdec()
ats_ptr_type
uns3exp_icff_28 (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp104) ;
ATSlocal (ats_ptr_type, tmp105) ;

__ats_lab_uns3exp_icff_28:
do {
/* branch: __ats_lab_69 */
__ats_lab_69_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_70_0 ; }
__ats_lab_69_1:
tmp105 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp104 = tmp105 ;
break ;

/* branch: __ats_lab_70 */
__ats_lab_70_0:
__ats_lab_70_1:
tmp104 = arg0 ;
break ;
} while (0) ;
return (tmp104) ;
} /* end of [uns3exp_icff_28] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 7292(line=320, offs=5) -- 7573(line=327, offs=40)
*/
ATSstaticdec()
ats_ptr_type
s3exp_icff_add_29 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
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_ptr_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) ;

__ats_lab_s3exp_icff_add_29:
do {
/* branch: __ats_lab_71 */
__ats_lab_71_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_72_0 ; }
__ats_lab_71_1:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_72_1 ; }
__ats_lab_71_2:
tmp107 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp108 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp109 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp110 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__add_intinf_intinf (tmp107, tmp109) ;
tmp106 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (tmp110, tmp108) ;
break ;

/* branch: __ats_lab_72 */
__ats_lab_72_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_73_0 ; }
__ats_lab_72_1:
__ats_lab_72_2:
tmp111 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp112 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp113 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__add_intinf_int (tmp111, 1) ;
tmp106 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (tmp113, tmp112) ;
break ;

/* branch: __ats_lab_73 */
__ats_lab_73_0:
__ats_lab_73_1:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_74_1 ; }
__ats_lab_73_2:
tmp114 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp115 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp116 = _2tmp_2ATS_2dPostiats_2src_2pats_intinf_2esats__add_intinf_int (tmp114, 1) ;
tmp106 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (tmp116, tmp115) ;
break ;

/* branch: __ats_lab_74 */
__ats_lab_74_0:
__ats_lab_74_1:
__ats_lab_74_2:
tmp106 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_2, arg0) ;
break ;
} while (0) ;
return (tmp106) ;
} /* end of [s3exp_icff_add_29] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 7606(line=331, offs=1) -- 7981(line=349, offs=4)
*/
ATSstaticdec()
ats_ptr_type
s3exp_isum_pair_30 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp117) ;
ATSlocal (ats_ptr_type, tmp118) ;
ATSlocal (ats_ptr_type, tmp119) ;
ATSlocal (ats_bool_type, tmp120) ;
ATSlocal (ats_bool_type, tmp121) ;
ATSlocal (ats_ptr_type, tmp122) ;
ATSlocal (ats_ptr_type, tmp123) ;
ATSlocal (ats_ptr_type, tmp124) ;
ATSlocal (ats_ptr_type, tmp125) ;
ATSlocal (ats_ptr_type, tmp126) ;
ATSlocal (ats_ptr_type, tmp127) ;

__ats_lab_s3exp_isum_pair_30:
tmp118 = uns3exp_icff_28 (arg0) ;
tmp119 = uns3exp_icff_28 (arg1) ;
tmp120 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte (tmp118, tmp119) ;
if (tmp120) {
tmp121 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte (tmp119, tmp118) ;
if (tmp121) {
tmp117 = s3exp_icff_add_29 (arg0, arg1) ;
} else {
tmp124 = (ats_sum_ptr_type)0 ;
tmp123 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp123, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_6, tmp123, atslab_1, tmp124) ;
tmp122 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp122, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_6, tmp122, atslab_1, tmp123) ;
tmp117 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp117)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp117, atslab_0, tmp122) ;
} /* end of [if] */
} else {
tmp127 = (ats_sum_ptr_type)0 ;
tmp126 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp126, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_6, tmp126, atslab_1, tmp127) ;
tmp125 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp125, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_6, tmp125, atslab_1, tmp126) ;
tmp117 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp117)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp117, atslab_0, tmp125) ;
} /* end of [if] */
return (tmp117) ;
} /* end of [s3exp_isum_pair_30] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 12687(line=466, offs=7) -- 13058(line=477, offs=43)
*/
ATSstaticdec()
ats_void_type
loop_34 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp143) ;
ATSlocal (ats_ptr_type, tmp144) ;
ATSlocal (ats_ptr_type, tmp145) ;
ATSlocal (ats_ptr_type, tmp146) ;
ATSlocal (ats_ptr_type, tmp147) ;
ATSlocal (ats_ptr_type, tmp148) ;

__ats_lab_loop_34:
do {
/* branch: __ats_lab_80 */
__ats_lab_80_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_81_0 ; }
__ats_lab_80_1:
tmp144 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_0) ;
tmp145 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
tmp146 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp146, atslab_0, tmp144) ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp146 ;
// if (ats_ptrget_mac(ats_ptr_type, arg1) == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp147 = &ats_caselptrlab_mac(anairiats_sum_6, ats_ptrget_mac(ats_ptr_type, arg1), atslab_1) ;
arg0 = tmp145 ;
arg1 = tmp147 ;
goto __ats_lab_loop_34 ; // tail call
break ;

/* branch: __ats_lab_81 */
__ats_lab_81_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_81_1:
tmp148 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg1) = tmp148 ;
break ;
} while (0) ;
return /* (tmp143) */ ;
} /* end of [loop_34] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 12658(line=464, offs=3) -- 13177(line=483, offs=2)
*/
ATSstaticdec()
ats_ptr_type
list_copy_01322_ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp142) ;
ATSlocal (ats_ptr_type, tmp149) ;
// ATSlocal_void (tmp150) ;

__ats_lab_list_copy_01322_ats_ptr_type:
/* ats_ptr_type tmp149 ; */
/* tmp150 = */ loop_34 (arg0, (&tmp149)) ;
tmp142 = tmp149 ;
return (tmp142) ;
} /* end of [list_copy_01322_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 8093(line=356, offs=5) -- 9008(line=387, offs=35)
*/
ATSstaticdec()
ats_ptr_type
aux_32 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp129) ;
ATSlocal (ats_ptr_type, tmp130) ;
ATSlocal (ats_ptr_type, tmp131) ;
ATSlocal (ats_ptr_type, tmp132) ;
ATSlocal (ats_ptr_type, tmp133) ;
ATSlocal (ats_ptr_type, tmp134) ;
ATSlocal (ats_ptr_type, tmp135) ;
ATSlocal (ats_bool_type, tmp136) ;
ATSlocal (ats_bool_type, tmp137) ;
ATSlocal (ats_ptr_type, tmp138) ;
ATSlocal (ats_ptr_type, tmp139) ;
ATSlocal (ats_ptr_type, tmp140) ;
ATSlocal (ats_ptr_type, tmp141) ;

__ats_lab_aux_32:
do {
/* branch: __ats_lab_75 */
__ats_lab_75_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_82_0 ; }
__ats_lab_75_1:
tmp130 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_0) ;
tmp131 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
do {
/* branch: __ats_lab_76 */
__ats_lab_76_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_79_0 ; }
__ats_lab_76_1:
tmp132 = ats_caselptrlab_mac(anairiats_sum_6, arg1, atslab_0) ;
tmp133 = ats_caselptrlab_mac(anairiats_sum_6, arg1, atslab_1) ;
tmp134 = uns3exp_icff_28 (tmp130) ;
tmp135 = uns3exp_icff_28 (tmp132) ;
tmp136 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte (tmp134, tmp135) ;
if (tmp136) {
tmp137 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isgte (tmp135, tmp134) ;
if (tmp137) {
tmp138 = s3exp_icff_add_29 (tmp130, tmp132) ;
do {
/* branch: __ats_lab_77 */
__ats_lab_77_0:
if (((ats_sum_ptr_type)tmp138)->tag != 2) { goto __ats_lab_78_0 ; }
__ats_lab_77_1:
arg0 = tmp131 ;
arg1 = tmp133 ;
goto __ats_lab_aux_32 ; // tail call
break ;

/* branch: __ats_lab_78 */
__ats_lab_78_0:
__ats_lab_78_1:
tmp139 = aux_32 (tmp131, tmp133) ;
tmp129 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_0, tmp138) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_1, tmp139) ;
break ;
} while (0) ;
} else {
tmp140 = aux_32 (tmp131, arg1) ;
tmp129 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_0, tmp130) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_1, tmp140) ;
} /* end of [if] */
} else {
tmp141 = aux_32 (arg0, tmp133) ;
tmp129 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_0, tmp132) ;
ats_selptrset_mac(anairiats_sum_6, tmp129, atslab_1, tmp141) ;
} /* end of [if] */
break ;

/* branch: __ats_lab_79 */
__ats_lab_79_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_79_1:
tmp129 = list_copy_01322_ats_ptr_type (arg0) ;
break ;
} while (0) ;
break ;

/* branch: __ats_lab_82 */
__ats_lab_82_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_82_1:
tmp129 = list_copy_01322_ats_ptr_type (arg1) ;
break ;
} while (0) ;
return (tmp129) ;
} /* end of [aux_32] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 8015(line=352, offs=1) -- 9049(line=391, offs=4)
*/
ATSstaticdec()
ats_ptr_type
s3exp_isum_list_31 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp128) ;

__ats_lab_s3exp_isum_list_31:
tmp128 = aux_32 (arg0, arg1) ;
return (tmp128) ;
} /* end of [s3exp_isum_list_31] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 9246(line=402, offs=13) -- 9277(line=402, offs=44)
*/
ATSstaticdec()
ats_ptr_type
__ats_fun_36 (ats_ptr_type env0, ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp156) ;

__ats_lab___ats_fun_36:
tmp156 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (env0, arg0) ;
return (tmp156) ;
} /* end of [__ats_fun_36] */

typedef struct {
ats_fun_ptr_type closure_fun ;
ats_ptr_type closure_env_0 ;
} __ats_fun_36_closure_type ;

ats_ptr_type
__ats_fun_36_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) {
return __ats_fun_36 (((__ats_fun_36_closure_type*)cloptr)->closure_env_0, arg0) ;
} /* end of function */

ATSinline()
ats_void_type
__ats_fun_36_closure_init (__ats_fun_36_closure_type *p_clo, ats_ptr_type env0) {
p_clo->closure_fun = (ats_fun_ptr_type)&__ats_fun_36_clofun ;
p_clo->closure_env_0 = env0 ;
return ;
} /* end of function */

ats_clo_ptr_type
__ats_fun_36_closure_make (ats_ptr_type env0) {
__ats_fun_36_closure_type *p_clo = ATS_MALLOC(sizeof(__ats_fun_36_closure_type)) ;
__ats_fun_36_closure_init (p_clo, env0) ;
return (ats_clo_ptr_type)p_clo ;
} /* end of function */

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

__ats_lab_loop_38:
do {
/* branch: __ats_lab_84 */
__ats_lab_84_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_85_0 ; }
__ats_lab_84_1:
tmp162 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp162 ;
goto __ats_lab_loop_38 ; // tail call
break ;

/* branch: __ats_lab_85 */
__ats_lab_85_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_85_1:
break ;
} while (0) ;
return /* (tmp161) */ ;
} /* end of [loop_38] */

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

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

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 9083(line=394, offs=1) -- 9597(line=414, offs=4)
*/
ATSstaticdec()
ats_ptr_type
s3exp_imul_list_35 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp151) ;
ATSlocal (ats_ptr_type, tmp152) ;
ATSlocal (ats_ptr_type, tmp153) ;
ATSlocal (ats_ptr_type, tmp154) ;
ATSlocal (ats_ptr_type, tmp155) ;
ATSlocal (ats_ptr_type, tmp157) ;
ATSlocal (ats_ptr_type, tmp158) ;
// ATSlocal_void (tmp159) ;
// ATSlocal_void (tmp163) ;

__ats_lab_s3exp_imul_list_35:
do {
/* branch: __ats_lab_83 */
__ats_lab_83_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_86_0 ; }
__ats_lab_83_1:
tmp152 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_0) ;
tmp153 = ats_caselptrlab_mac(anairiats_sum_6, arg0, atslab_1) ;
/* ats_ptr_type tmp155 ; */
tmp155 = __ats_fun_36_closure_make (tmp152) ;
tmp154 = list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (arg1, tmp155) ;
ATS_FREE(tmp155) ;
tmp157 = s3exp_imul_list_35 (tmp153, arg1) ;
tmp158 = s3exp_isum_list_31 (ats_castfn_mac(ats_ptr_type, tmp154), ats_castfn_mac(ats_ptr_type, tmp157)) ;
/* tmp159 = */ list_vt_free_01499_ats_ptr_type (tmp154) ;
/* tmp163 = */ list_vt_free_01499_ats_ptr_type (tmp157) ;
tmp151 = tmp158 ;
break ;

/* branch: __ats_lab_86 */
__ats_lab_86_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_86_1:
tmp151 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp151) ;
} /* end of [s3exp_imul_list_35] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 9674(line=420, offs=3) -- 10406(line=443, offs=39)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp164) ;
ATSlocal (ats_ptr_type, tmp165) ;
ATSlocal (ats_ptr_type, tmp166) ;
ATSlocal (ats_ptr_type, tmp167) ;
ATSlocal (ats_ptr_type, tmp168) ;
ATSlocal (ats_ptr_type, tmp169) ;
ATSlocal (ats_ptr_type, tmp170) ;
ATSlocal (ats_ptr_type, tmp171) ;
// ATSlocal_void (tmp172) ;
ATSlocal (ats_ptr_type, tmp173) ;
ATSlocal (ats_ptr_type, tmp174) ;
ATSlocal (ats_ptr_type, tmp175) ;
ATSlocal (ats_ptr_type, tmp176) ;
// ATSlocal_void (tmp177) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd:
do {
/* branch: __ats_lab_87 */
__ats_lab_87_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_88_0 ; }
__ats_lab_87_1:
__ats_lab_87_2:
tmp164 = arg1 ;
break ;

/* branch: __ats_lab_88 */
__ats_lab_88_0:
__ats_lab_88_1:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_89_0 ; }
__ats_lab_88_2:
tmp164 = arg0 ;
break ;

/* branch: __ats_lab_89 */
__ats_lab_89_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_90_0 ; }
__ats_lab_89_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_90_1 ; }
__ats_lab_89_2:
tmp165 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp166 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp167 = s3exp_isum_list_31 (tmp165, tmp166) ;
tmp164 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp167)) ;
break ;

/* branch: __ats_lab_90 */
__ats_lab_90_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_91_0 ; }
__ats_lab_90_1:
__ats_lab_90_2:
tmp168 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp170 = (ats_sum_ptr_type)0 ;
tmp169 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp169, atslab_0, arg1) ;
ats_selptrset_mac(anairiats_sum_6, tmp169, atslab_1, tmp170) ;
tmp171 = s3exp_isum_list_31 (tmp168, ats_castfn_mac(ats_ptr_type, tmp169)) ;
/* tmp172 = */ list_vt_free_01499_ats_ptr_type (tmp169) ;
tmp164 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp171)) ;
break ;

/* branch: __ats_lab_91 */
__ats_lab_91_0:
__ats_lab_91_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_92_1 ; }
__ats_lab_91_2:
tmp173 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp175 = (ats_sum_ptr_type)0 ;
tmp174 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp174, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_6, tmp174, atslab_1, tmp175) ;
tmp176 = s3exp_isum_list_31 (ats_castfn_mac(ats_ptr_type, tmp174), tmp173) ;
/* tmp177 = */ list_vt_free_01499_ats_ptr_type (tmp174) ;
tmp164 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp176)) ;
break ;

/* branch: __ats_lab_92 */
__ats_lab_92_0:
__ats_lab_92_1:
__ats_lab_92_2:
tmp164 = s3exp_isum_pair_30 (arg0, arg1) ;
break ;
} while (0) ;
return (tmp164) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_iadd] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 10456(line=448, offs=3) -- 11495(line=479, offs=52)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp178) ;
ATSlocal (ats_ptr_type, tmp179) ;
ATSlocal (ats_ptr_type, tmp180) ;
ATSlocal (ats_ptr_type, tmp181) ;
ATSlocal (ats_ptr_type, tmp182) ;
// ATSlocal_void (tmp183) ;
ATSlocal (ats_ptr_type, tmp184) ;
ATSlocal (ats_ptr_type, tmp185) ;
ATSlocal (ats_ptr_type, tmp186) ;
ATSlocal (ats_ptr_type, tmp187) ;
ATSlocal (ats_ptr_type, tmp188) ;
// ATSlocal_void (tmp189) ;
ATSlocal (ats_ptr_type, tmp190) ;
ATSlocal (ats_ptr_type, tmp191) ;
ATSlocal (ats_ptr_type, tmp192) ;
ATSlocal (ats_ptr_type, tmp193) ;
ATSlocal (ats_ptr_type, tmp194) ;
// ATSlocal_void (tmp195) ;
// ATSlocal_void (tmp196) ;
ATSlocal (ats_ptr_type, tmp197) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub:
do {
/* branch: __ats_lab_93 */
__ats_lab_93_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_94_0 ; }
__ats_lab_93_1:
__ats_lab_93_2:
tmp178 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg (arg1) ;
break ;

/* branch: __ats_lab_94 */
__ats_lab_94_0:
__ats_lab_94_1:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_95_0 ; }
__ats_lab_94_2:
tmp178 = arg0 ;
break ;

/* branch: __ats_lab_95 */
__ats_lab_95_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_96_0 ; }
__ats_lab_95_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_96_1 ; }
__ats_lab_95_2:
tmp179 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp180 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp181 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1, tmp180) ;
tmp182 = s3exp_isum_list_31 (tmp179, ats_castfn_mac(ats_ptr_type, tmp181)) ;
/* tmp183 = */ list_vt_free_01499_ats_ptr_type (tmp181) ;
tmp178 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp182)) ;
break ;

/* branch: __ats_lab_96 */
__ats_lab_96_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_97_0 ; }
__ats_lab_96_1:
__ats_lab_96_2:
tmp184 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp186 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg (arg1) ;
tmp187 = (ats_sum_ptr_type)0 ;
tmp185 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp185, atslab_0, tmp186) ;
ats_selptrset_mac(anairiats_sum_6, tmp185, atslab_1, tmp187) ;
tmp188 = s3exp_isum_list_31 (tmp184, ats_castfn_mac(ats_ptr_type, tmp185)) ;
/* tmp189 = */ list_vt_free_01499_ats_ptr_type (tmp185) ;
tmp178 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp188)) ;
break ;

/* branch: __ats_lab_97 */
__ats_lab_97_0:
__ats_lab_97_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_98_1 ; }
__ats_lab_97_2:
tmp190 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp192 = (ats_sum_ptr_type)0 ;
tmp191 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp191, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_6, tmp191, atslab_1, tmp192) ;
tmp193 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3explst_icff (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__intinf_neg_1, tmp190) ;
tmp194 = s3exp_isum_list_31 (ats_castfn_mac(ats_ptr_type, tmp191), ats_castfn_mac(ats_ptr_type, tmp193)) ;
/* tmp195 = */ list_vt_free_01499_ats_ptr_type (tmp191) ;
/* tmp196 = */ list_vt_free_01499_ats_ptr_type (tmp193) ;
tmp178 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp194)) ;
break ;

/* branch: __ats_lab_98 */
__ats_lab_98_0:
__ats_lab_98_1:
__ats_lab_98_2:
tmp197 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_ineg (arg1) ;
tmp178 = s3exp_isum_pair_30 (arg0, tmp197) ;
break ;
} while (0) ;
return (tmp178) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isub] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 12527(line=516, offs=37) -- 12558(line=516, offs=68)
*/
ATSstaticdec()
ats_ptr_type
__ats_fun_42 (ats_ptr_type env0, ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp223) ;

__ats_lab___ats_fun_42:
tmp223 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (arg0, env0) ;
return (tmp223) ;
} /* end of [__ats_fun_42] */

typedef struct {
ats_fun_ptr_type closure_fun ;
ats_ptr_type closure_env_0 ;
} __ats_fun_42_closure_type ;

ats_ptr_type
__ats_fun_42_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) {
return __ats_fun_42 (((__ats_fun_42_closure_type*)cloptr)->closure_env_0, arg0) ;
} /* end of function */

ATSinline()
ats_void_type
__ats_fun_42_closure_init (__ats_fun_42_closure_type *p_clo, ats_ptr_type env0) {
p_clo->closure_fun = (ats_fun_ptr_type)&__ats_fun_42_clofun ;
p_clo->closure_env_0 = env0 ;
return ;
} /* end of function */

ats_clo_ptr_type
__ats_fun_42_closure_make (ats_ptr_type env0) {
__ats_fun_42_closure_type *p_clo = ATS_MALLOC(sizeof(__ats_fun_42_closure_type)) ;
__ats_fun_42_closure_init (p_clo, env0) ;
return (ats_clo_ptr_type)p_clo ;
} /* end of function */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 12681(line=521, offs=37) -- 12712(line=521, offs=68)
*/
ATSstaticdec()
ats_ptr_type
__ats_fun_43 (ats_ptr_type env0, ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp227) ;

__ats_lab___ats_fun_43:
tmp227 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (env0, arg0) ;
return (tmp227) ;
} /* end of [__ats_fun_43] */

typedef struct {
ats_fun_ptr_type closure_fun ;
ats_ptr_type closure_env_0 ;
} __ats_fun_43_closure_type ;

ats_ptr_type
__ats_fun_43_clofun (ats_clo_ptr_type cloptr, ats_ptr_type arg0) {
return __ats_fun_43 (((__ats_fun_43_closure_type*)cloptr)->closure_env_0, arg0) ;
} /* end of function */

ATSinline()
ats_void_type
__ats_fun_43_closure_init (__ats_fun_43_closure_type *p_clo, ats_ptr_type env0) {
p_clo->closure_fun = (ats_fun_ptr_type)&__ats_fun_43_clofun ;
p_clo->closure_env_0 = env0 ;
return ;
} /* end of function */

ats_clo_ptr_type
__ats_fun_43_closure_make (ats_ptr_type env0) {
__ats_fun_43_closure_type *p_clo = ATS_MALLOC(sizeof(__ats_fun_43_closure_type)) ;
__ats_fun_43_closure_init (p_clo, env0) ;
return (ats_clo_ptr_type)p_clo ;
} /* end of function */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 11545(line=484, offs=3) -- 12809(line=528, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
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) ;
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) ;
ATSlocal (ats_ptr_type, tmp219) ;
ATSlocal (ats_ptr_type, tmp220) ;
ATSlocal (ats_ptr_type, tmp221) ;
ATSlocal (ats_ptr_type, tmp222) ;
ATSlocal (ats_ptr_type, tmp224) ;
ATSlocal (ats_ptr_type, tmp225) ;
ATSlocal (ats_ptr_type, tmp226) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul:
do {
/* branch: __ats_lab_99 */
__ats_lab_99_0:
if (((ats_sum_ptr_type)arg0)->tag != 2) { goto __ats_lab_100_0 ; }
__ats_lab_99_1:
__ats_lab_99_2:
tmp198 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 ;
break ;

/* branch: __ats_lab_100 */
__ats_lab_100_0:
__ats_lab_100_1:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_101_0 ; }
__ats_lab_100_2:
tmp198 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_0 ;
break ;

/* branch: __ats_lab_101 */
__ats_lab_101_0:
if (((ats_sum_ptr_type)arg0)->tag != 3) { goto __ats_lab_102_0 ; }
__ats_lab_101_1:
__ats_lab_101_2:
tmp198 = arg1 ;
break ;

/* branch: __ats_lab_102 */
__ats_lab_102_0:
__ats_lab_102_1:
if (((ats_sum_ptr_type)arg1)->tag != 3) { goto __ats_lab_103_0 ; }
__ats_lab_102_2:
tmp198 = arg0 ;
break ;

/* branch: __ats_lab_103 */
__ats_lab_103_0:
if (((ats_sum_ptr_type)arg0)->tag != 14) { goto __ats_lab_104_0 ; }
__ats_lab_103_1:
__ats_lab_103_2:
tmp199 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_0) ;
tmp200 = ats_caselptrlab_mac(anairiats_sum_3, arg0, atslab_1) ;
tmp201 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (tmp200, arg1) ;
tmp198 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (tmp199, tmp201) ;
break ;

/* branch: __ats_lab_104 */
__ats_lab_104_0:
__ats_lab_104_1:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_105_0 ; }
__ats_lab_104_2:
tmp202 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp203 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp204 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul (arg0, tmp203) ;
tmp198 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_icff (tmp202, tmp204) ;
break ;

/* branch: __ats_lab_105 */
__ats_lab_105_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_106_0 ; }
__ats_lab_105_1:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_107_1 ; }
__ats_lab_105_2:
tmp205 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp206 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp207 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_pair (tmp205, tmp206) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 13 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, tmp207) ;
break ;

/* branch: __ats_lab_106 */
__ats_lab_106_0:
if (((ats_sum_ptr_type)arg0)->tag != 13) { goto __ats_lab_107_0 ; }
__ats_lab_106_1:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_108_1 ; }
__ats_lab_106_2:
tmp208 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp209 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp210 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_add (tmp208, tmp209) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 13 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, tmp210) ;
break ;

/* branch: __ats_lab_107 */
__ats_lab_107_0:
if (((ats_sum_ptr_type)arg0)->tag != 0) { goto __ats_lab_108_0 ; }
__ats_lab_107_1:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_111_1 ; }
__ats_lab_107_2:
tmp211 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp212 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp213 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_add (tmp212, tmp211) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 13 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, tmp213) ;
break ;

/* branch: __ats_lab_108 */
__ats_lab_108_0:
if (((ats_sum_ptr_type)arg0)->tag != 13) { goto __ats_lab_109_0 ; }
__ats_lab_108_1:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_111_1 ; }
__ats_lab_108_2:
tmp214 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp215 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp216 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2varmset_union (tmp214, tmp215) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 13 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, tmp216) ;
break ;

/* branch: __ats_lab_109 */
__ats_lab_109_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_110_0 ; }
__ats_lab_109_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_110_1 ; }
__ats_lab_109_2:
tmp217 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
tmp218 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp219 = s3exp_imul_list_35 (tmp217, tmp218) ;
tmp198 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_isum (ats_castfn_mac(ats_ptr_type, tmp219)) ;
break ;

/* branch: __ats_lab_110 */
__ats_lab_110_0:
if (((ats_sum_ptr_type)arg0)->tag != 15) { goto __ats_lab_111_0 ; }
__ats_lab_110_1:
__ats_lab_110_2:
tmp220 = ats_caselptrlab_mac(anairiats_sum_2, arg0, atslab_0) ;
/* ats_ptr_type tmp222 ; */
tmp222 = __ats_fun_42_closure_make (arg1) ;
tmp221 = list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (tmp220, tmp222) ;
ATS_FREE(tmp222) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, ats_castfn_mac(ats_ptr_type, tmp221)) ;
break ;

/* branch: __ats_lab_111 */
__ats_lab_111_0:
__ats_lab_111_1:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_112_1 ; }
__ats_lab_111_2:
tmp224 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
/* ats_ptr_type tmp226 ; */
tmp226 = __ats_fun_43_closure_make (arg0) ;
tmp225 = list_map_cloptr_01415_ats_ptr_type_ats_ptr_type (tmp224, tmp226) ;
ATS_FREE(tmp226) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp198)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp198, atslab_0, ats_castfn_mac(ats_ptr_type, tmp225)) ;
break ;

/* branch: __ats_lab_112 */
__ats_lab_112_0:
__ats_lab_112_1:
__ats_lab_112_2:
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp198)->tag = 16 ;
ats_selptrset_mac(anairiats_sum_3, tmp198, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_3, tmp198, atslab_1, arg1) ;
break ;
} while (0) ;
return (tmp198) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_imul] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 13169(line=547, offs=3) -- 13380(line=558, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_lintize (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp228) ;
ATSlocal (ats_int_type, tmp229) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_lintize:
/* ats_int_type tmp229 ; */
tmp229 = 0 ;
tmp228 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, arg1, (&tmp229)) ;
return (tmp228) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_lintize] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 13458(line=564, offs=1) -- 16477(line=678, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (ats_ref_type arg0, ats_ptr_type arg1, ats_ref_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp230) ;
ATSlocal (ats_int_type, tmp231) ;
ATSlocal (ats_int_type, tmp232) ;
ATSlocal (ats_ptr_type, tmp233) ;
ATSlocal (ats_ptr_type, tmp234) ;
ATSlocal (ats_ptr_type, tmp235) ;
ATSlocal (ats_bool_type, tmp236) ;
ATSlocal (ats_ptr_type, tmp237) ;
ATSlocal (ats_ptr_type, tmp238) ;
ATSlocal (ats_ptr_type, tmp239) ;
ATSlocal (ats_ptr_type, tmp240) ;
ATSlocal (ats_bool_type, tmp241) ;
ATSlocal (ats_ptr_type, tmp242) ;
ATSlocal (ats_ptr_type, tmp243) ;
ATSlocal (ats_ptr_type, tmp244) ;
ATSlocal (ats_ptr_type, tmp245) ;
ATSlocal (ats_bool_type, tmp246) ;
ATSlocal (ats_ptr_type, tmp247) ;
ATSlocal (ats_ptr_type, tmp248) ;
ATSlocal (ats_ptr_type, tmp249) ;
ATSlocal (ats_ptr_type, tmp250) ;
ATSlocal (ats_bool_type, tmp251) ;
ATSlocal (ats_ptr_type, tmp252) ;
ATSlocal (ats_ptr_type, tmp253) ;
ATSlocal (ats_ptr_type, tmp254) ;
ATSlocal (ats_ptr_type, tmp255) ;
ATSlocal (ats_bool_type, tmp256) ;
ATSlocal (ats_int_type, tmp257) ;
ATSlocal (ats_ptr_type, tmp258) ;
ATSlocal (ats_ptr_type, tmp259) ;
ATSlocal (ats_bool_type, tmp260) ;
ATSlocal (ats_int_type, tmp261) ;
ATSlocal (ats_ptr_type, tmp262) ;
ATSlocal (ats_ptr_type, tmp263) ;
ATSlocal (ats_ptr_type, tmp264) ;
ATSlocal (ats_ptr_type, tmp265) ;
ATSlocal (ats_bool_type, tmp266) ;
ATSlocal (ats_ptr_type, tmp267) ;
ATSlocal (ats_ptr_type, tmp268) ;
ATSlocal (ats_bool_type, tmp269) ;
ATSlocal (ats_ptr_type, tmp270) ;
ATSlocal (ats_ptr_type, tmp271) ;
ATSlocal (ats_ptr_type, tmp272) ;
ATSlocal (ats_ptr_type, tmp273) ;
ATSlocal (ats_ptr_type, tmp274) ;
ATSlocal (ats_bool_type, tmp275) ;
ATSlocal (ats_int_type, tmp276) ;
ATSlocal (ats_ptr_type, tmp277) ;
ATSlocal (ats_int_type, tmp278) ;
ATSlocal (ats_ptr_type, tmp279) ;
ATSlocal (ats_ptr_type, tmp280) ;
ATSlocal (ats_ptr_type, tmp281) ;
ATSlocal (ats_ptr_type, tmp282) ;
ATSlocal (ats_ptr_type, tmp283) ;
ATSlocal (ats_ptr_type, tmp284) ;
ATSlocal (ats_bool_type, tmp285) ;
ATSlocal (ats_int_type, tmp286) ;
ATSlocal (ats_ptr_type, tmp287) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag:
tmp231 = ats_ptrget_mac(ats_int_type, arg2) ;
do {
/* branch: __ats_lab_113 */
__ats_lab_113_0:
if (((ats_sum_ptr_type)arg1)->tag != 0) { goto __ats_lab_114_0 ; }
__ats_lab_113_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_114 */
__ats_lab_114_0:
if (((ats_sum_ptr_type)arg1)->tag != 1) { goto __ats_lab_115_0 ; }
__ats_lab_114_1:
tmp232 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp232 ;
tmp233 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (arg0, arg1) ;
tmp230 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp233) ;
break ;

/* branch: __ats_lab_115 */
__ats_lab_115_0:
if (((ats_sum_ptr_type)arg1)->tag != 2) { goto __ats_lab_116_0 ; }
__ats_lab_115_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_116 */
__ats_lab_116_0:
if (((ats_sum_ptr_type)arg1)->tag != 3) { goto __ats_lab_117_0 ; }
__ats_lab_116_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_117 */
__ats_lab_117_0:
if (((ats_sum_ptr_type)arg1)->tag != 4) { goto __ats_lab_118_0 ; }
__ats_lab_117_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_118 */
__ats_lab_118_0:
if (((ats_sum_ptr_type)arg1)->tag != 5) { goto __ats_lab_119_0 ; }
__ats_lab_118_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_119 */
__ats_lab_119_0:
if (((ats_sum_ptr_type)arg1)->tag != 6) { goto __ats_lab_120_0 ; }
__ats_lab_119_1:
tmp234 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp235 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp234, arg2) ;
tmp236 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp236) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp230)->tag = 6 ;
ats_selptrset_mac(anairiats_sum_2, tmp230, atslab_0, tmp235) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_120 */
__ats_lab_120_0:
if (((ats_sum_ptr_type)arg1)->tag != 7) { goto __ats_lab_121_0 ; }
__ats_lab_120_1:
tmp237 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp238 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp239 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp237, arg2) ;
tmp240 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp238, arg2) ;
tmp241 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp241) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp230)->tag = 7 ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_0, tmp239) ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_1, tmp240) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_121 */
__ats_lab_121_0:
if (((ats_sum_ptr_type)arg1)->tag != 8) { goto __ats_lab_122_0 ; }
__ats_lab_121_1:
tmp242 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp243 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp244 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp242, arg2) ;
tmp245 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp243, arg2) ;
tmp246 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp246) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp230)->tag = 8 ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_0, tmp244) ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_1, tmp245) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_122 */
__ats_lab_122_0:
if (((ats_sum_ptr_type)arg1)->tag != 9) { goto __ats_lab_123_0 ; }
__ats_lab_122_1:
tmp247 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp248 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp249 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp247, arg2) ;
tmp250 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp248, arg2) ;
tmp251 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp251) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp230)->tag = 9 ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_0, tmp249) ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_1, tmp250) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_123 */
__ats_lab_123_0:
if (((ats_sum_ptr_type)arg1)->tag != 10) { goto __ats_lab_124_0 ; }
__ats_lab_123_1:
tmp252 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp253 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp254 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp252, arg2) ;
tmp255 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp253, arg2) ;
tmp256 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp256) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp230)->tag = 10 ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_0, tmp254) ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_1, tmp255) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_124 */
__ats_lab_124_0:
if (((ats_sum_ptr_type)arg1)->tag != 11) { goto __ats_lab_125_0 ; }
__ats_lab_124_1:
tmp257 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp258 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp259 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp258, arg2) ;
tmp260 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp260) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
((ats_sum_ptr_type)tmp230)->tag = 11 ;
ats_selptrset_mac(anairiats_sum_4, tmp230, atslab_0, tmp257) ;
ats_selptrset_mac(anairiats_sum_4, tmp230, atslab_1, tmp259) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_125 */
__ats_lab_125_0:
if (((ats_sum_ptr_type)arg1)->tag != 12) { goto __ats_lab_126_0 ; }
__ats_lab_125_1:
tmp230 = arg1 ;
break ;

/* branch: __ats_lab_126 */
__ats_lab_126_0:
if (((ats_sum_ptr_type)arg1)->tag != 13) { goto __ats_lab_127_0 ; }
__ats_lab_126_1:
tmp261 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp261 ;
tmp262 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (arg0, arg1) ;
tmp230 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp262) ;
break ;

/* branch: __ats_lab_127 */
__ats_lab_127_0:
if (((ats_sum_ptr_type)arg1)->tag != 14) { goto __ats_lab_128_0 ; }
__ats_lab_127_1:
tmp263 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp264 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp265 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp264, arg2) ;
tmp266 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp266) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp230)->tag = 14 ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_0, tmp263) ;
ats_selptrset_mac(anairiats_sum_3, tmp230, atslab_1, tmp265) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_128 */
__ats_lab_128_0:
if (((ats_sum_ptr_type)arg1)->tag != 15) { goto __ats_lab_129_0 ; }
__ats_lab_128_1:
tmp267 = ats_caselptrlab_mac(anairiats_sum_2, arg1, atslab_0) ;
tmp268 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag (arg0, tmp267, arg2) ;
tmp269 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp269) {
tmp230 = ATS_MALLOC(sizeof(anairiats_sum_2)) ;
((ats_sum_ptr_type)tmp230)->tag = 15 ;
ats_selptrset_mac(anairiats_sum_2, tmp230, atslab_0, tmp268) ;
} else {
tmp230 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_129 */
__ats_lab_129_0:
if (((ats_sum_ptr_type)arg1)->tag != 16) { goto __ats_lab_130_0 ; }
__ats_lab_129_1:
tmp270 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp271 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp272 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp270, arg2) ;
tmp273 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp271, arg2) ;
tmp275 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp275) {
tmp274 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp274)->tag = 16 ;
ats_selptrset_mac(anairiats_sum_3, tmp274, atslab_0, tmp272) ;
ats_selptrset_mac(anairiats_sum_3, tmp274, atslab_1, tmp273) ;
} else {
tmp274 = arg1 ;
} /* end of [if] */
tmp276 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp276 ;
tmp277 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (arg0, tmp274) ;
tmp230 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp277) ;
break ;

/* branch: __ats_lab_130 */
__ats_lab_130_0:
if (((ats_sum_ptr_type)arg1)->tag != 17) { goto __ats_lab_131_0 ; }
__ats_lab_130_1:
tmp278 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp278 ;
tmp279 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (arg0, arg1) ;
tmp230 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp279) ;
break ;

/* branch: __ats_lab_131 */
__ats_lab_131_0:
if (((ats_sum_ptr_type)arg1)->tag != 18) { goto __ats_lab_132_0 ; }
__ats_lab_131_1:
tmp280 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_0) ;
tmp281 = ats_caselptrlab_mac(anairiats_sum_3, arg1, atslab_1) ;
tmp282 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp280, arg2) ;
tmp283 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag (arg0, tmp281, arg2) ;
tmp285 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp231) ;
if (tmp285) {
tmp284 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp284)->tag = 18 ;
ats_selptrset_mac(anairiats_sum_3, tmp284, atslab_0, tmp282) ;
ats_selptrset_mac(anairiats_sum_3, tmp284, atslab_1, tmp283) ;
} else {
tmp284 = arg1 ;
} /* end of [if] */
tmp286 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp286 ;
tmp287 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s2vbcfenv_replace_nonlin (arg0, tmp284) ;
tmp230 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__s3exp_var (tmp287) ;
break ;

/* branch: __ats_lab_132 */
__ats_lab_132_0:
// if (((ats_sum_ptr_type)arg1)->tag != 19) { ats_deadcode_failure_handle () ; }
__ats_lab_132_1:
tmp230 = arg1 ;
break ;
} while (0) ;
return (tmp230) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag] */

/*
// /tmp/ATS-Postiats/src/pats_constraint3_simplify.dats: 16558(line=684, offs=1) -- 16901(line=700, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag (ats_ref_type arg0, ats_ptr_type arg1, ats_ref_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp288) ;
ATSlocal (ats_int_type, tmp289) ;
ATSlocal (ats_ptr_type, tmp290) ;
ATSlocal (ats_ptr_type, tmp291) ;
ATSlocal (ats_ptr_type, tmp292) ;
ATSlocal (ats_ptr_type, tmp293) ;
ATSlocal (ats_bool_type, tmp294) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag:
tmp289 = ats_ptrget_mac(ats_int_type, arg2) ;
do {
/* branch: __ats_lab_133 */
__ats_lab_133_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_134_0 ; }
__ats_lab_133_1:
tmp290 = ats_caselptrlab_mac(anairiats_sum_6, arg1, atslab_0) ;
tmp291 = ats_caselptrlab_mac(anairiats_sum_6, arg1, atslab_1) ;
tmp292 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3exp_lintize_flag (arg0, tmp290, arg2) ;
tmp293 = _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag (arg0, tmp291, arg2) ;
tmp294 = atspre_gt_int_int (ats_ptrget_mac(ats_int_type, arg2), tmp289) ;
if (tmp294) {
tmp288 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp288, atslab_0, tmp292) ;
ats_selptrset_mac(anairiats_sum_6, tmp288, atslab_1, tmp293) ;
} else {
tmp288 = arg1 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_134 */
__ats_lab_134_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_134_1:
tmp288 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp288) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__s3explst_lintize_flag] */

/* 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_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_constraint3_2esats__staload (void) ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__staload () {
static int _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__staload_flag = 0 ;
if (_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__staload_flag) return ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_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_intinf_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_2esats__staload () ;

return ;
} /* staload function */

/* dynamic load function */

// dynload flag declaration
extern ats_int_type _2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__dynload_flag ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__dynload () {
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_2edats__dynload_flag = 1 ;
_2tmp_2ATS_2dPostiats_2src_2pats_constraint3_simplify_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 */

/* marking external values for GC */

/* code for dynamic loading */
return ;
} /* end of [dynload function] */

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

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

/* end of [pats_constraint3_simplify_dats.c] */
