; LLVM IR from jgaeddert/liquid-dsp :: examples (fdelay_rrrf_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 [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca float, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 200, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 12, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 10, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 240, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 0x403BCCCCC0000000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = call ptr @fdelay_rrrf_create(i32 noundef %19, i32 noundef %20, i32 noundef %21)
  store ptr %22, ptr %7, align 8, !tbaa !11
  %23 = load ptr, ptr %7, align 8, !tbaa !11
  %24 = load float, ptr %6, align 4, !tbaa !9
  %25 = call i32 @fdelay_rrrf_set_delay(ptr noundef %23, float noundef %24)
  %26 = load ptr, ptr %7, align 8, !tbaa !11
  %27 = call i32 @fdelay_rrrf_print(ptr noundef %26)
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = call ptr @llvm.stacksave.p0()
  store ptr %30, ptr %8, align 8
  %31 = alloca float, i64 %29, align 16
  store i64 %29, ptr %9, align 8
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = alloca float, i64 %33, align 16
  store i64 %33, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %58, %0
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp ult i32 %36, %37
  br i1 %38, label %39, label %61

39:                                               ; preds = %35
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 0
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, float 1.000000e+00, float 0.000000e+00
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %31, i64 %45
  store float %43, ptr %46, align 4, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !11
  %48 = load i32, ptr %11, align 4, !tbaa !5
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %31, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = call i32 @fdelay_rrrf_push(ptr noundef %47, float noundef %51)
  %53 = load ptr, ptr %7, align 8, !tbaa !11
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %34, i64 %55
  %57 = call i32 @fdelay_rrrf_execute(ptr noundef %53, ptr noundef %56)
  br label %58

58:                                               ; preds = %39
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = add i32 %59, 1
  store i32 %60, ptr %11, align 4, !tbaa !5
  br label %35, !llvm.loop !13

61:                                               ; preds = %35
  %62 = load ptr, ptr %7, align 8, !tbaa !11
  %63 = call i32 @fdelay_rrrf_destroy(ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = uitofp i32 %64 to float
  %66 = fdiv float 0x3FB99999A0000000, %65
  store float %66, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %67 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %68 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float 0.000000e+00, ptr %67, align 4
  store float 0.000000e+00, ptr %68, align 4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %106, %61
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = icmp ult i32 %70, %71
  br i1 %72, label %73, label %109

73:                                               ; preds = %69
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %34, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !9
  %78 = load float, ptr %12, align 4, !tbaa !9
  %79 = fpext float %78 to double
  %80 = fmul double 0.000000e+00, %79
  %81 = fmul double 0x401921FB54442D18, %79
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = uitofp i32 %82 to double
  %84 = fmul double %80, %83
  %85 = fmul double %81, %83
  %86 = fptrunc double %84 to float
  %87 = fptrunc double %85 to float
  %88 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %89 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %86, ptr %88, align 4
  store float %87, ptr %89, align 4
  %90 = load <2 x float>, ptr %14, align 4
  %91 = call <2 x float> @cexpf(<2 x float> noundef %90) #5
  store <2 x float> %91, ptr %15, align 4
  %92 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %93 = load float, ptr %92, align 4
  %94 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %95 = load float, ptr %94, align 4
  %96 = fmul float %77, %93
  %97 = fmul float %77, %95
  %98 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %99 = load float, ptr %98, align 4
  %100 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %101 = load float, ptr %100, align 4
  %102 = fadd float %99, %96
  %103 = fadd float %101, %97
  %104 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %105 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %102, ptr %104, align 4
  store float %103, ptr %105, align 4
  br label %106

106:                                              ; preds = %73
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = add i32 %107, 1
  store i32 %108, ptr %11, align 4, !tbaa !5
  br label %69, !llvm.loop !15

109:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %110 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %111 = load float, ptr %110, align 4
  %112 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %113 = load float, ptr %112, align 4
  %114 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %111, ptr %114, align 4
  store float %113, ptr %115, align 4
  %116 = load <2 x float>, ptr %17, align 4
  %117 = call float @cargf(<2 x float> noundef %116) #5
  %118 = fpext float %117 to double
  %119 = load float, ptr %12, align 4, !tbaa !9
  %120 = fpext float %119 to double
  %121 = fmul double 0x401921FB54442D18, %120
  %122 = fdiv double %118, %121
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = uitofp i32 %123 to float
  %125 = fpext float %124 to double
  %126 = fsub double %122, %125
  %127 = fptrunc double %126 to float
  store float %127, ptr %16, align 4, !tbaa !9
  %128 = load float, ptr %16, align 4, !tbaa !9
  %129 = fpext float %128 to double
  %130 = load float, ptr %6, align 4, !tbaa !9
  %131 = fpext float %130 to double
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %129, double noundef %131)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %133 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %133, ptr %18, align 8, !tbaa !11
  %134 = load ptr, ptr %18, align 8, !tbaa !11
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.3, ptr noundef @.str.1) #5
  %136 = load ptr, ptr %18, align 8, !tbaa !11
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.4) #5
  %138 = load ptr, ptr %18, align 8, !tbaa !11
  %139 = load float, ptr %6, align 4, !tbaa !9
  %140 = fpext float %139 to double
  %141 = load i32, ptr %3, align 4, !tbaa !5
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.5, double noundef %140, i32 noundef %141, i32 noundef %142) #5
  %144 = load ptr, ptr %18, align 8, !tbaa !11
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.6) #5
  %146 = load ptr, ptr %18, align 8, !tbaa !11
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.7) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %171, %109
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = load i32, ptr %5, align 4, !tbaa !5
  %151 = icmp ult i32 %149, %150
  br i1 %151, label %152, label %174

152:                                              ; preds = %148
  %153 = load ptr, ptr %18, align 8, !tbaa !11
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = add i32 %154, 1
  %156 = load i32, ptr %11, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %31, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = fpext float %159 to double
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.8, i32 noundef %155, double noundef %160) #5
  %162 = load ptr, ptr %18, align 8, !tbaa !11
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = add i32 %163, 1
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %34, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !9
  %169 = fpext float %168 to double
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.9, i32 noundef %164, double noundef %169) #5
  br label %171

171:                                              ; preds = %152
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = add i32 %172, 1
  store i32 %173, ptr %11, align 4, !tbaa !5
  br label %148, !llvm.loop !16

174:                                              ; preds = %148
  %175 = load ptr, ptr %18, align 8, !tbaa !11
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.10) #5
  %177 = load ptr, ptr %18, align 8, !tbaa !11
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.11) #5
  %179 = load ptr, ptr %18, align 8, !tbaa !11
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.12) #5
  %181 = load ptr, ptr %18, align 8, !tbaa !11
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.13) #5
  %183 = load ptr, ptr %18, align 8, !tbaa !11
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.14) #5
  %185 = load ptr, ptr %18, align 8, !tbaa !11
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.15) #5
  %187 = load ptr, ptr %18, align 8, !tbaa !11
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.16) #5
  %189 = load ptr, ptr %18, align 8, !tbaa !11
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.17) #5
  %191 = load ptr, ptr %18, align 8, !tbaa !11
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.18) #5
  %193 = load ptr, ptr %18, align 8, !tbaa !11
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.19) #5
  %195 = load ptr, ptr %18, align 8, !tbaa !11
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef @.str.20) #5
  %197 = load ptr, ptr %18, align 8, !tbaa !11
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.14) #5
  %199 = load ptr, ptr %18, align 8, !tbaa !11
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.21) #5
  %201 = load ptr, ptr %18, align 8, !tbaa !11
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.22) #5
  %203 = load ptr, ptr %18, align 8, !tbaa !11
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.17) #5
  %205 = load ptr, ptr %18, align 8, !tbaa !11
  %206 = call i32 @fclose(ptr noundef %205)
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %208 = load ptr, ptr %8, align 8
  call void @llvm.stackrestore.p0(ptr %208)
  call void @llvm.lifetime.end.p0(i64 8, 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
  %209 = load i32, ptr %1, align 4
  ret i32 %209
}

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

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

declare i32 @fdelay_rrrf_set_delay(ptr noundef, float noundef) #2

declare i32 @fdelay_rrrf_print(ptr noundef) #2

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

declare i32 @fdelay_rrrf_push(ptr noundef, float noundef) #2

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

declare i32 @fdelay_rrrf_destroy(ptr noundef) #2

; 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 i32 @printf(ptr noundef, ...) #2

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

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

declare i32 @fclose(ptr noundef) #2

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

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

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 = { "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 willreturn }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.peel.next:
  %0 = tail call ptr @fdelay_rrrf_create(i32 noundef 200, i32 noundef 12, i32 noundef 10) #4
  %1 = tail call i32 @fdelay_rrrf_set_delay(ptr noundef %0, float noundef 0x403BCCCCC0000000) #4
  %2 = tail call i32 @fdelay_rrrf_print(ptr noundef %0) #4
  %3 = alloca [240 x float], align 16
  %4 = alloca [240 x float], align 16
  store float 1.000000e+00, ptr %3, align 16, !tbaa !5
  %5 = tail call i32 @fdelay_rrrf_push(ptr noundef %0, float noundef 1.000000e+00) #4
  %6 = call i32 @fdelay_rrrf_execute(ptr noundef %0, ptr noundef nonnull %4) #4
  br label %7

7:                                                ; preds = %.peel.next, %7
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %7 ]
  %8 = getelementptr inbounds float, ptr %3, i64 %indvars.iv
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %9 = call i32 @fdelay_rrrf_push(ptr noundef %0, float noundef 0.000000e+00) #4
  %10 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %11 = call i32 @fdelay_rrrf_execute(ptr noundef %0, ptr noundef nonnull %10) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 240
  br i1 %exitcond.not, label %.loopexit, label %7, !llvm.loop !9

.loopexit:                                        ; preds = %7
  %12 = call i32 @fdelay_rrrf_destroy(ptr noundef %0) #4
  br label %13

13:                                               ; preds = %.loopexit, %13
  %indvars.iv78 = phi i64 [ 0, %.loopexit ], [ %indvars.iv.next79, %13 ]
  %14 = phi <2 x float> [ zeroinitializer, %.loopexit ], [ %25, %13 ]
  %15 = getelementptr inbounds float, ptr %4, i64 %indvars.iv78
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = trunc nuw nsw i64 %indvars.iv78 to i32
  %18 = uitofp nneg i32 %17 to double
  %19 = fmul double %18, 0x3F657254CB7FFBE7
  %20 = fptrunc double %19 to float
  %.sroa.026.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %20, i64 1
  %21 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.026.4.vec.insert) #4
  %22 = insertelement <2 x float> poison, float %16, i64 0
  %23 = shufflevector <2 x float> %22, <2 x float> poison, <2 x i32> zeroinitializer
  %24 = fmul <2 x float> %23, %21
  %25 = fadd <2 x float> %14, %24
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next79, 240
  br i1 %exitcond81.not, label %26, label %13, !llvm.loop !12

26:                                               ; preds = %13
  %27 = call float @cargf(<2 x float> noundef %25) #4
  %28 = fpext float %27 to double
  %29 = fdiv double %28, 0x3F657254CB7FFBE7
  %30 = fadd double %29, -1.200000e+01
  %31 = fptrunc double %30 to float
  %32 = fpext float %31 to double
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %32, double noundef 0x403BCCCCC0000000)
  %34 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #4
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.4) #4
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.5, double noundef 0x403BCCCCC0000000, i32 noundef 12, i32 noundef 240) #4
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.6) #4
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.7) #4
  br label %40

40:                                               ; preds = %26, %40
  %indvars.iv82 = phi i64 [ 0, %26 ], [ %indvars.iv.next83, %40 ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %41 = getelementptr inbounds float, ptr %3, i64 %indvars.iv82
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fpext float %42 to double
  %44 = trunc nuw nsw i64 %indvars.iv.next83 to i32
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.8, i32 noundef %44, double noundef %43) #4
  %46 = getelementptr inbounds float, ptr %4, i64 %indvars.iv82
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = fpext float %47 to double
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.9, i32 noundef %44, double noundef %48) #4
  %exitcond85.not = icmp eq i64 %indvars.iv.next83, 240
  br i1 %exitcond85.not, label %50, label %40, !llvm.loop !13

50:                                               ; preds = %40
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.10) #4
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.11) #4
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.12) #4
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.13) #4
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.14) #4
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.15) #4
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.16) #4
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.17) #4
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.18) #4
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.19) #4
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.20) #4
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.14) #4
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.21) #4
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.22) #4
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.17) #4
  %66 = call i32 @fclose(ptr noundef %34)
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.1)
  ret i32 0
}

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

declare i32 @fdelay_rrrf_set_delay(ptr noundef, float noundef) local_unnamed_addr #1

declare i32 @fdelay_rrrf_print(ptr noundef) local_unnamed_addr #1

declare i32 @fdelay_rrrf_push(ptr noundef, float noundef) local_unnamed_addr #1

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

declare i32 @fdelay_rrrf_destroy(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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 = { "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 "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 = { 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 #4 = { 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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass