/*
**
** 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_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_location.cats"

#include "pats_lexbuf.cats"

#include "pats_location.cats"

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

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

typedef
struct {
ats_ptr_type atslab_d2lab_loc ;
ats_ptr_type atslab_d2lab_node ;
ats_ptr_type atslab_d2lab_overld ;
} anairiats_rec_2 ;

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

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

typedef
struct {
ats_ptr_type atslab_d3exp_loc ;
ats_ptr_type atslab_d3exp_type ;
ats_ptr_type atslab_d3exp_node ;
} anairiats_rec_5 ;

typedef struct {
ats_ptr_type atslab_0 ;
} anairiats_sum_6 ;

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

typedef struct {
ats_ptr_type atslab_0 ;
ats_ptr_type atslab_1 ;
ats_ptr_type atslab_2 ;
} anairiats_sum_8 ;

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

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

typedef
struct {
ats_ptr_type atslab_d3lab_loc ;
ats_ptr_type atslab_d3lab_node ;
ats_ptr_type atslab_d3lab_overld ;
ats_ptr_type atslab_d3lab_overld_app ;
} anairiats_rec_11 ;

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

typedef struct {
anairiats_rec_1 atslab_0 ;
} anairiats_sum_13 ;

typedef
struct {
ats_ptr_type atslab_d2exp_loc ;
ats_ptr_type atslab_d2exp_node ;
} anairiats_rec_14 ;

/* external typedefs */
/* external dynamic constructor declarations */
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_cons_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_nil_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__None_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__Some_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_vt_cons_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__list_vt_nil_1) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__None_vt_0) ;
ATSextern_val(ats_sum_type, ATS_2d0_2e2_2e12_2prelude_2basics_sta_2esats__Some_vt_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__SLABELED_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Etyarr_24) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Etyrec_25) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__S2Eexi_27) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2LABlab_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2LABind_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2Evar_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__D2Ederef_43) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__D3LABlab_0) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__D3LABind_1) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__D3Eapp_dyn_26) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_s2exp_selab_tyrec_43) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_s2exp_selab_labnot_44) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_s2exp_selab_tyarr_45) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d3exp_arrind_46) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d3exp_arrdim_47) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d3exp_selab_linrest_48) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d3lab_overld_app_50) ;
ATSextern_val(ats_sum_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__T3E_d2var_selab_context_64) ;

/* external dynamic constant declarations */
ATSextern_fun(ats_void_type, atspre_vbox_make_view_ptr) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_prerr_newline) () ;
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_lt_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_bool_type, atspre_eq_int_int) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_isucc) (ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_iadd) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_isub) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_int_type, atspre_idiv) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_ilt) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_igt) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_igte) (ats_int_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_size1_of_int1) (ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_add_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_sub_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_size_type, atspre_mul2_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_bool_type, atspre_lt_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_bool_type, atspre_gt_size1_int1) (ats_size_type, ats_int_type) ;
ATSextern_fun(ats_bool_type, atspre_neq_size1_size1) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_ptr_alloc_tsz) (ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_ptr_zero_tsz) (ats_ref_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_ref_make_elt_tsz) (ats_ref_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_prerr_string) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, ListSubscriptException_make) () ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_alloc_tsz) (ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_free) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_initialize_funenv_tsz) (ats_ref_type, ats_size_type, ats_ptr_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_initialize_cloenv_tsz) (ats_ref_type, ats_size_type, ats_ref_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_split_tsz) (ats_ptr_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_ptr_type, atspre_array_ptr_takeout_tsz) (ats_ptr_type, ats_size_type, ats_size_type) ;
ATSextern_fun(anairiats_rec_0, atspre_array_ptr_takeout2_tsz) (ats_ptr_type, ats_size_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_foreach_funenv_tsz) (ats_ref_type, ats_ptr_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, atspre_array_ptr_iforeach_funenv_tsz) (ats_ref_type, ats_ptr_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, atspre_array2_ptr_takeout_tsz) (ats_ptr_type, ats_size_type, ats_size_type, ats_size_type) ;
ATSextern_fun(ats_void_type, atslib_qsort) (ats_ref_type, ats_size_type, ats_size_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__eq_label_label) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__prerr_label) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__tyreckind_is_box) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2hole_make_srt) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2ctxt_make) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_hole) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_tyrec_srt) (ats_ptr_type, ats_ptr_type, ats_int_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err) () ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2ctxt_hrepl) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_hrepl) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_topize) (ats_int_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_hnfize) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlt) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_igtez) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__un_s2exp_g1int_index_t0ype) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__un_s2exp_g1uint_index_t0ype) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_inc_linval) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_addr) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_is_linear) (ats_ptr_type) ;
ATSextern_fun(ats_bool_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_is_mutabl) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2sym) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_app_dyn) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_int_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_sel_var) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_selab) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3lab_lab) (ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3lab_ind) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2var_get_type_some) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_var_nonmut) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lab_trup) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup) (ats_ptr_type) ;
ATSextern_fun(anairiats_rec_1, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ref_type, ats_ref_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ref_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_deref) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2addr_deref) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ref_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2explst_trup) (ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_proplst_vt) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2hnf_opn1exi_and_add) (ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_void_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d3exp_open_and_add) (ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_lin) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_mut) (ats_ptr_type, ats_ptr_type, ats_ptr_type, ats_ptr_type) ;
ATSextern_fun(ats_ptr_type, _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab) (ats_ptr_type, ats_ptr_type, ats_ptr_type) ;

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

/* assuming abstract types */
/* sum constructor declarations */
/* exn constructor declarations */
/* global dynamic (non-functional) constant declarations */
/* internal function declarations */
static
ats_void_type prerr_FILENAME_02045_ () ;
static
ats_void_type loop_5 (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_fun_01413_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type prerr_error3_loc_02051_ (ats_ptr_type arg0) ;
static
ats_void_type auxerr_7 (ats_ptr_type arg0) ;
static
ats_ptr_type arrbndck_6 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_void_type auxerr_10 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_int_type arg3) ;
static
ats_int_type loop_12 (ats_ptr_type arg0, ats_int_type arg1) ;
static
ats_int_type list_length_01410_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_void_type loop_15 (ats_ref_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type list_vt_append_01504_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type auxcheck_13 (ats_ptr_type arg0, ats_ptr_type arg1) ;
static
ats_ptr_type arrbndlst_check_9 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_void_type lincheck_16 (ats_ptr_type arg0, ats_ref_type arg1) ;
static
ats_ptr_type labfind_lincheck_17 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) ;
static
ats_ptr_type auxlab_sexp_18 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ref_type arg4, ats_ref_type arg5) ;
static
ats_ptr_type auxlab_shnf_19 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ref_type arg4, ats_ref_type arg5) ;
static
anairiats_rec_1 auxind_20 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
anairiats_rec_1 auxsel_21 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) ;
static
anairiats_rec_1 auxselist_22 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) ;
static
ats_ptr_type labfind_context_24 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) ;
static
ats_ptr_type auxlab_25 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) ;
static
anairiats_rec_1 auxind_26 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3, ats_bool_type arg4) ;
static
anairiats_rec_1 auxsel_27 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_bool_type arg3) ;
static
ats_void_type option_vt_free_01544_anairiats_rec_1 (ats_ptr_type arg0) ;
static
anairiats_rec_1 auxselist_28 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_bool_type arg3) ;
static
ats_void_type loop_32 (ats_ptr_type arg0) ;
static
ats_void_type list_vt_free_01499_ats_ptr_type (ats_ptr_type arg0) ;
static
ats_void_type auxerr_linrest_37 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) ;
static
ats_bool_type loop_40 (ats_ptr_type arg0, ats_int_type arg1, ats_ref_type arg2) ;
static
ats_ptr_type list_take_exn_01442_ats_ptr_type (ats_ptr_type arg0, ats_int_type arg1) ;
static
ats_ptr_type auxfinize_38 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ptr_type arg4, ats_int_type arg5) ;

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

/* function implementations */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 1622(line=49, offs=18) -- 1652(line=49, offs=48)
*/
ATSstaticdec()
ats_void_type
prerr_FILENAME_02045_ () {
/* local vardec */
// ATSlocal_void (tmp0) ;

__ats_lab_prerr_FILENAME_02045_:
/* tmp0 = */ atspre_prerr_string (ATSstrcst("pats_trans3_selab")) ;
return /* (tmp0) */ ;
} /* end of [prerr_FILENAME_02045_] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 2228(line=84, offs=12) -- 2492(line=98, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lab_trup (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp1) ;
ATSlocal (ats_ptr_type, tmp2) ;
ATSlocal (ats_ptr_type, tmp3) ;
ATSlocal (ats_ptr_type, tmp4) ;
ATSlocal (ats_ptr_type, tmp5) ;
ATSlocal (ats_ptr_type, tmp6) ;
ATSlocal (ats_ptr_type, tmp7) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lab_trup:
tmp2 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_2, arg0), atslab_d2lab_loc) ;
tmp3 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_2, arg0), atslab_d2lab_overld) ;
tmp4 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_2, arg0), atslab_d2lab_node) ;
do {
/* branch: __ats_lab_0 */
__ats_lab_0_0:
if (((ats_sum_ptr_type)tmp4)->tag != 0) { goto __ats_lab_1_0 ; }
__ats_lab_0_1:
tmp5 = ats_caselptrlab_mac(anairiats_sum_3, tmp4, atslab_0) ;
tmp1 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3lab_lab (tmp2, tmp5, tmp3) ;
break ;

/* branch: __ats_lab_1 */
__ats_lab_1_0:
// if (((ats_sum_ptr_type)tmp4)->tag != 1) { ats_deadcode_failure_handle () ; }
__ats_lab_1_1:
tmp6 = ats_caselptrlab_mac(anairiats_sum_3, tmp4, atslab_0) ;
tmp7 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2explst_trup (tmp6) ;
tmp1 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3lab_ind (tmp2, tmp7) ;
break ;
} while (0) ;
return (tmp1) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lab_trup] */

/*
// /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_5 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ptr_type arg3) {
/* local vardec */
// ATSlocal_void (tmp12) ;
ATSlocal (ats_ptr_type, tmp13) ;
ATSlocal (ats_ptr_type, tmp14) ;
ATSlocal (ats_ptr_type, tmp15) ;
ATSlocal (ats_ptr_type, tmp16) ;
ATSlocal (ats_ptr_type, tmp17) ;
ATSlocal (ats_ptr_type, tmp18) ;

__ats_lab_loop_5:
do {
/* branch: __ats_lab_2 */
__ats_lab_2_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_3_0 ; }
__ats_lab_2_1:
tmp13 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp14 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
tmp15 = ((ats_ptr_type(*)(ats_ptr_type, ats_ptr_type))arg1) (tmp13, arg3) ;
tmp16 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp16, atslab_0, tmp15) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp16 ;
// if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp17 = &ats_caselptrlab_mac(anairiats_sum_4, ats_ptrget_mac(ats_ptr_type, arg2), atslab_1) ;
arg0 = tmp14 ;
arg1 = arg1 ;
arg2 = tmp17 ;
arg3 = arg3 ;
goto __ats_lab_loop_5 ; // tail call
break ;

/* branch: __ats_lab_3 */
__ats_lab_3_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_3_1:
tmp18 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp18 ;
break ;
} while (0) ;
return /* (tmp12) */ ;
} /* end of [loop_5] */

/*
// /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, tmp11) ;
ATSlocal (ats_ptr_type, tmp19) ;
// ATSlocal_void (tmp20) ;

__ats_lab_list_map_funenv_01412_ats_ptr_type_ats_ptr_type:
/* ats_ptr_type tmp19 ; */
/* tmp20 = */ loop_5 (arg0, arg1, (&tmp19), arg2) ;
tmp11 = tmp19 ;
return (tmp11) ;
} /* 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: 53173(line=1904, offs=3) -- 53424(line=1911, offs=2)
*/
ATSstaticdec()
ats_ptr_type
list_map_fun_01413_ats_ptr_type_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp10) ;

__ats_lab_list_map_fun_01413_ats_ptr_type_ats_ptr_type:
tmp10 = list_map_funenv_01412_ats_ptr_type_ats_ptr_type (arg0, ats_castfn_mac(ats_ptr_type, arg1), atspre_null_ptr) ;
return (tmp10) ;
} /* end of [list_map_fun_01413_ats_ptr_type_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 2543(line=101, offs=15) -- 2617(line=103, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp8) ;
ATSlocal (ats_ptr_type, tmp9) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup:
tmp9 = list_map_fun_01413_ats_ptr_type_ats_ptr_type (arg0, &_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lab_trup) ;
tmp8 = ats_castfn_mac(ats_ptr_type, tmp9) ;
return (tmp8) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup] */

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

__ats_lab_prerr_error3_loc_02051_:
/* tmp27 = */ _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__prerr_location (arg0) ;
/* tmp26 = */ atspre_prerr_string (ATSstrcst(": error(3)")) ;
return /* (tmp26) */ ;
} /* end of [prerr_error3_loc_02051_] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 2751(line=116, offs=1) -- 3134(line=128, offs=4)
*/
ATSstaticdec()
ats_void_type
auxerr_7 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp22) ;
ATSlocal (ats_ptr_type, tmp23) ;
ATSlocal (ats_ptr_type, tmp24) ;
// ATSlocal_void (tmp25) ;
// ATSlocal_void (tmp28) ;
// ATSlocal_void (tmp29) ;
// ATSlocal_void (tmp30) ;
// ATSlocal_void (tmp31) ;
// ATSlocal_void (tmp32) ;
ATSlocal (ats_ptr_type, tmp33) ;

__ats_lab_auxerr_7:
tmp23 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_5, arg0), atslab_d3exp_loc) ;
tmp24 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type (arg0) ;
/* tmp25 = */ prerr_error3_loc_02051_ (tmp23) ;
/* tmp28 = */ atspre_prerr_string (ATSstrcst(": the type of the array index is not ")) ;
/* tmp29 = */ atspre_prerr_string (ATSstrcst("a generic (signed or unsigned) integer type: [")) ;
/* tmp30 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp24) ;
/* tmp31 = */ atspre_prerr_string (ATSstrcst("].")) ;
/* tmp32 = */ atspre_prerr_newline () ;
tmp33 = ATS_MALLOC(sizeof(anairiats_sum_3)) ;
((ats_sum_ptr_type)tmp33)->tag = 46 ;
ats_selptrset_mac(anairiats_sum_3, tmp33, atslab_0, arg0) ;
/* tmp22 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp33) ;
return /* (tmp22) */ ;
} /* end of [auxerr_7] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 2679(line=110, offs=1) -- 3839(line=158, offs=4)
*/
ATSstaticdec()
ats_ptr_type
arrbndck_6 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp21) ;
// ATSlocal_void (tmp34) ;
ATSlocal (ats_ptr_type, tmp35) ;
ATSlocal (ats_ptr_type, tmp36) ;
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
ATSlocal (ats_ptr_type, tmp39) ;
ATSlocal (ats_ptr_type, tmp40) ;
ATSlocal (ats_ptr_type, tmp41) ;
ATSlocal (ats_ptr_type, tmp42) ;
ATSlocal (ats_ptr_type, tmp43) ;
ATSlocal (ats_ptr_type, tmp44) ;
ATSlocal (ats_ptr_type, tmp45) ;
ATSlocal (ats_ptr_type, tmp46) ;
// ATSlocal_void (tmp47) ;

__ats_lab_arrbndck_6:
/* tmp34 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__d3exp_open_and_add (arg0) ;
tmp35 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type (arg0) ;
tmp36 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (tmp35) ;
tmp37 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__un_s2exp_g1int_index_t0ype (tmp36) ;
do {
/* branch: __ats_lab_4 */
__ats_lab_4_0:
if (tmp37 == (ats_sum_ptr_type)0) { goto __ats_lab_5_0 ; }
__ats_lab_4_1:
tmp38 = ats_caselptrlab_mac(anairiats_sum_6, tmp37, atslab_0) ;
ATS_FREE(tmp37) ;
tmp39 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_igtez (tmp38) ;
tmp40 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlt (tmp38, arg1) ;
tmp42 = (ats_sum_ptr_type)0 ;
tmp41 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp41, atslab_0, tmp40) ;
ats_selptrset_mac(anairiats_sum_4, tmp41, atslab_1, tmp42) ;
tmp21 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp21, atslab_0, tmp39) ;
ats_selptrset_mac(anairiats_sum_4, tmp21, atslab_1, tmp41) ;
break ;

/* branch: __ats_lab_5 */
__ats_lab_5_0:
// if (tmp37 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_5_1:
tmp43 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__un_s2exp_g1uint_index_t0ype (tmp36) ;
do {
/* branch: __ats_lab_6 */
__ats_lab_6_0:
if (tmp43 == (ats_sum_ptr_type)0) { goto __ats_lab_7_0 ; }
__ats_lab_6_1:
tmp44 = ats_caselptrlab_mac(anairiats_sum_6, tmp43, atslab_0) ;
ATS_FREE(tmp43) ;
tmp45 = _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__s2exp_intlt (tmp44, arg1) ;
tmp46 = (ats_sum_ptr_type)0 ;
tmp21 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp21, atslab_0, tmp45) ;
ats_selptrset_mac(anairiats_sum_4, tmp21, atslab_1, tmp46) ;
break ;

/* branch: __ats_lab_7 */
__ats_lab_7_0:
// if (tmp43 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_7_1:
/* tmp47 = */ auxerr_7 (arg0) ;
tmp21 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp21) ;
} /* end of [arrbndck_6] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 3981(line=169, offs=1) -- 4380(line=181, offs=4)
*/
ATSstaticdec()
ats_void_type
auxerr_10 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_int_type arg3) {
/* local vardec */
// ATSlocal_void (tmp49) ;
// ATSlocal_void (tmp50) ;
// ATSlocal_void (tmp51) ;
// ATSlocal_void (tmp52) ;
ATSlocal (ats_bool_type, tmp53) ;
// ATSlocal_void (tmp54) ;
ATSlocal (ats_bool_type, tmp55) ;
// ATSlocal_void (tmp56) ;
ATSlocal (ats_ptr_type, tmp57) ;

__ats_lab_auxerr_10:
/* tmp50 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp51 = */ atspre_prerr_string (ATSstrcst(": the label is expected to contain ")) ;
tmp53 = atspre_lt_int_int (arg3, 0) ;
if (tmp53) {
/* tmp52 = */ atspre_prerr_string (ATSstrcst("more array indexes.")) ;
} else {
/* empty */
} /* end of [if] */
tmp55 = atspre_gt_int_int (arg3, 0) ;
if (tmp55) {
/* tmp54 = */ atspre_prerr_string (ATSstrcst("fewer array indexes.")) ;
} else {
/* empty */
} /* end of [if] */
/* tmp56 = */ atspre_prerr_newline () ;
tmp57 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp57)->tag = 47 ;
ats_selptrset_mac(anairiats_sum_7, tmp57, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_7, tmp57, atslab_1, arg2) ;
ats_selptrset_mac(anairiats_sum_7, tmp57, atslab_2, arg1) ;
/* tmp49 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp57) ;
return /* (tmp49) */ ;
} /* end of [auxerr_10] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 51781(line=1842, offs=7) -- 51921(line=1845, offs=6)
*/
ATSstaticdec()
ats_int_type
loop_12 (ats_ptr_type arg0, ats_int_type arg1) {
/* local vardec */
ATSlocal (ats_int_type, tmp60) ;
ATSlocal (ats_ptr_type, tmp61) ;
ATSlocal (ats_int_type, tmp62) ;

__ats_lab_loop_12:
do {
/* branch: __ats_lab_8 */
__ats_lab_8_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_9_0 ; }
__ats_lab_8_1:
tmp61 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
tmp62 = atspre_isucc (arg1) ;
arg0 = tmp61 ;
arg1 = tmp62 ;
goto __ats_lab_loop_12 ; // tail call
break ;

/* branch: __ats_lab_9 */
__ats_lab_9_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_9_1:
tmp60 = arg1 ;
break ;
} while (0) ;
return (tmp60) ;
} /* end of [loop_12] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 51764(line=1841, offs=13) -- 52005(line=1849, offs=4)
*/
ATSstaticdec()
ats_int_type
list_length_01410_ats_ptr_type (ats_ptr_type arg0) {
/* local vardec */
ATSlocal (ats_int_type, tmp59) ;

__ats_lab_list_length_01410_ats_ptr_type:
tmp59 = loop_12 (arg0, 0) ;
return (tmp59) ;
} /* end of [list_length_01410_ats_ptr_type] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list_vt.dats: 6702(line=253, offs=5) -- 6923(line=259, offs=4)
*/
ATSstaticdec()
ats_void_type
loop_15 (ats_ref_type arg0, ats_ptr_type arg1) {
/* local vardec */
// ATSlocal_void (tmp73) ;
ATSlocal (ats_ptr_type, tmp74) ;

__ats_lab_loop_15:
do {
/* branch: __ats_lab_11 */
__ats_lab_11_0:
if (ats_ptrget_mac(ats_ptr_type, arg0) == (ats_sum_ptr_type)0) { goto __ats_lab_12_0 ; }
__ats_lab_11_1:
tmp74 = &ats_caselptrlab_mac(anairiats_sum_4, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
arg0 = tmp74 ;
arg1 = arg1 ;
goto __ats_lab_loop_15 ; // tail call
break ;

/* branch: __ats_lab_12 */
__ats_lab_12_0:
// if (ats_ptrget_mac(ats_ptr_type, arg0) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_12_1:
ats_ptrget_mac(ats_ptr_type, arg0) = arg1 ;
break ;
} while (0) ;
return /* (tmp73) */ ;
} /* end of [loop_15] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list_vt.dats: 6567(line=247, offs=16) -- 6970(line=262, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_vt_append_01504_ats_ptr_type (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp71) ;
ATSlocal (ats_ptr_type, tmp72) ;
// ATSlocal_void (tmp75) ;

__ats_lab_list_vt_append_01504_ats_ptr_type:
/* ats_ptr_type tmp72 ; */
tmp72 = arg0 ;
/* tmp75 = */ loop_15 ((&tmp72), arg1) ;
tmp71 = tmp72 ;
return (tmp71) ;
} /* end of [list_vt_append_01504_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 4467(line=187, offs=1) -- 4830(line=202, offs=2)
*/
ATSstaticdec()
ats_ptr_type
auxcheck_13 (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp64) ;
ATSlocal (ats_ptr_type, tmp65) ;
ATSlocal (ats_ptr_type, tmp66) ;
ATSlocal (ats_ptr_type, tmp67) ;
ATSlocal (ats_ptr_type, tmp68) ;
ATSlocal (ats_ptr_type, tmp69) ;
ATSlocal (ats_ptr_type, tmp70) ;

__ats_lab_auxcheck_13:
do {
/* branch: __ats_lab_10 */
__ats_lab_10_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_13_0 ; }
__ats_lab_10_1:
tmp65 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp66 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
if (arg1 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 4597(line=194, offs=11) -- 4633(line=195, offs=27)") ; }
tmp67 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp68 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp69 = arrbndck_6 (tmp65, tmp67) ;
tmp70 = auxcheck_13 (tmp66, tmp68) ;
tmp64 = list_vt_append_01504_ats_ptr_type (tmp69, tmp70) ;
break ;

/* branch: __ats_lab_13 */
__ats_lab_13_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_13_1:
tmp64 = (ats_sum_ptr_type)0 ;
break ;
} while (0) ;
return (tmp64) ;
} /* end of [auxcheck_13] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 3890(line=163, offs=1) -- 5105(line=218, offs=4)
*/
ATSstaticdec()
ats_ptr_type
arrbndlst_check_9 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp48) ;
ATSlocal (ats_int_type, tmp58) ;
ATSlocal (ats_int_type, tmp63) ;
ATSlocal (ats_int_type, tmp76) ;
ATSlocal (ats_bool_type, tmp77) ;
// ATSlocal_void (tmp78) ;
ATSlocal (ats_bool_type, tmp79) ;
// ATSlocal_void (tmp80) ;

__ats_lab_arrbndlst_check_9:
tmp58 = list_length_01410_ats_ptr_type (arg1) ;
tmp63 = list_length_01410_ats_ptr_type (arg2) ;
tmp76 = atspre_isub (tmp58, tmp63) ;
tmp77 = atspre_ilt (tmp76, 0) ;
if (tmp77) {
/* tmp78 = */ auxerr_10 (arg0, arg1, arg2, tmp76) ;
tmp48 = (ats_sum_ptr_type)0 ;
} else {
tmp79 = atspre_igt (tmp76, 0) ;
if (tmp79) {
/* tmp80 = */ auxerr_10 (arg0, arg1, arg2, tmp76) ;
tmp48 = (ats_sum_ptr_type)0 ;
} else {
tmp48 = auxcheck_13 (arg1, arg2) ;
} /* end of [if] */
} /* end of [if] */
return (tmp48) ;
} /* end of [arrbndlst_check_9] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 5190(line=227, offs=1) -- 5610(line=251, offs=4)
*/
ATSstaticdec()
ats_void_type
lincheck_16 (ats_ptr_type arg0, ats_ref_type arg1) {
/* local vardec */
// ATSlocal_void (tmp81) ;
ATSlocal (ats_bool_type, tmp82) ;
ATSlocal (ats_ptr_type, tmp83) ;
ATSlocal (ats_ptr_type, tmp84) ;
ATSlocal (ats_ptr_type, tmp85) ;
ATSlocal (ats_bool_type, tmp87) ;
ATSlocal (ats_int_type, tmp88) ;

__ats_lab_lincheck_16:
tmp82 = atspre_eq_int_int (ats_ptrget_mac(ats_int_type, arg1), 0) ;
if (tmp82) {
do {
/* branch: __ats_lab_14 */
__ats_lab_14_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_15_0 ; }
__ats_lab_14_1:
tmp83 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp84 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
// 
tmp85 = ats_caselptrlab_mac(anairiats_sum_8, tmp83, atslab_2) ;
tmp87 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin (tmp85) ;
if (tmp87) {
tmp88 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg1), 1) ;
ats_ptrget_mac(ats_int_type, arg1) = tmp88 ;
} else {
/* empty */
} /* end of [if] */
arg0 = tmp84 ;
arg1 = arg1 ;
goto __ats_lab_lincheck_16 ; // tail call
break ;

/* branch: __ats_lab_15 */
__ats_lab_15_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_15_1:
break ;
} while (0) ;
} else {
/* empty */
} /* end of [if] */
return /* (tmp81) */ ;
} /* end of [lincheck_16] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 5637(line=254, offs=1) -- 6359(line=285, offs=4)
*/
ATSstaticdec()
ats_ptr_type
labfind_lincheck_17 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp89) ;
ATSlocal (ats_ptr_type, tmp90) ;
ATSlocal (ats_ptr_type, tmp91) ;
ATSlocal (ats_ptr_type, tmp92) ;
ATSlocal (ats_ptr_type, tmp93) ;
ATSlocal (ats_bool_type, tmp94) ;
// ATSlocal_void (tmp95) ;
ATSlocal (ats_bool_type, tmp97) ;
ATSlocal (ats_bool_type, tmp98) ;
ATSlocal (ats_int_type, tmp99) ;
ATSlocal (ats_int_type, tmp100) ;

__ats_lab_labfind_lincheck_17:
do {
/* branch: __ats_lab_16 */
__ats_lab_16_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_17_0 ; }
__ats_lab_16_1:
tmp90 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp91 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;

tmp92 = ats_caselptrlab_mac(anairiats_sum_8, tmp90, atslab_0) ;
tmp93 = ats_caselptrlab_mac(anairiats_sum_8, tmp90, atslab_2) ;
tmp94 = _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__eq_label_label (arg0, tmp92) ;
if (tmp94) {
/* tmp95 = */ lincheck_16 (tmp91, arg2) ;
tmp89 = tmp93 ;
} else {
tmp97 = atspre_eq_int_int (ats_ptrget_mac(ats_int_type, arg2), 0) ;
if (tmp97) {
tmp98 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin (tmp93) ;
if (tmp98) {
tmp99 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp99 ;
} else {
/* empty */
} /* end of [if] */
} else {
/* empty */
} /* end of [if] */
arg0 = arg0 ;
arg1 = tmp91 ;
arg2 = arg2 ;
arg3 = arg3 ;
goto __ats_lab_labfind_lincheck_17 ; // tail call
} /* end of [if] */
break ;

/* branch: __ats_lab_17 */
__ats_lab_17_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_17_1:
tmp100 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg3), 1) ;
ats_ptrget_mac(ats_int_type, arg3) = tmp100 ;
tmp89 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
break ;
} while (0) ;
return (tmp89) ;
} /* end of [labfind_lincheck_17] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 6394(line=288, offs=1) -- 6598(line=298, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxlab_sexp_18 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ref_type arg4, ats_ref_type arg5) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp101) ;
ATSlocal (ats_ptr_type, tmp102) ;

__ats_lab_auxlab_sexp_18:
tmp102 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg1) ;
tmp101 = auxlab_shnf_19 (arg0, tmp102, arg2, arg3, arg4, arg5) ;
return (tmp101) ;
} /* end of [auxlab_sexp_18] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 6625(line=301, offs=1) -- 9212(line=399, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxlab_shnf_19 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ref_type arg4, ats_ref_type arg5) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp103) ;
ATSlocal (ats_ptr_type, tmp104) ;
ATSlocal (ats_ptr_type, tmp105) ;
ATSlocal (ats_ptr_type, tmp106) ;
ATSlocal (ats_ptr_type, tmp107) ;
ATSlocal (ats_int_type, tmp108) ;
ATSlocal (ats_ptr_type, tmp109) ;
ATSlocal (ats_bool_type, tmp111) ;
ATSlocal (ats_int_type, tmp112) ;
// ATSlocal_void (tmp113) ;
ATSlocal (ats_bool_type, tmp114) ;
// ATSlocal_void (tmp115) ;
// ATSlocal_void (tmp116) ;
// ATSlocal_void (tmp117) ;
// ATSlocal_void (tmp118) ;
// ATSlocal_void (tmp119) ;
// ATSlocal_void (tmp120) ;
// ATSlocal_void (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_void (tmp127) ;
// ATSlocal_void (tmp128) ;
// ATSlocal_void (tmp129) ;
// ATSlocal_void (tmp130) ;
// ATSlocal_void (tmp131) ;
// ATSlocal_void (tmp132) ;
ATSlocal (ats_ptr_type, tmp133) ;
// ATSlocal_void (tmp134) ;
// ATSlocal_void (tmp135) ;
// ATSlocal_void (tmp136) ;
// ATSlocal_void (tmp137) ;
// ATSlocal_void (tmp138) ;
// ATSlocal_void (tmp139) ;
// ATSlocal_void (tmp140) ;
// ATSlocal_void (tmp141) ;
// ATSlocal_void (tmp142) ;
ATSlocal (ats_ptr_type, tmp143) ;

__ats_lab_auxlab_shnf_19:
tmp104 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (arg1) ;
tmp105 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp104), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_18 */
__ats_lab_18_0:
if (((ats_sum_ptr_type)tmp105)->tag != 25) { goto __ats_lab_19_0 ; }
__ats_lab_18_1:
tmp106 = ats_caselptrlab_mac(anairiats_sum_10, tmp105, atslab_0) ;
tmp107 = ats_caselptrlab_mac(anairiats_sum_10, tmp105, atslab_2) ;
/* ats_int_type tmp108 ; */
tmp108 = 0 ;
tmp109 = labfind_lincheck_17 (arg3, tmp107, arg4, (&tmp108)) ;
tmp111 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__tyreckind_is_box (tmp106) ;
if (tmp111) {
tmp112 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg5), 1) ;
ats_ptrget_mac(ats_int_type, arg5) = tmp112 ;
} else {
/* empty */
} /* end of [if] */
tmp114 = atspre_gt_int_int (tmp108, 0) ;
if (tmp114) {
/* tmp115 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp116 = */ atspre_prerr_string (ATSstrcst(": the record-type [")) ;
/* tmp117 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp104) ;
/* tmp118 = */ atspre_prerr_string (ATSstrcst("] is expected to contain the label [")) ;
/* tmp119 = */ _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__prerr_label (arg3) ;
/* tmp120 = */ atspre_prerr_string (ATSstrcst("] but it does not.")) ;
/* tmp121 = */ atspre_prerr_newline () ;
tmp122 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp122)->tag = 44 ;
ats_selptrset_mac(anairiats_sum_7, tmp122, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_7, tmp122, atslab_1, tmp104) ;
ats_selptrset_mac(anairiats_sum_7, tmp122, atslab_2, arg3) ;
/* tmp113 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp122) ;
} else {
/* empty */
} /* end of [if] */
tmp103 = tmp109 ;
break ;

/* branch: __ats_lab_19 */
__ats_lab_19_0:
if (((ats_sum_ptr_type)tmp105)->tag != 27) { goto __ats_lab_20_0 ; }
__ats_lab_19_1:
tmp123 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (tmp104) ;
tmp124 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2hnf_opn1exi_and_add (arg0, tmp123) ;
tmp103 = auxlab_sexp_18 (arg0, tmp124, arg2, arg3, arg4, arg5) ;
break ;

/* branch: __ats_lab_20 */
__ats_lab_20_0:
__ats_lab_20_1:
tmp125 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg2), atslab_d3lab_overld) ;
do {
/* branch: __ats_lab_21 */
__ats_lab_21_0:
if (tmp125 == (ats_sum_ptr_type)0) { goto __ats_lab_22_0 ; }
__ats_lab_21_1:
tmp126 = ats_caselptrlab_mac(anairiats_sum_6, tmp125, atslab_0) ;
/* tmp127 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp128 = */ atspre_prerr_string (ATSstrcst(": overloaded dot-symbol: [")) ;
/* tmp129 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__prerr_d2sym (tmp126) ;
/* tmp130 = */ atspre_prerr_string (ATSstrcst("] should be applied.")) ;
/* tmp131 = */ atspre_prerr_newline () ;
tmp133 = ATS_MALLOC(sizeof(anairiats_sum_12)) ;
((ats_sum_ptr_type)tmp133)->tag = 50 ;
ats_selptrset_mac(anairiats_sum_12, tmp133, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_12, tmp133, atslab_1, arg2) ;
/* tmp132 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp133) ;
tmp103 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
break ;

/* branch: __ats_lab_22 */
__ats_lab_22_0:
// if (tmp125 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_22_1:
/* tmp134 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp135 = */ atspre_prerr_string (ATSstrcst(": [")) ;
/* tmp136 = */ _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__prerr_label (arg3) ;
/* tmp137 = */ atspre_prerr_string (ATSstrcst("] cannot be found")) ;
/* tmp138 = */ atspre_prerr_string (ATSstrcst(": the type [")) ;
/* tmp139 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp104) ;
/* tmp140 = */ atspre_prerr_string (ATSstrcst("] is expected to be a tyrec(record).")) ;
/* tmp141 = */ atspre_prerr_newline () ;
tmp143 = ATS_MALLOC(sizeof(anairiats_sum_12)) ;
((ats_sum_ptr_type)tmp143)->tag = 43 ;
ats_selptrset_mac(anairiats_sum_12, tmp143, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_12, tmp143, atslab_1, tmp104) ;
/* tmp142 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp143) ;
tmp103 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
break ;
} while (0) ;
break ;
} while (0) ;
return (tmp103) ;
} /* end of [auxlab_shnf_19] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 9242(line=402, offs=1) -- 10209(line=448, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxind_20 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp144) ;
ATSlocal (ats_ptr_type, tmp145) ;
ATSlocal (ats_ptr_type, tmp146) ;
ATSlocal (ats_ptr_type, tmp147) ;
ATSlocal (ats_ptr_type, tmp148) ;
ATSlocal (ats_ptr_type, tmp149) ;
ATSlocal (ats_ptr_type, tmp150) ;
ATSlocal (ats_ptr_type, tmp151) ;
ATSlocal (ats_ptr_type, tmp152) ;
// ATSlocal_void (tmp153) ;
// ATSlocal_void (tmp154) ;
// ATSlocal_void (tmp155) ;
// ATSlocal_void (tmp156) ;
// ATSlocal_void (tmp157) ;
// ATSlocal_void (tmp158) ;
ATSlocal (ats_ptr_type, tmp159) ;
ATSlocal (ats_ptr_type, tmp160) ;
ATSlocal (ats_ptr_type, tmp161) ;

__ats_lab_auxind_20:
tmp145 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg1) ;
tmp146 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (tmp145) ;
tmp147 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp146), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_23 */
__ats_lab_23_0:
if (((ats_sum_ptr_type)tmp147)->tag != 24) { goto __ats_lab_24_0 ; }
__ats_lab_23_1:
tmp148 = ats_caselptrlab_mac(anairiats_sum_12, tmp147, atslab_0) ;
tmp149 = ats_caselptrlab_mac(anairiats_sum_12, tmp147, atslab_1) ;
tmp150 = arrbndlst_check_9 (arg0, arg2, tmp149) ;
tmp144.atslab_0 = tmp148 ;
tmp144.atslab_1 = tmp150 ;

break ;

/* branch: __ats_lab_24 */
__ats_lab_24_0:
if (((ats_sum_ptr_type)tmp147)->tag != 27) { goto __ats_lab_25_0 ; }
__ats_lab_24_1:
tmp151 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (tmp146) ;
tmp152 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__s2hnf_opn1exi_and_add (arg0, tmp151) ;
arg0 = arg0 ;
arg1 = tmp152 ;
arg2 = arg2 ;
goto __ats_lab_auxind_20 ; // tail call
break ;

/* branch: __ats_lab_25 */
__ats_lab_25_0:
__ats_lab_25_1:
/* tmp153 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp154 = */ atspre_prerr_string (ATSstrcst(": the type [")) ;
/* tmp155 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp146) ;
/* tmp156 = */ atspre_prerr_string (ATSstrcst("] is expected to be a tyarr (array-type).")) ;
/* tmp157 = */ atspre_prerr_newline () ;
tmp159 = ATS_MALLOC(sizeof(anairiats_sum_12)) ;
((ats_sum_ptr_type)tmp159)->tag = 45 ;
ats_selptrset_mac(anairiats_sum_12, tmp159, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_12, tmp159, atslab_1, tmp146) ;
/* tmp158 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp159) ;
tmp160 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
tmp161 = (ats_sum_ptr_type)0 ;
tmp144.atslab_0 = tmp160 ;
tmp144.atslab_1 = tmp161 ;

break ;
} while (0) ;
return (tmp144) ;
} /* end of [auxind_20] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 10234(line=451, offs=1) -- 10761(line=478, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxsel_21 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp162) ;
ATSlocal (ats_ptr_type, tmp163) ;
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 (anairiats_rec_1, tmp170) ;
ATSlocal (ats_bool_type, tmp172) ;
ATSlocal (ats_ptr_type, tmp173) ;
ATSlocal (ats_int_type, tmp174) ;

__ats_lab_auxsel_21:
tmp163 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg1), atslab_d3lab_loc) ;
tmp164 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg1), atslab_d3lab_node) ;
do {
/* branch: __ats_lab_26 */
__ats_lab_26_0:
if (((ats_sum_ptr_type)tmp164)->tag != 0) { goto __ats_lab_27_0 ; }
__ats_lab_26_1:
tmp165 = ats_caselptrlab_mac(anairiats_sum_3, tmp164, atslab_0) ;
tmp166 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg0) ;
tmp167 = auxlab_shnf_19 (tmp163, tmp166, arg1, tmp165, arg2, arg3) ;
tmp168 = (ats_sum_ptr_type)0 ;
tmp162.atslab_0 = tmp167 ;
tmp162.atslab_1 = tmp168 ;

break ;

/* branch: __ats_lab_27 */
__ats_lab_27_0:
// if (((ats_sum_ptr_type)tmp164)->tag != 1) { ats_deadcode_failure_handle () ; }
__ats_lab_27_1:
tmp169 = ats_caselptrlab_mac(anairiats_sum_3, tmp164, atslab_0) ;
tmp170 = auxind_20 (tmp163, arg0, tmp169) ;
tmp173 = ats_select_mac(tmp170, atslab_0) ;
tmp172 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin (tmp173) ;
if (tmp172) {
tmp174 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg2), 1) ;
ats_ptrget_mac(ats_int_type, arg2) = tmp174 ;
} else {
/* empty */
} /* end of [if] */
tmp162 = tmp170 ;
break ;
} while (0) ;
return (tmp162) ;
} /* end of [auxsel_21] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 10786(line=481, offs=1) -- 11196(line=498, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxselist_22 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp175) ;
ATSlocal (ats_ptr_type, tmp176) ;
ATSlocal (ats_ptr_type, tmp177) ;
ATSlocal (ats_ptr_type, tmp178) ;
ATSlocal (anairiats_rec_1, tmp179) ;
ATSlocal (ats_ptr_type, tmp180) ;
ATSlocal (ats_ptr_type, tmp181) ;
ATSlocal (anairiats_rec_1, tmp182) ;
ATSlocal (ats_ptr_type, tmp183) ;
ATSlocal (ats_ptr_type, tmp184) ;
ATSlocal (ats_ptr_type, tmp185) ;

__ats_lab_auxselist_22:
do {
/* branch: __ats_lab_28 */
__ats_lab_28_0:
if (arg1 != (ats_sum_ptr_type)0) { goto __ats_lab_29_0 ; }
__ats_lab_28_1:
tmp176 = (ats_sum_ptr_type)0 ;
tmp175.atslab_0 = arg0 ;
tmp175.atslab_1 = tmp176 ;

break ;

/* branch: __ats_lab_29 */
__ats_lab_29_0:
// if (arg1 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_29_1:
tmp177 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp178 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp179 = auxsel_21 (arg0, tmp177, arg2, arg3) ;
tmp180 = ats_select_mac(tmp179, atslab_0) ;
tmp181 = ats_select_mac(tmp179, atslab_1) ;
tmp182 = auxselist_22 (tmp180, tmp178, arg2, arg3) ;
tmp183 = ats_select_mac(tmp182, atslab_0) ;
tmp184 = ats_select_mac(tmp182, atslab_1) ;
tmp185 = list_vt_append_01504_ats_ptr_type (tmp181, tmp184) ;
tmp175.atslab_0 = tmp183 ;
tmp175.atslab_1 = tmp185 ;

break ;
} while (0) ;
return (tmp175) ;
} /* end of [auxselist_22] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 11288(line=504, offs=1) -- 11371(line=507, offs=42)
*/
ATSglobaldec()
anairiats_rec_1
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3, ats_ref_type arg4) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp186) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing:
tmp186 = auxselist_22 (arg1, arg2, arg3, arg4) ;
return (tmp186) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 11474(line=517, offs=1) -- 12518(line=557, offs=4)
*/
ATSstaticdec()
ats_ptr_type
labfind_context_24 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp187) ;
ATSlocal (ats_ptr_type, tmp188) ;
ATSlocal (ats_ptr_type, tmp189) ;
ATSlocal (ats_ptr_type, tmp190) ;
ATSlocal (ats_ptr_type, tmp191) ;
ATSlocal (ats_ptr_type, tmp192) ;
ATSlocal (ats_bool_type, tmp193) ;
ATSlocal (ats_ptr_type, tmp194) ;
ATSlocal (ats_ptr_type, tmp195) ;
ATSlocal (ats_ptr_type, tmp196) ;
ATSlocal (ats_ptr_type, tmp197) ;
ATSlocal (ats_ptr_type, tmp198) ;
ATSlocal (ats_ptr_type, tmp199) ;
ATSlocal (anairiats_rec_1, tmp200) ;
ATSlocal (ats_ptr_type, tmp201) ;
ATSlocal (ats_ptr_type, tmp203) ;
ATSlocal (ats_ptr_type, tmp204) ;
ATSlocal (ats_ptr_type, tmp205) ;
ATSlocal (ats_int_type, tmp206) ;

__ats_lab_labfind_context_24:
do {
/* branch: __ats_lab_30 */
__ats_lab_30_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_33_0 ; }
__ats_lab_30_1:
tmp188 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp189 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;

tmp190 = ats_caselptrlab_mac(anairiats_sum_8, tmp188, atslab_0) ;
tmp191 = ats_caselptrlab_mac(anairiats_sum_8, tmp188, atslab_1) ;
tmp192 = ats_caselptrlab_mac(anairiats_sum_8, tmp188, atslab_2) ;
tmp193 = _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__eq_label_label (arg0, tmp190) ;
if (tmp193) {
tmp194 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp192), atslab_s2exp_srt) ;
tmp195 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2hole_make_srt (tmp194) ;
tmp196 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_hole (tmp195) ;
tmp197 = ATS_MALLOC(sizeof(anairiats_sum_8)) ;
ats_selptrset_mac(anairiats_sum_8, tmp197, atslab_0, tmp190) ;
ats_selptrset_mac(anairiats_sum_8, tmp197, atslab_1, tmp191) ;
ats_selptrset_mac(anairiats_sum_8, tmp197, atslab_2, tmp196) ;
tmp198 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp198, atslab_0, tmp197) ;
ats_selptrset_mac(anairiats_sum_4, tmp198, atslab_1, tmp189) ;
if (ats_ptrget_mac(ats_ptr_type, arg2) != (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 11933(line=536, offs=11) -- 11953(line=536, offs=31)") ; }
tmp200.atslab_0 = tmp198 ;
tmp200.atslab_1 = tmp195 ;

tmp199 = ATS_MALLOC(sizeof(anairiats_sum_13)) ;
ats_selptrset_mac(anairiats_sum_13, tmp199, atslab_0, tmp200) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp199 ;
tmp187 = tmp192 ;
} else {
tmp201 = labfind_context_24 (arg0, tmp189, arg2, arg3) ;
do {
/* branch: __ats_lab_31 */
__ats_lab_31_0:
if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { goto __ats_lab_32_0 ; }
__ats_lab_31_1:
tmp203 = &ats_caselptrlab_mac(anairiats_sum_13, ats_ptrget_mac(ats_ptr_type, arg2), atslab_0) ;
tmp205 = ats_selptr_mac(ats_castptr_mac(anairiats_rec_1, tmp203), atslab_0) ;
tmp204 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp204, atslab_0, tmp188) ;
ats_selptrset_mac(anairiats_sum_4, tmp204, atslab_1, tmp205) ;
ats_selptr_mac(ats_castptr_mac(anairiats_rec_1, tmp203), atslab_0) = tmp204 ;
break ;

/* branch: __ats_lab_32 */
__ats_lab_32_0:
// if (ats_ptrget_mac(ats_ptr_type, arg2) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_32_1:
break ;
} while (0) ;
tmp187 = tmp201 ;
} /* end of [if] */
break ;

/* branch: __ats_lab_33 */
__ats_lab_33_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_33_1:
tmp206 = atspre_add_int_int (ats_ptrget_mac(ats_int_type, arg3), 1) ;
ats_ptrget_mac(ats_int_type, arg3) = tmp206 ;
tmp187 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
break ;
} while (0) ;
return (tmp187) ;
} /* end of [labfind_context_24] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 12605(line=563, offs=1) -- 14095(line=620, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxlab_25 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp207) ;
ATSlocal (ats_ptr_type, tmp208) ;
ATSlocal (ats_ptr_type, tmp209) ;
ATSlocal (ats_ptr_type, tmp210) ;
ATSlocal (ats_int_type, tmp211) ;
ATSlocal (ats_ptr_type, tmp212) ;
ATSlocal (ats_ptr_type, tmp213) ;
ATSlocal (ats_int_type, tmp214) ;
ATSlocal (ats_ptr_type, tmp215) ;
ATSlocal (anairiats_rec_1, 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 (anairiats_rec_1, tmp223) ;
// ATSlocal_void (tmp224) ;
ATSlocal (ats_bool_type, tmp225) ;
// ATSlocal_void (tmp226) ;
// ATSlocal_void (tmp227) ;
// ATSlocal_void (tmp228) ;
// ATSlocal_void (tmp229) ;
// ATSlocal_void (tmp230) ;
// ATSlocal_void (tmp231) ;
// ATSlocal_void (tmp232) ;
ATSlocal (ats_ptr_type, tmp233) ;
// ATSlocal_void (tmp234) ;
// ATSlocal_void (tmp235) ;
// ATSlocal_void (tmp236) ;
// ATSlocal_void (tmp237) ;
// ATSlocal_void (tmp238) ;
// ATSlocal_void (tmp239) ;
ATSlocal (ats_ptr_type, tmp240) ;

__ats_lab_auxlab_25:
tmp208 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (arg1) ;
tmp209 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp208), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_34 */
__ats_lab_34_0:
if (((ats_sum_ptr_type)tmp209)->tag != 25) { goto __ats_lab_37_0 ; }
__ats_lab_34_1:
tmp210 = ats_caselptrlab_mac(anairiats_sum_10, tmp209, atslab_0) ;
tmp211 = ats_caselptrlab_mac(anairiats_sum_10, tmp209, atslab_1) ;
tmp212 = ats_caselptrlab_mac(anairiats_sum_10, tmp209, atslab_2) ;
/* ats_ptr_type tmp213 ; */
tmp213 = (ats_sum_ptr_type)0 ;
/* ats_int_type tmp214 ; */
tmp214 = 0 ;
tmp215 = labfind_context_24 (arg2, tmp212, (&tmp213), (&tmp214)) ;
do {
/* branch: __ats_lab_35 */
__ats_lab_35_0:
if (tmp213 == (ats_sum_ptr_type)0) { goto __ats_lab_36_0 ; }
tmp217 = ats_caselptrlab_mac(anairiats_sum_13, tmp213, atslab_0) ;
__ats_lab_35_1:
tmp218 = ats_select_mac(tmp217, atslab_0) ;
tmp219 = ats_select_mac(tmp217, atslab_1) ;
ATS_FREE(tmp213) ;
tmp220 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp208), atslab_s2exp_srt) ;
tmp221 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_tyrec_srt (tmp220, tmp210, tmp211, tmp218) ;
if (ats_ptrget_mac(ats_ptr_type, arg3) != (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 13176(line=588, offs=15) -- 13196(line=588, offs=35)") ; }
tmp223.atslab_0 = tmp221 ;
tmp223.atslab_1 = tmp219 ;

tmp222 = ATS_MALLOC(sizeof(anairiats_sum_13)) ;
ats_selptrset_mac(anairiats_sum_13, tmp222, atslab_0, tmp223) ;
ats_ptrget_mac(ats_ptr_type, arg3) = tmp222 ;
break ;

/* branch: __ats_lab_36 */
__ats_lab_36_0:
// if (tmp213 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_36_1:
break ;
} while (0) ;
tmp225 = atspre_gt_int_int (tmp214, 0) ;
if (tmp225) {
/* tmp226 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp227 = */ atspre_prerr_string (ATSstrcst(": the record-type [")) ;
/* tmp228 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp208) ;
/* tmp229 = */ atspre_prerr_string (ATSstrcst("] is expected to contain the label [")) ;
/* tmp230 = */ _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__prerr_label (arg2) ;
/* tmp231 = */ atspre_prerr_string (ATSstrcst("] but it does not.")) ;
/* tmp232 = */ atspre_prerr_newline () ;
tmp233 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp233)->tag = 44 ;
ats_selptrset_mac(anairiats_sum_7, tmp233, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_7, tmp233, atslab_1, tmp208) ;
ats_selptrset_mac(anairiats_sum_7, tmp233, atslab_2, arg2) ;
/* tmp224 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp233) ;
} else {
/* empty */
} /* end of [if] */
tmp207 = tmp215 ;
break ;

/* branch: __ats_lab_37 */
__ats_lab_37_0:
__ats_lab_37_1:
/* tmp234 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp235 = */ atspre_prerr_string (ATSstrcst(": the type [")) ;
/* tmp236 = */ _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__prerr_s2exp (tmp208) ;
/* tmp237 = */ atspre_prerr_string (ATSstrcst("] is expected to be a tyrec(record).")) ;
/* tmp238 = */ atspre_prerr_newline () ;
tmp240 = ATS_MALLOC(sizeof(anairiats_sum_12)) ;
((ats_sum_ptr_type)tmp240)->tag = 43 ;
ats_selptrset_mac(anairiats_sum_12, tmp240, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_12, tmp240, atslab_1, tmp208) ;
/* tmp239 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp240) ;
tmp207 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
break ;
} while (0) ;
return (tmp207) ;
} /* end of [auxlab_25] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 14120(line=623, offs=1) -- 14720(line=653, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxind_26 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3, ats_bool_type arg4) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp241) ;
ATSlocal (ats_ptr_type, tmp242) ;
ATSlocal (ats_ptr_type, tmp243) ;
ATSlocal (ats_ptr_type, tmp244) ;
ATSlocal (ats_ptr_type, tmp245) ;
ATSlocal (ats_ptr_type, tmp246) ;
ATSlocal (ats_ptr_type, tmp247) ;
ATSlocal (ats_ptr_type, tmp248) ;

__ats_lab_auxind_26:
tmp242 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2hnf2exp (arg1) ;
tmp243 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp242), atslab_s2exp_node) ;
do {
/* branch: __ats_lab_38 */
__ats_lab_38_0:
if (((ats_sum_ptr_type)tmp243)->tag != 24) { goto __ats_lab_39_0 ; }
__ats_lab_38_1:
tmp244 = ats_caselptrlab_mac(anairiats_sum_12, tmp243, atslab_0) ;
tmp245 = ats_caselptrlab_mac(anairiats_sum_12, tmp243, atslab_1) ;
if (arg4) {
tmp246 = arrbndlst_check_9 (arg0, arg2, tmp245) ;
} else {
tmp246 = (ats_sum_ptr_type)0 ;
} /* end of [if] */
tmp241.atslab_0 = tmp244 ;
tmp241.atslab_1 = tmp246 ;

break ;

/* branch: __ats_lab_39 */
__ats_lab_39_0:
__ats_lab_39_1:
tmp247 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_t0ype_err () ;
tmp248 = (ats_sum_ptr_type)0 ;
tmp241.atslab_0 = tmp247 ;
tmp241.atslab_1 = tmp248 ;

break ;
} while (0) ;
return (tmp241) ;
} /* end of [auxind_26] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 14745(line=656, offs=1) -- 15193(line=678, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxsel_27 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_bool_type arg3) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp249) ;
ATSlocal (ats_ptr_type, tmp250) ;
ATSlocal (ats_ptr_type, tmp251) ;
ATSlocal (ats_ptr_type, tmp252) ;
ATSlocal (ats_ptr_type, tmp253) ;
ATSlocal (ats_ptr_type, tmp254) ;
ATSlocal (ats_ptr_type, tmp255) ;
ATSlocal (ats_ptr_type, tmp256) ;

__ats_lab_auxsel_27:
tmp250 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg1), atslab_d3lab_loc) ;
tmp251 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp2hnf (arg0) ;
tmp252 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, arg1), atslab_d3lab_node) ;
do {
/* branch: __ats_lab_40 */
__ats_lab_40_0:
if (((ats_sum_ptr_type)tmp252)->tag != 0) { goto __ats_lab_41_0 ; }
__ats_lab_40_1:
tmp253 = ats_caselptrlab_mac(anairiats_sum_3, tmp252, atslab_0) ;
tmp254 = auxlab_25 (tmp250, tmp251, tmp253, arg2) ;
tmp255 = (ats_sum_ptr_type)0 ;
tmp249.atslab_0 = tmp254 ;
tmp249.atslab_1 = tmp255 ;

break ;

/* branch: __ats_lab_41 */
__ats_lab_41_0:
// if (((ats_sum_ptr_type)tmp252)->tag != 1) { ats_deadcode_failure_handle () ; }
__ats_lab_41_1:
tmp256 = ats_caselptrlab_mac(anairiats_sum_3, tmp252, atslab_0) ;
tmp249 = auxind_26 (tmp250, tmp251, tmp256, arg2, arg3) ;
break ;
} while (0) ;
return (tmp249) ;
} /* end of [auxsel_27] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/option_vt.dats: 2556(line=86, offs=16) -- 2611(line=87, offs=49)
*/
ATSstaticdec()
ats_void_type
option_vt_free_01544_anairiats_rec_1 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp282) ;

__ats_lab_option_vt_free_01544_anairiats_rec_1:
do {
/* branch: __ats_lab_48 */
__ats_lab_48_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_49_0 ; }
__ats_lab_48_1:
ATS_FREE(arg0) ;
break ;

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

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 15218(line=681, offs=1) -- 16915(line=744, offs=4)
*/
ATSstaticdec()
anairiats_rec_1
auxselist_28 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ref_type arg2, ats_bool_type arg3) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp257) ;
ATSlocal (ats_ptr_type, tmp258) ;
ATSlocal (ats_ptr_type, tmp259) ;
ATSlocal (ats_ptr_type, tmp260) ;
ATSlocal (ats_ptr_type, tmp261) ;
ATSlocal (anairiats_rec_1, tmp262) ;
ATSlocal (ats_ptr_type, tmp263) ;
ATSlocal (ats_ptr_type, tmp264) ;
ATSlocal (anairiats_rec_1, tmp265) ;
ATSlocal (ats_ptr_type, tmp266) ;
ATSlocal (ats_ptr_type, tmp267) ;
ATSlocal (ats_ptr_type, tmp268) ;
ATSlocal (anairiats_rec_1, 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_ptr_type, tmp275) ;
ATSlocal (ats_ptr_type, tmp276) ;
ATSlocal (anairiats_rec_1, tmp277) ;
ATSlocal (ats_ptr_type, tmp278) ;
ATSlocal (ats_ptr_type, tmp279) ;
ATSlocal (ats_ptr_type, tmp280) ;
// ATSlocal_void (tmp281) ;
ATSlocal (ats_ptr_type, tmp283) ;
ATSlocal (ats_ptr_type, tmp284) ;
ATSlocal (ats_ptr_type, tmp285) ;
ATSlocal (ats_ptr_type, tmp286) ;
ATSlocal (ats_ptr_type, tmp287) ;
ATSlocal (anairiats_rec_1, tmp288) ;
ATSlocal (ats_ptr_type, tmp289) ;

__ats_lab_auxselist_28:
do {
/* branch: __ats_lab_42 */
__ats_lab_42_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_43_0 ; }
tmp258 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
if (tmp258 != (ats_sum_ptr_type)0) { goto __ats_lab_43_0 ; }
__ats_lab_42_1:
tmp259 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp257 = auxsel_27 (arg0, tmp259, arg2, arg3) ;
break ;

/* branch: __ats_lab_43 */
__ats_lab_43_0:
if (arg1 == (ats_sum_ptr_type)0) { goto __ats_lab_50_0 ; }
__ats_lab_43_1:
tmp260 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_0) ;
tmp261 = ats_caselptrlab_mac(anairiats_sum_4, arg1, atslab_1) ;
tmp262 = auxsel_27 (arg0, tmp260, arg2, arg3) ;
tmp263 = ats_select_mac(tmp262, atslab_0) ;
tmp264 = ats_select_mac(tmp262, atslab_1) ;
do {
/* branch: __ats_lab_44 */
__ats_lab_44_0:
if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { goto __ats_lab_47_0 ; }
tmp265 = ats_caselptrlab_mac(anairiats_sum_13, ats_ptrget_mac(ats_ptr_type, arg2), atslab_0) ;
__ats_lab_44_1:
tmp266 = ats_select_mac(tmp265, atslab_0) ;
tmp267 = ats_select_mac(tmp265, atslab_1) ;
ATS_FREE(ats_ptrget_mac(ats_ptr_type, arg2)) ;
tmp268 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp268 ;
tmp269 = auxselist_28 (tmp263, tmp261, arg2, arg3) ;
tmp270 = ats_select_mac(tmp269, atslab_0) ;
tmp272 = ats_select_mac(tmp269, atslab_1) ;
tmp271 = list_vt_append_01504_ats_ptr_type (tmp264, tmp272) ;
do {
/* branch: __ats_lab_45 */
__ats_lab_45_0:
if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { goto __ats_lab_46_0 ; }
__ats_lab_45_1:
tmp273 = &ats_caselptrlab_mac(anairiats_sum_13, ats_ptrget_mac(ats_ptr_type, arg2), atslab_0) ;
tmp275 = ats_selptr_mac(ats_castptr_mac(anairiats_rec_1, tmp273), atslab_0) ;
tmp274 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_hrepl (tmp266, tmp275) ;
ats_selptr_mac(ats_castptr_mac(anairiats_rec_1, tmp273), atslab_0) = tmp274 ;
tmp257.atslab_0 = tmp270 ;
tmp257.atslab_1 = tmp271 ;

break ;

/* branch: __ats_lab_46 */
__ats_lab_46_0:
// if (ats_ptrget_mac(ats_ptr_type, arg2) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_46_1:
tmp257.atslab_0 = tmp270 ;
tmp257.atslab_1 = tmp271 ;

break ;
} while (0) ;
break ;

/* branch: __ats_lab_47 */
__ats_lab_47_0:
// if (ats_ptrget_mac(ats_ptr_type, arg2) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_47_1:
tmp276 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp276 ;
tmp277 = auxselist_28 (tmp263, tmp261, arg2, arg3) ;
tmp278 = ats_select_mac(tmp277, atslab_0) ;
tmp280 = ats_select_mac(tmp277, atslab_1) ;
tmp279 = list_vt_append_01504_ats_ptr_type (tmp264, tmp280) ;
/* tmp281 = */ option_vt_free_01544_anairiats_rec_1 (ats_ptrget_mac(ats_ptr_type, arg2)) ;
tmp283 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp283 ;
tmp257.atslab_0 = tmp278 ;
tmp257.atslab_1 = tmp279 ;

break ;
} while (0) ;
break ;

/* branch: __ats_lab_50 */
__ats_lab_50_0:
// if (arg1 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_50_1:
tmp284 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, arg0), atslab_s2exp_srt) ;
tmp285 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2hole_make_srt (tmp284) ;
tmp286 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_hole (tmp285) ;
if (ats_ptrget_mac(ats_ptr_type, arg2) != (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 16777(line=738, offs=9) -- 16797(line=738, offs=29)") ; }
tmp288.atslab_0 = tmp286 ;
tmp288.atslab_1 = tmp285 ;

tmp287 = ATS_MALLOC(sizeof(anairiats_sum_13)) ;
ats_selptrset_mac(anairiats_sum_13, tmp287, atslab_0, tmp288) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp287 ;
tmp289 = (ats_sum_ptr_type)0 ;
tmp257.atslab_0 = arg0 ;
tmp257.atslab_1 = tmp289 ;

break ;
} while (0) ;
return (tmp257) ;
} /* end of [auxselist_28] */

/*
// /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_32 (ats_ptr_type arg0) {
/* local vardec */
// ATSlocal_void (tmp295) ;
ATSlocal (ats_ptr_type, tmp296) ;

__ats_lab_loop_32:
do {
/* branch: __ats_lab_51 */
__ats_lab_51_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_52_0 ; }
__ats_lab_51_1:
tmp296 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
ATS_FREE(arg0) ;
arg0 = tmp296 ;
goto __ats_lab_loop_32 ; // tail call
break ;

/* branch: __ats_lab_52 */
__ats_lab_52_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_52_1:
break ;
} while (0) ;
return /* (tmp295) */ ;
} /* end of [loop_32] */

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

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

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 17001(line=750, offs=3) -- 17422(line=777, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp290) ;
ATSlocal (ats_ptr_type, tmp291) ;
ATSlocal (anairiats_rec_1, tmp292) ;
// ATSlocal_void (tmp293) ;
ATSlocal (ats_ptr_type, tmp297) ;
ATSlocal (anairiats_rec_1, tmp299) ;
ATSlocal (ats_ptr_type, tmp300) ;
ATSlocal (ats_ptr_type, tmp301) ;
ATSlocal (ats_ptr_type, tmp302) ;
ATSlocal (ats_ptr_type, tmp303) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context:
/* ats_ptr_type tmp291 ; */
tmp291 = (ats_sum_ptr_type)0 ;
tmp292 = auxselist_28 (arg1, arg2, (&tmp291), ats_false_bool) ;
tmp297 = ats_select_mac(tmp292, atslab_1) ;
/* tmp293 = */ list_vt_free_01499_ats_ptr_type (tmp297) ;
do {
/* branch: __ats_lab_53 */
__ats_lab_53_0:
if (tmp291 != (ats_sum_ptr_type)0) { goto __ats_lab_54_0 ; }
__ats_lab_53_1:
break ;

/* branch: __ats_lab_54 */
__ats_lab_54_0:
// if (tmp291 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp299 = ats_caselptrlab_mac(anairiats_sum_13, tmp291, atslab_0) ;
__ats_lab_54_1:
tmp300 = ats_select_mac(tmp299, atslab_0) ;
tmp301 = ats_select_mac(tmp299, atslab_1) ;
ATS_FREE(tmp291) ;
tmp303 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2ctxt_make (tmp300, tmp301) ;
tmp302 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp302, atslab_0, tmp303) ;
ats_ptrget_mac(ats_ptr_type, arg3) = tmp302 ;
break ;
} while (0) ;
tmp290 = ats_select_mac(tmp292, atslab_0) ;
return (tmp290) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 17506(line=781, offs=3) -- 17847(line=799, offs=4)
*/
ATSglobaldec()
anairiats_rec_1
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context_check (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ref_type arg3) {
/* local vardec */
ATSlocal (anairiats_rec_1, tmp304) ;
ATSlocal (ats_ptr_type, tmp305) ;
ATSlocal (anairiats_rec_1, tmp306) ;
ATSlocal (anairiats_rec_1, tmp308) ;
ATSlocal (ats_ptr_type, tmp309) ;
ATSlocal (ats_ptr_type, tmp310) ;
ATSlocal (ats_ptr_type, tmp311) ;
ATSlocal (ats_ptr_type, tmp312) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context_check:
/* ats_ptr_type tmp305 ; */
tmp305 = (ats_sum_ptr_type)0 ;
tmp306 = auxselist_28 (arg1, arg2, (&tmp305), ats_true_bool) ;
do {
/* branch: __ats_lab_55 */
__ats_lab_55_0:
if (tmp305 != (ats_sum_ptr_type)0) { goto __ats_lab_56_0 ; }
__ats_lab_55_1:
break ;

/* branch: __ats_lab_56 */
__ats_lab_56_0:
// if (tmp305 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp308 = ats_caselptrlab_mac(anairiats_sum_13, tmp305, atslab_0) ;
__ats_lab_56_1:
tmp309 = ats_select_mac(tmp308, atslab_0) ;
tmp310 = ats_select_mac(tmp308, atslab_1) ;
ATS_FREE(tmp305) ;
tmp312 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2ctxt_make (tmp309, tmp310) ;
tmp311 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp311, atslab_0, tmp312) ;
ats_ptrget_mac(ats_ptr_type, arg3) = tmp311 ;
break ;
} while (0) ;
tmp304 = tmp306 ;
return (tmp304) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context_check] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 18539(line=842, offs=1) -- 20411(line=934, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_lin (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp313) ;
ATSlocal (ats_ptr_type, tmp314) ;
ATSlocal (ats_ptr_type, tmp315) ;
ATSlocal (ats_int_type, tmp316) ;
ATSlocal (ats_int_type, tmp317) ;
ATSlocal (anairiats_rec_1, tmp318) ;
ATSlocal (ats_ptr_type, tmp319) ;
ATSlocal (ats_ptr_type, tmp320) ;
// ATSlocal_void (tmp321) ;
ATSlocal (ats_ptr_type, tmp322) ;
ATSlocal (ats_bool_type, tmp323) ;
ATSlocal (ats_ptr_type, tmp324) ;
ATSlocal (ats_ptr_type, tmp325) ;
ATSlocal (ats_ptr_type, tmp326) ;
ATSlocal (ats_bool_type, tmp327) ;
// ATSlocal_void (tmp328) ;
ATSlocal (ats_bool_type, tmp329) ;
// ATSlocal_void (tmp330) ;
// ATSlocal_void (tmp331) ;
// ATSlocal_void (tmp332) ;
ATSlocal (ats_ptr_type, tmp333) ;
// ATSlocal_void (tmp334) ;
ATSlocal (ats_ptr_type, tmp335) ;
ATSlocal (ats_ptr_type, tmp336) ;
ATSlocal (ats_ptr_type, tmp337) ;
// ATSlocal_void (tmp338) ;
ATSlocal (ats_ptr_type, tmp339) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_lin:
tmp314 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2var_get_type_some (arg1, arg2) ;
tmp315 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup (arg3) ;
/* ats_int_type tmp316 ; */
tmp316 = 0 ;
/* ats_int_type tmp317 ; */
tmp317 = 0 ;
tmp318 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing (arg0, tmp314, tmp315, (&tmp316), (&tmp317)) ;
tmp320 = ats_select_mac(tmp318, atslab_0) ;
tmp319 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_hnfize (tmp320) ;
tmp322 = ats_select_mac(tmp318, atslab_1) ;
/* tmp321 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_proplst_vt (arg0, tmp322) ;
tmp323 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__s2exp_is_lin (tmp319) ;
if (tmp323) {
tmp324 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_9, tmp314), atslab_s2exp_srt) ;
/* ats_ptr_type tmp325 ; */
tmp325 = (ats_sum_ptr_type)0 ;
tmp326 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_context (arg0, tmp314, tmp315, (&tmp325)) ;
do {
/* branch: __ats_lab_57 */
__ats_lab_57_0:
if (tmp325 == (ats_sum_ptr_type)0) { goto __ats_lab_58_0 ; }
__ats_lab_57_1:
tmp327 = ats_true_bool ;
break ;

/* branch: __ats_lab_58 */
__ats_lab_58_0:
// if (tmp325 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_58_1:
tmp327 = ats_false_bool ;
break ;
} while (0) ;
tmp329 = atspre_neg_bool (tmp327) ;
if (tmp329) {
/* tmp330 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp331 = */ atspre_prerr_string (ATSstrcst(": the linear component cannot be taken out.")) ;
/* tmp332 = */ atspre_prerr_newline () ;
tmp333 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp333)->tag = 64 ;
ats_selptrset_mac(anairiats_sum_7, tmp333, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_7, tmp333, atslab_1, arg2) ;
ats_selptrset_mac(anairiats_sum_7, tmp333, atslab_2, tmp315) ;
/* tmp328 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp333) ;
} else {
/* empty */
} /* end of [if] */
/* tmp334 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_inc_linval (arg2) ;
tmp335 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_topize (1, tmp326) ;
do {
/* branch: __ats_lab_59 */
__ats_lab_59_0:
if (tmp325 == (ats_sum_ptr_type)0) { goto __ats_lab_60_0 ; }
__ats_lab_59_1:
tmp337 = ats_caselptrlab_mac(anairiats_sum_6, tmp325, atslab_0) ;
tmp336 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2ctxt_hrepl (tmp337, tmp335) ;
break ;

/* branch: __ats_lab_60 */
__ats_lab_60_0:
// if (tmp325 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_60_1:
tmp336 = tmp314 ;
break ;
} while (0) ;
tmp339 = ATS_MALLOC(sizeof(anairiats_sum_6)) ;
ats_selptrset_mac(anairiats_sum_6, tmp339, atslab_0, tmp336) ;
/* tmp338 = */ _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_set_type (arg2, tmp339) ;
tmp313 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_sel_var (arg0, tmp326, arg2, tmp314, tmp315) ;
} else {
tmp313 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_sel_var (arg0, tmp319, arg2, tmp314, tmp315) ;
} /* end of [if] */
return (tmp313) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_lin] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 20571(line=945, offs=3) -- 21090(line=982, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_mut (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp340) ;
ATSlocal (ats_ptr_type, tmp341) ;
ATSlocal (ats_ptr_type, tmp342) ;
ATSlocal (ats_ptr_type, tmp343) ;
ATSlocal (ats_ptr_type, tmp344) ;
ATSlocal (ats_ptr_type, tmp345) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_mut:
tmp341 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_get_addr (arg2) ;
if (tmp341 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 20608(line=948, offs=1) -- 20641(line=949, offs=29)") ; }
tmp342 = ats_caselptrlab_mac(anairiats_sum_6, tmp341, atslab_0) ;
tmp343 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup (arg3) ;
/* ats_ptr_type tmp344 ; */
tmp345 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2addr_deref (arg0, tmp342, tmp343, (&tmp344)) ;
tmp340 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_sel_var (arg0, tmp345, arg2, tmp344, tmp343) ;
return (tmp340) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_mut] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 21175(line=988, offs=3) -- 21512(line=1000, offs=6)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp346) ;
ATSlocal (ats_bool_type, tmp347) ;
ATSlocal (ats_bool_type, tmp348) ;
ATSlocal (ats_ptr_type, tmp349) ;
ATSlocal (ats_ptr_type, tmp350) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab:
do {
/* branch: __ats_lab_61 */
__ats_lab_61_0:
__ats_lab_61_1:
tmp347 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_is_linear (arg2) ;
if (!tmp347) { goto __ats_lab_62_1 ; }
tmp346 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_lin (arg0, arg1, arg2, arg3) ;
break ;

/* branch: __ats_lab_62 */
__ats_lab_62_0:
__ats_lab_62_1:
tmp348 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__d2var_is_mutabl (arg2) ;
if (!tmp348) { goto __ats_lab_63_1 ; }
tmp346 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab_mut (arg0, arg1, arg2, arg3) ;
break ;

/* branch: __ats_lab_63 */
__ats_lab_63_0:
__ats_lab_63_1:
tmp349 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_var_nonmut (arg1, arg2) ;
tmp350 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup (arg3) ;
tmp346 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab (arg0, tmp349, tmp350) ;
break ;
} while (0) ;
return (tmp346) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 21600(line=1009, offs=1) -- 21885(line=1026, offs=4)
*/
ATSstaticdec()
ats_void_type
auxerr_linrest_37 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
// ATSlocal_void (tmp351) ;
// ATSlocal_void (tmp352) ;
// ATSlocal_void (tmp353) ;
// ATSlocal_void (tmp354) ;
ATSlocal (ats_ptr_type, tmp355) ;

__ats_lab_auxerr_linrest_37:
/* tmp352 = */ prerr_error3_loc_02051_ (arg0) ;
/* tmp353 = */ atspre_prerr_string (ATSstrcst(": a linear component is abandoned by field selection.")) ;
/* tmp354 = */ atspre_prerr_newline () ;
tmp355 = ATS_MALLOC(sizeof(anairiats_sum_7)) ;
((ats_sum_ptr_type)tmp355)->tag = 48 ;
ats_selptrset_mac(anairiats_sum_7, tmp355, atslab_0, arg0) ;
ats_selptrset_mac(anairiats_sum_7, tmp355, atslab_1, arg1) ;
ats_selptrset_mac(anairiats_sum_7, tmp355, atslab_2, arg2) ;
/* tmp351 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__the_trans3errlst_add (tmp355) ;
return /* (tmp351) */ ;
} /* end of [auxerr_linrest_37] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 65219(line=2357, offs=5) -- 65793(line=2372, offs=6)
*/
ATSstaticdec()
ats_bool_type
loop_40 (ats_ptr_type arg0, ats_int_type arg1, ats_ref_type arg2) {
/* local vardec */
ATSlocal (ats_bool_type, tmp364) ;
ATSlocal (ats_bool_type, tmp365) ;
ATSlocal (ats_ptr_type, tmp366) ;
ATSlocal (ats_ptr_type, tmp367) ;
ATSlocal (ats_ptr_type, tmp368) ;
ATSlocal (ats_ptr_type, tmp369) ;
ATSlocal (ats_int_type, tmp370) ;
ATSlocal (ats_ptr_type, tmp371) ;
ATSlocal (ats_ptr_type, tmp372) ;

__ats_lab_loop_40:
tmp365 = atspre_igt (arg1, 0) ;
if (tmp365) {
do {
/* branch: __ats_lab_67 */
__ats_lab_67_0:
if (arg0 == (ats_sum_ptr_type)0) { goto __ats_lab_68_0 ; }
__ats_lab_67_1:
tmp366 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_0) ;
tmp367 = ats_caselptrlab_mac(anairiats_sum_4, arg0, atslab_1) ;
tmp368 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp368, atslab_0, tmp366) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp368 ;
// if (ats_ptrget_mac(ats_ptr_type, arg2) == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp369 = &ats_caselptrlab_mac(anairiats_sum_4, ats_ptrget_mac(ats_ptr_type, arg2), atslab_1) ;
tmp370 = atspre_isub (arg1, 1) ;
arg0 = tmp367 ;
arg1 = tmp370 ;
arg2 = tmp369 ;
goto __ats_lab_loop_40 ; // tail call
break ;

/* branch: __ats_lab_68 */
__ats_lab_68_0:
// if (arg0 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_68_1:
tmp371 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp371 ;
tmp364 = ats_true_bool ;
break ;
} while (0) ;
} else {
tmp372 = (ats_sum_ptr_type)0 ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp372 ;
tmp364 = ats_false_bool ;
} /* end of [if] */
return (tmp364) ;
} /* end of [loop_40] */

/*
// /nix/store/rfja8ixrs5wb4kj3kiwlch1apnh7qgvy-ats-0.2.12/lib/ats-anairiats-0.2.12/prelude/DATS/list.dats: 65198(line=2355, offs=10) -- 66125(line=2386, offs=4)
*/
ATSstaticdec()
ats_ptr_type
list_take_exn_01442_ats_ptr_type (ats_ptr_type arg0, ats_int_type arg1) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp363) ;
ATSlocal (ats_ptr_type, tmp373) ;
ATSlocal (ats_bool_type, tmp374) ;
// ATSlocal_void (tmp375) ;
ATSlocal (ats_ptr_type, tmp376) ;

__ats_lab_list_take_exn_01442_ats_ptr_type:
/* ats_ptr_type tmp373 ; */
tmp374 = loop_40 (arg0, arg1, (&tmp373)) ;
if (tmp374) {
/* tmp375 = */ list_vt_free_01499_ats_ptr_type (tmp373) ;
tmp376 = ListSubscriptException_make () ;
/* tmp363 = */ ats_raise_exn (tmp376) ;
} else {
tmp363 = tmp373 ;
} /* end of [if] */
return (tmp363) ;
} /* end of [list_take_exn_01442_ats_ptr_type] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 21918(line=1029, offs=1) -- 22944(line=1062, offs=4)
*/
ATSstaticdec()
ats_ptr_type
auxfinize_38 (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2, ats_ptr_type arg3, ats_ptr_type arg4, ats_int_type arg5) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp356) ;
ATSlocal (ats_ptr_type, tmp357) ;
ATSlocal (ats_ptr_type, tmp358) ;
ATSlocal (ats_ptr_type, tmp359) ;
ATSlocal (ats_int_type, tmp360) ;
ATSlocal (ats_ptr_type, tmp361) ;
ATSlocal (ats_ptr_type, tmp362) ;
ATSlocal (ats_ptr_type, tmp377) ;
ATSlocal (ats_ptr_type, tmp378) ;
ATSlocal (ats_ptr_type, tmp379) ;
ATSlocal (ats_int_type, tmp380) ;
ATSlocal (ats_ptr_type, tmp381) ;
ATSlocal (ats_ptr_type, tmp382) ;
ATSlocal (ats_ptr_type, tmp383) ;
ATSlocal (ats_ptr_type, tmp384) ;
ATSlocal (ats_ptr_type, tmp385) ;
ATSlocal (ats_ptr_type, tmp386) ;
ATSlocal (ats_ptr_type, tmp387) ;

__ats_lab_auxfinize_38:
do {
/* branch: __ats_lab_64 */
__ats_lab_64_0:
if (arg4 == (ats_sum_ptr_type)0) { goto __ats_lab_69_0 ; }
__ats_lab_64_1:
tmp357 = ats_caselptrlab_mac(anairiats_sum_4, arg4, atslab_0) ;
tmp358 = ats_caselptrlab_mac(anairiats_sum_4, arg4, atslab_1) ;
tmp359 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_11, tmp357), atslab_d3lab_overld_app) ;
do {
/* branch: __ats_lab_65 */
__ats_lab_65_0:
if (tmp359 != (ats_sum_ptr_type)0) { goto __ats_lab_66_0 ; }
__ats_lab_65_1:
tmp360 = atspre_iadd (arg5, 1) ;
arg0 = arg0 ;
arg1 = arg1 ;
arg2 = arg2 ;
arg3 = arg3 ;
arg4 = tmp358 ;
arg5 = tmp360 ;
goto __ats_lab_auxfinize_38 ; // tail call
break ;

/* branch: __ats_lab_66 */
__ats_lab_66_0:
// if (tmp359 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_66_1:
tmp361 = ats_caselptrlab_mac(anairiats_sum_6, tmp359, atslab_0) ;
tmp362 = list_take_exn_01442_ats_ptr_type (arg3, arg5) ;
tmp377 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type (tmp361) ;
tmp378 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_5, tmp361), atslab_d3exp_node) ;
if (((ats_sum_ptr_type)tmp378)->tag != 26) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 22412(line=1049, offs=13) -- 22467(line=1049, offs=68)") ; }
tmp379 = ats_caselptrlab_mac(anairiats_sum_10, tmp378, atslab_0) ;
tmp380 = ats_caselptrlab_mac(anairiats_sum_10, tmp378, atslab_1) ;
tmp381 = ats_caselptrlab_mac(anairiats_sum_10, tmp378, atslab_2) ;
if (tmp381 == (ats_sum_ptr_type)0) { ats_caseof_failure_handle ("/tmp/ATS-Postiats/src/pats_trans3_selab.dats: 22480(line=1050, offs=13) -- 22520(line=1050, offs=53)") ; }
tmp382 = ats_caselptrlab_mac(anairiats_sum_4, tmp381, atslab_0) ;
tmp383 = ats_caselptrlab_mac(anairiats_sum_4, tmp381, atslab_1) ;
tmp384 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type (tmp382) ;
tmp385 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_selab (arg0, tmp384, arg2, ats_castfn_mac(ats_ptr_type, tmp362)) ;
tmp386 = ATS_MALLOC(sizeof(anairiats_sum_4)) ;
ats_selptrset_mac(anairiats_sum_4, tmp386, atslab_0, tmp385) ;
ats_selptrset_mac(anairiats_sum_4, tmp386, atslab_1, tmp383) ;
tmp387 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_app_dyn (arg0, tmp377, tmp379, tmp380, tmp386) ;
arg0 = arg0 ;
arg1 = arg1 ;
arg2 = tmp387 ;
arg3 = tmp358 ;
arg4 = tmp358 ;
arg5 = 0 ;
goto __ats_lab_auxfinize_38 ; // tail call
break ;
} while (0) ;
break ;

/* branch: __ats_lab_69 */
__ats_lab_69_0:
// if (arg4 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_69_1:
tmp356 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_selab (arg0, arg1, arg2, arg3) ;
break ;
} while (0) ;
return (tmp356) ;
} /* end of [auxfinize_38] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 23021(line=1068, offs=3) -- 23756(line=1096, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp388) ;
ATSlocal (ats_ptr_type, tmp389) ;
ATSlocal (ats_int_type, tmp390) ;
ATSlocal (ats_int_type, tmp391) ;
ATSlocal (anairiats_rec_1, tmp392) ;
ATSlocal (ats_ptr_type, tmp393) ;
ATSlocal (ats_ptr_type, tmp394) ;
ATSlocal (ats_ptr_type, tmp395) ;
// ATSlocal_void (tmp396) ;
// ATSlocal_void (tmp397) ;
ATSlocal (ats_bool_type, tmp398) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab:
do {
/* branch: __ats_lab_70 */
__ats_lab_70_0:
if (arg2 == (ats_sum_ptr_type)0) { goto __ats_lab_71_0 ; }
__ats_lab_70_1:
tmp389 = _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__d3exp_get_type (arg1) ;
/* ats_int_type tmp390 ; */
tmp390 = 0 ;
/* ats_int_type tmp391 ; */
tmp391 = 0 ;
tmp392 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__s2exp_get_dlablst_linrest_sharing (arg0, tmp389, arg2, (&tmp390), (&tmp391)) ;
tmp393 = ats_select_mac(tmp392, atslab_0) ;
tmp394 = ats_select_mac(tmp392, atslab_1) ;
tmp395 = _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__s2exp_hnfize (tmp393) ;
/* tmp396 = */ _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__trans3_env_add_proplst_vt (arg0, tmp394) ;
tmp398 = atspre_gt_int_int (tmp390, 0) ;
if (tmp398) {
/* tmp397 = */ auxerr_linrest_37 (arg0, arg1, arg2) ;
} else {
/* empty */
} /* end of [if] */
// if (arg2 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp388 = auxfinize_38 (arg0, tmp395, arg1, arg2, arg2, 0) ;
break ;

/* branch: __ats_lab_71 */
__ats_lab_71_0:
// if (arg2 != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_71_1:
tmp388 = arg1 ;
break ;
} while (0) ;
return (tmp388) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab] */

/*
// /tmp/ATS-Postiats/src/pats_trans3_selab.dats: 23863(line=1104, offs=3) -- 24430(line=1134, offs=4)
*/
ATSglobaldec()
ats_ptr_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_selab (ats_ptr_type arg0, ats_ptr_type arg1, ats_ptr_type arg2) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp399) ;
ATSlocal (ats_ptr_type, tmp400) ;
ATSlocal (ats_ptr_type, tmp401) ;
ATSlocal (ats_ptr_type, tmp402) ;
ATSlocal (ats_ptr_type, tmp403) ;
ATSlocal (ats_ptr_type, tmp404) ;
ATSlocal (ats_ptr_type, tmp405) ;
ATSlocal (ats_ptr_type, tmp406) ;

__ats_lab__2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_selab:
tmp400 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_14, arg1), atslab_d2exp_node) ;
do {
/* branch: __ats_lab_72 */
__ats_lab_72_0:
if (((ats_sum_ptr_type)tmp400)->tag != 1) { goto __ats_lab_73_0 ; }
__ats_lab_72_1:
tmp401 = ats_caselptrlab_mac(anairiats_sum_3, tmp400, atslab_0) ;
tmp402 = ats_selbox_mac(ats_castptr_mac(anairiats_rec_14, arg1), atslab_d2exp_loc) ;
tmp399 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d2var_trup_selab (arg0, tmp402, tmp401, arg2) ;
break ;

/* branch: __ats_lab_73 */
__ats_lab_73_0:
if (((ats_sum_ptr_type)tmp400)->tag != 43) { goto __ats_lab_74_0 ; }
__ats_lab_73_1:
tmp403 = ats_caselptrlab_mac(anairiats_sum_12, tmp400, atslab_0) ;
tmp404 = ats_caselptrlab_mac(anairiats_sum_12, tmp400, atslab_1) ;
tmp399 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_deref (arg0, tmp403, tmp404, arg2) ;
break ;

/* branch: __ats_lab_74 */
__ats_lab_74_0:
__ats_lab_74_1:
tmp405 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup (arg1) ;
tmp406 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2lablst_trup (arg2) ;
tmp399 = _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__d3exp_trup_selab (arg0, tmp405, tmp406) ;
break ;
} while (0) ;
return (tmp399) ;
} /* end of [_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__d2exp_trup_selab] */

/* 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_errmsg_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2edats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__staload (void) ;
extern ats_void_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload (void) ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__staload () {
static int _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__staload_flag = 0 ;
if (_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__staload_flag) return ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_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_errmsg_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_errmsg_2edats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_label_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_location_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_staexp2_util_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_stacst2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_dynexp2_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_dynexp3_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_2esats__staload () ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__staload () ;

return ;
} /* staload function */

/* dynamic load function */

// dynload flag declaration
extern ats_int_type _2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__dynload_flag ;

ats_void_type
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__dynload () {
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_2edats__dynload_flag = 1 ;
_2tmp_2ATS_2dPostiats_2src_2pats_trans3_selab_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_trans3_selab_dats.c] */
