; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (msource_autotest)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@__const.autotest_msourcecf_aggregate.regions = external hidden unnamed_addr constant [29 x %struct.autotest_psd_s], align 16
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1

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

; 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 memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare ptr @spgramcf_create_default(i32 noundef) #2

declare ptr @msourcecf_create_default() #2

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

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

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

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

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

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

declare i32 @msourcecf_destroy(ptr noundef) #2

declare i32 @spgramcf_destroy(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_msourcecf_aggregate() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca [29 x %struct.autotest_psd_s], align 16
  %16 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 40, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 12, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 0x3FD3333340000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float 0x3FD6666660000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 2400, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 192000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = call ptr @spgramcf_create_default(i32 noundef %17)
  store ptr %18, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1024, ptr %8, align 4, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = call ptr @llvm.stacksave.p0()
  store ptr %21, ptr %9, align 8
  %22 = alloca { float, float }, i64 %20, align 16
  store i64 %20, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %23 = call ptr @msourcecf_create_default()
  store ptr %23, ptr %11, align 8, !tbaa !11
  %24 = load ptr, ptr %11, align 8, !tbaa !11
  %25 = call i32 @msourcecf_add_noise(ptr noundef %24, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -4.000000e+01)
  %26 = load ptr, ptr %11, align 8, !tbaa !11
  %27 = call i32 @msourcecf_add_tone(ptr noundef %26, float noundef 0xBFDCCCCCC0000000, float noundef 0.000000e+00, float noundef 2.000000e+01)
  %28 = load ptr, ptr %11, align 8, !tbaa !11
  %29 = call i32 @msourcecf_add_fsk(ptr noundef %28, float noundef 0xBFD51EB860000000, float noundef 0x3FA99999A0000000, float noundef -1.000000e+01, i32 noundef 3, i32 noundef 16)
  %30 = load ptr, ptr %11, align 8, !tbaa !11
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = load float, ptr %4, align 4, !tbaa !9
  %33 = call i32 @msourcecf_add_gmsk(ptr noundef %30, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef %31, float noundef %32)
  %34 = load ptr, ptr %11, align 8, !tbaa !11
  %35 = call i32 @msourcecf_add_noise(ptr noundef %34, float noundef 0xBFA99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00)
  %36 = load ptr, ptr %11, align 8, !tbaa !11
  %37 = call i32 @msourcecf_add_chirp(ptr noundef %36, float noundef 0x3FB1EB8520000000, float noundef 0x3FB1EB8520000000, float noundef 2.000000e+01, float noundef 8.000000e+03, i32 noundef 0, i32 noundef 0)
  %38 = load ptr, ptr %11, align 8, !tbaa !11
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = load float, ptr %3, align 4, !tbaa !9
  %42 = call i32 @msourcecf_add_modem(ptr noundef %38, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef %39, i32 noundef %40, float noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  %43 = load ptr, ptr %11, align 8, !tbaa !11
  %44 = call i32 @msourcecf_add_user(ptr noundef %43, float noundef 0x3FD99999A0000000, float noundef 0x3FC3333340000000, float noundef -1.000000e+01, ptr noundef %12, ptr noundef @callback_msourcecf_autotest)
  %45 = load ptr, ptr %11, align 8, !tbaa !11
  %46 = call i32 @msourcecf_print(ptr noundef %45)
  %47 = icmp ne i32 0, %46
  br i1 %47, label %48, label %52

48:                                               ; preds = %0
  %49 = load ptr, ptr %11, align 8, !tbaa !11
  %50 = call i32 @msourcecf_print(ptr noundef %49)
  %51 = sitofp i32 %50 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.2, i32 noundef 182, ptr noundef @.str.3, double noundef 0.000000e+00, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %51)
  br label %53

52:                                               ; preds = %0
  call void (...) @liquid_autotest_passed()
  br label %53

53:                                               ; preds = %52, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %58, %53
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %68

58:                                               ; preds = %54
  %59 = load ptr, ptr %11, align 8, !tbaa !11
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = call i32 @msourcecf_write_samples(ptr noundef %59, ptr noundef %22, i32 noundef %60)
  %62 = load ptr, ptr %7, align 8, !tbaa !11
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = call i32 @spgramcf_write(ptr noundef %62, ptr noundef %22, i32 noundef %63)
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = add i32 %66, %65
  store i32 %67, ptr %13, align 4, !tbaa !5
  br label %54, !llvm.loop !13

68:                                               ; preds = %54
  %69 = load i32, ptr %13, align 4, !tbaa !5
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %69)
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = alloca float, i64 %72, align 16
  store i64 %72, ptr %14, align 8
  %74 = load ptr, ptr %7, align 8, !tbaa !11
  %75 = call i32 @spgramcf_get_psd(ptr noundef %74, ptr noundef %73)
  %76 = load ptr, ptr %11, align 8, !tbaa !11
  %77 = call i32 @msourcecf_destroy(ptr noundef %76)
  %78 = load ptr, ptr %7, align 8, !tbaa !11
  %79 = call i32 @spgramcf_destroy(ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 696, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.autotest_msourcecf_aggregate.regions, i64 696, i1 false)
  call void @llvm.lifetime.start.p0(i64 256, ptr %16) #6
  %80 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
  %81 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %80, ptr noundef @.str.7) #6
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = getelementptr inbounds [29 x %struct.autotest_psd_s], ptr %15, i64 0, i64 0
  %84 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %88

86:                                               ; preds = %68
  %87 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
  br label %89

88:                                               ; preds = %68
  br label %89

89:                                               ; preds = %88, %86
  %90 = phi ptr [ %87, %86 ], [ null, %88 ]
  %91 = call i32 @liquid_autotest_validate_spectrum(ptr noundef %73, i32 noundef %82, ptr noundef %83, i32 noundef 29, ptr noundef %90)
  call void @llvm.lifetime.end.p0(i64 256, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 696, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %92 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %92)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

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

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

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

declare i32 @msourcecf_print(ptr noundef) #2

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

declare void @liquid_autotest_passed(...) #2

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@__const.autotest_msourcecf_aggregate.regions = external hidden unnamed_addr constant [29 x %struct.autotest_psd_s], align 16
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

declare ptr @msourcecf_create_default() local_unnamed_addr #2

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

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

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

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

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

declare i32 @msourcecf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_msourcecf_aggregate() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [29 x %struct.autotest_psd_s], align 16
  %3 = alloca [256 x i8], align 16
  %4 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #5
  %5 = alloca [1024 x { float, float }], align 16
  %6 = tail call ptr @msourcecf_create_default() #5
  %7 = tail call i32 @msourcecf_add_noise(ptr noundef %6, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -4.000000e+01) #5
  %8 = tail call i32 @msourcecf_add_tone(ptr noundef %6, float noundef 0xBFDCCCCCC0000000, float noundef 0.000000e+00, float noundef 2.000000e+01) #5
  %9 = tail call i32 @msourcecf_add_fsk(ptr noundef %6, float noundef 0xBFD51EB860000000, float noundef 0x3FA99999A0000000, float noundef -1.000000e+01, i32 noundef 3, i32 noundef 16) #5
  %10 = tail call i32 @msourcecf_add_gmsk(ptr noundef %6, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef 12, float noundef 0x3FD6666660000000) #5
  %11 = tail call i32 @msourcecf_add_noise(ptr noundef %6, float noundef 0xBFA99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00) #5
  %12 = tail call i32 @msourcecf_add_chirp(ptr noundef %6, float noundef 0x3FB1EB8520000000, float noundef 0x3FB1EB8520000000, float noundef 2.000000e+01, float noundef 8.000000e+03, i32 noundef 0, i32 noundef 0) #5
  %13 = tail call i32 @msourcecf_add_modem(ptr noundef %6, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef 40, i32 noundef 12, float noundef 0x3FD3333340000000) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  %14 = call i32 @msourcecf_add_user(ptr noundef %6, float noundef 0x3FD99999A0000000, float noundef 0x3FC3333340000000, float noundef -1.000000e+01, ptr noundef nonnull %1, ptr noundef nonnull @callback_msourcecf_autotest) #5
  %15 = call i32 @msourcecf_print(ptr noundef %6) #5
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %19, label %16

16:                                               ; preds = %0
  %17 = call i32 @msourcecf_print(ptr noundef %6) #5
  %18 = sitofp i32 %17 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.2, i32 noundef 182, ptr noundef nonnull @.str.3, double noundef 0.000000e+00, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef %18) #5
  br label %.preheader

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

.preheader:                                       ; preds = %19, %16
  br label %20

20:                                               ; preds = %.preheader, %20
  %.032 = phi i32 [ %23, %20 ], [ 0, %.preheader ]
  %21 = call i32 @msourcecf_write_samples(ptr noundef %6, ptr noundef nonnull %5, i32 noundef 1024) #5
  %22 = call i32 @spgramcf_write(ptr noundef %4, ptr noundef nonnull %5, i32 noundef 1024) #5
  %23 = add nuw nsw i32 %.032, 1024
  %24 = icmp ult i32 %.032, 190976
  br i1 %24, label %20, label %25, !llvm.loop !9

25:                                               ; preds = %20
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 192512)
  %27 = alloca [2400 x float], align 16
  %28 = call i32 @spgramcf_get_psd(ptr noundef %4, ptr noundef nonnull %27) #5
  %29 = call i32 @msourcecf_destroy(ptr noundef %6) #5
  %30 = call i32 @spgramcf_destroy(ptr noundef %4) #5
  call void @llvm.lifetime.start.p0(i64 696, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(696) %2, ptr noundef nonnull align 16 dereferenceable(696) @__const.autotest_msourcecf_aggregate.regions, i64 696, i1 false)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #5
  %31 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %32 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not31 = icmp eq i32 %32, 0
  %33 = select i1 %.not31, ptr null, ptr %3
  %34 = call i32 @liquid_autotest_validate_spectrum(ptr noundef nonnull %27, i32 noundef 2400, ptr noundef nonnull %2, i32 noundef 29, ptr noundef %33) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 696, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void
}

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

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

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

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

declare i32 @msourcecf_print(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass