ats_bool_type
_2opt_2ats_2d0_2e2_2e9_2src_2ats_label_2esats__lte_label_label (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp10) ;
ATSlocal (ats_int_type, tmp11) ;

__ats_lab__2opt_2ats_2d0_2e2_2e9_2src_2ats_label_2esats__lte_label_label:
tmp11 = _2opt_2ats_2d0_2e2_2e9_2src_2ats_label_2esats__compare_label_label (arg0, arg1) ;
tmp10 = atspre_ilte (tmp11, 0) ;
return (tmp10) ;
} /* end of [_2opt_2ats_2d0_2e2_2e9_2src_2ats_label_2esats__lte_label_label] */
ats_bool_type
_2opt_2ats_2d0_2e2_2e9_2src_2ats_staexp2_2esats__lte_d2con_d2con (ats_ptr_type arg0, ats_ptr_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp58) ;
ATSlocal (ats_int_type, tmp59) ;

__ats_lab__2opt_2ats_2d0_2e2_2e9_2src_2ats_staexp2_2esats__lte_d2con_d2con:
tmp59 = _2opt_2ats_2d0_2e2_2e9_2src_2ats_staexp2_2esats__compare_d2con_d2con (arg0, arg1) ;
tmp58 = atspre_ilte (tmp59, 0) ;
return (tmp58) ;
} /* end of [_2opt_2ats_2d0_2e2_2e9_2src_2ats_staexp2_2esats__lte_d2con_d2con] */
ats_bool_type
insert_35 (ats_clo_ref_type env0, ats_ref_type arg0, ats_int_type arg1) {
/* local vardec */
ATSlocal (ats_bool_type, tmp59) ;
ATSlocal (ats_ptr_type, tmp60) ;
ATSlocal (ats_ptr_type, tmp61) ;
ATSlocal (ats_ptr_type, tmp62) ;
ATSlocal (ats_ptr_type, tmp63) ;
ATSlocal (ats_int_type, tmp64) ;
ATSlocal (ats_int_type, tmp65) ;
ATSlocal (ats_bool_type, tmp66) ;
ATSlocal (ats_bool_type, tmp67) ;
ATSlocal (ats_int_type, tmp68) ;
ATSlocal (ats_ptr_type, tmp71) ;
ATSlocal (ats_int_type, tmp72) ;
ATSlocal (ats_ptr_type, tmp73) ;
ATSlocal (ats_bool_type, tmp74) ;
ATSlocal (ats_int_type, tmp75) ;
ATSlocal (ats_int_type, tmp76) ;
ATSlocal (ats_int_type, tmp77) ;
ATSlocal (ats_ptr_type, tmp78) ;
ATSlocal (ats_bool_type, tmp108) ;
ATSlocal (ats_bool_type, tmp109) ;
ATSlocal (ats_int_type, tmp110) ;
ATSlocal (ats_ptr_type, tmp111) ;
ATSlocal (ats_int_type, tmp112) ;
ATSlocal (ats_ptr_type, tmp113) ;
ATSlocal (ats_bool_type, tmp114) ;
ATSlocal (ats_int_type, tmp115) ;
ATSlocal (ats_int_type, tmp116) ;
ATSlocal (ats_int_type, tmp117) ;
ATSlocal (ats_ptr_type, tmp118) ;
ATSlocal (ats_ptr_type, tmp148) ;
ATSlocal (ats_ptr_type, tmp149) ;
ATSlocal (ats_ptr_type, tmp150) ;

__ats_lab_insert_35:
do {
/* branch: __ats_lab_6 */
__ats_lab_6_0:
if (ats_ptrget_mac(ats_ptr_type, arg0) == (ats_sum_ptr_type)0) { goto __ats_lab_9_0 ; }
__ats_lab_6_1:
tmp60 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
tmp61 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
tmp62 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_2) ;
tmp63 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_3) ;
tmp65 = ats_ptrget_mac(ats_int_type, tmp61) ;
tmp64 = compare_elt_elt_01770_ats_int_type (arg1, tmp65, env0) ;
tmp66 = atspre_lt_int_int (tmp64, 0) ;
if (tmp66) {
tmp67 = insert_35 (env0, tmp62, arg1) ;
tmp71 = ats_ptrget_mac(ats_ptr_type, tmp62) ;
tmp68 = avltree_height_067_ats_int_type (tmp71) ;
tmp73 = ats_ptrget_mac(ats_ptr_type, tmp63) ;
tmp72 = avltree_height_067_ats_int_type (tmp73) ;
tmp75 = atspre_isub (tmp68, tmp72) ;
tmp74 = atspre_ilte (tmp75, 1) ;
if (tmp74) {
tmp77 = atspre_imax (tmp68, tmp72) ;
tmp76 = atspre_iadd (1, tmp77) ;
ats_ptrget_mac(ats_int_type, tmp60) = tmp76 ;
tmp59 = tmp67 ;
} else {
tmp78 = avltree_rrotate_0121_ats_int_type (tmp60, tmp68, tmp62, tmp72, tmp63, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp78 ;
tmp59 = tmp67 ;
} /* end of [if] */
} else {
tmp108 = atspre_gt_int_int (tmp64, 0) ;
if (tmp108) {
tmp109 = insert_35 (env0, tmp63, arg1) ;
tmp111 = ats_ptrget_mac(ats_ptr_type, tmp62) ;
tmp110 = avltree_height_067_ats_int_type (tmp111) ;
tmp113 = ats_ptrget_mac(ats_ptr_type, tmp63) ;
tmp112 = avltree_height_067_ats_int_type (tmp113) ;
tmp115 = atspre_isub (tmp112, tmp110) ;
tmp114 = atspre_ilte (tmp115, 1) ;
if (tmp114) {
tmp117 = atspre_imax (tmp110, tmp112) ;
tmp116 = atspre_iadd (1, tmp117) ;
ats_ptrget_mac(ats_int_type, tmp60) = tmp116 ;
tmp59 = tmp109 ;
} else {
tmp118 = avltree_lrotate_097_ats_int_type (tmp60, tmp110, tmp62, tmp112, tmp63, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp118 ;
tmp59 = tmp109 ;
} /* end of [if] */
} else {
tmp59 = ats_true_bool ;
} /* end of [if] */
} /* end of [if] */
break ;

/* branch: __ats_lab_9 */
__ats_lab_9_0:
// if (ats_ptrget_mac(ats_ptr_type, arg0) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_9_1:
tmp149 = (ats_sum_ptr_type)0 ;
tmp150 = (ats_sum_ptr_type)0 ;
tmp148 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
ats_selptrset_mac(anairiats_sum_0, tmp148, atslab_0, 1) ;
ats_selptrset_mac(anairiats_sum_0, tmp148, atslab_1, arg1) ;
ats_selptrset_mac(anairiats_sum_0, tmp148, atslab_2, tmp149) ;
ats_selptrset_mac(anairiats_sum_0, tmp148, atslab_3, tmp150) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp148 ;
tmp59 = ats_false_bool ;
break ;
} while (0) ;
return (tmp59) ;
} /* end of [insert_35] */
ats_ptr_type
avltree_lrotate_097_ats_int_type (ats_ptr_type arg0, ats_int_type arg1, ats_ptr_type arg2, ats_int_type arg3, ats_ptr_type arg4, ats_ptr_type arg5) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp119) ;
ATSlocal (ats_ptr_type, tmp120) ;
ATSlocal (ats_ptr_type, tmp121) ;
ATSlocal (ats_ptr_type, tmp122) ;
ATSlocal (ats_ptr_type, tmp123) ;
ATSlocal (ats_int_type, tmp124) ;
ATSlocal (ats_ptr_type, tmp125) ;
ATSlocal (ats_int_type, tmp126) ;
ATSlocal (ats_ptr_type, tmp127) ;
ATSlocal (ats_bool_type, tmp128) ;
ATSlocal (ats_int_type, tmp129) ;
ATSlocal (ats_int_type, tmp130) ;
ATSlocal (ats_ptr_type, tmp131) ;
ATSlocal (ats_int_type, tmp132) ;
ATSlocal (ats_int_type, tmp133) ;
ATSlocal (ats_ptr_type, tmp134) ;
ATSlocal (ats_ptr_type, tmp135) ;
ATSlocal (ats_ptr_type, tmp136) ;
ATSlocal (ats_ptr_type, tmp137) ;
ATSlocal (ats_int_type, tmp138) ;
ATSlocal (ats_ptr_type, tmp139) ;
ATSlocal (ats_int_type, tmp140) ;
ATSlocal (ats_ptr_type, tmp141) ;
ATSlocal (ats_int_type, tmp142) ;
ATSlocal (ats_int_type, tmp143) ;
ATSlocal (ats_ptr_type, tmp144) ;
ATSlocal (ats_int_type, tmp145) ;
ATSlocal (ats_int_type, tmp146) ;
ATSlocal (ats_ptr_type, tmp147) ;

__ats_lab_avltree_lrotate_097_ats_int_type:
tmp120 = ats_ptrget_mac(ats_ptr_type, arg4) ;
// if (tmp120 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp121 = &ats_caselptrlab_mac(anairiats_sum_0, tmp120, atslab_0) ;
tmp122 = &ats_caselptrlab_mac(anairiats_sum_0, tmp120, atslab_2) ;
tmp123 = &ats_caselptrlab_mac(anairiats_sum_0, tmp120, atslab_3) ;
tmp125 = ats_ptrget_mac(ats_ptr_type, tmp122) ;
tmp124 = avltree_height_067_ats_int_type (tmp125) ;
tmp127 = ats_ptrget_mac(ats_ptr_type, tmp123) ;
tmp126 = avltree_height_067_ats_int_type (tmp127) ;
tmp129 = atspre_iadd (tmp126, 0) ;
tmp128 = atspre_ilte (tmp124, tmp129) ;
if (tmp128) {
tmp130 = atspre_iadd (tmp124, 1) ;
ats_ptrget_mac(ats_int_type, arg0) = tmp130 ;
tmp131 = ats_ptrget_mac(ats_ptr_type, tmp122) ;
ats_ptrget_mac(ats_ptr_type, arg4) = tmp131 ;
tmp133 = atspre_imax (tmp130, tmp126) ;
tmp132 = atspre_iadd (1, tmp133) ;
ats_ptrget_mac(ats_int_type, tmp121) = tmp132 ;
ats_ptrget_mac(ats_ptr_type, tmp122) = arg5 ;
tmp119 = tmp120 ;
} else {
tmp134 = ats_ptrget_mac(ats_ptr_type, tmp122) ;
// if (tmp134 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp135 = &ats_caselptrlab_mac(anairiats_sum_0, tmp134, atslab_0) ;
tmp136 = &ats_caselptrlab_mac(anairiats_sum_0, tmp134, atslab_2) ;
tmp137 = &ats_caselptrlab_mac(anairiats_sum_0, tmp134, atslab_3) ;
tmp139 = ats_ptrget_mac(ats_ptr_type, tmp136) ;
tmp138 = avltree_height_067_ats_int_type (tmp139) ;
tmp141 = ats_ptrget_mac(ats_ptr_type, tmp137) ;
tmp140 = avltree_height_067_ats_int_type (tmp141) ;
tmp143 = atspre_imax (arg1, tmp138) ;
tmp142 = atspre_iadd (1, tmp143) ;
ats_ptrget_mac(ats_int_type, arg0) = tmp142 ;
tmp144 = ats_ptrget_mac(ats_ptr_type, tmp136) ;
ats_ptrget_mac(ats_ptr_type, arg4) = tmp144 ;
tmp146 = atspre_imax (tmp140, tmp126) ;
tmp145 = atspre_iadd (1, tmp146) ;
ats_ptrget_mac(ats_int_type, tmp121) = tmp145 ;
tmp147 = ats_ptrget_mac(ats_ptr_type, tmp137) ;
ats_ptrget_mac(ats_ptr_type, tmp122) = tmp147 ;
ats_ptrget_mac(ats_int_type, tmp135) = arg3 ;
ats_ptrget_mac(ats_ptr_type, tmp136) = arg5 ;
ats_ptrget_mac(ats_ptr_type, tmp137) = tmp120 ;
tmp119 = tmp134 ;
} /* end of [if] */
return (tmp119) ;
} /* end of [avltree_lrotate_097_ats_int_type] */
ats_bool_type
insert_12 (ats_uint_type env0, ats_clo_ref_type env1, ats_ref_type arg0, ats_ptr_type arg1, ats_ref_type arg2) {
/* local vardec */
ATSlocal (ats_bool_type, tmp33) ;
ATSlocal (ats_ptr_type, tmp34) ;
ATSlocal (ats_ptr_type, tmp35) ;
ATSlocal (ats_ptr_type, tmp36) ;
ATSlocal (ats_ptr_type, tmp37) ;
ATSlocal (ats_ptr_type, tmp38) ;
ATSlocal (ats_int_type, tmp39) ;
ATSlocal (ats_uint_type, tmp40) ;
ATSlocal (ats_bool_type, tmp41) ;
ATSlocal (ats_bool_type, tmp42) ;
ATSlocal (ats_int_type, tmp43) ;
ATSlocal (ats_ptr_type, tmp46) ;
ATSlocal (ats_int_type, tmp47) ;
ATSlocal (ats_ptr_type, tmp48) ;
ATSlocal (ats_bool_type, tmp49) ;
ATSlocal (ats_int_type, tmp50) ;
ATSlocal (ats_int_type, tmp51) ;
ATSlocal (ats_int_type, tmp52) ;
ATSlocal (ats_ptr_type, tmp53) ;
ATSlocal (ats_bool_type, tmp83) ;
ATSlocal (ats_bool_type, tmp84) ;
ATSlocal (ats_int_type, tmp85) ;
ATSlocal (ats_ptr_type, tmp86) ;
ATSlocal (ats_int_type, tmp87) ;
ATSlocal (ats_ptr_type, tmp88) ;
ATSlocal (ats_bool_type, tmp89) ;
ATSlocal (ats_int_type, tmp90) ;
ATSlocal (ats_int_type, tmp91) ;
ATSlocal (ats_int_type, tmp92) ;
ATSlocal (ats_ptr_type, tmp93) ;
ATSlocal (ats_ptr_type, tmp123) ;
ATSlocal (ats_ptr_type, tmp124) ;
ATSlocal (ats_ptr_type, tmp125) ;
ATSlocal (ats_ptr_type, tmp126) ;

__ats_lab_insert_12:
do {
/* branch: __ats_lab_7 */
__ats_lab_7_0:
if (ats_ptrget_mac(ats_ptr_type, arg0) == (ats_sum_ptr_type)0) { goto __ats_lab_10_0 ; }
__ats_lab_7_1:
tmp34 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_0) ;
tmp35 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_1) ;
tmp36 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_2) ;
tmp37 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_3) ;
tmp38 = &ats_caselptrlab_mac(anairiats_sum_0, ats_ptrget_mac(ats_ptr_type, arg0), atslab_4) ;
tmp40 = ats_ptrget_mac(ats_uint_type, tmp35) ;
tmp39 = compare_key_key_01713_ats_uint_type (env0, tmp40, env1) ;
tmp41 = atspre_lt_int_int (tmp39, 0) ;
if (tmp41) {
tmp42 = insert_12 (env0, env1, tmp37, arg1, arg2) ;
tmp46 = ats_ptrget_mac(ats_ptr_type, tmp37) ;
tmp43 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp46) ;
tmp48 = ats_ptrget_mac(ats_ptr_type, tmp38) ;
tmp47 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp48) ;
tmp50 = atspre_isub (tmp43, tmp47) ;
tmp49 = atspre_ilte (tmp50, 1) ;
if (tmp49) {
tmp52 = atspre_imax (tmp43, tmp47) ;
tmp51 = atspre_iadd (1, tmp52) ;
ats_ptrget_mac(ats_int_type, tmp34) = tmp51 ;
tmp33 = tmp42 ;
} else {
tmp53 = avltree_rrotate_089_ats_uint_type_2cats_ptr_type (tmp34, tmp43, tmp37, tmp47, tmp38, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp53 ;
tmp33 = tmp42 ;
} /* end of [if] */
} else {
tmp83 = atspre_gt_int_int (tmp39, 0) ;
if (tmp83) {
tmp84 = insert_12 (env0, env1, tmp38, arg1, arg2) ;
tmp86 = ats_ptrget_mac(ats_ptr_type, tmp37) ;
tmp85 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp86) ;
tmp88 = ats_ptrget_mac(ats_ptr_type, tmp38) ;
tmp87 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp88) ;
tmp90 = atspre_isub (tmp87, tmp85) ;
tmp89 = atspre_ilte (tmp90, 1) ;
if (tmp89) {
tmp92 = atspre_imax (tmp85, tmp87) ;
tmp91 = atspre_iadd (1, tmp92) ;
ats_ptrget_mac(ats_int_type, tmp34) = tmp91 ;
tmp33 = tmp84 ;
} else {
tmp93 = avltree_lrotate_064_ats_uint_type_2cats_ptr_type (tmp34, tmp85, tmp37, tmp87, tmp38, ats_ptrget_mac(ats_ptr_type, arg0)) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp93 ;
tmp33 = tmp84 ;
} /* end of [if] */
} else {
tmp123 = ats_ptrget_mac(ats_ptr_type, tmp36) ;
ats_ptrget_mac(ats_ptr_type, arg2) = tmp123 ;
ats_ptrget_mac(ats_ptr_type, tmp36) = arg1 ;
tmp33 = ats_true_bool ;
} /* end of [if] */
} /* end of [if] */
break ;

/* branch: __ats_lab_10 */
__ats_lab_10_0:
// if (ats_ptrget_mac(ats_ptr_type, arg0) != (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
__ats_lab_10_1:
tmp125 = (ats_sum_ptr_type)0 ;
tmp126 = (ats_sum_ptr_type)0 ;
tmp124 = ATS_MALLOC(sizeof(anairiats_sum_0)) ;
ats_selptrset_mac(anairiats_sum_0, tmp124, atslab_0, 1) ;
ats_selptrset_mac(anairiats_sum_0, tmp124, atslab_1, env0) ;
ats_selptrset_mac(anairiats_sum_0, tmp124, atslab_2, arg1) ;
ats_selptrset_mac(anairiats_sum_0, tmp124, atslab_3, tmp125) ;
ats_selptrset_mac(anairiats_sum_0, tmp124, atslab_4, tmp126) ;
ats_ptrget_mac(ats_ptr_type, arg0) = tmp124 ;
tmp33 = ats_false_bool ;
break ;
} while (0) ;
return (tmp33) ;
} /* end of [insert_12] */
ats_ptr_type
avltree_lrotate_064_ats_uint_type_2cats_ptr_type (ats_ptr_type arg0, ats_int_type arg1, ats_ptr_type arg2, ats_int_type arg3, ats_ptr_type arg4, ats_ptr_type arg5) {
/* local vardec */
ATSlocal (ats_ptr_type, tmp94) ;
ATSlocal (ats_ptr_type, tmp95) ;
ATSlocal (ats_ptr_type, tmp96) ;
ATSlocal (ats_ptr_type, tmp97) ;
ATSlocal (ats_ptr_type, tmp98) ;
ATSlocal (ats_int_type, tmp99) ;
ATSlocal (ats_ptr_type, tmp100) ;
ATSlocal (ats_int_type, tmp101) ;
ATSlocal (ats_ptr_type, tmp102) ;
ATSlocal (ats_bool_type, tmp103) ;
ATSlocal (ats_int_type, tmp104) ;
ATSlocal (ats_int_type, tmp105) ;
ATSlocal (ats_ptr_type, tmp106) ;
ATSlocal (ats_int_type, tmp107) ;
ATSlocal (ats_int_type, tmp108) ;
ATSlocal (ats_ptr_type, tmp109) ;
ATSlocal (ats_ptr_type, tmp110) ;
ATSlocal (ats_ptr_type, tmp111) ;
ATSlocal (ats_ptr_type, tmp112) ;
ATSlocal (ats_int_type, tmp113) ;
ATSlocal (ats_ptr_type, tmp114) ;
ATSlocal (ats_int_type, tmp115) ;
ATSlocal (ats_ptr_type, tmp116) ;
ATSlocal (ats_int_type, tmp117) ;
ATSlocal (ats_int_type, tmp118) ;
ATSlocal (ats_ptr_type, tmp119) ;
ATSlocal (ats_int_type, tmp120) ;
ATSlocal (ats_int_type, tmp121) ;
ATSlocal (ats_ptr_type, tmp122) ;

__ats_lab_avltree_lrotate_064_ats_uint_type_2cats_ptr_type:
tmp95 = ats_ptrget_mac(ats_ptr_type, arg4) ;
// if (tmp95 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp96 = &ats_caselptrlab_mac(anairiats_sum_0, tmp95, atslab_0) ;
tmp97 = &ats_caselptrlab_mac(anairiats_sum_0, tmp95, atslab_3) ;
tmp98 = &ats_caselptrlab_mac(anairiats_sum_0, tmp95, atslab_4) ;
tmp100 = ats_ptrget_mac(ats_ptr_type, tmp97) ;
tmp99 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp100) ;
tmp102 = ats_ptrget_mac(ats_ptr_type, tmp98) ;
tmp101 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp102) ;
tmp104 = atspre_iadd (tmp101, 0) ;
tmp103 = atspre_ilte (tmp99, tmp104) ;
if (tmp103) {
tmp105 = atspre_iadd (tmp99, 1) ;
ats_ptrget_mac(ats_int_type, arg0) = tmp105 ;
tmp106 = ats_ptrget_mac(ats_ptr_type, tmp97) ;
ats_ptrget_mac(ats_ptr_type, arg4) = tmp106 ;
tmp108 = atspre_imax (tmp105, tmp101) ;
tmp107 = atspre_iadd (1, tmp108) ;
ats_ptrget_mac(ats_int_type, tmp96) = tmp107 ;
ats_ptrget_mac(ats_ptr_type, tmp97) = arg5 ;
tmp94 = tmp95 ;
} else {
tmp109 = ats_ptrget_mac(ats_ptr_type, tmp97) ;
// if (tmp109 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; }
tmp110 = &ats_caselptrlab_mac(anairiats_sum_0, tmp109, atslab_0) ;
tmp111 = &ats_caselptrlab_mac(anairiats_sum_0, tmp109, atslab_3) ;
tmp112 = &ats_caselptrlab_mac(anairiats_sum_0, tmp109, atslab_4) ;
tmp114 = ats_ptrget_mac(ats_ptr_type, tmp111) ;
tmp113 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp114) ;
tmp116 = ats_ptrget_mac(ats_ptr_type, tmp112) ;
tmp115 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp116) ;
tmp118 = atspre_imax (arg1, tmp113) ;
tmp117 = atspre_iadd (1, tmp118) ;
ats_ptrget_mac(ats_int_type, arg0) = tmp117 ;
tmp119 = ats_ptrget_mac(ats_ptr_type, tmp111) ;
ats_ptrget_mac(ats_ptr_type, arg4) = tmp119 ;
tmp121 = atspre_imax (tmp115, tmp101) ;
tmp120 = atspre_iadd (1, tmp121) ;
ats_ptrget_mac(ats_int_type, tmp96) = tmp120 ;
tmp122 = ats_ptrget_mac(ats_ptr_type, tmp112) ;
ats_ptrget_mac(ats_ptr_type, tmp97) = tmp122 ;
ats_ptrget_mac(ats_int_type, tmp110) = arg3 ;
ats_ptrget_mac(ats_ptr_type, tmp111) = arg5 ;
ats_ptrget_mac(ats_ptr_type, tmp112) = tmp95 ;
tmp94 = tmp109 ;
} /* end of [if] */
return (tmp94) ;
} /* end of [avltree_lrotate_064_ats_uint_type_2cats_ptr_type] */