; LLVM IR from tangjz/acm-icpc :: codeforces/complete/475F.ll (Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::pair" = type { i32, i32 }
%"struct.std::pair.0" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"class.std::set", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"class.std::reverse_iterator", align 8
  %11 = alloca %"class.std::reverse_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair.0", align 8
  %19 = alloca %"struct.std::pair.0", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair", align 4
  %23 = alloca %"class.std::reverse_iterator", align 8
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca %"struct.std::pair.0", align 8
  %26 = alloca %"struct.std::pair.0", align 8
  %27 = alloca %"class.std::reverse_iterator", align 8
  %28 = alloca %"struct.std::pair", align 4
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::pair", align 4
  %31 = alloca %"struct.std::pair.0", align 8
  %32 = alloca %"struct.std::pair.0", align 8
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca %"struct.std::pair", align 4
  %35 = alloca %"class.std::reverse_iterator", align 8
  %36 = alloca %"struct.std::pair", align 4
  %37 = alloca %"struct.std::pair.0", align 8
  %38 = alloca %"struct.std::pair.0", align 8
  %39 = alloca %"class.std::reverse_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %40) #5
  %42 = icmp eq i64 %41, 1
  br i1 %42, label %43, label %44

43:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  br label %361

44:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %45) #5
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %48) #5
  %50 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %9, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(48) %51) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %52) #5
  br label %53

53:                                               ; preds = %352, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %54 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %55 = getelementptr inbounds %"struct.std::pair", ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %12, align 4, !tbaa !12
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %58 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #5
  %59 = getelementptr inbounds %"struct.std::pair", ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !12
  %62 = sub nsw i32 %60, %61
  %63 = icmp sgt i32 %62, 1
  br i1 %63, label %64, label %126

64:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %65) #5
  %67 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %68, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %69

69:                                               ; preds = %104, %64
  %70 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 0
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !12
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %114

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %76 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 1
  %77 = getelementptr inbounds %"struct.std::pair", ptr %13, i32 0, i32 0
  %78 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %76, ptr noundef nonnull align 4 dereferenceable(4) %77)
          to label %79 unwind label %105

79:                                               ; preds = %75
  store i64 %78, ptr %15, align 4
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %80, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %82 unwind label %105

82:                                               ; preds = %79
  %83 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %84 unwind label %105

84:                                               ; preds = %82
  %85 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %86 = extractvalue { ptr, i8 } %83, 0
  store ptr %86, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %88 = extractvalue { ptr, i8 } %83, 1
  store i8 %88, ptr %87, align 8
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %89, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %91 unwind label %105

91:                                               ; preds = %84
  %92 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %93 unwind label %105

93:                                               ; preds = %91
  %94 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %95 = extractvalue { ptr, i8 } %92, 0
  store ptr %95, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %97 = extractvalue { ptr, i8 } %92, 1
  store i8 %97, ptr %96, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %98

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %99) #5
  %101 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  %102 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %103 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %102)
          to label %104 unwind label %109

104:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %69, !llvm.loop !13

105:                                              ; preds = %91, %84, %82, %79, %75
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %16, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %113

109:                                              ; preds = %98
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %16, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %113

113:                                              ; preds = %109, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %354

114:                                              ; preds = %74
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %115, ptr noundef nonnull align 8 dereferenceable(48) %116)
          to label %118 unwind label %122

118:                                              ; preds = %114
  %119 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %120 unwind label %122

120:                                              ; preds = %118
  %121 = add nsw i32 %117, %119
  store i32 %121, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %344

122:                                              ; preds = %339, %335, %276, %271, %269, %265, %261, %196, %192, %133, %128, %126, %118, %114
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %16, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %17, align 4
  br label %354

126:                                              ; preds = %53
  %127 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %128 unwind label %122

128:                                              ; preds = %126
  %129 = getelementptr inbounds %"struct.std::pair", ptr %127, i32 0, i32 0
  %130 = load i32, ptr %129, align 4, !tbaa !9
  store i32 %130, ptr %12, align 4, !tbaa !12
  %131 = load i32, ptr %12, align 4, !tbaa !12
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %133 unwind label %122

133:                                              ; preds = %128
  %134 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %135 unwind label %122

135:                                              ; preds = %133
  %136 = getelementptr inbounds %"struct.std::pair", ptr %134, i32 0, i32 0
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = sub nsw i32 %131, %137
  %139 = icmp sgt i32 %138, 1
  br i1 %139, label %140, label %200

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %141) #5
  %142 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %143 unwind label %150

143:                                              ; preds = %140
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %142, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %144

144:                                              ; preds = %182, %143
  %145 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !12
  %148 = icmp sge i32 %146, %147
  br i1 %148, label %154, label %149

149:                                              ; preds = %144
  store i32 7, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %192

150:                                              ; preds = %140
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %16, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %191

154:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %155 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 1
  %156 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 0
  %157 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %155, ptr noundef nonnull align 4 dereferenceable(4) %156)
          to label %158 unwind label %183

158:                                              ; preds = %154
  store i64 %157, ptr %24, align 4
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %159, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %161 unwind label %183

161:                                              ; preds = %158
  %162 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %163 unwind label %183

163:                                              ; preds = %161
  %164 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %165 = extractvalue { ptr, i8 } %162, 0
  store ptr %165, ptr %164, align 8
  %166 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %167 = extractvalue { ptr, i8 } %162, 1
  store i8 %167, ptr %166, align 8
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %168, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %170 unwind label %183

170:                                              ; preds = %163
  %171 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %172 unwind label %183

172:                                              ; preds = %170
  %173 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %174 = extractvalue { ptr, i8 } %171, 0
  store ptr %174, ptr %173, align 8
  %175 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %176 = extractvalue { ptr, i8 } %171, 1
  store i8 %176, ptr %175, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %177

177:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %27, ptr noundef nonnull align 8 dereferenceable(48) %178) #5
  %179 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %180 unwind label %187

180:                                              ; preds = %177
  %181 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %179)
          to label %182 unwind label %187

182:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %144, !llvm.loop !15

183:                                              ; preds = %170, %163, %161, %158, %154
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %16, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %191

187:                                              ; preds = %180, %177
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %16, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %191

191:                                              ; preds = %187, %183, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %354

192:                                              ; preds = %149
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %193, ptr noundef nonnull align 8 dereferenceable(48) %194)
          to label %196 unwind label %122

196:                                              ; preds = %192
  %197 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %198 unwind label %122

198:                                              ; preds = %196
  %199 = add nsw i32 %195, %197
  store i32 %199, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %344

200:                                              ; preds = %135
  %201 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %202 = getelementptr inbounds %"struct.std::pair", ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !9
  store i32 %203, ptr %12, align 4, !tbaa !12
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %205 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %204) #5
  %206 = getelementptr inbounds %"struct.std::pair", ptr %205, i32 0, i32 0
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = load i32, ptr %12, align 4, !tbaa !12
  %209 = sub nsw i32 %207, %208
  %210 = icmp sgt i32 %209, 1
  br i1 %210, label %211, label %269

211:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %212) #5
  %214 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  %215 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %215, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %216

216:                                              ; preds = %251, %211
  %217 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !12
  %220 = icmp sle i32 %218, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %216
  store i32 10, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %261

222:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %223 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 1
  %224 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 0
  %225 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %223, ptr noundef nonnull align 4 dereferenceable(4) %224)
          to label %226 unwind label %252

226:                                              ; preds = %222
  store i64 %225, ptr %30, align 4
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %227, ptr noundef nonnull align 4 dereferenceable(8) %28)
          to label %229 unwind label %252

229:                                              ; preds = %226
  %230 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(8) %28)
          to label %231 unwind label %252

231:                                              ; preds = %229
  %232 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %233 = extractvalue { ptr, i8 } %230, 0
  store ptr %233, ptr %232, align 8
  %234 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %235 = extractvalue { ptr, i8 } %230, 1
  store i8 %235, ptr %234, align 8
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %236, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %238 unwind label %252

238:                                              ; preds = %231
  %239 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %240 unwind label %252

240:                                              ; preds = %238
  %241 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
  %242 = extractvalue { ptr, i8 } %239, 0
  store ptr %242, ptr %241, align 8
  %243 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
  %244 = extractvalue { ptr, i8 } %239, 1
  store i8 %244, ptr %243, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %245

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %246) #5
  %248 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %33, i32 0, i32 0
  store ptr %247, ptr %248, align 8
  %249 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  %250 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %249)
          to label %251 unwind label %256

251:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %216, !llvm.loop !16

252:                                              ; preds = %238, %231, %229, %226, %222
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %16, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %260

256:                                              ; preds = %245
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %16, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %260

260:                                              ; preds = %256, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %354

261:                                              ; preds = %221
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %262, ptr noundef nonnull align 8 dereferenceable(48) %263)
          to label %265 unwind label %122

265:                                              ; preds = %261
  %266 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %267 unwind label %122

267:                                              ; preds = %265
  %268 = add nsw i32 %264, %266
  store i32 %268, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %344

269:                                              ; preds = %200
  %270 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %271 unwind label %122

271:                                              ; preds = %269
  %272 = getelementptr inbounds %"struct.std::pair", ptr %270, i32 0, i32 0
  %273 = load i32, ptr %272, align 4, !tbaa !9
  store i32 %273, ptr %12, align 4, !tbaa !12
  %274 = load i32, ptr %12, align 4, !tbaa !12
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %276 unwind label %122

276:                                              ; preds = %271
  %277 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %275)
          to label %278 unwind label %122

278:                                              ; preds = %276
  %279 = getelementptr inbounds %"struct.std::pair", ptr %277, i32 0, i32 0
  %280 = load i32, ptr %279, align 4, !tbaa !9
  %281 = sub nsw i32 %274, %280
  %282 = icmp sgt i32 %281, 1
  br i1 %282, label %283, label %343

283:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %35, ptr noundef nonnull align 8 dereferenceable(48) %284) #5
  %285 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %286 unwind label %293

286:                                              ; preds = %283
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %285, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %287

287:                                              ; preds = %325, %286
  %288 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = load i32, ptr %12, align 4, !tbaa !12
  %291 = icmp sge i32 %289, %290
  br i1 %291, label %297, label %292

292:                                              ; preds = %287
  store i32 13, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %335

293:                                              ; preds = %283
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %16, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %334

297:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %298 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 1
  %299 = getelementptr inbounds %"struct.std::pair", ptr %34, i32 0, i32 0
  %300 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %298, ptr noundef nonnull align 4 dereferenceable(4) %299)
          to label %301 unwind label %326

301:                                              ; preds = %297
  store i64 %300, ptr %36, align 4
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %302, ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %304 unwind label %326

304:                                              ; preds = %301
  %305 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %306 unwind label %326

306:                                              ; preds = %304
  %307 = getelementptr inbounds { ptr, i8 }, ptr %37, i32 0, i32 0
  %308 = extractvalue { ptr, i8 } %305, 0
  store ptr %308, ptr %307, align 8
  %309 = getelementptr inbounds { ptr, i8 }, ptr %37, i32 0, i32 1
  %310 = extractvalue { ptr, i8 } %305, 1
  store i8 %310, ptr %309, align 8
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %311, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %313 unwind label %326

313:                                              ; preds = %306
  %314 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %315 unwind label %326

315:                                              ; preds = %313
  %316 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 0
  %317 = extractvalue { ptr, i8 } %314, 0
  store ptr %317, ptr %316, align 8
  %318 = getelementptr inbounds { ptr, i8 }, ptr %38, i32 0, i32 1
  %319 = extractvalue { ptr, i8 } %314, 1
  store i8 %319, ptr %318, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %320

320:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %39, ptr noundef nonnull align 8 dereferenceable(48) %321) #5
  %322 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %323 unwind label %330

323:                                              ; preds = %320
  %324 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %322)
          to label %325 unwind label %330

325:                                              ; preds = %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %287, !llvm.loop !17

326:                                              ; preds = %313, %306, %304, %301, %297
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %16, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %334

330:                                              ; preds = %323, %320
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %16, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %334

334:                                              ; preds = %330, %326, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %354

335:                                              ; preds = %292
  %336 = load ptr, ptr %4, align 8, !tbaa !5
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %336, ptr noundef nonnull align 8 dereferenceable(48) %337)
          to label %339 unwind label %122

339:                                              ; preds = %335
  %340 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %341 unwind label %122

341:                                              ; preds = %339
  %342 = add nsw i32 %338, %340
  store i32 %342, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %344

343:                                              ; preds = %278
  store i32 0, ptr %21, align 4
  br label %344

344:                                              ; preds = %343, %341, %267, %198, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %345 = load i32, ptr %21, align 4
  switch i32 %345, label %359 [
    i32 0, label %346
  ]

346:                                              ; preds = %344
  br label %347

347:                                              ; preds = %346
  %348 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %349 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %350 unwind label %355

350:                                              ; preds = %347
  %351 = invoke noundef zeroext i1 @_ZStltIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) %348, ptr noundef nonnull align 4 dereferenceable(8) %349)
          to label %352 unwind label %355

352:                                              ; preds = %350
  br i1 %351, label %53, label %353, !llvm.loop !18

353:                                              ; preds = %352
  store i32 1, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %359

354:                                              ; preds = %334, %260, %191, %122, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %360

355:                                              ; preds = %350, %347
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %16, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %17, align 4
  br label %360

359:                                              ; preds = %353, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  br label %361

360:                                              ; preds = %355, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  br label %363

361:                                              ; preds = %359, %43
  %362 = load i32, ptr %3, align 4
  ret i32 %362

363:                                              ; preds = %360
  %364 = load ptr, ptr %16, align 8
  %365 = load i32, ptr %17, align 4
  %366 = insertvalue { ptr, i32 } poison, ptr %364, 0
  %367 = insertvalue { ptr, i32 } %366, i32 %365, 1
  resume { ptr, i32 } %367
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStltIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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, !11, i64 0}
!10 = !{!"_ZTSSt4pairIiiE", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::pair" = type { i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"class.std::reverse_iterator", align 8
  %8 = alloca %"class.std::reverse_iterator", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"class.std::reverse_iterator", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"class.std::reverse_iterator", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"class.std::reverse_iterator", align 8
  %25 = tail call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  %26 = icmp eq i64 %25, 1
  br i1 %26, label %179, label %27

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %28 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %28, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %29 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %29, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  br label %30

30:                                               ; preds = %174, %27
  %31 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %34 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #4
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = sub nsw i32 %35, %32
  %37 = icmp sgt i32 %36, 1
  br i1 %37, label %38, label %66

38:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %39 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %39, ptr %10, align 8
  %40 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %41 = load i64, ptr %40, align 4
  store i64 %41, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  %42 = trunc i64 %41 to i32
  %.not5986 = icmp slt i32 %32, %42
  br i1 %.not5986, label %._crit_edge89, label %.lr.ph88

.lr.ph88:                                         ; preds = %38
  %43 = getelementptr inbounds i8, ptr %9, i64 4
  br label %45

._crit_edge89:                                    ; preds = %55, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %44 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %62 unwind label %.loopexit.split-lp

45:                                               ; preds = %.lr.ph88, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %46 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %47 unwind label %60

47:                                               ; preds = %45
  store i64 %46, ptr %11, align 8
  %48 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %49 unwind label %60

49:                                               ; preds = %47
  %50 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %51 unwind label %60

51:                                               ; preds = %49
  %52 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %53 unwind label %60

53:                                               ; preds = %51
  %54 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %55 unwind label %60

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %56 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  store ptr %56, ptr %12, align 8
  %57 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %58 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %57)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  %59 = load i32, ptr %9, align 8, !tbaa !5
  %.not59 = icmp sgt i32 %59, %32
  br i1 %.not59, label %._crit_edge89, label %45, !llvm.loop !10

60:                                               ; preds = %53, %51, %49, %47, %45
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %178

62:                                               ; preds = %._crit_edge89
  %63 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %64 unwind label %.loopexit.split-lp

64:                                               ; preds = %62
  %65 = add nsw i32 %63, %44
  br label %.thread

.loopexit:                                        ; preds = %66, %68, %138, %140
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %178

.loopexit.split-lp:                               ; preds = %._crit_edge89, %62, %._crit_edge85, %98, %._crit_edge81, %134, %._crit_edge, %170
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %178

66:                                               ; preds = %30
  %67 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %68 unwind label %.loopexit

68:                                               ; preds = %66
  %69 = load i32, ptr %67, align 4, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %71 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %72 unwind label %.loopexit

72:                                               ; preds = %68
  %73 = load i32, ptr %71, align 4, !tbaa !5
  %74 = sub nsw i32 %69, %73
  %75 = icmp sgt i32 %74, 1
  br i1 %75, label %76, label %102

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %78 = load i64, ptr %77, align 4
  store i64 %78, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  %79 = trunc i64 %78 to i32
  %.not5882 = icmp sgt i32 %69, %79
  br i1 %.not5882, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %76
  %80 = getelementptr inbounds i8, ptr %13, i64 4
  br label %82

._crit_edge85:                                    ; preds = %92, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  %81 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %98 unwind label %.loopexit.split-lp

82:                                               ; preds = %.lr.ph84, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %83 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %84 unwind label %96

84:                                               ; preds = %82
  store i64 %83, ptr %15, align 8
  %85 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %86 unwind label %96

86:                                               ; preds = %84
  %87 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %88 unwind label %96

88:                                               ; preds = %86
  %89 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %90 unwind label %96

90:                                               ; preds = %88
  %91 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %92 unwind label %96

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  %93 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %94 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %93)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  %95 = load i32, ptr %13, align 8, !tbaa !5
  %.not58 = icmp slt i32 %95, %69
  br i1 %.not58, label %._crit_edge85, label %82, !llvm.loop !12

96:                                               ; preds = %90, %88, %86, %84, %82
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %178

98:                                               ; preds = %._crit_edge85
  %99 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %100 unwind label %.loopexit.split-lp

100:                                              ; preds = %98
  %101 = add nsw i32 %99, %81
  br label %.thread

102:                                              ; preds = %72
  %103 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %106 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %105) #4
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sub nsw i32 %107, %104
  %109 = icmp sgt i32 %108, 1
  br i1 %109, label %110, label %138

110:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %111 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %111, ptr %18, align 8
  %112 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %113 = load i64, ptr %112, align 4
  store i64 %113, ptr %17, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  %114 = trunc i64 %113 to i32
  %.not5778 = icmp slt i32 %104, %114
  br i1 %.not5778, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %110
  %115 = getelementptr inbounds i8, ptr %17, i64 4
  br label %117

._crit_edge81:                                    ; preds = %127, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  %116 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %134 unwind label %.loopexit.split-lp

117:                                              ; preds = %.lr.ph80, %127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %118 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %115, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %119 unwind label %132

119:                                              ; preds = %117
  store i64 %118, ptr %19, align 8
  %120 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %121 unwind label %132

121:                                              ; preds = %119
  %122 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %123 unwind label %132

123:                                              ; preds = %121
  %124 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %125 unwind label %132

125:                                              ; preds = %123
  %126 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %127 unwind label %132

127:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  %128 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %128, ptr %20, align 8
  %129 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  %130 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  %131 = load i32, ptr %17, align 8, !tbaa !5
  %.not57 = icmp sgt i32 %131, %104
  br i1 %.not57, label %._crit_edge81, label %117, !llvm.loop !13

132:                                              ; preds = %125, %123, %121, %119, %117
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  br label %178

134:                                              ; preds = %._crit_edge81
  %135 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %136 unwind label %.loopexit.split-lp

136:                                              ; preds = %134
  %137 = add nsw i32 %135, %116
  br label %.thread

138:                                              ; preds = %102
  %139 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %140 unwind label %.loopexit

140:                                              ; preds = %138
  %141 = load i32, ptr %139, align 4, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %143 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %144 unwind label %.loopexit

144:                                              ; preds = %140
  %145 = load i32, ptr %143, align 4, !tbaa !5
  %146 = sub nsw i32 %141, %145
  %147 = icmp sgt i32 %146, 1
  br i1 %147, label %148, label %174

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  %149 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %150 = load i64, ptr %149, align 4
  store i64 %150, ptr %21, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  %151 = trunc i64 %150 to i32
  %.not77 = icmp sgt i32 %141, %151
  br i1 %.not77, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %148
  %152 = getelementptr inbounds i8, ptr %21, i64 4
  br label %154

._crit_edge:                                      ; preds = %164, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  %153 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %170 unwind label %.loopexit.split-lp

154:                                              ; preds = %.lr.ph, %164
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #4
  %155 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %152, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %156 unwind label %168

156:                                              ; preds = %154
  store i64 %155, ptr %23, align 8
  %157 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %158 unwind label %168

158:                                              ; preds = %156
  %159 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %160 unwind label %168

160:                                              ; preds = %158
  %161 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %162 unwind label %168

162:                                              ; preds = %160
  %163 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %164 unwind label %168

164:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  call void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  %165 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %166 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %165)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  %167 = load i32, ptr %21, align 8, !tbaa !5
  %.not = icmp slt i32 %167, %141
  br i1 %.not, label %._crit_edge, label %154, !llvm.loop !14

168:                                              ; preds = %162, %160, %158, %156, %154
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  br label %178

170:                                              ; preds = %._crit_edge
  %171 = invoke noundef i32 @_Z5solveRSt3setISt4pairIiiESt4lessIS1_ESaIS1_EES6_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %172 unwind label %.loopexit.split-lp

172:                                              ; preds = %170
  %173 = add nsw i32 %171, %153
  br label %.thread

174:                                              ; preds = %144
  %175 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %176 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %177 = call noundef zeroext i1 @_ZStltIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8) %175, ptr noundef nonnull align 4 dereferenceable(8) %176)
  br i1 %177, label %30, label %.thread, !llvm.loop !15

178:                                              ; preds = %.loopexit, %.loopexit.split-lp, %168, %132, %96, %60
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %97, %96 ], [ %133, %132 ], [ %169, %168 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

.thread:                                          ; preds = %174, %172, %136, %100, %64
  %.2 = phi i32 [ %173, %172 ], [ %137, %136 ], [ %101, %100 ], [ %65, %64 ], [ 1, %174 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  br label %179

179:                                              ; preds = %2, %.thread
  %.3 = phi i32 [ %.2, %.thread ], [ 1, %2 ]
  ret i32 %.3
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIiiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStltIiiEbRKSt4pairIT_T0_ES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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, !7, i64 0}
!6 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


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