; LLVM IR from tangjz/acm-icpc :: codeforces/complete/1638E.ll (Z5solvev)

; 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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.std::pair.3" = type { i32, i32 }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZZ5solvevE2op = external hidden global [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca %"struct.std::pair.3", align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair.3", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca %"struct.std::pair.3", align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair.3", align 4
  %29 = alloca %"struct.std::pair", align 8
  %30 = alloca %"struct.std::pair.3", align 4
  %31 = alloca %"struct.std::pair.3", align 4
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::pair.3", align 4
  %37 = alloca %"struct.std::pair", align 8
  %38 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %39 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %43 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %44 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i64, align 8
  %48 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %49 = alloca %"struct.std::pair.3", align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %56, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %57 unwind label %91

57:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %61 unwind label %95

61:                                               ; preds = %57
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %62 unwind label %99

62:                                               ; preds = %61
  %63 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %64 unwind label %99

64:                                               ; preds = %62
  %65 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %66 = extractvalue { ptr, i8 } %63, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %68 = extractvalue { ptr, i8 } %63, 1
  store i8 %68, ptr %67, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %71 unwind label %103

71:                                               ; preds = %64
  %72 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %73 unwind label %103

73:                                               ; preds = %71
  %74 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %75 = extractvalue { ptr, i8 } %72, 0
  store ptr %75, ptr %74, align 8
  %76 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %77 = extractvalue { ptr, i8 } %72, 1
  store i8 %77, ptr %76, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %78

78:                                               ; preds = %499, %73
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = add nsw i32 %79, -1
  store i32 %80, ptr %2, align 4, !tbaa !5
  %81 = icmp ne i32 %79, 0
  br i1 %81, label %82, label %506

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %83 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @_ZZ5solvevE2op, ptr noundef %18, ptr noundef %19)
          to label %84 unwind label %107

84:                                               ; preds = %82
  %85 = load i8, ptr @_ZZ5solvevE2op, align 1, !tbaa !9
  %86 = sext i8 %85 to i32
  %87 = icmp eq i32 %86, 67
  br i1 %87, label %88, label %111

88:                                               ; preds = %84
  %89 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %20)
          to label %90 unwind label %107

90:                                               ; preds = %88
  br label %111

91:                                               ; preds = %0
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %6, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %509

95:                                               ; preds = %57
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %6, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %508

99:                                               ; preds = %62, %61
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %507

103:                                              ; preds = %71, %64
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %6, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %507

107:                                              ; preds = %88, %82
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %6, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %7, align 4
  br label %505

111:                                              ; preds = %90, %84
  %112 = load i8, ptr @_ZZ5solvevE2op, align 1, !tbaa !9
  %113 = sext i8 %112 to i32
  switch i32 %113, label %499 [
    i32 67, label %114
    i32 65, label %450
    i32 81, label %458
  ]

114:                                              ; preds = %111
  %115 = load i32, ptr %19, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %117 = load i32, ptr %18, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %119 unwind label %131

119:                                              ; preds = %114
  %120 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %121 unwind label %131

121:                                              ; preds = %119
  %122 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %21, i32 0, i32 0
  store ptr %120, ptr %122, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %123 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0) #6
  %124 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %25, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %125 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %125, ptr %26, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %147, %121
  %127 = load i32, ptr %26, align 4, !tbaa !5
  %128 = load i32, ptr %1, align 4, !tbaa !5
  %129 = icmp sle i32 %127, %128
  br i1 %129, label %135, label %130

130:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %154

131:                                              ; preds = %119, %114
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %6, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %449

135:                                              ; preds = %126
  %136 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %137 = getelementptr inbounds %"struct.std::pair.3", ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !10
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %139) #6
  %141 = load i64, ptr %140, align 8, !tbaa !12
  %142 = load i32, ptr %26, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %143) #6
  %145 = load i64, ptr %144, align 8, !tbaa !12
  %146 = add nsw i64 %145, %141
  store i64 %146, ptr %144, align 8, !tbaa !12
  br label %147

147:                                              ; preds = %135
  %148 = load i32, ptr %26, align 4, !tbaa !5
  %149 = load i32, ptr %26, align 4, !tbaa !5
  %150 = sub nsw i32 0, %149
  %151 = and i32 %148, %150
  %152 = load i32, ptr %26, align 4, !tbaa !5
  %153 = add nsw i32 %152, %151
  store i32 %153, ptr %26, align 4, !tbaa !5
  br label %126, !llvm.loop !14

154:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %155 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %156 = getelementptr inbounds %"struct.std::pair.3", ptr %155, i32 0, i32 0
  %157 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %156, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %158 unwind label %165

158:                                              ; preds = %154
  %159 = load i32, ptr %157, align 4, !tbaa !5
  store i32 %159, ptr %27, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %181, %158
  %161 = load i32, ptr %27, align 4, !tbaa !5
  %162 = load i32, ptr %1, align 4, !tbaa !5
  %163 = icmp sle i32 %161, %162
  br i1 %163, label %169, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %188

165:                                              ; preds = %154
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %6, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %448

169:                                              ; preds = %160
  %170 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %171 = getelementptr inbounds %"struct.std::pair.3", ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !10
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %173) #6
  %175 = load i64, ptr %174, align 8, !tbaa !12
  %176 = load i32, ptr %27, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %177) #6
  %179 = load i64, ptr %178, align 8, !tbaa !12
  %180 = sub nsw i64 %179, %175
  store i64 %180, ptr %178, align 8, !tbaa !12
  br label %181

181:                                              ; preds = %169
  %182 = load i32, ptr %27, align 4, !tbaa !5
  %183 = load i32, ptr %27, align 4, !tbaa !5
  %184 = sub nsw i32 0, %183
  %185 = and i32 %182, %184
  %186 = load i32, ptr %27, align 4, !tbaa !5
  %187 = add nsw i32 %186, %185
  store i32 %187, ptr %27, align 4, !tbaa !5
  br label %160, !llvm.loop !16

188:                                              ; preds = %164
  %189 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %190 = getelementptr inbounds %"struct.std::pair.3", ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !17
  %192 = load i32, ptr %19, align 4, !tbaa !5
  %193 = icmp sgt i32 %191, %192
  br i1 %193, label %194, label %208

194:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %195 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %196 = getelementptr inbounds %"struct.std::pair.3", ptr %195, i32 0, i32 1
  invoke void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %196)
          to label %197 unwind label %204

197:                                              ; preds = %194
  %198 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %28)
          to label %199 unwind label %204

199:                                              ; preds = %197
  %200 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 0
  %201 = extractvalue { ptr, i8 } %198, 0
  store ptr %201, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i8 }, ptr %29, i32 0, i32 1
  %203 = extractvalue { ptr, i8 } %198, 1
  store i8 %203, ptr %202, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %208

204:                                              ; preds = %197, %194
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %6, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %448

208:                                              ; preds = %199, %188
  %209 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %210 = getelementptr inbounds %"struct.std::pair.3", ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 4, !tbaa !17
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = icmp eq i32 %211, %212
  br i1 %213, label %214, label %224

214:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %215 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %216 = getelementptr inbounds %"struct.std::pair.3", ptr %215, i32 0, i32 1
  invoke void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %216)
          to label %217 unwind label %220

217:                                              ; preds = %214
  %218 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %219 unwind label %220

219:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %224

220:                                              ; preds = %217, %214
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %6, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %448

224:                                              ; preds = %219, %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  invoke void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %225 unwind label %255

225:                                              ; preds = %224
  %226 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %31)
          to label %227 unwind label %255

227:                                              ; preds = %225
  %228 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 0
  %229 = extractvalue { ptr, i8 } %226, 0
  store ptr %229, ptr %228, align 8
  %230 = getelementptr inbounds { ptr, i8 }, ptr %32, i32 0, i32 1
  %231 = extractvalue { ptr, i8 } %226, 1
  store i8 %231, ptr %230, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %232 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 0) #6
  %233 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %33, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %33, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %234

234:                                              ; preds = %396, %227
  %235 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %236 = getelementptr inbounds %"struct.std::pair.3", ptr %235, i32 0, i32 0
  %237 = load i32, ptr %236, align 4, !tbaa !17
  %238 = load i32, ptr %19, align 4, !tbaa !5
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %240, label %399

240:                                              ; preds = %234
  %241 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %242 = getelementptr inbounds %"struct.std::pair.3", ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 4, !tbaa !17
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = icmp sge i32 %243, %244
  br i1 %245, label %246, label %334

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %247 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %248 = getelementptr inbounds %"struct.std::pair.3", ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 4, !tbaa !17
  store i32 %249, ptr %34, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %271, %246
  %251 = load i32, ptr %34, align 4, !tbaa !5
  %252 = load i32, ptr %1, align 4, !tbaa !5
  %253 = icmp sle i32 %251, %252
  br i1 %253, label %259, label %254

254:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %278

255:                                              ; preds = %225, %224
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %6, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %448

259:                                              ; preds = %250
  %260 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %261 = getelementptr inbounds %"struct.std::pair.3", ptr %260, i32 0, i32 1
  %262 = load i32, ptr %261, align 4, !tbaa !10
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %263) #6
  %265 = load i64, ptr %264, align 8, !tbaa !12
  %266 = load i32, ptr %34, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %267) #6
  %269 = load i64, ptr %268, align 8, !tbaa !12
  %270 = add nsw i64 %269, %265
  store i64 %270, ptr %268, align 8, !tbaa !12
  br label %271

271:                                              ; preds = %259
  %272 = load i32, ptr %34, align 4, !tbaa !5
  %273 = load i32, ptr %34, align 4, !tbaa !5
  %274 = sub nsw i32 0, %273
  %275 = and i32 %272, %274
  %276 = load i32, ptr %34, align 4, !tbaa !5
  %277 = add nsw i32 %276, %275
  store i32 %277, ptr %34, align 4, !tbaa !5
  br label %250, !llvm.loop !21

278:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %279 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %279, ptr %35, align 4, !tbaa !5
  br label %280

280:                                              ; preds = %297, %278
  %281 = load i32, ptr %35, align 4, !tbaa !5
  %282 = load i32, ptr %1, align 4, !tbaa !5
  %283 = icmp sle i32 %281, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %304

285:                                              ; preds = %280
  %286 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %287 = getelementptr inbounds %"struct.std::pair.3", ptr %286, i32 0, i32 1
  %288 = load i32, ptr %287, align 4, !tbaa !10
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %289) #6
  %291 = load i64, ptr %290, align 8, !tbaa !12
  %292 = load i32, ptr %35, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %293) #6
  %295 = load i64, ptr %294, align 8, !tbaa !12
  %296 = sub nsw i64 %295, %291
  store i64 %296, ptr %294, align 8, !tbaa !12
  br label %297

297:                                              ; preds = %285
  %298 = load i32, ptr %35, align 4, !tbaa !5
  %299 = load i32, ptr %35, align 4, !tbaa !5
  %300 = sub nsw i32 0, %299
  %301 = and i32 %298, %300
  %302 = load i32, ptr %35, align 4, !tbaa !5
  %303 = add nsw i32 %302, %301
  store i32 %303, ptr %35, align 4, !tbaa !5
  br label %280, !llvm.loop !22

304:                                              ; preds = %284
  %305 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %306 = getelementptr inbounds %"struct.std::pair.3", ptr %305, i32 0, i32 0
  %307 = load i32, ptr %306, align 4, !tbaa !17
  %308 = load i32, ptr %19, align 4, !tbaa !5
  %309 = icmp sgt i32 %307, %308
  br i1 %309, label %310, label %324

310:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %311 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %312 = getelementptr inbounds %"struct.std::pair.3", ptr %311, i32 0, i32 1
  invoke void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %312)
          to label %313 unwind label %320

313:                                              ; preds = %310
  %314 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %315 unwind label %320

315:                                              ; preds = %313
  %316 = getelementptr inbounds { ptr, i8 }, ptr %37, i32 0, i32 0
  %317 = extractvalue { ptr, i8 } %314, 0
  store ptr %317, ptr %316, align 8
  %318 = getelementptr inbounds { ptr, i8 }, ptr %37, 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) #6
  br label %324

320:                                              ; preds = %313, %310
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %6, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %448

324:                                              ; preds = %315, %304
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !18
  %325 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %38, i32 0, i32 0
  %326 = load ptr, ptr %325, align 8
  %327 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %326)
          to label %328 unwind label %330

328:                                              ; preds = %324
  %329 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %39, i32 0, i32 0
  store ptr %327, ptr %329, align 8
  br label %399

330:                                              ; preds = %390, %324
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %6, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %7, align 4
  br label %448

334:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %335 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %336 = getelementptr inbounds %"struct.std::pair.3", ptr %335, i32 0, i32 0
  %337 = load i32, ptr %336, align 4, !tbaa !17
  store i32 %337, ptr %40, align 4, !tbaa !5
  br label %338

338:                                              ; preds = %355, %334
  %339 = load i32, ptr %40, align 4, !tbaa !5
  %340 = load i32, ptr %1, align 4, !tbaa !5
  %341 = icmp sle i32 %339, %340
  br i1 %341, label %343, label %342

342:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %362

343:                                              ; preds = %338
  %344 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %345 = getelementptr inbounds %"struct.std::pair.3", ptr %344, i32 0, i32 1
  %346 = load i32, ptr %345, align 4, !tbaa !10
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %347) #6
  %349 = load i64, ptr %348, align 8, !tbaa !12
  %350 = load i32, ptr %40, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %351) #6
  %353 = load i64, ptr %352, align 8, !tbaa !12
  %354 = add nsw i64 %353, %349
  store i64 %354, ptr %352, align 8, !tbaa !12
  br label %355

355:                                              ; preds = %343
  %356 = load i32, ptr %40, align 4, !tbaa !5
  %357 = load i32, ptr %40, align 4, !tbaa !5
  %358 = sub nsw i32 0, %357
  %359 = and i32 %356, %358
  %360 = load i32, ptr %40, align 4, !tbaa !5
  %361 = add nsw i32 %360, %359
  store i32 %361, ptr %40, align 4, !tbaa !5
  br label %338, !llvm.loop !23

362:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %363 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %364 = getelementptr inbounds %"struct.std::pair.3", ptr %363, i32 0, i32 0
  %365 = load i32, ptr %364, align 4, !tbaa !17
  store i32 %365, ptr %41, align 4, !tbaa !5
  br label %366

366:                                              ; preds = %383, %362
  %367 = load i32, ptr %41, align 4, !tbaa !5
  %368 = load i32, ptr %1, align 4, !tbaa !5
  %369 = icmp sle i32 %367, %368
  br i1 %369, label %371, label %370

370:                                              ; preds = %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %390

371:                                              ; preds = %366
  %372 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %373 = getelementptr inbounds %"struct.std::pair.3", ptr %372, i32 0, i32 1
  %374 = load i32, ptr %373, align 4, !tbaa !10
  %375 = sext i32 %374 to i64
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %375) #6
  %377 = load i64, ptr %376, align 8, !tbaa !12
  %378 = load i32, ptr %41, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %379) #6
  %381 = load i64, ptr %380, align 8, !tbaa !12
  %382 = sub nsw i64 %381, %377
  store i64 %382, ptr %380, align 8, !tbaa !12
  br label %383

383:                                              ; preds = %371
  %384 = load i32, ptr %41, align 4, !tbaa !5
  %385 = load i32, ptr %41, align 4, !tbaa !5
  %386 = sub nsw i32 0, %385
  %387 = and i32 %384, %386
  %388 = load i32, ptr %41, align 4, !tbaa !5
  %389 = add nsw i32 %388, %387
  store i32 %389, ptr %41, align 4, !tbaa !5
  br label %366, !llvm.loop !24

390:                                              ; preds = %370
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !18
  %391 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %42, i32 0, i32 0
  %392 = load ptr, ptr %391, align 8
  %393 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %392)
          to label %394 unwind label %330

394:                                              ; preds = %390
  %395 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %43, i32 0, i32 0
  store ptr %393, ptr %395, align 8
  br label %396

396:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %397 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 0) #6
  %398 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %44, i32 0, i32 0
  store ptr %397, ptr %398, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %44, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %234, !llvm.loop !25

399:                                              ; preds = %328, %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %400 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %400, ptr %45, align 4, !tbaa !5
  br label %401

401:                                              ; preds = %416, %399
  %402 = load i32, ptr %45, align 4, !tbaa !5
  %403 = load i32, ptr %1, align 4, !tbaa !5
  %404 = icmp sle i32 %402, %403
  br i1 %404, label %406, label %405

405:                                              ; preds = %401
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %423

406:                                              ; preds = %401
  %407 = load i32, ptr %20, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %408) #6
  %410 = load i64, ptr %409, align 8, !tbaa !12
  %411 = load i32, ptr %45, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %412) #6
  %414 = load i64, ptr %413, align 8, !tbaa !12
  %415 = sub nsw i64 %414, %410
  store i64 %415, ptr %413, align 8, !tbaa !12
  br label %416

416:                                              ; preds = %406
  %417 = load i32, ptr %45, align 4, !tbaa !5
  %418 = load i32, ptr %45, align 4, !tbaa !5
  %419 = sub nsw i32 0, %418
  %420 = and i32 %417, %419
  %421 = load i32, ptr %45, align 4, !tbaa !5
  %422 = add nsw i32 %421, %420
  store i32 %422, ptr %45, align 4, !tbaa !5
  br label %401, !llvm.loop !26

423:                                              ; preds = %405
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %424 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %424, ptr %46, align 4, !tbaa !5
  br label %425

425:                                              ; preds = %440, %423
  %426 = load i32, ptr %46, align 4, !tbaa !5
  %427 = load i32, ptr %1, align 4, !tbaa !5
  %428 = icmp sle i32 %426, %427
  br i1 %428, label %430, label %429

429:                                              ; preds = %425
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %447

430:                                              ; preds = %425
  %431 = load i32, ptr %20, align 4, !tbaa !5
  %432 = sext i32 %431 to i64
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %432) #6
  %434 = load i64, ptr %433, align 8, !tbaa !12
  %435 = load i32, ptr %46, align 4, !tbaa !5
  %436 = sext i32 %435 to i64
  %437 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %436) #6
  %438 = load i64, ptr %437, align 8, !tbaa !12
  %439 = add nsw i64 %438, %434
  store i64 %439, ptr %437, align 8, !tbaa !12
  br label %440

440:                                              ; preds = %430
  %441 = load i32, ptr %46, align 4, !tbaa !5
  %442 = load i32, ptr %46, align 4, !tbaa !5
  %443 = sub nsw i32 0, %442
  %444 = and i32 %441, %443
  %445 = load i32, ptr %46, align 4, !tbaa !5
  %446 = add nsw i32 %445, %444
  store i32 %446, ptr %46, align 4, !tbaa !5
  br label %425, !llvm.loop !27

447:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %499

448:                                              ; preds = %330, %320, %255, %220, %204, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %449

449:                                              ; preds = %448, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %505

450:                                              ; preds = %111
  %451 = load i32, ptr %19, align 4, !tbaa !5
  %452 = sext i32 %451 to i64
  %453 = load i32, ptr %18, align 4, !tbaa !5
  %454 = sext i32 %453 to i64
  %455 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %454) #6
  %456 = load i64, ptr %455, align 8, !tbaa !12
  %457 = add nsw i64 %456, %452
  store i64 %457, ptr %455, align 8, !tbaa !12
  br label %499

458:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  %459 = load i32, ptr %18, align 4, !tbaa !5
  %460 = add nsw i32 %459, 1
  store i32 %460, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  store i32 0, ptr %51, align 4, !tbaa !5
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %461 unwind label %477

461:                                              ; preds = %458
  %462 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %49)
          to label %463 unwind label %477

463:                                              ; preds = %461
  %464 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %48, i32 0, i32 0
  store ptr %462, ptr %464, align 8
  %465 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #6
  %466 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %465) #6
  %467 = getelementptr inbounds %"struct.std::pair.3", ptr %466, i32 0, i32 1
  %468 = load i32, ptr %467, align 4, !tbaa !10
  %469 = sext i32 %468 to i64
  %470 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %469) #6
  %471 = load i64, ptr %470, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  store i64 %471, ptr %47, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  %472 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %472, ptr %52, align 4, !tbaa !5
  br label %473

473:                                              ; preds = %488, %463
  %474 = load i32, ptr %52, align 4, !tbaa !5
  %475 = icmp sgt i32 %474, 0
  br i1 %475, label %481, label %476

476:                                              ; preds = %473
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %495

477:                                              ; preds = %461, %458
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %6, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %504

481:                                              ; preds = %473
  %482 = load i32, ptr %52, align 4, !tbaa !5
  %483 = sext i32 %482 to i64
  %484 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %483) #6
  %485 = load i64, ptr %484, align 8, !tbaa !12
  %486 = load i64, ptr %47, align 8, !tbaa !12
  %487 = add nsw i64 %486, %485
  store i64 %487, ptr %47, align 8, !tbaa !12
  br label %488

488:                                              ; preds = %481
  %489 = load i32, ptr %52, align 4, !tbaa !5
  %490 = load i32, ptr %52, align 4, !tbaa !5
  %491 = sub nsw i32 0, %490
  %492 = and i32 %489, %491
  %493 = load i32, ptr %52, align 4, !tbaa !5
  %494 = sub nsw i32 %493, %492
  store i32 %494, ptr %52, align 4, !tbaa !5
  br label %473, !llvm.loop !28

495:                                              ; preds = %476
  %496 = load i64, ptr %47, align 8, !tbaa !12
  %497 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %496)
          to label %498 unwind label %500

498:                                              ; preds = %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  br label %499

499:                                              ; preds = %498, %450, %447, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %78, !llvm.loop !29

500:                                              ; preds = %495
  %501 = landingpad { ptr, i32 }
          cleanup
  %502 = extractvalue { ptr, i32 } %501, 0
  store ptr %502, ptr %6, align 8
  %503 = extractvalue { ptr, i32 } %501, 1
  store i32 %503, ptr %7, align 4
  br label %504

504:                                              ; preds = %500, %477
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  br label %505

505:                                              ; preds = %504, %449, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %507

506:                                              ; preds = %78
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

507:                                              ; preds = %505, %103, %99
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %508

508:                                              ; preds = %507, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %509

509:                                              ; preds = %508, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %510

510:                                              ; preds = %509
  %511 = load ptr, ptr %6, align 8
  %512 = load i32, ptr %7, align 4
  %513 = insertvalue { ptr, i32 } poison, ptr %511, 0
  %514 = insertvalue { ptr, i32 } %513, i32 %512, 1
  resume { ptr, i32 } %514
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(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 void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(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 ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; 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 nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 #3 = { 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 4}
!11 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!11, !6, i64 0}
!18 = !{i64 0, i64 8, !19}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}


; 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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.std::pair.3" = type { i32, i32 }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZZ5solvevE2op = external hidden global [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"struct.std::pair.3", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.3", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::pair.3", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca %"struct.std::pair.3", align 4
  %23 = alloca %"struct.std::pair.3", align 4
  %24 = alloca %"struct.std::pair.3", align 4
  %25 = alloca %"struct.std::pair.3", align 4
  %26 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %27 = alloca %"struct.std::pair.3", align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %33, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %34 unwind label %52

34:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %38 unwind label %54

38:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %39 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %40 unwind label %56

40:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %43 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %44 unwind label %58

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %2, align 4, !tbaa !5
  %.not140 = icmp eq i32 %45, 0
  br i1 %.not140, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %44, %288
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @_ZZ5solvevE2op, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %48 = load i8, ptr @_ZZ5solvevE2op, align 1, !tbaa !9
  %49 = icmp eq i8 %48, 67
  br i1 %49, label %50, label %60

50:                                               ; preds = %.lr.ph142
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %16)
  %.pr = load i8, ptr @_ZZ5solvevE2op, align 1, !tbaa !9
  br label %60

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %294

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %293

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %292

58:                                               ; preds = %40
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %292

60:                                               ; preds = %50, %.lr.ph142
  %61 = phi i8 [ %.pr, %50 ], [ %48, %.lr.ph142 ]
  switch i8 %61, label %288 [
    i8 67, label %62
    i8 65, label %258
    i8 81, label %266
  ]

62:                                               ; preds = %60
  %63 = load i32, ptr %15, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %65 = load i32, ptr %14, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %67 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %68 unwind label %76

68:                                               ; preds = %62
  store ptr %67, ptr %17, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %69 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #5
  store ptr %69, ptr %21, align 8
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %.not7998 = icmp sgt i32 %70, %71
  br i1 %.not7998, label %._crit_edge102, label %.lr.ph101

._crit_edge102:                                   ; preds = %.lr.ph101, %68
  %72 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load i32, ptr %1, align 4, !tbaa !5
  %.not80103 = icmp sgt i32 %74, %75
  br i1 %.not80103, label %._crit_edge107, label %.lr.ph106

76:                                               ; preds = %62
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %257

.lr.ph101:                                        ; preds = %68, %.lr.ph101
  %.07299 = phi i32 [ %90, %.lr.ph101 ], [ %70, %68 ]
  %78 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !10
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %81) #5
  %83 = load i64, ptr %82, align 8, !tbaa !12
  %84 = sext i32 %.07299 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %84) #5
  %86 = load i64, ptr %85, align 8, !tbaa !12
  %87 = add nsw i64 %86, %83
  store i64 %87, ptr %85, align 8, !tbaa !12
  %88 = sub nsw i32 0, %.07299
  %89 = and i32 %.07299, %88
  %90 = add nsw i32 %89, %.07299
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %.not79 = icmp sgt i32 %90, %91
  br i1 %.not79, label %._crit_edge102, label %.lr.ph101, !llvm.loop !14

._crit_edge107:                                   ; preds = %.lr.ph106, %._crit_edge102
  %92 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %93 = load i32, ptr %92, align 4, !tbaa !16
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = icmp sgt i32 %93, %94
  br i1 %95, label %110, label %117

.lr.ph106:                                        ; preds = %._crit_edge102, %.lr.ph106
  %.075104 = phi i32 [ %108, %.lr.ph106 ], [ %74, %._crit_edge102 ]
  %96 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %97 = getelementptr inbounds i8, ptr %96, i64 4
  %98 = load i32, ptr %97, align 4, !tbaa !10
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %99) #5
  %101 = load i64, ptr %100, align 8, !tbaa !12
  %102 = sext i32 %.075104 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %102) #5
  %104 = load i64, ptr %103, align 8, !tbaa !12
  %105 = sub nsw i64 %104, %101
  store i64 %105, ptr %103, align 8, !tbaa !12
  %106 = sub nsw i32 0, %.075104
  %107 = and i32 %.075104, %106
  %108 = add nsw i32 %107, %.075104
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %.not80 = icmp sgt i32 %108, %109
  br i1 %.not80, label %._crit_edge107, label %.lr.ph106, !llvm.loop !17

110:                                              ; preds = %._crit_edge107
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  %111 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  call void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %112)
  %113 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %114 unwind label %115

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  br label %117

115:                                              ; preds = %110
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  br label %256

117:                                              ; preds = %114, %._crit_edge107
  %118 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %119 = load i32, ptr %118, align 4, !tbaa !16
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = icmp eq i32 %119, %120
  br i1 %121, label %122, label %129

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  %123 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %124 = getelementptr inbounds i8, ptr %123, i64 4
  call void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %124)
  %125 = invoke noundef i64 @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %126 unwind label %127

126:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  br label %129

127:                                              ; preds = %122
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  br label %256

129:                                              ; preds = %126, %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %130 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %131 unwind label %146

131:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  %132 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0) #5
  store ptr %132, ptr %17, align 8, !tbaa !18
  %133 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %134 = load i32, ptr %133, align 4, !tbaa !16
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %.lr.ph119, label %.loopexit

.lr.ph119:                                        ; preds = %131, %222
  %137 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %138 = load i32, ptr %137, align 4, !tbaa !16
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %.not81 = icmp slt i32 %138, %139
  %140 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %141 = load i32, ptr %140, align 4, !tbaa !16
  %142 = load i32, ptr %1, align 4, !tbaa !5
  %.not82108 = icmp sgt i32 %141, %142
  br i1 %.not81, label %189, label %143

143:                                              ; preds = %.lr.ph119
  br i1 %.not82108, label %._crit_edge124, label %.lr.ph123

._crit_edge124:                                   ; preds = %.lr.ph123, %143
  %144 = phi i32 [ %142, %143 ], [ %161, %.lr.ph123 ]
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %.not85125 = icmp sgt i32 %145, %144
  br i1 %.not85125, label %._crit_edge129, label %.lr.ph128

146:                                              ; preds = %129
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  br label %256

.lr.ph123:                                        ; preds = %143, %.lr.ph123
  %.076121 = phi i32 [ %160, %.lr.ph123 ], [ %141, %143 ]
  %148 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %149 = getelementptr inbounds i8, ptr %148, i64 4
  %150 = load i32, ptr %149, align 4, !tbaa !10
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %151) #5
  %153 = load i64, ptr %152, align 8, !tbaa !12
  %154 = sext i32 %.076121 to i64
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %154) #5
  %156 = load i64, ptr %155, align 8, !tbaa !12
  %157 = add nsw i64 %156, %153
  store i64 %157, ptr %155, align 8, !tbaa !12
  %158 = sub nsw i32 0, %.076121
  %159 = and i32 %.076121, %158
  %160 = add nsw i32 %159, %.076121
  %161 = load i32, ptr %1, align 4, !tbaa !5
  %.not84 = icmp sgt i32 %160, %161
  br i1 %.not84, label %._crit_edge124, label %.lr.ph123, !llvm.loop !20

._crit_edge129:                                   ; preds = %.lr.ph128, %._crit_edge124
  %162 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %163 = load i32, ptr %162, align 4, !tbaa !16
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = icmp sgt i32 %163, %164
  br i1 %165, label %180, label %187

.lr.ph128:                                        ; preds = %._crit_edge124, %.lr.ph128
  %.077126 = phi i32 [ %178, %.lr.ph128 ], [ %145, %._crit_edge124 ]
  %166 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %167 = getelementptr inbounds i8, ptr %166, i64 4
  %168 = load i32, ptr %167, align 4, !tbaa !10
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %169) #5
  %171 = load i64, ptr %170, align 8, !tbaa !12
  %172 = sext i32 %.077126 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %172) #5
  %174 = load i64, ptr %173, align 8, !tbaa !12
  %175 = sub nsw i64 %174, %171
  store i64 %175, ptr %173, align 8, !tbaa !12
  %176 = sub nsw i32 0, %.077126
  %177 = and i32 %.077126, %176
  %178 = add nsw i32 %177, %.077126
  %179 = load i32, ptr %1, align 4, !tbaa !5
  %.not85 = icmp sgt i32 %178, %179
  br i1 %.not85, label %._crit_edge129, label %.lr.ph128, !llvm.loop !21

180:                                              ; preds = %._crit_edge129
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #5
  %181 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %182 = getelementptr inbounds i8, ptr %181, i64 4
  call void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %182)
  %183 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %184 unwind label %185

184:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  br label %187

185:                                              ; preds = %180
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  br label %256

187:                                              ; preds = %184, %._crit_edge129
  %.sroa.030.0.copyload = load ptr, ptr %17, align 8, !tbaa !18
  %188 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %.sroa.030.0.copyload)
          to label %.loopexit unwind label %.loopexit.split-lp

.loopexit95:                                      ; preds = %._crit_edge117
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %256

.loopexit.split-lp:                               ; preds = %187
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %256

189:                                              ; preds = %.lr.ph119
  br i1 %.not82108, label %._crit_edge112, label %.lr.ph111

._crit_edge112:                                   ; preds = %.lr.ph111, %189
  %190 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %191 = load i32, ptr %190, align 4, !tbaa !16
  %192 = load i32, ptr %1, align 4, !tbaa !5
  %.not83113 = icmp sgt i32 %191, %192
  br i1 %.not83113, label %._crit_edge117, label %.lr.ph116

.lr.ph111:                                        ; preds = %189, %.lr.ph111
  %.074109 = phi i32 [ %205, %.lr.ph111 ], [ %141, %189 ]
  %193 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %194 = getelementptr inbounds i8, ptr %193, i64 4
  %195 = load i32, ptr %194, align 4, !tbaa !10
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %196) #5
  %198 = load i64, ptr %197, align 8, !tbaa !12
  %199 = sext i32 %.074109 to i64
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %199) #5
  %201 = load i64, ptr %200, align 8, !tbaa !12
  %202 = add nsw i64 %201, %198
  store i64 %202, ptr %200, align 8, !tbaa !12
  %203 = sub nsw i32 0, %.074109
  %204 = and i32 %.074109, %203
  %205 = add nsw i32 %204, %.074109
  %206 = load i32, ptr %1, align 4, !tbaa !5
  %.not82 = icmp sgt i32 %205, %206
  br i1 %.not82, label %._crit_edge112, label %.lr.ph111, !llvm.loop !22

._crit_edge117:                                   ; preds = %.lr.ph116, %._crit_edge112
  %.sroa.018.0.copyload = load ptr, ptr %17, align 8, !tbaa !18
  %207 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %.sroa.018.0.copyload)
          to label %222 unwind label %.loopexit95

.lr.ph116:                                        ; preds = %._crit_edge112, %.lr.ph116
  %.073114 = phi i32 [ %220, %.lr.ph116 ], [ %191, %._crit_edge112 ]
  %208 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %209 = getelementptr inbounds i8, ptr %208, i64 4
  %210 = load i32, ptr %209, align 4, !tbaa !10
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %211) #5
  %213 = load i64, ptr %212, align 8, !tbaa !12
  %214 = sext i32 %.073114 to i64
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %214) #5
  %216 = load i64, ptr %215, align 8, !tbaa !12
  %217 = sub nsw i64 %216, %213
  store i64 %217, ptr %215, align 8, !tbaa !12
  %218 = sub nsw i32 0, %.073114
  %219 = and i32 %.073114, %218
  %220 = add nsw i32 %219, %.073114
  %221 = load i32, ptr %1, align 4, !tbaa !5
  %.not83 = icmp sgt i32 %220, %221
  br i1 %.not83, label %._crit_edge117, label %.lr.ph116, !llvm.loop !23

222:                                              ; preds = %._crit_edge117
  %223 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %21, i32 noundef 0) #5
  store ptr %223, ptr %17, align 8, !tbaa !18
  %224 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %225 = load i32, ptr %224, align 4, !tbaa !16
  %226 = load i32, ptr %15, align 4, !tbaa !5
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %.lr.ph119, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %222, %131, %187
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = load i32, ptr %1, align 4, !tbaa !5
  %.not93130 = icmp sgt i32 %228, %229
  br i1 %.not93130, label %._crit_edge134, label %.lr.ph133

._crit_edge134:                                   ; preds = %.lr.ph133, %.loopexit
  %230 = phi i32 [ %229, %.loopexit ], [ %243, %.lr.ph133 ]
  %231 = load i32, ptr %15, align 4, !tbaa !5
  %.not94135 = icmp sgt i32 %231, %230
  br i1 %.not94135, label %._crit_edge139, label %.lr.ph138

.lr.ph133:                                        ; preds = %.loopexit, %.lr.ph133
  %.064131 = phi i32 [ %242, %.lr.ph133 ], [ %228, %.loopexit ]
  %232 = load i32, ptr %16, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %233) #5
  %235 = load i64, ptr %234, align 8, !tbaa !12
  %236 = sext i32 %.064131 to i64
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %236) #5
  %238 = load i64, ptr %237, align 8, !tbaa !12
  %239 = sub nsw i64 %238, %235
  store i64 %239, ptr %237, align 8, !tbaa !12
  %240 = sub nsw i32 0, %.064131
  %241 = and i32 %.064131, %240
  %242 = add nsw i32 %241, %.064131
  %243 = load i32, ptr %1, align 4, !tbaa !5
  %.not93 = icmp sgt i32 %242, %243
  br i1 %.not93, label %._crit_edge134, label %.lr.ph133, !llvm.loop !25

._crit_edge139:                                   ; preds = %.lr.ph138, %._crit_edge134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %288

.lr.ph138:                                        ; preds = %._crit_edge134, %.lr.ph138
  %.063136 = phi i32 [ %254, %.lr.ph138 ], [ %231, %._crit_edge134 ]
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %245) #5
  %247 = load i64, ptr %246, align 8, !tbaa !12
  %248 = sext i32 %.063136 to i64
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %248) #5
  %250 = load i64, ptr %249, align 8, !tbaa !12
  %251 = add nsw i64 %250, %247
  store i64 %251, ptr %249, align 8, !tbaa !12
  %252 = sub nsw i32 0, %.063136
  %253 = and i32 %.063136, %252
  %254 = add nsw i32 %253, %.063136
  %255 = load i32, ptr %1, align 4, !tbaa !5
  %.not94 = icmp sgt i32 %254, %255
  br i1 %.not94, label %._crit_edge139, label %.lr.ph138, !llvm.loop !26

256:                                              ; preds = %.loopexit95, %.loopexit.split-lp, %185, %146, %127, %115
  %.pn = phi { ptr, i32 } [ %186, %185 ], [ %147, %146 ], [ %128, %127 ], [ %116, %115 ], [ %lpad.loopexit, %.loopexit95 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  br label %257

257:                                              ; preds = %256, %76
  %.pn.pn = phi { ptr, i32 } [ %.pn, %256 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %291

258:                                              ; preds = %60
  %259 = load i32, ptr %15, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = load i32, ptr %14, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %262) #5
  %264 = load i64, ptr %263, align 8, !tbaa !12
  %265 = add nsw i64 %264, %260
  store i64 %265, ptr %263, align 8, !tbaa !12
  br label %288

266:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  %267 = load i32, ptr %14, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %269 = invoke ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %270 unwind label %281

270:                                              ; preds = %266
  store ptr %269, ptr %26, align 8
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  %272 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %271) #5
  %273 = getelementptr inbounds i8, ptr %272, i64 4
  %274 = load i32, ptr %273, align 4, !tbaa !10
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %275) #5
  %277 = load i64, ptr %276, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #5
  %278 = load i32, ptr %14, align 4, !tbaa !5
  %279 = icmp sgt i32 %278, 0
  br i1 %279, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %270
  %.062.lcssa = phi i64 [ %277, %270 ], [ %286, %.lr.ph ]
  %280 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %.062.lcssa)
  br label %288

281:                                              ; preds = %266
  %282 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #5
  br label %291

.lr.ph:                                           ; preds = %270, %.lr.ph
  %.097 = phi i32 [ %287, %.lr.ph ], [ %278, %270 ]
  %.06296 = phi i64 [ %286, %.lr.ph ], [ %277, %270 ]
  %283 = zext nneg i32 %.097 to i64
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %283) #5
  %285 = load i64, ptr %284, align 8, !tbaa !12
  %286 = add nsw i64 %285, %.06296
  %.not78 = add nsw i32 %.097, -1
  %287 = and i32 %.not78, %.097
  %.not146 = icmp eq i32 %287, 0
  br i1 %.not146, label %._crit_edge, label %.lr.ph, !llvm.loop !27

288:                                              ; preds = %._crit_edge, %258, %._crit_edge139, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  %289 = load i32, ptr %2, align 4, !tbaa !5
  %290 = add nsw i32 %289, -1
  store i32 %290, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %289, 0
  br i1 %.not, label %._crit_edge143, label %.lr.ph142, !llvm.loop !28

291:                                              ; preds = %281, %257
  %.pn88 = phi { ptr, i32 } [ %282, %281 ], [ %.pn.pn, %257 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %292

._crit_edge143:                                   ; preds = %288, %44
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void

292:                                              ; preds = %291, %58, %56
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %291 ], [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %293

293:                                              ; preds = %292, %54
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %292 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %294

294:                                              ; preds = %293, %52
  %.pn88.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn, %293 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn88.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(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 void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE11lower_boundERKS1_(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 ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEmmEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiRKiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; 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 nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 4}
!11 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!11, !6, i64 0}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}


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