; LLVM IR from bondhugula/pluto :: examples/heat-2d (heat-2d)

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

%struct.timeval = type { i64, i64 }

@total = external dso_local global double, align 8
@sum_err_sqr = external dso_local global double, align 8
@chtotal = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [51 x i8], align 1
@A = external dso_local global [2 x [4002 x [4002 x double]]], align 16
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.timeval, align 8
  %11 = alloca %struct.timeval, align 8
  %12 = alloca %struct.timeval, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1024, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 16000000, i64 noundef 1000)
  call void @srand(i32 noundef 42) #5
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %25

25:                                               ; preds = %45, %2
  %26 = load i64, ptr %6, align 8, !tbaa !13
  %27 = icmp slt i64 %26, 4001
  br i1 %27, label %28, label %48

28:                                               ; preds = %25
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %29

29:                                               ; preds = %41, %28
  %30 = load i64, ptr %7, align 8, !tbaa !13
  %31 = icmp slt i64 %30, 4001
  br i1 %31, label %32, label %44

32:                                               ; preds = %29
  %33 = call i32 @rand() #5
  %34 = srem i32 %33, 1024
  %35 = sitofp i32 %34 to double
  %36 = fmul double 1.000000e+00, %35
  %37 = load i64, ptr %6, align 8, !tbaa !13
  %38 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %37
  %39 = load i64, ptr %7, align 8, !tbaa !13
  %40 = getelementptr inbounds [4002 x double], ptr %38, i64 0, i64 %39
  store double %36, ptr %40, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %32
  %42 = load i64, ptr %7, align 8, !tbaa !13
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %7, align 8, !tbaa !13
  br label %29, !llvm.loop !15

44:                                               ; preds = %29
  br label %45

45:                                               ; preds = %44
  %46 = load i64, ptr %6, align 8, !tbaa !13
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %6, align 8, !tbaa !13
  br label %25, !llvm.loop !17

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

49:                                               ; preds = %174, %48
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %51, 1000
  br i1 %52, label %54, label %53

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

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

55:                                               ; preds = %170, %54
  %56 = load i32, ptr %16, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %57, 4001
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %173

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %166, %60
  %62 = load i32, ptr %17, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %63, 4001
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %169

66:                                               ; preds = %61
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = srem i32 %67, 2
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %69
  %71 = load i32, ptr %16, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [4002 x [4002 x double]], ptr %70, i64 0, i64 %73
  %75 = load i32, ptr %17, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [4002 x double], ptr %74, i64 0, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = srem i32 %79, 2
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %81
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4002 x [4002 x double]], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %17, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [4002 x double], ptr %85, i64 0, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %89, double %78)
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = srem i32 %91, 2
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %93
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [4002 x [4002 x double]], ptr %94, i64 0, i64 %97
  %99 = load i32, ptr %17, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [4002 x double], ptr %98, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = fadd double %90, %102
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = srem i32 %104, 2
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %106
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4002 x [4002 x double]], ptr %107, i64 0, i64 %109
  %111 = load i32, ptr %17, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [4002 x double], ptr %110, i64 0, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = srem i32 %116, 2
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %118
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [4002 x [4002 x double]], ptr %119, i64 0, i64 %121
  %123 = load i32, ptr %17, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [4002 x double], ptr %122, i64 0, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %126, double %115)
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = srem i32 %128, 2
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %130
  %132 = load i32, ptr %16, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4002 x [4002 x double]], ptr %131, i64 0, i64 %133
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [4002 x double], ptr %134, i64 0, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fadd double %127, %139
  %141 = fmul double 1.250000e-01, %140
  %142 = call double @llvm.fmuladd.f64(double 1.250000e-01, double %103, double %141)
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = srem i32 %143, 2
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %145
  %147 = load i32, ptr %16, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [4002 x [4002 x double]], ptr %146, i64 0, i64 %148
  %150 = load i32, ptr %17, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4002 x double], ptr %149, i64 0, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = fadd double %142, %153
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  %157 = srem i32 %156, 2
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %158
  %160 = load i32, ptr %16, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [4002 x [4002 x double]], ptr %159, i64 0, i64 %161
  %163 = load i32, ptr %17, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [4002 x double], ptr %162, i64 0, i64 %164
  store double %154, ptr %165, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %66
  %167 = load i32, ptr %17, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %17, align 4, !tbaa !5
  br label %61, !llvm.loop !18

169:                                              ; preds = %65
  br label %170

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

173:                                              ; preds = %59
  br label %174

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

177:                                              ; preds = %53
  %178 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %293

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %206, %180
  %182 = load i32, ptr %18, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = icmp slt i64 %183, 4001
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 17, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %209

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

187:                                              ; preds = %202, %186
  %188 = load i32, ptr %19, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = icmp slt i64 %189, 4001
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 20, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %205

192:                                              ; preds = %187
  %193 = load i32, ptr %18, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %194
  %196 = load i32, ptr %19, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [4002 x double], ptr %195, i64 0, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = load double, ptr @total, align 8, !tbaa !11
  %201 = fadd double %200, %199
  store double %201, ptr @total, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %192
  %203 = load i32, ptr %19, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %19, align 4, !tbaa !5
  br label %187, !llvm.loop !21

205:                                              ; preds = %191
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %18, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !5
  br label %181, !llvm.loop !22

209:                                              ; preds = %185
  %210 = load ptr, ptr @stderr, align 8, !tbaa !9
  %211 = load double, ptr @total, align 8, !tbaa !11
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.3, double noundef %211) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %251, %209
  %214 = load i32, ptr %20, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = icmp slt i64 %215, 4001
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 23, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %254

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %247, %218
  %220 = load i32, ptr %21, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = icmp slt i64 %221, 4001
  br i1 %222, label %224, label %223

223:                                              ; preds = %219
  store i32 26, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %250

224:                                              ; preds = %219
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %226
  %228 = load i32, ptr %21, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [4002 x double], ptr %227, i64 0, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !11
  %232 = load double, ptr @total, align 8, !tbaa !11
  %233 = fdiv double %232, 4.000000e+03
  %234 = fsub double %231, %233
  %235 = load i32, ptr %20, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %236
  %238 = load i32, ptr %21, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [4002 x double], ptr %237, i64 0, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = load double, ptr @total, align 8, !tbaa !11
  %243 = fdiv double %242, 4.000000e+03
  %244 = fsub double %241, %243
  %245 = load double, ptr @sum_err_sqr, align 8, !tbaa !11
  %246 = call double @llvm.fmuladd.f64(double %234, double %244, double %245)
  store double %246, ptr @sum_err_sqr, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %224
  %248 = load i32, ptr %21, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %21, align 4, !tbaa !5
  br label %219, !llvm.loop !23

250:                                              ; preds = %223
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %20, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %20, align 4, !tbaa !5
  br label %213, !llvm.loop !24

254:                                              ; preds = %217
  %255 = load ptr, ptr @stderr, align 8, !tbaa !9
  %256 = load double, ptr @sum_err_sqr, align 8, !tbaa !11
  %257 = call double @sqrt(double noundef %256) #5
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.4, double noundef %257) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %286, %254
  %260 = load i32, ptr %22, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = icmp slt i64 %261, 4001
  br i1 %262, label %264, label %263

263:                                              ; preds = %259
  store i32 29, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %289

264:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %282, %264
  %266 = load i32, ptr %23, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = icmp slt i64 %267, 4001
  br i1 %268, label %270, label %269

269:                                              ; preds = %265
  store i32 32, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %285

270:                                              ; preds = %265
  %271 = load i32, ptr %22, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %272
  %274 = getelementptr inbounds [4002 x double], ptr %273, i64 0, i64 0
  %275 = load i32, ptr %23, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds i8, ptr %274, i64 %276
  %278 = load i8, ptr %277, align 1, !tbaa !25
  %279 = sext i8 %278 to i32
  %280 = load i32, ptr @chtotal, align 4, !tbaa !5
  %281 = add nsw i32 %280, %279
  store i32 %281, ptr @chtotal, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %270
  %283 = load i32, ptr %23, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %23, align 4, !tbaa !5
  br label %265, !llvm.loop !26

285:                                              ; preds = %269
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %22, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %22, align 4, !tbaa !5
  br label %259, !llvm.loop !27

289:                                              ; preds = %263
  %290 = load ptr, ptr @stderr, align 8, !tbaa !9
  %291 = load i32, ptr @chtotal, align 4, !tbaa !5
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.5, i32 noundef %291) #5
  br label %293

293:                                              ; preds = %289, %177
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %294 = load i32, ptr %3, align 4
  ret i32 %294
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

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

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

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

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

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

!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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


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

@total = external dso_local local_unnamed_addr global double, align 8
@sum_err_sqr = external dso_local local_unnamed_addr global double, align 8
@chtotal = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [51 x i8], align 1
@A = external dso_local local_unnamed_addr global [2 x [4002 x [4002 x double]]], align 16
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 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, i64 noundef 16000000, i64 noundef 1000)
  tail call void @srand(i32 noundef 42) #6
  br label %.preheader81

.preheader81:                                     ; preds = %2, %10
  %.06583 = phi i64 [ 1, %2 ], [ %11, %10 ]
  br label %4

4:                                                ; preds = %.preheader81, %4
  %.06682 = phi i64 [ 1, %.preheader81 ], [ %9, %4 ]
  %5 = tail call i32 @rand() #6
  %6 = srem i32 %5, 1024
  %7 = sitofp i32 %6 to double
  %8 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %.06583, i64 %.06682
  store double %7, ptr %8, align 8, !tbaa !5
  %9 = add nuw nsw i64 %.06682, 1
  %exitcond.not = icmp eq i64 %9, 4001
  br i1 %exitcond.not, label %10, label %4, !llvm.loop !9

10:                                               ; preds = %4
  %11 = add nuw nsw i64 %.06583, 1
  %exitcond106.not = icmp eq i64 %11, 4001
  br i1 %exitcond106.not, label %.preheader79, label %.preheader81, !llvm.loop !11

.preheader79:                                     ; preds = %10, %40
  %.06486 = phi i32 [ %41, %40 ], [ 0, %10 ]
  %12 = and i32 %.06486, 1
  %13 = xor i32 %12, 1
  %narrow = mul nuw nsw i32 %13, 128128032
  %14 = trunc i32 %.06486 to i1
  %.neg = select i1 %14, i64 -128128032, i64 0
  %15 = or disjoint i32 %narrow, 8
  %16 = zext nneg i32 %15 to i64
  %17 = add nsw i64 %.neg, %16
  %18 = and i32 %.06486, 1
  %19 = zext nneg i32 %18 to i64
  %20 = xor i32 %18, 1
  %21 = zext nneg i32 %20 to i64
  %diff.check145 = icmp ult i64 %17, 16
  br label %.preheader78

22:                                               ; preds = %40
  %23 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %125, label %.preheader77

.preheader77:                                     ; preds = %22
  %total.promoted88 = load double, ptr @total, align 8, !tbaa !5
  br label %.preheader76

.preheader78:                                     ; preds = %.preheader79, %middle.block
  %indvars.iv109 = phi i64 [ 1, %.preheader79 ], [ %indvars.iv.next110, %middle.block ]
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %24 = add nsw i64 %indvars.iv109, -1
  %.phi.trans.insert = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv109, i64 1
  %.pre = load double, ptr %.phi.trans.insert, align 8, !tbaa !5
  br i1 %diff.check145, label %scalar.ph, label %vector.ph

vector.ph:                                        ; preds = %.preheader78
  %vector.recur.init = insertelement <2 x double> poison, double %.pre, i64 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x double> [ %vector.recur.init, %vector.ph ], [ %wide.load148, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %25 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv.next110, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %25, align 8, !tbaa !5
  %26 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %24, i64 %offset.idx
  %wide.load147 = load <2 x double>, ptr %26, align 8, !tbaa !5
  %27 = add nuw nsw i64 %index, 2
  %28 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv109, i64 %27
  %wide.load148 = load <2 x double>, ptr %28, align 16, !tbaa !5
  %29 = shufflevector <2 x double> %vector.recur, <2 x double> %wide.load148, <2 x i32> <i32 1, i32 2>
  %30 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %wide.load)
  %31 = fadd <2 x double> %30, %wide.load147
  %32 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %wide.load148)
  %33 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv109, i64 %index
  %wide.load149 = load <2 x double>, ptr %33, align 16, !tbaa !5
  %34 = fadd <2 x double> %32, %wide.load149
  %35 = fmul <2 x double> %34, <double 1.250000e-01, double 1.250000e-01>
  %36 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> <double 1.250000e-01, double 1.250000e-01>, <2 x double> %35)
  %37 = fadd <2 x double> %29, %36
  %38 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %21, i64 %indvars.iv109, i64 %offset.idx
  store <2 x double> %37, ptr %38, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %39 = icmp eq i64 %index.next, 4000
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !12

40:                                               ; preds = %middle.block
  %41 = add nuw nsw i32 %.06486, 1
  %exitcond113.not = icmp eq i32 %41, 1000
  br i1 %exitcond113.not, label %22, label %.preheader79, !llvm.loop !15

middle.block:                                     ; preds = %vector.body, %scalar.ph
  %exitcond112.not = icmp eq i64 %indvars.iv.next110, 4001
  br i1 %exitcond112.not, label %40, label %.preheader78, !llvm.loop !16

scalar.ph:                                        ; preds = %.preheader78, %scalar.ph
  %42 = phi double [ %50, %scalar.ph ], [ %.pre, %.preheader78 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ 1, %.preheader78 ]
  %43 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv.next110, i64 %indvars.iv
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = tail call double @llvm.fmuladd.f64(double %42, double -2.000000e+00, double %44)
  %46 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %24, i64 %indvars.iv
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = fadd double %45, %47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv109, i64 %indvars.iv.next
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = tail call double @llvm.fmuladd.f64(double %42, double -2.000000e+00, double %50)
  %52 = add nsw i64 %indvars.iv, -1
  %53 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %19, i64 %indvars.iv109, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = fadd double %51, %54
  %56 = fmul double %55, 1.250000e-01
  %57 = tail call double @llvm.fmuladd.f64(double %48, double 1.250000e-01, double %56)
  %58 = fadd double %42, %57
  %59 = getelementptr inbounds [2 x [4002 x [4002 x double]]], ptr @A, i64 0, i64 %21, i64 %indvars.iv109, i64 %indvars.iv
  store double %58, ptr %59, align 8, !tbaa !5
  %exitcond108.not = icmp eq i64 %indvars.iv.next, 4001
  br i1 %exitcond108.not, label %middle.block, label %scalar.ph, !llvm.loop !17

.preheader76:                                     ; preds = %.preheader77, %65
  %indvars.iv118 = phi i64 [ 1, %.preheader77 ], [ %indvars.iv.next119, %65 ]
  %.lcssa8990 = phi double [ %total.promoted88, %.preheader77 ], [ %82, %65 ]
  br label %66

60:                                               ; preds = %65
  store double %82, ptr @total, align 8, !tbaa !5
  %61 = load ptr, ptr @stderr, align 8, !tbaa !18
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.3, double noundef %82) #7
  %63 = load double, ptr @total, align 8, !tbaa !5
  %64 = fdiv double %63, 4.000000e+03
  %sum_err_sqr.promoted94 = load double, ptr @sum_err_sqr, align 8, !tbaa !5
  br label %.preheader75

65:                                               ; preds = %66
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next119, 4001
  br i1 %exitcond121.not, label %60, label %.preheader76, !llvm.loop !20

66:                                               ; preds = %66, %.preheader76
  %indvars.iv114 = phi i64 [ 1, %.preheader76 ], [ %indvars.iv.next115.4, %66 ]
  %67 = phi double [ %.lcssa8990, %.preheader76 ], [ %82, %66 ]
  %68 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv118, i64 %indvars.iv114
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = fadd double %69, %67
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %71 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv118, i64 %indvars.iv.next115
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fadd double %72, %70
  %indvars.iv.next115.1 = add nuw nsw i64 %indvars.iv114, 2
  %74 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv118, i64 %indvars.iv.next115.1
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = fadd double %75, %73
  %indvars.iv.next115.2 = add nuw nsw i64 %indvars.iv114, 3
  %77 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv118, i64 %indvars.iv.next115.2
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = fadd double %78, %76
  %indvars.iv.next115.3 = add nuw nsw i64 %indvars.iv114, 4
  %80 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv118, i64 %indvars.iv.next115.3
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = fadd double %81, %79
  %indvars.iv.next115.4 = add nuw nsw i64 %indvars.iv114, 5
  %exitcond117.not.4 = icmp eq i64 %indvars.iv.next115.4, 4001
  br i1 %exitcond117.not.4, label %65, label %66, !llvm.loop !21

.preheader75:                                     ; preds = %60, %87
  %indvars.iv126 = phi i64 [ 1, %60 ], [ %indvars.iv.next127, %87 ]
  %.lcssa929596 = phi double [ %sum_err_sqr.promoted94, %60 ], [ %105, %87 ]
  br label %88

83:                                               ; preds = %87
  store double %105, ptr @sum_err_sqr, align 8, !tbaa !5
  %84 = load ptr, ptr @stderr, align 8, !tbaa !18
  %85 = tail call double @sqrt(double noundef %105) #6
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.4, double noundef %85) #7
  %chtotal.promoted100 = load i32, ptr @chtotal, align 4, !tbaa !22
  br label %.preheader

87:                                               ; preds = %88
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next127, 4001
  br i1 %exitcond129.not, label %83, label %.preheader75, !llvm.loop !24

88:                                               ; preds = %88, %.preheader75
  %indvars.iv122 = phi i64 [ 1, %.preheader75 ], [ %indvars.iv.next123.3, %88 ]
  %89 = phi double [ %.lcssa929596, %.preheader75 ], [ %105, %88 ]
  %90 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv126, i64 %indvars.iv122
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = fsub double %91, %64
  %93 = tail call double @llvm.fmuladd.f64(double %92, double %92, double %89)
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %94 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv126, i64 %indvars.iv.next123
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = fsub double %95, %64
  %97 = tail call double @llvm.fmuladd.f64(double %96, double %96, double %93)
  %indvars.iv.next123.1 = add nuw nsw i64 %indvars.iv122, 2
  %98 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv126, i64 %indvars.iv.next123.1
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fsub double %99, %64
  %101 = tail call double @llvm.fmuladd.f64(double %100, double %100, double %97)
  %indvars.iv.next123.2 = add nuw nsw i64 %indvars.iv122, 3
  %102 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv126, i64 %indvars.iv.next123.2
  %103 = load double, ptr %102, align 8, !tbaa !5
  %104 = fsub double %103, %64
  %105 = tail call double @llvm.fmuladd.f64(double %104, double %104, double %101)
  %indvars.iv.next123.3 = add nuw nsw i64 %indvars.iv122, 4
  %exitcond125.not.3 = icmp eq i64 %indvars.iv.next123.3, 4001
  br i1 %exitcond125.not.3, label %87, label %88, !llvm.loop !25

.preheader:                                       ; preds = %83, %middle.block150
  %indvars.iv134 = phi i64 [ 1, %83 ], [ %indvars.iv.next135, %middle.block150 ]
  %.lcssa98101102 = phi i32 [ %chtotal.promoted100, %83 ], [ %121, %middle.block150 ]
  %106 = getelementptr inbounds [4002 x [4002 x double]], ptr @A, i64 0, i64 %indvars.iv134
  %107 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.lcssa98101102, i64 0
  br label %vector.body154

vector.body154:                                   ; preds = %vector.body154, %.preheader
  %index155 = phi i64 [ 0, %.preheader ], [ %index.next160.1, %vector.body154 ]
  %vec.phi = phi <4 x i32> [ %107, %.preheader ], [ %118, %vector.body154 ]
  %vec.phi156 = phi <4 x i32> [ zeroinitializer, %.preheader ], [ %119, %vector.body154 ]
  %offset.idx157 = or disjoint i64 %index155, 1
  %108 = getelementptr inbounds i8, ptr %106, i64 %offset.idx157
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  %wide.load158 = load <4 x i8>, ptr %108, align 1, !tbaa !26
  %wide.load159 = load <4 x i8>, ptr %109, align 1, !tbaa !26
  %110 = sext <4 x i8> %wide.load158 to <4 x i32>
  %111 = sext <4 x i8> %wide.load159 to <4 x i32>
  %112 = add <4 x i32> %vec.phi, %110
  %113 = add <4 x i32> %vec.phi156, %111
  %offset.idx157.1 = or disjoint i64 %index155, 9
  %114 = getelementptr inbounds i8, ptr %106, i64 %offset.idx157.1
  %115 = getelementptr inbounds i8, ptr %114, i64 4
  %wide.load158.1 = load <4 x i8>, ptr %114, align 1, !tbaa !26
  %wide.load159.1 = load <4 x i8>, ptr %115, align 1, !tbaa !26
  %116 = sext <4 x i8> %wide.load158.1 to <4 x i32>
  %117 = sext <4 x i8> %wide.load159.1 to <4 x i32>
  %118 = add <4 x i32> %112, %116
  %119 = add <4 x i32> %113, %117
  %index.next160.1 = add nuw nsw i64 %index155, 16
  %120 = icmp eq i64 %index.next160.1, 4000
  br i1 %120, label %middle.block150, label %vector.body154, !llvm.loop !27

middle.block150:                                  ; preds = %vector.body154
  %bin.rdx = add <4 x i32> %119, %118
  %121 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next135, 4001
  br i1 %exitcond137.not, label %122, label %.preheader, !llvm.loop !28

122:                                              ; preds = %middle.block150
  store i32 %121, ptr @chtotal, align 4, !tbaa !22
  %123 = load ptr, ptr @stderr, align 8, !tbaa !18
  %124 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.5, i32 noundef %121) #7
  br label %125

125:                                              ; preds = %122, %22
  ret i32 0
}

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

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

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

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

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

; 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>) #5

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

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 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { cold 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !13}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !10, !13, !14}
!28 = distinct !{!28, !10}


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