; LLVM IR from yangyang14641/Parallel-Matrix-Multiplication-FOX-Algorithm :: Code Tests/Dell XPS8900/Testing on Intel Core i7 CPU/Source Codes (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @dtime() #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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %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 ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %18 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %18, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %43, %2
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 64
  br i1 %21, label %22, label %46

22:                                               ; preds = %19
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %37, %22
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 64
  br i1 %25, label %26, label %40

26:                                               ; preds = %23
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = icmp eq i32 %27, %28
  br i1 %29, label %30, label %33

30:                                               ; preds = %26
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.3, i32 noundef 1) #6
  br label %36

33:                                               ; preds = %26
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.3, i32 noundef 0) #6
  br label %36

36:                                               ; preds = %33, %30
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %8, align 4, !tbaa !5
  br label %23, !llvm.loop !11

40:                                               ; preds = %23
  %41 = load ptr, ptr %6, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.4) #6
  br label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !5
  br label %19, !llvm.loop !13

46:                                               ; preds = %19
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = call i32 @fclose(ptr noundef %47)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %50 = call noalias ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.2)
  store ptr %50, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %71, %46
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 64
  br i1 %53, label %54, label %74

54:                                               ; preds = %51
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %65, %54
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 64
  br i1 %57, label %58, label %68

58:                                               ; preds = %55
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = mul nsw i32 %60, 64
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.3, i32 noundef %63) #6
  br label %65

65:                                               ; preds = %58
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %8, align 4, !tbaa !5
  br label %55, !llvm.loop !14

68:                                               ; preds = %55
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.4) #6
  br label %71

71:                                               ; preds = %68
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %51, !llvm.loop !15

74:                                               ; preds = %51
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = call i32 @fclose(ptr noundef %75)
  %77 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.7)
  store ptr %77, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %91, %74
  %79 = load ptr, ptr %6, align 8, !tbaa !9
  %80 = call i32 @fgetc(ptr noundef %79)
  store i32 %80, ptr %11, align 4, !tbaa !5
  %81 = icmp ne i32 %80, -1
  br i1 %81, label %82, label %92

82:                                               ; preds = %78
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 32
  br i1 %84, label %85, label %91

85:                                               ; preds = %82
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 10
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %10, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %88, %85, %82
  br label %78, !llvm.loop !16

92:                                               ; preds = %78
  %93 = load ptr, ptr %6, align 8, !tbaa !9
  %94 = call i32 @fclose(ptr noundef %93)
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = sitofp i32 %95 to double
  %97 = call double @sqrt(double noundef %96) #6
  %98 = fptosi double %97 to i32
  store i32 %98, ptr %10, align 4, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %99)
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = mul nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = mul i64 %104, 8
  %106 = call noalias ptr @malloc(i64 noundef %105) #7
  store ptr %106, ptr %12, align 8, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = mul nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = mul i64 %110, 8
  %112 = call noalias ptr @malloc(i64 noundef %111) #7
  store ptr %112, ptr %13, align 8, !tbaa !9
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = mul i64 %116, 8
  %118 = call noalias ptr @malloc(i64 noundef %117) #7
  store ptr %118, ptr %14, align 8, !tbaa !9
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %120 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.7)
  store ptr %120, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %146, %92
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %149

125:                                              ; preds = %121
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %142, %125
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %145

130:                                              ; preds = %126
  %131 = load ptr, ptr %6, align 8, !tbaa !9
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = mul nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %132, i64 %136
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %137, i64 %139
  %141 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %131, ptr noundef @.str.10, ptr noundef %140)
  br label %142

142:                                              ; preds = %130
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %8, align 4, !tbaa !5
  br label %126, !llvm.loop !17

145:                                              ; preds = %126
  br label %146

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

149:                                              ; preds = %121
  %150 = load ptr, ptr %6, align 8, !tbaa !9
  %151 = call i32 @fclose(ptr noundef %150)
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %153 = call noalias ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
  store ptr %153, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %179, %149
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %182

158:                                              ; preds = %154
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %175, %158
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %163, label %178

163:                                              ; preds = %159
  %164 = load ptr, ptr %6, align 8, !tbaa !9
  %165 = load ptr, ptr %13, align 8, !tbaa !9
  %166 = load i32, ptr %7, align 4, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = mul nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %165, i64 %169
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds double, ptr %170, i64 %172
  %174 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %164, ptr noundef @.str.10, ptr noundef %173)
  br label %175

175:                                              ; preds = %163
  %176 = load i32, ptr %8, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %8, align 4, !tbaa !5
  br label %159, !llvm.loop !19

178:                                              ; preds = %159
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %7, align 4, !tbaa !5
  br label %154, !llvm.loop !20

182:                                              ; preds = %154
  %183 = load ptr, ptr %6, align 8, !tbaa !9
  %184 = call i32 @fclose(ptr noundef %183)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %207, %182
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = load i32, ptr %10, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %189, label %210

189:                                              ; preds = %185
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %203, %189
  %191 = load i32, ptr %8, align 4, !tbaa !5
  %192 = load i32, ptr %10, align 4, !tbaa !5
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %194, label %206

194:                                              ; preds = %190
  %195 = load ptr, ptr %14, align 8, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !5
  %197 = load i32, ptr %7, align 4, !tbaa !5
  %198 = mul nsw i32 %196, %197
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = add nsw i32 %198, %199
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %195, i64 %201
  store double 0.000000e+00, ptr %202, align 8, !tbaa !21
  br label %203

203:                                              ; preds = %194
  %204 = load i32, ptr %8, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %8, align 4, !tbaa !5
  br label %190, !llvm.loop !23

206:                                              ; preds = %190
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %7, align 4, !tbaa !5
  br label %185, !llvm.loop !24

210:                                              ; preds = %185
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %212 = call double @dtime()
  store double %212, ptr %15, align 8, !tbaa !21
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %272, %210
  %214 = load i32, ptr %7, align 4, !tbaa !5
  %215 = load i32, ptr %10, align 4, !tbaa !5
  %216 = icmp slt i32 %214, %215
  br i1 %216, label %217, label %275

217:                                              ; preds = %213
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %268, %217
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %222, label %271

222:                                              ; preds = %218
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %264, %222
  %224 = load i32, ptr %9, align 4, !tbaa !5
  %225 = load i32, ptr %10, align 4, !tbaa !5
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %227, label %267

227:                                              ; preds = %223
  %228 = load ptr, ptr %14, align 8, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !5
  %230 = load i32, ptr %7, align 4, !tbaa !5
  %231 = mul nsw i32 %229, %230
  %232 = load i32, ptr %8, align 4, !tbaa !5
  %233 = add nsw i32 %231, %232
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %228, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !21
  %237 = load ptr, ptr %12, align 8, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !5
  %239 = load i32, ptr %7, align 4, !tbaa !5
  %240 = mul nsw i32 %238, %239
  %241 = load i32, ptr %9, align 4, !tbaa !5
  %242 = add nsw i32 %240, %241
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %237, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !21
  %246 = load ptr, ptr %13, align 8, !tbaa !9
  %247 = load i32, ptr %10, align 4, !tbaa !5
  %248 = load i32, ptr %9, align 4, !tbaa !5
  %249 = mul nsw i32 %247, %248
  %250 = load i32, ptr %8, align 4, !tbaa !5
  %251 = add nsw i32 %249, %250
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %246, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !21
  %255 = call double @llvm.fmuladd.f64(double %245, double %254, double %236)
  %256 = load ptr, ptr %14, align 8, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = load i32, ptr %7, align 4, !tbaa !5
  %259 = mul nsw i32 %257, %258
  %260 = load i32, ptr %8, align 4, !tbaa !5
  %261 = add nsw i32 %259, %260
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds double, ptr %256, i64 %262
  store double %255, ptr %263, align 8, !tbaa !21
  br label %264

264:                                              ; preds = %227
  %265 = load i32, ptr %9, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %9, align 4, !tbaa !5
  br label %223, !llvm.loop !25

267:                                              ; preds = %223
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %8, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %8, align 4, !tbaa !5
  br label %218, !llvm.loop !26

271:                                              ; preds = %218
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %7, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %7, align 4, !tbaa !5
  br label %213, !llvm.loop !27

275:                                              ; preds = %213
  %276 = call double @dtime()
  store double %276, ptr %16, align 8, !tbaa !21
  %277 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %278 = load double, ptr %16, align 8, !tbaa !21
  %279 = load double, ptr %15, align 8, !tbaa !21
  %280 = fsub double %278, %279
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %280)
  %282 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %283 = call noalias ptr @fopen(ptr noundef @.str.16, ptr noundef @.str.2)
  store ptr %283, ptr %6, align 8, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %284

284:                                              ; preds = %309, %275
  %285 = load i32, ptr %7, align 4, !tbaa !5
  %286 = icmp slt i32 %285, 64
  br i1 %286, label %287, label %312

287:                                              ; preds = %284
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %288

288:                                              ; preds = %303, %287
  %289 = load i32, ptr %8, align 4, !tbaa !5
  %290 = icmp slt i32 %289, 64
  br i1 %290, label %291, label %306

291:                                              ; preds = %288
  %292 = load ptr, ptr %6, align 8, !tbaa !9
  %293 = load ptr, ptr %14, align 8, !tbaa !9
  %294 = load i32, ptr %10, align 4, !tbaa !5
  %295 = load i32, ptr %7, align 4, !tbaa !5
  %296 = mul nsw i32 %294, %295
  %297 = load i32, ptr %8, align 4, !tbaa !5
  %298 = add nsw i32 %296, %297
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds double, ptr %293, i64 %299
  %301 = load double, ptr %300, align 8, !tbaa !21
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.17, double noundef %301) #6
  br label %303

303:                                              ; preds = %291
  %304 = load i32, ptr %8, align 4, !tbaa !5
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %8, align 4, !tbaa !5
  br label %288, !llvm.loop !28

306:                                              ; preds = %288
  %307 = load ptr, ptr %6, align 8, !tbaa !9
  %308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.4) #6
  br label %309

309:                                              ; preds = %306
  %310 = load i32, ptr %7, align 4, !tbaa !5
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %7, align 4, !tbaa !5
  br label %284, !llvm.loop !29

312:                                              ; preds = %284
  %313 = load ptr, ptr %6, align 8, !tbaa !9
  %314 = call i32 @fclose(ptr noundef %313)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  ret i32 0
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare i32 @fclose(ptr noundef) #3

declare i32 @fgetc(ptr noundef) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 allocsize(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 }
attributes #7 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}


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

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @dtime() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %4 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  br label %.preheader123

.preheader123:                                    ; preds = %2, %9
  %.0125 = phi i32 [ 0, %2 ], [ %11, %9 ]
  br label %5

5:                                                ; preds = %.preheader123, %5
  %.0104124 = phi i32 [ 0, %.preheader123 ], [ %8, %5 ]
  %6 = icmp eq i32 %.0125, %.0104124
  %. = zext i1 %6 to i32
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.3, i32 noundef %.) #7
  %8 = add nuw nsw i32 %.0104124, 1
  %exitcond.not = icmp eq i32 %8, 64
  br i1 %exitcond.not, label %9, label %5, !llvm.loop !5

9:                                                ; preds = %5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.4) #7
  %11 = add nuw nsw i32 %.0125, 1
  %exitcond146.not = icmp eq i32 %11, 64
  br i1 %exitcond146.not, label %12, label %.preheader123, !llvm.loop !7

12:                                               ; preds = %9
  %13 = tail call i32 @fclose(ptr noundef %4)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %15 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2)
  br label %.preheader122

.preheader122:                                    ; preds = %12, %21
  %.1127 = phi i32 [ 0, %12 ], [ %23, %21 ]
  %16 = shl nuw nsw i32 %.1127, 6
  br label %17

17:                                               ; preds = %.preheader122, %17
  %.1105126 = phi i32 [ 0, %.preheader122 ], [ %20, %17 ]
  %18 = add nuw nsw i32 %.1105126, %16
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.3, i32 noundef %18) #7
  %20 = add nuw nsw i32 %.1105126, 1
  %exitcond147.not = icmp eq i32 %20, 64
  br i1 %exitcond147.not, label %21, label %17, !llvm.loop !8

21:                                               ; preds = %17
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.4) #7
  %23 = add nuw nsw i32 %.1127, 1
  %exitcond148.not = icmp eq i32 %23, 64
  br i1 %exitcond148.not, label %24, label %.preheader122, !llvm.loop !9

24:                                               ; preds = %21
  %25 = tail call i32 @fclose(ptr noundef %15)
  %26 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7)
  br label %.outer

.outer:                                           ; preds = %29, %24
  %.0112.ph = phi i32 [ %30, %29 ], [ 0, %24 ]
  br label %27

27:                                               ; preds = %.backedge, %.outer
  %28 = tail call i32 @fgetc(ptr noundef %26)
  switch i32 %28, label %29 [
    i32 -1, label %31
    i32 32, label %.backedge
    i32 10, label %.backedge
  ]

.backedge:                                        ; preds = %27, %27
  br label %27, !llvm.loop !10

29:                                               ; preds = %27
  %30 = add nuw nsw i32 %.0112.ph, 1
  br label %.outer, !llvm.loop !10

31:                                               ; preds = %27
  %32 = tail call i32 @fclose(ptr noundef %26)
  %33 = uitofp nneg i32 %.0112.ph to double
  %34 = tail call double @sqrt(double noundef %33) #7
  %35 = fptosi double %34 to i32
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %35)
  %37 = mul nsw i32 %35, %35
  %38 = zext nneg i32 %37 to i64
  %39 = shl nuw nsw i64 %38, 3
  %40 = tail call noalias ptr @malloc(i64 noundef %39) #8
  %41 = tail call noalias ptr @malloc(i64 noundef %39) #8
  %42 = tail call noalias ptr @malloc(i64 noundef %39) #8
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %44 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7)
  %45 = icmp sgt i32 %35, 0
  br i1 %45, label %.preheader121.us.preheader, label %._crit_edge130

.preheader121.us.preheader:                       ; preds = %31
  %46 = zext nneg i32 %35 to i64
  br label %.preheader121.us

.preheader121.us:                                 ; preds = %.preheader121.us.preheader, %._crit_edge.us
  %indvars.iv151 = phi i64 [ 0, %.preheader121.us.preheader ], [ %indvars.iv.next152, %._crit_edge.us ]
  %47 = mul nuw nsw i64 %indvars.iv151, %46
  %48 = getelementptr inbounds double, ptr %40, i64 %47
  br label %49

49:                                               ; preds = %.preheader121.us, %49
  %indvars.iv = phi i64 [ 0, %.preheader121.us ], [ %indvars.iv.next, %49 ]
  %50 = getelementptr inbounds double, ptr %48, i64 %indvars.iv
  %51 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %44, ptr noundef nonnull @.str.10, ptr noundef %50) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next, %46
  br i1 %exitcond150.not, label %._crit_edge.us, label %49, !llvm.loop !11

._crit_edge.us:                                   ; preds = %49
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %exitcond155.not = icmp eq i64 %indvars.iv.next152, %46
  br i1 %exitcond155.not, label %._crit_edge130, label %.preheader121.us, !llvm.loop !12

._crit_edge130:                                   ; preds = %._crit_edge.us, %31
  %52 = tail call i32 @fclose(ptr noundef %44)
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %54 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7)
  br i1 %45, label %.preheader120.us.preheader, label %._crit_edge133.thread

._crit_edge133.thread:                            ; preds = %._crit_edge130
  %55 = tail call i32 @fclose(ptr noundef %54)
  br label %._crit_edge137

.preheader120.us.preheader:                       ; preds = %._crit_edge130
  %56 = zext nneg i32 %35 to i64
  br label %.preheader120.us

.preheader120.us:                                 ; preds = %.preheader120.us.preheader, %._crit_edge.us134
  %indvars.iv161 = phi i64 [ 0, %.preheader120.us.preheader ], [ %indvars.iv.next162, %._crit_edge.us134 ]
  %57 = mul nuw nsw i64 %indvars.iv161, %56
  %58 = getelementptr inbounds double, ptr %41, i64 %57
  br label %59

59:                                               ; preds = %.preheader120.us, %59
  %indvars.iv156 = phi i64 [ 0, %.preheader120.us ], [ %indvars.iv.next157, %59 ]
  %60 = getelementptr inbounds double, ptr %58, i64 %indvars.iv156
  %61 = tail call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %54, ptr noundef nonnull @.str.10, ptr noundef %60) #7
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %exitcond160.not = icmp eq i64 %indvars.iv.next157, %56
  br i1 %exitcond160.not, label %._crit_edge.us134, label %59, !llvm.loop !13

._crit_edge.us134:                                ; preds = %59
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %56
  br i1 %exitcond165.not, label %._crit_edge133, label %.preheader120.us, !llvm.loop !14

._crit_edge133:                                   ; preds = %._crit_edge.us134
  %62 = tail call i32 @fclose(ptr noundef %54)
  br i1 %45, label %.preheader119.us.preheader, label %._crit_edge137

.preheader119.us.preheader:                       ; preds = %._crit_edge133
  %63 = zext nneg i32 %35 to i64
  %64 = mul nuw nsw i64 %63, %63
  %65 = shl i64 %64, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 %65, i1 false), !tbaa !15
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %._crit_edge133.thread, %.preheader119.us.preheader, %._crit_edge133
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %67 = tail call double @dtime()
  br i1 %45, label %.preheader118.us.preheader, label %._crit_edge

.preheader118.us.preheader:                       ; preds = %._crit_edge137
  %68 = zext nneg i32 %35 to i64
  %xtraiter = and i64 %68, 3
  %69 = icmp ult i32 %35, 4
  %unroll_iter = and i64 %68, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader118.us

.preheader118.us:                                 ; preds = %.preheader118.us.preheader, %._crit_edge141.split.us.us
  %indvars.iv180 = phi i64 [ 0, %.preheader118.us.preheader ], [ %indvars.iv.next181, %._crit_edge141.split.us.us ]
  %70 = mul nuw nsw i64 %indvars.iv180, %68
  %invariant.gep195 = getelementptr inbounds double, ptr %42, i64 %70
  %invariant.gep = getelementptr inbounds double, ptr %40, i64 %70
  br label %.preheader117.us.us

.preheader117.us.us:                              ; preds = %._crit_edge.us142.us, %.preheader118.us
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %._crit_edge.us142.us ], [ 0, %.preheader118.us ]
  %gep196 = getelementptr inbounds double, ptr %invariant.gep195, i64 %indvars.iv175
  %.promoted.us.us = load double, ptr %gep196, align 8, !tbaa !15
  %invariant.gep193 = getelementptr inbounds double, ptr %41, i64 %indvars.iv175
  br i1 %69, label %._crit_edge.us142.us.unr-lcssa, label %.preheader117.us.us.new

.preheader117.us.us.new:                          ; preds = %.preheader117.us.us, %.preheader117.us.us.new
  %indvars.iv170 = phi i64 [ %indvars.iv.next171.3, %.preheader117.us.us.new ], [ 0, %.preheader117.us.us ]
  %71 = phi double [ %87, %.preheader117.us.us.new ], [ %.promoted.us.us, %.preheader117.us.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader117.us.us.new ], [ 0, %.preheader117.us.us ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv170
  %72 = load double, ptr %gep, align 8, !tbaa !15
  %73 = mul nuw nsw i64 %indvars.iv170, %68
  %gep194 = getelementptr inbounds double, ptr %invariant.gep193, i64 %73
  %74 = load double, ptr %gep194, align 8, !tbaa !15
  %75 = tail call double @llvm.fmuladd.f64(double %72, double %74, double %71)
  %indvars.iv.next171 = or disjoint i64 %indvars.iv170, 1
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next171
  %76 = load double, ptr %gep.1, align 8, !tbaa !15
  %77 = mul nuw nsw i64 %indvars.iv.next171, %68
  %gep194.1 = getelementptr inbounds double, ptr %invariant.gep193, i64 %77
  %78 = load double, ptr %gep194.1, align 8, !tbaa !15
  %79 = tail call double @llvm.fmuladd.f64(double %76, double %78, double %75)
  %indvars.iv.next171.1 = or disjoint i64 %indvars.iv170, 2
  %gep.2 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next171.1
  %80 = load double, ptr %gep.2, align 8, !tbaa !15
  %81 = mul nuw nsw i64 %indvars.iv.next171.1, %68
  %gep194.2 = getelementptr inbounds double, ptr %invariant.gep193, i64 %81
  %82 = load double, ptr %gep194.2, align 8, !tbaa !15
  %83 = tail call double @llvm.fmuladd.f64(double %80, double %82, double %79)
  %indvars.iv.next171.2 = or disjoint i64 %indvars.iv170, 3
  %gep.3 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next171.2
  %84 = load double, ptr %gep.3, align 8, !tbaa !15
  %85 = mul nuw nsw i64 %indvars.iv.next171.2, %68
  %gep194.3 = getelementptr inbounds double, ptr %invariant.gep193, i64 %85
  %86 = load double, ptr %gep194.3, align 8, !tbaa !15
  %87 = tail call double @llvm.fmuladd.f64(double %84, double %86, double %83)
  %indvars.iv.next171.3 = add nuw nsw i64 %indvars.iv170, 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_edge.us142.us.unr-lcssa, label %.preheader117.us.us.new, !llvm.loop !19

._crit_edge.us142.us.unr-lcssa:                   ; preds = %.preheader117.us.us.new, %.preheader117.us.us
  %.lcssa.ph = phi double [ poison, %.preheader117.us.us ], [ %87, %.preheader117.us.us.new ]
  %indvars.iv170.unr = phi i64 [ 0, %.preheader117.us.us ], [ %indvars.iv.next171.3, %.preheader117.us.us.new ]
  %.unr = phi double [ %.promoted.us.us, %.preheader117.us.us ], [ %87, %.preheader117.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us142.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us142.us.unr-lcssa, %.epil.preheader
  %indvars.iv170.epil = phi i64 [ %indvars.iv.next171.epil, %.epil.preheader ], [ %indvars.iv170.unr, %._crit_edge.us142.us.unr-lcssa ]
  %88 = phi double [ %92, %.epil.preheader ], [ %.unr, %._crit_edge.us142.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us142.us.unr-lcssa ]
  %gep.epil = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv170.epil
  %89 = load double, ptr %gep.epil, align 8, !tbaa !15
  %90 = mul nuw nsw i64 %indvars.iv170.epil, %68
  %gep194.epil = getelementptr inbounds double, ptr %invariant.gep193, i64 %90
  %91 = load double, ptr %gep194.epil, align 8, !tbaa !15
  %92 = tail call double @llvm.fmuladd.f64(double %89, double %91, double %88)
  %indvars.iv.next171.epil = add nuw nsw i64 %indvars.iv170.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_edge.us142.us, label %.epil.preheader, !llvm.loop !20

._crit_edge.us142.us:                             ; preds = %.epil.preheader, %._crit_edge.us142.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us142.us.unr-lcssa ], [ %92, %.epil.preheader ]
  store double %.lcssa, ptr %gep196, align 8, !tbaa !15
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %68
  br i1 %exitcond179.not, label %._crit_edge141.split.us.us, label %.preheader117.us.us, !llvm.loop !22

._crit_edge141.split.us.us:                       ; preds = %._crit_edge.us142.us
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next181, %68
  br i1 %exitcond184.not, label %._crit_edge, label %.preheader118.us, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge141.split.us.us, %._crit_edge137
  %93 = tail call double @dtime()
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %95 = fsub double %93, %67
  %96 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %95)
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %98 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2)
  %99 = sext i32 %35 to i64
  br label %.preheader

.preheader:                                       ; preds = %._crit_edge, %104
  %indvars.iv189 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next190, %104 ]
  %100 = mul nsw i64 %indvars.iv189, %99
  %invariant.gep197 = getelementptr double, ptr %42, i64 %100
  br label %101

101:                                              ; preds = %.preheader, %101
  %indvars.iv185 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next186, %101 ]
  %gep198 = getelementptr double, ptr %invariant.gep197, i64 %indvars.iv185
  %102 = load double, ptr %gep198, align 8, !tbaa !15
  %103 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.17, double noundef %102) #7
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next186, 64
  br i1 %exitcond188.not, label %104, label %101, !llvm.loop !24

104:                                              ; preds = %101
  %105 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.4) #7
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next190, 64
  br i1 %exitcond192.not, label %106, label %.preheader, !llvm.loop !25

106:                                              ; preds = %104
  %107 = tail call i32 @fclose(ptr noundef %98)
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { 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 speculatable willreturn memory(none) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !17, i64 0}
!17 = !{!"omnipotent char", !18, i64 0}
!18 = !{!"Simple C/C++ TBAA"}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass