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

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

@a = external dso_local global [13 x [1025 x x86_fp80]], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@id = external dso_local global [2051 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5pivotii(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 [1025 x i32], align 16
  %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 x86_fp80, align 16
  %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 x86_fp80, align 16
  %24 = alloca x86_fp80, align 16
  %25 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %358, %0
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr @t, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4100, ptr %6) #5
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
  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 = %45, %32
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %34
  %40 = getelementptr inbounds [1025 x i32], ptr %6, i64 0, i64 0
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %43)
  br label %45

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

48:                                               ; preds = %38
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = shl i32 1, %49
  store i32 %50, ptr @n, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %75, %48
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = load i32, ptr @m, align 4, !tbaa !5
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

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

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

59:                                               ; preds = %71, %58
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %74

64:                                               ; preds = %59
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %66
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1025 x x86_fp80], ptr %67, i64 0, i64 %69
  store x86_fp80 0xK00000000000000000000, ptr %70, align 16, !tbaa !11
  br label %71

71:                                               ; preds = %64
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !5
  br label %59, !llvm.loop !13

74:                                               ; preds = %63
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %8, align 4, !tbaa !5
  br label %53, !llvm.loop !14

78:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %89, %78
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = load i32, ptr @n, align 4, !tbaa !5
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %92

84:                                               ; preds = %79
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2051 x i32], ptr @id, i64 0, i64 %87
  store i32 %85, ptr %88, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %84
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %10, align 4, !tbaa !5
  br label %79, !llvm.loop !15

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

93:                                               ; preds = %193, %92
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = load i32, ptr @n, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

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

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

99:                                               ; preds = %118, %98
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

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

104:                                              ; preds = %99
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = ashr i32 %105, %106
  %108 = and i32 %107, 1
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %117

110:                                              ; preds = %104
  %111 = load i32, ptr %13, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1025 x i32], ptr %6, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = add nsw i32 %115, %114
  store i32 %116, ptr %12, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %110, %104
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %13, align 4, !tbaa !5
  br label %99, !llvm.loop !16

121:                                              ; preds = %103
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = icmp sgt i32 %122, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %121
  store i32 19, ptr %3, align 4
  br label %190

126:                                              ; preds = %121
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = and i32 %127, 1
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %137

130:                                              ; preds = %126
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1025 x x86_fp80], ptr @a, i64 0, i64 %133
  %135 = load x86_fp80, ptr %134, align 16, !tbaa !11
  %136 = fadd x86_fp80 %135, 0xK3FFF8000000000000000
  store x86_fp80 %136, ptr %134, align 16, !tbaa !11
  br label %137

137:                                              ; preds = %130, %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %177, %137
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %180

143:                                              ; preds = %138
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = ashr i32 %144, %145
  %147 = and i32 %146, 1
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %176

149:                                              ; preds = %143
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %152
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [1025 x x86_fp80], ptr %153, i64 0, i64 %156
  %158 = load x86_fp80, ptr %157, align 16, !tbaa !11
  %159 = fadd x86_fp80 %158, 0xK3FFF8000000000000000
  store x86_fp80 %159, ptr %157, align 16, !tbaa !11
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %164

162:                                              ; preds = %149
  %163 = load i32, ptr %14, align 4, !tbaa !5
  br label %166

164:                                              ; preds = %149
  %165 = load i32, ptr %4, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %164, %162
  %167 = phi i32 [ %163, %162 ], [ %165, %164 ]
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %168
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [1025 x x86_fp80], ptr %169, i64 0, i64 %172
  %174 = load x86_fp80, ptr %173, align 16, !tbaa !11
  %175 = fsub x86_fp80 %174, 0xK3FFF8000000000000000
  store x86_fp80 %175, ptr %173, align 16, !tbaa !11
  br label %176

176:                                              ; preds = %166, %143
  br label %177

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

180:                                              ; preds = %142
  %181 = load i32, ptr @m, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %182
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1025 x x86_fp80], ptr %183, i64 0, i64 %186
  %188 = load x86_fp80, ptr %187, align 16, !tbaa !11
  %189 = fadd x86_fp80 %188, 0xK3FFF8000000000000000
  store x86_fp80 %189, ptr %187, align 16, !tbaa !11
  store i32 0, ptr %3, align 4
  br label %190

190:                                              ; preds = %180, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %191 = load i32, ptr %3, align 4
  switch i32 %191, label %362 [
    i32 0, label %192
    i32 19, label %193
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %190
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %11, align 4, !tbaa !5
  br label %93, !llvm.loop !18

196:                                              ; preds = %97
  %197 = load i32, ptr @m, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %198
  %200 = getelementptr inbounds [1025 x x86_fp80], ptr %199, i64 0, i64 0
  %201 = load x86_fp80, ptr %200, align 16, !tbaa !11
  %202 = fadd x86_fp80 %201, 0xK3FFF8000000000000000
  store x86_fp80 %202, ptr %200, align 16, !tbaa !11
  br label %203

203:                                              ; preds = %273, %196
  br label %204

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  store x86_fp80 0xKBFD78CBCCC096F508800, ptr %17, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %226, %204
  %206 = load i32, ptr %18, align 4, !tbaa !5
  %207 = load i32, ptr @m, align 4, !tbaa !5
  %208 = icmp sle i32 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %229

210:                                              ; preds = %205
  %211 = load i32, ptr %18, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %212
  %214 = getelementptr inbounds [1025 x x86_fp80], ptr %213, i64 0, i64 0
  %215 = load x86_fp80, ptr %214, align 16, !tbaa !11
  %216 = load x86_fp80, ptr %17, align 16, !tbaa !11
  %217 = fcmp olt x86_fp80 %215, %216
  br i1 %217, label %218, label %225

218:                                              ; preds = %210
  %219 = load i32, ptr %18, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %220
  %222 = getelementptr inbounds [1025 x x86_fp80], ptr %221, i64 0, i64 0
  %223 = load x86_fp80, ptr %222, align 16, !tbaa !11
  store x86_fp80 %223, ptr %17, align 16, !tbaa !11
  %224 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %224, ptr %15, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %218, %210
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %18, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %18, align 4, !tbaa !5
  br label %205, !llvm.loop !19

229:                                              ; preds = %209
  %230 = load i32, ptr %15, align 4, !tbaa !5
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  store i32 27, ptr %3, align 4
  br label %271

233:                                              ; preds = %229
  store x86_fp80 0xKBFD78CBCCC096F508800, ptr %17, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %259, %233
  %235 = load i32, ptr %19, align 4, !tbaa !5
  %236 = load i32, ptr @n, align 4, !tbaa !5
  %237 = icmp sle i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %262

239:                                              ; preds = %234
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %241
  %243 = load i32, ptr %19, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [1025 x x86_fp80], ptr %242, i64 0, i64 %244
  %246 = load x86_fp80, ptr %245, align 16, !tbaa !11
  %247 = load x86_fp80, ptr %17, align 16, !tbaa !11
  %248 = fcmp olt x86_fp80 %246, %247
  br i1 %248, label %249, label %258

249:                                              ; preds = %239
  %250 = load i32, ptr %15, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %251
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [1025 x x86_fp80], ptr %252, i64 0, i64 %254
  %256 = load x86_fp80, ptr %255, align 16, !tbaa !11
  store x86_fp80 %256, ptr %17, align 16, !tbaa !11
  %257 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %257, ptr %16, align 4, !tbaa !5
  br label %258

258:                                              ; preds = %249, %239
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %19, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %19, align 4, !tbaa !5
  br label %234, !llvm.loop !20

262:                                              ; preds = %238
  %263 = load i32, ptr %16, align 4, !tbaa !5
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %266

265:                                              ; preds = %262
  br label %268

266:                                              ; preds = %262
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 70, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

267:                                              ; No predecessors!
  br label %268

268:                                              ; preds = %267, %265
  %269 = load i32, ptr %15, align 4, !tbaa !5
  %270 = load i32, ptr %16, align 4, !tbaa !5
  call void @_Z5pivotii(i32 noundef %269, i32 noundef %270)
  store i32 0, ptr %3, align 4
  br label %271

271:                                              ; preds = %268, %232
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %272 = load i32, ptr %3, align 4
  switch i32 %272, label %362 [
    i32 0, label %273
    i32 27, label %274
  ]

273:                                              ; preds = %271
  br label %203, !llvm.loop !21

274:                                              ; preds = %271
  br label %275

275:                                              ; preds = %351, %274
  br label %276

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %277 = load i32, ptr @n, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %293, %276
  %280 = load i32, ptr %22, align 4, !tbaa !5
  %281 = load i32, ptr @n, align 4, !tbaa !5
  %282 = icmp sle i32 %280, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %279
  store i32 36, ptr %3, align 4
  br label %296

284:                                              ; preds = %279
  %285 = load i32, ptr %22, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1025 x x86_fp80], ptr @a, i64 0, i64 %286
  %288 = load x86_fp80, ptr %287, align 16, !tbaa !11
  %289 = fcmp ogt x86_fp80 %288, 0xK3FD78CBCCC096F508800
  br i1 %289, label %290, label %292

290:                                              ; preds = %284
  %291 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %291, ptr %21, align 4, !tbaa !5
  store i32 36, ptr %3, align 4
  br label %296

292:                                              ; preds = %284
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %22, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %22, align 4, !tbaa !5
  br label %279, !llvm.loop !22

296:                                              ; preds = %290, %283
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %21, align 4, !tbaa !5
  %299 = load i32, ptr @n, align 4, !tbaa !5
  %300 = icmp sgt i32 %298, %299
  br i1 %300, label %301, label %302

301:                                              ; preds = %297
  store i32 35, ptr %3, align 4
  br label %349

302:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  store x86_fp80 0xK403ADE0B6B3A76400000, ptr %23, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %303

303:                                              ; preds = %337, %302
  %304 = load i32, ptr %25, align 4, !tbaa !5
  %305 = load i32, ptr @m, align 4, !tbaa !5
  %306 = icmp sle i32 %304, %305
  br i1 %306, label %308, label %307

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

308:                                              ; preds = %303
  %309 = load i32, ptr %25, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %310
  %312 = load i32, ptr %21, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [1025 x x86_fp80], ptr %311, i64 0, i64 %313
  %315 = load x86_fp80, ptr %314, align 16, !tbaa !11
  %316 = fcmp ogt x86_fp80 %315, 0xK3FD78CBCCC096F508800
  br i1 %316, label %317, label %336

317:                                              ; preds = %308
  %318 = load i32, ptr %25, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %319
  %321 = getelementptr inbounds [1025 x x86_fp80], ptr %320, i64 0, i64 0
  %322 = load x86_fp80, ptr %321, align 16, !tbaa !11
  %323 = load i32, ptr %25, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %324
  %326 = load i32, ptr %21, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [1025 x x86_fp80], ptr %325, i64 0, i64 %327
  %329 = load x86_fp80, ptr %328, align 16, !tbaa !11
  %330 = fdiv x86_fp80 %322, %329
  store x86_fp80 %330, ptr %24, align 16, !tbaa !11
  %331 = load x86_fp80, ptr %23, align 16, !tbaa !11
  %332 = fcmp olt x86_fp80 %330, %331
  br i1 %332, label %333, label %336

333:                                              ; preds = %317
  %334 = load x86_fp80, ptr %24, align 16, !tbaa !11
  store x86_fp80 %334, ptr %23, align 16, !tbaa !11
  %335 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %335, ptr %20, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %333, %317, %308
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %25, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %25, align 4, !tbaa !5
  br label %303, !llvm.loop !23

340:                                              ; preds = %307
  %341 = load i32, ptr %20, align 4, !tbaa !5
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %343, label %344

343:                                              ; preds = %340
  br label %346

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

345:                                              ; No predecessors!
  br label %346

346:                                              ; preds = %345, %343
  %347 = load i32, ptr %20, align 4, !tbaa !5
  %348 = load i32, ptr %21, align 4, !tbaa !5
  call void @_Z5pivotii(i32 noundef %347, i32 noundef %348)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  store i32 0, ptr %3, align 4
  br label %349

349:                                              ; preds = %346, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  %350 = load i32, ptr %3, align 4
  switch i32 %350, label %362 [
    i32 0, label %351
    i32 35, label %352
  ]

351:                                              ; preds = %349
  br label %275, !llvm.loop !24

352:                                              ; preds = %349
  %353 = load i32, ptr %2, align 4, !tbaa !5
  %354 = load x86_fp80, ptr @a, align 16, !tbaa !11
  %355 = fneg x86_fp80 %354
  %356 = fptrunc x86_fp80 %355 to double
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %353, double noundef %356)
  call void @llvm.lifetime.end.p0(i64 4100, 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
  br label %358

358:                                              ; preds = %352
  %359 = load i32, ptr %2, align 4, !tbaa !5
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %2, align 4, !tbaa !5
  br label %27, !llvm.loop !25

361:                                              ; preds = %31
  ret i32 0

362:                                              ; preds = %349, %271, %190
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!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}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !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"

@a = external dso_local local_unnamed_addr global [13 x [1025 x x86_fp80]], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@t = external dso_local global i32, align 4
@id = external dso_local local_unnamed_addr global [2051 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5pivotii(i32 noundef, i32 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [1025 x i32], align 16
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %.not179 = icmp slt i32 %5, 1
  br i1 %.not179, label %._crit_edge183, label %.lr.ph182

._crit_edge183:                                   ; preds = %.thread, %0
  ret i32 0

.lr.ph182:                                        ; preds = %0, %.thread
  %.074180 = phi i32 [ %196, %.thread ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4100, ptr nonnull %3) #6
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %7 = load i32, ptr %1, align 4
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph182
  %.lcssa = phi i32 [ %7, %.lr.ph182 ], [ %16, %.lr.ph ]
  %9 = shl nuw i32 1, %.lcssa
  store i32 %9, ptr @n, align 4, !tbaa !5
  %10 = add nsw i32 %.lcssa, 1
  store i32 %10, ptr @m, align 4, !tbaa !5
  %.not104136 = icmp slt i32 %.lcssa, -1
  br i1 %.not104136, label %.lr.ph140.preheader, label %.preheader126.lr.ph

.preheader126.lr.ph:                              ; preds = %._crit_edge
  %.not117132 = icmp eq i32 %.lcssa, 31
  br i1 %.not117132, label %.preheader128.._crit_edge152_crit_edge, label %.preheader126.preheader

.preheader126.preheader:                          ; preds = %.preheader126.lr.ph
  %smax = call i32 @llvm.smax.i32(i32 %9, i32 0)
  %11 = add nuw i32 %smax, 1
  %12 = add i32 %.lcssa, 2
  %wide.trip.count196 = zext i32 %12 to i64
  %wide.trip.count = zext i32 %11 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %13 = icmp slt i32 %9, 3
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader126

.lr.ph:                                           ; preds = %.lr.ph182, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph182 ]
  %14 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %14)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr %1, align 4
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph140.preheader:                              ; preds = %._crit_edge135, %._crit_edge
  %smax201 = call i32 @llvm.smax.i32(i32 %9, i32 0)
  %19 = add nuw i32 %smax201, 1
  %wide.trip.count202 = zext i32 %19 to i64
  %min.iters.check = icmp slt i32 %9, 7
  br i1 %min.iters.check, label %.lr.ph140.preheader272, label %vector.ph

.lr.ph140.preheader272:                           ; preds = %middle.block, %.lr.ph140.preheader
  %indvars.iv198.ph = phi i64 [ 0, %.lr.ph140.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph140

vector.ph:                                        ; preds = %.lr.ph140.preheader
  %n.vec = and i64 %wide.trip.count202, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %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>
  %20 = getelementptr inbounds [2051 x i32], ptr @id, i64 0, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x i32> %vec.ind, ptr %20, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %21, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count202
  br i1 %cmp.n, label %.preheader125.lr.ph, label %.lr.ph140.preheader272

.preheader126:                                    ; preds = %.preheader126.preheader, %._crit_edge135
  %indvars.iv193 = phi i64 [ 0, %.preheader126.preheader ], [ %indvars.iv.next194, %._crit_edge135 ]
  br i1 %13, label %._crit_edge135.unr-lcssa, label %.preheader126.new

._crit_edge135.unr-lcssa:                         ; preds = %.preheader126.new, %.preheader126
  %indvars.iv190.unr = phi i64 [ 0, %.preheader126 ], [ %indvars.iv.next191.3, %.preheader126.new ]
  br i1 %lcmp.mod.not, label %._crit_edge135, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge135.unr-lcssa, %.epil.preheader
  %indvars.iv190.epil = phi i64 [ %indvars.iv.next191.epil, %.epil.preheader ], [ %indvars.iv190.unr, %._crit_edge135.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge135.unr-lcssa ]
  %23 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv193, i64 %indvars.iv190.epil
  store x86_fp80 0xK00000000000000000000, ptr %23, align 16, !tbaa !14
  %indvars.iv.next191.epil = add nuw nsw i64 %indvars.iv190.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 %._crit_edge135, label %.epil.preheader, !llvm.loop !16

._crit_edge135:                                   ; preds = %.epil.preheader, %._crit_edge135.unr-lcssa
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197 = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197, label %.lr.ph140.preheader, label %.preheader126, !llvm.loop !18

.preheader126.new:                                ; preds = %.preheader126, %.preheader126.new
  %indvars.iv190 = phi i64 [ %indvars.iv.next191.3, %.preheader126.new ], [ 0, %.preheader126 ]
  %niter = phi i64 [ %niter.next.3, %.preheader126.new ], [ 0, %.preheader126 ]
  %24 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv193, i64 %indvars.iv190
  store x86_fp80 0xK00000000000000000000, ptr %24, align 16, !tbaa !14
  %indvars.iv.next191 = or disjoint i64 %indvars.iv190, 1
  %25 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv193, i64 %indvars.iv.next191
  store x86_fp80 0xK00000000000000000000, ptr %25, align 16, !tbaa !14
  %indvars.iv.next191.1 = or disjoint i64 %indvars.iv190, 2
  %26 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv193, i64 %indvars.iv.next191.1
  store x86_fp80 0xK00000000000000000000, ptr %26, align 16, !tbaa !14
  %indvars.iv.next191.2 = or disjoint i64 %indvars.iv190, 3
  %27 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv193, i64 %indvars.iv.next191.2
  store x86_fp80 0xK00000000000000000000, ptr %27, align 16, !tbaa !14
  %indvars.iv.next191.3 = add nuw nsw i64 %indvars.iv190, 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 %._crit_edge135.unr-lcssa, label %.preheader126.new, !llvm.loop !19

.preheader128.._crit_edge152_crit_edge:           ; preds = %.preheader126.lr.ph
  %.pre242 = zext nneg i32 %10 to i64
  br label %._crit_edge152

.preheader125.lr.ph:                              ; preds = %.lr.ph140, %middle.block
  %28 = icmp sgt i32 %.lcssa, 0
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %10 to i64
  %smax218 = call i32 @llvm.smax.i32(i32 %9, i32 1)
  %wide.trip.count219 = zext nneg i32 %smax218 to i64
  %wide.trip.count207 = zext i32 %.lcssa to i64
  %wide.trip.count212254 = zext nneg i32 %.lcssa to i64
  %wide.trip.count212 = zext nneg i32 %.lcssa to i64
  %exitcond213.peel.not = icmp eq i32 %.lcssa, 1
  %xtraiter275 = and i64 %wide.trip.count207, 1
  %31 = icmp eq i32 %.lcssa, 1
  %unroll_iter279 = and i64 %wide.trip.count207, 2147483646
  %lcmp.mod277.not = icmp eq i64 %xtraiter275, 0
  br label %.preheader125

.lr.ph140:                                        ; preds = %.lr.ph140.preheader272, %.lr.ph140
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %.lr.ph140 ], [ %indvars.iv198.ph, %.lr.ph140.preheader272 ]
  %32 = getelementptr inbounds [2051 x i32], ptr @id, i64 0, i64 %indvars.iv198
  %33 = trunc nuw nsw i64 %indvars.iv198 to i32
  store i32 %33, ptr %32, align 4, !tbaa !5
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next199, %wide.trip.count202
  br i1 %exitcond203.not, label %.preheader125.lr.ph, label %.lr.ph140, !llvm.loop !20

.preheader125:                                    ; preds = %.preheader125.lr.ph, %94
  %indvars.iv215 = phi i64 [ 0, %.preheader125.lr.ph ], [ %indvars.iv.next216.pre-phi, %94 ]
  br i1 %28, label %.lr.ph143.preheader, label %._crit_edge144

.lr.ph143.preheader:                              ; preds = %.preheader125
  %34 = trunc nuw nsw i64 %indvars.iv215 to i32
  br i1 %31, label %._crit_edge144.loopexit.unr-lcssa, label %.lr.ph143

._crit_edge152:                                   ; preds = %94, %.preheader128.._crit_edge152_crit_edge
  %.pre-phi = phi i64 [ %.pre242, %.preheader128.._crit_edge152_crit_edge ], [ %30, %94 ]
  %35 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %.pre-phi
  %36 = load x86_fp80, ptr %35, align 16, !tbaa !14
  %37 = fadd x86_fp80 %36, 0xK3FFF8000000000000000
  store x86_fp80 %37, ptr %35, align 16, !tbaa !14
  %.not106153269 = icmp slt i32 %.lcssa, 0
  br i1 %.not106153269, label %.critedge.preheader, label %.lr.ph158.preheader

._crit_edge144.loopexit.unr-lcssa:                ; preds = %60, %.lr.ph143.preheader
  %.195.lcssa.ph = phi i32 [ poison, %.lr.ph143.preheader ], [ %.195.1, %60 ]
  %indvars.iv204.unr = phi i64 [ 0, %.lr.ph143.preheader ], [ %indvars.iv.next205.1, %60 ]
  %.094141.unr = phi i32 [ 0, %.lr.ph143.preheader ], [ %.195.1, %60 ]
  br i1 %lcmp.mod277.not, label %._crit_edge144, label %.lr.ph143.epil

.lr.ph143.epil:                                   ; preds = %._crit_edge144.loopexit.unr-lcssa
  %38 = trunc nuw nsw i64 %indvars.iv204.unr to i32
  %39 = shl nuw i32 1, %38
  %40 = and i32 %39, %34
  %.not116.epil = icmp eq i32 %40, 0
  br i1 %.not116.epil, label %._crit_edge144, label %41

41:                                               ; preds = %.lr.ph143.epil
  %42 = getelementptr inbounds [1025 x i32], ptr %3, i64 0, i64 %indvars.iv204.unr
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, %.094141.unr
  br label %._crit_edge144

._crit_edge144:                                   ; preds = %._crit_edge144.loopexit.unr-lcssa, %41, %.lr.ph143.epil, %.preheader125
  %.094.lcssa = phi i32 [ 0, %.preheader125 ], [ %.195.lcssa.ph, %._crit_edge144.loopexit.unr-lcssa ], [ %44, %41 ], [ %.094141.unr, %.lr.ph143.epil ]
  %45 = icmp sgt i32 %.094.lcssa, %29
  br i1 %45, label %._crit_edge144._crit_edge, label %61

._crit_edge144._crit_edge:                        ; preds = %._crit_edge144
  %.pre243 = add nuw nsw i64 %indvars.iv215, 1
  br label %94

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %60
  %indvars.iv204 = phi i64 [ %indvars.iv.next205.1, %60 ], [ 0, %.lr.ph143.preheader ]
  %.094141 = phi i32 [ %.195.1, %60 ], [ 0, %.lr.ph143.preheader ]
  %niter280 = phi i64 [ %niter280.next.1, %60 ], [ 0, %.lr.ph143.preheader ]
  %46 = trunc nuw nsw i64 %indvars.iv204 to i32
  %47 = shl nuw i32 1, %46
  %48 = and i32 %47, %34
  %.not116 = icmp eq i32 %48, 0
  br i1 %.not116, label %.lr.ph143.1, label %49

49:                                               ; preds = %.lr.ph143
  %50 = getelementptr inbounds [1025 x i32], ptr %3, i64 0, i64 %indvars.iv204
  %51 = load i32, ptr %50, align 8, !tbaa !5
  %52 = add nsw i32 %51, %.094141
  br label %.lr.ph143.1

.lr.ph143.1:                                      ; preds = %.lr.ph143, %49
  %.195 = phi i32 [ %52, %49 ], [ %.094141, %.lr.ph143 ]
  %indvars.iv.next205 = or disjoint i64 %indvars.iv204, 1
  %53 = trunc nuw nsw i64 %indvars.iv.next205 to i32
  %54 = shl nuw i32 1, %53
  %55 = and i32 %54, %34
  %.not116.1 = icmp eq i32 %55, 0
  br i1 %.not116.1, label %60, label %56

56:                                               ; preds = %.lr.ph143.1
  %57 = getelementptr inbounds [1025 x i32], ptr %3, i64 0, i64 %indvars.iv.next205
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = add nsw i32 %58, %.195
  br label %60

60:                                               ; preds = %56, %.lr.ph143.1
  %.195.1 = phi i32 [ %59, %56 ], [ %.195, %.lr.ph143.1 ]
  %indvars.iv.next205.1 = add nuw nsw i64 %indvars.iv204, 2
  %niter280.next.1 = add i64 %niter280, 2
  %niter280.ncmp.1 = icmp eq i64 %niter280.next.1, %unroll_iter279
  br i1 %niter280.ncmp.1, label %._crit_edge144.loopexit.unr-lcssa, label %.lr.ph143, !llvm.loop !21

61:                                               ; preds = %._crit_edge144
  %62 = trunc nuw nsw i64 %indvars.iv215 to i32
  %63 = and i32 %62, 1
  %.not113 = icmp eq i32 %63, 0
  br i1 %.not113, label %64, label %.thread253

64:                                               ; preds = %61
  br i1 %28, label %.lr.ph148, label %.._crit_edge149_crit_edge

.thread253:                                       ; preds = %61
  %65 = add nuw nsw i64 %indvars.iv215, 1
  %66 = getelementptr inbounds [1025 x x86_fp80], ptr @a, i64 0, i64 %65
  %67 = load x86_fp80, ptr %66, align 16, !tbaa !14
  %68 = fadd x86_fp80 %67, 0xK3FFF8000000000000000
  store x86_fp80 %68, ptr %66, align 16, !tbaa !14
  br i1 %28, label %70, label %.._crit_edge149_crit_edge

.._crit_edge149_crit_edge:                        ; preds = %.thread253, %64
  %.pre245 = add nuw nsw i64 %indvars.iv215, 1
  br label %._crit_edge149

.lr.ph148:                                        ; preds = %64
  %69 = add nuw nsw i64 %indvars.iv215, 1
  br label %78

70:                                               ; preds = %.thread253
  %71 = add nuw nsw i64 %indvars.iv215, 1
  %72 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 1, i64 %71
  %73 = load x86_fp80, ptr %72, align 16, !tbaa !14
  %74 = fadd x86_fp80 %73, 0xK3FFF8000000000000000
  store x86_fp80 %74, ptr %72, align 16, !tbaa !14
  %75 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %wide.trip.count212254, i64 %71
  %76 = load x86_fp80, ptr %75, align 16, !tbaa !14
  %77 = fadd x86_fp80 %76, 0xKBFFF8000000000000000
  store x86_fp80 %77, ptr %75, align 16, !tbaa !14
  br label %78

78:                                               ; preds = %.lr.ph148, %70
  %wide.trip.count212256 = phi i64 [ %wide.trip.count212254, %70 ], [ %wide.trip.count212, %.lr.ph148 ]
  %79 = phi i64 [ %71, %70 ], [ %69, %.lr.ph148 ]
  br i1 %exitcond213.peel.not, label %._crit_edge149, label %.peel.next

._crit_edge149:                                   ; preds = %._crit_edge241, %78, %.._crit_edge149_crit_edge
  %.pre-phi246 = phi i64 [ %.pre245, %.._crit_edge149_crit_edge ], [ %79, %78 ], [ %79, %._crit_edge241 ]
  %80 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %30, i64 %.pre-phi246
  %81 = load x86_fp80, ptr %80, align 16, !tbaa !14
  %82 = fadd x86_fp80 %81, 0xK3FFF8000000000000000
  store x86_fp80 %82, ptr %80, align 16, !tbaa !14
  br label %94

.peel.next:                                       ; preds = %78, %._crit_edge241
  %indvars.iv209 = phi i64 [ %.pre244, %._crit_edge241 ], [ 1, %78 ]
  %83 = trunc i64 %indvars.iv209 to i32
  %84 = shl nuw i32 1, %83
  %85 = and i32 %84, %62
  %.not114 = icmp eq i32 %85, 0
  %.pre244 = add nuw nsw i64 %indvars.iv209, 1
  br i1 %.not114, label %._crit_edge241, label %86

86:                                               ; preds = %.peel.next
  %87 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %.pre244, i64 %79
  %88 = load x86_fp80, ptr %87, align 16, !tbaa !14
  %89 = fadd x86_fp80 %88, 0xK3FFF8000000000000000
  store x86_fp80 %89, ptr %87, align 16, !tbaa !14
  %90 = and i64 %indvars.iv209, 4294967295
  %91 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %90, i64 %79
  %92 = load x86_fp80, ptr %91, align 16, !tbaa !14
  %93 = fadd x86_fp80 %92, 0xKBFFF8000000000000000
  store x86_fp80 %93, ptr %91, align 16, !tbaa !14
  br label %._crit_edge241

._crit_edge241:                                   ; preds = %.peel.next, %86
  %exitcond213.not = icmp eq i64 %.pre244, %wide.trip.count212256
  br i1 %exitcond213.not, label %._crit_edge149, label %.peel.next, !llvm.loop !22

94:                                               ; preds = %._crit_edge144._crit_edge, %._crit_edge149
  %indvars.iv.next216.pre-phi = phi i64 [ %.pre243, %._crit_edge144._crit_edge ], [ %.pre-phi246, %._crit_edge149 ]
  %exitcond220.not = icmp eq i64 %indvars.iv.next216.pre-phi, %wide.trip.count219
  br i1 %exitcond220.not, label %._crit_edge152, label %.preheader125, !llvm.loop !24

.lr.ph158.preheader:                              ; preds = %._crit_edge152, %144
  %95 = phi i32 [ %.pre, %144 ], [ %10, %._crit_edge152 ]
  %96 = zext i32 %95 to i64
  %97 = add nsw i64 %96, -1
  %xtraiter281 = and i64 %96, 3
  %98 = icmp ult i64 %97, 3
  br i1 %98, label %._crit_edge159.unr-lcssa, label %.lr.ph158.preheader.new

.lr.ph158.preheader.new:                          ; preds = %.lr.ph158.preheader
  %unroll_iter285 = and i64 %96, 4294967292
  br label %.lr.ph158

._crit_edge159.unr-lcssa:                         ; preds = %.lr.ph158, %.lr.ph158.preheader
  %.191.lcssa.ph = phi i32 [ poison, %.lr.ph158.preheader ], [ %.191.3, %.lr.ph158 ]
  %indvars.iv221.unr = phi i64 [ 1, %.lr.ph158.preheader ], [ %indvars.iv.next222.3, %.lr.ph158 ]
  %.085155.unr = phi x86_fp80 [ 0xKBFD78CBCCC096F508800, %.lr.ph158.preheader ], [ %.186.3, %.lr.ph158 ]
  %.090154.unr = phi i32 [ 0, %.lr.ph158.preheader ], [ %.191.3, %.lr.ph158 ]
  %lcmp.mod283.not = icmp eq i64 %xtraiter281, 0
  br i1 %lcmp.mod283.not, label %._crit_edge159, label %.lr.ph158.epil

.lr.ph158.epil:                                   ; preds = %._crit_edge159.unr-lcssa, %.lr.ph158.epil
  %indvars.iv221.epil = phi i64 [ %indvars.iv.next222.epil, %.lr.ph158.epil ], [ %indvars.iv221.unr, %._crit_edge159.unr-lcssa ]
  %.085155.epil = phi x86_fp80 [ %.186.epil, %.lr.ph158.epil ], [ %.085155.unr, %._crit_edge159.unr-lcssa ]
  %.090154.epil = phi i32 [ %.191.epil, %.lr.ph158.epil ], [ %.090154.unr, %._crit_edge159.unr-lcssa ]
  %epil.iter282 = phi i64 [ %epil.iter282.next, %.lr.ph158.epil ], [ 0, %._crit_edge159.unr-lcssa ]
  %99 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv221.epil
  %100 = load x86_fp80, ptr %99, align 16, !tbaa !14
  %101 = fcmp olt x86_fp80 %100, %.085155.epil
  %102 = trunc nuw nsw i64 %indvars.iv221.epil to i32
  %.191.epil = select i1 %101, i32 %102, i32 %.090154.epil
  %.186.epil = select i1 %101, x86_fp80 %100, x86_fp80 %.085155.epil
  %indvars.iv.next222.epil = add nuw nsw i64 %indvars.iv221.epil, 1
  %epil.iter282.next = add i64 %epil.iter282, 1
  %epil.iter282.cmp.not = icmp eq i64 %epil.iter282.next, %xtraiter281
  br i1 %epil.iter282.cmp.not, label %._crit_edge159, label %.lr.ph158.epil, !llvm.loop !25

._crit_edge159:                                   ; preds = %.lr.ph158.epil, %._crit_edge159.unr-lcssa
  %.191.lcssa = phi i32 [ %.191.lcssa.ph, %._crit_edge159.unr-lcssa ], [ %.191.epil, %.lr.ph158.epil ]
  %.not107.not = icmp eq i32 %.191.lcssa, 0
  br i1 %.not107.not, label %.critedge.preheader, label %.preheader124

.preheader124:                                    ; preds = %._crit_edge159
  %103 = load i32, ptr @n, align 4, !tbaa !5
  %.not108161 = icmp slt i32 %103, 1
  br i1 %.not108161, label %._crit_edge166.thread, label %.lr.ph165

.lr.ph165:                                        ; preds = %.preheader124
  %104 = sext i32 %.191.lcssa to i64
  %105 = zext nneg i32 %103 to i64
  %xtraiter288 = and i64 %105, 3
  %106 = icmp ult i32 %103, 4
  br i1 %106, label %._crit_edge166.unr-lcssa, label %.lr.ph165.new

.lr.ph165.new:                                    ; preds = %.lr.ph165
  %unroll_iter292 = and i64 %105, 2147483644
  br label %127

.lr.ph158:                                        ; preds = %.lr.ph158, %.lr.ph158.preheader.new
  %indvars.iv221 = phi i64 [ 1, %.lr.ph158.preheader.new ], [ %indvars.iv.next222.3, %.lr.ph158 ]
  %.085155 = phi x86_fp80 [ 0xKBFD78CBCCC096F508800, %.lr.ph158.preheader.new ], [ %.186.3, %.lr.ph158 ]
  %.090154 = phi i32 [ 0, %.lr.ph158.preheader.new ], [ %.191.3, %.lr.ph158 ]
  %niter286 = phi i64 [ 0, %.lr.ph158.preheader.new ], [ %niter286.next.3, %.lr.ph158 ]
  %107 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv221
  %108 = load x86_fp80, ptr %107, align 16, !tbaa !14
  %109 = fcmp olt x86_fp80 %108, %.085155
  %110 = trunc nuw nsw i64 %indvars.iv221 to i32
  %.191 = select i1 %109, i32 %110, i32 %.090154
  %.186 = select i1 %109, x86_fp80 %108, x86_fp80 %.085155
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %111 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv.next222
  %112 = load x86_fp80, ptr %111, align 16, !tbaa !14
  %113 = fcmp olt x86_fp80 %112, %.186
  %114 = trunc nuw nsw i64 %indvars.iv.next222 to i32
  %.191.1 = select i1 %113, i32 %114, i32 %.191
  %.186.1 = select i1 %113, x86_fp80 %112, x86_fp80 %.186
  %indvars.iv.next222.1 = add nuw nsw i64 %indvars.iv221, 2
  %115 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv.next222.1
  %116 = load x86_fp80, ptr %115, align 16, !tbaa !14
  %117 = fcmp olt x86_fp80 %116, %.186.1
  %118 = trunc nuw nsw i64 %indvars.iv.next222.1 to i32
  %.191.2 = select i1 %117, i32 %118, i32 %.191.1
  %.186.2 = select i1 %117, x86_fp80 %116, x86_fp80 %.186.1
  %indvars.iv.next222.2 = add nuw nsw i64 %indvars.iv221, 3
  %119 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv.next222.2
  %120 = load x86_fp80, ptr %119, align 16, !tbaa !14
  %121 = fcmp olt x86_fp80 %120, %.186.2
  %122 = trunc nuw nsw i64 %indvars.iv.next222.2 to i32
  %.191.3 = select i1 %121, i32 %122, i32 %.191.2
  %.186.3 = select i1 %121, x86_fp80 %120, x86_fp80 %.186.2
  %indvars.iv.next222.3 = add nuw nsw i64 %indvars.iv221, 4
  %niter286.next.3 = add i64 %niter286, 4
  %niter286.ncmp.3 = icmp eq i64 %niter286.next.3, %unroll_iter285
  br i1 %niter286.ncmp.3, label %._crit_edge159.unr-lcssa, label %.lr.ph158, !llvm.loop !26

._crit_edge166.unr-lcssa:                         ; preds = %127, %.lr.ph165
  %.189.lcssa.ph = phi i32 [ poison, %.lr.ph165 ], [ %.189.3, %127 ]
  %indvars.iv226.unr = phi i64 [ 1, %.lr.ph165 ], [ %indvars.iv.next227.3, %127 ]
  %.2163.unr = phi x86_fp80 [ 0xKBFD78CBCCC096F508800, %.lr.ph165 ], [ %.3.3, %127 ]
  %.088162.unr = phi i32 [ 0, %.lr.ph165 ], [ %.189.3, %127 ]
  %lcmp.mod290.not = icmp eq i64 %xtraiter288, 0
  br i1 %lcmp.mod290.not, label %._crit_edge166, label %.epil.preheader287

.epil.preheader287:                               ; preds = %._crit_edge166.unr-lcssa, %.epil.preheader287
  %indvars.iv226.epil = phi i64 [ %indvars.iv.next227.epil, %.epil.preheader287 ], [ %indvars.iv226.unr, %._crit_edge166.unr-lcssa ]
  %.2163.epil = phi x86_fp80 [ %.3.epil, %.epil.preheader287 ], [ %.2163.unr, %._crit_edge166.unr-lcssa ]
  %.088162.epil = phi i32 [ %.189.epil, %.epil.preheader287 ], [ %.088162.unr, %._crit_edge166.unr-lcssa ]
  %epil.iter289 = phi i64 [ %epil.iter289.next, %.epil.preheader287 ], [ 0, %._crit_edge166.unr-lcssa ]
  %123 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %104, i64 %indvars.iv226.epil
  %124 = load x86_fp80, ptr %123, align 16, !tbaa !14
  %125 = fcmp olt x86_fp80 %124, %.2163.epil
  %126 = trunc nuw nsw i64 %indvars.iv226.epil to i32
  %.189.epil = select i1 %125, i32 %126, i32 %.088162.epil
  %.3.epil = select i1 %125, x86_fp80 %124, x86_fp80 %.2163.epil
  %indvars.iv.next227.epil = add nuw nsw i64 %indvars.iv226.epil, 1
  %epil.iter289.next = add i64 %epil.iter289, 1
  %epil.iter289.cmp.not = icmp eq i64 %epil.iter289.next, %xtraiter288
  br i1 %epil.iter289.cmp.not, label %._crit_edge166, label %.epil.preheader287, !llvm.loop !27

._crit_edge166:                                   ; preds = %.epil.preheader287, %._crit_edge166.unr-lcssa
  %.189.lcssa = phi i32 [ %.189.lcssa.ph, %._crit_edge166.unr-lcssa ], [ %.189.epil, %.epil.preheader287 ]
  %.not109 = icmp eq i32 %.189.lcssa, 0
  br i1 %.not109, label %._crit_edge166.thread, label %144

127:                                              ; preds = %127, %.lr.ph165.new
  %indvars.iv226 = phi i64 [ 1, %.lr.ph165.new ], [ %indvars.iv.next227.3, %127 ]
  %.2163 = phi x86_fp80 [ 0xKBFD78CBCCC096F508800, %.lr.ph165.new ], [ %.3.3, %127 ]
  %.088162 = phi i32 [ 0, %.lr.ph165.new ], [ %.189.3, %127 ]
  %niter293 = phi i64 [ 0, %.lr.ph165.new ], [ %niter293.next.3, %127 ]
  %128 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %104, i64 %indvars.iv226
  %129 = load x86_fp80, ptr %128, align 16, !tbaa !14
  %130 = fcmp olt x86_fp80 %129, %.2163
  %131 = trunc nuw nsw i64 %indvars.iv226 to i32
  %.189 = select i1 %130, i32 %131, i32 %.088162
  %.3 = select i1 %130, x86_fp80 %129, x86_fp80 %.2163
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %132 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %104, i64 %indvars.iv.next227
  %133 = load x86_fp80, ptr %132, align 16, !tbaa !14
  %134 = fcmp olt x86_fp80 %133, %.3
  %135 = trunc nuw nsw i64 %indvars.iv.next227 to i32
  %.189.1 = select i1 %134, i32 %135, i32 %.189
  %.3.1 = select i1 %134, x86_fp80 %133, x86_fp80 %.3
  %indvars.iv.next227.1 = add nuw nsw i64 %indvars.iv226, 2
  %136 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %104, i64 %indvars.iv.next227.1
  %137 = load x86_fp80, ptr %136, align 16, !tbaa !14
  %138 = fcmp olt x86_fp80 %137, %.3.1
  %139 = trunc nuw nsw i64 %indvars.iv.next227.1 to i32
  %.189.2 = select i1 %138, i32 %139, i32 %.189.1
  %.3.2 = select i1 %138, x86_fp80 %137, x86_fp80 %.3.1
  %indvars.iv.next227.2 = add nuw nsw i64 %indvars.iv226, 3
  %140 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %104, i64 %indvars.iv.next227.2
  %141 = load x86_fp80, ptr %140, align 16, !tbaa !14
  %142 = fcmp olt x86_fp80 %141, %.3.2
  %143 = trunc nuw nsw i64 %indvars.iv.next227.2 to i32
  %.189.3 = select i1 %142, i32 %143, i32 %.189.2
  %.3.3 = select i1 %142, x86_fp80 %141, x86_fp80 %.3.2
  %indvars.iv.next227.3 = add nuw nsw i64 %indvars.iv226, 4
  %niter293.next.3 = add i64 %niter293, 4
  %niter293.ncmp.3 = icmp eq i64 %niter293.next.3, %unroll_iter292
  br i1 %niter293.ncmp.3, label %._crit_edge166.unr-lcssa, label %127, !llvm.loop !28

._crit_edge166.thread:                            ; preds = %.preheader124, %._crit_edge166
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 70, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

144:                                              ; preds = %._crit_edge166
  call void @_Z5pivotii(i32 noundef %.191.lcssa, i32 noundef %.189.lcssa)
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  %.not106153 = icmp slt i32 %.pre, 1
  br i1 %.not106153, label %.critedge.preheader, label %.lr.ph158.preheader

.critedge.preheader:                              ; preds = %._crit_edge159, %144, %._crit_edge152
  %145 = load i32, ptr @n, align 4, !tbaa !5
  %.not110168178 = icmp slt i32 %145, 1
  br i1 %.not110168178, label %.thread, label %.lr.ph170

.lr.ph170:                                        ; preds = %.critedge.preheader, %.critedge
  %146 = phi i32 [ %191, %.critedge ], [ %145, %.critedge.preheader ]
  %147 = add nuw i32 %146, 1
  %wide.trip.count234 = zext i32 %147 to i64
  br label %148

148:                                              ; preds = %.lr.ph170, %152
  %indvars.iv231 = phi i64 [ 1, %.lr.ph170 ], [ %indvars.iv.next232, %152 ]
  %149 = getelementptr inbounds [1025 x x86_fp80], ptr @a, i64 0, i64 %indvars.iv231
  %150 = load x86_fp80, ptr %149, align 16, !tbaa !14
  %151 = fcmp ogt x86_fp80 %150, 0xK3FD78CBCCC096F508800
  br i1 %151, label %.preheader, label %152

152:                                              ; preds = %148
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %wide.trip.count234
  br i1 %exitcond235.not, label %.thread, label %148, !llvm.loop !29

.preheader:                                       ; preds = %148
  %153 = trunc nuw nsw i64 %indvars.iv231 to i32
  %154 = load i32, ptr @m, align 4, !tbaa !5
  %.not111171 = icmp slt i32 %154, 1
  br i1 %.not111171, label %._crit_edge176.thread, label %.lr.ph175

.lr.ph175:                                        ; preds = %.preheader
  %155 = and i64 %indvars.iv231, 4294967295
  %156 = zext nneg i32 %154 to i64
  %xtraiter295 = and i64 %156, 1
  %157 = icmp eq i32 %154, 1
  br i1 %157, label %._crit_edge176.unr-lcssa, label %.lr.ph175.new

.lr.ph175.new:                                    ; preds = %.lr.ph175
  %unroll_iter299 = and i64 %156, 2147483646
  br label %168

._crit_edge176.unr-lcssa:                         ; preds = %190, %.lr.ph175
  %.182.lcssa.ph = phi i32 [ poison, %.lr.ph175 ], [ %.182.1, %190 ]
  %indvars.iv236.unr = phi i64 [ 1, %.lr.ph175 ], [ %indvars.iv.next237.1, %190 ]
  %.076173.unr = phi x86_fp80 [ 0xK403ADE0B6B3A76400000, %.lr.ph175 ], [ %.177.1, %190 ]
  %.081172.unr = phi i32 [ 0, %.lr.ph175 ], [ %.182.1, %190 ]
  %lcmp.mod297.not = icmp eq i64 %xtraiter295, 0
  br i1 %lcmp.mod297.not, label %._crit_edge176, label %.epil.preheader294

.epil.preheader294:                               ; preds = %._crit_edge176.unr-lcssa
  %158 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv236.unr, i64 %155
  %159 = load x86_fp80, ptr %158, align 16, !tbaa !14
  %160 = fcmp ogt x86_fp80 %159, 0xK3FD78CBCCC096F508800
  br i1 %160, label %161, label %._crit_edge176

161:                                              ; preds = %.epil.preheader294
  %162 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv236.unr
  %163 = load x86_fp80, ptr %162, align 16, !tbaa !14
  %164 = fdiv x86_fp80 %163, %159
  %165 = fcmp olt x86_fp80 %164, %.076173.unr
  br i1 %165, label %166, label %._crit_edge176

166:                                              ; preds = %161
  %167 = trunc nuw nsw i64 %indvars.iv236.unr to i32
  br label %._crit_edge176

._crit_edge176:                                   ; preds = %.epil.preheader294, %161, %166, %._crit_edge176.unr-lcssa
  %.182.lcssa = phi i32 [ %.182.lcssa.ph, %._crit_edge176.unr-lcssa ], [ %167, %166 ], [ %.081172.unr, %161 ], [ %.081172.unr, %.epil.preheader294 ]
  %.not112 = icmp eq i32 %.182.lcssa, 0
  br i1 %.not112, label %._crit_edge176.thread, label %.critedge

168:                                              ; preds = %190, %.lr.ph175.new
  %indvars.iv236 = phi i64 [ 1, %.lr.ph175.new ], [ %indvars.iv.next237.1, %190 ]
  %.076173 = phi x86_fp80 [ 0xK403ADE0B6B3A76400000, %.lr.ph175.new ], [ %.177.1, %190 ]
  %.081172 = phi i32 [ 0, %.lr.ph175.new ], [ %.182.1, %190 ]
  %niter300 = phi i64 [ 0, %.lr.ph175.new ], [ %niter300.next.1, %190 ]
  %169 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv236, i64 %155
  %170 = load x86_fp80, ptr %169, align 16, !tbaa !14
  %171 = fcmp ogt x86_fp80 %170, 0xK3FD78CBCCC096F508800
  br i1 %171, label %172, label %179

172:                                              ; preds = %168
  %173 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv236
  %174 = load x86_fp80, ptr %173, align 16, !tbaa !14
  %175 = fdiv x86_fp80 %174, %170
  %176 = fcmp olt x86_fp80 %175, %.076173
  br i1 %176, label %177, label %179

177:                                              ; preds = %172
  %178 = trunc nuw nsw i64 %indvars.iv236 to i32
  br label %179

179:                                              ; preds = %168, %172, %177
  %.182 = phi i32 [ %178, %177 ], [ %.081172, %172 ], [ %.081172, %168 ]
  %.177 = phi x86_fp80 [ %175, %177 ], [ %.076173, %172 ], [ %.076173, %168 ]
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %180 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv.next237, i64 %155
  %181 = load x86_fp80, ptr %180, align 16, !tbaa !14
  %182 = fcmp ogt x86_fp80 %181, 0xK3FD78CBCCC096F508800
  br i1 %182, label %183, label %190

183:                                              ; preds = %179
  %184 = getelementptr inbounds [13 x [1025 x x86_fp80]], ptr @a, i64 0, i64 %indvars.iv.next237
  %185 = load x86_fp80, ptr %184, align 16, !tbaa !14
  %186 = fdiv x86_fp80 %185, %181
  %187 = fcmp olt x86_fp80 %186, %.177
  br i1 %187, label %188, label %190

188:                                              ; preds = %183
  %189 = trunc nuw nsw i64 %indvars.iv.next237 to i32
  br label %190

190:                                              ; preds = %188, %183, %179
  %.182.1 = phi i32 [ %189, %188 ], [ %.182, %183 ], [ %.182, %179 ]
  %.177.1 = phi x86_fp80 [ %186, %188 ], [ %.177, %183 ], [ %.177, %179 ]
  %indvars.iv.next237.1 = add nuw nsw i64 %indvars.iv236, 2
  %niter300.next.1 = add i64 %niter300, 2
  %niter300.ncmp.1 = icmp eq i64 %niter300.next.1, %unroll_iter299
  br i1 %niter300.ncmp.1, label %._crit_edge176.unr-lcssa, label %168, !llvm.loop !30

._crit_edge176.thread:                            ; preds = %.preheader, %._crit_edge176
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

.critedge:                                        ; preds = %._crit_edge176
  call void @_Z5pivotii(i32 noundef %.182.lcssa, i32 noundef %153)
  %191 = load i32, ptr @n, align 4, !tbaa !5
  %.not110168 = icmp slt i32 %191, 1
  br i1 %.not110168, label %.thread, label %.lr.ph170

.thread:                                          ; preds = %.critedge, %152, %.critedge.preheader
  %192 = load x86_fp80, ptr @a, align 16, !tbaa !14
  %193 = fptrunc x86_fp80 %192 to double
  %194 = fneg double %193
  %195 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.074180, double noundef %194)
  call void @llvm.lifetime.end.p0(i64 4100, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %196 = add nuw nsw i32 %.074180, 1
  %197 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.074180, %197
  br i1 %.not.not, label %.lr.ph182, label %._crit_edge183, !llvm.loop !31
}

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10, !13, !12}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !23}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


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