; LLVM IR from jgaeddert/liquid-dsp :: src/nco/src (nco_crcf)

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

@.str = external hidden unnamed_addr constant [78 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [87 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local float @nco_crcf_fp_sin(float noundef) #2

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

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @nco_crcf_set_vcodirect_frequency(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.nco_crcf_s, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = icmp ne i32 %15, 2
  br i1 %16, label %17, label %19

17:                                               ; preds = %3
  %18 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 394, ptr noundef @.str.19, ptr noundef @.str.2)
  br label %174

19:                                               ; preds = %3
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.nco_crcf_s, ptr %20, i32 0, i32 7
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  call void @free(ptr noundef %22) #5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.nco_crcf_s, ptr %23, i32 0, i32 8
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  call void @free(ptr noundef %25) #5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.nco_crcf_s, ptr %26, i32 0, i32 9
  store i32 0, ptr %27, align 8, !tbaa !16
  call void @nco_crcf_constrain_vcod(ptr noundef %5, ptr noundef %6)
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %155

30:                                               ; preds = %19
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = icmp ugt i32 %31, 0
  br i1 %32, label %33, label %155

33:                                               ; preds = %30
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.nco_crcf_s, ptr %35, i32 0, i32 5
  store i32 %34, ptr %36, align 8, !tbaa !17
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.nco_crcf_s, ptr %38, i32 0, i32 6
  store i32 %37, ptr %39, align 4, !tbaa !18
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.nco_crcf_s, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %41, align 4, !tbaa !18
  %43 = zext i32 %42 to i64
  %44 = mul i64 %43, 4
  %45 = call noalias ptr @malloc(i64 noundef %44) #6
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.nco_crcf_s, ptr %46, i32 0, i32 7
  store ptr %45, ptr %47, align 8, !tbaa !14
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.nco_crcf_s, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %49, align 4, !tbaa !18
  %51 = zext i32 %50 to i64
  %52 = mul i64 %51, 4
  %53 = call noalias ptr @malloc(i64 noundef %52) #6
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.nco_crcf_s, ptr %54, i32 0, i32 8
  store ptr %53, ptr %55, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.nco_crcf_s, ptr %56, i32 0, i32 5
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = sitofp i32 %58 to double
  %60 = fmul double 0x41EFFFFFFFE00000, %59
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nco_crcf_s, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %62, align 4, !tbaa !18
  %64 = uitofp i32 %63 to double
  %65 = fdiv double %60, %64
  %66 = fptosi double %65 to i32
  store i32 %66, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %151, %33
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.nco_crcf_s, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %70, align 4, !tbaa !18
  %72 = icmp ult i32 %68, %71
  br i1 %72, label %73, label %154

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = urem i32 %74, 1073741824
  store i32 %75, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = uitofp i32 %76 to float
  %78 = call float @nco_crcf_fp_sin(float noundef %77)
  store float %78, ptr %11, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = uitofp i32 %79 to float
  %81 = call float @nco_crcf_fp_cos(float noundef %80)
  store float %81, ptr %12, align 4, !tbaa !19
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = urem i32 %82, -2147483648
  %84 = icmp ult i32 %83, 1073741824
  br i1 %84, label %85, label %93

85:                                               ; preds = %73
  %86 = load float, ptr %11, align 4, !tbaa !19
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nco_crcf_s, ptr %87, i32 0, i32 7
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  store float %86, ptr %92, align 4, !tbaa !19
  br label %101

93:                                               ; preds = %73
  %94 = load float, ptr %12, align 4, !tbaa !19
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.nco_crcf_s, ptr %95, i32 0, i32 7
  %97 = load ptr, ptr %96, align 8, !tbaa !14
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %97, i64 %99
  store float %94, ptr %100, align 4, !tbaa !19
  br label %101

101:                                              ; preds = %93, %85
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = icmp ugt i32 %102, -2147483648
  br i1 %103, label %104, label %113

104:                                              ; preds = %101
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.nco_crcf_s, ptr %105, i32 0, i32 7
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds float, ptr %107, i64 %109
  %111 = load float, ptr %110, align 4, !tbaa !19
  %112 = fmul float %111, -1.000000e+00
  store float %112, ptr %110, align 4, !tbaa !19
  br label %113

113:                                              ; preds = %104, %101
  %114 = load i32, ptr %8, align 4, !tbaa !9
  %115 = sub i32 %114, 1073741824
  %116 = urem i32 %115, -2147483648
  %117 = icmp uge i32 %116, 1073741824
  br i1 %117, label %118, label %126

118:                                              ; preds = %113
  %119 = load float, ptr %12, align 4, !tbaa !19
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.nco_crcf_s, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %122, i64 %124
  store float %119, ptr %125, align 4, !tbaa !19
  br label %134

126:                                              ; preds = %113
  %127 = load float, ptr %11, align 4, !tbaa !19
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nco_crcf_s, ptr %128, i32 0, i32 8
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %130, i64 %132
  store float %127, ptr %133, align 4, !tbaa !19
  br label %134

134:                                              ; preds = %126, %118
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = sub i32 %135, 1073741824
  %137 = icmp ule i32 %136, -2147483648
  br i1 %137, label %138, label %147

138:                                              ; preds = %134
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.nco_crcf_s, ptr %139, i32 0, i32 8
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !19
  %146 = fmul float %145, -1.000000e+00
  store float %146, ptr %144, align 4, !tbaa !19
  br label %147

147:                                              ; preds = %138, %134
  %148 = load i32, ptr %7, align 4, !tbaa !9
  %149 = load i32, ptr %8, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %151

151:                                              ; preds = %147
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %9, align 4, !tbaa !9
  br label %67, !llvm.loop !20

154:                                              ; preds = %67
  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
  br label %174

155:                                              ; preds = %30, %19
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.nco_crcf_s, ptr %156, i32 0, i32 5
  store i32 0, ptr %157, align 8, !tbaa !17
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nco_crcf_s, ptr %158, i32 0, i32 6
  store i32 1, ptr %159, align 4, !tbaa !18
  %160 = call noalias ptr @malloc(i64 noundef 4) #6
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.nco_crcf_s, ptr %161, i32 0, i32 7
  store ptr %160, ptr %162, align 8, !tbaa !14
  %163 = call noalias ptr @malloc(i64 noundef 4) #6
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nco_crcf_s, ptr %164, i32 0, i32 8
  store ptr %163, ptr %165, align 8, !tbaa !15
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nco_crcf_s, ptr %166, i32 0, i32 7
  %168 = load ptr, ptr %167, align 8, !tbaa !14
  %169 = getelementptr inbounds float, ptr %168, i64 0
  store float 0.000000e+00, ptr %169, align 4, !tbaa !19
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.nco_crcf_s, ptr %170, i32 0, i32 8
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = getelementptr inbounds float, ptr %172, i64 0
  store float 1.000000e+00, ptr %173, align 4, !tbaa !19
  br label %174

174:                                              ; preds = %155, %154, %17
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @nco_crcf_constrain_vcod(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local float @nco_crcf_fp_cos(float noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"nco_crcf_s", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !10, i64 56, !13, i64 60, !13, i64 64}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 48}
!16 = !{!12, !10, i64 56}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 36}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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"

@.str = external hidden unnamed_addr constant [78 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [87 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local float @nco_crcf_fp_sin(float noundef) local_unnamed_addr #1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @nco_crcf_set_vcodirect_frequency(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 %1, ptr %4, align 4, !tbaa !5
  store i32 %2, ptr %5, align 4, !tbaa !5
  %6 = load i32, ptr %0, align 8, !tbaa !9
  %.not = icmp eq i32 %6, 2
  br i1 %.not, label %9, label %7

7:                                                ; preds = %3
  %8 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 394, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2) #4
  br label %.loopexit

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  tail call void @free(ptr noundef %11) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  tail call void @free(ptr noundef %13) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 0, ptr %14, align 8, !tbaa !15
  call void @nco_crcf_constrain_vcod(ptr noundef nonnull %4, ptr noundef nonnull %5)
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp ne i32 %15, 0
  %17 = load i32, ptr %5, align 4
  %18 = icmp ne i32 %17, 0
  %or.cond = select i1 %16, i1 %18, i1 false
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = getelementptr inbounds i8, ptr %0, i64 36
  br i1 %or.cond, label %.lr.ph.preheader, label %55

.lr.ph.preheader:                                 ; preds = %9
  store i32 %15, ptr %19, align 8, !tbaa !16
  store i32 %17, ptr %20, align 4, !tbaa !17
  %21 = zext i32 %17 to i64
  %22 = shl nuw nsw i64 %21, 2
  %23 = call noalias ptr @malloc(i64 noundef %22) #5
  store ptr %23, ptr %10, align 8, !tbaa !13
  %24 = call noalias ptr @malloc(i64 noundef %22) #5
  store ptr %24, ptr %12, align 8, !tbaa !14
  %25 = sitofp i32 %15 to double
  %26 = fmul double %25, 0x41EFFFFFFFE00000
  %27 = uitofp i32 %17 to double
  %28 = fdiv double %26, %27
  %29 = fptosi double %28 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %50
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %50 ]
  %.051 = phi i32 [ 0, %.lr.ph.preheader ], [ %51, %50 ]
  %30 = and i32 %.051, 1073741823
  %31 = uitofp nneg i32 %30 to float
  %32 = call float @nco_crcf_fp_sin(float noundef %31)
  %33 = call float @nco_crcf_fp_cos(float noundef %31)
  %34 = and i32 %.051, 1073741824
  %.not48.not = icmp eq i32 %34, 0
  %35 = load ptr, ptr %10, align 8, !tbaa !13
  %36 = getelementptr inbounds float, ptr %35, i64 %indvars.iv
  %. = select i1 %.not48.not, float %32, float %33
  store float %., ptr %36, align 4, !tbaa !18
  %37 = icmp ugt i32 %.051, -2147483648
  br i1 %37, label %38, label %41

38:                                               ; preds = %.lr.ph
  %39 = getelementptr inbounds float, ptr %35, i64 %indvars.iv
  %40 = fneg float %.
  store float %40, ptr %39, align 4, !tbaa !18
  br label %41

41:                                               ; preds = %38, %.lr.ph
  %42 = add i32 %.051, -1073741824
  %43 = and i32 %42, 1073741824
  %.not49 = icmp eq i32 %43, 0
  %44 = load ptr, ptr %12, align 8, !tbaa !14
  %45 = getelementptr inbounds float, ptr %44, i64 %indvars.iv
  %.55 = select i1 %.not49, float %32, float %33
  store float %.55, ptr %45, align 4, !tbaa !18
  %46 = icmp ult i32 %42, -2147483647
  br i1 %46, label %47, label %50

47:                                               ; preds = %41
  %48 = getelementptr inbounds float, ptr %44, i64 %indvars.iv
  %49 = fneg float %.55
  store float %49, ptr %48, align 4, !tbaa !18
  br label %50

50:                                               ; preds = %47, %41
  %51 = add i32 %.051, %29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr %20, align 4, !tbaa !17
  %53 = zext i32 %52 to i64
  %54 = icmp ult i64 %indvars.iv.next, %53
  br i1 %54, label %.lr.ph, label %.loopexit, !llvm.loop !19

55:                                               ; preds = %9
  store i32 0, ptr %19, align 8, !tbaa !16
  store i32 1, ptr %20, align 4, !tbaa !17
  %56 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store ptr %56, ptr %10, align 8, !tbaa !13
  %57 = call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store ptr %57, ptr %12, align 8, !tbaa !14
  store float 0.000000e+00, ptr %56, align 4, !tbaa !18
  store float 1.000000e+00, ptr %57, align 4, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %50, %55, %7
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @nco_crcf_constrain_vcod(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local float @nco_crcf_fp_cos(float noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { 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 #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 nounwind willreturn allockind("free") memory(argmem: readwrite, 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 }
attributes #5 = { 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, !6, i64 0}
!10 = !{!"nco_crcf_s", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48, !6, i64 56, !12, i64 60, !12, i64 64}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 40}
!14 = !{!10, !11, i64 48}
!15 = !{!10, !6, i64 56}
!16 = !{!10, !6, i64 32}
!17 = !{!10, !6, i64 36}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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