; LLVM IR from bondhugula/pluto :: examples/apop (apop)

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

@C = external dso_local global [3 x [2000001 x double]], align 16
@F = external dso_local global [2 x [2000001 x double]], align 16

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.timeval, align 8
  %8 = alloca %struct.timeval, align 8
  %9 = alloca %struct.timeval, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = 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 4, ptr %6) #3
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store double 1.000000e+02, ptr %11, align 8, !tbaa !11
  store double 9.500000e+01, ptr %12, align 8, !tbaa !11
  store double 1.000000e-01, ptr %13, align 8, !tbaa !11
  store double 3.000000e-01, ptr %14, align 8, !tbaa !11
  store double 1.000000e+00, ptr %15, align 8, !tbaa !11
  store i32 2000000, ptr %16, align 4, !tbaa !5
  store i32 10000, ptr %17, align 4, !tbaa !5
  %28 = load i32, ptr %16, align 4, !tbaa !5
  %29 = load i32, ptr %16, align 4, !tbaa !5
  %30 = and i32 %29, 1
  %31 = add nsw i32 %28, %30
  store i32 %31, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %32 = load double, ptr %11, align 8, !tbaa !11
  %33 = fmul double 2.000000e+00, %32
  %34 = load i32, ptr %16, align 4, !tbaa !5
  %35 = sitofp i32 %34 to double
  %36 = fdiv double %33, %35
  store double %36, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %37 = load double, ptr %14, align 8, !tbaa !11
  %38 = load double, ptr %14, align 8, !tbaa !11
  %39 = fmul double %37, %38
  store double %39, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %40 = load double, ptr %15, align 8, !tbaa !11
  %41 = load i32, ptr %17, align 4, !tbaa !5
  %42 = sitofp i32 %41 to double
  %43 = fdiv double %40, %42
  store double %43, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %44 = load double, ptr %13, align 8, !tbaa !11
  %45 = load double, ptr %24, align 8, !tbaa !11
  %46 = call double @llvm.fmuladd.f64(double %44, double %45, double 1.000000e+00)
  %47 = fdiv double 1.000000e+00, %46
  store double %47, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %48 = load double, ptr %24, align 8, !tbaa !11
  %49 = load double, ptr %13, align 8, !tbaa !11
  %50 = load double, ptr %24, align 8, !tbaa !11
  %51 = call double @llvm.fmuladd.f64(double %49, double %50, double 1.000000e+00)
  %52 = fdiv double %48, %51
  store double %52, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %102, %2
  %54 = load i32, ptr %27, align 4, !tbaa !5
  %55 = load i32, ptr %16, align 4, !tbaa !5
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %57, label %105

57:                                               ; preds = %53
  %58 = load double, ptr %26, align 8, !tbaa !11
  %59 = fmul double %58, 5.000000e-01
  %60 = load i32, ptr %27, align 4, !tbaa !5
  %61 = sitofp i32 %60 to double
  %62 = fmul double %59, %61
  %63 = load double, ptr %13, align 8, !tbaa !11
  %64 = fneg double %63
  %65 = load double, ptr %23, align 8, !tbaa !11
  %66 = load i32, ptr %27, align 4, !tbaa !5
  %67 = sitofp i32 %66 to double
  %68 = call double @llvm.fmuladd.f64(double %65, double %67, double %64)
  %69 = fmul double %62, %68
  %70 = load i32, ptr %27, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %71
  store double %69, ptr %72, align 8, !tbaa !11
  %73 = load double, ptr %25, align 8, !tbaa !11
  %74 = load double, ptr %23, align 8, !tbaa !11
  %75 = load i32, ptr %27, align 4, !tbaa !5
  %76 = sitofp i32 %75 to double
  %77 = fmul double %74, %76
  %78 = load i32, ptr %27, align 4, !tbaa !5
  %79 = sitofp i32 %78 to double
  %80 = fmul double %77, %79
  %81 = load double, ptr %24, align 8, !tbaa !11
  %82 = fneg double %80
  %83 = call double @llvm.fmuladd.f64(double %82, double %81, double 1.000000e+00)
  %84 = fmul double %73, %83
  %85 = load i32, ptr %27, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 1), i64 0, i64 %86
  store double %84, ptr %87, align 8, !tbaa !11
  %88 = load double, ptr %26, align 8, !tbaa !11
  %89 = fmul double %88, 5.000000e-01
  %90 = load i32, ptr %27, align 4, !tbaa !5
  %91 = sitofp i32 %90 to double
  %92 = fmul double %89, %91
  %93 = load double, ptr %13, align 8, !tbaa !11
  %94 = load double, ptr %23, align 8, !tbaa !11
  %95 = load i32, ptr %27, align 4, !tbaa !5
  %96 = sitofp i32 %95 to double
  %97 = call double @llvm.fmuladd.f64(double %94, double %96, double %93)
  %98 = fmul double %92, %97
  %99 = load i32, ptr %27, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 2), i64 0, i64 %100
  store double %98, ptr %101, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %57
  %103 = load i32, ptr %27, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %27, align 4, !tbaa !5
  br label %53, !llvm.loop !13

105:                                              ; preds = %53
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %131, %105
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = icmp sle i32 %107, %108
  br i1 %109, label %110, label %134

110:                                              ; preds = %106
  %111 = load double, ptr %12, align 8, !tbaa !11
  %112 = load i32, ptr %18, align 4, !tbaa !5
  %113 = sitofp i32 %112 to double
  %114 = load double, ptr %22, align 8, !tbaa !11
  %115 = fneg double %113
  %116 = call double @llvm.fmuladd.f64(double %115, double %114, double %111)
  %117 = fcmp ogt double 0.000000e+00, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  br label %126

119:                                              ; preds = %110
  %120 = load double, ptr %12, align 8, !tbaa !11
  %121 = load i32, ptr %18, align 4, !tbaa !5
  %122 = sitofp i32 %121 to double
  %123 = load double, ptr %22, align 8, !tbaa !11
  %124 = fneg double %122
  %125 = call double @llvm.fmuladd.f64(double %124, double %123, double %120)
  br label %126

126:                                              ; preds = %119, %118
  %127 = phi double [ 0.000000e+00, %118 ], [ %125, %119 ]
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [2000001 x double], ptr @F, i64 0, i64 %129
  store double %127, ptr %130, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %126
  %132 = load i32, ptr %18, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %18, align 4, !tbaa !5
  br label %106, !llvm.loop !15

134:                                              ; preds = %106
  %135 = load double, ptr %12, align 8, !tbaa !11
  store double %135, ptr getelementptr inbounds ([2 x [2000001 x double]], ptr @F, i64 0, i64 1), align 8, !tbaa !11
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %147, %134
  %137 = load i32, ptr %19, align 4, !tbaa !5
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %140, label %150

140:                                              ; preds = %136
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [2000001 x double], ptr @F, i64 0, i64 %142
  store double 0.000000e+00, ptr %143, align 8, !tbaa !11
  %144 = load i32, ptr %16, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([2 x [2000001 x double]], ptr @F, i64 0, i64 1), i64 0, i64 %145
  store double 0.000000e+00, ptr %146, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %140
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %19, align 4, !tbaa !5
  br label %136, !llvm.loop !16

150:                                              ; preds = %136
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %272, %150
  %152 = load i32, ptr %19, align 4, !tbaa !5
  %153 = load i32, ptr %17, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %275

155:                                              ; preds = %151
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %268, %155
  %157 = load i32, ptr %18, align 4, !tbaa !5
  %158 = load i32, ptr %16, align 4, !tbaa !5
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %160, label %271

160:                                              ; preds = %156
  %161 = load i32, ptr %18, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load i32, ptr %19, align 4, !tbaa !5
  %166 = srem i32 %165, 2
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %167
  %169 = load i32, ptr %18, align 4, !tbaa !5
  %170 = sub nsw i32 %169, 1
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2000001 x double], ptr %168, i64 0, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 1), i64 0, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = load i32, ptr %19, align 4, !tbaa !5
  %179 = srem i32 %178, 2
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %180
  %182 = load i32, ptr %18, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [2000001 x double], ptr %181, i64 0, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = fmul double %177, %185
  %187 = call double @llvm.fmuladd.f64(double %164, double %173, double %186)
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 2), i64 0, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = load i32, ptr %19, align 4, !tbaa !5
  %193 = srem i32 %192, 2
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %194
  %196 = load i32, ptr %18, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [2000001 x double], ptr %195, i64 0, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !11
  %201 = call double @llvm.fmuladd.f64(double %191, double %200, double %187)
  %202 = load double, ptr %12, align 8, !tbaa !11
  %203 = load i32, ptr %18, align 4, !tbaa !5
  %204 = sitofp i32 %203 to double
  %205 = load double, ptr %22, align 8, !tbaa !11
  %206 = fneg double %204
  %207 = call double @llvm.fmuladd.f64(double %206, double %205, double %202)
  %208 = fcmp ogt double %201, %207
  br i1 %208, label %209, label %251

209:                                              ; preds = %160
  %210 = load i32, ptr %18, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = load i32, ptr %19, align 4, !tbaa !5
  %215 = srem i32 %214, 2
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %216
  %218 = load i32, ptr %18, align 4, !tbaa !5
  %219 = sub nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [2000001 x double], ptr %217, i64 0, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = load i32, ptr %18, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 1), i64 0, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !11
  %227 = load i32, ptr %19, align 4, !tbaa !5
  %228 = srem i32 %227, 2
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %229
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [2000001 x double], ptr %230, i64 0, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = fmul double %226, %234
  %236 = call double @llvm.fmuladd.f64(double %213, double %222, double %235)
  %237 = load i32, ptr %18, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds ([3 x [2000001 x double]], ptr @C, i64 0, i64 2), i64 0, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = load i32, ptr %19, align 4, !tbaa !5
  %242 = srem i32 %241, 2
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %243
  %245 = load i32, ptr %18, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [2000001 x double], ptr %244, i64 0, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = call double @llvm.fmuladd.f64(double %240, double %249, double %236)
  br label %258

251:                                              ; preds = %160
  %252 = load double, ptr %12, align 8, !tbaa !11
  %253 = load i32, ptr %18, align 4, !tbaa !5
  %254 = sitofp i32 %253 to double
  %255 = load double, ptr %22, align 8, !tbaa !11
  %256 = fneg double %254
  %257 = call double @llvm.fmuladd.f64(double %256, double %255, double %252)
  br label %258

258:                                              ; preds = %251, %209
  %259 = phi double [ %250, %209 ], [ %257, %251 ]
  %260 = load i32, ptr %19, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  %262 = srem i32 %261, 2
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %263
  %265 = load i32, ptr %18, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [2000001 x double], ptr %264, i64 0, i64 %266
  store double %259, ptr %267, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %258
  %269 = load i32, ptr %18, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %18, align 4, !tbaa !5
  br label %156, !llvm.loop !17

271:                                              ; preds = %156
  br label %272

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

275:                                              ; preds = %151
  %276 = load i32, ptr %17, align 4, !tbaa !5
  %277 = srem i32 %276, 2
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %278
  %280 = load i32, ptr %16, align 4, !tbaa !5
  %281 = ashr i32 %280, 1
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [2000001 x double], ptr %279, i64 0, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !11
  store double %284, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

@C = external dso_local local_unnamed_addr global [3 x [2000001 x double]], align 16
@F = external dso_local local_unnamed_addr global [2 x [2000001 x double]], align 16

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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #1 {
vector.ph:
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %2 = uitofp <2 x i32> %vec.ind to <2 x double>
  %3 = fmul <2 x double> %2, <double 0x3F0A36D1BD1B9D4C, double 0x3F0A36D1BD1B9D4C>
  %4 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %2, <2 x double> <double 0x3FB70A3D70A3D70A, double 0x3FB70A3D70A3D70A>, <2 x double> <double -1.000000e-01, double -1.000000e-01>)
  %5 = fmul <2 x double> %3, %4
  %6 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %index
  store <2 x double> %5, ptr %6, align 16, !tbaa !5
  %7 = fmul <2 x double> %2, <double 0xBFB70A3D70A3D70A, double 0xBFB70A3D70A3D70A>
  %8 = fmul <2 x double> %7, %2
  %9 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %8, <2 x double> <double 1.000000e-04, double 1.000000e-04>, <2 x double> <double 1.000000e+00, double 1.000000e+00>)
  %10 = fmul <2 x double> %9, <double 0x3FEFFFEB07583583, double 0x3FEFFFEB07583583>
  %11 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 16000008), i64 0, i64 %index
  store <2 x double> %10, ptr %11, align 8, !tbaa !5
  %12 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %2, <2 x double> <double 0x3FB70A3D70A3D70A, double 0x3FB70A3D70A3D70A>, <2 x double> <double 1.000000e-01, double 1.000000e-01>)
  %13 = fmul <2 x double> %3, %12
  %14 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 32000016), i64 0, i64 %index
  store <2 x double> %13, ptr %14, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %15 = icmp eq i64 %index.next, 2000000
  br i1 %15, label %scalar.ph, label %vector.body, !llvm.loop !9

scalar.ph:                                        ; preds = %vector.body
  store double 0x41712A7C2007C846, ptr getelementptr inbounds (i8, ptr @C, i64 16000000), align 16, !tbaa !5
  store double 0xC1812A7CB80764A9, ptr getelementptr inbounds (i8, ptr @C, i64 32000008), align 8, !tbaa !5
  store double 0x41712A7D6006F690, ptr getelementptr inbounds (i8, ptr @C, i64 48000016), align 16, !tbaa !5
  br label %vector.body111

vector.body111:                                   ; preds = %scalar.ph, %vector.body111
  %index112 = phi i64 [ %index.next116, %vector.body111 ], [ 0, %scalar.ph ]
  %vec.ind113 = phi <2 x i32> [ %vec.ind.next115, %vector.body111 ], [ <i32 0, i32 1>, %scalar.ph ]
  %step.add = add <2 x i32> %vec.ind113, <i32 2, i32 2>
  %16 = uitofp <2 x i32> %vec.ind113 to <2 x double>
  %17 = uitofp <2 x i32> %step.add to <2 x double>
  %18 = fneg <2 x double> %16
  %19 = fneg <2 x double> %17
  %20 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %18, <2 x double> <double 1.000000e-04, double 1.000000e-04>, <2 x double> <double 9.500000e+01, double 9.500000e+01>)
  %21 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> <double 1.000000e-04, double 1.000000e-04>, <2 x double> <double 9.500000e+01, double 9.500000e+01>)
  %22 = fcmp olt <2 x double> %20, zeroinitializer
  %23 = fcmp olt <2 x double> %21, zeroinitializer
  %24 = select <2 x i1> %22, <2 x double> zeroinitializer, <2 x double> %20
  %25 = select <2 x i1> %23, <2 x double> zeroinitializer, <2 x double> %21
  %26 = getelementptr inbounds [2000001 x double], ptr @F, i64 0, i64 %index112
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <2 x double> %24, ptr %26, align 16, !tbaa !5
  store <2 x double> %25, ptr %27, align 16, !tbaa !5
  %index.next116 = add nuw i64 %index112, 4
  %vec.ind.next115 = add <2 x i32> %vec.ind113, <i32 4, i32 4>
  %28 = icmp eq i64 %index.next116, 2000000
  br i1 %28, label %.preheader90, label %vector.body111, !llvm.loop !13

.preheader90:                                     ; preds = %vector.body111
  store double 0.000000e+00, ptr getelementptr inbounds (i8, ptr @F, i64 16000000), align 16, !tbaa !5
  store <2 x double> <double 0.000000e+00, double 9.500000e+01>, ptr getelementptr inbounds (i8, ptr @F, i64 16000000), align 16, !tbaa !5
  store double 0.000000e+00, ptr getelementptr inbounds (i8, ptr @F, i64 32000008), align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader90, %.loopexit
  %.18594 = phi i32 [ %75, %.loopexit ], [ 0, %.preheader90 ]
  %29 = and i32 %.18594, 1
  %30 = zext nneg i32 %29 to i64
  %31 = xor i32 %29, 1
  %32 = zext nneg i32 %31 to i64
  %.phi.trans.insert = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %30, i64 0
  %.pre = load double, ptr %.phi.trans.insert, align 8, !tbaa !5
  %.phi.trans.insert105 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %30, i64 1
  %.pre106 = load double, ptr %.phi.trans.insert105, align 8, !tbaa !5
  %33 = and i32 %.18594, 1
  %34 = xor i32 %33, 1
  %narrow = mul nuw nsw i32 %34, 16000008
  %35 = zext nneg i32 %narrow to i64
  %36 = add nsw i64 %35, -8
  %37 = trunc i32 %.18594 to i1
  %.neg = select i1 %37, i64 -16000008, i64 0
  %38 = add nsw i64 %.neg, %36
  %diff.check = icmp ult i64 %38, 16
  br i1 %diff.check, label %scalar.ph118.preheader, label %vector.ph119

vector.ph119:                                     ; preds = %.preheader
  %vector.recur.init = insertelement <2 x double> poison, double %.pre106, i64 1
  %vector.recur.init123 = insertelement <2 x double> poison, double %.pre, i64 1
  br label %vector.body121

vector.body121:                                   ; preds = %vector.body121, %vector.ph119
  %index122 = phi i64 [ 0, %vector.ph119 ], [ %index.next131, %vector.body121 ]
  %vector.recur = phi <2 x double> [ %vector.recur.init, %vector.ph119 ], [ %wide.load130, %vector.body121 ]
  %vector.recur124 = phi <2 x double> [ %vector.recur.init123, %vector.ph119 ], [ %44, %vector.body121 ]
  %vec.ind125 = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph119 ], [ %vec.ind.next127, %vector.body121 ]
  %offset.idx = or disjoint i64 %index122, 1
  %39 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 16000008), i64 0, i64 %offset.idx
  %wide.load128 = load <2 x double>, ptr %40, align 16, !tbaa !5
  %41 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 32000016), i64 0, i64 %offset.idx
  %wide.load129 = load <2 x double>, ptr %41, align 8, !tbaa !5
  %42 = add nuw nsw i64 %index122, 2
  %43 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %30, i64 %42
  %wide.load130 = load <2 x double>, ptr %43, align 8, !tbaa !5
  %44 = shufflevector <2 x double> %vector.recur, <2 x double> %wide.load130, <2 x i32> <i32 1, i32 2>
  %45 = shufflevector <2 x double> %vector.recur124, <2 x double> %44, <2 x i32> <i32 1, i32 2>
  %46 = fmul <2 x double> %wide.load128, %44
  %47 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %45, <2 x double> %46)
  %48 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load129, <2 x double> %wide.load130, <2 x double> %47)
  %49 = uitofp <2 x i32> %vec.ind125 to <2 x double>
  %50 = fneg <2 x double> %49
  %51 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %50, <2 x double> <double 1.000000e-04, double 1.000000e-04>, <2 x double> <double 9.500000e+01, double 9.500000e+01>)
  %52 = fcmp ogt <2 x double> %48, %51
  %53 = select <2 x i1> %52, <2 x double> %48, <2 x double> %51
  %54 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %32, i64 %offset.idx
  store <2 x double> %53, ptr %54, align 8, !tbaa !5
  %index.next131 = add nuw i64 %index122, 2
  %vec.ind.next127 = add <2 x i32> %vec.ind125, <i32 2, i32 2>
  %55 = icmp eq i64 %index.next131, 1999998
  br i1 %55, label %middle.block117, label %vector.body121, !llvm.loop !14

middle.block117:                                  ; preds = %vector.body121
  %vector.recur.extract = extractelement <2 x double> %wide.load130, i64 1
  %vector.recur.extract132 = extractelement <2 x double> %wide.load130, i64 0
  br label %scalar.ph118.preheader

scalar.ph118.preheader:                           ; preds = %middle.block117, %.preheader
  %.ph = phi double [ %.pre106, %.preheader ], [ %vector.recur.extract, %middle.block117 ]
  %.ph135 = phi double [ %.pre, %.preheader ], [ %vector.recur.extract132, %middle.block117 ]
  %indvars.iv100.ph = phi i64 [ 1, %.preheader ], [ 1999999, %middle.block117 ]
  br label %scalar.ph118

scalar.ph118:                                     ; preds = %scalar.ph118.preheader, %scalar.ph118
  %56 = phi double [ %67, %scalar.ph118 ], [ %.ph, %scalar.ph118.preheader ]
  %57 = phi double [ %56, %scalar.ph118 ], [ %.ph135, %scalar.ph118.preheader ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %scalar.ph118 ], [ %indvars.iv100.ph, %scalar.ph118.preheader ]
  %58 = getelementptr inbounds [2000001 x double], ptr @C, i64 0, i64 %indvars.iv100
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 16000008), i64 0, i64 %indvars.iv100
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fmul double %61, %56
  %63 = tail call double @llvm.fmuladd.f64(double %59, double %57, double %62)
  %64 = getelementptr inbounds [2000001 x double], ptr getelementptr inbounds (i8, ptr @C, i64 32000016), i64 0, i64 %indvars.iv100
  %65 = load double, ptr %64, align 8, !tbaa !5
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %66 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %30, i64 %indvars.iv.next101
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = tail call double @llvm.fmuladd.f64(double %65, double %67, double %63)
  %69 = trunc nuw nsw i64 %indvars.iv100 to i32
  %70 = uitofp nneg i32 %69 to double
  %71 = fneg double %70
  %72 = tail call double @llvm.fmuladd.f64(double %71, double 1.000000e-04, double 9.500000e+01)
  %73 = fcmp ogt double %68, %72
  %. = select i1 %73, double %68, double %72
  %74 = getelementptr inbounds [2 x [2000001 x double]], ptr @F, i64 0, i64 %32, i64 %indvars.iv100
  store double %., ptr %74, align 8, !tbaa !5
  %exitcond103.not = icmp eq i64 %indvars.iv.next101, 2000000
  br i1 %exitcond103.not, label %.loopexit, label %scalar.ph118, !llvm.loop !15

.loopexit:                                        ; preds = %scalar.ph118
  %75 = add nuw nsw i32 %.18594, 1
  %exitcond104.not = icmp eq i32 %75, 10000
  br i1 %exitcond104.not, label %76, label %.preheader, !llvm.loop !16

76:                                               ; preds = %.loopexit
  ret i32 0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}


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