; LLVM IR from bondhugula/pluto :: examples/heat-2d/heat-2d.omp (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"

%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 i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.timeval, align 8
  %12 = alloca %struct.timeval, align 8
  %13 = alloca %struct.timeval, align 8
  %14 = alloca double, align 8
  %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
  %24 = 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 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1024, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 -1, ptr %10, align 4, !tbaa !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 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  %25 = 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 %26

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

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

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

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

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

45:                                               ; preds = %30
  br label %46

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

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

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

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

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

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

60:                                               ; preds = %56
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %174

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

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

66:                                               ; preds = %62
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %170

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

167:                                              ; preds = %67
  %168 = load i32, ptr %18, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %18, align 4, !tbaa !5
  br label %62, !llvm.loop !18

170:                                              ; preds = %66
  br label %171

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

174:                                              ; preds = %60
  br label %175

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

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

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

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

186:                                              ; preds = %182
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %210

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

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

192:                                              ; preds = %188
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %206

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

203:                                              ; preds = %193
  %204 = load i32, ptr %20, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %20, align 4, !tbaa !5
  br label %188, !llvm.loop !21

206:                                              ; preds = %192
  br label %207

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

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

214:                                              ; preds = %252, %210
  %215 = load i32, ptr %21, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = icmp slt i64 %216, 4001
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %255

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

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

224:                                              ; preds = %220
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %251

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

248:                                              ; preds = %225
  %249 = load i32, ptr %22, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %22, align 4, !tbaa !5
  br label %220, !llvm.loop !23

251:                                              ; preds = %224
  br label %252

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

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

260:                                              ; preds = %287, %255
  %261 = load i32, ptr %23, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = icmp slt i64 %262, 4001
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %290

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

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

270:                                              ; preds = %266
  store i32 32, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %286

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

283:                                              ; preds = %271
  %284 = load i32, ptr %24, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %24, align 4, !tbaa !5
  br label %266, !llvm.loop !26

286:                                              ; preds = %270
  br label %287

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

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

294:                                              ; preds = %290, %178
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, 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 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %295 = load i32, ptr %3, align 4
  ret i32 %295
}

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