; LLVM IR from ROCm/aomp :: test/a+atest (stream)

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

@a = external hidden global [10000000 x double], align 16
@b = external hidden global [10000000 x double], align 16
@c = external hidden global [10000000 x double], align 16
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [64 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @checkSTREAMresults() #3 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store double 1.000000e+00, ptr %1, align 8, !tbaa !5
  store double 2.000000e+00, ptr %2, align 8, !tbaa !5
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %16 = load double, ptr %1, align 8, !tbaa !5
  %17 = fmul double 2.000000e+00, %16
  store double %17, ptr %1, align 8, !tbaa !5
  store double 3.000000e+00, ptr %4, align 8, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %33, %0
  %19 = load i32, ptr %13, align 4, !tbaa !9
  %20 = icmp slt i32 %19, 10
  br i1 %20, label %21, label %36

21:                                               ; preds = %18
  %22 = load double, ptr %1, align 8, !tbaa !5
  store double %22, ptr %3, align 8, !tbaa !5
  %23 = load double, ptr %4, align 8, !tbaa !5
  %24 = load double, ptr %3, align 8, !tbaa !5
  %25 = fmul double %23, %24
  store double %25, ptr %2, align 8, !tbaa !5
  %26 = load double, ptr %1, align 8, !tbaa !5
  %27 = load double, ptr %2, align 8, !tbaa !5
  %28 = fadd double %26, %27
  store double %28, ptr %3, align 8, !tbaa !5
  %29 = load double, ptr %2, align 8, !tbaa !5
  %30 = load double, ptr %4, align 8, !tbaa !5
  %31 = load double, ptr %3, align 8, !tbaa !5
  %32 = call double @llvm.fmuladd.f64(double %30, double %31, double %29)
  store double %32, ptr %1, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %21
  %34 = load i32, ptr %13, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %13, align 4, !tbaa !9
  br label %18, !llvm.loop !11

36:                                               ; preds = %18
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %37

37:                                               ; preds = %110, %36
  %38 = load i64, ptr %12, align 8, !tbaa !13
  %39 = icmp slt i64 %38, 10000000
  br i1 %39, label %40, label %113

40:                                               ; preds = %37
  %41 = load i64, ptr %12, align 8, !tbaa !13
  %42 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = load double, ptr %1, align 8, !tbaa !5
  %45 = fsub double %43, %44
  %46 = fcmp oge double %45, 0.000000e+00
  br i1 %46, label %47, label %53

47:                                               ; preds = %40
  %48 = load i64, ptr %12, align 8, !tbaa !13
  %49 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = load double, ptr %1, align 8, !tbaa !5
  %52 = fsub double %50, %51
  br label %60

53:                                               ; preds = %40
  %54 = load i64, ptr %12, align 8, !tbaa !13
  %55 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = load double, ptr %1, align 8, !tbaa !5
  %58 = fsub double %56, %57
  %59 = fneg double %58
  br label %60

60:                                               ; preds = %53, %47
  %61 = phi double [ %52, %47 ], [ %59, %53 ]
  %62 = load double, ptr %5, align 8, !tbaa !5
  %63 = fadd double %62, %61
  store double %63, ptr %5, align 8, !tbaa !5
  %64 = load i64, ptr %12, align 8, !tbaa !13
  %65 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = load double, ptr %2, align 8, !tbaa !5
  %68 = fsub double %66, %67
  %69 = fcmp oge double %68, 0.000000e+00
  br i1 %69, label %70, label %76

70:                                               ; preds = %60
  %71 = load i64, ptr %12, align 8, !tbaa !13
  %72 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = load double, ptr %2, align 8, !tbaa !5
  %75 = fsub double %73, %74
  br label %83

76:                                               ; preds = %60
  %77 = load i64, ptr %12, align 8, !tbaa !13
  %78 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = load double, ptr %2, align 8, !tbaa !5
  %81 = fsub double %79, %80
  %82 = fneg double %81
  br label %83

83:                                               ; preds = %76, %70
  %84 = phi double [ %75, %70 ], [ %82, %76 ]
  %85 = load double, ptr %6, align 8, !tbaa !5
  %86 = fadd double %85, %84
  store double %86, ptr %6, align 8, !tbaa !5
  %87 = load i64, ptr %12, align 8, !tbaa !13
  %88 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = load double, ptr %3, align 8, !tbaa !5
  %91 = fsub double %89, %90
  %92 = fcmp oge double %91, 0.000000e+00
  br i1 %92, label %93, label %99

93:                                               ; preds = %83
  %94 = load i64, ptr %12, align 8, !tbaa !13
  %95 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !5
  %97 = load double, ptr %3, align 8, !tbaa !5
  %98 = fsub double %96, %97
  br label %106

99:                                               ; preds = %83
  %100 = load i64, ptr %12, align 8, !tbaa !13
  %101 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = load double, ptr %3, align 8, !tbaa !5
  %104 = fsub double %102, %103
  %105 = fneg double %104
  br label %106

106:                                              ; preds = %99, %93
  %107 = phi double [ %98, %93 ], [ %105, %99 ]
  %108 = load double, ptr %7, align 8, !tbaa !5
  %109 = fadd double %108, %107
  store double %109, ptr %7, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %106
  %111 = load i64, ptr %12, align 8, !tbaa !13
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %12, align 8, !tbaa !13
  br label %37, !llvm.loop !15

113:                                              ; preds = %37
  %114 = load double, ptr %5, align 8, !tbaa !5
  %115 = fdiv double %114, 1.000000e+07
  store double %115, ptr %8, align 8, !tbaa !5
  %116 = load double, ptr %6, align 8, !tbaa !5
  %117 = fdiv double %116, 1.000000e+07
  store double %117, ptr %9, align 8, !tbaa !5
  %118 = load double, ptr %7, align 8, !tbaa !5
  %119 = fdiv double %118, 1.000000e+07
  store double %119, ptr %10, align 8, !tbaa !5
  store double 1.000000e-13, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  %120 = load double, ptr %8, align 8, !tbaa !5
  %121 = load double, ptr %1, align 8, !tbaa !5
  %122 = fdiv double %120, %121
  %123 = fcmp oge double %122, 0.000000e+00
  br i1 %123, label %124, label %128

124:                                              ; preds = %113
  %125 = load double, ptr %8, align 8, !tbaa !5
  %126 = load double, ptr %1, align 8, !tbaa !5
  %127 = fdiv double %125, %126
  br label %133

128:                                              ; preds = %113
  %129 = load double, ptr %8, align 8, !tbaa !5
  %130 = load double, ptr %1, align 8, !tbaa !5
  %131 = fdiv double %129, %130
  %132 = fneg double %131
  br label %133

133:                                              ; preds = %128, %124
  %134 = phi double [ %127, %124 ], [ %132, %128 ]
  %135 = load double, ptr %11, align 8, !tbaa !5
  %136 = fcmp ogt double %134, %135
  br i1 %136, label %137, label %196

137:                                              ; preds = %133
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load double, ptr %11, align 8, !tbaa !5
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %140)
  %142 = load double, ptr %1, align 8, !tbaa !5
  %143 = load double, ptr %8, align 8, !tbaa !5
  %144 = load double, ptr %8, align 8, !tbaa !5
  %145 = fcmp oge double %144, 0.000000e+00
  br i1 %145, label %146, label %148

146:                                              ; preds = %137
  %147 = load double, ptr %8, align 8, !tbaa !5
  br label %151

148:                                              ; preds = %137
  %149 = load double, ptr %8, align 8, !tbaa !5
  %150 = fneg double %149
  br label %151

151:                                              ; preds = %148, %146
  %152 = phi double [ %147, %146 ], [ %150, %148 ]
  %153 = load double, ptr %1, align 8, !tbaa !5
  %154 = fdiv double %152, %153
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %142, double noundef %143, double noundef %154)
  store i32 0, ptr %14, align 4, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %156

156:                                              ; preds = %190, %151
  %157 = load i64, ptr %12, align 8, !tbaa !13
  %158 = icmp slt i64 %157, 10000000
  br i1 %158, label %159, label %193

159:                                              ; preds = %156
  %160 = load i64, ptr %12, align 8, !tbaa !13
  %161 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = load double, ptr %1, align 8, !tbaa !5
  %164 = fdiv double %162, %163
  %165 = fsub double %164, 1.000000e+00
  %166 = fcmp oge double %165, 0.000000e+00
  br i1 %166, label %167, label %174

167:                                              ; preds = %159
  %168 = load i64, ptr %12, align 8, !tbaa !13
  %169 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !5
  %171 = load double, ptr %1, align 8, !tbaa !5
  %172 = fdiv double %170, %171
  %173 = fsub double %172, 1.000000e+00
  br label %182

174:                                              ; preds = %159
  %175 = load i64, ptr %12, align 8, !tbaa !13
  %176 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !5
  %178 = load double, ptr %1, align 8, !tbaa !5
  %179 = fdiv double %177, %178
  %180 = fsub double %179, 1.000000e+00
  %181 = fneg double %180
  br label %182

182:                                              ; preds = %174, %167
  %183 = phi double [ %173, %167 ], [ %181, %174 ]
  %184 = load double, ptr %11, align 8, !tbaa !5
  %185 = fcmp ogt double %183, %184
  br i1 %185, label %186, label %189

186:                                              ; preds = %182
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %14, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %186, %182
  br label %190

190:                                              ; preds = %189
  %191 = load i64, ptr %12, align 8, !tbaa !13
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %12, align 8, !tbaa !13
  br label %156, !llvm.loop !16

193:                                              ; preds = %156
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %194)
  br label %196

196:                                              ; preds = %193, %133
  %197 = load double, ptr %9, align 8, !tbaa !5
  %198 = load double, ptr %2, align 8, !tbaa !5
  %199 = fdiv double %197, %198
  %200 = fcmp oge double %199, 0.000000e+00
  br i1 %200, label %201, label %205

201:                                              ; preds = %196
  %202 = load double, ptr %9, align 8, !tbaa !5
  %203 = load double, ptr %2, align 8, !tbaa !5
  %204 = fdiv double %202, %203
  br label %210

205:                                              ; preds = %196
  %206 = load double, ptr %9, align 8, !tbaa !5
  %207 = load double, ptr %2, align 8, !tbaa !5
  %208 = fdiv double %206, %207
  %209 = fneg double %208
  br label %210

210:                                              ; preds = %205, %201
  %211 = phi double [ %204, %201 ], [ %209, %205 ]
  %212 = load double, ptr %11, align 8, !tbaa !5
  %213 = fcmp ogt double %211, %212
  br i1 %213, label %214, label %275

214:                                              ; preds = %210
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %15, align 4, !tbaa !9
  %217 = load double, ptr %11, align 8, !tbaa !5
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, double noundef %217)
  %219 = load double, ptr %2, align 8, !tbaa !5
  %220 = load double, ptr %9, align 8, !tbaa !5
  %221 = load double, ptr %9, align 8, !tbaa !5
  %222 = fcmp oge double %221, 0.000000e+00
  br i1 %222, label %223, label %225

223:                                              ; preds = %214
  %224 = load double, ptr %9, align 8, !tbaa !5
  br label %228

225:                                              ; preds = %214
  %226 = load double, ptr %9, align 8, !tbaa !5
  %227 = fneg double %226
  br label %228

228:                                              ; preds = %225, %223
  %229 = phi double [ %224, %223 ], [ %227, %225 ]
  %230 = load double, ptr %2, align 8, !tbaa !5
  %231 = fdiv double %229, %230
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %219, double noundef %220, double noundef %231)
  %233 = load double, ptr %11, align 8, !tbaa !5
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, double noundef %233)
  store i32 0, ptr %14, align 4, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %235

235:                                              ; preds = %269, %228
  %236 = load i64, ptr %12, align 8, !tbaa !13
  %237 = icmp slt i64 %236, 10000000
  br i1 %237, label %238, label %272

238:                                              ; preds = %235
  %239 = load i64, ptr %12, align 8, !tbaa !13
  %240 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !5
  %242 = load double, ptr %2, align 8, !tbaa !5
  %243 = fdiv double %241, %242
  %244 = fsub double %243, 1.000000e+00
  %245 = fcmp oge double %244, 0.000000e+00
  br i1 %245, label %246, label %253

246:                                              ; preds = %238
  %247 = load i64, ptr %12, align 8, !tbaa !13
  %248 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !5
  %250 = load double, ptr %2, align 8, !tbaa !5
  %251 = fdiv double %249, %250
  %252 = fsub double %251, 1.000000e+00
  br label %261

253:                                              ; preds = %238
  %254 = load i64, ptr %12, align 8, !tbaa !13
  %255 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !5
  %257 = load double, ptr %2, align 8, !tbaa !5
  %258 = fdiv double %256, %257
  %259 = fsub double %258, 1.000000e+00
  %260 = fneg double %259
  br label %261

261:                                              ; preds = %253, %246
  %262 = phi double [ %252, %246 ], [ %260, %253 ]
  %263 = load double, ptr %11, align 8, !tbaa !5
  %264 = fcmp ogt double %262, %263
  br i1 %264, label %265, label %268

265:                                              ; preds = %261
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %14, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %265, %261
  br label %269

269:                                              ; preds = %268
  %270 = load i64, ptr %12, align 8, !tbaa !13
  %271 = add nsw i64 %270, 1
  store i64 %271, ptr %12, align 8, !tbaa !13
  br label %235, !llvm.loop !17

272:                                              ; preds = %235
  %273 = load i32, ptr %14, align 4, !tbaa !9
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, i32 noundef %273)
  br label %275

275:                                              ; preds = %272, %210
  %276 = load double, ptr %10, align 8, !tbaa !5
  %277 = load double, ptr %3, align 8, !tbaa !5
  %278 = fdiv double %276, %277
  %279 = fcmp oge double %278, 0.000000e+00
  br i1 %279, label %280, label %284

280:                                              ; preds = %275
  %281 = load double, ptr %10, align 8, !tbaa !5
  %282 = load double, ptr %3, align 8, !tbaa !5
  %283 = fdiv double %281, %282
  br label %289

284:                                              ; preds = %275
  %285 = load double, ptr %10, align 8, !tbaa !5
  %286 = load double, ptr %3, align 8, !tbaa !5
  %287 = fdiv double %285, %286
  %288 = fneg double %287
  br label %289

289:                                              ; preds = %284, %280
  %290 = phi double [ %283, %280 ], [ %288, %284 ]
  %291 = load double, ptr %11, align 8, !tbaa !5
  %292 = fcmp ogt double %290, %291
  br i1 %292, label %293, label %354

293:                                              ; preds = %289
  %294 = load i32, ptr %15, align 4, !tbaa !9
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %15, align 4, !tbaa !9
  %296 = load double, ptr %11, align 8, !tbaa !5
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, double noundef %296)
  %298 = load double, ptr %3, align 8, !tbaa !5
  %299 = load double, ptr %10, align 8, !tbaa !5
  %300 = load double, ptr %10, align 8, !tbaa !5
  %301 = fcmp oge double %300, 0.000000e+00
  br i1 %301, label %302, label %304

302:                                              ; preds = %293
  %303 = load double, ptr %10, align 8, !tbaa !5
  br label %307

304:                                              ; preds = %293
  %305 = load double, ptr %10, align 8, !tbaa !5
  %306 = fneg double %305
  br label %307

307:                                              ; preds = %304, %302
  %308 = phi double [ %303, %302 ], [ %306, %304 ]
  %309 = load double, ptr %3, align 8, !tbaa !5
  %310 = fdiv double %308, %309
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %298, double noundef %299, double noundef %310)
  %312 = load double, ptr %11, align 8, !tbaa !5
  %313 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, double noundef %312)
  store i32 0, ptr %14, align 4, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %314

314:                                              ; preds = %348, %307
  %315 = load i64, ptr %12, align 8, !tbaa !13
  %316 = icmp slt i64 %315, 10000000
  br i1 %316, label %317, label %351

317:                                              ; preds = %314
  %318 = load i64, ptr %12, align 8, !tbaa !13
  %319 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !5
  %321 = load double, ptr %3, align 8, !tbaa !5
  %322 = fdiv double %320, %321
  %323 = fsub double %322, 1.000000e+00
  %324 = fcmp oge double %323, 0.000000e+00
  br i1 %324, label %325, label %332

325:                                              ; preds = %317
  %326 = load i64, ptr %12, align 8, !tbaa !13
  %327 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %326
  %328 = load double, ptr %327, align 8, !tbaa !5
  %329 = load double, ptr %3, align 8, !tbaa !5
  %330 = fdiv double %328, %329
  %331 = fsub double %330, 1.000000e+00
  br label %340

332:                                              ; preds = %317
  %333 = load i64, ptr %12, align 8, !tbaa !13
  %334 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !5
  %336 = load double, ptr %3, align 8, !tbaa !5
  %337 = fdiv double %335, %336
  %338 = fsub double %337, 1.000000e+00
  %339 = fneg double %338
  br label %340

340:                                              ; preds = %332, %325
  %341 = phi double [ %331, %325 ], [ %339, %332 ]
  %342 = load double, ptr %11, align 8, !tbaa !5
  %343 = fcmp ogt double %341, %342
  br i1 %343, label %344, label %347

344:                                              ; preds = %340
  %345 = load i32, ptr %14, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %14, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %344, %340
  br label %348

348:                                              ; preds = %347
  %349 = load i64, ptr %12, align 8, !tbaa !13
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %12, align 8, !tbaa !13
  br label %314, !llvm.loop !18

351:                                              ; preds = %314
  %352 = load i32, ptr %14, align 4, !tbaa !9
  %353 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %352)
  br label %354

354:                                              ; preds = %351, %289
  %355 = load i32, ptr %15, align 4, !tbaa !9
  %356 = icmp eq i32 %355, 0
  br i1 %356, label %357, label %360

357:                                              ; preds = %354
  %358 = load double, ptr %11, align 8, !tbaa !5
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, double noundef %358)
  br label %360

360:                                              ; preds = %357, %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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


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

@a = external hidden local_unnamed_addr global [10000000 x double], align 16
@b = external hidden local_unnamed_addr global [10000000 x double], align 16
@c = external hidden local_unnamed_addr global [10000000 x double], align 16
@.str.20 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [64 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @checkSTREAMresults() local_unnamed_addr #1 {
.preheader:
  br label %0

0:                                                ; preds = %.preheader, %0
  %.0122156 = phi i64 [ 0, %.preheader ], [ %20, %0 ]
  %.0131153 = phi double [ 0.000000e+00, %.preheader ], [ %10, %0 ]
  %1 = phi <2 x double> [ zeroinitializer, %.preheader ], [ %19, %0 ]
  %2 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %.0122156
  %3 = load double, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %.0122156
  %5 = load double, ptr %4, align 8, !tbaa !5
  %6 = fadd double %5, 0xC24ADA3555AD0000
  %7 = fcmp ult double %6, 0.000000e+00
  %8 = fneg double %6
  %9 = select i1 %7, double %8, double %6
  %10 = fadd double %.0131153, %9
  %11 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %.0122156
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = insertelement <2 x double> poison, double %3, i64 0
  %14 = insertelement <2 x double> %13, double %12, i64 1
  %15 = fadd <2 x double> %14, <double 0xC270C861558C2000, double 0xC251E6CE391E0000>
  %16 = fcmp ult <2 x double> %15, zeroinitializer
  %17 = fneg <2 x double> %15
  %18 = select <2 x i1> %16, <2 x double> %17, <2 x double> %15
  %19 = fadd <2 x double> %1, %18
  %20 = add nuw nsw i64 %.0122156, 1
  %exitcond.not = icmp eq i64 %20, 10000000
  br i1 %exitcond.not, label %21, label %0, !llvm.loop !9

21:                                               ; preds = %0
  %22 = extractelement <2 x double> %19, i64 0
  %23 = fdiv double %22, 1.000000e+07
  %24 = fdiv double %10, 1.000000e+07
  %25 = extractelement <2 x double> %19, i64 1
  %26 = fdiv double %25, 1.000000e+07
  %27 = fdiv double %23, 0x4270C861558C2000
  %28 = fcmp ult double %27, 0.000000e+00
  %29 = fneg double %27
  %30 = select i1 %28, double %29, double %27
  %31 = fcmp ule double %30, 1.000000e-13
  br i1 %31, label %59, label %vector.ph

vector.ph:                                        ; preds = %21
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, double noundef 1.000000e-13)
  %33 = fcmp oge double %23, 0.000000e+00
  %34 = fneg double %23
  %35 = select i1 %33, double %23, double %34
  %36 = fdiv double %35, 0x4270C861558C2000
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, double noundef 0x4270C861558C2000, double noundef %23, double noundef %36)
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %54, %vector.body ]
  %vec.phi180 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %55, %vector.body ]
  %38 = getelementptr inbounds [10000000 x double], ptr @a, i64 0, i64 %index
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %wide.load = load <2 x double>, ptr %38, align 16, !tbaa !5
  %wide.load181 = load <2 x double>, ptr %39, align 16, !tbaa !5
  %40 = fdiv <2 x double> %wide.load, <double 0x4270C861558C2000, double 0x4270C861558C2000>
  %41 = fdiv <2 x double> %wide.load181, <double 0x4270C861558C2000, double 0x4270C861558C2000>
  %42 = fadd <2 x double> %40, <double -1.000000e+00, double -1.000000e+00>
  %43 = fadd <2 x double> %41, <double -1.000000e+00, double -1.000000e+00>
  %44 = fcmp ult <2 x double> %42, zeroinitializer
  %45 = fcmp ult <2 x double> %43, zeroinitializer
  %46 = fneg <2 x double> %42
  %47 = fneg <2 x double> %43
  %48 = select <2 x i1> %44, <2 x double> %46, <2 x double> %42
  %49 = select <2 x i1> %45, <2 x double> %47, <2 x double> %43
  %50 = fcmp ogt <2 x double> %48, <double 1.000000e-13, double 1.000000e-13>
  %51 = fcmp ogt <2 x double> %49, <double 1.000000e-13, double 1.000000e-13>
  %52 = zext <2 x i1> %50 to <2 x i32>
  %53 = zext <2 x i1> %51 to <2 x i32>
  %54 = add <2 x i32> %vec.phi, %52
  %55 = add <2 x i32> %vec.phi180, %53
  %index.next = add nuw i64 %index, 4
  %56 = icmp eq i64 %index.next, 10000000
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i32> %55, %54
  %57 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %57)
  br label %59

59:                                               ; preds = %middle.block, %21
  %60 = fdiv double %24, 0x424ADA3555AD0000
  %61 = fcmp ult double %60, 0.000000e+00
  %62 = fneg double %60
  %63 = select i1 %61, double %62, double %60
  %64 = fcmp ogt double %63, 1.000000e-13
  br i1 %64, label %vector.ph184, label %98

vector.ph184:                                     ; preds = %59
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, double noundef 1.000000e-13)
  %66 = fcmp oge double %24, 0.000000e+00
  %67 = fneg double %24
  %68 = select i1 %66, double %24, double %67
  %69 = fdiv double %68, 0x424ADA3555AD0000
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, double noundef 0x424ADA3555AD0000, double noundef %24, double noundef %69)
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, double noundef 1.000000e-13)
  br label %vector.body186

vector.body186:                                   ; preds = %vector.body186, %vector.ph184
  %index187 = phi i64 [ 0, %vector.ph184 ], [ %index.next192, %vector.body186 ]
  %vec.phi188 = phi <2 x i32> [ zeroinitializer, %vector.ph184 ], [ %88, %vector.body186 ]
  %vec.phi189 = phi <2 x i32> [ zeroinitializer, %vector.ph184 ], [ %89, %vector.body186 ]
  %72 = getelementptr inbounds [10000000 x double], ptr @b, i64 0, i64 %index187
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %wide.load190 = load <2 x double>, ptr %72, align 16, !tbaa !5
  %wide.load191 = load <2 x double>, ptr %73, align 16, !tbaa !5
  %74 = fdiv <2 x double> %wide.load190, <double 0x424ADA3555AD0000, double 0x424ADA3555AD0000>
  %75 = fdiv <2 x double> %wide.load191, <double 0x424ADA3555AD0000, double 0x424ADA3555AD0000>
  %76 = fadd <2 x double> %74, <double -1.000000e+00, double -1.000000e+00>
  %77 = fadd <2 x double> %75, <double -1.000000e+00, double -1.000000e+00>
  %78 = fcmp ult <2 x double> %76, zeroinitializer
  %79 = fcmp ult <2 x double> %77, zeroinitializer
  %80 = fneg <2 x double> %76
  %81 = fneg <2 x double> %77
  %82 = select <2 x i1> %78, <2 x double> %80, <2 x double> %76
  %83 = select <2 x i1> %79, <2 x double> %81, <2 x double> %77
  %84 = fcmp ogt <2 x double> %82, <double 1.000000e-13, double 1.000000e-13>
  %85 = fcmp ogt <2 x double> %83, <double 1.000000e-13, double 1.000000e-13>
  %86 = zext <2 x i1> %84 to <2 x i32>
  %87 = zext <2 x i1> %85 to <2 x i32>
  %88 = add <2 x i32> %vec.phi188, %86
  %89 = add <2 x i32> %vec.phi189, %87
  %index.next192 = add nuw i64 %index187, 4
  %90 = icmp eq i64 %index.next192, 10000000
  br i1 %90, label %middle.block182, label %vector.body186, !llvm.loop !14

middle.block182:                                  ; preds = %vector.body186
  %bin.rdx193 = add <2 x i32> %89, %88
  %91 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx193)
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, i32 noundef %91)
  %93 = fdiv double %26, 0x4251E6CE391E0000
  %94 = fcmp ult double %93, 0.000000e+00
  %95 = fneg double %93
  %96 = select i1 %94, double %95, double %93
  %97 = fcmp ogt double %96, 1.000000e-13
  br i1 %97, label %vector.ph197, label %.thread174

98:                                               ; preds = %59
  %99 = fdiv double %26, 0x4251E6CE391E0000
  %100 = fcmp ult double %99, 0.000000e+00
  %101 = fneg double %99
  %102 = select i1 %100, double %101, double %99
  %103 = fcmp ogt double %102, 1.000000e-13
  br i1 %103, label %vector.ph197, label %132

vector.ph197:                                     ; preds = %middle.block182, %98
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, double noundef 1.000000e-13)
  %105 = fcmp oge double %26, 0.000000e+00
  %106 = fneg double %26
  %107 = select i1 %105, double %26, double %106
  %108 = fdiv double %107, 0x4251E6CE391E0000
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, double noundef 0x4251E6CE391E0000, double noundef %26, double noundef %108)
  %110 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, double noundef 1.000000e-13)
  br label %vector.body199

vector.body199:                                   ; preds = %vector.body199, %vector.ph197
  %index200 = phi i64 [ 0, %vector.ph197 ], [ %index.next205, %vector.body199 ]
  %vec.phi201 = phi <2 x i32> [ zeroinitializer, %vector.ph197 ], [ %127, %vector.body199 ]
  %vec.phi202 = phi <2 x i32> [ zeroinitializer, %vector.ph197 ], [ %128, %vector.body199 ]
  %111 = getelementptr inbounds [10000000 x double], ptr @c, i64 0, i64 %index200
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load203 = load <2 x double>, ptr %111, align 16, !tbaa !5
  %wide.load204 = load <2 x double>, ptr %112, align 16, !tbaa !5
  %113 = fdiv <2 x double> %wide.load203, <double 0x4251E6CE391E0000, double 0x4251E6CE391E0000>
  %114 = fdiv <2 x double> %wide.load204, <double 0x4251E6CE391E0000, double 0x4251E6CE391E0000>
  %115 = fadd <2 x double> %113, <double -1.000000e+00, double -1.000000e+00>
  %116 = fadd <2 x double> %114, <double -1.000000e+00, double -1.000000e+00>
  %117 = fcmp ult <2 x double> %115, zeroinitializer
  %118 = fcmp ult <2 x double> %116, zeroinitializer
  %119 = fneg <2 x double> %115
  %120 = fneg <2 x double> %116
  %121 = select <2 x i1> %117, <2 x double> %119, <2 x double> %115
  %122 = select <2 x i1> %118, <2 x double> %120, <2 x double> %116
  %123 = fcmp ogt <2 x double> %121, <double 1.000000e-13, double 1.000000e-13>
  %124 = fcmp ogt <2 x double> %122, <double 1.000000e-13, double 1.000000e-13>
  %125 = zext <2 x i1> %123 to <2 x i32>
  %126 = zext <2 x i1> %124 to <2 x i32>
  %127 = add <2 x i32> %vec.phi201, %125
  %128 = add <2 x i32> %vec.phi202, %126
  %index.next205 = add nuw i64 %index200, 4
  %129 = icmp eq i64 %index.next205, 10000000
  br i1 %129, label %middle.block195, label %vector.body199, !llvm.loop !15

middle.block195:                                  ; preds = %vector.body199
  %bin.rdx206 = add <2 x i32> %128, %127
  %130 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx206)
  %131 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i32 noundef %130)
  br label %.thread174

132:                                              ; preds = %98
  br i1 %31, label %133, label %.thread174

133:                                              ; preds = %132
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, double noundef 1.000000e-13)
  br label %.thread174

.thread174:                                       ; preds = %middle.block182, %middle.block195, %133, %132
  ret void
}

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

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


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