; LLVM IR from jgaeddert/liquid-dsp :: examples (qdsync_cccf_example)

; 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.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @callback(ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 80, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 2, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 7, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0x3FD3333340000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 7, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 0x3F847AE140000000, ptr %11, align 4, !tbaa !11
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = call ptr @llvm.stacksave.p0()
  store ptr %24, ptr %12, align 8
  %25 = alloca { float, float }, i64 %23, align 16
  store i64 %23, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %55, %2
  %27 = load i32, ptr %14, align 4, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %30, label %58

30:                                               ; preds = %26
  %31 = call i32 @rand() #6
  %32 = srem i32 %31, 2
  %33 = icmp ne i32 %32, 0
  %34 = zext i1 %33 to i64
  %35 = select i1 %33, float 1.000000e+00, float -1.000000e+00
  %36 = fpext float %35 to double
  %37 = fmul double %36, 0x3FE6A09E667F3BCD
  %38 = call i32 @rand() #6
  %39 = srem i32 %38, 2
  %40 = icmp ne i32 %39, 0
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, float 1.000000e+00, float -1.000000e+00
  %43 = fpext float %42 to double
  %44 = fmul double %43, 0x3FE6A09E667F3BCD
  %45 = fmul double %44, 0.000000e+00
  %46 = fmul double %44, 1.000000e+00
  %47 = fadd double %37, %45
  %48 = fptrunc double %47 to float
  %49 = fptrunc double %46 to float
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds { float, float }, ptr %25, i64 %51
  %53 = getelementptr inbounds { float, float }, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { float, float }, ptr %52, i32 0, i32 1
  store float %48, ptr %53, align 8
  store float %49, ptr %54, align 4
  br label %55

55:                                               ; preds = %30
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = add i32 %56, 1
  store i32 %57, ptr %14, align 4, !tbaa !5
  br label %26, !llvm.loop !13

58:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %59 = call noalias ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
  store ptr %59, ptr %15, align 8, !tbaa !9
  %60 = load ptr, ptr %15, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.4, ptr noundef @.str.2) #6
  %62 = load ptr, ptr %15, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = load float, ptr %9, align 4, !tbaa !11
  %69 = load ptr, ptr %15, align 8, !tbaa !9
  %70 = call ptr @qdsync_cccf_create_linear(ptr noundef %25, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, float noundef %68, ptr noundef @callback, ptr noundef %69)
  store ptr %70, ptr %16, align 8, !tbaa !9
  %71 = load ptr, ptr %16, align 8, !tbaa !9
  %72 = call i32 @qdsync_cccf_print(ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = load float, ptr %9, align 4, !tbaa !11
  %77 = call ptr @firinterp_crcf_create_prototype(i32 noundef %73, i32 noundef %74, i32 noundef %75, float noundef %76, float noundef 0.000000e+00)
  store ptr %77, ptr %17, align 8, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = alloca { float, float }, i64 %79, align 16
  store i64 %79, ptr %18, align 8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %157, %58
  %82 = load i32, ptr %14, align 4, !tbaa !5
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = mul i32 10, %83
  %85 = icmp ult i32 %82, %84
  br i1 %85, label %86, label %160

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %98

90:                                               ; preds = %86
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds { float, float }, ptr %25, i64 %92
  %94 = getelementptr inbounds { float, float }, ptr %93, i32 0, i32 0
  %95 = load float, ptr %94, align 8
  %96 = getelementptr inbounds { float, float }, ptr %93, i32 0, i32 1
  %97 = load float, ptr %96, align 4
  br label %104

98:                                               ; preds = %86
  %99 = call i32 @rand() #6
  %100 = and i32 %99, 1
  %101 = icmp ne i32 %100, 0
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, float 1.000000e+00, float -1.000000e+00
  br label %104

104:                                              ; preds = %98, %90
  %105 = phi float [ %95, %90 ], [ %103, %98 ]
  %106 = phi float [ %97, %90 ], [ 0.000000e+00, %98 ]
  %107 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %108 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %105, ptr %107, align 4
  store float %106, ptr %108, align 4
  %109 = load ptr, ptr %17, align 8, !tbaa !9
  %110 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %111 = load float, ptr %110, align 4
  %112 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %113 = load float, ptr %112, align 4
  %114 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %111, ptr %114, align 4
  store float %113, ptr %115, align 4
  %116 = load <2 x float>, ptr %20, align 4
  %117 = call i32 @firinterp_crcf_execute(ptr noundef %109, <2 x float> noundef %116, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %150, %104
  %119 = load i32, ptr %21, align 4, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %122, label %153

122:                                              ; preds = %118
  %123 = load float, ptr %11, align 4, !tbaa !11
  %124 = call float (...) @randnf()
  %125 = call float (...) @randnf()
  %126 = fmul float 0.000000e+00, %125
  %127 = fmul float 1.000000e+00, %125
  %128 = fadd float %124, %126
  %129 = fmul float %123, %128
  %130 = fmul float %123, %127
  %131 = fpext float %129 to double
  %132 = fpext float %130 to double
  %133 = fmul double %131, 0x3FE6A09E667F3BCD
  %134 = fmul double %132, 0x3FE6A09E667F3BCD
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds { float, float }, ptr %80, i64 %136
  %138 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 0
  %139 = load float, ptr %138, align 8
  %140 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 1
  %141 = load float, ptr %140, align 4
  %142 = fpext float %139 to double
  %143 = fpext float %141 to double
  %144 = fadd double %142, %133
  %145 = fadd double %143, %134
  %146 = fptrunc double %144 to float
  %147 = fptrunc double %145 to float
  %148 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 0
  %149 = getelementptr inbounds { float, float }, ptr %137, i32 0, i32 1
  store float %146, ptr %148, align 8
  store float %147, ptr %149, align 4
  br label %150

150:                                              ; preds = %122
  %151 = load i32, ptr %21, align 4, !tbaa !5
  %152 = add i32 %151, 1
  store i32 %152, ptr %21, align 4, !tbaa !5
  br label %118, !llvm.loop !15

153:                                              ; preds = %118
  %154 = load ptr, ptr %16, align 8, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = call i32 @qdsync_cccf_execute(ptr noundef %154, ptr noundef %80, i32 noundef %155)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %157

157:                                              ; preds = %153
  %158 = load i32, ptr %14, align 4, !tbaa !5
  %159 = add i32 %158, 1
  store i32 %159, ptr %14, align 4, !tbaa !5
  br label %81, !llvm.loop !16

160:                                              ; preds = %81
  %161 = load ptr, ptr %16, align 8, !tbaa !9
  %162 = call i32 @qdsync_cccf_destroy(ptr noundef %161)
  %163 = load ptr, ptr %17, align 8, !tbaa !9
  %164 = call i32 @firinterp_crcf_destroy(ptr noundef %163)
  %165 = load ptr, ptr %15, align 8, !tbaa !9
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.6, i32 noundef %166) #6
  %168 = load ptr, ptr %15, align 8, !tbaa !9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.7) #6
  %170 = load ptr, ptr %15, align 8, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.8) #6
  %172 = load ptr, ptr %15, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.9) #6
  %174 = load ptr, ptr %15, align 8, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.10) #6
  %176 = load ptr, ptr %15, align 8, !tbaa !9
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.11) #6
  %178 = load ptr, ptr %15, align 8, !tbaa !9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.12) #6
  %180 = load ptr, ptr %15, align 8, !tbaa !9
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.13) #6
  %182 = load ptr, ptr %15, align 8, !tbaa !9
  %183 = call i32 @fclose(ptr noundef %182)
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef @.str.2)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %185 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %185)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %186 = load i32, ptr %3, align 4
  ret i32 %186
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: nounwind
declare i32 @rand() #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare ptr @qdsync_cccf_create_linear(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) #1

declare i32 @qdsync_cccf_print(ptr noundef) #1

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #1

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) #1

declare float @randnf(...) #1

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

declare i32 @qdsync_cccf_destroy(ptr noundef) #1

declare i32 @firinterp_crcf_destroy(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 willreturn }
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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @callback(ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 {
  %3 = alloca [80 x { float, float }], align 16
  br label %4

4:                                                ; preds = %2, %4
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %4 ]
  %5 = tail call i32 @rand() #6
  %6 = and i32 %5, 1
  %.not49 = icmp eq i32 %6, 0
  %7 = select i1 %.not49, double 0xBFE6A09E667F3BCD, double 0x3FE6A09E667F3BCD
  %8 = tail call i32 @rand() #6
  %9 = and i32 %8, 1
  %.not50 = icmp eq i32 %9, 0
  %10 = select i1 %.not50, double 0xBFE6A09E667F3BCD, double 0x3FE6A09E667F3BCD
  %11 = tail call double @llvm.copysign.f64(double 0.000000e+00, double %10)
  %12 = fadd double %7, %11
  %13 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  %14 = insertelement <2 x double> poison, double %12, i64 0
  %15 = insertelement <2 x double> %14, double %10, i64 1
  %16 = fptrunc <2 x double> %15 to <2 x float>
  store <2 x float> %16, ptr %13, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 80
  br i1 %exitcond.not, label %17, label %4, !llvm.loop !5

17:                                               ; preds = %4
  %18 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3)
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2) #6
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.5) #6
  %21 = call ptr @qdsync_cccf_create_linear(ptr noundef nonnull %3, i32 noundef 80, i32 noundef 7, i32 noundef 2, i32 noundef 7, float noundef 0x3FD3333340000000, ptr noundef nonnull @callback, ptr noundef %18) #6
  %22 = call i32 @qdsync_cccf_print(ptr noundef %21) #6
  %23 = call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef 2, i32 noundef 7, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #6
  %24 = alloca [2 x { float, float }], align 16
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  br label %26

26:                                               ; preds = %17, %36
  %indvars.iv58 = phi i64 [ 0, %17 ], [ %indvars.iv.next59, %36 ]
  %27 = icmp ult i64 %indvars.iv58, 80
  br i1 %27, label %28, label %31

28:                                               ; preds = %26
  %29 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv58
  %30 = load <2 x float>, ptr %29, align 8
  br label %36

31:                                               ; preds = %26
  %32 = call i32 @rand() #6
  %33 = and i32 %32, 1
  %.not = icmp eq i32 %33, 0
  %34 = select i1 %.not, float -1.000000e+00, float 1.000000e+00
  %35 = insertelement <2 x float> <float poison, float 0.000000e+00>, float %34, i64 0
  br label %36

36:                                               ; preds = %31, %28
  %37 = phi <2 x float> [ %30, %28 ], [ %35, %31 ]
  %38 = call i32 @firinterp_crcf_execute(ptr noundef %23, <2 x float> noundef %37, ptr noundef nonnull %24) #6
  %39 = call float (...) @randnf() #6
  %40 = call float (...) @randnf() #6
  %41 = fmul float %40, 0.000000e+00
  %42 = fadd float %39, %41
  %43 = insertelement <2 x float> poison, float %42, i64 0
  %44 = insertelement <2 x float> %43, float %40, i64 1
  %45 = fmul <2 x float> %44, <float 0x3F847AE140000000, float 0x3F847AE140000000>
  %46 = fpext <2 x float> %45 to <2 x double>
  %47 = fmul <2 x double> %46, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %48 = load <2 x float>, ptr %24, align 16
  %49 = fpext <2 x float> %48 to <2 x double>
  %50 = fadd <2 x double> %47, %49
  %51 = fptrunc <2 x double> %50 to <2 x float>
  store <2 x float> %51, ptr %24, align 16
  %52 = call float (...) @randnf() #6
  %53 = call float (...) @randnf() #6
  %54 = fmul float %53, 0.000000e+00
  %55 = fadd float %52, %54
  %56 = insertelement <2 x float> poison, float %55, i64 0
  %57 = insertelement <2 x float> %56, float %53, i64 1
  %58 = fmul <2 x float> %57, <float 0x3F847AE140000000, float 0x3F847AE140000000>
  %59 = fpext <2 x float> %58 to <2 x double>
  %60 = fmul <2 x double> %59, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %61 = load <2 x float>, ptr %25, align 8
  %62 = fpext <2 x float> %61 to <2 x double>
  %63 = fadd <2 x double> %60, %62
  %64 = fptrunc <2 x double> %63 to <2 x float>
  store <2 x float> %64, ptr %25, align 8
  %65 = call i32 @qdsync_cccf_execute(ptr noundef %21, ptr noundef nonnull %24, i32 noundef 2) #6
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next59, 800
  br i1 %exitcond61.not, label %66, label %26, !llvm.loop !7

66:                                               ; preds = %36
  %67 = call i32 @qdsync_cccf_destroy(ptr noundef %21) #6
  %68 = call i32 @firinterp_crcf_destroy(ptr noundef %23) #6
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.6, i32 noundef 80) #6
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.7) #6
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.8) #6
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.9) #6
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.10) #6
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.11) #6
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.12) #6
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.13) #6
  %77 = call i32 @fclose(ptr noundef %18)
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull @.str.2)
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

declare ptr @qdsync_cccf_create_linear(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @qdsync_cccf_print(ptr noundef) local_unnamed_addr #4

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #4

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

declare float @randnf(...) local_unnamed_addr #4

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

declare i32 @qdsync_cccf_destroy(ptr noundef) local_unnamed_addr #4

declare i32 @firinterp_crcf_destroy(ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass