; LLVM IR from jgaeddert/liquid-dsp :: src/modem/src (modemcf)

; 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.modemcf_s = type { i32, i32, i32, [8 x float], ptr, i32, { float, float }, { float, float }, %union.anon, ptr, ptr, ptr, i32 }
%union.anon = type { %struct.anon.3 }
%struct.anon.3 = type { i32, [8 x i32], [8 x float], [8 x float], [8 x float], ptr }
%struct.anon.1 = type { float }

@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @modemcf_create_ask(i32 noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %7 = call noalias ptr @malloc(i64 noundef 256) #7
  store ptr %7, ptr %4, align 8, !tbaa !9
  %8 = load ptr, ptr %4, align 8, !tbaa !9
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = call i32 @modemcf_init(ptr noundef %8, i32 noundef %9)
  %11 = load ptr, ptr %4, align 8, !tbaa !9
  %12 = getelementptr inbounds %struct.modemcf_s, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !11
  switch i32 %13, label %83 [
    i32 2, label %14
    i32 4, label %20
    i32 8, label %29
    i32 16, label %38
    i32 32, label %47
    i32 64, label %56
    i32 128, label %65
    i32 256, label %74
  ]

14:                                               ; preds = %1
  %15 = load ptr, ptr %4, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.modemcf_s, ptr %15, i32 0, i32 8
  %17 = getelementptr inbounds %struct.anon.1, ptr %16, i32 0, i32 0
  store float 1.000000e+00, ptr %17, align 8, !tbaa !13
  %18 = load ptr, ptr %4, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.modemcf_s, ptr %18, i32 0, i32 0
  store i32 17, ptr %19, align 8, !tbaa !14
  br label %85

20:                                               ; preds = %1
  %21 = call double @sqrt(double noundef 5.000000e+00) #6
  %22 = fdiv double 1.000000e+00, %21
  %23 = fptrunc double %22 to float
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.modemcf_s, ptr %24, i32 0, i32 8
  %26 = getelementptr inbounds %struct.anon.1, ptr %25, i32 0, i32 0
  store float %23, ptr %26, align 8, !tbaa !13
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.modemcf_s, ptr %27, i32 0, i32 0
  store i32 18, ptr %28, align 8, !tbaa !14
  br label %85

29:                                               ; preds = %1
  %30 = call double @sqrt(double noundef 2.100000e+01) #6
  %31 = fdiv double 1.000000e+00, %30
  %32 = fptrunc double %31 to float
  %33 = load ptr, ptr %4, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.modemcf_s, ptr %33, i32 0, i32 8
  %35 = getelementptr inbounds %struct.anon.1, ptr %34, i32 0, i32 0
  store float %32, ptr %35, align 8, !tbaa !13
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.modemcf_s, ptr %36, i32 0, i32 0
  store i32 19, ptr %37, align 8, !tbaa !14
  br label %85

38:                                               ; preds = %1
  %39 = call double @sqrt(double noundef 8.500000e+01) #6
  %40 = fdiv double 1.000000e+00, %39
  %41 = fptrunc double %40 to float
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.modemcf_s, ptr %42, i32 0, i32 8
  %44 = getelementptr inbounds %struct.anon.1, ptr %43, i32 0, i32 0
  store float %41, ptr %44, align 8, !tbaa !13
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.modemcf_s, ptr %45, i32 0, i32 0
  store i32 20, ptr %46, align 8, !tbaa !14
  br label %85

47:                                               ; preds = %1
  %48 = call double @sqrt(double noundef 3.410000e+02) #6
  %49 = fdiv double 1.000000e+00, %48
  %50 = fptrunc double %49 to float
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.modemcf_s, ptr %51, i32 0, i32 8
  %53 = getelementptr inbounds %struct.anon.1, ptr %52, i32 0, i32 0
  store float %50, ptr %53, align 8, !tbaa !13
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.modemcf_s, ptr %54, i32 0, i32 0
  store i32 21, ptr %55, align 8, !tbaa !14
  br label %85

56:                                               ; preds = %1
  %57 = call double @sqrt(double noundef 1.365000e+03) #6
  %58 = fdiv double 1.000000e+00, %57
  %59 = fptrunc double %58 to float
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.modemcf_s, ptr %60, i32 0, i32 8
  %62 = getelementptr inbounds %struct.anon.1, ptr %61, i32 0, i32 0
  store float %59, ptr %62, align 8, !tbaa !13
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.modemcf_s, ptr %63, i32 0, i32 0
  store i32 22, ptr %64, align 8, !tbaa !14
  br label %85

65:                                               ; preds = %1
  %66 = call double @sqrt(double noundef 5.461000e+03) #6
  %67 = fdiv double 1.000000e+00, %66
  %68 = fptrunc double %67 to float
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.modemcf_s, ptr %69, i32 0, i32 8
  %71 = getelementptr inbounds %struct.anon.1, ptr %70, i32 0, i32 0
  store float %68, ptr %71, align 8, !tbaa !13
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.modemcf_s, ptr %72, i32 0, i32 0
  store i32 23, ptr %73, align 8, !tbaa !14
  br label %85

74:                                               ; preds = %1
  %75 = call double @sqrt(double noundef 2.184500e+04) #6
  %76 = fdiv double 1.000000e+00, %75
  %77 = fptrunc double %76 to float
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.modemcf_s, ptr %78, i32 0, i32 8
  %80 = getelementptr inbounds %struct.anon.1, ptr %79, i32 0, i32 0
  store float %77, ptr %80, align 8, !tbaa !13
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.modemcf_s, ptr %81, i32 0, i32 0
  store i32 24, ptr %82, align 8, !tbaa !14
  br label %85

83:                                               ; preds = %1
  %84 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.19, i32 noundef 48, ptr noundef @.str.20, ptr noundef @.str.2)
  store ptr %84, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %130

85:                                               ; preds = %74, %65, %56, %47, %38, %29, %20, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %106, %85
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.modemcf_s, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !15
  %91 = icmp ult i32 %87, %90
  br i1 %91, label %92, label %109

92:                                               ; preds = %86
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = shl i32 1, %93
  %95 = sitofp i32 %94 to float
  %96 = load ptr, ptr %4, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.modemcf_s, ptr %96, i32 0, i32 8
  %98 = getelementptr inbounds %struct.anon.1, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 8, !tbaa !13
  %100 = fmul float %95, %99
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.modemcf_s, ptr %101, i32 0, i32 3
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [8 x float], ptr %102, i64 0, i64 %104
  store float %100, ptr %105, align 4, !tbaa !16
  br label %106

106:                                              ; preds = %92
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = add i32 %107, 1
  store i32 %108, ptr %6, align 4, !tbaa !5
  br label %86, !llvm.loop !18

109:                                              ; preds = %86
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.modemcf_s, ptr %110, i32 0, i32 9
  store ptr @modemcf_modulate_ask, ptr %111, align 8, !tbaa !20
  %112 = load ptr, ptr %4, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.modemcf_s, ptr %112, i32 0, i32 10
  store ptr @modemcf_demodulate_ask, ptr %113, align 8, !tbaa !21
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.modemcf_s, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !15
  %117 = icmp uge i32 %116, 2
  br i1 %117, label %118, label %126

118:                                              ; preds = %109
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.modemcf_s, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = icmp ult i32 %121, 8
  br i1 %122, label %123, label %126

123:                                              ; preds = %118
  %124 = load ptr, ptr %4, align 8, !tbaa !9
  %125 = call i32 @modemcf_demodsoft_gentab(ptr noundef %124, i32 noundef 2)
  br label %126

126:                                              ; preds = %123, %118, %109
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  %128 = call i32 @modemcf_reset(ptr noundef %127)
  %129 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %129, ptr %2, align 8
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %130

130:                                              ; preds = %126, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %131 = load ptr, ptr %2, align 8
  ret ptr %131
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #1

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

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @modemcf_demodulate_ask(ptr noundef, <2 x float> noundef, ptr noundef) #3

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

!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, !6, i64 8}
!12 = !{!"modemcf_s", !6, i64 0, !6, i64 4, !6, i64 8, !7, i64 12, !10, i64 48, !6, i64 56, !7, i64 60, !7, i64 68, !7, i64 80, !10, i64 224, !10, i64 232, !10, i64 240, !6, i64 248}
!13 = !{!7, !7, i64 0}
!14 = !{!12, !6, i64 0}
!15 = !{!12, !6, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !10, i64 224}
!21 = !{!12, !10, i64 232}


; 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.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @modemcf_create_ask(i32 noundef %0) local_unnamed_addr #0 {
  %2 = tail call noalias dereferenceable_or_null(256) ptr @malloc(i64 noundef 256) #4
  %3 = tail call i32 @modemcf_init(ptr noundef %2, i32 noundef %0)
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  switch i32 %5, label %13 [
    i32 2, label %15
    i32 4, label %6
    i32 8, label %7
    i32 16, label %8
    i32 32, label %9
    i32 64, label %10
    i32 128, label %11
    i32 256, label %12
  ]

6:                                                ; preds = %1
  br label %15

7:                                                ; preds = %1
  br label %15

8:                                                ; preds = %1
  br label %15

9:                                                ; preds = %1
  br label %15

10:                                               ; preds = %1
  br label %15

11:                                               ; preds = %1
  br label %15

12:                                               ; preds = %1
  br label %15

13:                                               ; preds = %1
  %14 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.19, i32 noundef 48, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.2) #5
  br label %50

15:                                               ; preds = %1, %12, %11, %10, %9, %8, %7, %6
  %.sink38 = phi float [ 0x3F7BB688C0000000, %12 ], [ 0x3F8BB6B260000000, %11 ], [ 0x3F9BB758A0000000, %10 ], [ 0x3FABB9F260000000, %9 ], [ 0x3FBBC460A0000000, %8 ], [ 0x3FCBEE9060000000, %7 ], [ 0x3FDC9F25C0000000, %6 ], [ 1.000000e+00, %1 ]
  %.sink = phi i32 [ 24, %12 ], [ 23, %11 ], [ 22, %10 ], [ 21, %9 ], [ 20, %8 ], [ 19, %7 ], [ 18, %6 ], [ 17, %1 ]
  %16 = getelementptr inbounds i8, ptr %2, i64 80
  store float %.sink38, ptr %16, align 8, !tbaa !11
  store i32 %.sink, ptr %2, align 8, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %2, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %2, i64 224
  store ptr @modemcf_modulate_ask, ptr %19, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %2, i64 232
  store ptr @modemcf_demodulate_ask, ptr %20, align 8, !tbaa !15
  br label %48

.lr.ph:                                           ; preds = %15
  %21 = getelementptr inbounds i8, ptr %2, i64 80
  %22 = getelementptr inbounds i8, ptr %2, i64 12
  %wide.trip.count = zext i32 %18 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %23 = icmp eq i32 %18, 1
  br i1 %23, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %24

24:                                               ; preds = %24, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %24 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %24 ]
  %25 = trunc nuw i64 %indvars.iv to i32
  %26 = shl nuw i32 1, %25
  %27 = uitofp nneg i32 %26 to float
  %28 = load float, ptr %21, align 8, !tbaa !11
  %29 = fmul float %28, %27
  %30 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 %indvars.iv
  store float %29, ptr %30, align 4, !tbaa !16
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %31 = trunc nuw i64 %indvars.iv.next to i32
  %32 = shl nuw i32 1, %31
  %33 = sitofp i32 %32 to float
  %34 = load float, ptr %21, align 8, !tbaa !11
  %35 = fmul float %34, %33
  %36 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 %indvars.iv.next
  store float %35, ptr %36, align 4, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %24, !llvm.loop !18

._crit_edge.unr-lcssa:                            ; preds = %24, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %24 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %37 = trunc nuw i64 %indvars.iv.unr to i32
  %38 = shl nuw i32 1, %37
  %39 = sitofp i32 %38 to float
  %40 = load float, ptr %21, align 8, !tbaa !11
  %41 = fmul float %40, %39
  %42 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 %indvars.iv.unr
  store float %41, ptr %42, align 4, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %43 = getelementptr inbounds i8, ptr %2, i64 224
  store ptr @modemcf_modulate_ask, ptr %43, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %2, i64 232
  store ptr @modemcf_demodulate_ask, ptr %44, align 8, !tbaa !15
  %45 = add i32 %18, -2
  %or.cond = icmp ult i32 %45, 6
  br i1 %or.cond, label %46, label %48

46:                                               ; preds = %._crit_edge
  %47 = tail call i32 @modemcf_demodsoft_gentab(ptr noundef nonnull %2, i32 noundef 2)
  br label %48

48:                                               ; preds = %._crit_edge.thread, %46, %._crit_edge
  %49 = tail call i32 @modemcf_reset(ptr noundef nonnull %2)
  br label %50

50:                                               ; preds = %48, %13
  %.033 = phi ptr [ %14, %13 ], [ %2, %48 ]
  ret ptr %.033
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @modemcf_demodsoft_gentab(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @modemcf_demodulate_ask(ptr noundef, <2 x float> noundef, ptr noundef) #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 = { "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 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0) }
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, !7, i64 8}
!6 = !{!"modemcf_s", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !10, i64 48, !7, i64 56, !8, i64 60, !8, i64 68, !8, i64 80, !10, i64 224, !10, i64 232, !10, i64 240, !7, i64 248}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !10, i64 224}
!15 = !{!6, !10, i64 232}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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