; LLVM IR from Izaron/ACM-ICPC :: Russian Olympiad in Informatics/Regional Stage 2015 (river)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_pbds::tree" = type { %"class.__gnu_pbds::basic_branch" }
%"class.__gnu_pbds::basic_branch" = type { %"class.__gnu_pbds::detail::rb_tree_set" }
%"class.__gnu_pbds::detail::rb_tree_set" = type { %"class.__gnu_pbds::detail::bin_search_tree_set" }
%"class.__gnu_pbds::detail::bin_search_tree_set" = type { %"class.__gnu_pbds::tree_order_statistics_node_update", [8 x i8], ptr, i64 }
%"class.__gnu_pbds::tree_order_statistics_node_update" = type { %"struct.__gnu_pbds::detail::branch_policy" }
%"struct.__gnu_pbds::detail::branch_policy" = type { ptr }
%"struct.std::pair.0" = type { i64, i64 }
%"struct.std::pair" = type <{ %"class.__gnu_pbds::detail::bin_search_tree_const_it_", i8, [7 x i8] }>
%"class.__gnu_pbds::detail::bin_search_tree_const_it_" = type { ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.__gnu_pbds::tree", align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.0", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca [100005 x i64], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair.0", align 8
  %20 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %21 = alloca %"struct.std::pair.0", align 8
  %22 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %23 = alloca %"struct.std::pair.0", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair.0", align 8
  %27 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %28 = alloca %"struct.std::pair.0", align 8
  %29 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %30 = alloca %"struct.std::pair.0", align 8
  %31 = alloca i64, align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"struct.std::pair.0", align 8
  %34 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %35 = alloca %"struct.std::pair.0", align 8
  %36 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %37 = alloca %"struct.std::pair.0", align 8
  %38 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca %"struct.std::pair.0", align 8
  %42 = alloca i64, align 8
  %43 = alloca %"struct.std::pair.0", align 8
  %44 = alloca i64, align 8
  %45 = alloca i64, align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %"struct.std::pair", align 8
  %48 = alloca %"struct.std::pair.0", align 8
  %49 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %50 = alloca %"struct.std::pair.0", align 8
  %51 = alloca %"struct.std::pair.0", align 8
  %52 = alloca i64, align 8
  %53 = alloca i64, align 8
  %54 = alloca %"struct.std::pair.0", align 8
  %55 = alloca %"struct.std::pair.0", align 8
  %56 = alloca i64, align 8
  %57 = alloca %"struct.std::pair", align 8
  %58 = alloca %"struct.std::pair", align 8
  %59 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %60 = load ptr, ptr @stdin, align 8, !tbaa !5
  %61 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %60)
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %2, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @_ZN10__gnu_pbds4treeISt4pairIxxENS_9null_typeESt4lessIS2_ENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %93, %0
  %66 = load i32, ptr %7, align 4, !tbaa !11
  %67 = load i32, ptr %2, align 4, !tbaa !11
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %105

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %72 unwind label %96

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %73 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %74 unwind label %100

74:                                               ; preds = %72
  %75 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %76 = extractvalue { i64, i64 } %73, 0
  store i64 %76, ptr %75, align 8
  %77 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %78 = extractvalue { i64, i64 } %73, 1
  store i64 %78, ptr %77, align 8
  %79 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %80 unwind label %100

80:                                               ; preds = %74
  %81 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %82 = extractvalue { ptr, i8 } %79, 0
  store ptr %82, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %84 = extractvalue { ptr, i8 } %79, 1
  store i8 %84, ptr %83, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %85 = load i64, ptr %8, align 8, !tbaa !9
  %86 = load i64, ptr %8, align 8, !tbaa !9
  %87 = mul nsw i64 %85, %86
  %88 = load i64, ptr %4, align 8, !tbaa !9
  %89 = add nsw i64 %88, %87
  store i64 %89, ptr %4, align 8, !tbaa !9
  %90 = load i64, ptr %8, align 8, !tbaa !9
  %91 = load i64, ptr %5, align 8, !tbaa !9
  %92 = add nsw i64 %91, %90
  store i64 %92, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %93

93:                                               ; preds = %80
  %94 = load i32, ptr %7, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !11
  br label %65, !llvm.loop !13

96:                                               ; preds = %70
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  br label %104

100:                                              ; preds = %74, %72
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %9, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %104

104:                                              ; preds = %100, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %572

105:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %106 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %13)
          to label %107 unwind label %185

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 800040, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !11
  %108 = load i64, ptr %4, align 8, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100005 x i64], ptr %14, i64 0, i64 %110
  store i64 %108, ptr %111, align 8, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !11
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %114 = load i32, ptr %2, align 4, !tbaa !11
  store i32 %114, ptr %16, align 4, !tbaa !11
  br label %115

115:                                              ; preds = %540, %107
  %116 = load i32, ptr %13, align 4, !tbaa !11
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %13, align 4, !tbaa !11
  %118 = icmp ne i32 %116, 0
  br i1 %118, label %119, label %548

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %120 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %17, ptr noundef %18)
          to label %121 unwind label %189

121:                                              ; preds = %119
  %122 = load i32, ptr %18, align 4, !tbaa !11
  %123 = add nsw i32 %122, -1
  store i32 %123, ptr %18, align 4, !tbaa !11
  %124 = load i32, ptr %17, align 4, !tbaa !11
  %125 = icmp eq i32 %124, 1
  br i1 %125, label %126, label %440

126:                                              ; preds = %121
  %127 = load i32, ptr %18, align 4, !tbaa !11
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %212

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %130 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 0)
          to label %131 unwind label %193

131:                                              ; preds = %129
  %132 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %20, i32 0, i32 0
  store ptr %130, ptr %132, align 8
  %133 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %134 unwind label %193

134:                                              ; preds = %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %133, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %135 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 1)
          to label %136 unwind label %197

136:                                              ; preds = %134
  %137 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %22, i32 0, i32 0
  store ptr %135, ptr %137, align 8
  %138 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %139 unwind label %197

139:                                              ; preds = %136
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %138, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  %140 = getelementptr inbounds %"struct.std::pair.0", ptr %19, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !15
  %142 = getelementptr inbounds %"struct.std::pair.0", ptr %19, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !15
  %144 = mul nsw i64 %141, %143
  %145 = load i64, ptr %4, align 8, !tbaa !9
  %146 = sub nsw i64 %145, %144
  store i64 %146, ptr %4, align 8, !tbaa !9
  %147 = getelementptr inbounds %"struct.std::pair.0", ptr %21, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %"struct.std::pair.0", ptr %21, i32 0, i32 1
  %150 = load i64, ptr %149, align 8, !tbaa !15
  %151 = mul nsw i64 %148, %150
  %152 = load i64, ptr %4, align 8, !tbaa !9
  %153 = sub nsw i64 %152, %151
  store i64 %153, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %154 = getelementptr inbounds %"struct.std::pair.0", ptr %19, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %155 = getelementptr inbounds %"struct.std::pair.0", ptr %19, i32 0, i32 1
  %156 = load i64, ptr %155, align 8, !tbaa !15
  %157 = getelementptr inbounds %"struct.std::pair.0", ptr %21, i32 0, i32 1
  %158 = load i64, ptr %157, align 8, !tbaa !15
  %159 = add nsw i64 %156, %158
  store i64 %159, ptr %24, align 8, !tbaa !9
  %160 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %161 unwind label %201

161:                                              ; preds = %139
  %162 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %163 = extractvalue { i64, i64 } %160, 0
  store i64 %163, ptr %162, align 8
  %164 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %165 = extractvalue { i64, i64 } %160, 1
  store i64 %165, ptr %164, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %166 = getelementptr inbounds %"struct.std::pair.0", ptr %23, i32 0, i32 1
  %167 = load i64, ptr %166, align 8, !tbaa !15
  %168 = getelementptr inbounds %"struct.std::pair.0", ptr %23, i32 0, i32 1
  %169 = load i64, ptr %168, align 8, !tbaa !15
  %170 = mul nsw i64 %167, %169
  %171 = load i64, ptr %4, align 8, !tbaa !9
  %172 = add nsw i64 %171, %170
  store i64 %172, ptr %4, align 8, !tbaa !9
  %173 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %174 unwind label %205

174:                                              ; preds = %161
  %175 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %176 unwind label %205

176:                                              ; preds = %174
  %177 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %178 unwind label %205

178:                                              ; preds = %176
  %179 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %180 = extractvalue { ptr, i8 } %177, 0
  store ptr %180, ptr %179, align 8
  %181 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %182 = extractvalue { ptr, i8 } %177, 1
  store i8 %182, ptr %181, align 8
  %183 = load i32, ptr %16, align 4, !tbaa !11
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %439

185:                                              ; preds = %105
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  br label %571

189:                                              ; preds = %119
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %547

193:                                              ; preds = %131, %129
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %211

197:                                              ; preds = %136, %134
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %210

201:                                              ; preds = %139
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %9, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %209

205:                                              ; preds = %176, %174, %161
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %9, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %10, align 4
  br label %209

209:                                              ; preds = %205, %201
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %210

210:                                              ; preds = %209, %197
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %211

211:                                              ; preds = %210, %193
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %547

212:                                              ; preds = %126
  %213 = load i32, ptr %18, align 4, !tbaa !11
  %214 = load i32, ptr %16, align 4, !tbaa !11
  %215 = sub nsw i32 %214, 1
  %216 = icmp eq i32 %213, %215
  br i1 %216, label %217, label %298

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %218 = load i32, ptr %16, align 4, !tbaa !11
  %219 = sub nsw i32 %218, 2
  %220 = sext i32 %219 to i64
  %221 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %220)
          to label %222 unwind label %279

222:                                              ; preds = %217
  %223 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %27, i32 0, i32 0
  store ptr %221, ptr %223, align 8
  %224 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %225 unwind label %279

225:                                              ; preds = %222
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %224, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %226 = load i32, ptr %16, align 4, !tbaa !11
  %227 = sub nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %228)
          to label %230 unwind label %283

230:                                              ; preds = %225
  %231 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %29, i32 0, i32 0
  store ptr %229, ptr %231, align 8
  %232 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %233 unwind label %283

233:                                              ; preds = %230
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %232, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %234 = getelementptr inbounds %"struct.std::pair.0", ptr %26, i32 0, i32 1
  %235 = load i64, ptr %234, align 8, !tbaa !15
  %236 = getelementptr inbounds %"struct.std::pair.0", ptr %26, i32 0, i32 1
  %237 = load i64, ptr %236, align 8, !tbaa !15
  %238 = mul nsw i64 %235, %237
  %239 = load i64, ptr %4, align 8, !tbaa !9
  %240 = sub nsw i64 %239, %238
  store i64 %240, ptr %4, align 8, !tbaa !9
  %241 = getelementptr inbounds %"struct.std::pair.0", ptr %28, i32 0, i32 1
  %242 = load i64, ptr %241, align 8, !tbaa !15
  %243 = getelementptr inbounds %"struct.std::pair.0", ptr %28, i32 0, i32 1
  %244 = load i64, ptr %243, align 8, !tbaa !15
  %245 = mul nsw i64 %242, %244
  %246 = load i64, ptr %4, align 8, !tbaa !9
  %247 = sub nsw i64 %246, %245
  store i64 %247, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %248 = getelementptr inbounds %"struct.std::pair.0", ptr %26, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %249 = getelementptr inbounds %"struct.std::pair.0", ptr %26, i32 0, i32 1
  %250 = load i64, ptr %249, align 8, !tbaa !15
  %251 = getelementptr inbounds %"struct.std::pair.0", ptr %28, i32 0, i32 1
  %252 = load i64, ptr %251, align 8, !tbaa !15
  %253 = add nsw i64 %250, %252
  store i64 %253, ptr %31, align 8, !tbaa !9
  %254 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %255 unwind label %287

255:                                              ; preds = %233
  %256 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %257 = extractvalue { i64, i64 } %254, 0
  store i64 %257, ptr %256, align 8
  %258 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %259 = extractvalue { i64, i64 } %254, 1
  store i64 %259, ptr %258, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %260 = getelementptr inbounds %"struct.std::pair.0", ptr %30, i32 0, i32 1
  %261 = load i64, ptr %260, align 8, !tbaa !15
  %262 = getelementptr inbounds %"struct.std::pair.0", ptr %30, i32 0, i32 1
  %263 = load i64, ptr %262, align 8, !tbaa !15
  %264 = mul nsw i64 %261, %263
  %265 = load i64, ptr %4, align 8, !tbaa !9
  %266 = add nsw i64 %265, %264
  store i64 %266, ptr %4, align 8, !tbaa !9
  %267 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %268 unwind label %291

268:                                              ; preds = %255
  %269 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %270 unwind label %291

270:                                              ; preds = %268
  %271 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %272 unwind label %291

272:                                              ; preds = %270
  %273 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
  %274 = extractvalue { ptr, i8 } %271, 0
  store ptr %274, ptr %273, align 8
  %275 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
  %276 = extractvalue { ptr, i8 } %271, 1
  store i8 %276, ptr %275, align 8
  %277 = load i32, ptr %16, align 4, !tbaa !11
  %278 = add nsw i32 %277, -1
  store i32 %278, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %438

279:                                              ; preds = %222, %217
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %297

283:                                              ; preds = %230, %225
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %9, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %296

287:                                              ; preds = %233
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %9, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %295

291:                                              ; preds = %270, %268, %255
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %9, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %10, align 4
  br label %295

295:                                              ; preds = %291, %287
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %296

296:                                              ; preds = %295, %283
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %297

297:                                              ; preds = %296, %279
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %547

298:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %299 = load i32, ptr %18, align 4, !tbaa !11
  %300 = sub nsw i32 %299, 1
  %301 = sext i32 %300 to i64
  %302 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %301)
          to label %303 unwind label %409

303:                                              ; preds = %298
  %304 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %34, i32 0, i32 0
  store ptr %302, ptr %304, align 8
  %305 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %306 unwind label %409

306:                                              ; preds = %303
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %305, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %307 = load i32, ptr %18, align 4, !tbaa !11
  %308 = sext i32 %307 to i64
  %309 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %308)
          to label %310 unwind label %413

310:                                              ; preds = %306
  %311 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %36, i32 0, i32 0
  store ptr %309, ptr %311, align 8
  %312 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %313 unwind label %413

313:                                              ; preds = %310
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %312, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %314 = load i32, ptr %18, align 4, !tbaa !11
  %315 = add nsw i32 %314, 1
  %316 = sext i32 %315 to i64
  %317 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %316)
          to label %318 unwind label %417

318:                                              ; preds = %313
  %319 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %38, i32 0, i32 0
  store ptr %317, ptr %319, align 8
  %320 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %321 unwind label %417

321:                                              ; preds = %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %320, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %322 = getelementptr inbounds %"struct.std::pair.0", ptr %33, i32 0, i32 1
  %323 = load i64, ptr %322, align 8, !tbaa !15
  %324 = getelementptr inbounds %"struct.std::pair.0", ptr %33, i32 0, i32 1
  %325 = load i64, ptr %324, align 8, !tbaa !15
  %326 = mul nsw i64 %323, %325
  %327 = load i64, ptr %4, align 8, !tbaa !9
  %328 = sub nsw i64 %327, %326
  store i64 %328, ptr %4, align 8, !tbaa !9
  %329 = getelementptr inbounds %"struct.std::pair.0", ptr %35, i32 0, i32 1
  %330 = load i64, ptr %329, align 8, !tbaa !15
  %331 = getelementptr inbounds %"struct.std::pair.0", ptr %35, i32 0, i32 1
  %332 = load i64, ptr %331, align 8, !tbaa !15
  %333 = mul nsw i64 %330, %332
  %334 = load i64, ptr %4, align 8, !tbaa !9
  %335 = sub nsw i64 %334, %333
  store i64 %335, ptr %4, align 8, !tbaa !9
  %336 = getelementptr inbounds %"struct.std::pair.0", ptr %37, i32 0, i32 1
  %337 = load i64, ptr %336, align 8, !tbaa !15
  %338 = getelementptr inbounds %"struct.std::pair.0", ptr %37, i32 0, i32 1
  %339 = load i64, ptr %338, align 8, !tbaa !15
  %340 = mul nsw i64 %337, %339
  %341 = load i64, ptr %4, align 8, !tbaa !9
  %342 = sub nsw i64 %341, %340
  store i64 %342, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %343 = getelementptr inbounds %"struct.std::pair.0", ptr %35, i32 0, i32 1
  %344 = load i64, ptr %343, align 8, !tbaa !15
  %345 = sdiv i64 %344, 2
  store i64 %345, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %346 = getelementptr inbounds %"struct.std::pair.0", ptr %35, i32 0, i32 1
  %347 = load i64, ptr %346, align 8, !tbaa !15
  %348 = load i64, ptr %39, align 8, !tbaa !9
  %349 = sub nsw i64 %347, %348
  store i64 %349, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %350 = getelementptr inbounds %"struct.std::pair.0", ptr %33, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %351 = getelementptr inbounds %"struct.std::pair.0", ptr %33, i32 0, i32 1
  %352 = load i64, ptr %351, align 8, !tbaa !15
  %353 = load i64, ptr %39, align 8, !tbaa !9
  %354 = add nsw i64 %352, %353
  store i64 %354, ptr %42, align 8, !tbaa !9
  %355 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %356 unwind label %421

356:                                              ; preds = %321
  %357 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 0
  %358 = extractvalue { i64, i64 } %355, 0
  store i64 %358, ptr %357, align 8
  %359 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 1
  %360 = extractvalue { i64, i64 } %355, 1
  store i64 %360, ptr %359, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %361 = getelementptr inbounds %"struct.std::pair.0", ptr %37, i32 0, i32 0
  %362 = load i64, ptr %361, align 8, !tbaa !17
  %363 = load i64, ptr %40, align 8, !tbaa !9
  %364 = sub nsw i64 %362, %363
  store i64 %364, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %365 = getelementptr inbounds %"struct.std::pair.0", ptr %37, i32 0, i32 1
  %366 = load i64, ptr %365, align 8, !tbaa !15
  %367 = load i64, ptr %40, align 8, !tbaa !9
  %368 = add nsw i64 %366, %367
  store i64 %368, ptr %45, align 8, !tbaa !9
  %369 = invoke { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %370 unwind label %425

370:                                              ; preds = %356
  %371 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 0
  %372 = extractvalue { i64, i64 } %369, 0
  store i64 %372, ptr %371, align 8
  %373 = getelementptr inbounds { i64, i64 }, ptr %43, i32 0, i32 1
  %374 = extractvalue { i64, i64 } %369, 1
  store i64 %374, ptr %373, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  %375 = getelementptr inbounds %"struct.std::pair.0", ptr %41, i32 0, i32 1
  %376 = load i64, ptr %375, align 8, !tbaa !15
  %377 = getelementptr inbounds %"struct.std::pair.0", ptr %41, i32 0, i32 1
  %378 = load i64, ptr %377, align 8, !tbaa !15
  %379 = mul nsw i64 %376, %378
  %380 = load i64, ptr %4, align 8, !tbaa !9
  %381 = add nsw i64 %380, %379
  store i64 %381, ptr %4, align 8, !tbaa !9
  %382 = getelementptr inbounds %"struct.std::pair.0", ptr %43, i32 0, i32 1
  %383 = load i64, ptr %382, align 8, !tbaa !15
  %384 = getelementptr inbounds %"struct.std::pair.0", ptr %43, i32 0, i32 1
  %385 = load i64, ptr %384, align 8, !tbaa !15
  %386 = mul nsw i64 %383, %385
  %387 = load i64, ptr %4, align 8, !tbaa !9
  %388 = add nsw i64 %387, %386
  store i64 %388, ptr %4, align 8, !tbaa !9
  %389 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %390 unwind label %429

390:                                              ; preds = %370
  %391 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %392 unwind label %429

392:                                              ; preds = %390
  %393 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %394 unwind label %429

394:                                              ; preds = %392
  %395 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %396 unwind label %429

396:                                              ; preds = %394
  %397 = getelementptr inbounds { ptr, i8 }, ptr %46, i32 0, i32 0
  %398 = extractvalue { ptr, i8 } %395, 0
  store ptr %398, ptr %397, align 8
  %399 = getelementptr inbounds { ptr, i8 }, ptr %46, i32 0, i32 1
  %400 = extractvalue { ptr, i8 } %395, 1
  store i8 %400, ptr %399, align 8
  %401 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %402 unwind label %429

402:                                              ; preds = %396
  %403 = getelementptr inbounds { ptr, i8 }, ptr %47, i32 0, i32 0
  %404 = extractvalue { ptr, i8 } %401, 0
  store ptr %404, ptr %403, align 8
  %405 = getelementptr inbounds { ptr, i8 }, ptr %47, i32 0, i32 1
  %406 = extractvalue { ptr, i8 } %401, 1
  store i8 %406, ptr %405, align 8
  %407 = load i32, ptr %16, align 4, !tbaa !11
  %408 = add nsw i32 %407, -1
  store i32 %408, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %438

409:                                              ; preds = %303, %298
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %9, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %437

413:                                              ; preds = %310, %306
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %9, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %436

417:                                              ; preds = %318, %313
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %9, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %435

421:                                              ; preds = %321
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %9, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %434

425:                                              ; preds = %356
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %9, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %433

429:                                              ; preds = %396, %394, %392, %390, %370
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %9, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %10, align 4
  br label %433

433:                                              ; preds = %429, %425
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  br label %434

434:                                              ; preds = %433, %421
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %435

435:                                              ; preds = %434, %417
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  br label %436

436:                                              ; preds = %435, %413
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %437

437:                                              ; preds = %436, %409
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %547

438:                                              ; preds = %402, %272
  br label %439

439:                                              ; preds = %438, %178
  br label %540

440:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %441 = load i32, ptr %18, align 4, !tbaa !11
  %442 = sext i32 %441 to i64
  %443 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %442)
          to label %444 unwind label %512

444:                                              ; preds = %440
  %445 = getelementptr inbounds %"class.__gnu_pbds::detail::bin_search_tree_const_it_", ptr %49, i32 0, i32 0
  store ptr %443, ptr %445, align 8
  %446 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %447 unwind label %512

447:                                              ; preds = %444
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %446, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  %448 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 1
  %449 = load i64, ptr %448, align 8, !tbaa !15
  %450 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 1
  %451 = load i64, ptr %450, align 8, !tbaa !15
  %452 = mul nsw i64 %449, %451
  %453 = load i64, ptr %4, align 8, !tbaa !9
  %454 = sub nsw i64 %453, %452
  store i64 %454, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  invoke void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %455 unwind label %516

455:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #8
  invoke void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %456 unwind label %520

456:                                              ; preds = %455
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %457 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 1
  %458 = load i64, ptr %457, align 8, !tbaa !15
  %459 = sdiv i64 %458, 2
  store i64 %459, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %460 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 1
  %461 = load i64, ptr %460, align 8, !tbaa !15
  %462 = load i64, ptr %52, align 8, !tbaa !9
  %463 = sub nsw i64 %461, %462
  store i64 %463, ptr %53, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #8
  %464 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 0
  %465 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %464, ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %466 unwind label %524

466:                                              ; preds = %456
  %467 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 0
  %468 = extractvalue { i64, i64 } %465, 0
  store i64 %468, ptr %467, align 8
  %469 = getelementptr inbounds { i64, i64 }, ptr %54, i32 0, i32 1
  %470 = extractvalue { i64, i64 } %465, 1
  store i64 %470, ptr %469, align 8
  %471 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %54) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %472 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 0
  %473 = load i64, ptr %472, align 8, !tbaa !17
  %474 = getelementptr inbounds %"struct.std::pair.0", ptr %48, i32 0, i32 1
  %475 = load i64, ptr %474, align 8, !tbaa !15
  %476 = add nsw i64 %473, %475
  %477 = load i64, ptr %53, align 8, !tbaa !9
  %478 = sub nsw i64 %476, %477
  store i64 %478, ptr %56, align 8, !tbaa !9
  %479 = invoke { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %480 unwind label %528

480:                                              ; preds = %466
  %481 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 0
  %482 = extractvalue { i64, i64 } %479, 0
  store i64 %482, ptr %481, align 8
  %483 = getelementptr inbounds { i64, i64 }, ptr %55, i32 0, i32 1
  %484 = extractvalue { i64, i64 } %479, 1
  store i64 %484, ptr %483, align 8
  %485 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  %486 = load i64, ptr %52, align 8, !tbaa !9
  %487 = load i64, ptr %52, align 8, !tbaa !9
  %488 = mul nsw i64 %486, %487
  %489 = load i64, ptr %4, align 8, !tbaa !9
  %490 = add nsw i64 %489, %488
  store i64 %490, ptr %4, align 8, !tbaa !9
  %491 = load i64, ptr %53, align 8, !tbaa !9
  %492 = load i64, ptr %53, align 8, !tbaa !9
  %493 = mul nsw i64 %491, %492
  %494 = load i64, ptr %4, align 8, !tbaa !9
  %495 = add nsw i64 %494, %493
  store i64 %495, ptr %4, align 8, !tbaa !9
  %496 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %497 unwind label %532

497:                                              ; preds = %480
  %498 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %499 unwind label %532

499:                                              ; preds = %497
  %500 = getelementptr inbounds { ptr, i8 }, ptr %57, i32 0, i32 0
  %501 = extractvalue { ptr, i8 } %498, 0
  store ptr %501, ptr %500, align 8
  %502 = getelementptr inbounds { ptr, i8 }, ptr %57, i32 0, i32 1
  %503 = extractvalue { ptr, i8 } %498, 1
  store i8 %503, ptr %502, align 8
  %504 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %505 unwind label %532

505:                                              ; preds = %499
  %506 = getelementptr inbounds { ptr, i8 }, ptr %58, i32 0, i32 0
  %507 = extractvalue { ptr, i8 } %504, 0
  store ptr %507, ptr %506, align 8
  %508 = getelementptr inbounds { ptr, i8 }, ptr %58, i32 0, i32 1
  %509 = extractvalue { ptr, i8 } %504, 1
  store i8 %509, ptr %508, align 8
  %510 = load i32, ptr %16, align 4, !tbaa !11
  %511 = add nsw i32 %510, 1
  store i32 %511, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #8
  br label %540

512:                                              ; preds = %444, %440
  %513 = landingpad { ptr, i32 }
          cleanup
  %514 = extractvalue { ptr, i32 } %513, 0
  store ptr %514, ptr %9, align 8
  %515 = extractvalue { ptr, i32 } %513, 1
  store i32 %515, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  br label %539

516:                                              ; preds = %447
  %517 = landingpad { ptr, i32 }
          cleanup
  %518 = extractvalue { ptr, i32 } %517, 0
  store ptr %518, ptr %9, align 8
  %519 = extractvalue { ptr, i32 } %517, 1
  store i32 %519, ptr %10, align 4
  br label %538

520:                                              ; preds = %455
  %521 = landingpad { ptr, i32 }
          cleanup
  %522 = extractvalue { ptr, i32 } %521, 0
  store ptr %522, ptr %9, align 8
  %523 = extractvalue { ptr, i32 } %521, 1
  store i32 %523, ptr %10, align 4
  br label %537

524:                                              ; preds = %456
  %525 = landingpad { ptr, i32 }
          cleanup
  %526 = extractvalue { ptr, i32 } %525, 0
  store ptr %526, ptr %9, align 8
  %527 = extractvalue { ptr, i32 } %525, 1
  store i32 %527, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  br label %536

528:                                              ; preds = %466
  %529 = landingpad { ptr, i32 }
          cleanup
  %530 = extractvalue { ptr, i32 } %529, 0
  store ptr %530, ptr %9, align 8
  %531 = extractvalue { ptr, i32 } %529, 1
  store i32 %531, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #8
  br label %536

532:                                              ; preds = %499, %497, %480
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %9, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %10, align 4
  br label %536

536:                                              ; preds = %532, %528, %524
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  br label %537

537:                                              ; preds = %536, %520
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #8
  br label %538

538:                                              ; preds = %537, %516
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  br label %539

539:                                              ; preds = %538, %512
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #8
  br label %547

540:                                              ; preds = %505, %439
  %541 = load i64, ptr %4, align 8, !tbaa !9
  %542 = load i32, ptr %15, align 4, !tbaa !11
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds [100005 x i64], ptr %14, i64 0, i64 %543
  store i64 %541, ptr %544, align 8, !tbaa !9
  %545 = load i32, ptr %15, align 4, !tbaa !11
  %546 = add nsw i32 %545, 1
  store i32 %546, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %115, !llvm.loop !18

547:                                              ; preds = %539, %437, %297, %211, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %570

548:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  store i32 0, ptr %59, align 4, !tbaa !11
  br label %549

549:                                              ; preds = %561, %548
  %550 = load i32, ptr %59, align 4, !tbaa !11
  %551 = load i32, ptr %15, align 4, !tbaa !11
  %552 = icmp slt i32 %550, %551
  br i1 %552, label %554, label %553

553:                                              ; preds = %549
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  br label %568

554:                                              ; preds = %549
  %555 = load i32, ptr %59, align 4, !tbaa !11
  %556 = sext i32 %555 to i64
  %557 = getelementptr inbounds [100005 x i64], ptr %14, i64 0, i64 %556
  %558 = load i64, ptr %557, align 8, !tbaa !9
  %559 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %558)
          to label %560 unwind label %564

560:                                              ; preds = %554
  br label %561

561:                                              ; preds = %560
  %562 = load i32, ptr %59, align 4, !tbaa !11
  %563 = add nsw i32 %562, 1
  store i32 %563, ptr %59, align 4, !tbaa !11
  br label %549, !llvm.loop !19

564:                                              ; preds = %554
  %565 = landingpad { ptr, i32 }
          cleanup
  %566 = extractvalue { ptr, i32 } %565, 0
  store ptr %566, ptr %9, align 8
  %567 = extractvalue { ptr, i32 } %565, 1
  store i32 %567, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  br label %570

568:                                              ; preds = %553
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %569 = load i32, ptr %1, align 4
  ret i32 %569

570:                                              ; preds = %564, %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr %14) #8
  br label %571

571:                                              ; preds = %570, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %572

572:                                              ; preds = %571, %104
  call void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %573

573:                                              ; preds = %572
  %574 = load ptr, ptr %9, align 8
  %575 = load i32, ptr %10, align 4
  %576 = insertvalue { ptr, i32 } poison, ptr %574, 0
  %577 = insertvalue { ptr, i32 } %576, i32 %575, 1
  resume { ptr, i32 } %577
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds4treeISt4pairIxxENS_9null_typeESt4lessIS2_ENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSSt4pairIxxE", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.__gnu_pbds::tree" = type { %"class.__gnu_pbds::basic_branch" }
%"class.__gnu_pbds::basic_branch" = type { %"class.__gnu_pbds::detail::rb_tree_set" }
%"class.__gnu_pbds::detail::rb_tree_set" = type { %"class.__gnu_pbds::detail::bin_search_tree_set" }
%"class.__gnu_pbds::detail::bin_search_tree_set" = type { %"class.__gnu_pbds::tree_order_statistics_node_update", [8 x i8], ptr, i64 }
%"class.__gnu_pbds::tree_order_statistics_node_update" = type { %"struct.__gnu_pbds::detail::branch_policy" }
%"struct.__gnu_pbds::detail::branch_policy" = type { ptr }
%"struct.std::pair.0" = type { i64, i64 }
%"class.__gnu_pbds::detail::bin_search_tree_const_it_" = type { ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca %"class.__gnu_pbds::tree", align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::pair.0", align 8
  %7 = alloca i32, align 4
  %8 = alloca [100005 x i64], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.0", align 8
  %12 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %13 = alloca %"struct.std::pair.0", align 8
  %14 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %15 = alloca %"struct.std::pair.0", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::pair.0", align 8
  %18 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %19 = alloca %"struct.std::pair.0", align 8
  %20 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %21 = alloca %"struct.std::pair.0", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::pair.0", align 8
  %24 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %25 = alloca %"struct.std::pair.0", align 8
  %26 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %27 = alloca %"struct.std::pair.0", align 8
  %28 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %29 = alloca %"struct.std::pair.0", align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.std::pair.0", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca %"struct.std::pair.0", align 8
  %35 = alloca %"class.__gnu_pbds::detail::bin_search_tree_const_it_", align 8
  %36 = alloca %"struct.std::pair.0", align 8
  %37 = alloca %"struct.std::pair.0", align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca %"struct.std::pair.0", align 8
  %41 = alloca %"struct.std::pair.0", align 8
  %42 = alloca i64, align 8
  %43 = load ptr, ptr @stdin, align 8, !tbaa !5
  %44 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %45)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 0, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  call void @_ZN10__gnu_pbds4treeISt4pairIxxENS_9null_typeESt4lessIS2_ENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %48 = load i32, ptr %1, align 4, !tbaa !11
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %50 = getelementptr inbounds i8, ptr %6, i64 8
  br label %69

._crit_edge:                                      ; preds = %77, %0
  %.052.lcssa = phi i64 [ 0, %0 ], [ %80, %77 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %8) #9
  store i64 %.052.lcssa, ptr %8, align 16, !tbaa !9
  %52 = load i32, ptr %1, align 4, !tbaa !11
  %53 = load i32, ptr %7, align 4, !tbaa !11
  %54 = add nsw i32 %53, -1
  store i32 %54, ptr %7, align 4, !tbaa !11
  %.not137 = icmp eq i32 %53, 0
  br i1 %.not137, label %.preheader, label %.lr.ph142

.lr.ph142:                                        ; preds = %._crit_edge
  %55 = getelementptr inbounds i8, ptr %34, i64 8
  %56 = getelementptr inbounds i8, ptr %40, i64 8
  %57 = getelementptr inbounds i8, ptr %41, i64 8
  %58 = getelementptr inbounds i8, ptr %23, i64 8
  %59 = getelementptr inbounds i8, ptr %25, i64 8
  %60 = getelementptr inbounds i8, ptr %27, i64 8
  %61 = getelementptr inbounds i8, ptr %29, i64 8
  %62 = getelementptr inbounds i8, ptr %31, i64 8
  %63 = getelementptr inbounds i8, ptr %17, i64 8
  %64 = getelementptr inbounds i8, ptr %19, i64 8
  %65 = getelementptr inbounds i8, ptr %21, i64 8
  %66 = getelementptr inbounds i8, ptr %11, i64 8
  %67 = getelementptr inbounds i8, ptr %13, i64 8
  %68 = getelementptr inbounds i8, ptr %15, i64 8
  br label %92

69:                                               ; preds = %.lr.ph, %77
  %.052136 = phi i64 [ 0, %.lr.ph ], [ %80, %77 ]
  %.053135 = phi i32 [ 0, %.lr.ph ], [ %83, %77 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %71 unwind label %86

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  %72 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %73 unwind label %88

73:                                               ; preds = %71
  %74 = extractvalue { i64, i64 } %72, 0
  store i64 %74, ptr %6, align 8
  %75 = extractvalue { i64, i64 } %72, 1
  store i64 %75, ptr %50, align 8
  %76 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %77 unwind label %88

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  %78 = load i64, ptr %5, align 8, !tbaa !9
  %79 = mul nsw i64 %78, %78
  %80 = add nuw nsw i64 %79, %.052136
  %81 = load i64, ptr %3, align 8, !tbaa !9
  %82 = add nsw i64 %81, %78
  store i64 %82, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  %83 = add nuw nsw i32 %.053135, 1
  %84 = load i32, ptr %1, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %69, label %._crit_edge, !llvm.loop !13

86:                                               ; preds = %69
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %73, %71
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %90

90:                                               ; preds = %88, %86
  %.pn95 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %302

.preheader.loopexit:                              ; preds = %292
  %91 = and i64 %indvars.iv.next, 4294967295
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %._crit_edge
  %.073.lcssa = phi i64 [ 1, %._crit_edge ], [ %91, %.preheader.loopexit ]
  br label %298

92:                                               ; preds = %.lr.ph142, %292
  %indvars.iv = phi i64 [ 1, %.lr.ph142 ], [ %indvars.iv.next, %292 ]
  %.1140 = phi i64 [ %.052.lcssa, %.lr.ph142 ], [ %.2, %292 ]
  %.074138 = phi i32 [ %52, %.lr.ph142 ], [ %.175, %292 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  %93 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %94 = load i32, ptr %10, align 4, !tbaa !11
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %10, align 4, !tbaa !11
  %96 = load i32, ptr %9, align 4, !tbaa !11
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %243

98:                                               ; preds = %92
  %99 = icmp eq i32 %95, 0
  br i1 %99, label %100, label %135

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %101 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 0)
          to label %102 unwind label %124

102:                                              ; preds = %100
  store ptr %101, ptr %12, align 8
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %103, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %104 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 1)
          to label %105 unwind label %126

105:                                              ; preds = %102
  store ptr %104, ptr %14, align 8
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %106, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  %107 = load i64, ptr %66, align 8, !tbaa !15
  %108 = load i64, ptr %67, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %109 = add nsw i64 %108, %107
  store i64 %109, ptr %16, align 8, !tbaa !9
  %110 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %111 unwind label %128

111:                                              ; preds = %105
  %.neg110 = mul i64 %107, %107
  %.neg111 = mul i64 %108, %108
  %112 = extractvalue { i64, i64 } %110, 0
  store i64 %112, ptr %15, align 8
  %113 = extractvalue { i64, i64 } %110, 1
  store i64 %113, ptr %68, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  %114 = mul nsw i64 %113, %113
  %reass.add113 = add i64 %.neg111, %.neg110
  %115 = sub i64 %.1140, %reass.add113
  %116 = add i64 %115, %114
  %117 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %118 unwind label %130

118:                                              ; preds = %111
  %119 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %120 unwind label %130

120:                                              ; preds = %118
  %121 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %122 unwind label %130

122:                                              ; preds = %120
  %123 = add nsw i32 %.074138, -1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %292

124:                                              ; preds = %100
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %134

126:                                              ; preds = %102
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br label %133

128:                                              ; preds = %105
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %132

130:                                              ; preds = %120, %118, %111
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %132

132:                                              ; preds = %130, %128
  %.pn90 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  br label %133

133:                                              ; preds = %132, %126
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %132 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %134

134:                                              ; preds = %133, %124
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %133 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %296

135:                                              ; preds = %98
  %136 = add nsw i32 %.074138, -1
  %137 = icmp eq i32 %94, %.074138
  br i1 %137, label %138, label %175

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %139 = add nsw i32 %.074138, -2
  %140 = sext i32 %139 to i64
  %141 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %140)
          to label %142 unwind label %164

142:                                              ; preds = %138
  store ptr %141, ptr %18, align 8
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %143, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %144 = sext i32 %136 to i64
  %145 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %144)
          to label %146 unwind label %166

146:                                              ; preds = %142
  store ptr %145, ptr %20, align 8
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %147, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  %148 = load i64, ptr %63, align 8, !tbaa !15
  %149 = load i64, ptr %64, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %150 = add nsw i64 %149, %148
  store i64 %150, ptr %22, align 8, !tbaa !9
  %151 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %152 unwind label %168

152:                                              ; preds = %146
  %.neg105 = mul i64 %148, %148
  %.neg106 = mul i64 %149, %149
  %153 = extractvalue { i64, i64 } %151, 0
  store i64 %153, ptr %21, align 8
  %154 = extractvalue { i64, i64 } %151, 1
  store i64 %154, ptr %65, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  %155 = mul nsw i64 %154, %154
  %reass.add108 = add i64 %.neg106, %.neg105
  %156 = sub i64 %.1140, %reass.add108
  %157 = add i64 %156, %155
  %158 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %159 unwind label %170

159:                                              ; preds = %152
  %160 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %161 unwind label %170

161:                                              ; preds = %159
  %162 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %163 unwind label %170

163:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %292

164:                                              ; preds = %138
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %174

166:                                              ; preds = %142
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br label %173

168:                                              ; preds = %146
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  br label %172

170:                                              ; preds = %161, %159, %152
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %172

172:                                              ; preds = %170, %168
  %.pn86 = phi { ptr, i32 } [ %171, %170 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %173

173:                                              ; preds = %172, %166
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %172 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %174

174:                                              ; preds = %173, %164
  %.pn86.pn.pn = phi { ptr, i32 } [ %.pn86.pn, %173 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %296

175:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  %176 = add nsw i32 %94, -2
  %177 = sext i32 %176 to i64
  %178 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %177)
          to label %179 unwind label %226

179:                                              ; preds = %175
  store ptr %178, ptr %24, align 8
  %180 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %180, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %181 = load i32, ptr %10, align 4, !tbaa !11
  %182 = sext i32 %181 to i64
  %183 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %182)
          to label %184 unwind label %228

184:                                              ; preds = %179
  store ptr %183, ptr %26, align 8
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %185, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #9
  %186 = load i32, ptr %10, align 4, !tbaa !11
  %187 = add nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %188)
          to label %190 unwind label %230

190:                                              ; preds = %184
  store ptr %189, ptr %28, align 8
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %191, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  %192 = load i64, ptr %58, align 8, !tbaa !15
  %193 = load i64, ptr %59, align 8, !tbaa !15
  %194 = load i64, ptr %60, align 8, !tbaa !15
  %.neg99 = mul i64 %192, %192
  %.neg100 = mul i64 %193, %193
  %.neg102 = mul i64 %194, %194
  %195 = sdiv i64 %193, 2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #9
  %196 = add nsw i64 %195, %192
  store i64 %196, ptr %30, align 8, !tbaa !9
  %197 = invoke { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %198 unwind label %232

198:                                              ; preds = %190
  %199 = sub nsw i64 %193, %195
  %200 = extractvalue { i64, i64 } %197, 0
  store i64 %200, ptr %29, align 8
  %201 = extractvalue { i64, i64 } %197, 1
  store i64 %201, ptr %61, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #9
  %202 = load i64, ptr %27, align 8, !tbaa !17
  %203 = sub nsw i64 %202, %199
  store i64 %203, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #9
  %204 = load i64, ptr %60, align 8, !tbaa !15
  %205 = add nsw i64 %204, %199
  store i64 %205, ptr %33, align 8, !tbaa !9
  %206 = invoke { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %207 unwind label %234

207:                                              ; preds = %198
  %208 = extractvalue { i64, i64 } %206, 0
  store i64 %208, ptr %31, align 8
  %209 = extractvalue { i64, i64 } %206, 1
  store i64 %209, ptr %62, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #9
  %210 = load i64, ptr %61, align 8, !tbaa !15
  %211 = mul nsw i64 %210, %210
  %212 = mul nsw i64 %209, %209
  %reass.add = add i64 %.neg100, %.neg99
  %reass.add104 = add i64 %reass.add, %.neg102
  %213 = sub i64 %.1140, %reass.add104
  %214 = add i64 %213, %212
  %215 = add i64 %214, %211
  %216 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %217 unwind label %236

217:                                              ; preds = %207
  %218 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %219 unwind label %236

219:                                              ; preds = %217
  %220 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %221 unwind label %236

221:                                              ; preds = %219
  %222 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %223 unwind label %236

223:                                              ; preds = %221
  %224 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %225 unwind label %236

225:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #9
  br label %292

226:                                              ; preds = %175
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  br label %242

228:                                              ; preds = %179
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br label %241

230:                                              ; preds = %184
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  br label %240

232:                                              ; preds = %190
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  br label %239

234:                                              ; preds = %198
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #9
  br label %238

236:                                              ; preds = %223, %221, %219, %217, %207
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %238

238:                                              ; preds = %236, %234
  %.pn80 = phi { ptr, i32 } [ %237, %236 ], [ %235, %234 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  br label %239

239:                                              ; preds = %238, %232
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %238 ], [ %233, %232 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #9
  br label %240

240:                                              ; preds = %239, %230
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %239 ], [ %231, %230 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #9
  br label %241

241:                                              ; preds = %240, %228
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %240 ], [ %229, %228 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #9
  br label %242

242:                                              ; preds = %241, %226
  %.pn80.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn.pn, %241 ], [ %227, %226 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #9
  br label %296

243:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #9
  %244 = sext i32 %95 to i64
  %245 = invoke ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %244)
          to label %246 unwind label %282

246:                                              ; preds = %243
  store ptr %245, ptr %35, align 8
  %247 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %247, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #9
  %248 = load i64, ptr %55, align 8, !tbaa !15
  %249 = mul nsw i64 %248, %248
  %250 = sub i64 %.1140, %249
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #9
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #9
  call void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #9
  %251 = load i64, ptr %55, align 8, !tbaa !15
  %252 = sdiv i64 %251, 2
  store i64 %252, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #9
  %253 = sub nsw i64 %251, %252
  store i64 %253, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #9
  %254 = invoke { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %255 unwind label %284

255:                                              ; preds = %246
  %256 = extractvalue { i64, i64 } %254, 0
  store i64 %256, ptr %40, align 8
  %257 = extractvalue { i64, i64 } %254, 1
  store i64 %257, ptr %56, align 8
  %258 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %40) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %41) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #9
  %259 = load i64, ptr %34, align 8, !tbaa !17
  %260 = load i64, ptr %55, align 8, !tbaa !15
  %261 = add nsw i64 %260, %259
  %262 = load i64, ptr %39, align 8, !tbaa !9
  %263 = sub i64 %261, %262
  store i64 %263, ptr %42, align 8, !tbaa !9
  %264 = invoke { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %265 unwind label %286

265:                                              ; preds = %255
  %266 = extractvalue { i64, i64 } %264, 0
  store i64 %266, ptr %41, align 8
  %267 = extractvalue { i64, i64 } %264, 1
  store i64 %267, ptr %57, align 8
  %268 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #9
  %269 = load i64, ptr %38, align 8, !tbaa !9
  %270 = mul nsw i64 %269, %269
  %271 = add nsw i64 %250, %270
  %272 = load i64, ptr %39, align 8, !tbaa !9
  %273 = mul nsw i64 %272, %272
  %274 = add nsw i64 %271, %273
  %275 = invoke noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %276 unwind label %288

276:                                              ; preds = %265
  %277 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %278 unwind label %288

278:                                              ; preds = %276
  %279 = invoke { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %280 unwind label %288

280:                                              ; preds = %278
  %281 = add nsw i32 %.074138, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #9
  br label %292

282:                                              ; preds = %243
  %283 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #9
  br label %291

284:                                              ; preds = %246
  %285 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  br label %290

286:                                              ; preds = %255
  %287 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #9
  br label %290

288:                                              ; preds = %278, %276, %265
  %289 = landingpad { ptr, i32 }
          cleanup
  br label %290

290:                                              ; preds = %288, %286, %284
  %.pn = phi { ptr, i32 } [ %289, %288 ], [ %287, %286 ], [ %285, %284 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #9
  br label %291

291:                                              ; preds = %290, %282
  %.pn.pn = phi { ptr, i32 } [ %.pn, %290 ], [ %283, %282 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #9
  br label %296

292:                                              ; preds = %122, %225, %163, %280
  %.175 = phi i32 [ %123, %122 ], [ %136, %163 ], [ %136, %225 ], [ %281, %280 ]
  %.2 = phi i64 [ %116, %122 ], [ %157, %163 ], [ %215, %225 ], [ %274, %280 ]
  %293 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv
  store i64 %.2, ptr %293, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  %294 = load i32, ptr %7, align 4, !tbaa !11
  %295 = add nsw i32 %294, -1
  store i32 %295, ptr %7, align 4, !tbaa !11
  %.not = icmp eq i32 %294, 0
  br i1 %.not, label %.preheader.loopexit, label %92, !llvm.loop !18

296:                                              ; preds = %291, %242, %174, %134
  %.pn90.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn, %134 ], [ %.pn86.pn.pn, %174 ], [ %.pn80.pn.pn.pn.pn, %242 ], [ %.pn.pn, %291 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %302

297:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0

298:                                              ; preds = %.preheader, %298
  %indvars.iv147 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next148, %298 ]
  %299 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv147
  %300 = load i64, ptr %299, align 8, !tbaa !9
  %301 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %300)
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next148, %.073.lcssa
  br i1 %exitcond.not, label %297, label %298, !llvm.loop !19

302:                                              ; preds = %296, %90
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %90 ], [ %.pn90.pn.pn.pn, %296 ]
  call void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn95.pn
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10__gnu_pbds4treeISt4pairIxxENS_9null_typeESt4lessIS2_ENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN10__gnu_pbds33tree_order_statistics_node_updateINS_6detail30bin_search_tree_const_node_it_INS1_13rb_tree_node_ISt4pairIxxEmSaIcEEENS1_25bin_search_tree_const_it_IPS7_S5_PS5_PKS5_RS5_RSB_Lb1ES6_EESF_S6_EESG_St4lessIS5_ES6_E13find_by_orderEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10__gnu_pbds6detail25bin_search_tree_const_it_IPNS0_13rb_tree_node_ISt4pairIxxEmSaIcEEES4_PS4_PKS4_RS4_RS9_Lb1ES5_EdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10__gnu_pbds6detail11rb_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_E5eraseERKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IxxTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10__gnu_pbds6detail19bin_search_tree_setISt4pairIxxENS_9null_typeESt4lessIS3_ENS0_11tree_traitsIS3_S4_S6_NS_33tree_order_statistics_node_updateENS_11rb_tree_tagESaIcEEESA_ED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #8 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSSt4pairIxxE", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass