; LLVM IR from Leet-Us-Code/DSA-A-Z-Practice :: Sid's Levels/Level - 1/DynamicProgramming (PaintManyHouse2)

; 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" }

@_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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %27 = 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)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = call ptr @llvm.stacksave.p0()
  store ptr %33, ptr %4, align 8
  %34 = mul nuw i64 %30, %32
  %35 = alloca i32, i64 %34, align 16
  store i64 %30, ptr %5, align 8
  store i64 %32, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %60, %0
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %63

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

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

46:                                               ; preds = %42
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %59

47:                                               ; preds = %42
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = mul nsw i64 %49, %32
  %51 = getelementptr inbounds i32, ptr %35, i64 %50
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %54)
  br label %56

56:                                               ; preds = %47
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %9, align 4, !tbaa !5
  br label %42, !llvm.loop !9

59:                                               ; preds = %46
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !5
  br label %36, !llvm.loop !11

63:                                               ; preds = %40
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = mul nuw i64 %65, %67
  %69 = alloca i32, i64 %68, align 16
  store i64 %65, ptr %10, align 8
  store i64 %67, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %87, %63
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %90

75:                                               ; preds = %70
  %76 = mul nsw i64 0, %32
  %77 = getelementptr inbounds i32, ptr %35, i64 %76
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = mul nsw i64 0, %67
  %83 = getelementptr inbounds i32, ptr %69, i64 %82
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %83, i64 %85
  store i32 %81, ptr %86, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %75
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %12, align 4, !tbaa !5
  br label %70, !llvm.loop !12

90:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 2147483647, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 -1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 2147483647, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 -1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %114, %90
  %92 = load i32, ptr %17, align 4, !tbaa !5
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %117

96:                                               ; preds = %91
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = mul nsw i64 0, %67
  %99 = getelementptr inbounds i32, ptr %69, i64 %98
  %100 = load i32, ptr %17, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp sgt i32 %97, %103
  br i1 %104, label %105, label %113

105:                                              ; preds = %96
  %106 = mul nsw i64 0, %67
  %107 = getelementptr inbounds i32, ptr %69, i64 %106
  %108 = load i32, ptr %17, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  store i32 %111, ptr %13, align 4, !tbaa !5
  %112 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %112, ptr %14, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %105, %96
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !5
  br label %91, !llvm.loop !13

117:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %145, %117
  %119 = load i32, ptr %18, align 4, !tbaa !5
  %120 = load i32, ptr %3, align 4, !tbaa !5
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %148

123:                                              ; preds = %118
  %124 = load i32, ptr %18, align 4, !tbaa !5
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = icmp ne i32 %124, %125
  br i1 %126, label %127, label %144

127:                                              ; preds = %123
  %128 = mul nsw i64 0, %67
  %129 = getelementptr inbounds i32, ptr %69, i64 %128
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %129, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = load i32, ptr %15, align 4, !tbaa !5
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %136, label %144

136:                                              ; preds = %127
  %137 = mul nsw i64 0, %67
  %138 = getelementptr inbounds i32, ptr %69, i64 %137
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %138, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  store i32 %142, ptr %15, align 4, !tbaa !5
  %143 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %143, ptr %16, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %136, %127, %123
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %18, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %18, align 4, !tbaa !5
  br label %118, !llvm.loop !14

148:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %278, %148
  %150 = load i32, ptr %19, align 4, !tbaa !5
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %281

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %208, %154
  %156 = load i32, ptr %20, align 4, !tbaa !5
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = icmp slt i32 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %211

160:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %161 = load i32, ptr %19, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %162, %32
  %164 = getelementptr inbounds i32, ptr %35, i64 %163
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  store i32 %168, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %169 = load i32, ptr %20, align 4, !tbaa !5
  %170 = load i32, ptr %14, align 4, !tbaa !5
  %171 = icmp ne i32 %169, %170
  br i1 %171, label %172, label %182

172:                                              ; preds = %160
  %173 = load i32, ptr %19, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = mul nsw i64 %175, %67
  %177 = getelementptr inbounds i32, ptr %69, i64 %176
  %178 = load i32, ptr %14, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  store i32 %181, ptr %22, align 4, !tbaa !5
  br label %197

182:                                              ; preds = %160
  %183 = load i32, ptr %20, align 4, !tbaa !5
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = icmp eq i32 %183, %184
  br i1 %185, label %186, label %196

186:                                              ; preds = %182
  %187 = load i32, ptr %19, align 4, !tbaa !5
  %188 = sub nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = mul nsw i64 %189, %67
  %191 = getelementptr inbounds i32, ptr %69, i64 %190
  %192 = load i32, ptr %16, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %191, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  store i32 %195, ptr %22, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %186, %182
  br label %197

197:                                              ; preds = %196, %172
  %198 = load i32, ptr %21, align 4, !tbaa !5
  %199 = load i32, ptr %22, align 4, !tbaa !5
  %200 = add nsw i32 %198, %199
  %201 = load i32, ptr %19, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = mul nsw i64 %202, %67
  %204 = getelementptr inbounds i32, ptr %69, i64 %203
  %205 = load i32, ptr %20, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds i32, ptr %204, i64 %206
  store i32 %200, ptr %207, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %208

208:                                              ; preds = %197
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %20, align 4, !tbaa !5
  br label %155, !llvm.loop !15

211:                                              ; preds = %159
  store i32 2147483647, ptr %13, align 4, !tbaa !5
  store i32 2147483647, ptr %15, align 4, !tbaa !5
  store i32 -1, ptr %14, align 4, !tbaa !5
  store i32 -1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %239, %211
  %213 = load i32, ptr %23, align 4, !tbaa !5
  %214 = load i32, ptr %3, align 4, !tbaa !5
  %215 = icmp slt i32 %213, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %212
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %242

217:                                              ; preds = %212
  %218 = load i32, ptr %13, align 4, !tbaa !5
  %219 = load i32, ptr %19, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = mul nsw i64 %220, %67
  %222 = getelementptr inbounds i32, ptr %69, i64 %221
  %223 = load i32, ptr %23, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i32, ptr %222, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = icmp sgt i32 %218, %226
  br i1 %227, label %228, label %238

228:                                              ; preds = %217
  %229 = load i32, ptr %19, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = mul nsw i64 %230, %67
  %232 = getelementptr inbounds i32, ptr %69, i64 %231
  %233 = load i32, ptr %23, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds i32, ptr %232, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  store i32 %236, ptr %13, align 4, !tbaa !5
  %237 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %237, ptr %14, align 4, !tbaa !5
  br label %238

238:                                              ; preds = %228, %217
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %23, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %23, align 4, !tbaa !5
  br label %212, !llvm.loop !16

242:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %274, %242
  %244 = load i32, ptr %24, align 4, !tbaa !5
  %245 = load i32, ptr %3, align 4, !tbaa !5
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %243
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %277

248:                                              ; preds = %243
  %249 = load i32, ptr %24, align 4, !tbaa !5
  %250 = load i32, ptr %14, align 4, !tbaa !5
  %251 = icmp ne i32 %249, %250
  br i1 %251, label %252, label %273

252:                                              ; preds = %248
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = mul nsw i64 %254, %67
  %256 = getelementptr inbounds i32, ptr %69, i64 %255
  %257 = load i32, ptr %24, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds i32, ptr %256, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %261 = load i32, ptr %15, align 4, !tbaa !5
  %262 = icmp slt i32 %260, %261
  br i1 %262, label %263, label %273

263:                                              ; preds = %252
  %264 = load i32, ptr %19, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = mul nsw i64 %265, %67
  %267 = getelementptr inbounds i32, ptr %69, i64 %266
  %268 = load i32, ptr %24, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds i32, ptr %267, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !5
  store i32 %271, ptr %15, align 4, !tbaa !5
  %272 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %272, ptr %16, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %263, %252, %248
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %24, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %24, align 4, !tbaa !5
  br label %243, !llvm.loop !17

277:                                              ; preds = %247
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %19, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %19, align 4, !tbaa !5
  br label %149, !llvm.loop !18

281:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 2147483647, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %310, %281
  %283 = load i32, ptr %26, align 4, !tbaa !5
  %284 = load i32, ptr %3, align 4, !tbaa !5
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %282
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %313

287:                                              ; preds = %282
  %288 = load i32, ptr %25, align 4, !tbaa !5
  %289 = load i32, ptr %2, align 4, !tbaa !5
  %290 = sub nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  %292 = mul nsw i64 %291, %67
  %293 = getelementptr inbounds i32, ptr %69, i64 %292
  %294 = load i32, ptr %26, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds i32, ptr %293, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !5
  %298 = icmp sgt i32 %288, %297
  br i1 %298, label %299, label %309

299:                                              ; preds = %287
  %300 = load i32, ptr %2, align 4, !tbaa !5
  %301 = sub nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = mul nsw i64 %302, %67
  %304 = getelementptr inbounds i32, ptr %69, i64 %303
  %305 = load i32, ptr %26, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds i32, ptr %304, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !5
  store i32 %308, ptr %25, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %299, %287
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %26, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %26, align 4, !tbaa !5
  br label %282, !llvm.loop !19

313:                                              ; preds = %286
  %314 = load i32, ptr %25, align 4, !tbaa !5
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %314)
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %317 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %317)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %318 = load i32, ptr %1, align 4
  ret i32 %318
}

; 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: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn }
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 = { 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" }

@_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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %3 = 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)
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = zext i32 %5 to i64
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = call ptr @llvm.stacksave.p0()
  %10 = mul nuw i64 %8, %6
  %11 = alloca i32, i64 %10, align 16
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  %.pre197 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %13, label %.preheader117.lr.ph, label %._crit_edge120

.preheader117.lr.ph:                              ; preds = %0
  %14 = icmp sgt i32 %.pre197, 0
  br i1 %14, label %.preheader117, label %._crit_edge120.thread

._crit_edge120.thread:                            ; preds = %.preheader117.lr.ph
  %15 = zext nneg i32 %12 to i64
  %16 = zext i32 %.pre197 to i64
  %17 = mul nuw nsw i64 %16, %15
  %18 = alloca i32, i64 %17, align 16
  br label %.preheader114

.preheader117:                                    ; preds = %.preheader117.lr.ph, %._crit_edge
  %19 = phi i32 [ %30, %._crit_edge ], [ %12, %.preheader117.lr.ph ]
  %20 = phi i32 [ %31, %._crit_edge ], [ %.pre197, %.preheader117.lr.ph ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %._crit_edge ], [ 0, %.preheader117.lr.ph ]
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader117
  %22 = mul nuw nsw i64 %indvars.iv158, %8
  %23 = getelementptr inbounds i32, ptr %11, i64 %22
  br label %34

._crit_edge120:                                   ; preds = %._crit_edge, %0
  %24 = phi i32 [ %.pre197, %0 ], [ %31, %._crit_edge ]
  %.lcssa = phi i32 [ %12, %0 ], [ %30, %._crit_edge ]
  %25 = zext i32 %.lcssa to i64
  %26 = zext i32 %24 to i64
  %27 = mul nuw i64 %26, %25
  %28 = alloca i32, i64 %27, align 16
  %29 = icmp sgt i32 %24, 0
  br i1 %29, label %.lr.ph127.preheader, label %.preheader114

._crit_edge.loopexit:                             ; preds = %34
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader117
  %30 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %19, %.preheader117 ]
  %31 = phi i32 [ %37, %._crit_edge.loopexit ], [ %20, %.preheader117 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %32 = sext i32 %30 to i64
  %33 = icmp slt i64 %indvars.iv.next159, %32
  br i1 %33, label %.preheader117, label %._crit_edge120, !llvm.loop !9

34:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %35 = getelementptr inbounds i32, ptr %23, i64 %indvars.iv
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %34, label %._crit_edge.loopexit, !llvm.loop !12

.lr.ph127.preheader:                              ; preds = %._crit_edge120
  %40 = shl nuw nsw i64 %26, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %28, ptr nonnull align 16 %11, i64 %40, i1 false), !tbaa !5
  %xtraiter = and i64 %26, 3
  %41 = icmp ult i32 %24, 4
  br i1 %41, label %.preheader115.unr-lcssa, label %.lr.ph127.preheader.new

.lr.ph127.preheader.new:                          ; preds = %.lr.ph127.preheader
  %unroll_iter = and i64 %26, 2147483644
  br label %.lr.ph127

.preheader115.unr-lcssa:                          ; preds = %.lr.ph127, %.lr.ph127.preheader
  %spec.select103.lcssa.ph = phi i32 [ poison, %.lr.ph127.preheader ], [ %spec.select103.3, %.lr.ph127 ]
  %indvars.iv164.unr = phi i64 [ 0, %.lr.ph127.preheader ], [ %indvars.iv.next165.3, %.lr.ph127 ]
  %.084125.unr = phi i32 [ -1, %.lr.ph127.preheader ], [ %spec.select103.3, %.lr.ph127 ]
  %.089124.unr = phi i32 [ 2147483647, %.lr.ph127.preheader ], [ %spec.select.3, %.lr.ph127 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader115, label %.lr.ph127.epil

.lr.ph127.epil:                                   ; preds = %.preheader115.unr-lcssa, %.lr.ph127.epil
  %indvars.iv164.epil = phi i64 [ %indvars.iv.next165.epil, %.lr.ph127.epil ], [ %indvars.iv164.unr, %.preheader115.unr-lcssa ]
  %.084125.epil = phi i32 [ %spec.select103.epil, %.lr.ph127.epil ], [ %.084125.unr, %.preheader115.unr-lcssa ]
  %.089124.epil = phi i32 [ %spec.select.epil, %.lr.ph127.epil ], [ %.089124.unr, %.preheader115.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph127.epil ], [ 0, %.preheader115.unr-lcssa ]
  %42 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv164.epil
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = icmp sgt i32 %.089124.epil, %43
  %spec.select.epil = call i32 @llvm.smin.i32(i32 %.089124.epil, i32 %43)
  %45 = trunc nuw nsw i64 %indvars.iv164.epil to i32
  %spec.select103.epil = select i1 %44, i32 %45, i32 %.084125.epil
  %indvars.iv.next165.epil = add nuw nsw i64 %indvars.iv164.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 %.preheader115, label %.lr.ph127.epil, !llvm.loop !13

.preheader115:                                    ; preds = %.lr.ph127.epil, %.preheader115.unr-lcssa
  %spec.select103.lcssa = phi i32 [ %spec.select103.lcssa.ph, %.preheader115.unr-lcssa ], [ %spec.select103.epil, %.lr.ph127.epil ]
  br i1 %29, label %.lr.ph132.preheader, label %.preheader114

.lr.ph132.preheader:                              ; preds = %.preheader115
  %46 = zext i32 %spec.select103.lcssa to i64
  %xtraiter225 = and i64 %26, 1
  %47 = icmp eq i32 %24, 1
  br i1 %47, label %.preheader114.loopexit.unr-lcssa, label %.lr.ph132.preheader.new

.lr.ph132.preheader.new:                          ; preds = %.lr.ph132.preheader
  %unroll_iter229 = and i64 %26, 2147483646
  br label %.lr.ph132

.lr.ph127:                                        ; preds = %.lr.ph127, %.lr.ph127.preheader.new
  %indvars.iv164 = phi i64 [ 0, %.lr.ph127.preheader.new ], [ %indvars.iv.next165.3, %.lr.ph127 ]
  %.084125 = phi i32 [ -1, %.lr.ph127.preheader.new ], [ %spec.select103.3, %.lr.ph127 ]
  %.089124 = phi i32 [ 2147483647, %.lr.ph127.preheader.new ], [ %spec.select.3, %.lr.ph127 ]
  %niter = phi i64 [ 0, %.lr.ph127.preheader.new ], [ %niter.next.3, %.lr.ph127 ]
  %48 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv164
  %49 = load i32, ptr %48, align 16, !tbaa !5
  %50 = icmp sgt i32 %.089124, %49
  %spec.select = call i32 @llvm.smin.i32(i32 %.089124, i32 %49)
  %51 = trunc nuw nsw i64 %indvars.iv164 to i32
  %spec.select103 = select i1 %50, i32 %51, i32 %.084125
  %indvars.iv.next165 = or disjoint i64 %indvars.iv164, 1
  %52 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next165
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = icmp sgt i32 %spec.select, %53
  %spec.select.1 = call i32 @llvm.smin.i32(i32 %spec.select, i32 %53)
  %55 = trunc nuw nsw i64 %indvars.iv.next165 to i32
  %spec.select103.1 = select i1 %54, i32 %55, i32 %spec.select103
  %indvars.iv.next165.1 = or disjoint i64 %indvars.iv164, 2
  %56 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next165.1
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = icmp sgt i32 %spec.select.1, %57
  %spec.select.2 = call i32 @llvm.smin.i32(i32 %spec.select.1, i32 %57)
  %59 = trunc nuw nsw i64 %indvars.iv.next165.1 to i32
  %spec.select103.2 = select i1 %58, i32 %59, i32 %spec.select103.1
  %indvars.iv.next165.2 = or disjoint i64 %indvars.iv164, 3
  %60 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next165.2
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = icmp sgt i32 %spec.select.2, %61
  %spec.select.3 = call i32 @llvm.smin.i32(i32 %spec.select.2, i32 %61)
  %63 = trunc nuw nsw i64 %indvars.iv.next165.2 to i32
  %spec.select103.3 = select i1 %62, i32 %63, i32 %spec.select103.2
  %indvars.iv.next165.3 = add nuw nsw i64 %indvars.iv164, 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 %.preheader115.unr-lcssa, label %.lr.ph127, !llvm.loop !15

.preheader114.loopexit.unr-lcssa:                 ; preds = %88, %.lr.ph132.preheader
  %.178.lcssa.ph = phi i32 [ poison, %.lr.ph132.preheader ], [ %.178.1, %88 ]
  %indvars.iv167.unr = phi i64 [ 0, %.lr.ph132.preheader ], [ %indvars.iv.next168.1, %88 ]
  %.077130.unr = phi i32 [ -1, %.lr.ph132.preheader ], [ %.178.1, %88 ]
  %.080129.unr = phi i32 [ 2147483647, %.lr.ph132.preheader ], [ %.181.1, %88 ]
  %lcmp.mod227.not = icmp eq i64 %xtraiter225, 0
  br i1 %lcmp.mod227.not, label %.preheader114, label %.lr.ph132.epil

.lr.ph132.epil:                                   ; preds = %.preheader114.loopexit.unr-lcssa
  %.not102.epil = icmp eq i64 %indvars.iv167.unr, %46
  br i1 %.not102.epil, label %.preheader114, label %64

64:                                               ; preds = %.lr.ph132.epil
  %65 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv167.unr
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = icmp slt i32 %66, %.080129.unr
  %68 = trunc nuw nsw i64 %indvars.iv167.unr to i32
  %spec.select105.epil = select i1 %67, i32 %68, i32 %.077130.unr
  br label %.preheader114

.preheader114:                                    ; preds = %.preheader114.loopexit.unr-lcssa, %64, %.lr.ph132.epil, %._crit_edge120.thread, %._crit_edge120, %.preheader115
  %.084.lcssa208 = phi i32 [ %spec.select103.lcssa, %.preheader115 ], [ -1, %._crit_edge120 ], [ -1, %._crit_edge120.thread ], [ %spec.select103.lcssa, %.lr.ph132.epil ], [ %spec.select103.lcssa, %64 ], [ %spec.select103.lcssa, %.preheader114.loopexit.unr-lcssa ]
  %69 = phi i1 [ false, %.preheader115 ], [ false, %._crit_edge120 ], [ false, %._crit_edge120.thread ], [ %29, %.lr.ph132.epil ], [ %29, %64 ], [ %29, %.preheader114.loopexit.unr-lcssa ]
  %70 = phi ptr [ %28, %.preheader115 ], [ %28, %._crit_edge120 ], [ %18, %._crit_edge120.thread ], [ %28, %.lr.ph132.epil ], [ %28, %64 ], [ %28, %.preheader114.loopexit.unr-lcssa ]
  %71 = phi i64 [ %26, %.preheader115 ], [ %26, %._crit_edge120 ], [ %16, %._crit_edge120.thread ], [ %26, %.lr.ph132.epil ], [ %26, %64 ], [ %26, %.preheader114.loopexit.unr-lcssa ]
  %72 = phi i64 [ %25, %.preheader115 ], [ %25, %._crit_edge120 ], [ %15, %._crit_edge120.thread ], [ %25, %.lr.ph132.epil ], [ %25, %64 ], [ %25, %.preheader114.loopexit.unr-lcssa ]
  %.lcssa199204207 = phi i32 [ %.lcssa, %.preheader115 ], [ %.lcssa, %._crit_edge120 ], [ %12, %._crit_edge120.thread ], [ %.lcssa, %.lr.ph132.epil ], [ %.lcssa, %64 ], [ %.lcssa, %.preheader114.loopexit.unr-lcssa ]
  %.077.lcssa = phi i32 [ -1, %.preheader115 ], [ -1, %._crit_edge120 ], [ -1, %._crit_edge120.thread ], [ %.178.lcssa.ph, %.preheader114.loopexit.unr-lcssa ], [ %.077130.unr, %.lr.ph132.epil ], [ %spec.select105.epil, %64 ]
  %73 = icmp sgt i32 %.lcssa199204207, 1
  br i1 %73, label %.preheader113.preheader, label %.preheader

.preheader113.preheader:                          ; preds = %.preheader114
  %74 = add nsw i64 %71, -1
  %xtraiter231 = and i64 %71, 1
  %75 = icmp eq i64 %74, 0
  %unroll_iter234 = and i64 %71, 4294967294
  %lcmp.mod233.not = icmp eq i64 %xtraiter231, 0
  %xtraiter237 = and i64 %71, 3
  %76 = icmp ult i64 %74, 3
  %unroll_iter241 = and i64 %71, 4294967292
  %lcmp.mod239.not = icmp eq i64 %xtraiter237, 0
  %xtraiter244 = and i64 %71, 1
  %77 = icmp eq i64 %74, 0
  %unroll_iter248 = and i64 %71, 4294967294
  %lcmp.mod246.not = icmp eq i64 %xtraiter244, 0
  br label %.preheader113

.lr.ph132:                                        ; preds = %88, %.lr.ph132.preheader.new
  %indvars.iv167 = phi i64 [ 0, %.lr.ph132.preheader.new ], [ %indvars.iv.next168.1, %88 ]
  %.077130 = phi i32 [ -1, %.lr.ph132.preheader.new ], [ %.178.1, %88 ]
  %.080129 = phi i32 [ 2147483647, %.lr.ph132.preheader.new ], [ %.181.1, %88 ]
  %niter230 = phi i64 [ 0, %.lr.ph132.preheader.new ], [ %niter230.next.1, %88 ]
  %.not102 = icmp eq i64 %indvars.iv167, %46
  br i1 %.not102, label %.lr.ph132.1, label %78

78:                                               ; preds = %.lr.ph132
  %79 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv167
  %80 = load i32, ptr %79, align 8, !tbaa !5
  %81 = icmp slt i32 %80, %.080129
  %spec.select104 = call i32 @llvm.smin.i32(i32 %80, i32 %.080129)
  %82 = trunc nuw nsw i64 %indvars.iv167 to i32
  %spec.select105 = select i1 %81, i32 %82, i32 %.077130
  br label %.lr.ph132.1

.lr.ph132.1:                                      ; preds = %78, %.lr.ph132
  %.181 = phi i32 [ %.080129, %.lr.ph132 ], [ %spec.select104, %78 ]
  %.178 = phi i32 [ %.077130, %.lr.ph132 ], [ %spec.select105, %78 ]
  %indvars.iv.next168 = or disjoint i64 %indvars.iv167, 1
  %.not102.1 = icmp eq i64 %indvars.iv.next168, %46
  br i1 %.not102.1, label %88, label %83

83:                                               ; preds = %.lr.ph132.1
  %84 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next168
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp slt i32 %85, %.181
  %spec.select104.1 = call i32 @llvm.smin.i32(i32 %85, i32 %.181)
  %87 = trunc nuw nsw i64 %indvars.iv.next168 to i32
  %spec.select105.1 = select i1 %86, i32 %87, i32 %.178
  br label %88

88:                                               ; preds = %83, %.lr.ph132.1
  %.181.1 = phi i32 [ %.181, %.lr.ph132.1 ], [ %spec.select104.1, %83 ]
  %.178.1 = phi i32 [ %.178, %.lr.ph132.1 ], [ %spec.select105.1, %83 ]
  %indvars.iv.next168.1 = add nuw nsw i64 %indvars.iv167, 2
  %niter230.next.1 = add i64 %niter230, 2
  %niter230.ncmp.1 = icmp eq i64 %niter230.next.1, %unroll_iter229
  br i1 %niter230.ncmp.1, label %.preheader114.loopexit.unr-lcssa, label %.lr.ph132, !llvm.loop !16

.preheader113:                                    ; preds = %.preheader113.preheader, %._crit_edge145
  %indvars.iv187 = phi i64 [ %indvars.iv.next188, %._crit_edge145 ], [ 1, %.preheader113.preheader ]
  %.279148 = phi i32 [ %.3.lcssa, %._crit_edge145 ], [ %.077.lcssa, %.preheader113.preheader ]
  %.286147 = phi i32 [ %.387.lcssa210, %._crit_edge145 ], [ %.084.lcssa208, %.preheader113.preheader ]
  br i1 %69, label %.lr.ph135, label %._crit_edge145

.lr.ph135:                                        ; preds = %.preheader113
  %89 = mul nuw nsw i64 %indvars.iv187, %8
  %90 = getelementptr inbounds i32, ptr %11, i64 %89
  %91 = add nsw i64 %indvars.iv187, -1
  %92 = mul nuw nsw i64 %91, %71
  %93 = getelementptr inbounds i32, ptr %70, i64 %92
  %94 = mul nuw nsw i64 %indvars.iv187, %71
  %95 = getelementptr inbounds i32, ptr %70, i64 %94
  %96 = zext i32 %.286147 to i64
  br i1 %75, label %.preheader112.unr-lcssa, label %.lr.ph135.new

.preheader:                                       ; preds = %._crit_edge145, %.preheader114
  br i1 %69, label %.lr.ph152, label %._crit_edge153

.lr.ph152:                                        ; preds = %.preheader
  %97 = add nsw i32 %.lcssa199204207, -1
  %98 = sext i32 %97 to i64
  %99 = mul nsw i64 %71, %98
  %100 = getelementptr inbounds i32, ptr %70, i64 %99
  %min.iters.check = icmp ult i64 %71, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph152
  %indvars.iv192.ph = phi i64 [ 0, %.lr.ph152 ], [ %n.vec, %middle.block ]
  %.067150.ph = phi i32 [ 2147483647, %.lr.ph152 ], [ %106, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph152
  %n.vec = and i64 %71, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>, %vector.ph ], [ %103, %vector.body ]
  %vec.phi217 = phi <4 x i32> [ <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>, %vector.ph ], [ %104, %vector.body ]
  %101 = getelementptr inbounds i32, ptr %100, i64 %index
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  %wide.load = load <4 x i32>, ptr %101, align 4, !tbaa !5
  %wide.load218 = load <4 x i32>, ptr %102, align 4, !tbaa !5
  %103 = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %vec.phi, <4 x i32> %wide.load)
  %104 = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %vec.phi217, <4 x i32> %wide.load218)
  %index.next = add nuw i64 %index, 8
  %105 = icmp eq i64 %index.next, %n.vec
  br i1 %105, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %103, <4 x i32> %104)
  %106 = call i32 @llvm.vector.reduce.smin.v4i32(<4 x i32> %rdx.minmax)
  %cmp.n = icmp eq i64 %71, %n.vec
  br i1 %cmp.n, label %._crit_edge153, label %scalar.ph.preheader

.preheader112.unr-lcssa:                          ; preds = %.lr.ph135.new, %.lr.ph135
  %indvars.iv172.unr = phi i64 [ 0, %.lr.ph135 ], [ %indvars.iv.next173.1, %.lr.ph135.new ]
  br i1 %lcmp.mod233.not, label %.preheader112, label %.preheader112.epilog-lcssa

.preheader112.epilog-lcssa:                       ; preds = %.preheader112.unr-lcssa
  %107 = getelementptr inbounds i32, ptr %90, i64 %indvars.iv172.unr
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %.not101.epil = icmp eq i64 %indvars.iv172.unr, %96
  %..v.v.epil = select i1 %.not101.epil, i32 %.279148, i32 %.286147
  %..v.epil = sext i32 %..v.v.epil to i64
  %..epil = getelementptr inbounds i32, ptr %93, i64 %..v.epil
  %.2.epil = load i32, ptr %..epil, align 4, !tbaa !5
  %109 = add nsw i32 %.2.epil, %108
  %110 = getelementptr inbounds i32, ptr %95, i64 %indvars.iv172.unr
  store i32 %109, ptr %110, align 4, !tbaa !5
  br label %.preheader112

.preheader112:                                    ; preds = %.preheader112.unr-lcssa, %.preheader112.epilog-lcssa
  br i1 %69, label %.lr.ph139, label %._crit_edge145

.lr.ph139:                                        ; preds = %.preheader112
  %111 = mul nuw nsw i64 %indvars.iv187, %71
  %112 = getelementptr inbounds i32, ptr %70, i64 %111
  br i1 %76, label %.preheader111.unr-lcssa, label %.lr.ph139.new

.lr.ph135.new:                                    ; preds = %.lr.ph135, %.lr.ph135.new
  %indvars.iv172 = phi i64 [ %indvars.iv.next173.1, %.lr.ph135.new ], [ 0, %.lr.ph135 ]
  %niter235 = phi i64 [ %niter235.next.1, %.lr.ph135.new ], [ 0, %.lr.ph135 ]
  %113 = getelementptr inbounds i32, ptr %90, i64 %indvars.iv172
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %.not101 = icmp eq i64 %indvars.iv172, %96
  %..v.v = select i1 %.not101, i32 %.279148, i32 %.286147
  %..v = sext i32 %..v.v to i64
  %. = getelementptr inbounds i32, ptr %93, i64 %..v
  %.2 = load i32, ptr %., align 4, !tbaa !5
  %115 = add nsw i32 %.2, %114
  %116 = getelementptr inbounds i32, ptr %95, i64 %indvars.iv172
  store i32 %115, ptr %116, align 4, !tbaa !5
  %indvars.iv.next173 = or disjoint i64 %indvars.iv172, 1
  %117 = getelementptr inbounds i32, ptr %90, i64 %indvars.iv.next173
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %.not101.1 = icmp eq i64 %indvars.iv.next173, %96
  %..v.v.1 = select i1 %.not101.1, i32 %.279148, i32 %.286147
  %..v.1 = sext i32 %..v.v.1 to i64
  %..1 = getelementptr inbounds i32, ptr %93, i64 %..v.1
  %.2.1 = load i32, ptr %..1, align 4, !tbaa !5
  %119 = add nsw i32 %.2.1, %118
  %120 = getelementptr inbounds i32, ptr %95, i64 %indvars.iv.next173
  store i32 %119, ptr %120, align 4, !tbaa !5
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %niter235.next.1 = add i64 %niter235, 2
  %niter235.ncmp.1 = icmp eq i64 %niter235.next.1, %unroll_iter234
  br i1 %niter235.ncmp.1, label %.preheader112.unr-lcssa, label %.lr.ph135.new, !llvm.loop !20

.preheader111.unr-lcssa:                          ; preds = %.lr.ph139.new, %.lr.ph139
  %spec.select107.lcssa.ph = phi i32 [ poison, %.lr.ph139 ], [ %spec.select107.3, %.lr.ph139.new ]
  %indvars.iv177.unr = phi i64 [ 0, %.lr.ph139 ], [ %indvars.iv.next178.3, %.lr.ph139.new ]
  %.387137.unr = phi i32 [ -1, %.lr.ph139 ], [ %spec.select107.3, %.lr.ph139.new ]
  %.291136.unr = phi i32 [ 2147483647, %.lr.ph139 ], [ %spec.select106.3, %.lr.ph139.new ]
  br i1 %lcmp.mod239.not, label %.preheader111, label %.epil.preheader236

.epil.preheader236:                               ; preds = %.preheader111.unr-lcssa, %.epil.preheader236
  %indvars.iv177.epil = phi i64 [ %indvars.iv.next178.epil, %.epil.preheader236 ], [ %indvars.iv177.unr, %.preheader111.unr-lcssa ]
  %.387137.epil = phi i32 [ %spec.select107.epil, %.epil.preheader236 ], [ %.387137.unr, %.preheader111.unr-lcssa ]
  %.291136.epil = phi i32 [ %spec.select106.epil, %.epil.preheader236 ], [ %.291136.unr, %.preheader111.unr-lcssa ]
  %epil.iter238 = phi i64 [ %epil.iter238.next, %.epil.preheader236 ], [ 0, %.preheader111.unr-lcssa ]
  %121 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv177.epil
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = icmp sgt i32 %.291136.epil, %122
  %spec.select106.epil = call i32 @llvm.smin.i32(i32 %.291136.epil, i32 %122)
  %124 = trunc nuw nsw i64 %indvars.iv177.epil to i32
  %spec.select107.epil = select i1 %123, i32 %124, i32 %.387137.epil
  %indvars.iv.next178.epil = add nuw nsw i64 %indvars.iv177.epil, 1
  %epil.iter238.next = add i64 %epil.iter238, 1
  %epil.iter238.cmp.not = icmp eq i64 %epil.iter238.next, %xtraiter237
  br i1 %epil.iter238.cmp.not, label %.preheader111, label %.epil.preheader236, !llvm.loop !21

.preheader111:                                    ; preds = %.epil.preheader236, %.preheader111.unr-lcssa
  %spec.select107.lcssa = phi i32 [ %spec.select107.lcssa.ph, %.preheader111.unr-lcssa ], [ %spec.select107.epil, %.epil.preheader236 ]
  br i1 %69, label %.lr.ph144, label %._crit_edge145

.lr.ph144:                                        ; preds = %.preheader111
  %125 = mul nuw nsw i64 %indvars.iv187, %71
  %126 = getelementptr inbounds i32, ptr %70, i64 %125
  %127 = zext i32 %spec.select107.lcssa to i64
  br i1 %77, label %._crit_edge145.loopexit.unr-lcssa, label %.lr.ph144.new

.lr.ph139.new:                                    ; preds = %.lr.ph139, %.lr.ph139.new
  %indvars.iv177 = phi i64 [ %indvars.iv.next178.3, %.lr.ph139.new ], [ 0, %.lr.ph139 ]
  %.387137 = phi i32 [ %spec.select107.3, %.lr.ph139.new ], [ -1, %.lr.ph139 ]
  %.291136 = phi i32 [ %spec.select106.3, %.lr.ph139.new ], [ 2147483647, %.lr.ph139 ]
  %niter242 = phi i64 [ %niter242.next.3, %.lr.ph139.new ], [ 0, %.lr.ph139 ]
  %128 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv177
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = icmp sgt i32 %.291136, %129
  %spec.select106 = call i32 @llvm.smin.i32(i32 %.291136, i32 %129)
  %131 = trunc nuw nsw i64 %indvars.iv177 to i32
  %spec.select107 = select i1 %130, i32 %131, i32 %.387137
  %indvars.iv.next178 = or disjoint i64 %indvars.iv177, 1
  %132 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv.next178
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = icmp sgt i32 %spec.select106, %133
  %spec.select106.1 = call i32 @llvm.smin.i32(i32 %spec.select106, i32 %133)
  %135 = trunc nuw nsw i64 %indvars.iv.next178 to i32
  %spec.select107.1 = select i1 %134, i32 %135, i32 %spec.select107
  %indvars.iv.next178.1 = or disjoint i64 %indvars.iv177, 2
  %136 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv.next178.1
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp sgt i32 %spec.select106.1, %137
  %spec.select106.2 = call i32 @llvm.smin.i32(i32 %spec.select106.1, i32 %137)
  %139 = trunc nuw nsw i64 %indvars.iv.next178.1 to i32
  %spec.select107.2 = select i1 %138, i32 %139, i32 %spec.select107.1
  %indvars.iv.next178.2 = or disjoint i64 %indvars.iv177, 3
  %140 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv.next178.2
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp sgt i32 %spec.select106.2, %141
  %spec.select106.3 = call i32 @llvm.smin.i32(i32 %spec.select106.2, i32 %141)
  %143 = trunc nuw nsw i64 %indvars.iv.next178.2 to i32
  %spec.select107.3 = select i1 %142, i32 %143, i32 %spec.select107.2
  %indvars.iv.next178.3 = add nuw nsw i64 %indvars.iv177, 4
  %niter242.next.3 = add i64 %niter242, 4
  %niter242.ncmp.3 = icmp eq i64 %niter242.next.3, %unroll_iter241
  br i1 %niter242.ncmp.3, label %.preheader111.unr-lcssa, label %.lr.ph139.new, !llvm.loop !22

._crit_edge145.loopexit.unr-lcssa:                ; preds = %160, %.lr.ph144
  %.4.lcssa.ph = phi i32 [ poison, %.lr.ph144 ], [ %.4.1, %160 ]
  %indvars.iv182.unr = phi i64 [ 0, %.lr.ph144 ], [ %indvars.iv.next183.1, %160 ]
  %.3142.unr = phi i32 [ -1, %.lr.ph144 ], [ %.4.1, %160 ]
  %.282141.unr = phi i32 [ 2147483647, %.lr.ph144 ], [ %.383.1, %160 ]
  br i1 %lcmp.mod246.not, label %._crit_edge145, label %.epil.preheader243

.epil.preheader243:                               ; preds = %._crit_edge145.loopexit.unr-lcssa
  %.not.epil = icmp eq i64 %indvars.iv182.unr, %127
  br i1 %.not.epil, label %._crit_edge145, label %144

144:                                              ; preds = %.epil.preheader243
  %145 = getelementptr inbounds i32, ptr %126, i64 %indvars.iv182.unr
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = icmp slt i32 %146, %.282141.unr
  %148 = trunc nuw nsw i64 %indvars.iv182.unr to i32
  %spec.select109.epil = select i1 %147, i32 %148, i32 %.3142.unr
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.loopexit.unr-lcssa, %144, %.epil.preheader243, %.preheader113, %.preheader112, %.preheader111
  %.387.lcssa210 = phi i32 [ %spec.select107.lcssa, %.preheader111 ], [ -1, %.preheader112 ], [ -1, %.preheader113 ], [ %spec.select107.lcssa, %.epil.preheader243 ], [ %spec.select107.lcssa, %144 ], [ %spec.select107.lcssa, %._crit_edge145.loopexit.unr-lcssa ]
  %.3.lcssa = phi i32 [ -1, %.preheader111 ], [ -1, %.preheader112 ], [ -1, %.preheader113 ], [ %.4.lcssa.ph, %._crit_edge145.loopexit.unr-lcssa ], [ %.3142.unr, %.epil.preheader243 ], [ %spec.select109.epil, %144 ]
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %exitcond191.not = icmp eq i64 %indvars.iv.next188, %72
  br i1 %exitcond191.not, label %.preheader, label %.preheader113, !llvm.loop !23

.lr.ph144.new:                                    ; preds = %.lr.ph144, %160
  %indvars.iv182 = phi i64 [ %indvars.iv.next183.1, %160 ], [ 0, %.lr.ph144 ]
  %.3142 = phi i32 [ %.4.1, %160 ], [ -1, %.lr.ph144 ]
  %.282141 = phi i32 [ %.383.1, %160 ], [ 2147483647, %.lr.ph144 ]
  %niter249 = phi i64 [ %niter249.next.1, %160 ], [ 0, %.lr.ph144 ]
  %.not = icmp eq i64 %indvars.iv182, %127
  br i1 %.not, label %154, label %149

149:                                              ; preds = %.lr.ph144.new
  %150 = getelementptr inbounds i32, ptr %126, i64 %indvars.iv182
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp slt i32 %151, %.282141
  %spec.select108 = call i32 @llvm.smin.i32(i32 %151, i32 %.282141)
  %153 = trunc nuw nsw i64 %indvars.iv182 to i32
  %spec.select109 = select i1 %152, i32 %153, i32 %.3142
  br label %154

154:                                              ; preds = %149, %.lr.ph144.new
  %.383 = phi i32 [ %.282141, %.lr.ph144.new ], [ %spec.select108, %149 ]
  %.4 = phi i32 [ %.3142, %.lr.ph144.new ], [ %spec.select109, %149 ]
  %indvars.iv.next183 = or disjoint i64 %indvars.iv182, 1
  %.not.1 = icmp eq i64 %indvars.iv.next183, %127
  br i1 %.not.1, label %160, label %155

155:                                              ; preds = %154
  %156 = getelementptr inbounds i32, ptr %126, i64 %indvars.iv.next183
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = icmp slt i32 %157, %.383
  %spec.select108.1 = call i32 @llvm.smin.i32(i32 %157, i32 %.383)
  %159 = trunc nuw nsw i64 %indvars.iv.next183 to i32
  %spec.select109.1 = select i1 %158, i32 %159, i32 %.4
  br label %160

160:                                              ; preds = %155, %154
  %.383.1 = phi i32 [ %.383, %154 ], [ %spec.select108.1, %155 ]
  %.4.1 = phi i32 [ %.4, %154 ], [ %spec.select109.1, %155 ]
  %indvars.iv.next183.1 = add nuw nsw i64 %indvars.iv182, 2
  %niter249.next.1 = add i64 %niter249, 2
  %niter249.ncmp.1 = icmp eq i64 %niter249.next.1, %unroll_iter248
  br i1 %niter249.ncmp.1, label %._crit_edge145.loopexit.unr-lcssa, label %.lr.ph144.new, !llvm.loop !24

._crit_edge153:                                   ; preds = %scalar.ph, %middle.block, %.preheader
  %.067.lcssa = phi i32 [ 2147483647, %.preheader ], [ %106, %middle.block ], [ %spec.select110, %scalar.ph ]
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.067.lcssa)
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.stackrestore.p0(ptr %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv192 = phi i64 [ %indvars.iv.next193, %scalar.ph ], [ %indvars.iv192.ph, %scalar.ph.preheader ]
  %.067150 = phi i32 [ %spec.select110, %scalar.ph ], [ %.067150.ph, %scalar.ph.preheader ]
  %163 = getelementptr inbounds i32, ptr %100, i64 %indvars.iv192
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %spec.select110 = call i32 @llvm.smin.i32(i32 %.067150, i32 %164)
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %exitcond196.not = icmp eq i64 %indvars.iv.next193, %71
  br i1 %exitcond196.not, label %._crit_edge153, label %scalar.ph, !llvm.loop !25
}

; 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 nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smin.v4i32(<4 x i32>, <4 x i32>) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v4i32(<4 x i32>) #6

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 nocallback nofree nosync nounwind willreturn }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10, !19, !18}


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