; LLVM IR from jgaeddert/liquid-dsp :: src/math/tests (polynomial_autotest)

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

@liquid_autotest_verbose = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@__const.autotest_polyf_expandroots2_3.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_expandroots2_3.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_expandroots2_3.c_test = external hidden unnamed_addr constant [4 x float], align 16
@.str.32 = external hidden unnamed_addr constant [9 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @printf(ptr noundef, ...) #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
declare double @sqrt(double noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #4

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #2

declare void @liquid_autotest_passed(...) #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_polyf_expandroots2_3() #5 {
  %1 = alloca i32, align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x float], align 16
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 3, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.autotest_polyf_expandroots2_3.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.autotest_polyf_expandroots2_3.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.autotest_polyf_expandroots2_3.c_test, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0x3F50624DE0000000, ptr %6, align 4, !tbaa !9
  %8 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %9 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %12 = call i32 @polyf_expandroots2(ptr noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef %11)
  %13 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %36

15:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = add i32 %16, 1
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %17)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %31, %15
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = add i32 %21, 1
  %23 = icmp ult i32 %20, %22
  br i1 %23, label %24, label %34

24:                                               ; preds = %19
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = fpext float %28 to double
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %29)
  br label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = add i32 %32, 1
  store i32 %33, ptr %7, align 4, !tbaa !5
  br label %19, !llvm.loop !11

34:                                               ; preds = %19
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %36

36:                                               ; preds = %34, %0
  %37 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %38 = load float, ptr %37, align 16, !tbaa !9
  %39 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %40 = load float, ptr %39, align 16, !tbaa !9
  %41 = fsub float %38, %40
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %44 = load float, ptr %43, align 16, !tbaa !9
  %45 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %46 = load float, ptr %45, align 16, !tbaa !9
  %47 = fsub float %44, %46
  %48 = fpext float %47 to double
  %49 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %50 = load float, ptr %49, align 16, !tbaa !9
  %51 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %52 = load float, ptr %51, align 16, !tbaa !9
  %53 = fsub float %50, %52
  %54 = fpext float %53 to double
  %55 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %56 = load float, ptr %55, align 16, !tbaa !9
  %57 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %58 = load float, ptr %57, align 16, !tbaa !9
  %59 = fsub float %56, %58
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %42, double %48, double 0.000000e+00)
  %62 = call double @sqrt(double noundef %61) #6
  %63 = load float, ptr %6, align 4, !tbaa !9
  %64 = fpext float %63 to double
  %65 = fcmp ogt double %62, %64
  br i1 %65, label %82, label %66

66:                                               ; preds = %36
  %67 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %68 = load float, ptr %67, align 16, !tbaa !9
  %69 = call i1 @llvm.is.fpclass.f32(float %68, i32 3)
  br i1 %69, label %82, label %70

70:                                               ; preds = %66
  %71 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %72 = load float, ptr %71, align 16, !tbaa !9
  %73 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %73, label %82, label %74

74:                                               ; preds = %70
  %75 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %76 = load float, ptr %75, align 16, !tbaa !9
  %77 = call i1 @llvm.is.fpclass.f32(float %76, i32 3)
  br i1 %77, label %82, label %78

78:                                               ; preds = %74
  %79 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %80 = load float, ptr %79, align 16, !tbaa !9
  %81 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %81, label %82, label %111

82:                                               ; preds = %78, %74, %70, %66, %36
  %83 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %84 = load float, ptr %83, align 16, !tbaa !9
  %85 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %86 = load float, ptr %85, align 16, !tbaa !9
  %87 = fsub float %84, %86
  %88 = fpext float %87 to double
  %89 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %90 = load float, ptr %89, align 16, !tbaa !9
  %91 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %92 = load float, ptr %91, align 16, !tbaa !9
  %93 = fsub float %90, %92
  %94 = fpext float %93 to double
  %95 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %96 = load float, ptr %95, align 16, !tbaa !9
  %97 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %98 = load float, ptr %97, align 16, !tbaa !9
  %99 = fsub float %96, %98
  %100 = fpext float %99 to double
  %101 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %102 = load float, ptr %101, align 16, !tbaa !9
  %103 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %104 = load float, ptr %103, align 16, !tbaa !9
  %105 = fsub float %102, %104
  %106 = fpext float %105 to double
  %107 = call double @llvm.fmuladd.f64(double %88, double %94, double 0.000000e+00)
  %108 = call double @sqrt(double noundef %107) #6
  %109 = load float, ptr %6, align 4, !tbaa !9
  %110 = fpext float %109 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 263, ptr noundef @.str.16, double noundef %108, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %110)
  br label %112

111:                                              ; preds = %78
  call void (...) @liquid_autotest_passed()
  br label %112

112:                                              ; preds = %111, %82
  %113 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %114 = load float, ptr %113, align 4, !tbaa !9
  %115 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %116 = load float, ptr %115, align 4, !tbaa !9
  %117 = fsub float %114, %116
  %118 = fpext float %117 to double
  %119 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %120 = load float, ptr %119, align 4, !tbaa !9
  %121 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = fsub float %120, %122
  %124 = fpext float %123 to double
  %125 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %128 = load float, ptr %127, align 4, !tbaa !9
  %129 = fsub float %126, %128
  %130 = fpext float %129 to double
  %131 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %132 = load float, ptr %131, align 4, !tbaa !9
  %133 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = fsub float %132, %134
  %136 = fpext float %135 to double
  %137 = call double @llvm.fmuladd.f64(double %118, double %124, double 0.000000e+00)
  %138 = call double @sqrt(double noundef %137) #6
  %139 = load float, ptr %6, align 4, !tbaa !9
  %140 = fpext float %139 to double
  %141 = fcmp ogt double %138, %140
  br i1 %141, label %158, label %142

142:                                              ; preds = %112
  %143 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %144 = load float, ptr %143, align 4, !tbaa !9
  %145 = call i1 @llvm.is.fpclass.f32(float %144, i32 3)
  br i1 %145, label %158, label %146

146:                                              ; preds = %142
  %147 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %148 = load float, ptr %147, align 4, !tbaa !9
  %149 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %149, label %158, label %150

150:                                              ; preds = %146
  %151 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %152 = load float, ptr %151, align 4, !tbaa !9
  %153 = call i1 @llvm.is.fpclass.f32(float %152, i32 3)
  br i1 %153, label %158, label %154

154:                                              ; preds = %150
  %155 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %156 = load float, ptr %155, align 4, !tbaa !9
  %157 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %157, label %158, label %187

158:                                              ; preds = %154, %150, %146, %142, %112
  %159 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %160 = load float, ptr %159, align 4, !tbaa !9
  %161 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %162 = load float, ptr %161, align 4, !tbaa !9
  %163 = fsub float %160, %162
  %164 = fpext float %163 to double
  %165 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %166 = load float, ptr %165, align 4, !tbaa !9
  %167 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %168 = load float, ptr %167, align 4, !tbaa !9
  %169 = fsub float %166, %168
  %170 = fpext float %169 to double
  %171 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %172 = load float, ptr %171, align 4, !tbaa !9
  %173 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %174 = load float, ptr %173, align 4, !tbaa !9
  %175 = fsub float %172, %174
  %176 = fpext float %175 to double
  %177 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %178 = load float, ptr %177, align 4, !tbaa !9
  %179 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %180 = load float, ptr %179, align 4, !tbaa !9
  %181 = fsub float %178, %180
  %182 = fpext float %181 to double
  %183 = call double @llvm.fmuladd.f64(double %164, double %170, double 0.000000e+00)
  %184 = call double @sqrt(double noundef %183) #6
  %185 = load float, ptr %6, align 4, !tbaa !9
  %186 = fpext float %185 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 264, ptr noundef @.str.17, double noundef %184, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %186)
  br label %188

187:                                              ; preds = %154
  call void (...) @liquid_autotest_passed()
  br label %188

188:                                              ; preds = %187, %158
  %189 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %190 = load float, ptr %189, align 8, !tbaa !9
  %191 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %192 = load float, ptr %191, align 8, !tbaa !9
  %193 = fsub float %190, %192
  %194 = fpext float %193 to double
  %195 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %196 = load float, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %198 = load float, ptr %197, align 8, !tbaa !9
  %199 = fsub float %196, %198
  %200 = fpext float %199 to double
  %201 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %202 = load float, ptr %201, align 8, !tbaa !9
  %203 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %204 = load float, ptr %203, align 8, !tbaa !9
  %205 = fsub float %202, %204
  %206 = fpext float %205 to double
  %207 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %208 = load float, ptr %207, align 8, !tbaa !9
  %209 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %210 = load float, ptr %209, align 8, !tbaa !9
  %211 = fsub float %208, %210
  %212 = fpext float %211 to double
  %213 = call double @llvm.fmuladd.f64(double %194, double %200, double 0.000000e+00)
  %214 = call double @sqrt(double noundef %213) #6
  %215 = load float, ptr %6, align 4, !tbaa !9
  %216 = fpext float %215 to double
  %217 = fcmp ogt double %214, %216
  br i1 %217, label %234, label %218

218:                                              ; preds = %188
  %219 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %220 = load float, ptr %219, align 8, !tbaa !9
  %221 = call i1 @llvm.is.fpclass.f32(float %220, i32 3)
  br i1 %221, label %234, label %222

222:                                              ; preds = %218
  %223 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %224 = load float, ptr %223, align 8, !tbaa !9
  %225 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %225, label %234, label %226

226:                                              ; preds = %222
  %227 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %228 = load float, ptr %227, align 8, !tbaa !9
  %229 = call i1 @llvm.is.fpclass.f32(float %228, i32 3)
  br i1 %229, label %234, label %230

230:                                              ; preds = %226
  %231 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %232 = load float, ptr %231, align 8, !tbaa !9
  %233 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %233, label %234, label %263

234:                                              ; preds = %230, %226, %222, %218, %188
  %235 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %236 = load float, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %238 = load float, ptr %237, align 8, !tbaa !9
  %239 = fsub float %236, %238
  %240 = fpext float %239 to double
  %241 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %242 = load float, ptr %241, align 8, !tbaa !9
  %243 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %244 = load float, ptr %243, align 8, !tbaa !9
  %245 = fsub float %242, %244
  %246 = fpext float %245 to double
  %247 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %248 = load float, ptr %247, align 8, !tbaa !9
  %249 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %250 = load float, ptr %249, align 8, !tbaa !9
  %251 = fsub float %248, %250
  %252 = fpext float %251 to double
  %253 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %254 = load float, ptr %253, align 8, !tbaa !9
  %255 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %256 = load float, ptr %255, align 8, !tbaa !9
  %257 = fsub float %254, %256
  %258 = fpext float %257 to double
  %259 = call double @llvm.fmuladd.f64(double %240, double %246, double 0.000000e+00)
  %260 = call double @sqrt(double noundef %259) #6
  %261 = load float, ptr %6, align 4, !tbaa !9
  %262 = fpext float %261 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 265, ptr noundef @.str.18, double noundef %260, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %262)
  br label %264

263:                                              ; preds = %230
  call void (...) @liquid_autotest_passed()
  br label %264

264:                                              ; preds = %263, %234
  %265 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %266 = load float, ptr %265, align 4, !tbaa !9
  %267 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %268 = load float, ptr %267, align 4, !tbaa !9
  %269 = fsub float %266, %268
  %270 = fpext float %269 to double
  %271 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %272 = load float, ptr %271, align 4, !tbaa !9
  %273 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %274 = load float, ptr %273, align 4, !tbaa !9
  %275 = fsub float %272, %274
  %276 = fpext float %275 to double
  %277 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %278 = load float, ptr %277, align 4, !tbaa !9
  %279 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %280 = load float, ptr %279, align 4, !tbaa !9
  %281 = fsub float %278, %280
  %282 = fpext float %281 to double
  %283 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %284 = load float, ptr %283, align 4, !tbaa !9
  %285 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %286 = load float, ptr %285, align 4, !tbaa !9
  %287 = fsub float %284, %286
  %288 = fpext float %287 to double
  %289 = call double @llvm.fmuladd.f64(double %270, double %276, double 0.000000e+00)
  %290 = call double @sqrt(double noundef %289) #6
  %291 = load float, ptr %6, align 4, !tbaa !9
  %292 = fpext float %291 to double
  %293 = fcmp ogt double %290, %292
  br i1 %293, label %310, label %294

294:                                              ; preds = %264
  %295 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %296 = load float, ptr %295, align 4, !tbaa !9
  %297 = call i1 @llvm.is.fpclass.f32(float %296, i32 3)
  br i1 %297, label %310, label %298

298:                                              ; preds = %294
  %299 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %300 = load float, ptr %299, align 4, !tbaa !9
  %301 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %301, label %310, label %302

302:                                              ; preds = %298
  %303 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %304 = load float, ptr %303, align 4, !tbaa !9
  %305 = call i1 @llvm.is.fpclass.f32(float %304, i32 3)
  br i1 %305, label %310, label %306

306:                                              ; preds = %302
  %307 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %308 = load float, ptr %307, align 4, !tbaa !9
  %309 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %309, label %310, label %339

310:                                              ; preds = %306, %302, %298, %294, %264
  %311 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %312 = load float, ptr %311, align 4, !tbaa !9
  %313 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %314 = load float, ptr %313, align 4, !tbaa !9
  %315 = fsub float %312, %314
  %316 = fpext float %315 to double
  %317 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %318 = load float, ptr %317, align 4, !tbaa !9
  %319 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %320 = load float, ptr %319, align 4, !tbaa !9
  %321 = fsub float %318, %320
  %322 = fpext float %321 to double
  %323 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %324 = load float, ptr %323, align 4, !tbaa !9
  %325 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %326 = load float, ptr %325, align 4, !tbaa !9
  %327 = fsub float %324, %326
  %328 = fpext float %327 to double
  %329 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %330 = load float, ptr %329, align 4, !tbaa !9
  %331 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %332 = load float, ptr %331, align 4, !tbaa !9
  %333 = fsub float %330, %332
  %334 = fpext float %333 to double
  %335 = call double @llvm.fmuladd.f64(double %316, double %322, double 0.000000e+00)
  %336 = call double @sqrt(double noundef %335) #6
  %337 = load float, ptr %6, align 4, !tbaa !9
  %338 = fpext float %337 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 266, ptr noundef @.str.19, double noundef %336, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %338)
  br label %340

339:                                              ; preds = %306
  call void (...) @liquid_autotest_passed()
  br label %340

340:                                              ; preds = %339, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

declare i32 @polyf_expandroots2(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 #6 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@__const.autotest_polyf_expandroots2_3.a = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_expandroots2_3.b = external hidden unnamed_addr constant [3 x float], align 4
@__const.autotest_polyf_expandroots2_3.c_test = external hidden unnamed_addr constant [4 x float], align 16
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #4

declare void @liquid_autotest_passed(...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @autotest_polyf_expandroots2_3() local_unnamed_addr #5 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_polyf_expandroots2_3.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.autotest_polyf_expandroots2_3.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %.sroa.0.0.copyload = load float, ptr @__const.autotest_polyf_expandroots2_3.c_test, align 16
  %.sroa.13.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_polyf_expandroots2_3.c_test, i64 4), align 4
  %.sroa.23.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_polyf_expandroots2_3.c_test, i64 8), align 8
  %.sroa.33.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.autotest_polyf_expandroots2_3.c_test, i64 12), align 4
  %4 = call i32 @polyf_expandroots2(ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 3, ptr noundef nonnull %3) #7
  %5 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %24, label %6

6:                                                ; preds = %0
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef 4)
  %8 = load float, ptr %3, align 16, !tbaa !9
  %9 = fpext float %8 to double
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %9)
  %11 = getelementptr inbounds i8, ptr %3, i64 4
  %12 = load float, ptr %11, align 4, !tbaa !9
  %13 = fpext float %12 to double
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %13)
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  %16 = load float, ptr %15, align 8, !tbaa !9
  %17 = fpext float %16 to double
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %17)
  %19 = getelementptr inbounds i8, ptr %3, i64 12
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = fpext float %20 to double
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %21)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  br label %24

24:                                               ; preds = %6, %0
  %25 = load float, ptr %3, align 16
  %26 = fsub float %25, %.sroa.0.0.copyload
  %27 = fpext float %26 to double
  %28 = call double @llvm.fmuladd.f64(double %27, double %27, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %28)
  %29 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %30 = fcmp uno float %25, 0.000000e+00
  %or.cond = select i1 %29, i1 true, i1 %30
  %31 = fcmp uno float %.sroa.0.0.copyload, 0.000000e+00
  %or.cond50 = select i1 %or.cond, i1 true, i1 %31
  br i1 %or.cond50, label %32, label %33

32:                                               ; preds = %24
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 263, ptr noundef nonnull @.str.16, double noundef %sqrt, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %34

33:                                               ; preds = %24
  call void (...) @liquid_autotest_passed() #7
  br label %34

34:                                               ; preds = %33, %32
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = load float, ptr %35, align 4
  %37 = fsub float %36, %.sroa.13.0.copyload
  %38 = fpext float %37 to double
  %39 = call double @llvm.fmuladd.f64(double %38, double %38, double 0.000000e+00)
  %sqrt61 = call double @llvm.sqrt.f64(double %39)
  %40 = fcmp ogt double %sqrt61, 0x3F50624DE0000000
  %41 = fcmp uno float %36, 0.000000e+00
  %or.cond52 = select i1 %40, i1 true, i1 %41
  %42 = fcmp uno float %.sroa.13.0.copyload, 0.000000e+00
  %or.cond53 = select i1 %or.cond52, i1 true, i1 %42
  br i1 %or.cond53, label %43, label %44

43:                                               ; preds = %34
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 264, ptr noundef nonnull @.str.17, double noundef %sqrt61, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %45

44:                                               ; preds = %34
  call void (...) @liquid_autotest_passed() #7
  br label %45

45:                                               ; preds = %44, %43
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  %47 = load float, ptr %46, align 8
  %48 = fsub float %47, %.sroa.23.0.copyload
  %49 = fpext float %48 to double
  %50 = call double @llvm.fmuladd.f64(double %49, double %49, double 0.000000e+00)
  %sqrt63 = call double @llvm.sqrt.f64(double %50)
  %51 = fcmp ogt double %sqrt63, 0x3F50624DE0000000
  %52 = fcmp uno float %47, 0.000000e+00
  %or.cond55 = select i1 %51, i1 true, i1 %52
  %53 = fcmp uno float %.sroa.23.0.copyload, 0.000000e+00
  %or.cond56 = select i1 %or.cond55, i1 true, i1 %53
  br i1 %or.cond56, label %54, label %55

54:                                               ; preds = %45
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 265, ptr noundef nonnull @.str.18, double noundef %sqrt63, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %56

55:                                               ; preds = %45
  call void (...) @liquid_autotest_passed() #7
  br label %56

56:                                               ; preds = %55, %54
  %57 = getelementptr inbounds i8, ptr %3, i64 12
  %58 = load float, ptr %57, align 4
  %59 = fsub float %58, %.sroa.33.0.copyload
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %60, double %60, double 0.000000e+00)
  %sqrt65 = call double @llvm.sqrt.f64(double %61)
  %62 = fcmp ogt double %sqrt65, 0x3F50624DE0000000
  %63 = fcmp uno float %58, 0.000000e+00
  %or.cond58 = select i1 %62, i1 true, i1 %63
  %64 = fcmp uno float %.sroa.33.0.copyload, 0.000000e+00
  %or.cond59 = select i1 %or.cond58, i1 true, i1 %64
  br i1 %or.cond59, label %65, label %66

65:                                               ; preds = %56
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 266, ptr noundef nonnull @.str.19, double noundef %sqrt65, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef 0x3F50624DE0000000) #7
  br label %67

66:                                               ; preds = %56
  call void (...) @liquid_autotest_passed() #7
  br label %67

67:                                               ; preds = %66, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #7
  ret void
}

declare i32 @polyf_expandroots2(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass