; LLVM IR from reyadussalahin/problem-solving :: CONTEST/hackercup/Y2019/round01/FGraphAsAService (Solution)

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [64 x [64 x i64]], align 16
  %3 = alloca [1024 x i32], align 16
  %4 = alloca [1024 x i32], align 16
  %5 = alloca [1024 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32768, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %277, %0
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

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

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %50, %26
  %29 = load i32, ptr %11, align 4, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %46, %33
  %35 = load i32, ptr %12, align 4, !tbaa !5
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = icmp sle i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %49

39:                                               ; preds = %34
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %41
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [64 x i64], ptr %42, i64 0, i64 %44
  store i64 1000000000, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %39
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %12, align 4, !tbaa !5
  br label %34, !llvm.loop !11

49:                                               ; preds = %38
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %11, align 4, !tbaa !5
  br label %28, !llvm.loop !13

53:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %99, %53
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %102

59:                                               ; preds = %54
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %61
  %63 = load i32, ptr %13, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %64
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1024 x i32], ptr %5, i64 0, i64 %67
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %62, ptr noundef %65, ptr noundef %68)
  %70 = load i32, ptr %13, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [1024 x i32], ptr %5, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = load i32, ptr %13, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %79
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [64 x i64], ptr %80, i64 0, i64 %85
  store i64 %74, ptr %86, align 8, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %91
  %93 = load i32, ptr %13, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [64 x i64], ptr %92, i64 0, i64 %97
  store i64 %74, ptr %98, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %59
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %13, align 4, !tbaa !5
  br label %54, !llvm.loop !14

102:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %175, %102
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = icmp sle i32 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %178

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

109:                                              ; preds = %171, %108
  %110 = load i32, ptr %15, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = icmp sle i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %174

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

115:                                              ; preds = %167, %114
  %116 = load i32, ptr %16, align 4, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %170

120:                                              ; preds = %115
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %122
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [64 x i64], ptr %123, i64 0, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %129
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [64 x i64], ptr %130, i64 0, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %136
  %138 = load i32, ptr %16, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [64 x i64], ptr %137, i64 0, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = add nsw i64 %134, %141
  %143 = icmp sgt i64 %127, %142
  br i1 %143, label %144, label %166

144:                                              ; preds = %120
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %146
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [64 x i64], ptr %147, i64 0, i64 %149
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %153
  %155 = load i32, ptr %16, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [64 x i64], ptr %154, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = add nsw i64 %151, %158
  %160 = load i32, ptr %15, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %161
  %163 = load i32, ptr %16, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [64 x i64], ptr %162, i64 0, i64 %164
  store i64 %159, ptr %165, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %144, %120
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %16, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %16, align 4, !tbaa !5
  br label %115, !llvm.loop !15

170:                                              ; preds = %119
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %15, align 4, !tbaa !5
  br label %109, !llvm.loop !16

174:                                              ; preds = %113
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %14, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %14, align 4, !tbaa !5
  br label %103, !llvm.loop !17

178:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %237, %178
  %180 = load i32, ptr %18, align 4, !tbaa !5
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 23, ptr %8, align 4
  br label %240

184:                                              ; preds = %179
  %185 = load i32, ptr %18, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %189
  %191 = load i32, ptr %18, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [64 x i64], ptr %190, i64 0, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !9
  %198 = load i32, ptr %18, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %202
  %204 = load i32, ptr %18, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [64 x i64], ptr %203, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = icmp eq i64 %197, %210
  br i1 %211, label %212, label %213

212:                                              ; preds = %184
  br label %215

213:                                              ; preds = %184
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 48, ptr noundef @__PRETTY_FUNCTION__.main) #5
  unreachable

214:                                              ; No predecessors!
  br label %215

215:                                              ; preds = %214, %212
  %216 = load i32, ptr %18, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [64 x [64 x i64]], ptr %2, i64 0, i64 %220
  %222 = load i32, ptr %18, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [64 x i64], ptr %221, i64 0, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = load i32, ptr %18, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [1024 x i32], ptr %5, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = icmp ne i64 %228, %233
  br i1 %234, label %235, label %236

235:                                              ; preds = %215
  store i32 1, ptr %17, align 4, !tbaa !5
  store i32 23, ptr %8, align 4
  br label %240

236:                                              ; preds = %215
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %18, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %18, align 4, !tbaa !5
  br label %179, !llvm.loop !18

240:                                              ; preds = %235, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %17, align 4, !tbaa !5
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %248

244:                                              ; preds = %241
  %245 = load i32, ptr %7, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  %247 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %246)
  br label %276

248:                                              ; preds = %241
  %249 = load i32, ptr %7, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  %251 = load i32, ptr %10, align 4, !tbaa !5
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %250, i32 noundef %251)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %272, %248
  %254 = load i32, ptr %19, align 4, !tbaa !5
  %255 = load i32, ptr %10, align 4, !tbaa !5
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %253
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %275

258:                                              ; preds = %253
  %259 = load i32, ptr %19, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = load i32, ptr %19, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = load i32, ptr %19, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [1024 x i32], ptr %5, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %262, i32 noundef %266, i32 noundef %270)
  br label %272

272:                                              ; preds = %258
  %273 = load i32, ptr %19, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %19, align 4, !tbaa !5
  br label %253, !llvm.loop !19

275:                                              ; preds = %257
  br label %276

276:                                              ; preds = %275, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %7, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !20

280:                                              ; preds = %25
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4096, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4096, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4096, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 32768, ptr %2) #4
  %281 = load i32, ptr %1, align 4
  ret i32 %281
}

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !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}


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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [64 x [64 x i64]], align 16
  %2 = alloca [1024 x i32], align 16
  %3 = alloca [1024 x i32], align 16
  %4 = alloca [1024 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32768, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %9 = load i32, ptr %5, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph99.preheader, label %._crit_edge100

.lr.ph99.preheader:                               ; preds = %0
  %scevgep = getelementptr inbounds i8, ptr %1, i64 520
  %scevgep136 = getelementptr i8, ptr %1, i64 -512
  %invariant.gep = getelementptr i8, ptr %1, i64 520
  %invariant.gep167 = getelementptr i8, ptr %1, i64 -496
  %invariant.gep165 = getelementptr i8, ptr %1, i64 520
  %invariant.gep169 = getelementptr i8, ptr %1, i64 512
  br label %.lr.ph99

._crit_edge100:                                   ; preds = %.loopexit, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 32768, ptr nonnull %1) #5
  ret i32 0

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.loopexit
  %.06296 = phi i32 [ %.pre-phi, %.loopexit ], [ 0, %.lr.ph99.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %12 = load i32, ptr %6, align 4, !tbaa !5
  %.not79 = icmp slt i32 %12, 1
  br i1 %.not79, label %.preheader76, label %.preheader73.preheader

.preheader73.preheader:                           ; preds = %.lr.ph99
  %13 = add nuw i32 %12, 1
  %wide.trip.count106 = zext i32 %13 to i64
  %14 = zext nneg i32 %12 to i64
  %min.iters.check152 = icmp ult i32 %12, 4
  %n.vec155 = and i64 %14, 2147483644
  %ind.end156 = or disjoint i64 %n.vec155, 1
  %cmp.n162 = icmp eq i64 %n.vec155, %14
  br label %.preheader73

.preheader76:                                     ; preds = %._crit_edge, %.lr.ph99
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %.preheader75

.preheader73:                                     ; preds = %.preheader73.preheader, %._crit_edge
  %indvars.iv103 = phi i64 [ 1, %.preheader73.preheader ], [ %indvars.iv.next104, %._crit_edge ]
  br i1 %min.iters.check152, label %scalar.ph151.preheader, label %vector.body158

scalar.ph151.preheader:                           ; preds = %middle.block150, %.preheader73
  %indvars.iv.ph = phi i64 [ 1, %.preheader73 ], [ %ind.end156, %middle.block150 ]
  br label %scalar.ph151

vector.body158:                                   ; preds = %.preheader73, %vector.body158
  %index159 = phi i64 [ %index.next161, %vector.body158 ], [ 0, %.preheader73 ]
  %offset.idx160 = or disjoint i64 %index159, 1
  %17 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv103, i64 %offset.idx160
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <2 x i64> <i64 1000000000, i64 1000000000>, ptr %17, align 8, !tbaa !9
  store <2 x i64> <i64 1000000000, i64 1000000000>, ptr %18, align 8, !tbaa !9
  %index.next161 = add nuw i64 %index159, 4
  %19 = icmp eq i64 %index.next161, %n.vec155
  br i1 %19, label %middle.block150, label %vector.body158, !llvm.loop !11

middle.block150:                                  ; preds = %vector.body158
  br i1 %cmp.n162, label %._crit_edge, label %scalar.ph151.preheader

._crit_edge:                                      ; preds = %scalar.ph151, %middle.block150
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count106
  br i1 %exitcond107.not, label %.preheader76, label %.preheader73, !llvm.loop !15

scalar.ph151:                                     ; preds = %scalar.ph151.preheader, %scalar.ph151
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph151 ], [ %indvars.iv.ph, %scalar.ph151.preheader ]
  %20 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv103, i64 %indvars.iv
  store i64 1000000000, ptr %20, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count106
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph151, !llvm.loop !16

.preheader75.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br label %.preheader75

.preheader75:                                     ; preds = %.preheader75.loopexit, %.preheader76
  %21 = phi i32 [ %12, %.preheader76 ], [ %.pre, %.preheader75.loopexit ]
  %.lcssa = phi i32 [ %15, %.preheader76 ], [ %41, %.preheader75.loopexit ]
  %.not6589 = icmp slt i32 %21, 1
  br i1 %.not6589, label %.preheader74, label %.preheader72.preheader

.preheader72.preheader:                           ; preds = %.preheader75
  %22 = add nuw i32 %21, 1
  %wide.trip.count124 = zext i32 %22 to i64
  %23 = mul nuw nsw i64 %wide.trip.count124, 520
  %scevgep137 = getelementptr i8, ptr %scevgep136, i64 %23
  %24 = shl nuw nsw i64 %wide.trip.count124, 9
  %25 = shl nuw nsw i64 %wide.trip.count124, 3
  %26 = zext nneg i32 %21 to i64
  %27 = zext nneg i32 %21 to i64
  %gep168 = getelementptr i8, ptr %invariant.gep167, i64 %24
  %gep170 = getelementptr i8, ptr %invariant.gep169, i64 %25
  %min.iters.check = icmp ult i32 %21, 4
  %n.vec = and i64 %26, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %26
  %28 = and i32 %21, 1
  %lcmp.mod.not = icmp eq i32 %28, 0
  br label %.preheader72

.lr.ph:                                           ; preds = %.preheader76, %.lr.ph
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph ], [ 0, %.preheader76 ]
  %29 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %indvars.iv108
  %30 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %indvars.iv108
  %31 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %indvars.iv108
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef nonnull %31)
  %33 = load i32, ptr %31, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %30, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = load i32, ptr %29, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %36, i64 %38
  store i64 %34, ptr %39, align 8, !tbaa !9
  %40 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %38, i64 %36
  store i64 %34, ptr %40, align 8, !tbaa !9
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next109, %42
  br i1 %43, label %.lr.ph, label %.preheader75.loopexit, !llvm.loop !17

.preheader74:                                     ; preds = %._crit_edge88.split, %.preheader75
  %.not6891 = icmp sgt i32 %.lcssa, 0
  br i1 %.not6891, label %.lr.ph93.preheader, label %.critedge

.lr.ph93.preheader:                               ; preds = %.preheader74
  %wide.trip.count129 = zext nneg i32 %.lcssa to i64
  br label %.lr.ph93

.preheader72:                                     ; preds = %.preheader72.preheader, %._crit_edge88.split
  %indvar = phi i64 [ 0, %.preheader72.preheader ], [ %indvar.next, %._crit_edge88.split ]
  %indvars.iv121 = phi i64 [ 1, %.preheader72.preheader ], [ %indvars.iv.next122, %._crit_edge88.split ]
  %44 = shl nuw nsw i64 %indvar, 3
  %gep = getelementptr i8, ptr %invariant.gep, i64 %44
  %scevgep139 = getelementptr i8, ptr %gep168, i64 %44
  %45 = shl nuw nsw i64 %indvar, 9
  %gep166 = getelementptr i8, ptr %invariant.gep165, i64 %45
  %scevgep141 = getelementptr i8, ptr %gep170, i64 %45
  %bound0 = icmp ult ptr %scevgep, %scevgep139
  %bound1 = icmp ult ptr %gep, %scevgep137
  %found.conflict = and i1 %bound0, %bound1
  %bound0142 = icmp ult ptr %scevgep, %scevgep141
  %bound1143 = icmp ult ptr %gep166, %scevgep137
  %found.conflict144 = and i1 %bound0142, %bound1143
  %conflict.rdx = or i1 %found.conflict, %found.conflict144
  br label %.preheader

.preheader:                                       ; preds = %.preheader72, %._crit_edge85
  %indvars.iv116 = phi i64 [ 1, %.preheader72 ], [ %indvars.iv.next117, %._crit_edge85 ]
  %46 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv116, i64 %indvars.iv121
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %.preheader, %middle.block
  %indvars.iv111.ph = phi i64 [ 1, %.preheader ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %47 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv116, i64 %indvars.iv111.ph
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = load i64, ptr %46, align 8, !tbaa !9
  %50 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv121, i64 %indvars.iv111.ph
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = add nsw i64 %51, %49
  %spec.store.select.prol = call i64 @llvm.smin.i64(i64 %48, i64 %52)
  store i64 %spec.store.select.prol, ptr %47, align 8
  %indvars.iv.next112.prol = add nuw nsw i64 %indvars.iv111.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv111.unr = phi i64 [ %indvars.iv111.ph, %scalar.ph.preheader ], [ %indvars.iv.next112.prol, %scalar.ph.prol ]
  %53 = icmp eq i64 %indvars.iv111.ph, %27
  br i1 %53, label %._crit_edge85, label %scalar.ph

vector.ph:                                        ; preds = %.preheader
  %54 = load i64, ptr %46, align 8, !tbaa !9, !alias.scope !18
  %broadcast.splatinsert148 = insertelement <2 x i64> poison, i64 %54, i64 0
  %broadcast.splat149 = shufflevector <2 x i64> %broadcast.splatinsert148, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %55 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv116, i64 %offset.idx
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load = load <2 x i64>, ptr %55, align 8, !tbaa !9, !alias.scope !21, !noalias !23
  %wide.load145 = load <2 x i64>, ptr %56, align 8, !tbaa !9, !alias.scope !21, !noalias !23
  %57 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv121, i64 %offset.idx
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %wide.load146 = load <2 x i64>, ptr %57, align 8, !tbaa !9, !alias.scope !25
  %wide.load147 = load <2 x i64>, ptr %58, align 8, !tbaa !9, !alias.scope !25
  %59 = add nsw <2 x i64> %wide.load146, %broadcast.splat149
  %60 = add nsw <2 x i64> %wide.load147, %broadcast.splat149
  %61 = call <2 x i64> @llvm.smin.v2i64(<2 x i64> %wide.load, <2 x i64> %59)
  %62 = call <2 x i64> @llvm.smin.v2i64(<2 x i64> %wide.load145, <2 x i64> %60)
  store <2 x i64> %61, ptr %55, align 8, !alias.scope !21, !noalias !23
  store <2 x i64> %62, ptr %56, align 8, !alias.scope !21, !noalias !23
  %index.next = add nuw i64 %index, 4
  %63 = icmp eq i64 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge85, label %scalar.ph.preheader

._crit_edge88.split:                              ; preds = %._crit_edge85
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond125.not, label %.preheader74, label %.preheader72, !llvm.loop !27

._crit_edge85:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count124
  br i1 %exitcond120.not, label %._crit_edge88.split, label %.preheader, !llvm.loop !28

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv111 = phi i64 [ %indvars.iv.next112.1, %scalar.ph ], [ %indvars.iv111.unr, %scalar.ph.prol.loopexit ]
  %64 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv116, i64 %indvars.iv111
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load i64, ptr %46, align 8, !tbaa !9
  %67 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv121, i64 %indvars.iv111
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = add nsw i64 %68, %66
  %spec.store.select = call i64 @llvm.smin.i64(i64 %65, i64 %69)
  store i64 %spec.store.select, ptr %64, align 8
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %70 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv116, i64 %indvars.iv.next112
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = load i64, ptr %46, align 8, !tbaa !9
  %73 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %indvars.iv121, i64 %indvars.iv.next112
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = add nsw i64 %74, %72
  %spec.store.select.1 = call i64 @llvm.smin.i64(i64 %71, i64 %75)
  store i64 %spec.store.select.1, ptr %70, align 8
  %indvars.iv.next112.1 = add nuw nsw i64 %indvars.iv111, 2
  %exitcond115.not.1 = icmp eq i64 %indvars.iv.next112.1, %wide.trip.count124
  br i1 %exitcond115.not.1, label %._crit_edge85, label %scalar.ph, !llvm.loop !29

76:                                               ; preds = %89
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %.critedge, label %.lr.ph93, !llvm.loop !30

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %76
  %indvars.iv126 = phi i64 [ 0, %.lr.ph93.preheader ], [ %indvars.iv.next127, %76 ]
  %77 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %indvars.iv126
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %indvars.iv126
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %79, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds [64 x [64 x i64]], ptr %1, i64 0, i64 %82, i64 %79
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp eq i64 %84, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %.lr.ph93
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 48, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

89:                                               ; preds = %.lr.ph93
  %90 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %indvars.iv126
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %.not66 = icmp eq i64 %84, %92
  br i1 %.not66, label %76, label %93

93:                                               ; preds = %89
  %94 = add nuw nsw i32 %.06296, 1
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %94)
  br label %.loopexit

.critedge:                                        ; preds = %76, %.preheader74
  %96 = add nuw nsw i32 %.06296, 1
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %96, i32 noundef %.lcssa)
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %.lr.ph95, label %.loopexit

.lr.ph95:                                         ; preds = %.critedge, %.lr.ph95
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %.lr.ph95 ], [ 0, %.critedge ]
  %100 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %indvars.iv131
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %indvars.iv131
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %indvars.iv131
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %101, i32 noundef %103, i32 noundef %105)
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = icmp slt i64 %indvars.iv.next132, %108
  br i1 %109, label %.lr.ph95, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph95, %.critedge, %93
  %.pre-phi = phi i32 [ %96, %.critedge ], [ %94, %93 ], [ %96, %.lr.ph95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = icmp slt i32 %.pre-phi, %110
  br i1 %111, label %.lr.ph99, label %._crit_edge100, !llvm.loop !32
}

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { mustprogress norecurse 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 #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 = { noreturn 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !14, !13}
!17 = distinct !{!17, !12}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = !{!19, !24}
!24 = distinct !{!24, !20}
!25 = !{!24}
!26 = distinct !{!26, !12, !13, !14}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !13}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass