; LLVM IR from jgaeddert/liquid-dsp :: src/modem/tests (modem_config_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.modulation_type_s = type { ptr, ptr, i32, i32 }

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@modulation_types = external constant [53 x %struct.modulation_type_s], align 16
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_copy(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca { float, float }, align 4
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = call ptr @modemcf_create(i32 noundef %16)
  store ptr %17, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %18 = load ptr, ptr %3, align 8, !tbaa !9
  %19 = call i32 @modemcf_get_bps(ptr noundef %18)
  %20 = shl i32 1, %19
  store i32 %20, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %40, %1
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp ult i32 %22, 10
  br i1 %23, label %24, label %43

24:                                               ; preds = %21
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = call i32 @rand() #4
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = urem i32 %26, %27
  %29 = call i32 @modemcf_modulate(ptr noundef %25, i32 noundef %28, ptr noundef %8)
  %30 = load ptr, ptr %3, align 8, !tbaa !9
  %31 = call float (...) @randnf()
  %32 = call float (...) @randnf()
  %33 = fmul float 0.000000e+00, %32
  %34 = fmul float 1.000000e+00, %32
  %35 = fadd float %31, %33
  %36 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %37 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %35, ptr %36, align 4
  store float %34, ptr %37, align 4
  %38 = load <2 x float>, ptr %10, align 4
  %39 = call i32 @modemcf_demodulate(ptr noundef %30, <2 x float> noundef %38, ptr noundef %5)
  br label %40

40:                                               ; preds = %24
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = add i32 %41, 1
  store i32 %42, ptr %4, align 4, !tbaa !5
  br label %21, !llvm.loop !11

43:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %44 = load ptr, ptr %3, align 8, !tbaa !9
  %45 = call ptr @modemcf_copy(ptr noundef %44)
  store ptr %45, ptr %11, align 8, !tbaa !9
  %46 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %67

48:                                               ; preds = %43
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.modulation_type_s, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = load ptr, ptr %3, align 8, !tbaa !9
  %55 = call i32 @modemcf_get_scheme(ptr noundef %54)
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %56
  %58 = getelementptr inbounds %struct.modulation_type_s, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = call i32 @modemcf_get_scheme(ptr noundef %60)
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.modulation_type_s, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %53, ptr noundef %59, ptr noundef %65)
  br label %67

67:                                               ; preds = %48, %43
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %136, %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = icmp ult i32 %69, 10
  br i1 %70, label %71, label %139

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %72 = call i32 @rand() #4
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = urem i32 %72, %73
  store i32 %74, ptr %12, align 4, !tbaa !5
  %75 = load ptr, ptr %3, align 8, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = call i32 @modemcf_modulate(ptr noundef %75, i32 noundef %76, ptr noundef %8)
  %78 = load ptr, ptr %11, align 8, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = call i32 @modemcf_modulate(ptr noundef %78, i32 noundef %79, ptr noundef %9)
  %81 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %82 = load float, ptr %81, align 4
  %83 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %84 = load float, ptr %83, align 4
  %85 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %86 = load float, ptr %85, align 4
  %87 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %88 = load float, ptr %87, align 4
  %89 = fcmp une float %82, %86
  %90 = fcmp une float %84, %88
  %91 = or i1 %89, %90
  br i1 %91, label %92, label %99

92:                                               ; preds = %71
  %93 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %94 = load float, ptr %93, align 4
  %95 = fpext float %94 to double
  %96 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %97 = load float, ptr %96, align 4
  %98 = fpext float %97 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 58, ptr noundef @.str.2, double noundef %95, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %98)
  br label %100

99:                                               ; preds = %71
  call void (...) @liquid_autotest_passed()
  br label %100

100:                                              ; preds = %99, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %101 = call float (...) @randnf()
  %102 = call float (...) @randnf()
  %103 = fmul float 0.000000e+00, %102
  %104 = fmul float 1.000000e+00, %102
  %105 = fadd float %101, %103
  %106 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %107 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %105, ptr %106, align 4
  store float %104, ptr %107, align 4
  %108 = load ptr, ptr %3, align 8, !tbaa !9
  %109 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %110 = load float, ptr %109, align 4
  %111 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %112 = load float, ptr %111, align 4
  %113 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %114 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %110, ptr %113, align 4
  store float %112, ptr %114, align 4
  %115 = load <2 x float>, ptr %14, align 4
  %116 = call i32 @modemcf_demodulate(ptr noundef %108, <2 x float> noundef %115, ptr noundef %5)
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  %118 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %119 = load float, ptr %118, align 4
  %120 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %121 = load float, ptr %120, align 4
  %122 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %123 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %119, ptr %122, align 4
  store float %121, ptr %123, align 4
  %124 = load <2 x float>, ptr %15, align 4
  %125 = call i32 @modemcf_demodulate(ptr noundef %117, <2 x float> noundef %124, ptr noundef %6)
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = load i32, ptr %6, align 4, !tbaa !5
  %128 = icmp ne i32 %126, %127
  br i1 %128, label %129, label %134

129:                                              ; preds = %100
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = uitofp i32 %130 to double
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = uitofp i32 %132 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 64, ptr noundef @.str.5, double noundef %131, ptr noundef @.str.3, ptr noundef @.str.6, double noundef %133)
  br label %135

134:                                              ; preds = %100
  call void (...) @liquid_autotest_passed()
  br label %135

135:                                              ; preds = %134, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = add i32 %137, 1
  store i32 %138, ptr %4, align 4, !tbaa !5
  br label %68, !llvm.loop !15

139:                                              ; preds = %68
  %140 = load ptr, ptr %3, align 8, !tbaa !9
  %141 = call i32 @modemcf_destroy(ptr noundef %140)
  %142 = load ptr, ptr %11, align 8, !tbaa !9
  %143 = call i32 @modemcf_destroy(ptr noundef %142)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

declare ptr @modemcf_create(i32 noundef) #2

declare i32 @modemcf_get_bps(ptr noundef) #2

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

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

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

declare float @randnf(...) #2

declare ptr @modemcf_copy(ptr noundef) #2

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

declare i32 @modemcf_get_scheme(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

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

declare i32 @modemcf_destroy(ptr noundef) #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 = { "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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"modulation_type_s", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20}
!15 = distinct !{!15, !12}


; 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.modulation_type_s = type { ptr, ptr, i32, i32 }

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@modulation_types = external local_unnamed_addr constant [53 x %struct.modulation_type_s], align 16
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_copy(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca { float, float }, align 4
  %5 = alloca { float, float }, align 4
  %6 = tail call ptr @modemcf_create(i32 noundef %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %7 = tail call i32 @modemcf_get_bps(ptr noundef %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %notmask = shl nsw i32 -1, %7
  %8 = xor i32 %notmask, -1
  %9 = tail call i32 @rand() #5
  %10 = and i32 %9, %8
  %11 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %10, ptr noundef nonnull %4) #5
  %12 = call float (...) @randnf() #5
  %13 = call float (...) @randnf() #5
  %14 = fmul float %13, 0.000000e+00
  %15 = fadd float %12, %14
  %.sroa.011.0.vec.insert = insertelement <2 x float> poison, float %15, i64 0
  %.sroa.011.4.vec.insert = insertelement <2 x float> %.sroa.011.0.vec.insert, float %13, i64 1
  %16 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert, ptr noundef nonnull %2) #5
  %17 = call i32 @rand() #5
  %18 = and i32 %17, %8
  %19 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %18, ptr noundef nonnull %4) #5
  %20 = call float (...) @randnf() #5
  %21 = call float (...) @randnf() #5
  %22 = fmul float %21, 0.000000e+00
  %23 = fadd float %20, %22
  %.sroa.011.0.vec.insert.1 = insertelement <2 x float> poison, float %23, i64 0
  %.sroa.011.4.vec.insert.1 = insertelement <2 x float> %.sroa.011.0.vec.insert.1, float %21, i64 1
  %24 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.1, ptr noundef nonnull %2) #5
  %25 = call i32 @rand() #5
  %26 = and i32 %25, %8
  %27 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %26, ptr noundef nonnull %4) #5
  %28 = call float (...) @randnf() #5
  %29 = call float (...) @randnf() #5
  %30 = fmul float %29, 0.000000e+00
  %31 = fadd float %28, %30
  %.sroa.011.0.vec.insert.2 = insertelement <2 x float> poison, float %31, i64 0
  %.sroa.011.4.vec.insert.2 = insertelement <2 x float> %.sroa.011.0.vec.insert.2, float %29, i64 1
  %32 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.2, ptr noundef nonnull %2) #5
  %33 = call i32 @rand() #5
  %34 = and i32 %33, %8
  %35 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %34, ptr noundef nonnull %4) #5
  %36 = call float (...) @randnf() #5
  %37 = call float (...) @randnf() #5
  %38 = fmul float %37, 0.000000e+00
  %39 = fadd float %36, %38
  %.sroa.011.0.vec.insert.3 = insertelement <2 x float> poison, float %39, i64 0
  %.sroa.011.4.vec.insert.3 = insertelement <2 x float> %.sroa.011.0.vec.insert.3, float %37, i64 1
  %40 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.3, ptr noundef nonnull %2) #5
  %41 = call i32 @rand() #5
  %42 = and i32 %41, %8
  %43 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %42, ptr noundef nonnull %4) #5
  %44 = call float (...) @randnf() #5
  %45 = call float (...) @randnf() #5
  %46 = fmul float %45, 0.000000e+00
  %47 = fadd float %44, %46
  %.sroa.011.0.vec.insert.4 = insertelement <2 x float> poison, float %47, i64 0
  %.sroa.011.4.vec.insert.4 = insertelement <2 x float> %.sroa.011.0.vec.insert.4, float %45, i64 1
  %48 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.4, ptr noundef nonnull %2) #5
  %49 = call i32 @rand() #5
  %50 = and i32 %49, %8
  %51 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %50, ptr noundef nonnull %4) #5
  %52 = call float (...) @randnf() #5
  %53 = call float (...) @randnf() #5
  %54 = fmul float %53, 0.000000e+00
  %55 = fadd float %52, %54
  %.sroa.011.0.vec.insert.5 = insertelement <2 x float> poison, float %55, i64 0
  %.sroa.011.4.vec.insert.5 = insertelement <2 x float> %.sroa.011.0.vec.insert.5, float %53, i64 1
  %56 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.5, ptr noundef nonnull %2) #5
  %57 = call i32 @rand() #5
  %58 = and i32 %57, %8
  %59 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %58, ptr noundef nonnull %4) #5
  %60 = call float (...) @randnf() #5
  %61 = call float (...) @randnf() #5
  %62 = fmul float %61, 0.000000e+00
  %63 = fadd float %60, %62
  %.sroa.011.0.vec.insert.6 = insertelement <2 x float> poison, float %63, i64 0
  %.sroa.011.4.vec.insert.6 = insertelement <2 x float> %.sroa.011.0.vec.insert.6, float %61, i64 1
  %64 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.6, ptr noundef nonnull %2) #5
  %65 = call i32 @rand() #5
  %66 = and i32 %65, %8
  %67 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %66, ptr noundef nonnull %4) #5
  %68 = call float (...) @randnf() #5
  %69 = call float (...) @randnf() #5
  %70 = fmul float %69, 0.000000e+00
  %71 = fadd float %68, %70
  %.sroa.011.0.vec.insert.7 = insertelement <2 x float> poison, float %71, i64 0
  %.sroa.011.4.vec.insert.7 = insertelement <2 x float> %.sroa.011.0.vec.insert.7, float %69, i64 1
  %72 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.7, ptr noundef nonnull %2) #5
  %73 = call i32 @rand() #5
  %74 = and i32 %73, %8
  %75 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %74, ptr noundef nonnull %4) #5
  %76 = call float (...) @randnf() #5
  %77 = call float (...) @randnf() #5
  %78 = fmul float %77, 0.000000e+00
  %79 = fadd float %76, %78
  %.sroa.011.0.vec.insert.8 = insertelement <2 x float> poison, float %79, i64 0
  %.sroa.011.4.vec.insert.8 = insertelement <2 x float> %.sroa.011.0.vec.insert.8, float %77, i64 1
  %80 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.8, ptr noundef nonnull %2) #5
  %81 = call i32 @rand() #5
  %82 = and i32 %81, %8
  %83 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %82, ptr noundef nonnull %4) #5
  %84 = call float (...) @randnf() #5
  %85 = call float (...) @randnf() #5
  %86 = fmul float %85, 0.000000e+00
  %87 = fadd float %84, %86
  %.sroa.011.0.vec.insert.9 = insertelement <2 x float> poison, float %87, i64 0
  %.sroa.011.4.vec.insert.9 = insertelement <2 x float> %.sroa.011.0.vec.insert.9, float %85, i64 1
  %88 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.011.4.vec.insert.9, ptr noundef nonnull %2) #5
  %89 = call ptr @modemcf_copy(ptr noundef %6) #5
  %90 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %90, 0
  br i1 %.not, label %104, label %91

91:                                               ; preds = %1
  %92 = zext i32 %0 to i64
  %93 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call i32 @modemcf_get_scheme(ptr noundef %6) #5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = call i32 @modemcf_get_scheme(ptr noundef %89) #5
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %94, ptr noundef %98, ptr noundef %102)
  br label %104

104:                                              ; preds = %91, %1
  %105 = getelementptr inbounds i8, ptr %4, i64 4
  %106 = getelementptr inbounds i8, ptr %5, i64 4
  br label %107

107:                                              ; preds = %104, %136
  %.133 = phi i32 [ 0, %104 ], [ %137, %136 ]
  %108 = call i32 @rand() #5
  %109 = and i32 %108, %8
  %110 = call i32 @modemcf_modulate(ptr noundef %6, i32 noundef %109, ptr noundef nonnull %4) #5
  %111 = call i32 @modemcf_modulate(ptr noundef %89, i32 noundef %109, ptr noundef nonnull %5) #5
  %112 = load float, ptr %4, align 4
  %113 = load float, ptr %105, align 4
  %114 = load float, ptr %5, align 4
  %115 = load float, ptr %106, align 4
  %116 = fcmp une float %112, %114
  %117 = fcmp une float %113, %115
  %118 = or i1 %116, %117
  br i1 %118, label %119, label %122

119:                                              ; preds = %107
  %120 = fpext float %112 to double
  %121 = fpext float %114 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 58, ptr noundef nonnull @.str.2, double noundef %120, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef %121) #5
  br label %123

122:                                              ; preds = %107
  call void (...) @liquid_autotest_passed() #5
  br label %123

123:                                              ; preds = %122, %119
  %124 = call float (...) @randnf() #5
  %125 = call float (...) @randnf() #5
  %126 = fmul float %125, 0.000000e+00
  %127 = fadd float %124, %126
  %.sroa.02.0.vec.insert = insertelement <2 x float> poison, float %127, i64 0
  %.sroa.02.4.vec.insert = insertelement <2 x float> %.sroa.02.0.vec.insert, float %125, i64 1
  %128 = call i32 @modemcf_demodulate(ptr noundef %6, <2 x float> noundef %.sroa.02.4.vec.insert, ptr noundef nonnull %2) #5
  %129 = call i32 @modemcf_demodulate(ptr noundef %89, <2 x float> noundef %.sroa.02.4.vec.insert, ptr noundef nonnull %3) #5
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %.not31 = icmp eq i32 %130, %131
  br i1 %.not31, label %135, label %132

132:                                              ; preds = %123
  %133 = uitofp i32 %130 to double
  %134 = uitofp i32 %131 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 64, ptr noundef nonnull @.str.5, double noundef %133, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.6, double noundef %134) #5
  br label %136

135:                                              ; preds = %123
  call void (...) @liquid_autotest_passed() #5
  br label %136

136:                                              ; preds = %135, %132
  %137 = add nuw nsw i32 %.133, 1
  %exitcond.not = icmp eq i32 %137, 10
  br i1 %exitcond.not, label %138, label %107, !llvm.loop !12

138:                                              ; preds = %136
  %139 = call i32 @modemcf_destroy(ptr noundef %6) #5
  %140 = call i32 @modemcf_destroy(ptr noundef %89) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret void
}

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

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #2

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

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

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

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

declare ptr @modemcf_copy(ptr noundef) local_unnamed_addr #2

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

declare i32 @modemcf_get_scheme(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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"modulation_type_s", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 20}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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