; LLVM IR from tangjz/acm-icpc :: codeforces/complete/1638F.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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ5solvevE1h = external hidden global [10003 x i64], align 16
@_ZZ5solvevE3pre = external hidden global [10003 x i64], align 16
@_ZZ5solvevE2pL = external hidden global [10003 x i32], align 16
@_ZZ5solvevE2pR = external hidden global [10003 x i32], align 16
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = 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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::stack", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::stack", align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1)
  store i64 0, ptr @_ZZ5solvevE3pre, align 16, !tbaa !5
  %35 = load i32, ptr %1, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %37
  store i64 0, ptr %38, align 8, !tbaa !5
  store i64 0, ptr @_ZZ5solvevE1h, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %122, %0
  %40 = load i32, ptr %2, align 4, !tbaa !9
  %41 = load i32, ptr %1, align 4, !tbaa !9
  %42 = icmp sle i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %125

44:                                               ; preds = %39
  %45 = load i32, ptr %2, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds i64, ptr @_ZZ5solvevE1h, i64 %46
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %47)
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = sub nsw i32 %49, 1
  %51 = load i32, ptr %2, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %68, %44
  %55 = load i32, ptr %2, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = icmp sge i64 %61, %65
  br i1 %66, label %67, label %79

67:                                               ; preds = %54
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %2, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %2, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %77
  store i32 %75, ptr %78, align 4, !tbaa !9
  br label %54, !llvm.loop !11

79:                                               ; preds = %54
  %80 = load i32, ptr %2, align 4, !tbaa !9
  %81 = sub nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = load i32, ptr %2, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %86
  store i64 %84, ptr %87, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %88 = load i32, ptr %2, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  store i32 %91, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %92 = load i32, ptr %2, align 4, !tbaa !9
  store i32 %92, ptr %5, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %115, %79
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %121

97:                                               ; preds = %93
  %98 = load i32, ptr %2, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %101 = load i32, ptr %2, align 4, !tbaa !9
  %102 = load i32, ptr %4, align 4, !tbaa !9
  %103 = sub nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = mul nsw i64 %104, %108
  store i64 %109, ptr %6, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %111 = load i64, ptr %110, align 8, !tbaa !5
  %112 = load i32, ptr %2, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %113
  store i64 %111, ptr %114, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %115

115:                                              ; preds = %97
  %116 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %116, ptr %5, align 4, !tbaa !9
  %117 = load i32, ptr %4, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !9
  store i32 %120, ptr %4, align 4, !tbaa !9
  br label %93, !llvm.loop !13

121:                                              ; preds = %96
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %2, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %2, align 4, !tbaa !9
  br label %39, !llvm.loop !14

125:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %126 = load i32, ptr %1, align 4, !tbaa !9
  store i32 %126, ptr %8, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %555, %125
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = icmp sge i32 %128, 1
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %559

131:                                              ; preds = %127
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %135
  store i32 %133, ptr %136, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %151, %131
  %138 = load i32, ptr %8, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !5
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !5
  %149 = icmp sge i64 %144, %148
  br i1 %149, label %150, label %162

150:                                              ; preds = %137
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %160
  store i32 %158, ptr %161, align 4, !tbaa !9
  br label %137, !llvm.loop !15

162:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %163 = load i32, ptr %8, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = load i32, ptr %8, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = sub nsw i32 %166, %170
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %178 = mul nsw i64 %173, %177
  store i64 %178, ptr %9, align 8, !tbaa !5
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %180 = load i64, ptr %179, align 8, !tbaa !5
  store i64 %180, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %181 = load i32, ptr %8, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !9
  store i32 %184, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %185 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %185, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %186 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %186, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  br label %187

187:                                              ; preds = %192, %162
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %1, align 4, !tbaa !9
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %191, label %201

191:                                              ; preds = %187
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %192 unwind label %197

192:                                              ; preds = %191
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  br label %187, !llvm.loop !16

197:                                              ; preds = %230, %228, %211, %191
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %14, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %15, align 4
  br label %319

201:                                              ; preds = %187
  br label %202

202:                                              ; preds = %296, %201
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %205, label %303

205:                                              ; preds = %202
  %206 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %206, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !9
  store i32 %210, ptr %10, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %232, %205
  %212 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %213 unwind label %197

213:                                              ; preds = %211
  %214 = load i32, ptr %212, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !5
  %218 = load i32, ptr %8, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !5
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !5
  %226 = sub nsw i64 %221, %225
  %227 = icmp sle i64 %217, %226
  br i1 %227, label %228, label %233

228:                                              ; preds = %213
  %229 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %230 unwind label %197

230:                                              ; preds = %228
  %231 = load i32, ptr %229, align 4, !tbaa !9
  store i32 %231, ptr %12, align 4, !tbaa !9
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %232 unwind label %197

232:                                              ; preds = %230
  br label %211, !llvm.loop !17

233:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = load i32, ptr %8, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = sub nsw i32 %234, %238
  %240 = sub nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = load i32, ptr %8, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %243
  %245 = load i64, ptr %244, align 8, !tbaa !5
  %246 = load i32, ptr %11, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %247
  %249 = load i64, ptr %248, align 8, !tbaa !5
  %250 = sub nsw i64 %245, %249
  %251 = mul nsw i64 %241, %250
  store i64 %251, ptr %16, align 8, !tbaa !5
  %252 = load i32, ptr %12, align 4, !tbaa !9
  %253 = load i32, ptr %1, align 4, !tbaa !9
  %254 = icmp sle i32 %252, %253
  br i1 %254, label %255, label %279

255:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = load i32, ptr %8, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = sub nsw i32 %259, %263
  %265 = sub nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !5
  %271 = mul nsw i64 %266, %270
  store i64 %271, ptr %17, align 8, !tbaa !5
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %273 unwind label %275

273:                                              ; preds = %255
  %274 = load i64, ptr %272, align 8, !tbaa !5
  store i64 %274, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %279

275:                                              ; preds = %255
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %14, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %302

279:                                              ; preds = %273, %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %280 = load i32, ptr %8, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !9
  %284 = load i32, ptr %10, align 4, !tbaa !9
  %285 = sub nsw i32 %283, %284
  %286 = sub nsw i32 %285, 1
  %287 = sext i32 %286 to i64
  %288 = load i32, ptr %11, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %289
  %291 = load i64, ptr %290, align 8, !tbaa !5
  %292 = mul nsw i64 %287, %291
  %293 = load i64, ptr %16, align 8, !tbaa !5
  %294 = add nsw i64 %292, %293
  store i64 %294, ptr %18, align 8, !tbaa !5
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %296 unwind label %298

296:                                              ; preds = %279
  %297 = load i64, ptr %295, align 8, !tbaa !5
  store i64 %297, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %202, !llvm.loop !18

298:                                              ; preds = %279
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %14, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %302

302:                                              ; preds = %298, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %319

303:                                              ; preds = %202
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %304 = load i32, ptr %8, align 4, !tbaa !9
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !9
  store i32 %307, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %308 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %308, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %309 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %309, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  br label %310

310:                                              ; preds = %314, %303
  %311 = load i32, ptr %21, align 4, !tbaa !9
  %312 = icmp sgt i32 %311, 0
  br i1 %312, label %313, label %324

313:                                              ; preds = %310
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %314 unwind label %320

314:                                              ; preds = %313
  %315 = load i32, ptr %21, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !9
  store i32 %318, ptr %21, align 4, !tbaa !9
  br label %310, !llvm.loop !19

319:                                              ; preds = %302, %197
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %558

320:                                              ; preds = %390, %388, %371, %313
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %14, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %15, align 4
  br label %522

324:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %325 = load i32, ptr %8, align 4, !tbaa !9
  %326 = sub nsw i32 %325, 1
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %327
  %329 = load i64, ptr %328, align 8, !tbaa !5
  %330 = load i32, ptr %19, align 4, !tbaa !9
  %331 = load i32, ptr %8, align 4, !tbaa !9
  %332 = sub nsw i32 %330, %331
  %333 = sext i32 %332 to i64
  %334 = load i32, ptr %20, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %335
  %337 = load i64, ptr %336, align 8, !tbaa !5
  %338 = mul nsw i64 %333, %337
  %339 = add nsw i64 %329, %338
  store i64 %339, ptr %23, align 8, !tbaa !5
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %341 unwind label %393

341:                                              ; preds = %324
  %342 = load i64, ptr %340, align 8, !tbaa !5
  store i64 %342, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %343

343:                                              ; preds = %463, %341
  %344 = load i32, ptr %19, align 4, !tbaa !9
  %345 = load i32, ptr %1, align 4, !tbaa !9
  %346 = icmp sle i32 %344, %345
  br i1 %346, label %347, label %470

347:                                              ; preds = %343
  %348 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %348, ptr %20, align 4, !tbaa !9
  %349 = load i32, ptr %19, align 4, !tbaa !9
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !9
  store i32 %352, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %353 = load i32, ptr %8, align 4, !tbaa !9
  %354 = sub nsw i32 %353, 1
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %355
  %357 = load i64, ptr %356, align 8, !tbaa !5
  %358 = load i32, ptr %19, align 4, !tbaa !9
  %359 = load i32, ptr %8, align 4, !tbaa !9
  %360 = sub nsw i32 %358, %359
  %361 = sext i32 %360 to i64
  %362 = load i32, ptr %20, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %363
  %365 = load i64, ptr %364, align 8, !tbaa !5
  %366 = mul nsw i64 %361, %365
  %367 = add nsw i64 %357, %366
  store i64 %367, ptr %24, align 8, !tbaa !5
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %369 unwind label %397

369:                                              ; preds = %347
  %370 = load i64, ptr %368, align 8, !tbaa !5
  store i64 %370, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %371

371:                                              ; preds = %392, %369
  %372 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
          to label %373 unwind label %320

373:                                              ; preds = %371
  %374 = load i32, ptr %372, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %375
  %377 = load i64, ptr %376, align 8, !tbaa !5
  %378 = load i32, ptr %8, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %379
  %381 = load i64, ptr %380, align 8, !tbaa !5
  %382 = load i32, ptr %20, align 4, !tbaa !9
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %383
  %385 = load i64, ptr %384, align 8, !tbaa !5
  %386 = sub nsw i64 %381, %385
  %387 = icmp sle i64 %377, %386
  br i1 %387, label %388, label %401

388:                                              ; preds = %373
  %389 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
          to label %390 unwind label %320

390:                                              ; preds = %388
  %391 = load i32, ptr %389, align 4, !tbaa !9
  store i32 %391, ptr %21, align 4, !tbaa !9
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
          to label %392 unwind label %320

392:                                              ; preds = %390
  br label %371, !llvm.loop !20

393:                                              ; preds = %324
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %14, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %522

397:                                              ; preds = %347
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %14, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %522

401:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %402 = load i32, ptr %8, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !9
  %406 = load i32, ptr %21, align 4, !tbaa !9
  %407 = sub nsw i32 %405, %406
  %408 = sub nsw i32 %407, 1
  %409 = sext i32 %408 to i64
  %410 = load i32, ptr %8, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %411
  %413 = load i64, ptr %412, align 8, !tbaa !5
  %414 = load i32, ptr %20, align 4, !tbaa !9
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %415
  %417 = load i64, ptr %416, align 8, !tbaa !5
  %418 = sub nsw i64 %413, %417
  %419 = mul nsw i64 %409, %418
  store i64 %419, ptr %25, align 8, !tbaa !5
  %420 = load i32, ptr %21, align 4, !tbaa !9
  %421 = icmp sgt i32 %420, 0
  br i1 %421, label %422, label %446

422:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %423 = load i32, ptr %8, align 4, !tbaa !9
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !9
  %427 = load i32, ptr %21, align 4, !tbaa !9
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %428
  %430 = load i32, ptr %429, align 4, !tbaa !9
  %431 = sub nsw i32 %426, %430
  %432 = sub nsw i32 %431, 1
  %433 = sext i32 %432 to i64
  %434 = load i32, ptr %21, align 4, !tbaa !9
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %435
  %437 = load i64, ptr %436, align 8, !tbaa !5
  %438 = mul nsw i64 %433, %437
  store i64 %438, ptr %26, align 8, !tbaa !5
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %440 unwind label %442

440:                                              ; preds = %422
  %441 = load i64, ptr %439, align 8, !tbaa !5
  store i64 %441, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %446

442:                                              ; preds = %422
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %14, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %469

446:                                              ; preds = %440, %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %447 = load i64, ptr %25, align 8, !tbaa !5
  %448 = load i32, ptr %19, align 4, !tbaa !9
  %449 = load i32, ptr %8, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %450
  %452 = load i32, ptr %451, align 4, !tbaa !9
  %453 = sub nsw i32 %448, %452
  %454 = sub nsw i32 %453, 1
  %455 = sext i32 %454 to i64
  %456 = load i32, ptr %20, align 4, !tbaa !9
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %457
  %459 = load i64, ptr %458, align 8, !tbaa !5
  %460 = mul nsw i64 %455, %459
  %461 = add nsw i64 %447, %460
  store i64 %461, ptr %27, align 8, !tbaa !5
  %462 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %463 unwind label %465

463:                                              ; preds = %446
  %464 = load i64, ptr %462, align 8, !tbaa !5
  store i64 %464, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %343, !llvm.loop !21

465:                                              ; preds = %446
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %14, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %469

469:                                              ; preds = %465, %442
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %522

470:                                              ; preds = %343
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %471 = load i32, ptr %8, align 4, !tbaa !9
  %472 = sext i32 %471 to i64
  %473 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %472
  %474 = load i32, ptr %473, align 4, !tbaa !9
  store i32 %474, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %475 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %475, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %476 = load i32, ptr %8, align 4, !tbaa !9
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %477
  %479 = load i32, ptr %478, align 4, !tbaa !9
  store i32 %479, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %480 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %480, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %481 = load i32, ptr %8, align 4, !tbaa !9
  %482 = sext i32 %481 to i64
  %483 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %482
  %484 = load i64, ptr %483, align 8, !tbaa !5
  store i64 %484, ptr %32, align 8, !tbaa !5
  br label %485

485:                                              ; preds = %553, %470
  br label %486

486:                                              ; preds = %485
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %487 = load i32, ptr %30, align 4, !tbaa !9
  %488 = load i32, ptr %28, align 4, !tbaa !9
  %489 = sub nsw i32 %487, %488
  %490 = sub nsw i32 %489, 1
  %491 = sext i32 %490 to i64
  %492 = load i64, ptr %32, align 8, !tbaa !5
  %493 = mul nsw i64 %491, %492
  %494 = load i32, ptr %8, align 4, !tbaa !9
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %495
  %497 = load i32, ptr %496, align 4, !tbaa !9
  %498 = load i32, ptr %8, align 4, !tbaa !9
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %499
  %501 = load i32, ptr %500, align 4, !tbaa !9
  %502 = sub nsw i32 %497, %501
  %503 = sub nsw i32 %502, 1
  %504 = sext i32 %503 to i64
  %505 = load i32, ptr %8, align 4, !tbaa !9
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %506
  %508 = load i64, ptr %507, align 8, !tbaa !5
  %509 = load i64, ptr %32, align 8, !tbaa !5
  %510 = sub nsw i64 %508, %509
  %511 = mul nsw i64 %504, %510
  %512 = add nsw i64 %493, %511
  store i64 %512, ptr %33, align 8, !tbaa !5
  %513 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %514 = load i64, ptr %513, align 8, !tbaa !5
  store i64 %514, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  %515 = load i32, ptr %28, align 4, !tbaa !9
  %516 = icmp sle i32 %515, 0
  br i1 %516, label %517, label %523

517:                                              ; preds = %486
  %518 = load i32, ptr %30, align 4, !tbaa !9
  %519 = load i32, ptr %1, align 4, !tbaa !9
  %520 = icmp sgt i32 %518, %519
  br i1 %520, label %521, label %523

521:                                              ; preds = %517
  br label %554

522:                                              ; preds = %469, %397, %393, %320
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %558

523:                                              ; preds = %517, %486
  %524 = load i32, ptr %28, align 4, !tbaa !9
  %525 = sext i32 %524 to i64
  %526 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %525
  %527 = load i64, ptr %526, align 8, !tbaa !5
  %528 = load i32, ptr %30, align 4, !tbaa !9
  %529 = sext i32 %528 to i64
  %530 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %529
  %531 = load i64, ptr %530, align 8, !tbaa !5
  %532 = icmp sgt i64 %527, %531
  br i1 %532, label %533, label %543

533:                                              ; preds = %523
  %534 = load i32, ptr %28, align 4, !tbaa !9
  %535 = sext i32 %534 to i64
  %536 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %535
  %537 = load i64, ptr %536, align 8, !tbaa !5
  store i64 %537, ptr %32, align 8, !tbaa !5
  %538 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %538, ptr %29, align 4, !tbaa !9
  %539 = load i32, ptr %28, align 4, !tbaa !9
  %540 = sext i32 %539 to i64
  %541 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %540
  %542 = load i32, ptr %541, align 4, !tbaa !9
  store i32 %542, ptr %28, align 4, !tbaa !9
  br label %553

543:                                              ; preds = %523
  %544 = load i32, ptr %30, align 4, !tbaa !9
  %545 = sext i32 %544 to i64
  %546 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %545
  %547 = load i64, ptr %546, align 8, !tbaa !5
  store i64 %547, ptr %32, align 8, !tbaa !5
  %548 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %548, ptr %31, align 4, !tbaa !9
  %549 = load i32, ptr %30, align 4, !tbaa !9
  %550 = sext i32 %549 to i64
  %551 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %550
  %552 = load i32, ptr %551, align 4, !tbaa !9
  store i32 %552, ptr %30, align 4, !tbaa !9
  br label %553

553:                                              ; preds = %543, %533
  br label %485, !llvm.loop !22

554:                                              ; preds = %521
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %555

555:                                              ; preds = %554
  %556 = load i32, ptr %8, align 4, !tbaa !9
  %557 = add nsw i32 %556, -1
  store i32 %557, ptr %8, align 4, !tbaa !9
  br label %127, !llvm.loop !23

558:                                              ; preds = %522, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %562

559:                                              ; preds = %130
  %560 = load i64, ptr %7, align 8, !tbaa !5
  %561 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %560)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

562:                                              ; preds = %558
  %563 = load ptr, ptr %14, align 8
  %564 = load i32, ptr %15, align 4
  %565 = insertvalue { ptr, i32 } poison, ptr %563, 0
  %566 = insertvalue { ptr, i32 } %565, i32 %564, 1
  resume { ptr, i32 } %566
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare i32 @printf(ptr noundef, ...) #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; 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::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ5solvevE1h = external hidden global [10003 x i64], align 16
@_ZZ5solvevE3pre = external hidden global [10003 x i64], align 16
@_ZZ5solvevE2pL = external hidden local_unnamed_addr global [10003 x i32], align 16
@_ZZ5solvevE2pR = external hidden local_unnamed_addr global [10003 x i32], align 16
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::stack", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::stack", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  store i64 0, ptr @_ZZ5solvevE3pre, align 16, !tbaa !5
  %19 = load i32, ptr %1, align 4, !tbaa !9
  %20 = add nsw i32 %19, 1
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %21
  store i64 0, ptr %22, align 8, !tbaa !5
  store i64 0, ptr @_ZZ5solvevE1h, align 16, !tbaa !5
  %.not125 = icmp slt i32 %19, 1
  br i1 %.not125, label %._crit_edge129.thread, label %.lr.ph128

._crit_edge129.thread:                            ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %._crit_edge163

._crit_edge129:                                   ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8, !tbaa !5
  %23 = icmp sgt i32 %44, 0
  br i1 %23, label %.lr.ph162.preheader, label %._crit_edge163

.lr.ph162.preheader:                              ; preds = %._crit_edge129
  %24 = zext nneg i32 %44 to i64
  br label %.lr.ph162

.lr.ph128:                                        ; preds = %0, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ 1, %0 ]
  %25 = getelementptr inbounds i64, ptr @_ZZ5solvevE1h, i64 %indvars.iv
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %25)
  %27 = add nsw i64 %indvars.iv, -1
  %28 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %indvars.iv
  %29 = load i64, ptr %25, align 8, !tbaa !5
  %30 = trunc nuw nsw i64 %27 to i32
  store i32 %30, ptr %28, align 4, !tbaa !9
  %31 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %27
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %.not115122 = icmp slt i64 %32, %29
  br i1 %.not115122, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph128, %.lr.ph
  %33 = phi i64 [ %36, %.lr.ph ], [ %27, %.lr.ph128 ]
  %34 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %35, ptr %28, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %.not115 = icmp slt i64 %38, %29
  br i1 %.not115, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph128
  %39 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %27
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %indvars.iv
  store i64 %40, ptr %41, align 8, !tbaa !5
  %42 = trunc nuw nsw i64 %indvars.iv to i32
  br label %46

43:                                               ; preds = %46
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr %1, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %.not.not = icmp slt i64 %indvars.iv, %45
  br i1 %.not.not, label %.lr.ph128, label %._crit_edge129, !llvm.loop !13

46:                                               ; preds = %._crit_edge, %46
  %.0102124 = phi i32 [ %42, %._crit_edge ], [ %.0103, %46 ]
  %.0103.in123 = phi ptr [ %28, %._crit_edge ], [ %55, %46 ]
  %.0103 = load i32, ptr %.0103.in123, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %47 = sext i32 %.0103 to i64
  %48 = sub nsw i64 %indvars.iv, %47
  %49 = zext nneg i32 %.0102124 to i64
  %50 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = mul nsw i64 %51, %48
  store i64 %52, ptr %2, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %54 = load i64, ptr %53, align 8, !tbaa !5
  store i64 %54, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %55 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %47
  %56 = icmp sgt i32 %.0103, 0
  br i1 %56, label %46, label %43, !llvm.loop !14

.loopexit:                                        ; preds = %232
  %57 = icmp sgt i64 %indvars.iv168, 1
  br i1 %57, label %.lr.ph162, label %._crit_edge163, !llvm.loop !15

._crit_edge163:                                   ; preds = %.loopexit, %._crit_edge129.thread, %._crit_edge129
  %58 = phi i64 [ 0, %._crit_edge129 ], [ 0, %._crit_edge129.thread ], [ %247, %.loopexit ]
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %58)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void

.lr.ph162:                                        ; preds = %.lr.ph162.preheader, %.loopexit
  %indvars.iv168 = phi i64 [ %24, %.lr.ph162.preheader ], [ %indvars.iv.next169, %.loopexit ]
  %60 = add nuw nsw i64 %indvars.iv168, 1
  %61 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %indvars.iv168
  %62 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %indvars.iv168
  %63 = load i64, ptr %62, align 8, !tbaa !5
  %64 = trunc nsw i64 %60 to i32
  store i32 %64, ptr %61, align 4, !tbaa !9
  %65 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %60
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %.not107130 = icmp slt i64 %66, %63
  br i1 %.not107130, label %._crit_edge133, label %.lr.ph132

.lr.ph132:                                        ; preds = %.lr.ph162, %.lr.ph132
  %67 = phi i64 [ %70, %.lr.ph132 ], [ %60, %.lr.ph162 ]
  %68 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !9
  store i32 %69, ptr %61, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %.not107 = icmp slt i64 %72, %63
  br i1 %.not107, label %._crit_edge133, label %.lr.ph132, !llvm.loop !16

._crit_edge133:                                   ; preds = %.lr.ph132, %.lr.ph162
  %storemerge.lcssa = phi i32 [ %64, %.lr.ph162 ], [ %69, %.lr.ph132 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %73 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %indvars.iv168
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = xor i32 %74, -1
  %76 = add i32 %storemerge.lcssa, %75
  %77 = sext i32 %76 to i64
  %78 = mul nsw i64 %63, %77
  store i64 %78, ptr %4, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %80 = load i64, ptr %79, align 8, !tbaa !5
  store i64 %80, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %81 = load i32, ptr %73, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %82 = trunc nuw nsw i64 %indvars.iv168 to i32
  store i32 %82, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = load i32, ptr %1, align 4, !tbaa !9
  %.not108136 = icmp sgt i32 %83, %84
  br i1 %.not108136, label %.preheader, label %.lr.ph138

.preheader:                                       ; preds = %86, %._crit_edge133
  %85 = icmp sgt i32 %81, 0
  br i1 %85, label %.lr.ph145, label %._crit_edge146

.lr.ph138:                                        ; preds = %._crit_edge133, %86
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %86 unwind label %92

86:                                               ; preds = %.lr.ph138
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  store i32 %90, ptr %5, align 4, !tbaa !9
  %91 = load i32, ptr %1, align 4, !tbaa !9
  %.not108 = icmp sgt i32 %90, %91
  br i1 %.not108, label %.preheader, label %.lr.ph138, !llvm.loop !17

92:                                               ; preds = %.lr.ph138
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %266

.lr.ph145:                                        ; preds = %.preheader, %135
  %.0100144 = phi i32 [ %96, %135 ], [ %81, %.preheader ]
  %94 = zext nneg i32 %.0100144 to i64
  %95 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = load i64, ptr %62, align 8, !tbaa !5
  %103 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %94
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = sub nsw i64 %102, %104
  %.not111139 = icmp sgt i64 %101, %105
  br i1 %.not111139, label %._crit_edge142, label %.lr.ph141

.lr.ph141:                                        ; preds = %.lr.ph145, %.lr.ph141
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %107 = load i32, ptr %106, align 4, !tbaa !9
  store i32 %107, ptr %5, align 4, !tbaa !9
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %62, align 8, !tbaa !5
  %114 = load i64, ptr %103, align 8, !tbaa !5
  %115 = sub nsw i64 %113, %114
  %.not111 = icmp sgt i64 %112, %115
  br i1 %.not111, label %._crit_edge142, label %.lr.ph141, !llvm.loop !18

._crit_edge142:                                   ; preds = %.lr.ph141, %.lr.ph145
  %116 = phi i64 [ %104, %.lr.ph145 ], [ %114, %.lr.ph141 ]
  %.lcssa118 = phi i64 [ %105, %.lr.ph145 ], [ %115, %.lr.ph141 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = load i32, ptr %73, align 4, !tbaa !9
  %119 = xor i32 %118, -1
  %120 = add i32 %117, %119
  %121 = sext i32 %120 to i64
  %122 = mul nsw i64 %.lcssa118, %121
  store i64 %122, ptr %7, align 8, !tbaa !5
  %123 = load i32, ptr %1, align 4, !tbaa !9
  %.not112 = icmp sgt i32 %117, %123
  br i1 %.not112, label %135, label %124

124:                                              ; preds = %._crit_edge142
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %125 = sext i32 %117 to i64
  %126 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = add i32 %127, %119
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %125
  %131 = load i64, ptr %130, align 8, !tbaa !5
  %132 = mul nsw i64 %131, %129
  store i64 %132, ptr %8, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %134 = load i64, ptr %133, align 8, !tbaa !5
  store i64 %134, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %.pre = load i64, ptr %103, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %124, %._crit_edge142
  %136 = phi i64 [ %134, %124 ], [ %122, %._crit_edge142 ]
  %137 = phi i64 [ %.pre, %124 ], [ %116, %._crit_edge142 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %138 = load i32, ptr %61, align 4, !tbaa !9
  %139 = xor i32 %96, -1
  %140 = add i32 %138, %139
  %141 = sext i32 %140 to i64
  %142 = mul nsw i64 %137, %141
  %143 = add nsw i64 %142, %136
  store i64 %143, ptr %9, align 8, !tbaa !5
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %145 = load i64, ptr %144, align 8, !tbaa !5
  store i64 %145, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %146 = icmp sgt i32 %96, 0
  br i1 %146, label %.lr.ph145, label %._crit_edge146, !llvm.loop !19

._crit_edge146:                                   ; preds = %135, %.preheader
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %147 = load i32, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 %82, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #5
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %.pr = load i32, ptr %10, align 4, !tbaa !9
  %148 = icmp sgt i32 %.pr, 0
  br i1 %148, label %.lr.ph148, label %._crit_edge149

.lr.ph148:                                        ; preds = %._crit_edge146, %149
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %149 unwind label %155

149:                                              ; preds = %.lr.ph148
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !9
  store i32 %153, ptr %10, align 4, !tbaa !9
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %.lr.ph148, label %._crit_edge149, !llvm.loop !20

155:                                              ; preds = %.lr.ph148
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %266

._crit_edge149:                                   ; preds = %149, %._crit_edge146
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %indvars.iv.next169 = add nsw i64 %indvars.iv168, -1
  %157 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE3pre, i64 0, i64 %indvars.iv.next169
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = sext i32 %147 to i64
  %160 = sub nsw i64 %159, %indvars.iv168
  %161 = load i64, ptr %62, align 8, !tbaa !5
  %162 = mul nsw i64 %161, %160
  %163 = add nsw i64 %162, %158
  store i64 %163, ptr %12, align 8, !tbaa !5
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %165 = load i64, ptr %164, align 8, !tbaa !5
  store i64 %165, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %166 = load i32, ptr %1, align 4, !tbaa !9
  %.not109155 = icmp sgt i32 %147, %166
  br i1 %.not109155, label %._crit_edge159, label %.lr.ph158

.lr.ph158:                                        ; preds = %._crit_edge149, %217
  %.097156 = phi i32 [ %169, %217 ], [ %147, %._crit_edge149 ]
  %167 = sext i32 %.097156 to i64
  %168 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %170 = load i64, ptr %157, align 8, !tbaa !5
  %171 = sext i32 %169 to i64
  %172 = sub nsw i64 %171, %indvars.iv168
  %173 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %167
  %174 = load i64, ptr %173, align 8, !tbaa !5
  %175 = mul nsw i64 %174, %172
  %176 = add nsw i64 %175, %170
  store i64 %176, ptr %13, align 8, !tbaa !5
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %178 = load i64, ptr %177, align 8, !tbaa !5
  store i64 %178, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !5
  %184 = load i64, ptr %62, align 8, !tbaa !5
  %185 = load i64, ptr %173, align 8, !tbaa !5
  %186 = sub nsw i64 %184, %185
  %.not110150 = icmp sgt i64 %183, %186
  br i1 %.not110150, label %._crit_edge153, label %.lr.ph152

.lr.ph152:                                        ; preds = %.lr.ph158, %.lr.ph152
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %188 = load i32, ptr %187, align 4, !tbaa !9
  store i32 %188, ptr %10, align 4, !tbaa !9
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !5
  %194 = load i64, ptr %62, align 8, !tbaa !5
  %195 = load i64, ptr %173, align 8, !tbaa !5
  %196 = sub nsw i64 %194, %195
  %.not110 = icmp sgt i64 %193, %196
  br i1 %.not110, label %._crit_edge153, label %.lr.ph152, !llvm.loop !21

._crit_edge153:                                   ; preds = %.lr.ph152, %.lr.ph158
  %197 = phi i64 [ %185, %.lr.ph158 ], [ %195, %.lr.ph152 ]
  %.lcssa120 = phi i64 [ %186, %.lr.ph158 ], [ %196, %.lr.ph152 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %198 = load i32, ptr %61, align 4, !tbaa !9
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = xor i32 %199, -1
  %201 = add i32 %198, %200
  %202 = sext i32 %201 to i64
  %203 = mul nsw i64 %.lcssa120, %202
  store i64 %203, ptr %14, align 8, !tbaa !5
  %204 = icmp sgt i32 %199, 0
  br i1 %204, label %205, label %217

205:                                              ; preds = %._crit_edge153
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %206 = zext nneg i32 %199 to i64
  %207 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = xor i32 %208, -1
  %210 = add i32 %198, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %206
  %213 = load i64, ptr %212, align 8, !tbaa !5
  %214 = mul nsw i64 %213, %211
  store i64 %214, ptr %15, align 8, !tbaa !5
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %216 = load i64, ptr %215, align 8, !tbaa !5
  store i64 %216, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  %.pre171 = load i64, ptr %173, align 8, !tbaa !5
  br label %217

217:                                              ; preds = %205, %._crit_edge153
  %218 = phi i64 [ %.pre171, %205 ], [ %197, %._crit_edge153 ]
  %219 = phi i64 [ %216, %205 ], [ %203, %._crit_edge153 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %220 = load i32, ptr %73, align 4, !tbaa !9
  %221 = xor i32 %220, -1
  %222 = add i32 %169, %221
  %223 = sext i32 %222 to i64
  %224 = mul nsw i64 %218, %223
  %225 = add nsw i64 %224, %219
  store i64 %225, ptr %16, align 8, !tbaa !5
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %227 = load i64, ptr %226, align 8, !tbaa !5
  store i64 %227, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %228 = load i32, ptr %1, align 4, !tbaa !9
  %.not109 = icmp sgt i32 %169, %228
  br i1 %.not109, label %._crit_edge159, label %.lr.ph158, !llvm.loop !22

._crit_edge159:                                   ; preds = %217, %._crit_edge149
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %229 = load i32, ptr %73, align 4, !tbaa !9
  %230 = load i32, ptr %61, align 4, !tbaa !9
  %231 = load i64, ptr %62, align 8, !tbaa !5
  br label %232

232:                                              ; preds = %265, %._crit_edge159
  %233 = phi i64 [ %231, %._crit_edge159 ], [ %.pre174, %265 ]
  %234 = phi i32 [ %229, %._crit_edge159 ], [ %.pre173, %265 ]
  %235 = phi i32 [ %230, %._crit_edge159 ], [ %.pre172, %265 ]
  %.095 = phi i32 [ %229, %._crit_edge159 ], [ %.196, %265 ]
  %.093 = phi i32 [ %230, %._crit_edge159 ], [ %.194, %265 ]
  %.0 = phi i64 [ %231, %._crit_edge159 ], [ %.1, %265 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %236 = xor i32 %.095, -1
  %237 = add i32 %.093, %236
  %238 = sext i32 %237 to i64
  %239 = mul nsw i64 %.0, %238
  %240 = xor i32 %234, -1
  %241 = add i32 %235, %240
  %242 = sext i32 %241 to i64
  %243 = sub nsw i64 %233, %.0
  %244 = mul nsw i64 %243, %242
  %245 = add nsw i64 %244, %239
  store i64 %245, ptr %17, align 8, !tbaa !5
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %247 = load i64, ptr %246, align 8, !tbaa !5
  store i64 %247, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  %248 = icmp slt i32 %.095, 1
  %249 = load i32, ptr %1, align 4
  %250 = icmp sgt i32 %.093, %249
  %or.cond = select i1 %248, i1 %250, i1 false
  br i1 %or.cond, label %.loopexit, label %251

251:                                              ; preds = %232
  %252 = sext i32 %.095 to i64
  %253 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %252
  %254 = load i64, ptr %253, align 8, !tbaa !5
  %255 = sext i32 %.093 to i64
  %256 = getelementptr inbounds [10003 x i64], ptr @_ZZ5solvevE1h, i64 0, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !5
  %258 = icmp sgt i64 %254, %257
  br i1 %258, label %259, label %262

259:                                              ; preds = %251
  %260 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pL, i64 0, i64 %252
  %261 = load i32, ptr %260, align 4, !tbaa !9
  br label %265

262:                                              ; preds = %251
  %263 = getelementptr inbounds [10003 x i32], ptr @_ZZ5solvevE2pR, i64 0, i64 %255
  %264 = load i32, ptr %263, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %262, %259
  %.196 = phi i32 [ %261, %259 ], [ %.095, %262 ]
  %.194 = phi i32 [ %.093, %259 ], [ %264, %262 ]
  %.1 = phi i64 [ %254, %259 ], [ %257, %262 ]
  %.pre172 = load i32, ptr %61, align 4, !tbaa !9
  %.pre173 = load i32, ptr %73, align 4, !tbaa !9
  %.pre174 = load i64, ptr %62, align 8, !tbaa !5
  br label %232, !llvm.loop !23

266:                                              ; preds = %155, %92
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  resume { ptr, i32 } %.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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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: mustprogress uwtable
declare dso_local void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


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