ats_ptr_type _2opt_2ats_2d0_2e2_2e9_2src_2ats_symtbl_2esats__symtbl_make (ats_int_type arg0) { /* local vardec */ ATSlocal (ats_ptr_type, tmp0) ; ATSlocal (ats_ptr_type, tmp1) ; ATSlocal (ats_ptr_type, tmp2) ; ATSlocal (ats_int_type, tmp3) ; ATSlocal (ats_ptr_type, tmp4) ; ATSlocal (ats_ptr_type, tmp5) ; ATSlocal (ats_ptr_type, tmp6) ; // ATSlocal_void (tmp7) ; // ATSlocal_void (tmp13) ; // ATSlocal_void (tmp14) ; __ats_lab__2opt_2ats_2d0_2e2_2e9_2src_2ats_symtbl_2esats__symtbl_make: tmp1 = atspre_ptr_alloc_tsz (sizeof(anairiats_rec_0)) ; tmp2 = ats_selsin_mac(tmp1, atslab_2) ; tmp3 = atspre_imax (arg0, 1) ; tmp4 = ats_array_ptr_alloc_tsz (tmp3, sizeof(ats_ptr_type)) ; tmp5 = ats_selsin_mac(tmp4, atslab_2) ; /* ats_ptr_type tmp6 ; */ tmp6 = (ats_sum_ptr_type)0 ; /* tmp7 = */ array_ptr_initialize_elt_01930_ats_ptr_type (tmp5, tmp3, tmp6) ; ats_selptr_mac(ats_castptr_mac(anairiats_rec_0, tmp2), atslab_ptr) = tmp5 ; ats_selptr_mac(ats_castptr_mac(anairiats_rec_0, tmp2), atslab_size) = tmp3 ; ats_selptr_mac(ats_castptr_mac(anairiats_rec_0, tmp2), atslab_nitm) = 0 ; /* tmp13 = */ atspre_vbox_make_view_ptr (tmp2) ; /* tmp14 = ats_selsin_mac(tmp13, atslab_1) */ ; tmp0 = tmp2 ; return (tmp0) ; } /* end of [_2opt_2ats_2d0_2e2_2e9_2src_2ats_symtbl_2esats__symtbl_make] */
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_ptr_type avltree_rrotate_0121_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, tmp79) ; ATSlocal (ats_ptr_type, tmp80) ; ATSlocal (ats_ptr_type, tmp81) ; ATSlocal (ats_ptr_type, tmp82) ; ATSlocal (ats_ptr_type, tmp83) ; ATSlocal (ats_int_type, tmp84) ; ATSlocal (ats_ptr_type, tmp85) ; ATSlocal (ats_int_type, tmp86) ; ATSlocal (ats_ptr_type, tmp87) ; ATSlocal (ats_bool_type, tmp88) ; ATSlocal (ats_int_type, tmp89) ; ATSlocal (ats_int_type, tmp90) ; ATSlocal (ats_ptr_type, tmp91) ; ATSlocal (ats_int_type, tmp92) ; ATSlocal (ats_int_type, tmp93) ; ATSlocal (ats_ptr_type, tmp94) ; ATSlocal (ats_ptr_type, tmp95) ; ATSlocal (ats_ptr_type, tmp96) ; ATSlocal (ats_ptr_type, tmp97) ; ATSlocal (ats_int_type, tmp98) ; ATSlocal (ats_ptr_type, tmp99) ; ATSlocal (ats_int_type, tmp100) ; ATSlocal (ats_ptr_type, tmp101) ; ATSlocal (ats_int_type, tmp102) ; ATSlocal (ats_int_type, tmp103) ; ATSlocal (ats_ptr_type, tmp104) ; ATSlocal (ats_int_type, tmp105) ; ATSlocal (ats_int_type, tmp106) ; ATSlocal (ats_ptr_type, tmp107) ; __ats_lab_avltree_rrotate_0121_ats_int_type: tmp80 = ats_ptrget_mac(ats_ptr_type, arg2) ; // if (tmp80 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; } tmp81 = &ats_caselptrlab_mac(anairiats_sum_0, tmp80, atslab_0) ; tmp82 = &ats_caselptrlab_mac(anairiats_sum_0, tmp80, atslab_2) ; tmp83 = &ats_caselptrlab_mac(anairiats_sum_0, tmp80, atslab_3) ; tmp85 = ats_ptrget_mac(ats_ptr_type, tmp82) ; tmp84 = avltree_height_067_ats_int_type (tmp85) ; tmp87 = ats_ptrget_mac(ats_ptr_type, tmp83) ; tmp86 = avltree_height_067_ats_int_type (tmp87) ; tmp89 = atspre_iadd (tmp84, 0) ; tmp88 = atspre_igte (tmp89, tmp86) ; if (tmp88) { tmp90 = atspre_iadd (tmp86, 1) ; ats_ptrget_mac(ats_int_type, arg0) = tmp90 ; tmp91 = ats_ptrget_mac(ats_ptr_type, tmp83) ; ats_ptrget_mac(ats_ptr_type, arg2) = tmp91 ; tmp93 = atspre_imax (tmp84, tmp90) ; tmp92 = atspre_iadd (1, tmp93) ; ats_ptrget_mac(ats_int_type, tmp81) = tmp92 ; ats_ptrget_mac(ats_ptr_type, tmp83) = arg5 ; tmp79 = tmp80 ; } else { tmp94 = ats_ptrget_mac(ats_ptr_type, tmp83) ; // if (tmp94 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; } tmp95 = &ats_caselptrlab_mac(anairiats_sum_0, tmp94, atslab_0) ; tmp96 = &ats_caselptrlab_mac(anairiats_sum_0, tmp94, atslab_2) ; tmp97 = &ats_caselptrlab_mac(anairiats_sum_0, tmp94, atslab_3) ; tmp99 = ats_ptrget_mac(ats_ptr_type, tmp96) ; tmp98 = avltree_height_067_ats_int_type (tmp99) ; tmp101 = ats_ptrget_mac(ats_ptr_type, tmp97) ; tmp100 = avltree_height_067_ats_int_type (tmp101) ; tmp103 = atspre_imax (tmp100, arg3) ; tmp102 = atspre_iadd (1, tmp103) ; ats_ptrget_mac(ats_int_type, arg0) = tmp102 ; tmp104 = ats_ptrget_mac(ats_ptr_type, tmp97) ; ats_ptrget_mac(ats_ptr_type, arg2) = tmp104 ; tmp106 = atspre_imax (tmp84, tmp98) ; tmp105 = atspre_iadd (1, tmp106) ; ats_ptrget_mac(ats_int_type, tmp81) = tmp105 ; tmp107 = ats_ptrget_mac(ats_ptr_type, tmp96) ; ats_ptrget_mac(ats_ptr_type, tmp83) = tmp107 ; ats_ptrget_mac(ats_int_type, tmp95) = arg1 ; ats_ptrget_mac(ats_ptr_type, tmp96) = tmp80 ; ats_ptrget_mac(ats_ptr_type, tmp97) = arg5 ; tmp79 = tmp94 ; } /* end of [if] */ return (tmp79) ; } /* end of [avltree_rrotate_0121_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] */
ats_ptr_type avltree_rrotate_089_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, tmp54) ; ATSlocal (ats_ptr_type, tmp55) ; ATSlocal (ats_ptr_type, tmp56) ; ATSlocal (ats_ptr_type, tmp57) ; ATSlocal (ats_ptr_type, tmp58) ; ATSlocal (ats_int_type, tmp59) ; ATSlocal (ats_ptr_type, tmp60) ; ATSlocal (ats_int_type, tmp61) ; ATSlocal (ats_ptr_type, tmp62) ; ATSlocal (ats_bool_type, tmp63) ; ATSlocal (ats_int_type, tmp64) ; ATSlocal (ats_int_type, tmp65) ; ATSlocal (ats_ptr_type, tmp66) ; ATSlocal (ats_int_type, tmp67) ; ATSlocal (ats_int_type, tmp68) ; ATSlocal (ats_ptr_type, tmp69) ; ATSlocal (ats_ptr_type, tmp70) ; ATSlocal (ats_ptr_type, tmp71) ; ATSlocal (ats_ptr_type, tmp72) ; ATSlocal (ats_int_type, tmp73) ; ATSlocal (ats_ptr_type, tmp74) ; ATSlocal (ats_int_type, tmp75) ; ATSlocal (ats_ptr_type, tmp76) ; ATSlocal (ats_int_type, tmp77) ; ATSlocal (ats_int_type, tmp78) ; ATSlocal (ats_ptr_type, tmp79) ; ATSlocal (ats_int_type, tmp80) ; ATSlocal (ats_int_type, tmp81) ; ATSlocal (ats_ptr_type, tmp82) ; __ats_lab_avltree_rrotate_089_ats_uint_type_2cats_ptr_type: tmp55 = ats_ptrget_mac(ats_ptr_type, arg2) ; // if (tmp55 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; } tmp56 = &ats_caselptrlab_mac(anairiats_sum_0, tmp55, atslab_0) ; tmp57 = &ats_caselptrlab_mac(anairiats_sum_0, tmp55, atslab_3) ; tmp58 = &ats_caselptrlab_mac(anairiats_sum_0, tmp55, atslab_4) ; tmp60 = ats_ptrget_mac(ats_ptr_type, tmp57) ; tmp59 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp60) ; tmp62 = ats_ptrget_mac(ats_ptr_type, tmp58) ; tmp61 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp62) ; tmp64 = atspre_iadd (tmp59, 0) ; tmp63 = atspre_igte (tmp64, tmp61) ; if (tmp63) { tmp65 = atspre_iadd (tmp61, 1) ; ats_ptrget_mac(ats_int_type, arg0) = tmp65 ; tmp66 = ats_ptrget_mac(ats_ptr_type, tmp58) ; ats_ptrget_mac(ats_ptr_type, arg2) = tmp66 ; tmp68 = atspre_imax (tmp59, tmp65) ; tmp67 = atspre_iadd (1, tmp68) ; ats_ptrget_mac(ats_int_type, tmp56) = tmp67 ; ats_ptrget_mac(ats_ptr_type, tmp58) = arg5 ; tmp54 = tmp55 ; } else { tmp69 = ats_ptrget_mac(ats_ptr_type, tmp58) ; // if (tmp69 == (ats_sum_ptr_type)0) { ats_deadcode_failure_handle () ; } tmp70 = &ats_caselptrlab_mac(anairiats_sum_0, tmp69, atslab_0) ; tmp71 = &ats_caselptrlab_mac(anairiats_sum_0, tmp69, atslab_3) ; tmp72 = &ats_caselptrlab_mac(anairiats_sum_0, tmp69, atslab_4) ; tmp74 = ats_ptrget_mac(ats_ptr_type, tmp71) ; tmp73 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp74) ; tmp76 = ats_ptrget_mac(ats_ptr_type, tmp72) ; tmp75 = avltree_height_036_ats_uint_type_2cats_ptr_type (tmp76) ; tmp78 = atspre_imax (tmp75, arg3) ; tmp77 = atspre_iadd (1, tmp78) ; ats_ptrget_mac(ats_int_type, arg0) = tmp77 ; tmp79 = ats_ptrget_mac(ats_ptr_type, tmp72) ; ats_ptrget_mac(ats_ptr_type, arg2) = tmp79 ; tmp81 = atspre_imax (tmp59, tmp73) ; tmp80 = atspre_iadd (1, tmp81) ; ats_ptrget_mac(ats_int_type, tmp56) = tmp80 ; tmp82 = ats_ptrget_mac(ats_ptr_type, tmp71) ; ats_ptrget_mac(ats_ptr_type, tmp58) = tmp82 ; ats_ptrget_mac(ats_int_type, tmp70) = arg1 ; ats_ptrget_mac(ats_ptr_type, tmp71) = tmp55 ; ats_ptrget_mac(ats_ptr_type, tmp72) = arg5 ; tmp54 = tmp69 ; } /* end of [if] */ return (tmp54) ; } /* end of [avltree_rrotate_089_ats_uint_type_2cats_ptr_type] */