; LLVM IR from jgaeddert/liquid-dsp :: examples (pll_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 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca float, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca float, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store float 0x3FE99999A0000000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 0x3F847AE140000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0x3FA99999A0000000, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store float 0x3FE69FBE80000000, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 1.000000e+03, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 256, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = udiv i32 %27, 32
  store i32 %28, ptr %8, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = call ptr @llvm.stacksave.p0()
  store ptr %31, ptr %9, align 8
  %32 = alloca float, i64 %30, align 16
  store i64 %30, ptr %10, align 8
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = alloca { float, float }, i64 %34, align 16
  store i64 %34, ptr %11, align 8
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = alloca float, i64 %37, align 16
  store i64 %37, ptr %12, align 8
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = alloca { float, float }, i64 %40, align 16
  store i64 %40, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %42 = load float, ptr %4, align 4, !tbaa !5
  %43 = load float, ptr %5, align 4, !tbaa !5
  %44 = load float, ptr %6, align 4, !tbaa !5
  %45 = call ptr @iirfilt_rrrf_create_pll(float noundef %42, float noundef %43, float noundef %44)
  store ptr %45, ptr %14, align 8, !tbaa !11
  %46 = load ptr, ptr %14, align 8, !tbaa !11
  %47 = call i32 @iirfilt_rrrf_print(ptr noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %48 = load float, ptr %2, align 4, !tbaa !5
  store float %48, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %49 = load float, ptr %3, align 4, !tbaa !5
  store float %49, ptr %17, align 4, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %81, %0
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %84

54:                                               ; preds = %50
  %55 = load float, ptr %16, align 4, !tbaa !5
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %32, i64 %57
  store float %55, ptr %58, align 4, !tbaa !5
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %32, i64 %60
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = fmul float 0.000000e+00, %62
  %64 = fmul float 1.000000e+00, %62
  %65 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %66 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %63, ptr %65, align 4
  store float %64, ptr %66, align 4
  %67 = load <2 x float>, ptr %18, align 4
  %68 = call <2 x float> @cexpf(<2 x float> noundef %67) #5
  store <2 x float> %68, ptr %19, align 4
  %69 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %70 = load float, ptr %69, align 4
  %71 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %72 = load float, ptr %71, align 4
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds { float, float }, ptr %35, i64 %74
  %76 = getelementptr inbounds { float, float }, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds { float, float }, ptr %75, i32 0, i32 1
  store float %70, ptr %76, align 8
  store float %72, ptr %77, align 4
  %78 = load float, ptr %17, align 4, !tbaa !5
  %79 = load float, ptr %16, align 4, !tbaa !5
  %80 = fadd float %79, %78
  store float %80, ptr %16, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %54
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %15, align 4, !tbaa !9
  br label %50, !llvm.loop !13

84:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store float 0.000000e+00, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %160, %84
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = icmp ult i32 %86, %87
  br i1 %88, label %89, label %163

89:                                               ; preds = %85
  %90 = load float, ptr %20, align 4, !tbaa !5
  %91 = fmul float 0.000000e+00, %90
  %92 = fmul float 1.000000e+00, %90
  %93 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %94 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %91, ptr %93, align 4
  store float %92, ptr %94, align 4
  %95 = load <2 x float>, ptr %21, align 4
  %96 = call <2 x float> @cexpf(<2 x float> noundef %95) #5
  store <2 x float> %96, ptr %22, align 4
  %97 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %98 = load float, ptr %97, align 4
  %99 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  %100 = load float, ptr %99, align 4
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds { float, float }, ptr %41, i64 %102
  %104 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { float, float }, ptr %103, i32 0, i32 1
  store float %98, ptr %104, align 8
  store float %100, ptr %105, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds { float, float }, ptr %35, i64 %107
  %109 = getelementptr inbounds { float, float }, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 8
  %111 = getelementptr inbounds { float, float }, ptr %108, i32 0, i32 1
  %112 = load float, ptr %111, align 4
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds { float, float }, ptr %41, i64 %114
  %116 = getelementptr inbounds { float, float }, ptr %115, i32 0, i32 0
  %117 = load float, ptr %116, align 8
  %118 = getelementptr inbounds { float, float }, ptr %115, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = fneg float %119
  %121 = fmul float %110, %117
  %122 = fmul float %112, %120
  %123 = fmul float %110, %120
  %124 = fmul float %112, %117
  %125 = fsub float %121, %122
  %126 = fadd float %123, %124
  %127 = fcmp uno float %125, %125
  br i1 %127, label %128, label %136, !prof !15

128:                                              ; preds = %89
  %129 = fcmp uno float %126, %126
  br i1 %129, label %130, label %136, !prof !15

130:                                              ; preds = %128
  %131 = call <2 x float> @__mulsc3(float noundef %110, float noundef %112, float noundef %117, float noundef %120) #5
  store <2 x float> %131, ptr %24, align 4
  %132 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %133 = load float, ptr %132, align 4
  %134 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  %135 = load float, ptr %134, align 4
  br label %136

136:                                              ; preds = %130, %128, %89
  %137 = phi float [ %125, %89 ], [ %125, %128 ], [ %133, %130 ]
  %138 = phi float [ %126, %89 ], [ %126, %128 ], [ %135, %130 ]
  %139 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %140 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %137, ptr %139, align 4
  store float %138, ptr %140, align 4
  %141 = load <2 x float>, ptr %25, align 4
  %142 = call float @cargf(<2 x float> noundef %141) #5
  store float %142, ptr %23, align 4, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !9
  %145 = urem i32 %143, %144
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %152

147:                                              ; preds = %136
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = load float, ptr %23, align 4, !tbaa !5
  %150 = fpext float %149 to double
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %148, double noundef %150)
  br label %152

152:                                              ; preds = %147, %136
  %153 = load ptr, ptr %14, align 8, !tbaa !11
  %154 = load float, ptr %23, align 4, !tbaa !5
  %155 = call i32 @iirfilt_rrrf_execute(ptr noundef %153, float noundef %154, ptr noundef %20)
  %156 = load float, ptr %20, align 4, !tbaa !5
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %38, i64 %158
  store float %156, ptr %159, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %160

160:                                              ; preds = %152
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %15, align 4, !tbaa !9
  br label %85, !llvm.loop !16

163:                                              ; preds = %85
  %164 = load ptr, ptr %14, align 8, !tbaa !11
  %165 = call i32 @iirfilt_rrrf_destroy(ptr noundef %164)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %166 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %166, ptr %26, align 8, !tbaa !11
  %167 = load ptr, ptr %26, align 8, !tbaa !11
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.3) #5
  %169 = load ptr, ptr %26, align 8, !tbaa !11
  %170 = load i32, ptr %7, align 4, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.4, i32 noundef %170) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %195, %163
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = icmp ult i32 %173, %174
  br i1 %175, label %176, label %198

176:                                              ; preds = %172
  %177 = load ptr, ptr %26, align 8, !tbaa !11
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = add i32 %178, 1
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds float, ptr %32, i64 %181
  %183 = load float, ptr %182, align 4, !tbaa !5
  %184 = fpext float %183 to double
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.5, i32 noundef %179, double noundef %184) #5
  %186 = load ptr, ptr %26, align 8, !tbaa !11
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = add i32 %187, 1
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds float, ptr %38, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !5
  %193 = fpext float %192 to double
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.6, i32 noundef %188, double noundef %193) #5
  br label %195

195:                                              ; preds = %176
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = add i32 %196, 1
  store i32 %197, ptr %15, align 4, !tbaa !9
  br label %172, !llvm.loop !17

198:                                              ; preds = %172
  %199 = load ptr, ptr %26, align 8, !tbaa !11
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.7) #5
  %201 = load ptr, ptr %26, align 8, !tbaa !11
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.8) #5
  %203 = load ptr, ptr %26, align 8, !tbaa !11
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.9) #5
  %205 = load ptr, ptr %26, align 8, !tbaa !11
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.10) #5
  %207 = load ptr, ptr %26, align 8, !tbaa !11
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.11) #5
  %209 = load ptr, ptr %26, align 8, !tbaa !11
  %210 = call i32 @fclose(ptr noundef %209)
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef @.str.1)
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %213 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %213)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  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 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %214 = load i32, ptr %1, align 4
  ret i32 %214
}

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

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

declare ptr @iirfilt_rrrf_create_pll(float noundef, float noundef, float noundef) #3

declare i32 @iirfilt_rrrf_print(ptr noundef) #3

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #4

; Function Attrs: nounwind
declare float @cargf(<2 x float> noundef) #4

declare <2 x float> @__mulsc3(float, float, float, float)

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

declare i32 @iirfilt_rrrf_execute(ptr noundef, float noundef, ptr noundef) #3

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

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #3

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

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

declare i32 @fclose(ptr noundef) #3

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
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 "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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"branch_weights", i32 1, i32 1048575}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !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 [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  %2 = alloca [256 x float], align 16
  %3 = alloca [256 x { float, float }], align 16
  %4 = alloca [256 x float], align 16
  %5 = tail call ptr @iirfilt_rrrf_create_pll(float noundef 0x3FA99999A0000000, float noundef 0x3FE69FBE80000000, float noundef 1.000000e+03) #5
  %6 = tail call i32 @iirfilt_rrrf_print(ptr noundef %5) #5
  br label %7

7:                                                ; preds = %0, %7
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %7 ]
  %.06162 = phi float [ 0x3FE99999A0000000, %0 ], [ %12, %7 ]
  %8 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  store float %.06162, ptr %8, align 4, !tbaa !5
  %9 = fmul float %.06162, 0.000000e+00
  %.sroa.018.0.vec.insert = insertelement <2 x float> poison, float %9, i64 0
  %.sroa.018.4.vec.insert = insertelement <2 x float> %.sroa.018.0.vec.insert, float %.06162, i64 1
  %10 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.018.4.vec.insert) #5
  %11 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  store <2 x float> %10, ptr %11, align 8
  %12 = fadd float %.06162, 0x3F847AE140000000
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %13, label %7, !llvm.loop !9

13:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %13, %47
  %15 = phi float [ 0.000000e+00, %13 ], [ %49, %47 ]
  %indvars.iv67 = phi i64 [ 0, %13 ], [ %indvars.iv.next68, %47 ]
  %16 = fmul float %15, 0.000000e+00
  %.sroa.015.0.vec.insert = insertelement <2 x float> poison, float %16, i64 0
  %.sroa.015.4.vec.insert = insertelement <2 x float> %.sroa.015.0.vec.insert, float %15, i64 1
  %17 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.015.4.vec.insert) #5
  %18 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv67
  %19 = extractelement <2 x float> %17, i64 1
  %20 = fneg float %19
  %21 = load <2 x float>, ptr %18, align 8
  %22 = shufflevector <2 x float> %21, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %23 = fmul <2 x float> %21, %17
  %shift = shufflevector <2 x float> %23, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %24 = fadd <2 x float> %23, %shift
  %25 = extractelement <2 x float> %24, i64 0
  %26 = fmul <2 x float> %17, %22
  %shift75 = shufflevector <2 x float> %26, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %27 = fsub <2 x float> %26, %shift75
  %28 = extractelement <2 x float> %27, i64 0
  %29 = fcmp uno float %25, 0.000000e+00
  br i1 %29, label %30, label %37, !prof !11

30:                                               ; preds = %14
  %31 = fcmp uno float %28, 0.000000e+00
  br i1 %31, label %32, label %37, !prof !11

32:                                               ; preds = %30
  %33 = extractelement <2 x float> %21, i64 0
  %34 = extractelement <2 x float> %21, i64 1
  %35 = extractelement <2 x float> %17, i64 0
  %36 = call <2 x float> @__mulsc3(float noundef %33, float noundef %34, float noundef %35, float noundef %20) #5
  %.sroa.011.0.vec.extract = extractelement <2 x float> %36, i64 0
  %.sroa.011.4.vec.extract = extractelement <2 x float> %36, i64 1
  br label %37

37:                                               ; preds = %32, %30, %14
  %38 = phi float [ %25, %14 ], [ %25, %30 ], [ %.sroa.011.0.vec.extract, %32 ]
  %39 = phi float [ %28, %14 ], [ %28, %30 ], [ %.sroa.011.4.vec.extract, %32 ]
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %38, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %39, i64 1
  %40 = call float @cargf(<2 x float> noundef %.sroa.0.4.vec.insert) #5
  %41 = trunc nuw nsw i64 %indvars.iv67 to i32
  %42 = and i32 %41, 7
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %37
  %45 = fpext float %40 to double
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %41, double noundef %45)
  br label %47

47:                                               ; preds = %44, %37
  %48 = call i32 @iirfilt_rrrf_execute(ptr noundef %5, float noundef %40, ptr noundef nonnull %1) #5
  %49 = load float, ptr %1, align 4, !tbaa !5
  %50 = getelementptr inbounds float, ptr %4, i64 %indvars.iv67
  store float %49, ptr %50, align 4, !tbaa !5
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next68, 256
  br i1 %exitcond70.not, label %51, label %14, !llvm.loop !12

51:                                               ; preds = %47
  %52 = call i32 @iirfilt_rrrf_destroy(ptr noundef %5) #5
  %53 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.3) #5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.4, i32 noundef 256) #5
  br label %56

56:                                               ; preds = %51, %56
  %indvars.iv71 = phi i64 [ 0, %51 ], [ %indvars.iv.next72, %56 ]
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %57 = getelementptr inbounds float, ptr %2, i64 %indvars.iv71
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fpext float %58 to double
  %60 = trunc nuw nsw i64 %indvars.iv.next72 to i32
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.5, i32 noundef %60, double noundef %59) #5
  %62 = getelementptr inbounds float, ptr %4, i64 %indvars.iv71
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fpext float %63 to double
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.6, i32 noundef %60, double noundef %64) #5
  %exitcond74.not = icmp eq i64 %indvars.iv.next72, 256
  br i1 %exitcond74.not, label %66, label %56, !llvm.loop !13

66:                                               ; preds = %56
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.7) #5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.8) #5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.9) #5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.10) #5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.11) #5
  %72 = call i32 @fclose(ptr noundef %53)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef nonnull @.str.1)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

declare ptr @iirfilt_rrrf_create_pll(float noundef, float noundef, float noundef) local_unnamed_addr #2

declare i32 @iirfilt_rrrf_print(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare float @cargf(<2 x float> noundef) local_unnamed_addr #3

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

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

declare i32 @iirfilt_rrrf_execute(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"branch_weights", i32 1, i32 1048575}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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