; LLVM IR from tangjz/acm-icpc :: 51nod (1713)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@g = external dso_local global [50 x i32], align 16
@f = external dso_local global [512 x [50 x double]], align 16
@mat = external dso_local global [50 x [51 x double]], align 16
@e = external dso_local global [50 x [50 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 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 [3 x 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 double, align 8
  %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
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  br label %23

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

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %30
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [50 x i8], ptr %31, i64 0, i64 %33
  store i8 1, ptr %34, align 1, !tbaa !9
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %36
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [50 x i8], ptr %37, i64 0, i64 %39
  store i8 1, ptr %40, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %23, !llvm.loop !11

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

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

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %58

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5)
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = shl i32 1, %48
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = or i32 %53, %49
  store i32 %54, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %55

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

58:                                               ; preds = %45
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @s)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 511, ptr %6, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %359, %58
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = load i32, ptr @s, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = icmp sge i32 %61, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %60
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %362

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %92, %68
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 9
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %69
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = shl i32 1, %75
  %77 = and i32 %74, %76
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %91

79:                                               ; preds = %73
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sdiv i32 %80, 3
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %83, align 4, !tbaa !5
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %90

87:                                               ; preds = %79
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %87, %79
  br label %91

91:                                               ; preds = %90, %73
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %10, align 4, !tbaa !5
  br label %69, !llvm.loop !14

95:                                               ; preds = %72
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = icmp sgt i32 %96, 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  store i32 9, ptr %7, align 4
  br label %356

99:                                               ; preds = %95
  call void @llvm.memset.p0.i64(ptr align 16 @mat, i8 0, i64 20400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %181, %99
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = load i32, ptr @n, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %184

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %177, %105
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 16, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %180

111:                                              ; preds = %106
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %113
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [50 x i8], ptr %114, i64 0, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !9, !range !15, !noundef !16
  %119 = trunc i8 %118 to i1
  br i1 %119, label %121, label %120

120:                                              ; preds = %111
  br label %177

121:                                              ; preds = %111
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [51 x double], ptr %124, i64 0, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = fadd double %128, 1.000000e+00
  store double %129, ptr %127, align 8, !tbaa !17
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %131
  %133 = load i32, ptr @n, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [51 x double], ptr %132, i64 0, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = fadd double %136, 1.000000e+00
  store double %137, ptr %135, align 8, !tbaa !17
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = or i32 %138, %142
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = icmp eq i32 %143, %144
  br i1 %145, label %146, label %155

146:                                              ; preds = %121
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %148
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [51 x double], ptr %149, i64 0, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !17
  %154 = fsub double %153, 1.000000e+00
  store double %154, ptr %152, align 8, !tbaa !17
  br label %176

155:                                              ; preds = %121
  %156 = load i32, ptr %6, align 4, !tbaa !5
  %157 = load i32, ptr %12, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = or i32 %156, %160
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %162
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [50 x double], ptr %163, i64 0, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !17
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %169
  %171 = load i32, ptr @n, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [51 x double], ptr %170, i64 0, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !17
  %175 = fadd double %174, %167
  store double %175, ptr %173, align 8, !tbaa !17
  br label %176

176:                                              ; preds = %155, %146
  br label %177

177:                                              ; preds = %176, %120
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %12, align 4, !tbaa !5
  br label %106, !llvm.loop !19

180:                                              ; preds = %110
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %11, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %11, align 4, !tbaa !5
  br label %100, !llvm.loop !20

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

185:                                              ; preds = %329, %184
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = load i32, ptr @n, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 19, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %332

190:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %191 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %191, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %192 = load i32, ptr %13, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %15, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %220, %190
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = load i32, ptr @n, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 22, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %223

199:                                              ; preds = %194
  %200 = load i32, ptr %14, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %201
  %203 = load i32, ptr %13, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [51 x double], ptr %202, i64 0, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !17
  %207 = call double @llvm.fabs.f64(double %206)
  %208 = load i32, ptr %15, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %209
  %211 = load i32, ptr %13, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [51 x double], ptr %210, i64 0, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !17
  %215 = call double @llvm.fabs.f64(double %214)
  %216 = fcmp olt double %207, %215
  br i1 %216, label %217, label %219

217:                                              ; preds = %199
  %218 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %218, ptr %14, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %217, %199
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %15, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %15, align 4, !tbaa !5
  br label %194, !llvm.loop !21

223:                                              ; preds = %198
  %224 = load i32, ptr %13, align 4, !tbaa !5
  %225 = load i32, ptr %14, align 4, !tbaa !5
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %227, label %251

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %228 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %228, ptr %16, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %247, %227
  %230 = load i32, ptr %16, align 4, !tbaa !5
  %231 = load i32, ptr @n, align 4, !tbaa !5
  %232 = icmp sle i32 %230, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %229
  store i32 25, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %250

234:                                              ; preds = %229
  %235 = load i32, ptr %13, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %236
  %238 = load i32, ptr %16, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [51 x double], ptr %237, i64 0, i64 %239
  %241 = load i32, ptr %14, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %242
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [51 x double], ptr %243, i64 0, i64 %245
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 8 dereferenceable(8) %246) #6
  br label %247

247:                                              ; preds = %234
  %248 = load i32, ptr %16, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %16, align 4, !tbaa !5
  br label %229, !llvm.loop !22

250:                                              ; preds = %233
  br label %251

251:                                              ; preds = %250, %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %252 = load i32, ptr %13, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %253
  %255 = load i32, ptr %13, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [51 x double], ptr %254, i64 0, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !17
  store double %258, ptr %17, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %259 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %259, ptr %18, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %275, %251
  %261 = load i32, ptr %18, align 4, !tbaa !5
  %262 = load i32, ptr @n, align 4, !tbaa !5
  %263 = icmp sle i32 %261, %262
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 28, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %278

265:                                              ; preds = %260
  %266 = load double, ptr %17, align 8, !tbaa !17
  %267 = load i32, ptr %13, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %268
  %270 = load i32, ptr %18, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [51 x double], ptr %269, i64 0, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !17
  %274 = fdiv double %273, %266
  store double %274, ptr %272, align 8, !tbaa !17
  br label %275

275:                                              ; preds = %265
  %276 = load i32, ptr %18, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %18, align 4, !tbaa !5
  br label %260, !llvm.loop !23

278:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %325, %278
  %280 = load i32, ptr %19, align 4, !tbaa !5
  %281 = load i32, ptr @n, align 4, !tbaa !5
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %279
  store i32 31, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %328

284:                                              ; preds = %279
  %285 = load i32, ptr %13, align 4, !tbaa !5
  %286 = load i32, ptr %19, align 4, !tbaa !5
  %287 = icmp eq i32 %285, %286
  br i1 %287, label %288, label %289

288:                                              ; preds = %284
  br label %325

289:                                              ; preds = %284
  %290 = load i32, ptr %19, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %291
  %293 = load i32, ptr %13, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [51 x double], ptr %292, i64 0, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !17
  store double %296, ptr %17, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %297 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %297, ptr %20, align 4, !tbaa !5
  br label %298

298:                                              ; preds = %321, %289
  %299 = load i32, ptr %20, align 4, !tbaa !5
  %300 = load i32, ptr @n, align 4, !tbaa !5
  %301 = icmp sle i32 %299, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %298
  store i32 34, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %324

303:                                              ; preds = %298
  %304 = load i32, ptr %13, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %305
  %307 = load i32, ptr %20, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [51 x double], ptr %306, i64 0, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !17
  %311 = load double, ptr %17, align 8, !tbaa !17
  %312 = load i32, ptr %19, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %313
  %315 = load i32, ptr %20, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [51 x double], ptr %314, i64 0, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !17
  %319 = fneg double %310
  %320 = call double @llvm.fmuladd.f64(double %319, double %311, double %318)
  store double %320, ptr %317, align 8, !tbaa !17
  br label %321

321:                                              ; preds = %303
  %322 = load i32, ptr %20, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %20, align 4, !tbaa !5
  br label %298, !llvm.loop !24

324:                                              ; preds = %302
  br label %325

325:                                              ; preds = %324, %288
  %326 = load i32, ptr %19, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %19, align 4, !tbaa !5
  br label %279, !llvm.loop !25

328:                                              ; preds = %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %13, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %13, align 4, !tbaa !5
  br label %185, !llvm.loop !26

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

333:                                              ; preds = %352, %332
  %334 = load i32, ptr %21, align 4, !tbaa !5
  %335 = load i32, ptr @n, align 4, !tbaa !5
  %336 = icmp slt i32 %334, %335
  br i1 %336, label %338, label %337

337:                                              ; preds = %333
  store i32 37, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %355

338:                                              ; preds = %333
  %339 = load i32, ptr %21, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %340
  %342 = load i32, ptr @n, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [51 x double], ptr %341, i64 0, i64 %343
  %345 = load double, ptr %344, align 8, !tbaa !17
  %346 = load i32, ptr %6, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %347
  %349 = load i32, ptr %21, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [50 x double], ptr %348, i64 0, i64 %350
  store double %345, ptr %351, align 8, !tbaa !17
  br label %352

352:                                              ; preds = %338
  %353 = load i32, ptr %21, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %21, align 4, !tbaa !5
  br label %333, !llvm.loop !27

355:                                              ; preds = %337
  store i32 0, ptr %7, align 4
  br label %356

356:                                              ; preds = %355, %98
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %357 = load i32, ptr %7, align 4
  switch i32 %357, label %374 [
    i32 0, label %358
    i32 9, label %359
  ]

358:                                              ; preds = %356
  br label %359

359:                                              ; preds = %358, %356
  %360 = load i32, ptr %6, align 4, !tbaa !5
  %361 = add nsw i32 %360, -1
  store i32 %361, ptr %6, align 4, !tbaa !5
  br label %60, !llvm.loop !28

362:                                              ; preds = %67
  %363 = load i32, ptr @s, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %367
  %369 = load i32, ptr @s, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [50 x double], ptr %368, i64 0, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !17
  %373 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %372)
  ret i32 0

374:                                              ; preds = %356
  unreachable
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@g = external dso_local local_unnamed_addr global [50 x i32], align 16
@f = external dso_local local_unnamed_addr global [512 x [50 x double]], align 16
@mat = external dso_local global [50 x [51 x double]], align 16
@e = external dso_local local_unnamed_addr global [50 x [50 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress 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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %5 = load i32, ptr @m, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @m, align 4, !tbaa !5
  %.not109 = icmp eq i32 %5, 0
  br i1 %.not109, label %.preheader105, label %.lr.ph

.preheader105:                                    ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = or i32 %11, 1
  store i32 %12, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = or i32 %17, 2
  store i32 %18, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = or i32 %23, 4
  store i32 %24, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = or i32 %29, 8
  store i32 %30, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = or i32 %35, 16
  store i32 %36, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = or i32 %41, 32
  store i32 %42, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = or i32 %47, 64
  store i32 %48, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = or i32 %53, 128
  store i32 %54, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = or i32 %59, 256
  store i32 %60, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @s)
  %62 = load i32, ptr @s, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %.not93138 = icmp sgt i32 %65, 511
  br i1 %.not93138, label %.preheader105.._crit_edge143_crit_edge, label %.lr.ph142

.preheader105.._crit_edge143_crit_edge:           ; preds = %.preheader105
  %.pre = zext nneg i32 %65 to i64
  br label %._crit_edge143

.lr.ph:                                           ; preds = %0, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %68, i64 %70
  store i8 1, ptr %71, align 1, !tbaa !9
  %72 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %70, i64 %68
  store i8 1, ptr %72, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %73 = load i32, ptr @m, align 4, !tbaa !5
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %.preheader105, label %.lr.ph, !llvm.loop !11

._crit_edge143:                                   ; preds = %.loopexit103, %.preheader105.._crit_edge143_crit_edge
  %.pre-phi201 = phi i64 [ %.pre, %.preheader105.._crit_edge143_crit_edge ], [ %239, %.loopexit103 ]
  %.lcssa108 = phi i64 [ %63, %.preheader105.._crit_edge143_crit_edge ], [ %236, %.loopexit103 ]
  %75 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %.pre-phi201, i64 %.lcssa108
  %76 = load double, ptr %75, align 8, !tbaa !13
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %76)
  ret i32 0

.lr.ph142:                                        ; preds = %.preheader105, %.loopexit103
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %.loopexit103 ], [ 511, %.preheader105 ]
  %78 = trunc nsw i64 %indvars.iv188 to i32
  %79 = and i32 %78, 1
  %80 = add nuw nsw i32 %79, 1
  %81 = lshr i32 %78, 3
  %.lobit = and i32 %81, 1
  %82 = add nuw nsw i32 %.lobit, 1
  %83 = insertelement <4 x i32> poison, i32 %78, i64 0
  %84 = shufflevector <4 x i32> %83, <4 x i32> poison, <4 x i32> zeroinitializer
  %85 = and <4 x i32> %84, <i32 2, i32 4, i32 16, i32 32>
  %86 = icmp ne <4 x i32> %85, zeroinitializer
  %87 = extractelement <4 x i1> %86, i64 0
  %.sroa.0.2 = select i1 %87, i32 %80, i32 %79
  %88 = extractelement <4 x i1> %86, i64 2
  %.sroa.9.2 = select i1 %88, i32 %82, i32 %.lobit
  %89 = insertelement <4 x i32> poison, i32 %80, i64 0
  %90 = insertelement <4 x i32> %89, i32 %.sroa.0.2, i64 1
  %91 = insertelement <4 x i32> %90, i32 %82, i64 2
  %92 = insertelement <4 x i32> %91, i32 %.sroa.9.2, i64 3
  %93 = icmp eq <4 x i32> %92, <i32 2, i32 1, i32 2, i32 1>
  %94 = select <4 x i1> %86, <4 x i1> %93, <4 x i1> zeroinitializer
  %95 = lshr i32 %78, 6
  %.lobit211 = and i32 %95, 1
  %96 = and i32 %78, 128
  %.not97.7 = icmp ne i32 %96, 0
  %97 = add nuw nsw i32 %.lobit211, 1
  %98 = icmp eq i32 %97, 2
  %.sroa.15.2 = select i1 %.not97.7, i32 %97, i32 %.lobit211
  %narrow212 = select i1 %.not97.7, i1 %98, i1 false
  %spec.select.7 = zext i1 %narrow212 to i32
  %99 = and i32 %78, 256
  %.not97.8 = icmp ne i32 %99, 0
  %100 = icmp eq i32 %.sroa.15.2, 1
  %narrow213 = select i1 %.not97.8, i1 %100, i1 false
  %spec.select.8 = zext i1 %narrow213 to i32
  %101 = bitcast <4 x i1> %94 to i4
  %102 = call range(i4 0, 5) i4 @llvm.ctpop.i4(i4 %101)
  %103 = zext nneg i4 %102 to i32
  %op.rdx = add nuw nsw i32 %103, %spec.select.7
  %op.rdx253 = add nuw nsw i32 %op.rdx, %spec.select.8
  %104 = icmp ugt i32 %op.rdx253, 1
  br i1 %104, label %.loopexit103, label %105

105:                                              ; preds = %.lr.ph142
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20400) @mat, i8 0, i64 20400, i1 false)
  %106 = load i32, ptr @n, align 4
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %.preheader101.lr.ph, label %.loopexit103

.preheader101.lr.ph:                              ; preds = %105
  %108 = zext nneg i32 %106 to i64
  br label %.preheader101.us

.preheader101.us:                                 ; preds = %._crit_edge.us, %.preheader101.lr.ph
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %._crit_edge.us ], [ 0, %.preheader101.lr.ph ]
  %109 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv150, i64 %indvars.iv150
  %110 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv150, i64 %108
  br label %111

111:                                              ; preds = %.preheader101.us, %133
  %indvars.iv = phi i64 [ 0, %.preheader101.us ], [ %indvars.iv.next, %133 ]
  %112 = getelementptr inbounds [50 x [50 x i8]], ptr @e, i64 0, i64 %indvars.iv150, i64 %indvars.iv
  %113 = load i8, ptr %112, align 1, !tbaa !9, !range !15, !noundef !16
  %114 = trunc nuw i8 %113 to i1
  br i1 %114, label %115, label %133

115:                                              ; preds = %111
  %116 = load double, ptr %109, align 8, !tbaa !13
  %117 = fadd double %116, 1.000000e+00
  store double %117, ptr %109, align 8, !tbaa !13
  %118 = load double, ptr %110, align 8, !tbaa !13
  %119 = fadd double %118, 1.000000e+00
  store double %119, ptr %110, align 8, !tbaa !13
  %120 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %indvars.iv
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = or i32 %121, %78
  %123 = icmp eq i32 %122, %78
  br i1 %123, label %129, label %124

124:                                              ; preds = %115
  %125 = sext i32 %122 to i64
  %126 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %125, i64 %indvars.iv
  %127 = load double, ptr %126, align 8, !tbaa !13
  %128 = fadd double %119, %127
  store double %128, ptr %110, align 8, !tbaa !13
  br label %133

129:                                              ; preds = %115
  %130 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv150, i64 %indvars.iv
  %131 = load double, ptr %130, align 8, !tbaa !13
  %132 = fadd double %131, -1.000000e+00
  store double %132, ptr %130, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %129, %124, %111
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %108
  br i1 %exitcond.not, label %._crit_edge.us, label %111, !llvm.loop !17

._crit_edge.us:                                   ; preds = %133
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %108
  br i1 %exitcond154.not, label %.preheader104, label %.preheader101.us, !llvm.loop !18

.preheader104:                                    ; preds = %._crit_edge.us
  br i1 %107, label %.lr.ph134, label %.loopexit103

.loopexit98:                                      ; preds = %..loopexit_crit_edge, %.preheader, %.loopexit100
  %134 = sext i32 %179 to i64
  %135 = icmp slt i64 %indvars.iv.next163, %134
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  br i1 %135, label %.lr.ph134, label %.preheader102, !llvm.loop !19

.preheader102:                                    ; preds = %.loopexit98
  %136 = icmp sgt i32 %179, 0
  br i1 %136, label %.lr.ph137, label %.loopexit103

.lr.ph137:                                        ; preds = %.preheader102
  %137 = zext nneg i32 %179 to i64
  %min.iters.check = icmp ult i32 %179, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph137
  %indvars.iv183.ph = phi i64 [ 0, %.lr.ph137 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph137
  %n.vec = and i64 %137, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %138 = or disjoint i64 %index, 1
  %139 = or disjoint i64 %index, 2
  %140 = or disjoint i64 %index, 3
  %141 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %index, i64 %137
  %142 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %138, i64 %137
  %143 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %139, i64 %137
  %144 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %140, i64 %137
  %145 = load double, ptr %141, align 8, !tbaa !13
  %146 = load double, ptr %142, align 8, !tbaa !13
  %147 = insertelement <2 x double> poison, double %145, i64 0
  %148 = insertelement <2 x double> %147, double %146, i64 1
  %149 = load double, ptr %143, align 8, !tbaa !13
  %150 = load double, ptr %144, align 8, !tbaa !13
  %151 = insertelement <2 x double> poison, double %149, i64 0
  %152 = insertelement <2 x double> %151, double %150, i64 1
  %153 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %indvars.iv188, i64 %index
  %154 = getelementptr inbounds i8, ptr %153, i64 16
  store <2 x double> %148, ptr %153, align 16, !tbaa !13
  store <2 x double> %152, ptr %154, align 16, !tbaa !13
  %index.next = add nuw i64 %index, 4
  %155 = icmp eq i64 %index.next, %n.vec
  br i1 %155, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %137
  br i1 %cmp.n, label %.loopexit103, label %scalar.ph.preheader

.lr.ph134:                                        ; preds = %.preheader104, %.loopexit98
  %156 = phi i32 [ %179, %.loopexit98 ], [ %106, %.preheader104 ]
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %.loopexit98 ], [ 0, %.preheader104 ]
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %.loopexit98 ], [ 1, %.preheader104 ]
  %157 = shl nuw nsw i64 %indvars.iv162, 3
  %scevgep = getelementptr i8, ptr @mat, i64 %157
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @mat, i64 -400), i64 %157
  %158 = mul nuw nsw i64 %indvars.iv162, 416
  %scevgep220 = getelementptr i8, ptr @mat, i64 %158
  %159 = or disjoint i64 %158, 8
  %scevgep221 = getelementptr i8, ptr @mat, i64 %159
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %160 = sext i32 %156 to i64
  %161 = icmp slt i64 %indvars.iv.next163, %160
  %162 = trunc i64 %indvars.iv162 to i32
  br i1 %161, label %.lr.ph118, label %._crit_edge

.lr.ph118:                                        ; preds = %.lr.ph134
  %wide.trip.count160 = zext i32 %156 to i64
  br label %165

._crit_edge:                                      ; preds = %165, %.lr.ph134
  %.081.lcssa = phi i32 [ %162, %.lr.ph134 ], [ %.1, %165 ]
  %163 = sext i32 %.081.lcssa to i64
  %164 = icmp sge i64 %indvars.iv162, %163
  %.not94119 = icmp sgt i64 %indvars.iv162, %160
  %or.cond = or i1 %164, %.not94119
  br i1 %or.cond, label %.loopexit100, label %.lr.ph121

165:                                              ; preds = %.lr.ph118, %165
  %indvars.iv157 = phi i64 [ %indvars.iv155, %.lr.ph118 ], [ %indvars.iv.next158, %165 ]
  %.081116 = phi i32 [ %162, %.lr.ph118 ], [ %.1, %165 ]
  %166 = sext i32 %.081116 to i64
  %167 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %166, i64 %indvars.iv162
  %168 = load double, ptr %167, align 8, !tbaa !13
  %169 = call double @llvm.fabs.f64(double %168)
  %170 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv157, i64 %indvars.iv162
  %171 = load double, ptr %170, align 8, !tbaa !13
  %172 = call double @llvm.fabs.f64(double %171)
  %173 = fcmp olt double %169, %172
  %174 = trunc nuw nsw i64 %indvars.iv157 to i32
  %.1 = select i1 %173, i32 %174, i32 %.081116
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count160
  br i1 %exitcond161.not, label %._crit_edge, label %165, !llvm.loop !23

.lr.ph121:                                        ; preds = %._crit_edge, %.lr.ph121
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph121 ], [ %indvars.iv162, %._crit_edge ]
  %175 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv164
  %176 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %163, i64 %indvars.iv164
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull align 8 dereferenceable(8) %176) #7
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %177 = load i32, ptr @n, align 4
  %178 = sext i32 %177 to i64
  %.not94.not = icmp slt i64 %indvars.iv164, %178
  br i1 %.not94.not, label %.lr.ph121, label %.loopexit100, !llvm.loop !24

.loopexit100:                                     ; preds = %.lr.ph121, %._crit_edge
  %.pre-phi = phi i64 [ %160, %._crit_edge ], [ %178, %.lr.ph121 ]
  %179 = phi i32 [ %156, %._crit_edge ], [ %177, %.lr.ph121 ]
  %180 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv162
  %181 = load double, ptr %180, align 8, !tbaa !13
  %.not95122 = icmp sgt i64 %indvars.iv162, %.pre-phi
  br i1 %.not95122, label %.loopexit98, label %.lr.ph125.preheader

.lr.ph125.preheader:                              ; preds = %.loopexit100
  %182 = add i32 %179, 1
  %wide.trip.count170 = zext i32 %182 to i64
  %183 = sub nsw i64 %wide.trip.count170, %indvars.iv162
  %min.iters.check239 = icmp ult i64 %183, 2
  br i1 %min.iters.check239, label %.lr.ph125.preheader254, label %vector.ph240

.lr.ph125.preheader254:                           ; preds = %middle.block237, %.lr.ph125.preheader
  %indvars.iv167.ph = phi i64 [ %indvars.iv162, %.lr.ph125.preheader ], [ %ind.end243, %middle.block237 ]
  br label %.lr.ph125

vector.ph240:                                     ; preds = %.lr.ph125.preheader
  %n.vec242 = and i64 %183, -2
  %ind.end243 = add i64 %indvars.iv162, %n.vec242
  %broadcast.splatinsert249 = insertelement <2 x double> poison, double %181, i64 0
  %broadcast.splat250 = shufflevector <2 x double> %broadcast.splatinsert249, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body245

vector.body245:                                   ; preds = %vector.body245, %vector.ph240
  %index246 = phi i64 [ 0, %vector.ph240 ], [ %index.next251, %vector.body245 ]
  %offset.idx247 = add i64 %indvars.iv162, %index246
  %184 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %offset.idx247
  %wide.load248 = load <2 x double>, ptr %184, align 8, !tbaa !13
  %185 = fdiv <2 x double> %wide.load248, %broadcast.splat250
  store <2 x double> %185, ptr %184, align 8, !tbaa !13
  %index.next251 = add nuw i64 %index246, 2
  %186 = icmp eq i64 %index.next251, %n.vec242
  br i1 %186, label %middle.block237, label %vector.body245, !llvm.loop !25

middle.block237:                                  ; preds = %vector.body245
  %cmp.n252 = icmp eq i64 %183, %n.vec242
  br i1 %cmp.n252, label %.preheader, label %.lr.ph125.preheader254

.preheader:                                       ; preds = %.lr.ph125, %middle.block237
  %187 = icmp slt i32 %179, 1
  %brmerge = or i1 %187, %.not95122
  br i1 %brmerge, label %.loopexit98, label %.lr.ph132.split.preheader

.lr.ph132.split.preheader:                        ; preds = %.preheader
  %smax = call i32 @llvm.smax.i32(i32 %179, i32 %162)
  %188 = add nuw i32 %smax, 1
  %wide.trip.count180 = zext nneg i32 %179 to i64
  %wide.trip.count175 = zext i32 %188 to i64
  %189 = mul nuw nsw i64 %wide.trip.count180, 408
  %190 = zext nneg i32 %smax to i64
  %191 = sub nsw i64 %190, %indvars.iv162
  %192 = shl nsw i64 %191, 3
  %193 = getelementptr i8, ptr %gep, i64 %189
  %scevgep219 = getelementptr i8, ptr %193, i64 %192
  %scevgep222 = getelementptr i8, ptr %scevgep221, i64 %192
  %194 = zext nneg i32 %smax to i64
  %reass.sub = sub nsw i64 %194, %indvars.iv162
  %195 = add i64 %reass.sub, 1
  %min.iters.check225 = icmp ult i64 %195, 4
  %bound0 = icmp ult ptr %scevgep, %scevgep222
  %bound1 = icmp ult ptr %scevgep220, %scevgep219
  %found.conflict = and i1 %bound0, %bound1
  %n.vec228 = and i64 %195, -4
  %ind.end = add i64 %indvars.iv162, %n.vec228
  %cmp.n236 = icmp eq i64 %195, %n.vec228
  br label %.lr.ph132.split

.lr.ph125:                                        ; preds = %.lr.ph125.preheader254, %.lr.ph125
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %.lr.ph125 ], [ %indvars.iv167.ph, %.lr.ph125.preheader254 ]
  %196 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv167
  %197 = load double, ptr %196, align 8, !tbaa !13
  %198 = fdiv double %197, %181
  store double %198, ptr %196, align 8, !tbaa !13
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %wide.trip.count170
  br i1 %exitcond171.not, label %.preheader, label %.lr.ph125, !llvm.loop !26

.lr.ph132.split:                                  ; preds = %.lr.ph132.split.preheader, %..loopexit_crit_edge
  %indvars.iv177 = phi i64 [ 0, %.lr.ph132.split.preheader ], [ %indvars.iv.next178, %..loopexit_crit_edge ]
  %199 = icmp eq i64 %indvars.iv162, %indvars.iv177
  br i1 %199, label %..loopexit_crit_edge, label %.lr.ph130

.lr.ph130:                                        ; preds = %.lr.ph132.split
  %200 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv177, i64 %indvars.iv162
  %201 = load double, ptr %200, align 8, !tbaa !13
  %brmerge263 = select i1 %min.iters.check225, i1 true, i1 %found.conflict
  br i1 %brmerge263, label %scalar.ph224.preheader, label %vector.ph226

vector.ph226:                                     ; preds = %.lr.ph130
  %broadcast.splatinsert = insertelement <2 x double> poison, double %201, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body230

vector.body230:                                   ; preds = %vector.body230, %vector.ph226
  %index231 = phi i64 [ 0, %vector.ph226 ], [ %index.next235, %vector.body230 ]
  %offset.idx = add i64 %indvars.iv162, %index231
  %202 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %offset.idx
  %203 = getelementptr inbounds i8, ptr %202, i64 16
  %wide.load = load <2 x double>, ptr %202, align 8, !tbaa !13, !alias.scope !27
  %wide.load232 = load <2 x double>, ptr %203, align 8, !tbaa !13, !alias.scope !27
  %204 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv177, i64 %offset.idx
  %205 = getelementptr inbounds i8, ptr %204, i64 16
  %wide.load233 = load <2 x double>, ptr %204, align 8, !tbaa !13, !alias.scope !30, !noalias !27
  %wide.load234 = load <2 x double>, ptr %205, align 8, !tbaa !13, !alias.scope !30, !noalias !27
  %206 = fneg <2 x double> %wide.load
  %207 = fneg <2 x double> %wide.load232
  %208 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %206, <2 x double> %broadcast.splat, <2 x double> %wide.load233)
  %209 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %207, <2 x double> %broadcast.splat, <2 x double> %wide.load234)
  store <2 x double> %208, ptr %204, align 8, !tbaa !13, !alias.scope !30, !noalias !27
  store <2 x double> %209, ptr %205, align 8, !tbaa !13, !alias.scope !30, !noalias !27
  %index.next235 = add nuw i64 %index231, 4
  %210 = icmp eq i64 %index.next235, %n.vec228
  br i1 %210, label %middle.block223, label %vector.body230, !llvm.loop !32

middle.block223:                                  ; preds = %vector.body230
  br i1 %cmp.n236, label %..loopexit_crit_edge, label %scalar.ph224.preheader

scalar.ph224.preheader:                           ; preds = %.lr.ph130, %middle.block223
  %indvars.iv172.ph = phi i64 [ %indvars.iv162, %.lr.ph130 ], [ %ind.end, %middle.block223 ]
  %211 = add i64 %indvars.iv172.ph, %194
  %212 = and i64 %211, 1
  %lcmp.mod.not.not = icmp eq i64 %212, 0
  br i1 %lcmp.mod.not.not, label %scalar.ph224.prol, label %scalar.ph224.prol.loopexit

scalar.ph224.prol:                                ; preds = %scalar.ph224.preheader
  %213 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv172.ph
  %214 = load double, ptr %213, align 8, !tbaa !13
  %215 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv177, i64 %indvars.iv172.ph
  %216 = load double, ptr %215, align 8, !tbaa !13
  %217 = fneg double %214
  %218 = call double @llvm.fmuladd.f64(double %217, double %201, double %216)
  store double %218, ptr %215, align 8, !tbaa !13
  %indvars.iv.next173.prol = add nuw nsw i64 %indvars.iv172.ph, 1
  br label %scalar.ph224.prol.loopexit

scalar.ph224.prol.loopexit:                       ; preds = %scalar.ph224.prol, %scalar.ph224.preheader
  %indvars.iv172.unr = phi i64 [ %indvars.iv172.ph, %scalar.ph224.preheader ], [ %indvars.iv.next173.prol, %scalar.ph224.prol ]
  %219 = icmp eq i64 %indvars.iv172.ph, %194
  br i1 %219, label %..loopexit_crit_edge, label %scalar.ph224

scalar.ph224:                                     ; preds = %scalar.ph224.prol.loopexit, %scalar.ph224
  %indvars.iv172 = phi i64 [ %indvars.iv.next173.1, %scalar.ph224 ], [ %indvars.iv172.unr, %scalar.ph224.prol.loopexit ]
  %220 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv172
  %221 = load double, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv177, i64 %indvars.iv172
  %223 = load double, ptr %222, align 8, !tbaa !13
  %224 = fneg double %221
  %225 = call double @llvm.fmuladd.f64(double %224, double %201, double %223)
  store double %225, ptr %222, align 8, !tbaa !13
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %226 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv162, i64 %indvars.iv.next173
  %227 = load double, ptr %226, align 8, !tbaa !13
  %228 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv177, i64 %indvars.iv.next173
  %229 = load double, ptr %228, align 8, !tbaa !13
  %230 = fneg double %227
  %231 = call double @llvm.fmuladd.f64(double %230, double %201, double %229)
  store double %231, ptr %228, align 8, !tbaa !13
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %exitcond176.not.1 = icmp eq i64 %indvars.iv.next173.1, %wide.trip.count175
  br i1 %exitcond176.not.1, label %..loopexit_crit_edge, label %scalar.ph224, !llvm.loop !33

..loopexit_crit_edge:                             ; preds = %scalar.ph224.prol.loopexit, %scalar.ph224, %middle.block223, %.lr.ph132.split
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count180
  br i1 %exitcond181.not, label %.loopexit98, label %.lr.ph132.split, !llvm.loop !34

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %scalar.ph ], [ %indvars.iv183.ph, %scalar.ph.preheader ]
  %232 = getelementptr inbounds [50 x [51 x double]], ptr @mat, i64 0, i64 %indvars.iv183, i64 %137
  %233 = load double, ptr %232, align 8, !tbaa !13
  %234 = getelementptr inbounds [512 x [50 x double]], ptr @f, i64 0, i64 %indvars.iv188, i64 %indvars.iv183
  store double %233, ptr %234, align 8, !tbaa !13
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %137
  br i1 %exitcond187.not, label %.loopexit103, label %scalar.ph, !llvm.loop !35

.loopexit103:                                     ; preds = %scalar.ph, %middle.block, %105, %.preheader104, %.preheader102, %.lr.ph142
  %indvars.iv.next189 = add nsw i64 %indvars.iv188, -1
  %235 = load i32, ptr @s, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [50 x i32], ptr @g, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %.not93.not = icmp sgt i64 %indvars.iv188, %239
  br i1 %.not93.not, label %.lr.ph142, label %._crit_edge143, !llvm.loop !36
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #6

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

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

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

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


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