; LLVM IR from kazunetakahashi/atcoder :: 201411_201509/0426_ABC022 (C)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [310 x %"class.std::vector"], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::tuple", align 4
  %12 = alloca %"class.std::tuple", align 4
  %13 = alloca i32, align 4
  %14 = alloca [310 x [310 x i32]], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 7440, ptr %4) #7
  %34 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %35 = getelementptr inbounds %"class.std::vector", ptr %34, i64 310
  br label %36

36:                                               ; preds = %36, %0
  %37 = phi ptr [ %34, %0 ], [ %38, %36 ]
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %38 = getelementptr inbounds %"class.std::vector", ptr %37, i64 1
  %39 = icmp eq ptr %38, %35
  br i1 %39, label %40, label %36

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %67, %40
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %83

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %48 unwind label %70

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %50 unwind label %70

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %52 unwind label %70

52:                                               ; preds = %50
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = add nsw i32 %53, -1
  store i32 %54, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = add nsw i32 %55, -1
  store i32 %56, ptr %7, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  invoke void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %11, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %60 unwind label %74

60:                                               ; preds = %52
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %61 unwind label %74

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  invoke void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %12, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %65 unwind label %78

65:                                               ; preds = %61
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %66 unwind label %78

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

67:                                               ; preds = %66
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %41, !llvm.loop !9

70:                                               ; preds = %50, %48, %46
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %9, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %10, align 4
  br label %82

74:                                               ; preds = %60, %52
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %9, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %82

78:                                               ; preds = %65, %61
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %9, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %82

82:                                               ; preds = %78, %74, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %361

83:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 100100100, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 384400, ptr %14) #7
  %84 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 0
  %85 = getelementptr inbounds [310 x i32], ptr %84, i64 0, i64 0
  %86 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 0
  %87 = getelementptr inbounds [310 x i32], ptr %86, i64 0, i64 0
  %88 = getelementptr inbounds i32, ptr %87, i64 96100
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %85, ptr noundef %88, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %89 unwind label %95

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %106, %89
  %91 = load i32, ptr %15, align 4, !tbaa !5
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %99, label %94

94:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %109

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

99:                                               ; preds = %90
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %101
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [310 x i32], ptr %102, i64 0, i64 %104
  store i32 0, ptr %105, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %99
  %107 = load i32, ptr %15, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !5
  br label %90, !llvm.loop !11

109:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %165, %109
  %111 = load i32, ptr %16, align 4, !tbaa !5
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %168

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %157, %115
  %117 = load i32, ptr %18, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = load i32, ptr %16, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 %120
  %122 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %123 = icmp ult i64 %118, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %116
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %164

125:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 %127
  %129 = load i32, ptr %18, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #7
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %131) #7
  %133 = load i32, ptr %132, align 4, !tbaa !5
  store i32 %133, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %134 = load i32, ptr %16, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 %135
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #7
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %139) #7
  %141 = load i32, ptr %140, align 4, !tbaa !5
  store i32 %141, ptr %20, align 4, !tbaa !5
  %142 = load i32, ptr %16, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %143
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [310 x i32], ptr %144, i64 0, i64 %146
  %148 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %147, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %149 unwind label %160

149:                                              ; preds = %125
  %150 = load i32, ptr %148, align 4, !tbaa !5
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %152
  %154 = load i32, ptr %19, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [310 x i32], ptr %153, i64 0, i64 %155
  store i32 %150, ptr %156, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %157

157:                                              ; preds = %149
  %158 = load i32, ptr %18, align 4, !tbaa !5
  %159 = add i32 %158, 1
  store i32 %159, ptr %18, align 4, !tbaa !5
  br label %116, !llvm.loop !12

160:                                              ; preds = %125
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %360

164:                                              ; preds = %124
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %16, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %16, align 4, !tbaa !5
  br label %110, !llvm.loop !13

168:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %229, %168
  %170 = load i32, ptr %21, align 4, !tbaa !5
  %171 = load i32, ptr %2, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %232

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %225, %174
  %176 = load i32, ptr %22, align 4, !tbaa !5
  %177 = load i32, ptr %2, align 4, !tbaa !5
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %228

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %217, %180
  %182 = load i32, ptr %23, align 4, !tbaa !5
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %224

186:                                              ; preds = %181
  %187 = load i32, ptr %22, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %188
  %190 = load i32, ptr %23, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [310 x i32], ptr %189, i64 0, i64 %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %193 = load i32, ptr %22, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %194
  %196 = load i32, ptr %21, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [310 x i32], ptr %195, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = load i32, ptr %21, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %201
  %203 = load i32, ptr %23, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [310 x i32], ptr %202, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = add nsw i32 %199, %206
  store i32 %207, ptr %24, align 4, !tbaa !5
  %208 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %192, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %209 unwind label %220

209:                                              ; preds = %186
  %210 = load i32, ptr %208, align 4, !tbaa !5
  %211 = load i32, ptr %22, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %212
  %214 = load i32, ptr %23, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [310 x i32], ptr %213, i64 0, i64 %215
  store i32 %210, ptr %216, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %217

217:                                              ; preds = %209
  %218 = load i32, ptr %23, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %23, align 4, !tbaa !5
  br label %181, !llvm.loop !14

220:                                              ; preds = %186
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %9, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %360

224:                                              ; preds = %185
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %22, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %22, align 4, !tbaa !5
  br label %175, !llvm.loop !15

228:                                              ; preds = %179
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %21, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %21, align 4, !tbaa !5
  br label %169, !llvm.loop !16

232:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %264, %232
  %234 = load i32, ptr %25, align 4, !tbaa !5
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %237 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #7
  %238 = icmp ult i64 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %233
  store i32 23, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %271

240:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %241 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %242 = load i32, ptr %25, align 4, !tbaa !5
  %243 = zext i32 %242 to i64
  %244 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243) #7
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %244) #7
  %246 = load i32, ptr %245, align 4, !tbaa !5
  store i32 %246, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %247 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %248 = load i32, ptr %25, align 4, !tbaa !5
  %249 = zext i32 %248 to i64
  %250 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %249) #7
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %250) #7
  %252 = load i32, ptr %251, align 4, !tbaa !5
  store i32 %252, ptr %27, align 4, !tbaa !5
  %253 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 0
  %254 = load i32, ptr %26, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [310 x i32], ptr %253, i64 0, i64 %255
  %257 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %256, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %258 unwind label %267

258:                                              ; preds = %240
  %259 = load i32, ptr %257, align 4, !tbaa !5
  %260 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 0
  %261 = load i32, ptr %26, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [310 x i32], ptr %260, i64 0, i64 %262
  store i32 %259, ptr %263, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %264

264:                                              ; preds = %258
  %265 = load i32, ptr %25, align 4, !tbaa !5
  %266 = add i32 %265, 1
  store i32 %266, ptr %25, align 4, !tbaa !5
  br label %233, !llvm.loop !17

267:                                              ; preds = %240
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %9, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %360

271:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 100100100, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %272

272:                                              ; preds = %332, %271
  %273 = load i32, ptr %29, align 4, !tbaa !5
  %274 = zext i32 %273 to i64
  %275 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %276 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #7
  %277 = icmp ult i64 %274, %276
  br i1 %277, label %279, label %278

278:                                              ; preds = %272
  store i32 26, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %335

279:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %280 = load i32, ptr %29, align 4, !tbaa !5
  %281 = add i32 %280, 1
  store i32 %281, ptr %30, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %324, %279
  %283 = load i32, ptr %30, align 4, !tbaa !5
  %284 = zext i32 %283 to i64
  %285 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %286 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %285) #7
  %287 = icmp ult i64 %284, %286
  br i1 %287, label %289, label %288

288:                                              ; preds = %282
  store i32 29, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %331

289:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %290 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %291 = load i32, ptr %29, align 4, !tbaa !5
  %292 = zext i32 %291 to i64
  %293 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef %292) #7
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %293) #7
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %297 = load i32, ptr %29, align 4, !tbaa !5
  %298 = zext i32 %297 to i64
  %299 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %296, i64 noundef %298) #7
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %299) #7
  %301 = load i32, ptr %300, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [310 x [310 x i32]], ptr %14, i64 0, i64 %302
  %304 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %305 = load i32, ptr %30, align 4, !tbaa !5
  %306 = zext i32 %305 to i64
  %307 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %304, i64 noundef %306) #7
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %307) #7
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [310 x i32], ptr %303, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = add nsw i32 %295, %312
  %314 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i64 0, i64 0
  %315 = load i32, ptr %30, align 4, !tbaa !5
  %316 = zext i32 %315 to i64
  %317 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %314, i64 noundef %316) #7
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %317) #7
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = add nsw i32 %313, %319
  store i32 %320, ptr %31, align 4, !tbaa !5
  %321 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %322 unwind label %327

322:                                              ; preds = %289
  %323 = load i32, ptr %321, align 4, !tbaa !5
  store i32 %323, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %324

324:                                              ; preds = %322
  %325 = load i32, ptr %30, align 4, !tbaa !5
  %326 = add i32 %325, 1
  store i32 %326, ptr %30, align 4, !tbaa !5
  br label %282, !llvm.loop !18

327:                                              ; preds = %289
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %9, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %359

331:                                              ; preds = %288
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %29, align 4, !tbaa !5
  %334 = add i32 %333, 1
  store i32 %334, ptr %29, align 4, !tbaa !5
  br label %272, !llvm.loop !19

335:                                              ; preds = %278
  %336 = load i32, ptr %28, align 4, !tbaa !5
  %337 = icmp slt i32 %336, 100100100
  br i1 %337, label %338, label %340

338:                                              ; preds = %335
  %339 = load i32, ptr %28, align 4, !tbaa !5
  br label %341

340:                                              ; preds = %335
  br label %341

341:                                              ; preds = %340, %338
  %342 = phi i32 [ %339, %338 ], [ -1, %340 ]
  %343 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %342)
          to label %344 unwind label %355

344:                                              ; preds = %341
  %345 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %343, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %346 unwind label %355

346:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 384400, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %347 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %348 = getelementptr inbounds %"class.std::vector", ptr %347, i64 310
  br label %349

349:                                              ; preds = %349, %346
  %350 = phi ptr [ %348, %346 ], [ %351, %349 ]
  %351 = getelementptr inbounds %"class.std::vector", ptr %350, i64 -1
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %351) #7
  %352 = icmp eq ptr %351, %347
  br i1 %352, label %353, label %349

353:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 7440, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %354 = load i32, ptr %1, align 4
  ret i32 %354

355:                                              ; preds = %344, %341
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %9, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %10, align 4
  br label %359

359:                                              ; preds = %355, %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %360

360:                                              ; preds = %359, %267, %220, %160, %95
  call void @llvm.lifetime.end.p0(i64 384400, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %361

361:                                              ; preds = %360, %82
  %362 = getelementptr inbounds [310 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %363 = getelementptr inbounds %"class.std::vector", ptr %362, i64 310
  br label %364

364:                                              ; preds = %364, %361
  %365 = phi ptr [ %363, %361 ], [ %366, %364 ]
  %366 = getelementptr inbounds %"class.std::vector", ptr %365, i64 -1
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %366) #7
  %367 = icmp eq ptr %366, %362
  br i1 %367, label %368, label %364

368:                                              ; preds = %364
  call void @llvm.lifetime.end.p0(i64 7440, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %369

369:                                              ; preds = %368
  %370 = load ptr, ptr %9, align 8
  %371 = load i32, ptr %10, align 4
  %372 = insertvalue { ptr, i32 } poison, ptr %370, 0
  %373 = insertvalue { ptr, i32 } %372, i32 %371, 1
  resume { ptr, i32 } %373
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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

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

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

; 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)) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int>, std::allocator<std::tuple<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.1" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.1" = type { i32 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [310 x %"class.std::vector"], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::tuple", align 4
  %8 = alloca %"class.std::tuple", align 4
  %9 = alloca i32, align 4
  %10 = alloca [310 x [310 x i32]], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 7440, ptr nonnull %3) #7
  br label %18

18:                                               ; preds = %18, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %18 ]
  %.ptr = getelementptr inbounds i8, ptr %3, i64 %.idx
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #7
  %.add = add nuw nsw i64 %.idx, 24
  %19 = icmp eq i64 %.add, 7440
  br i1 %19, label %.preheader81, label %18

.preheader81:                                     ; preds = %18
  %20 = getelementptr inbounds i8, ptr %3, i64 7440
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %43, %.preheader81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 100100100, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 384400, ptr nonnull %10) #7
  %23 = getelementptr inbounds i8, ptr %10, i64 384400
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %10, ptr noundef nonnull %23, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %.preheader80 unwind label %55

.preheader80:                                     ; preds = %._crit_edge
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph84.preheader, label %.preheader

.lr.ph84.preheader:                               ; preds = %.preheader80
  %wide.trip.count = zext nneg i32 %24 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %26 = icmp ult i32 %24, 4
  br i1 %26, label %.preheader79.unr-lcssa, label %.lr.ph84.preheader.new

.lr.ph84.preheader.new:                           ; preds = %.lr.ph84.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph84

.lr.ph:                                           ; preds = %.preheader81, %43
  %.05182 = phi i32 [ %44, %43 ], [ 0, %.preheader81 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %28 unwind label %47

28:                                               ; preds = %.lr.ph
  %29 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %30 unwind label %47

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %32 unwind label %47

32:                                               ; preds = %30
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = add nsw i32 %33, -1
  store i32 %34, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = add nsw i32 %35, -1
  store i32 %36, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %34 to i64
  %38 = getelementptr inbounds [310 x %"class.std::vector"], ptr %3, i64 0, i64 %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %7, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %39 unwind label %49

39:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [310 x %"class.std::vector"], ptr %3, i64 0, i64 %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %8, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  invoke void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %43 unwind label %51

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %44 = add nuw nsw i32 %.05182, 1
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !9

47:                                               ; preds = %30, %28, %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %53

49:                                               ; preds = %32
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %53

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %53

53:                                               ; preds = %51, %49, %47
  %.pn72 = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %169

.preheader79.unr-lcssa:                           ; preds = %.lr.ph84, %.lr.ph84.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph84.preheader ], [ %indvars.iv.next.3, %.lr.ph84 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader79, label %.lr.ph84.epil

.lr.ph84.epil:                                    ; preds = %.preheader79.unr-lcssa, %.lr.ph84.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph84.epil ], [ %indvars.iv.unr, %.preheader79.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph84.epil ], [ 0, %.preheader79.unr-lcssa ]
  %54 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv.epil, i64 %indvars.iv.epil
  store i32 0, ptr %54, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader79, label %.lr.ph84.epil, !llvm.loop !11

.preheader79:                                     ; preds = %.lr.ph84.epil, %.preheader79.unr-lcssa
  %.not127 = icmp eq i32 %24, 1
  br i1 %.not127, label %.preheader77, label %.preheader78

55:                                               ; preds = %._crit_edge
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %168

.lr.ph84:                                         ; preds = %.lr.ph84, %.lr.ph84.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %indvars.iv.next.3, %.lr.ph84 ]
  %niter = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %niter.next.3, %.lr.ph84 ]
  %57 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv, i64 %indvars.iv
  store i32 0, ptr %57, align 16, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %58 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv.next, i64 %indvars.iv.next
  store i32 0, ptr %58, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %59 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv.next.1, i64 %indvars.iv.next.1
  store i32 0, ptr %59, align 8, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %60 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv.next.2, i64 %indvars.iv.next.2
  store i32 0, ptr %60, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader79.unr-lcssa, label %.lr.ph84, !llvm.loop !13

.preheader78:                                     ; preds = %.preheader79, %._crit_edge87
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %._crit_edge87 ], [ 1, %.preheader79 ]
  %61 = getelementptr inbounds [310 x %"class.std::vector"], ptr %3, i64 0, i64 %indvars.iv110
  %62 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %.not = icmp eq i64 %62, 0
  br i1 %.not, label %._crit_edge87, label %.lr.ph86

.preheader77:                                     ; preds = %._crit_edge87, %.preheader79
  %63 = phi i32 [ %24, %.preheader79 ], [ %65, %._crit_edge87 ]
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.preheader76, label %.preheader

._crit_edge87:                                    ; preds = %.lr.ph86, %.preheader78
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next111, %66
  br i1 %67, label %.preheader78, label %.preheader77, !llvm.loop !14

.lr.ph86:                                         ; preds = %.preheader78, %.lr.ph86
  %68 = phi i64 [ %80, %.lr.ph86 ], [ 0, %.preheader78 ]
  %.05785 = phi i32 [ %79, %.lr.ph86 ], [ 0, %.preheader78 ]
  %69 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %68) #7
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %69) #7
  %71 = load i32, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %68) #7
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %72) #7
  %74 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr %11, align 4, !tbaa !5
  %75 = sext i32 %71 to i64
  %76 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv110, i64 %75
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %76, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %76, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %79 = add i32 %.05785, 1
  %80 = zext i32 %79 to i64
  %81 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %82 = icmp ugt i64 %81, %80
  br i1 %82, label %.lr.ph86, label %._crit_edge87, !llvm.loop !15

.preheader76:                                     ; preds = %.preheader77, %._crit_edge93
  %83 = phi i32 [ %90, %._crit_edge93 ], [ %63, %.preheader77 ]
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge93 ], [ 0, %.preheader77 ]
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.preheader75, label %._crit_edge93

.preheader:                                       ; preds = %._crit_edge93, %.preheader80, %.preheader77
  %85 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %.not105 = icmp eq i64 %85, 0
  br i1 %.not105, label %._crit_edge97, label %.lr.ph96

.preheader75:                                     ; preds = %.preheader76, %._crit_edge91
  %86 = phi i32 [ %93, %._crit_edge91 ], [ %83, %.preheader76 ]
  %87 = phi i32 [ %94, %._crit_edge91 ], [ %83, %.preheader76 ]
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %._crit_edge91 ], [ 0, %.preheader76 ]
  %88 = icmp sgt i32 %87, 0
  br i1 %88, label %.lr.ph90, label %.preheader75.._crit_edge91_crit_edge

.preheader75.._crit_edge91_crit_edge:             ; preds = %.preheader75
  %.pre122 = sext i32 %87 to i64
  br label %._crit_edge91

.lr.ph90:                                         ; preds = %.preheader75
  %89 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv116, i64 %indvars.iv119
  br label %96

._crit_edge93:                                    ; preds = %._crit_edge91, %.preheader76
  %90 = phi i32 [ %83, %.preheader76 ], [ %93, %._crit_edge91 ]
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next120, %91
  br i1 %92, label %.preheader76, label %.preheader, !llvm.loop !16

._crit_edge91:                                    ; preds = %96, %.preheader75.._crit_edge91_crit_edge
  %.pre-phi = phi i64 [ %.pre122, %.preheader75.._crit_edge91_crit_edge ], [ %105, %96 ]
  %93 = phi i32 [ %86, %.preheader75.._crit_edge91_crit_edge ], [ %104, %96 ]
  %94 = phi i32 [ %87, %.preheader75.._crit_edge91_crit_edge ], [ %104, %96 ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %95 = icmp slt i64 %indvars.iv.next117, %.pre-phi
  br i1 %95, label %.preheader75, label %._crit_edge93, !llvm.loop !18

96:                                               ; preds = %.lr.ph90, %96
  %indvars.iv113 = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next114, %96 ]
  %97 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv116, i64 %indvars.iv113
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %98 = load i32, ptr %89, align 4, !tbaa !5
  %99 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %indvars.iv119, i64 %indvars.iv113
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, %98
  store i32 %101, ptr %12, align 4, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %97, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %104 = load i32, ptr %1, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next114, %105
  br i1 %106, label %96, label %._crit_edge91, !llvm.loop !19

._crit_edge97:                                    ; preds = %.lr.ph96, %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 100100100, ptr %14, align 4, !tbaa !5
  %107 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %.not106 = icmp eq i64 %107, 0
  br i1 %.not106, label %._crit_edge104.thread, label %.lr.ph103

.lr.ph96:                                         ; preds = %.preheader, %.lr.ph96
  %108 = phi i64 [ %120, %.lr.ph96 ], [ 0, %.preheader ]
  %.05295 = phi i32 [ %119, %.lr.ph96 ], [ 0, %.preheader ]
  %109 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %108) #7
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %109) #7
  %111 = load i32, ptr %110, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %112 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %108) #7
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %112) #7
  %114 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %114, ptr %13, align 4, !tbaa !5
  %115 = sext i32 %111 to i64
  %116 = getelementptr inbounds [310 x i32], ptr %10, i64 0, i64 %115
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %116, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %118 = load i32, ptr %117, align 4, !tbaa !5
  store i32 %118, ptr %116, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  %119 = add i32 %.05295, 1
  %120 = zext i32 %119 to i64
  %121 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %122 = icmp ugt i64 %121, %120
  br i1 %122, label %.lr.ph96, label %._crit_edge97, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph100, %.lr.ph103
  %123 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %124 = icmp ugt i64 %123, %130
  br i1 %124, label %.lr.ph103, label %._crit_edge104, !llvm.loop !21

._crit_edge104:                                   ; preds = %.loopexit
  %.pre = load i32, ptr %14, align 4
  %.pre.fr = freeze i32 %.pre
  %125 = icmp slt i32 %.pre.fr, 100100100
  %spec.select = select i1 %125, i32 %.pre.fr, i32 -1
  br label %._crit_edge104.thread

._crit_edge104.thread:                            ; preds = %._crit_edge104, %._crit_edge97
  %126 = phi i32 [ -1, %._crit_edge97 ], [ %spec.select, %._crit_edge104 ]
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %126)
          to label %158 unwind label %166

.lr.ph103:                                        ; preds = %._crit_edge97, %.loopexit
  %128 = phi i64 [ %130, %.loopexit ], [ 0, %._crit_edge97 ]
  %.050101 = phi i32 [ %129, %.loopexit ], [ 0, %._crit_edge97 ]
  %129 = add i32 %.050101, 1
  %130 = zext i32 %129 to i64
  %131 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %132 = icmp ugt i64 %131, %130
  br i1 %132, label %.lr.ph100, label %.loopexit

.lr.ph100:                                        ; preds = %.lr.ph103, %.lr.ph100
  %133 = phi i64 [ %155, %.lr.ph100 ], [ %130, %.lr.ph103 ]
  %.098 = phi i32 [ %154, %.lr.ph100 ], [ %129, %.lr.ph103 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %134 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %128) #7
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %134) #7
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %128) #7
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %137) #7
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %133) #7
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %141) #7
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [310 x [310 x i32]], ptr %10, i64 0, i64 %140, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, %136
  %148 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5tupleIJiiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %133) #7
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJiiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 4 dereferenceable(8) %148) #7
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = add nsw i32 %147, %150
  store i32 %151, ptr %15, align 4, !tbaa !5
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %153 = load i32, ptr %152, align 4, !tbaa !5
  store i32 %153, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  %154 = add i32 %.098, 1
  %155 = zext i32 %154 to i64
  %156 = call noundef i64 @_ZNKSt6vectorISt5tupleIJiiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %157 = icmp ugt i64 %156, %155
  br i1 %157, label %.lr.ph100, label %.loopexit, !llvm.loop !22

158:                                              ; preds = %._crit_edge104.thread
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %160 unwind label %166

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 384400, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %161

161:                                              ; preds = %161, %160
  %162 = phi ptr [ %20, %160 ], [ %163, %161 ]
  %163 = getelementptr inbounds i8, ptr %162, i64 -24
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %163) #7
  %164 = icmp eq ptr %163, %3
  br i1 %164, label %165, label %161

165:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 7440, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

166:                                              ; preds = %158, %._crit_edge104.thread
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  br label %168

168:                                              ; preds = %166, %55
  %.pn = phi { ptr, i32 } [ %167, %166 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 384400, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %169

169:                                              ; preds = %168, %53
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %53 ], [ %.pn, %168 ]
  br label %170

170:                                              ; preds = %170, %169
  %171 = phi ptr [ %20, %169 ], [ %172, %170 ]
  %172 = getelementptr inbounds i8, ptr %171, i64 -24
  call void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #7
  %173 = icmp eq ptr %172, %3
  br i1 %173, label %174, label %170

174:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 7440, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn72.pn
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiS0_EESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

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

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

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

; 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 #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = distinct !{!18, !10, !17}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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