; LLVM IR from tangjz/acm-icpc :: hdu (6749)

; 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
@_ZZ4mainE1x = external hidden global [7 x i32], align 16
@_ZZ4mainE1y = external hidden global [7 x i32], align 16
@_ZZ4mainE3upp = external hidden global [65 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3low = external hidden global [65 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; 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 i32, align 4
  %5 = alloca i32, align 4
  %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 i8, align 1
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %23

23:                                               ; preds = %240, %238, %0
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %2, align 4, !tbaa !5
  %26 = icmp ne i32 %24, 0
  br i1 %26, label %27, label %241

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = shl i32 1, %29
  store i32 %30, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = mul i64 %32, 4
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3upp, i8 0, i64 %33, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %70, %27
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr @_ZZ4mainE1x, i64 %41
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr @_ZZ4mainE1y, i64 %44
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %42, ptr noundef %45, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %66, %39
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %69

52:                                               ; preds = %47
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = ashr i32 %53, %54
  %56 = and i32 %55, 1
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %65

58:                                               ; preds = %52
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %63, %59
  store i32 %64, ptr %62, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %58, %52
  br label %66

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

69:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !5
  br label %34, !llvm.loop !11

73:                                               ; preds = %38
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = mul nsw i32 %79, %80
  %82 = icmp slt i32 %78, %81
  br i1 %82, label %83, label %85

83:                                               ; preds = %73
  %84 = call i32 @puts(ptr noundef @.str.2)
  store i32 2, ptr %8, align 4
  br label %238, !llvm.loop !12

85:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = add nsw i32 %86, %87
  store i32 %88, ptr %12, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %234, %85
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %93, label %235

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = add nsw i32 %94, %95
  %97 = ashr i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  store i8 1, ptr %14, align 1, !tbaa !13
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = mul i64 %99, 4
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3low, i8 0, i64 %100, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %155, %93
  %102 = load i32, ptr %15, align 4, !tbaa !5
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = icmp sle i32 %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  store i32 12, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %158

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

107:                                              ; preds = %151, %106
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = icmp sle i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 15, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %154

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

113:                                              ; preds = %142, %112
  %114 = load i32, ptr %18, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 18, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %145

118:                                              ; preds = %113
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = load i32, ptr %18, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1x, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sub nsw i32 %119, %123
  %125 = call i32 @llvm.abs.i32(i32 %124, i1 true)
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = load i32, ptr %18, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1y, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sub nsw i32 %126, %130
  %132 = call i32 @llvm.abs.i32(i32 %131, i1 true)
  %133 = add nsw i32 %125, %132
  %134 = load i32, ptr %13, align 4, !tbaa !5
  %135 = icmp sle i32 %133, %134
  br i1 %135, label %136, label %141

136:                                              ; preds = %118
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = shl i32 1, %137
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = or i32 %139, %138
  store i32 %140, ptr %17, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %136, %118
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %18, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %18, align 4, !tbaa !5
  br label %113, !llvm.loop !15

145:                                              ; preds = %117
  %146 = load i32, ptr %17, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %151

151:                                              ; preds = %145
  %152 = load i32, ptr %16, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %16, align 4, !tbaa !5
  br label %107, !llvm.loop !16

154:                                              ; preds = %111
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %15, align 4, !tbaa !5
  br label %101, !llvm.loop !17

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

159:                                              ; preds = %192, %158
  %160 = load i32, ptr %19, align 4, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %195

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

165:                                              ; preds = %188, %164
  %166 = load i32, ptr %20, align 4, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 24, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %191

170:                                              ; preds = %165
  %171 = load i32, ptr %19, align 4, !tbaa !5
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = and i32 %171, %172
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %187

175:                                              ; preds = %170
  %176 = load i32, ptr %19, align 4, !tbaa !5
  %177 = load i32, ptr %20, align 4, !tbaa !5
  %178 = xor i32 %176, %177
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = add nsw i32 %185, %181
  store i32 %186, ptr %184, align 4, !tbaa !5
  br label %187

187:                                              ; preds = %175, %170
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %20, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %20, align 4, !tbaa !5
  br label %165, !llvm.loop !18

191:                                              ; preds = %169
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %19, align 4, !tbaa !5
  %194 = shl i32 %193, 1
  store i32 %194, ptr %19, align 4, !tbaa !5
  br label %159, !llvm.loop !19

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

196:                                              ; preds = %223, %195
  %197 = load i8, ptr %14, align 1, !tbaa !13, !range !20, !noundef !21
  %198 = trunc i8 %197 to i1
  br i1 %198, label %199, label %203

199:                                              ; preds = %196
  %200 = load i32, ptr %21, align 4, !tbaa !5
  %201 = load i32, ptr %6, align 4, !tbaa !5
  %202 = icmp slt i32 %200, %201
  br label %203

203:                                              ; preds = %199, %196
  %204 = phi i1 [ false, %196 ], [ %202, %199 ]
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 27, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %226

206:                                              ; preds = %203
  %207 = load i32, ptr %21, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load i32, ptr %21, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = icmp sle i32 %210, %214
  %216 = zext i1 %215 to i32
  %217 = load i8, ptr %14, align 1, !tbaa !13, !range !20, !noundef !21
  %218 = trunc i8 %217 to i1
  %219 = zext i1 %218 to i32
  %220 = and i32 %219, %216
  %221 = icmp ne i32 %220, 0
  %222 = zext i1 %221 to i8
  store i8 %222, ptr %14, align 1, !tbaa !13
  br label %223

223:                                              ; preds = %206
  %224 = load i32, ptr %21, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %21, align 4, !tbaa !5
  br label %196, !llvm.loop !22

226:                                              ; preds = %205
  %227 = load i8, ptr %14, align 1, !tbaa !13, !range !20, !noundef !21
  %228 = trunc i8 %227 to i1
  br i1 %228, label %229, label %231

229:                                              ; preds = %226
  %230 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %230, ptr %12, align 4, !tbaa !5
  br label %234

231:                                              ; preds = %226
  %232 = load i32, ptr %13, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %11, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %231, %229
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %89, !llvm.loop !23

235:                                              ; preds = %89
  %236 = load i32, ptr %11, align 4, !tbaa !5
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %236)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  store i32 0, ptr %8, align 4
  br label %238

238:                                              ; preds = %235, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %239 = load i32, ptr %8, align 4
  switch i32 %239, label %243 [
    i32 0, label %240
    i32 2, label %23
  ]

240:                                              ; preds = %238
  br label %23, !llvm.loop !12

241:                                              ; preds = %23
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %242 = load i32, ptr %1, align 4
  ret i32 %242

243:                                              ; preds = %238
  unreachable
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

declare i32 @puts(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !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"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE1x = external hidden global [7 x i32], align 16
@_ZZ4mainE1y = external hidden global [7 x i32], align 16
@_ZZ4mainE3upp = external hidden local_unnamed_addr global [65 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE3low = external hidden local_unnamed_addr global [65 x i32], align 16
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = add nsw i32 %7, -1
  store i32 %8, ptr %1, align 4, !tbaa !5
  %.not112 = icmp eq i32 %7, 0
  br i1 %.not112, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %0, %159
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %.fr116 = freeze i32 %10
  %11 = shl nuw i32 1, %.fr116
  %12 = sext i32 %11 to i64
  %13 = shl nsw i64 %12, 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @_ZZ4mainE3upp, i8 0, i64 %13, i1 false)
  %14 = icmp sgt i32 %.fr116, 0
  br i1 %14, label %.lr.ph81, label %._crit_edge82

.lr.ph81:                                         ; preds = %.lr.ph114
  %.not117 = icmp eq i32 %.fr116, 31
  br i1 %.not117, label %.lr.ph81.split, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph81
  %smax = call i32 @llvm.smax.i32(i32 %11, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %15 = icmp slt i32 %11, 2
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv126 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next127, %._crit_edge.us ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %16 = getelementptr inbounds i32, ptr @_ZZ4mainE1x, i64 %indvars.iv126
  %17 = getelementptr inbounds i32, ptr @_ZZ4mainE1y, i64 %indvars.iv126
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %5)
  %19 = trunc nuw nsw i64 %indvars.iv126 to i32
  %20 = shl nuw i32 1, %19
  %21 = load i32, ptr %5, align 4
  br i1 %15, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %35
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %35 ], [ 0, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.1, %35 ], [ 0, %.lr.ph.us ]
  %22 = trunc nuw nsw i64 %indvars.iv to i32
  %23 = and i32 %20, %22
  %.not73.us = icmp eq i32 %23, 0
  br i1 %.not73.us, label %28, label %24

24:                                               ; preds = %.lr.ph.us.new
  %25 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %indvars.iv
  %26 = load i32, ptr %25, align 8, !tbaa !5
  %27 = add nsw i32 %26, %21
  store i32 %27, ptr %25, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %24, %.lr.ph.us.new
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %29 = trunc nuw nsw i64 %indvars.iv.next to i32
  %30 = and i32 %20, %29
  %.not73.us.1 = icmp eq i32 %30, 0
  br i1 %.not73.us.1, label %35, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %indvars.iv.next
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, %21
  store i32 %34, ptr %32, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %31, %28
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !9

._crit_edge.us.unr-lcssa:                         ; preds = %35, %.lr.ph.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next.1, %35 ]
  %36 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %37 = and i32 %20, %36
  %.not73.us.epil = icmp eq i32 %37, 0
  %or.cond = select i1 %lcmp.mod.not, i1 true, i1 %.not73.us.epil
  br i1 %or.cond, label %._crit_edge.us, label %38

38:                                               ; preds = %._crit_edge.us.unr-lcssa
  %39 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %indvars.iv.unr
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add nsw i32 %40, %21
  store i32 %41, ptr %39, align 4, !tbaa !5
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %38, %._crit_edge.us.unr-lcssa
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next127, %43
  br i1 %44, label %.lr.ph.us, label %._crit_edge82, !llvm.loop !11

._crit_edge82:                                    ; preds = %._crit_edge.us, %.lr.ph81.split, %.lr.ph114
  %.lcssa = phi i32 [ %.fr116, %.lr.ph114 ], [ %56, %.lr.ph81.split ], [ %42, %._crit_edge.us ]
  %45 = add nsw i32 %11, -1
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = mul i32 %50, %49
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %59, label %61

.lr.ph81.split:                                   ; preds = %.lr.ph81, %.lr.ph81.split
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %.lr.ph81.split ], [ 0, %.lr.ph81 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %53 = getelementptr inbounds i32, ptr @_ZZ4mainE1x, i64 %indvars.iv129
  %54 = getelementptr inbounds i32, ptr @_ZZ4mainE1y, i64 %indvars.iv129
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %53, ptr noundef nonnull %54, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next130, %57
  br i1 %58, label %.lr.ph81.split, label %._crit_edge82, !llvm.loop !11

59:                                               ; preds = %._crit_edge82
  %60 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %159, !llvm.loop !12

61:                                               ; preds = %._crit_edge82
  %62 = add nsw i32 %50, %49
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %61
  %.not6992 = icmp slt i32 %49, 1
  %.not7186 = icmp slt i32 %50, 1
  %64 = icmp sgt i32 %.lcssa, 0
  %65 = icmp sgt i32 %11, 1
  %.not118 = icmp eq i32 %.fr116, 31
  %wide.trip.count135 = zext i32 %.lcssa to i64
  %wide.trip.count142 = zext i32 %11 to i64
  %brmerge = or i1 %.not6992, %.not7186
  %min.iters.check = icmp ult i32 %.lcssa, 8
  %n.vec = and i64 %wide.trip.count135, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count135
  %xtraiter182 = and i64 %wide.trip.count142, 1
  %unroll_iter184 = and i64 %wide.trip.count142, 2147483646
  %lcmp.mod183.not = icmp eq i64 %xtraiter182, 0
  br label %66

66:                                               ; preds = %.lr.ph109, %.thread
  %.061107 = phi i32 [ %62, %.lr.ph109 ], [ %149, %.thread ]
  %.063106 = phi i32 [ 0, %.lr.ph109 ], [ %148, %.thread ]
  %67 = add nuw nsw i32 %.061107, %.063106
  %68 = lshr i32 %67, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @_ZZ4mainE3low, i8 0, i64 %13, i1 false)
  br i1 %brmerge, label %.preheader77, label %.preheader75.lr.ph.split

.preheader75.lr.ph.split:                         ; preds = %66
  br i1 %64, label %.preheader75.us95.preheader, label %.preheader75.lr.ph.split.split

.preheader75.us95.preheader:                      ; preds = %.preheader75.lr.ph.split
  %broadcast.splatinsert171 = insertelement <4 x i32> poison, i32 %68, i64 0
  %broadcast.splat172 = shufflevector <4 x i32> %broadcast.splatinsert171, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %.preheader75.us95

.preheader75.us95:                                ; preds = %.preheader75.us95.preheader, %._crit_edge88.split.us.us
  %.05993.us96 = phi i32 [ %110, %._crit_edge88.split.us.us ], [ 1, %.preheader75.us95.preheader ]
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.05993.us96, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %._crit_edge.us90.us, %.preheader75.us95
  %.05887.us.us = phi i32 [ 1, %.preheader75.us95 ], [ %109, %._crit_edge.us90.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.us.us
  %broadcast.splatinsert169 = insertelement <4 x i32> poison, i32 %.05887.us.us, i64 0
  %broadcast.splat170 = shufflevector <4 x i32> %broadcast.splatinsert169, <4 x i32> poison, <4 x i32> zeroinitializer
  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> [ zeroinitializer, %vector.ph ], [ %89, %vector.body ]
  %vec.phi164 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %90, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %69 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1x, i64 0, i64 %index
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load = load <4 x i32>, ptr %69, align 16, !tbaa !5
  %wide.load166 = load <4 x i32>, ptr %70, align 16, !tbaa !5
  %71 = sub nsw <4 x i32> %broadcast.splat, %wide.load
  %72 = sub nsw <4 x i32> %broadcast.splat, %wide.load166
  %73 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %71, i1 true)
  %74 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %72, i1 true)
  %75 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1y, i64 0, i64 %index
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %wide.load167 = load <4 x i32>, ptr %75, align 16, !tbaa !5
  %wide.load168 = load <4 x i32>, ptr %76, align 16, !tbaa !5
  %77 = sub nsw <4 x i32> %broadcast.splat170, %wide.load167
  %78 = sub nsw <4 x i32> %broadcast.splat170, %wide.load168
  %79 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %77, i1 true)
  %80 = call <4 x i32> @llvm.abs.v4i32(<4 x i32> %78, i1 true)
  %81 = add nuw nsw <4 x i32> %79, %73
  %82 = add nuw nsw <4 x i32> %80, %74
  %83 = icmp ugt <4 x i32> %81, %broadcast.splat172
  %84 = icmp ugt <4 x i32> %82, %broadcast.splat172
  %85 = shl nuw <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %vec.ind
  %86 = shl nuw <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %step.add
  %87 = select <4 x i1> %83, <4 x i32> zeroinitializer, <4 x i32> %85
  %88 = select <4 x i1> %84, <4 x i32> zeroinitializer, <4 x i32> %86
  %89 = or <4 x i32> %87, %vec.phi
  %90 = or <4 x i32> %88, %vec.phi164
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %91 = icmp eq i64 %index.next, %n.vec
  br i1 %91, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %bin.rdx = or <4 x i32> %90, %89
  %92 = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge.us90.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us.us
  %indvars.iv132.ph = phi i64 [ 0, %.preheader.us.us ], [ %n.vec, %middle.block ]
  %.05783.us.us.ph = phi i32 [ 0, %.preheader.us.us ], [ %92, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %scalar.ph ], [ %indvars.iv132.ph, %scalar.ph.preheader ]
  %.05783.us.us = phi i32 [ %.1.us.us, %scalar.ph ], [ %.05783.us.us.ph, %scalar.ph.preheader ]
  %93 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1x, i64 0, i64 %indvars.iv132
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = sub nsw i32 %.05993.us96, %94
  %96 = call i32 @llvm.abs.i32(i32 %95, i1 true)
  %97 = getelementptr inbounds [7 x i32], ptr @_ZZ4mainE1y, i64 0, i64 %indvars.iv132
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sub nsw i32 %.05887.us.us, %98
  %100 = call i32 @llvm.abs.i32(i32 %99, i1 true)
  %101 = add nuw nsw i32 %100, %96
  %.not72.us.us = icmp ugt i32 %101, %68
  %102 = trunc nuw nsw i64 %indvars.iv132 to i32
  %103 = shl nuw i32 1, %102
  %104 = select i1 %.not72.us.us, i32 0, i32 %103
  %.1.us.us = or i32 %104, %.05783.us.us
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count135
  br i1 %exitcond136.not, label %._crit_edge.us90.us, label %scalar.ph, !llvm.loop !16

._crit_edge.us90.us:                              ; preds = %scalar.ph, %middle.block
  %.1.us.us.lcssa = phi i32 [ %92, %middle.block ], [ %.1.us.us, %scalar.ph ]
  %105 = sext i32 %.1.us.us.lcssa to i64
  %106 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %106, align 4, !tbaa !5
  %109 = add nuw i32 %.05887.us.us, 1
  %exitcond137.not = icmp eq i32 %.05887.us.us, %50
  br i1 %exitcond137.not, label %._crit_edge88.split.us.us, label %.preheader.us.us, !llvm.loop !17

._crit_edge88.split.us.us:                        ; preds = %._crit_edge.us90.us
  %110 = add nuw i32 %.05993.us96, 1
  %exitcond138.not = icmp eq i32 %.05993.us96, %49
  br i1 %exitcond138.not, label %.preheader77, label %.preheader75.us95, !llvm.loop !18

.preheader75.lr.ph.split.split:                   ; preds = %.preheader75.lr.ph.split
  %_ZZ4mainE3low.promoted98 = load i32, ptr @_ZZ4mainE3low, align 16, !tbaa !5
  %111 = add i32 %51, %_ZZ4mainE3low.promoted98
  store i32 %111, ptr @_ZZ4mainE3low, align 16, !tbaa !5
  br label %.preheader77

.preheader77:                                     ; preds = %._crit_edge88.split.us.us, %66, %.preheader75.lr.ph.split.split
  br i1 %65, label %.preheader74.us, label %.preheader76

.preheader74.us:                                  ; preds = %.preheader77, %._crit_edge.us103
  %.055101.us = phi i32 [ %145, %._crit_edge.us103 ], [ 1, %.preheader77 ]
  br label %112

112:                                              ; preds = %134, %.preheader74.us
  %indvars.iv139 = phi i64 [ 0, %.preheader74.us ], [ %indvars.iv.next140.1, %134 ]
  %niter185 = phi i64 [ 0, %.preheader74.us ], [ %niter185.next.1, %134 ]
  %113 = trunc nuw nsw i64 %indvars.iv139 to i32
  %114 = and i32 %.055101.us, %113
  %.not70.us = icmp eq i32 %114, 0
  br i1 %.not70.us, label %123, label %115

115:                                              ; preds = %112
  %116 = xor i32 %.055101.us, %113
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %indvars.iv139
  %121 = load i32, ptr %120, align 8, !tbaa !5
  %122 = add nsw i32 %121, %119
  store i32 %122, ptr %120, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %115, %112
  %indvars.iv.next140 = or disjoint i64 %indvars.iv139, 1
  %124 = trunc nuw nsw i64 %indvars.iv.next140 to i32
  %125 = and i32 %.055101.us, %124
  %.not70.us.1 = icmp eq i32 %125, 0
  br i1 %.not70.us.1, label %134, label %126

126:                                              ; preds = %123
  %127 = xor i32 %.055101.us, %124
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %indvars.iv.next140
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %132, %130
  store i32 %133, ptr %131, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %126, %123
  %indvars.iv.next140.1 = add nuw nsw i64 %indvars.iv139, 2
  %niter185.next.1 = add i64 %niter185, 2
  %niter185.ncmp.1 = icmp eq i64 %niter185.next.1, %unroll_iter184
  br i1 %niter185.ncmp.1, label %._crit_edge.us103.unr-lcssa, label %112, !llvm.loop !19

._crit_edge.us103.unr-lcssa:                      ; preds = %134
  br i1 %lcmp.mod183.not, label %._crit_edge.us103, label %.epil.preheader181

.epil.preheader181:                               ; preds = %._crit_edge.us103.unr-lcssa
  %135 = trunc nuw nsw i64 %indvars.iv.next140.1 to i32
  %136 = and i32 %.055101.us, %135
  %.not70.us.epil = icmp eq i32 %136, 0
  br i1 %.not70.us.epil, label %._crit_edge.us103, label %137

137:                                              ; preds = %.epil.preheader181
  %138 = xor i32 %.055101.us, %135
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %indvars.iv.next140.1
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = add nsw i32 %143, %141
  store i32 %144, ptr %142, align 4, !tbaa !5
  br label %._crit_edge.us103

._crit_edge.us103:                                ; preds = %.epil.preheader181, %137, %._crit_edge.us103.unr-lcssa
  %145 = shl i32 %.055101.us, 1
  %146 = icmp slt i32 %145, %11
  br i1 %146, label %.preheader74.us, label %.preheader76, !llvm.loop !20

.preheader76:                                     ; preds = %._crit_edge.us103, %.preheader77
  br i1 %.not118, label %.thread, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %147 = add nuw nsw i32 %68, 1
  %spec.select = select i1 %cond.fr, i32 %.063106, i32 %147
  %spec.select173 = select i1 %cond.fr, i32 %68, i32 %.061107
  br label %.thread

.thread:                                          ; preds = %._crit_edge, %.preheader76
  %148 = phi i32 [ %.063106, %.preheader76 ], [ %spec.select, %._crit_edge ]
  %149 = phi i32 [ %68, %.preheader76 ], [ %spec.select173, %._crit_edge ]
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %66, label %._crit_edge110, !llvm.loop !21

.lr.ph:                                           ; preds = %.preheader76, %.lr.ph
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.lr.ph ], [ 0, %.preheader76 ]
  %151 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3low, i64 0, i64 %indvars.iv144
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = getelementptr inbounds [65 x i32], ptr @_ZZ4mainE3upp, i64 0, i64 %indvars.iv144
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = icmp sle i32 %152, %154
  %cond.fr = freeze i1 %155
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %156 = icmp slt i64 %indvars.iv.next145, %12
  %157 = select i1 %cond.fr, i1 %156, i1 false
  br i1 %157, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge110:                                   ; preds = %.thread, %61
  %.063.lcssa = phi i32 [ 0, %61 ], [ %148, %.thread ]
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.063.lcssa)
  br label %159

159:                                              ; preds = %._crit_edge110, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %160 = load i32, ptr %1, align 4, !tbaa !5
  %161 = add nsw i32 %160, -1
  store i32 %161, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %160, 0
  br i1 %.not, label %._crit_edge115, label %.lr.ph114

._crit_edge115:                                   ; preds = %159, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

; 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 i32 @llvm.smax.i32(i32, i32) #5

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

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

attributes #0 = { mustprogress nofree 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !15, !14}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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