; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (bsync_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"

@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_bsync_crcf_15.h = external hidden unnamed_addr constant [15 x float], align 16
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 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

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

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

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

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

declare void @liquid_autotest_passed(...) #4

; 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 @autotest_bsync_crcf_15() #5 {
  %1 = alloca [15 x float], align 16
  %2 = alloca float, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca { float, float }, align 4
  %6 = alloca { float, float }, align 4
  %7 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 60, ptr %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.autotest_bsync_crcf_15.h, i64 60, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store float 0x3F50624DE0000000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %8 = getelementptr inbounds [15 x float], ptr %1, i64 0, i64 0
  %9 = call ptr @bsync_crcf_create(i32 noundef 15, ptr noundef %8)
  store ptr %9, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %10

10:                                               ; preds = %23, %0
  %11 = load i32, ptr %4, align 4, !tbaa !11
  %12 = icmp ult i32 %11, 15
  br i1 %12, label %13, label %26

13:                                               ; preds = %10
  %14 = load ptr, ptr %3, align 8, !tbaa !9
  %15 = load i32, ptr %4, align 4, !tbaa !11
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds [15 x float], ptr %1, i64 0, i64 %16
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %20 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  store float %18, ptr %19, align 4
  store float 0.000000e+00, ptr %20, align 4
  %21 = load <2 x float>, ptr %6, align 4
  %22 = call i32 @bsync_crcf_correlate(ptr noundef %14, <2 x float> noundef %21, ptr noundef %5)
  br label %23

23:                                               ; preds = %13
  %24 = load i32, ptr %4, align 4, !tbaa !11
  %25 = add i32 %24, 1
  store i32 %25, ptr %4, align 4, !tbaa !11
  br label %10, !llvm.loop !13

26:                                               ; preds = %10
  %27 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %28 = load float, ptr %27, align 4
  %29 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %30 = load float, ptr %29, align 4
  %31 = fsub float %28, 1.000000e+00
  %32 = fpext float %31 to double
  %33 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %34 = load float, ptr %33, align 4
  %35 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %36 = load float, ptr %35, align 4
  %37 = fsub float %34, 1.000000e+00
  %38 = fpext float %37 to double
  %39 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %40 = load float, ptr %39, align 4
  %41 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %42 = load float, ptr %41, align 4
  %43 = fsub float %40, 1.000000e+00
  %44 = fpext float %43 to double
  %45 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %46 = load float, ptr %45, align 4
  %47 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %48 = load float, ptr %47, align 4
  %49 = fsub float %46, 1.000000e+00
  %50 = fpext float %49 to double
  %51 = call double @llvm.fmuladd.f64(double %32, double %38, double 0.000000e+00)
  %52 = call double @sqrt(double noundef %51) #6
  %53 = load float, ptr %2, align 4, !tbaa !5
  %54 = fpext float %53 to double
  %55 = fcmp ogt double %52, %54
  br i1 %55, label %72, label %56

56:                                               ; preds = %26
  %57 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %58 = load float, ptr %57, align 4
  %59 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %60 = load float, ptr %59, align 4
  %61 = call i1 @llvm.is.fpclass.f32(float %58, i32 3)
  br i1 %61, label %72, label %62

62:                                               ; preds = %56
  %63 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %66 = load float, ptr %65, align 4
  %67 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %67, label %72, label %68

68:                                               ; preds = %62
  %69 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %69, label %72, label %70

70:                                               ; preds = %68
  %71 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %71, label %72, label %101

72:                                               ; preds = %70, %68, %62, %56, %26
  %73 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %74 = load float, ptr %73, align 4
  %75 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %76 = load float, ptr %75, align 4
  %77 = fsub float %74, 1.000000e+00
  %78 = fpext float %77 to double
  %79 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %80 = load float, ptr %79, align 4
  %81 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %82 = load float, ptr %81, align 4
  %83 = fsub float %80, 1.000000e+00
  %84 = fpext float %83 to double
  %85 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %86 = load float, ptr %85, align 4
  %87 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %88 = load float, ptr %87, align 4
  %89 = fsub float %86, 1.000000e+00
  %90 = fpext float %89 to double
  %91 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %92 = load float, ptr %91, align 4
  %93 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %94 = load float, ptr %93, align 4
  %95 = fsub float %92, 1.000000e+00
  %96 = fpext float %95 to double
  %97 = call double @llvm.fmuladd.f64(double %78, double %84, double 0.000000e+00)
  %98 = call double @sqrt(double noundef %97) #6
  %99 = load float, ptr %2, align 4, !tbaa !5
  %100 = fpext float %99 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 95, ptr noundef @.str.5, double noundef %98, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %100)
  br label %102

101:                                              ; preds = %70
  call void (...) @liquid_autotest_passed()
  br label %102

102:                                              ; preds = %101, %72
  %103 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %104 = load float, ptr %103, align 4
  %105 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %106 = load float, ptr %105, align 4
  %107 = fsub float %106, 0xBFB1111120000000
  %108 = fpext float %107 to double
  %109 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %110 = load float, ptr %109, align 4
  %111 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %112 = load float, ptr %111, align 4
  %113 = fsub float %112, 0xBFB1111120000000
  %114 = fpext float %113 to double
  %115 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %116 = load float, ptr %115, align 4
  %117 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  %119 = fsub float %118, 0xBFB1111120000000
  %120 = fpext float %119 to double
  %121 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %122 = load float, ptr %121, align 4
  %123 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %124 = load float, ptr %123, align 4
  %125 = fsub float %124, 0xBFB1111120000000
  %126 = fpext float %125 to double
  %127 = call double @llvm.fmuladd.f64(double %108, double %114, double 0.000000e+00)
  %128 = call double @sqrt(double noundef %127) #6
  %129 = load float, ptr %2, align 4, !tbaa !5
  %130 = fpext float %129 to double
  %131 = fcmp ogt double %128, %130
  br i1 %131, label %148, label %132

132:                                              ; preds = %102
  %133 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %134 = load float, ptr %133, align 4
  %135 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %136 = load float, ptr %135, align 4
  %137 = call i1 @llvm.is.fpclass.f32(float %136, i32 3)
  br i1 %137, label %148, label %138

138:                                              ; preds = %132
  %139 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %140 = load float, ptr %139, align 4
  %141 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  %143 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %143, label %148, label %144

144:                                              ; preds = %138
  %145 = call i1 @llvm.is.fpclass.f32(float 0xBFB1111120000000, i32 3)
  br i1 %145, label %148, label %146

146:                                              ; preds = %144
  %147 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %147, label %148, label %177

148:                                              ; preds = %146, %144, %138, %132, %102
  %149 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %150 = load float, ptr %149, align 4
  %151 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %152 = load float, ptr %151, align 4
  %153 = fsub float %152, 0xBFB1111120000000
  %154 = fpext float %153 to double
  %155 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %156 = load float, ptr %155, align 4
  %157 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %158 = load float, ptr %157, align 4
  %159 = fsub float %158, 0xBFB1111120000000
  %160 = fpext float %159 to double
  %161 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %162 = load float, ptr %161, align 4
  %163 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %164 = load float, ptr %163, align 4
  %165 = fsub float %164, 0xBFB1111120000000
  %166 = fpext float %165 to double
  %167 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %168 = load float, ptr %167, align 4
  %169 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  %171 = fsub float %170, 0xBFB1111120000000
  %172 = fpext float %171 to double
  %173 = call double @llvm.fmuladd.f64(double %154, double %160, double 0.000000e+00)
  %174 = call double @sqrt(double noundef %173) #6
  %175 = load float, ptr %2, align 4, !tbaa !5
  %176 = fpext float %175 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 96, ptr noundef @.str.6, double noundef %174, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %176)
  br label %178

177:                                              ; preds = %146
  call void (...) @liquid_autotest_passed()
  br label %178

178:                                              ; preds = %177, %148
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %344, %178
  %180 = load i32, ptr %4, align 4, !tbaa !11
  %181 = icmp ult i32 %180, 14
  br i1 %181, label %182, label %347

182:                                              ; preds = %179
  %183 = load ptr, ptr %3, align 8, !tbaa !9
  %184 = load i32, ptr %4, align 4, !tbaa !11
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds [15 x float], ptr %1, i64 0, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !5
  %188 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %189 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float %187, ptr %188, align 4
  store float 0.000000e+00, ptr %189, align 4
  %190 = load <2 x float>, ptr %7, align 4
  %191 = call i32 @bsync_crcf_correlate(ptr noundef %183, <2 x float> noundef %190, ptr noundef %5)
  %192 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %193 = load float, ptr %192, align 4
  %194 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %195 = load float, ptr %194, align 4
  %196 = fsub float %193, 0xBFB1111120000000
  %197 = fpext float %196 to double
  %198 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %199 = load float, ptr %198, align 4
  %200 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %201 = load float, ptr %200, align 4
  %202 = fsub float %199, 0xBFB1111120000000
  %203 = fpext float %202 to double
  %204 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %205 = load float, ptr %204, align 4
  %206 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %207 = load float, ptr %206, align 4
  %208 = fsub float %205, 0xBFB1111120000000
  %209 = fpext float %208 to double
  %210 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %211 = load float, ptr %210, align 4
  %212 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = fsub float %211, 0xBFB1111120000000
  %215 = fpext float %214 to double
  %216 = call double @llvm.fmuladd.f64(double %197, double %203, double 0.000000e+00)
  %217 = call double @sqrt(double noundef %216) #6
  %218 = load float, ptr %2, align 4, !tbaa !5
  %219 = fpext float %218 to double
  %220 = fcmp ogt double %217, %219
  br i1 %220, label %237, label %221

221:                                              ; preds = %182
  %222 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %223 = load float, ptr %222, align 4
  %224 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %225 = load float, ptr %224, align 4
  %226 = call i1 @llvm.is.fpclass.f32(float %223, i32 3)
  br i1 %226, label %237, label %227

227:                                              ; preds = %221
  %228 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %229 = load float, ptr %228, align 4
  %230 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  %232 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %232, label %237, label %233

233:                                              ; preds = %227
  %234 = call i1 @llvm.is.fpclass.f32(float 0xBFB1111120000000, i32 3)
  br i1 %234, label %237, label %235

235:                                              ; preds = %233
  %236 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %236, label %237, label %266

237:                                              ; preds = %235, %233, %227, %221, %182
  %238 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %239 = load float, ptr %238, align 4
  %240 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %241 = load float, ptr %240, align 4
  %242 = fsub float %239, 0xBFB1111120000000
  %243 = fpext float %242 to double
  %244 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %245 = load float, ptr %244, align 4
  %246 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %247 = load float, ptr %246, align 4
  %248 = fsub float %245, 0xBFB1111120000000
  %249 = fpext float %248 to double
  %250 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %251 = load float, ptr %250, align 4
  %252 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %253 = load float, ptr %252, align 4
  %254 = fsub float %251, 0xBFB1111120000000
  %255 = fpext float %254 to double
  %256 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %257 = load float, ptr %256, align 4
  %258 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %259 = load float, ptr %258, align 4
  %260 = fsub float %257, 0xBFB1111120000000
  %261 = fpext float %260 to double
  %262 = call double @llvm.fmuladd.f64(double %243, double %249, double 0.000000e+00)
  %263 = call double @sqrt(double noundef %262) #6
  %264 = load float, ptr %2, align 4, !tbaa !5
  %265 = fpext float %264 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 101, ptr noundef @.str.7, double noundef %263, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %265)
  br label %267

266:                                              ; preds = %235
  call void (...) @liquid_autotest_passed()
  br label %267

267:                                              ; preds = %266, %237
  %268 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %269 = load float, ptr %268, align 4
  %270 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %271 = load float, ptr %270, align 4
  %272 = fsub float %271, 0xBFB1111120000000
  %273 = fpext float %272 to double
  %274 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %275 = load float, ptr %274, align 4
  %276 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %277 = load float, ptr %276, align 4
  %278 = fsub float %277, 0xBFB1111120000000
  %279 = fpext float %278 to double
  %280 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %281 = load float, ptr %280, align 4
  %282 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %283 = load float, ptr %282, align 4
  %284 = fsub float %283, 0xBFB1111120000000
  %285 = fpext float %284 to double
  %286 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %287 = load float, ptr %286, align 4
  %288 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %289 = load float, ptr %288, align 4
  %290 = fsub float %289, 0xBFB1111120000000
  %291 = fpext float %290 to double
  %292 = call double @llvm.fmuladd.f64(double %273, double %279, double 0.000000e+00)
  %293 = call double @sqrt(double noundef %292) #6
  %294 = load float, ptr %2, align 4, !tbaa !5
  %295 = fpext float %294 to double
  %296 = fcmp ogt double %293, %295
  br i1 %296, label %313, label %297

297:                                              ; preds = %267
  %298 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %299 = load float, ptr %298, align 4
  %300 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %301 = load float, ptr %300, align 4
  %302 = call i1 @llvm.is.fpclass.f32(float %301, i32 3)
  br i1 %302, label %313, label %303

303:                                              ; preds = %297
  %304 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %305 = load float, ptr %304, align 4
  %306 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %307 = load float, ptr %306, align 4
  %308 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %308, label %313, label %309

309:                                              ; preds = %303
  %310 = call i1 @llvm.is.fpclass.f32(float 0xBFB1111120000000, i32 3)
  br i1 %310, label %313, label %311

311:                                              ; preds = %309
  %312 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %312, label %313, label %342

313:                                              ; preds = %311, %309, %303, %297, %267
  %314 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %315 = load float, ptr %314, align 4
  %316 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %317 = load float, ptr %316, align 4
  %318 = fsub float %317, 0xBFB1111120000000
  %319 = fpext float %318 to double
  %320 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %321 = load float, ptr %320, align 4
  %322 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %323 = load float, ptr %322, align 4
  %324 = fsub float %323, 0xBFB1111120000000
  %325 = fpext float %324 to double
  %326 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %327 = load float, ptr %326, align 4
  %328 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %329 = load float, ptr %328, align 4
  %330 = fsub float %329, 0xBFB1111120000000
  %331 = fpext float %330 to double
  %332 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 0
  %333 = load float, ptr %332, align 4
  %334 = getelementptr inbounds { float, float }, ptr %5, i32 0, i32 1
  %335 = load float, ptr %334, align 4
  %336 = fsub float %335, 0xBFB1111120000000
  %337 = fpext float %336 to double
  %338 = call double @llvm.fmuladd.f64(double %319, double %325, double 0.000000e+00)
  %339 = call double @sqrt(double noundef %338) #6
  %340 = load float, ptr %2, align 4, !tbaa !5
  %341 = fpext float %340 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 102, ptr noundef @.str.6, double noundef %339, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %341)
  br label %343

342:                                              ; preds = %311
  call void (...) @liquid_autotest_passed()
  br label %343

343:                                              ; preds = %342, %313
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %4, align 4, !tbaa !11
  %346 = add i32 %345, 1
  store i32 %346, ptr %4, align 4, !tbaa !11
  br label %179, !llvm.loop !15

347:                                              ; preds = %179
  %348 = load ptr, ptr %3, align 8, !tbaa !9
  %349 = call i32 @bsync_crcf_destroy(ptr noundef %348)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr %1) #6
  ret void
}

declare ptr @bsync_crcf_create(i32 noundef, ptr noundef) #4

declare i32 @bsync_crcf_correlate(ptr noundef, <2 x float> noundef, ptr noundef) #4

declare i32 @bsync_crcf_destroy(ptr noundef) #4

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

@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@__const.autotest_bsync_crcf_15.h = external hidden unnamed_addr constant [15 x float], align 16
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: mustprogress 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 @autotest_bsync_crcf_15() local_unnamed_addr #4 {
  %1 = alloca [15 x float], align 16
  %2 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) %1, ptr noundef nonnull align 16 dereferenceable(60) @__const.autotest_bsync_crcf_15.h, i64 60, i1 false)
  %3 = call ptr @bsync_crcf_create(i32 noundef 15, ptr noundef nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %4 = load float, ptr %1, align 16, !tbaa !5
  %.sroa.02.4.vec.insert = insertelement <2 x float> <float poison, float 0.000000e+00>, float %4, i64 0
  %5 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert, ptr noundef nonnull %2) #6
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %7 = load float, ptr %6, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.1 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %7, i64 0
  %8 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.1, ptr noundef nonnull %2) #6
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load float, ptr %9, align 8, !tbaa !5
  %.sroa.02.4.vec.insert.2 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %10, i64 0
  %11 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.2, ptr noundef nonnull %2) #6
  %12 = getelementptr inbounds i8, ptr %1, i64 12
  %13 = load float, ptr %12, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.3 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %13, i64 0
  %14 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.3, ptr noundef nonnull %2) #6
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load float, ptr %15, align 16, !tbaa !5
  %.sroa.02.4.vec.insert.4 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %16, i64 0
  %17 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.4, ptr noundef nonnull %2) #6
  %18 = getelementptr inbounds i8, ptr %1, i64 20
  %19 = load float, ptr %18, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.5 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %19, i64 0
  %20 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.5, ptr noundef nonnull %2) #6
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load float, ptr %21, align 8, !tbaa !5
  %.sroa.02.4.vec.insert.6 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %22, i64 0
  %23 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.6, ptr noundef nonnull %2) #6
  %24 = getelementptr inbounds i8, ptr %1, i64 28
  %25 = load float, ptr %24, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.7 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %25, i64 0
  %26 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.7, ptr noundef nonnull %2) #6
  %27 = getelementptr inbounds i8, ptr %1, i64 32
  %28 = load float, ptr %27, align 16, !tbaa !5
  %.sroa.02.4.vec.insert.8 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %28, i64 0
  %29 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.8, ptr noundef nonnull %2) #6
  %30 = getelementptr inbounds i8, ptr %1, i64 36
  %31 = load float, ptr %30, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.9 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %31, i64 0
  %32 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.9, ptr noundef nonnull %2) #6
  %33 = getelementptr inbounds i8, ptr %1, i64 40
  %34 = load float, ptr %33, align 8, !tbaa !5
  %.sroa.02.4.vec.insert.10 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %34, i64 0
  %35 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.10, ptr noundef nonnull %2) #6
  %36 = getelementptr inbounds i8, ptr %1, i64 44
  %37 = load float, ptr %36, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.11 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %37, i64 0
  %38 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.11, ptr noundef nonnull %2) #6
  %39 = getelementptr inbounds i8, ptr %1, i64 48
  %40 = load float, ptr %39, align 16, !tbaa !5
  %.sroa.02.4.vec.insert.12 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %40, i64 0
  %41 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.12, ptr noundef nonnull %2) #6
  %42 = getelementptr inbounds i8, ptr %1, i64 52
  %43 = load float, ptr %42, align 4, !tbaa !5
  %.sroa.02.4.vec.insert.13 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %43, i64 0
  %44 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.13, ptr noundef nonnull %2) #6
  %45 = getelementptr inbounds i8, ptr %1, i64 56
  %46 = load float, ptr %45, align 8, !tbaa !5
  %.sroa.02.4.vec.insert.14 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %46, i64 0
  %47 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.02.4.vec.insert.14, ptr noundef nonnull %2) #6
  %48 = load float, ptr %2, align 4
  %49 = getelementptr inbounds i8, ptr %2, i64 4
  %50 = fadd float %48, -1.000000e+00
  %51 = fpext float %50 to double
  %52 = call double @llvm.fmuladd.f64(double %51, double %51, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %52)
  %53 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %54 = fcmp uno float %48, 0.000000e+00
  %or.cond = select i1 %53, i1 true, i1 %54
  br i1 %or.cond, label %55, label %56

55:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 95, ptr noundef nonnull @.str.5, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %57

56:                                               ; preds = %0
  call void (...) @liquid_autotest_passed() #6
  br label %57

57:                                               ; preds = %56, %55
  %58 = load float, ptr %49, align 4
  %59 = fadd float %58, 0x3FB1111120000000
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %60, double %60, double 0.000000e+00)
  %sqrt27 = call double @llvm.sqrt.f64(double %61)
  %62 = fcmp ogt double %sqrt27, 0x3F50624DE0000000
  %63 = fcmp uno float %58, 0.000000e+00
  %or.cond21 = select i1 %62, i1 true, i1 %63
  br i1 %or.cond21, label %64, label %65

64:                                               ; preds = %57
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 96, ptr noundef nonnull @.str.6, double noundef %sqrt27, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %.preheader

65:                                               ; preds = %57
  call void (...) @liquid_autotest_passed() #6
  br label %.preheader

.preheader:                                       ; preds = %65, %64
  br label %66

66:                                               ; preds = %.preheader, %87
  %indvars.iv = phi i64 [ %indvars.iv.next, %87 ], [ 0, %.preheader ]
  %67 = getelementptr inbounds [15 x float], ptr %1, i64 0, i64 %indvars.iv
  %68 = load float, ptr %67, align 4, !tbaa !5
  %.sroa.0.4.vec.insert = insertelement <2 x float> <float poison, float 0.000000e+00>, float %68, i64 0
  %69 = call i32 @bsync_crcf_correlate(ptr noundef %3, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %2) #6
  %70 = load float, ptr %2, align 4
  %71 = fadd float %70, 0x3FB1111120000000
  %72 = fpext float %71 to double
  %73 = call double @llvm.fmuladd.f64(double %72, double %72, double 0.000000e+00)
  %sqrt29 = call double @llvm.sqrt.f64(double %73)
  %74 = fcmp ogt double %sqrt29, 0x3F50624DE0000000
  %75 = fcmp uno float %70, 0.000000e+00
  %or.cond23 = select i1 %74, i1 true, i1 %75
  br i1 %or.cond23, label %76, label %77

76:                                               ; preds = %66
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 101, ptr noundef nonnull @.str.7, double noundef %sqrt29, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %78

77:                                               ; preds = %66
  call void (...) @liquid_autotest_passed() #6
  br label %78

78:                                               ; preds = %77, %76
  %79 = load float, ptr %49, align 4
  %80 = fadd float %79, 0x3FB1111120000000
  %81 = fpext float %80 to double
  %82 = call double @llvm.fmuladd.f64(double %81, double %81, double 0.000000e+00)
  %sqrt31 = call double @llvm.sqrt.f64(double %82)
  %83 = fcmp ogt double %sqrt31, 0x3F50624DE0000000
  %84 = fcmp uno float %79, 0.000000e+00
  %or.cond25 = select i1 %83, i1 true, i1 %84
  br i1 %or.cond25, label %85, label %86

85:                                               ; preds = %78
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 102, ptr noundef nonnull @.str.6, double noundef %sqrt31, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F50624DE0000000) #6
  br label %87

86:                                               ; preds = %78
  call void (...) @liquid_autotest_passed() #6
  br label %87

87:                                               ; preds = %85, %86
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 14
  br i1 %exitcond.not, label %88, label %66, !llvm.loop !9

88:                                               ; preds = %87
  %89 = call i32 @bsync_crcf_destroy(ptr noundef %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %1) #6
  ret void
}

declare ptr @bsync_crcf_create(i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @bsync_crcf_correlate(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #3

declare i32 @bsync_crcf_destroy(ptr noundef) local_unnamed_addr #3

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

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

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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