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

%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [95 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 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 ptr @framegen64_create(...) #1

declare ptr @framesync64_create(ptr noundef, ptr noundef) #1

declare i32 @framegen64_execute(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @framesync64_execute(ptr noundef, ptr noundef, i32 noundef) #1

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

declare void @liquid_autotest_passed(...) #1

declare i32 @framegen64_destroy(ptr noundef) #1

declare i32 @framesync64_destroy(ptr noundef) #1

; 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
declare dso_local void @framesync64_channel(ptr noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_framesync64_estimation() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct.framesyncstats_s, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [1440 x { float, float }], align 16
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %8 = call ptr (...) @framegen64_create()
  store ptr %8, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = call ptr @framesync64_create(ptr noundef @callback_framesync64_autotest_estimation, ptr noundef %2)
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 11520, ptr %4) #5
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = getelementptr inbounds [1440 x { float, float }], ptr %4, i64 0, i64 0
  %12 = call i32 @framegen64_execute(ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store float -4.300000e+01, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 2.500000e+01, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0x3F847AE140000000, ptr %7, align 4, !tbaa !9
  %13 = getelementptr inbounds [1440 x { float, float }], ptr %4, i64 0, i64 0
  %14 = load float, ptr %5, align 4, !tbaa !9
  %15 = load float, ptr %6, align 4, !tbaa !9
  %16 = load float, ptr %7, align 4, !tbaa !9
  call void @framesync64_channel(ptr noundef %13, float noundef %14, float noundef %15, float noundef %16)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds [1440 x { float, float }], ptr %4, i64 0, i64 0
  %19 = call i32 @framesync64_execute(ptr noundef %17, ptr noundef %18, i32 noundef 1440)
  %20 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !11
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %0
  %23 = call i32 @framesyncstats_print(ptr noundef %2)
  br label %24

24:                                               ; preds = %22, %0
  %25 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %26 = load float, ptr %25, align 4, !tbaa !13
  %27 = load float, ptr %5, align 4, !tbaa !9
  %28 = fsub float %26, %27
  %29 = fpext float %28 to double
  %30 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %31 = load float, ptr %30, align 4, !tbaa !13
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = fsub float %31, %32
  %34 = fpext float %33 to double
  %35 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %36 = load float, ptr %35, align 4, !tbaa !13
  %37 = load float, ptr %5, align 4, !tbaa !9
  %38 = fsub float %36, %37
  %39 = fpext float %38 to double
  %40 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !13
  %42 = load float, ptr %5, align 4, !tbaa !9
  %43 = fsub float %41, %42
  %44 = fpext float %43 to double
  %45 = call double @llvm.fmuladd.f64(double %29, double %34, double 0.000000e+00)
  %46 = call double @sqrt(double noundef %45) #5
  %47 = fcmp ogt double %46, 1.000000e+00
  br i1 %47, label %62, label %48

48:                                               ; preds = %24
  %49 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %50 = load float, ptr %49, align 4, !tbaa !13
  %51 = call i1 @llvm.is.fpclass.f32(float %50, i32 3)
  br i1 %51, label %62, label %52

52:                                               ; preds = %48
  %53 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !13
  %55 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %55, label %62, label %56

56:                                               ; preds = %52
  %57 = load float, ptr %5, align 4, !tbaa !9
  %58 = call i1 @llvm.is.fpclass.f32(float %57, i32 3)
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = load float, ptr %5, align 4, !tbaa !9
  %61 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %61, label %62, label %85

62:                                               ; preds = %59, %56, %52, %48, %24
  %63 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !13
  %65 = load float, ptr %5, align 4, !tbaa !9
  %66 = fsub float %64, %65
  %67 = fpext float %66 to double
  %68 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !13
  %70 = load float, ptr %5, align 4, !tbaa !9
  %71 = fsub float %69, %70
  %72 = fpext float %71 to double
  %73 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !13
  %75 = load float, ptr %5, align 4, !tbaa !9
  %76 = fsub float %74, %75
  %77 = fpext float %76 to double
  %78 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !13
  %80 = load float, ptr %5, align 4, !tbaa !9
  %81 = fsub float %79, %80
  %82 = fpext float %81 to double
  %83 = call double @llvm.fmuladd.f64(double %67, double %72, double 0.000000e+00)
  %84 = call double @sqrt(double noundef %83) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 313, ptr noundef @.str.39, double noundef %84, ptr noundef @.str.40, ptr noundef @.str.41, double noundef 1.000000e+00)
  br label %86

85:                                               ; preds = %59
  call void (...) @liquid_autotest_passed()
  br label %86

86:                                               ; preds = %85, %62
  %87 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %88 = load float, ptr %87, align 8, !tbaa !15
  %89 = fneg float %88
  %90 = load float, ptr %6, align 4, !tbaa !9
  %91 = fsub float %89, %90
  %92 = fpext float %91 to double
  %93 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %94 = load float, ptr %93, align 8, !tbaa !15
  %95 = fneg float %94
  %96 = load float, ptr %6, align 4, !tbaa !9
  %97 = fsub float %95, %96
  %98 = fpext float %97 to double
  %99 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %100 = load float, ptr %99, align 8, !tbaa !15
  %101 = fneg float %100
  %102 = load float, ptr %6, align 4, !tbaa !9
  %103 = fsub float %101, %102
  %104 = fpext float %103 to double
  %105 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %106 = load float, ptr %105, align 8, !tbaa !15
  %107 = fneg float %106
  %108 = load float, ptr %6, align 4, !tbaa !9
  %109 = fsub float %107, %108
  %110 = fpext float %109 to double
  %111 = call double @llvm.fmuladd.f64(double %92, double %98, double 0.000000e+00)
  %112 = call double @sqrt(double noundef %111) #5
  %113 = fcmp ogt double %112, 3.000000e+00
  br i1 %113, label %130, label %114

114:                                              ; preds = %86
  %115 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %116 = load float, ptr %115, align 8, !tbaa !15
  %117 = fneg float %116
  %118 = call i1 @llvm.is.fpclass.f32(float %117, i32 3)
  br i1 %118, label %130, label %119

119:                                              ; preds = %114
  %120 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %121 = load float, ptr %120, align 8, !tbaa !15
  %122 = fneg float %121
  %123 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %123, label %130, label %124

124:                                              ; preds = %119
  %125 = load float, ptr %6, align 4, !tbaa !9
  %126 = call i1 @llvm.is.fpclass.f32(float %125, i32 3)
  br i1 %126, label %130, label %127

127:                                              ; preds = %124
  %128 = load float, ptr %6, align 4, !tbaa !9
  %129 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %129, label %130, label %157

130:                                              ; preds = %127, %124, %119, %114, %86
  %131 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %132 = load float, ptr %131, align 8, !tbaa !15
  %133 = fneg float %132
  %134 = load float, ptr %6, align 4, !tbaa !9
  %135 = fsub float %133, %134
  %136 = fpext float %135 to double
  %137 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %138 = load float, ptr %137, align 8, !tbaa !15
  %139 = fneg float %138
  %140 = load float, ptr %6, align 4, !tbaa !9
  %141 = fsub float %139, %140
  %142 = fpext float %141 to double
  %143 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %144 = load float, ptr %143, align 8, !tbaa !15
  %145 = fneg float %144
  %146 = load float, ptr %6, align 4, !tbaa !9
  %147 = fsub float %145, %146
  %148 = fpext float %147 to double
  %149 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 0
  %150 = load float, ptr %149, align 8, !tbaa !15
  %151 = fneg float %150
  %152 = load float, ptr %6, align 4, !tbaa !9
  %153 = fsub float %151, %152
  %154 = fpext float %153 to double
  %155 = call double @llvm.fmuladd.f64(double %136, double %142, double 0.000000e+00)
  %156 = call double @sqrt(double noundef %155) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 314, ptr noundef @.str.42, double noundef %156, ptr noundef @.str.40, ptr noundef @.str.43, double noundef 3.000000e+00)
  br label %158

157:                                              ; preds = %127
  call void (...) @liquid_autotest_passed()
  br label %158

158:                                              ; preds = %157, %130
  %159 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %160 = load float, ptr %159, align 8, !tbaa !16
  %161 = load float, ptr %7, align 4, !tbaa !9
  %162 = fsub float %160, %161
  %163 = fpext float %162 to double
  %164 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %165 = load float, ptr %164, align 8, !tbaa !16
  %166 = load float, ptr %7, align 4, !tbaa !9
  %167 = fsub float %165, %166
  %168 = fpext float %167 to double
  %169 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %170 = load float, ptr %169, align 8, !tbaa !16
  %171 = load float, ptr %7, align 4, !tbaa !9
  %172 = fsub float %170, %171
  %173 = fpext float %172 to double
  %174 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %175 = load float, ptr %174, align 8, !tbaa !16
  %176 = load float, ptr %7, align 4, !tbaa !9
  %177 = fsub float %175, %176
  %178 = fpext float %177 to double
  %179 = call double @llvm.fmuladd.f64(double %163, double %168, double 0.000000e+00)
  %180 = call double @sqrt(double noundef %179) #5
  %181 = fcmp ogt double %180, 0x3F70624DE0000000
  br i1 %181, label %196, label %182

182:                                              ; preds = %158
  %183 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %184 = load float, ptr %183, align 8, !tbaa !16
  %185 = call i1 @llvm.is.fpclass.f32(float %184, i32 3)
  br i1 %185, label %196, label %186

186:                                              ; preds = %182
  %187 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %188 = load float, ptr %187, align 8, !tbaa !16
  %189 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %189, label %196, label %190

190:                                              ; preds = %186
  %191 = load float, ptr %7, align 4, !tbaa !9
  %192 = call i1 @llvm.is.fpclass.f32(float %191, i32 3)
  br i1 %192, label %196, label %193

193:                                              ; preds = %190
  %194 = load float, ptr %7, align 4, !tbaa !9
  %195 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %195, label %196, label %219

196:                                              ; preds = %193, %190, %186, %182, %158
  %197 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %198 = load float, ptr %197, align 8, !tbaa !16
  %199 = load float, ptr %7, align 4, !tbaa !9
  %200 = fsub float %198, %199
  %201 = fpext float %200 to double
  %202 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %203 = load float, ptr %202, align 8, !tbaa !16
  %204 = load float, ptr %7, align 4, !tbaa !9
  %205 = fsub float %203, %204
  %206 = fpext float %205 to double
  %207 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %208 = load float, ptr %207, align 8, !tbaa !16
  %209 = load float, ptr %7, align 4, !tbaa !9
  %210 = fsub float %208, %209
  %211 = fpext float %210 to double
  %212 = getelementptr inbounds %struct.framesyncstats_s, ptr %2, i32 0, i32 2
  %213 = load float, ptr %212, align 8, !tbaa !16
  %214 = load float, ptr %7, align 4, !tbaa !9
  %215 = fsub float %213, %214
  %216 = fpext float %215 to double
  %217 = call double @llvm.fmuladd.f64(double %201, double %206, double 0.000000e+00)
  %218 = call double @sqrt(double noundef %217) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 315, ptr noundef @.str.44, double noundef %218, ptr noundef @.str.40, ptr noundef @.str.45, double noundef 0x3F70624DE0000000)
  br label %220

219:                                              ; preds = %193
  call void (...) @liquid_autotest_passed()
  br label %220

220:                                              ; preds = %219, %196
  %221 = load ptr, ptr %1, align 8, !tbaa !5
  %222 = call i32 @framegen64_destroy(ptr noundef %221)
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = call i32 @framesync64_destroy(ptr noundef %223)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 11520, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @callback_framesync64_autotest_estimation(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.framesyncstats_s) align 8, ptr noundef) #2

declare i32 @framesyncstats_print(ptr noundef) #1

; 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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44}
!15 = !{!14, !10, i64 0}
!16 = !{!14, !10, i64 8}


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

%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [95 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 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

declare ptr @framegen64_create(...) local_unnamed_addr #1

declare ptr @framesync64_create(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @framegen64_execute(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @framesync64_execute(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

declare i32 @framegen64_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @framesync64_destroy(ptr noundef) local_unnamed_addr #1

; 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
declare dso_local void @framesync64_channel(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_framesync64_estimation() local_unnamed_addr #2 {
  %1 = alloca %struct.framesyncstats_s, align 8
  %2 = alloca [1440 x { float, float }], align 16
  %3 = tail call ptr (...) @framegen64_create() #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #5
  %4 = call ptr @framesync64_create(ptr noundef nonnull @callback_framesync64_autotest_estimation, ptr noundef nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 11520, ptr nonnull %2) #5
  %5 = call i32 @framegen64_execute(ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef nonnull %2) #5
  call void @framesync64_channel(ptr noundef nonnull %2, float noundef -4.300000e+01, float noundef 2.500000e+01, float noundef 0x3F847AE140000000)
  %6 = call i32 @framesync64_execute(ptr noundef %4, ptr noundef nonnull %2, i32 noundef 1440) #5
  %7 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %10, label %8

8:                                                ; preds = %0
  %9 = call i32 @framesyncstats_print(ptr noundef nonnull %1) #5
  br label %10

10:                                               ; preds = %8, %0
  %11 = getelementptr inbounds i8, ptr %1, i64 4
  %12 = load float, ptr %11, align 4
  %13 = fadd float %12, 4.300000e+01
  %14 = fpext float %13 to double
  %15 = call double @llvm.fmuladd.f64(double %14, double %14, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %15)
  %16 = fcmp ogt double %sqrt, 1.000000e+00
  %17 = fcmp uno float %12, 0.000000e+00
  %or.cond = select i1 %16, i1 true, i1 %17
  br i1 %or.cond, label %18, label %19

18:                                               ; preds = %10
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 313, ptr noundef nonnull @.str.39, double noundef %sqrt, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.41, double noundef 1.000000e+00) #5
  br label %20

19:                                               ; preds = %10
  call void (...) @liquid_autotest_passed() #5
  br label %20

20:                                               ; preds = %19, %18
  %21 = load float, ptr %1, align 8
  %22 = fsub float -2.500000e+01, %21
  %23 = fpext float %22 to double
  %24 = call double @llvm.fmuladd.f64(double %23, double %23, double 0.000000e+00)
  %sqrt43 = call double @llvm.sqrt.f64(double %24)
  %25 = fcmp ogt double %sqrt43, 3.000000e+00
  %26 = fcmp uno float %21, 0.000000e+00
  %or.cond39 = select i1 %25, i1 true, i1 %26
  br i1 %or.cond39, label %27, label %28

27:                                               ; preds = %20
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 314, ptr noundef nonnull @.str.42, double noundef %sqrt43, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.43, double noundef 3.000000e+00) #5
  br label %29

28:                                               ; preds = %20
  call void (...) @liquid_autotest_passed() #5
  br label %29

29:                                               ; preds = %28, %27
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load float, ptr %30, align 8
  %32 = fadd float %31, 0xBF847AE140000000
  %33 = fpext float %32 to double
  %34 = call double @llvm.fmuladd.f64(double %33, double %33, double 0.000000e+00)
  %sqrt45 = call double @llvm.sqrt.f64(double %34)
  %35 = fcmp ogt double %sqrt45, 0x3F70624DE0000000
  %36 = fcmp uno float %31, 0.000000e+00
  %or.cond41 = select i1 %35, i1 true, i1 %36
  br i1 %or.cond41, label %37, label %38

37:                                               ; preds = %29
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 315, ptr noundef nonnull @.str.44, double noundef %sqrt45, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.45, double noundef 0x3F70624DE0000000) #5
  br label %39

38:                                               ; preds = %29
  call void (...) @liquid_autotest_passed() #5
  br label %39

39:                                               ; preds = %38, %37
  %40 = call i32 @framegen64_destroy(ptr noundef %3) #5
  %41 = call i32 @framesync64_destroy(ptr noundef %4) #5
  call void @llvm.lifetime.end.p0(i64 11520, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @callback_framesync64_autotest_estimation(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.framesyncstats_s) align 8, ptr noundef) #2

declare i32 @framesyncstats_print(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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 double @llvm.sqrt.f64(double) #4

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass