; LLVM IR from jgaeddert/liquid-dsp :: examples (gmsk_tracking_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 [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = 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) #5
  store i32 4, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0x3FD3333340000000, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 203, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 200, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = mul i32 %24, %25
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = mul i32 %27, %28
  %30 = call ptr @rresamp_crcf_create_kaiser(i32 noundef %26, i32 noundef %29, i32 noundef 12, float noundef 5.000000e-01, float noundef 6.000000e+01)
  store ptr %30, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = load float, ptr %7, align 4, !tbaa !11
  %33 = call ptr @gmskmod_create(i32 noundef %31, i32 noundef 3, float noundef %32)
  store ptr %33, ptr %11, align 8, !tbaa !9
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  %35 = call i32 @gmskmod_print(ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = uitofp i32 %36 to double
  %38 = fmul double 1.000000e-02, %37
  %39 = fptrunc double %38 to float
  %40 = call ptr @freqdem_create(float noundef %39)
  store ptr %40, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = load float, ptr %7, align 4, !tbaa !11
  %43 = call ptr @firfilt_rrrf_create_rnyquist(i32 noundef 12, i32 noundef %41, i32 noundef 8, float noundef %42, float noundef 0.000000e+00)
  store ptr %43, ptr %13, align 8, !tbaa !9
  %44 = load ptr, ptr %13, align 8, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = uitofp i32 %45 to float
  %47 = fpext float %46 to double
  %48 = fdiv double 1.000000e+00, %47
  %49 = fptrunc double %48 to float
  %50 = call i32 @firfilt_rrrf_set_scale(ptr noundef %44, float noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = call ptr @symsync_rrrf_create_kaiser(i32 noundef %51, i32 noundef 4, float noundef 0.000000e+00, i32 noundef 64)
  store ptr %52, ptr %14, align 8, !tbaa !9
  %53 = load ptr, ptr %14, align 8, !tbaa !9
  %54 = call i32 @symsync_rrrf_set_lf_bw(ptr noundef %53, float noundef 0x3F947AE140000000)
  %55 = load ptr, ptr %14, align 8, !tbaa !9
  %56 = call i32 @symsync_rrrf_set_output_rate(ptr noundef %55, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %57 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %57, ptr %15, align 8, !tbaa !9
  %58 = load ptr, ptr %15, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.2, ptr noundef @.str) #5
  %60 = load ptr, ptr %15, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.3) #5
  %62 = load ptr, ptr %15, align 8, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.4, i32 noundef %63) #5
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = mul i32 %65, %66
  %68 = zext i32 %67 to i64
  %69 = call ptr @llvm.stacksave.p0()
  store ptr %69, ptr %16, align 8
  %70 = alloca { float, float }, i64 %68, align 16
  store i64 %68, ptr %17, align 8
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = mul i32 %71, %72
  %74 = zext i32 %73 to i64
  %75 = alloca { float, float }, i64 %74, align 16
  store i64 %74, ptr %18, align 8
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = mul i32 %76, %77
  %79 = zext i32 %78 to i64
  %80 = alloca float, i64 %79, align 16
  store i64 %79, ptr %19, align 8
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = mul i32 %81, %82
  %84 = zext i32 %83 to i64
  %85 = alloca float, i64 %84, align 16
  store i64 %84, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %141, %2
  %87 = load i32, ptr %21, align 4, !tbaa !5
  %88 = icmp ult i32 %87, 25
  br i1 %88, label %89, label %144

89:                                               ; preds = %86
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %104, %89
  %91 = load i32, ptr %22, align 4, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = icmp ult i32 %91, %92
  br i1 %93, label %94, label %107

94:                                               ; preds = %90
  %95 = load ptr, ptr %11, align 8, !tbaa !9
  %96 = call i32 @rand() #5
  %97 = and i32 %96, 1
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = load i32, ptr %22, align 4, !tbaa !5
  %100 = mul i32 %98, %99
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds { float, float }, ptr %70, i64 %101
  %103 = call i32 @gmskmod_modulate(ptr noundef %95, i32 noundef %97, ptr noundef %102)
  br label %104

104:                                              ; preds = %94
  %105 = load i32, ptr %22, align 4, !tbaa !5
  %106 = add i32 %105, 1
  store i32 %106, ptr %22, align 4, !tbaa !5
  br label %90, !llvm.loop !13

107:                                              ; preds = %90
  %108 = load ptr, ptr %10, align 8, !tbaa !9
  %109 = call i32 @rresamp_crcf_execute(ptr noundef %108, ptr noundef %70, ptr noundef %75)
  %110 = load ptr, ptr %12, align 8, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = mul i32 %111, %112
  %114 = call i32 @freqdem_demodulate_block(ptr noundef %110, ptr noundef %75, i32 noundef %113, ptr noundef %80)
  %115 = load ptr, ptr %13, align 8, !tbaa !9
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = mul i32 %116, %117
  %119 = call i32 @firfilt_rrrf_execute_block(ptr noundef %115, ptr noundef %80, i32 noundef %118, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %120 = load ptr, ptr %14, align 8, !tbaa !9
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = mul i32 %121, %122
  %124 = call i32 @symsync_rrrf_execute(ptr noundef %120, ptr noundef %80, i32 noundef %123, ptr noundef %85, ptr noundef %23)
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %137, %107
  %126 = load i32, ptr %22, align 4, !tbaa !5
  %127 = load i32, ptr %23, align 4, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %129, label %140

129:                                              ; preds = %125
  %130 = load ptr, ptr %15, align 8, !tbaa !9
  %131 = load i32, ptr %22, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %85, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = fpext float %134 to double
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.5, double noundef %135) #5
  br label %137

137:                                              ; preds = %129
  %138 = load i32, ptr %22, align 4, !tbaa !5
  %139 = add i32 %138, 1
  store i32 %139, ptr %22, align 4, !tbaa !5
  br label %125, !llvm.loop !15

140:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %21, align 4, !tbaa !5
  %143 = add i32 %142, 1
  store i32 %143, ptr %21, align 4, !tbaa !5
  br label %86, !llvm.loop !16

144:                                              ; preds = %86
  %145 = load ptr, ptr %15, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.6) #5
  %147 = load ptr, ptr %15, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.7) #5
  %149 = load ptr, ptr %15, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.8) #5
  %151 = load ptr, ptr %15, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.9) #5
  %153 = load ptr, ptr %15, align 8, !tbaa !9
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.10) #5
  %155 = load ptr, ptr %15, align 8, !tbaa !9
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.11) #5
  %157 = load ptr, ptr %15, align 8, !tbaa !9
  %158 = call i32 @fclose(ptr noundef %157)
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef @.str)
  %160 = load ptr, ptr %11, align 8, !tbaa !9
  %161 = call i32 @gmskmod_destroy(ptr noundef %160)
  %162 = load ptr, ptr %12, align 8, !tbaa !9
  %163 = call i32 @freqdem_destroy(ptr noundef %162)
  %164 = load ptr, ptr %13, align 8, !tbaa !9
  %165 = call i32 @firfilt_rrrf_destroy(ptr noundef %164)
  %166 = load ptr, ptr %14, align 8, !tbaa !9
  %167 = call i32 @symsync_rrrf_destroy(ptr noundef %166)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %168 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %168)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  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
  %169 = load i32, ptr %3, align 4
  ret i32 %169
}

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

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

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

declare i32 @gmskmod_print(ptr noundef) #2

declare ptr @freqdem_create(float noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #2

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

declare i32 @gmskmod_destroy(ptr noundef) #2

declare i32 @freqdem_destroy(ptr noundef) #2

declare i32 @firfilt_rrrf_destroy(ptr noundef) #2

declare i32 @symsync_rrrf_destroy(ptr noundef) #2

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"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 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = tail call ptr @rresamp_crcf_create_kaiser(i32 noundef 812, i32 noundef 800, i32 noundef 12, float noundef 5.000000e-01, float noundef 6.000000e+01) #5
  %5 = tail call ptr @gmskmod_create(i32 noundef 4, i32 noundef 3, float noundef 0x3FD3333340000000) #5
  %6 = tail call i32 @gmskmod_print(ptr noundef %5) #5
  %7 = tail call ptr @freqdem_create(float noundef 0x3FA47AE140000000) #5
  %8 = tail call ptr @firfilt_rrrf_create_rnyquist(i32 noundef 12, i32 noundef 4, i32 noundef 8, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #5
  %9 = tail call i32 @firfilt_rrrf_set_scale(ptr noundef %8, float noundef 2.500000e-01) #5
  %10 = tail call ptr @symsync_rrrf_create_kaiser(i32 noundef 4, i32 noundef 4, float noundef 0.000000e+00, i32 noundef 64) #5
  %11 = tail call i32 @symsync_rrrf_set_lf_bw(ptr noundef %10, float noundef 0x3F947AE140000000) #5
  %12 = tail call i32 @symsync_rrrf_set_output_rate(ptr noundef %10, i32 noundef 2) #5
  %13 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.3) #5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.4, i32 noundef 4) #5
  %17 = alloca [800 x { float, float }], align 16
  %18 = alloca [812 x { float, float }], align 16
  %19 = alloca [812 x float], align 16
  %20 = alloca [812 x float], align 16
  br label %.preheader

.preheader:                                       ; preds = %2, %._crit_edge
  %.06164 = phi i32 [ 0, %2 ], [ %39, %._crit_edge ]
  br label %21

21:                                               ; preds = %.preheader, %21
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %21 ]
  %22 = call i32 @rand() #5
  %23 = and i32 %22, 1
  %.idx = shl nsw i64 %indvars.iv, 5
  %24 = getelementptr inbounds i8, ptr %17, i64 %.idx
  %25 = call i32 @gmskmod_modulate(ptr noundef %5, i32 noundef %23, ptr noundef nonnull %24) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 200
  br i1 %exitcond.not, label %26, label %21, !llvm.loop !5

26:                                               ; preds = %21
  %27 = call i32 @rresamp_crcf_execute(ptr noundef %4, ptr noundef nonnull %17, ptr noundef nonnull %18) #5
  %28 = call i32 @freqdem_demodulate_block(ptr noundef %7, ptr noundef nonnull %18, i32 noundef 812, ptr noundef nonnull %19) #5
  %29 = call i32 @firfilt_rrrf_execute_block(ptr noundef %8, ptr noundef nonnull %19, i32 noundef 812, ptr noundef nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %30 = call i32 @symsync_rrrf_execute(ptr noundef %10, ptr noundef nonnull %19, i32 noundef 812, ptr noundef nonnull %20, ptr noundef nonnull %3) #5
  %31 = load i32, ptr %3, align 4, !tbaa !7
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %26, %.lr.ph
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph ], [ 0, %26 ]
  %32 = getelementptr inbounds float, ptr %20, i64 %indvars.iv66
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = fpext float %33 to double
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.5, double noundef %34) #5
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %36 = load i32, ptr %3, align 4, !tbaa !7
  %37 = zext i32 %36 to i64
  %38 = icmp ult i64 %indvars.iv.next67, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %39 = add nuw nsw i32 %.06164, 1
  %exitcond69.not = icmp eq i32 %39, 25
  br i1 %exitcond69.not, label %40, label %.preheader, !llvm.loop !14

40:                                               ; preds = %._crit_edge
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.6) #5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.7) #5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.8) #5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.9) #5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10) #5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.11) #5
  %47 = call i32 @fclose(ptr noundef %13)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef nonnull @.str)
  %49 = call i32 @gmskmod_destroy(ptr noundef %5) #5
  %50 = call i32 @freqdem_destroy(ptr noundef %7) #5
  %51 = call i32 @firfilt_rrrf_destroy(ptr noundef %8) #5
  %52 = call i32 @symsync_rrrf_destroy(ptr noundef %10) #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 @rresamp_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

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

declare i32 @gmskmod_print(ptr noundef) local_unnamed_addr #2

declare ptr @freqdem_create(float noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @symsync_rrrf_set_output_rate(ptr noundef, i32 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 #3

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

declare i32 @gmskmod_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @rresamp_crcf_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @freqdem_demodulate_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @firfilt_rrrf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @symsync_rrrf_execute(ptr noundef, ptr noundef, i32 noundef, ptr 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

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

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

declare i32 @gmskmod_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @freqdem_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @firfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @symsync_rrrf_destroy(ptr noundef) local_unnamed_addr #2

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass