; LLVM IR from jgaeddert/liquid-dsp :: sandbox (matched_filter_test)

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

@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

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

20:                                               ; preds = %39, %2
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str.5) #7
  store i32 %23, ptr %9, align 4, !tbaa !5
  %24 = icmp ne i32 %23, -1
  br i1 %24, label %25, label %40

25:                                               ; preds = %20
  %26 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %26, label %38 [
    i32 117, label %27
    i32 104, label %27
    i32 107, label %28
    i32 109, label %31
    i32 98, label %34
  ]

27:                                               ; preds = %25, %25
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %160

28:                                               ; preds = %25
  %29 = load ptr, ptr @optarg, align 8, !tbaa !9
  %30 = call i32 @atoi(ptr noundef %29) #8
  store i32 %30, ptr %6, align 4, !tbaa !5
  br label %39

31:                                               ; preds = %25
  %32 = load ptr, ptr @optarg, align 8, !tbaa !9
  %33 = call i32 @atoi(ptr noundef %32) #8
  store i32 %33, ptr %7, align 4, !tbaa !5
  br label %39

34:                                               ; preds = %25
  %35 = load ptr, ptr @optarg, align 8, !tbaa !9
  %36 = call double @atof(ptr noundef %35) #8
  %37 = fptrunc double %36 to float
  store float %37, ptr %8, align 4, !tbaa !11
  br label %39

38:                                               ; preds = %25
  call void @exit(i32 noundef 1) #9
  unreachable

39:                                               ; preds = %34, %31, %28
  br label %20, !llvm.loop !13

40:                                               ; preds = %20
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = icmp ult i32 %41, 2
  br i1 %42, label %43, label %49

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 0
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.6, ptr noundef %47) #7
  call void @exit(i32 noundef 1) #9
  unreachable

49:                                               ; preds = %40
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = icmp ult i32 %50, 1
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 0
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.7, ptr noundef %56) #7
  call void @exit(i32 noundef 1) #9
  unreachable

58:                                               ; preds = %49
  %59 = load float, ptr %8, align 4, !tbaa !11
  %60 = fcmp ole float %59, 0.000000e+00
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = load float, ptr %8, align 4, !tbaa !11
  %63 = fcmp oge float %62, 1.000000e+00
  br i1 %63, label %64, label %70

64:                                               ; preds = %61, %58
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 0
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.8, ptr noundef %68) #7
  call void @exit(i32 noundef 1) #9
  unreachable

70:                                               ; preds = %61
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = mul i32 2, %73
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = mul i32 %74, %75
  %77 = add i32 %76, 1
  store i32 %77, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = call ptr @llvm.stacksave.p0()
  store ptr %80, ptr %12, align 8
  %81 = alloca float, i64 %79, align 16
  store i64 %79, ptr %13, align 8
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = load float, ptr %8, align 4, !tbaa !11
  %85 = call i32 @liquid_firdes_rrcos(i32 noundef %82, i32 noundef %83, float noundef %84, float noundef 0.000000e+00, ptr noundef %81)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = mul i32 2, %86
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = mul i32 %87, %88
  store i32 %89, ptr %14, align 4, !tbaa !5
  %90 = load i32, ptr %14, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = alloca float, i64 %91, align 16
  store i64 %91, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %108, %72
  %94 = load i32, ptr %16, align 4, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = icmp ult i32 %94, %95
  br i1 %96, label %97, label %111

97:                                               ; preds = %93
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = load i32, ptr %16, align 4, !tbaa !5
  %100 = sub i32 %98, %99
  %101 = sub i32 %100, 1
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %81, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !11
  %105 = load i32, ptr %16, align 4, !tbaa !5
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %92, i64 %106
  store float %104, ptr %107, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %97
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = add i32 %109, 1
  store i32 %110, ptr %16, align 4, !tbaa !5
  br label %93, !llvm.loop !15

111:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = call ptr @firfilt_rrrf_create(ptr noundef %92, i32 noundef %112)
  store ptr %113, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %152, %111
  %115 = load i32, ptr %16, align 4, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = mul i32 2, %116
  %118 = sub i32 %117, 1
  %119 = icmp ult i32 %115, %118
  br i1 %119, label %120, label %155

120:                                              ; preds = %114
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = icmp ult i32 %121, %122
  br i1 %123, label %124, label %129

124:                                              ; preds = %120
  %125 = load i32, ptr %16, align 4, !tbaa !5
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %81, i64 %126
  %128 = load float, ptr %127, align 4, !tbaa !11
  br label %130

129:                                              ; preds = %120
  br label %130

130:                                              ; preds = %129, %124
  %131 = phi float [ %128, %124 ], [ 0.000000e+00, %129 ]
  store float %131, ptr %18, align 4, !tbaa !11
  %132 = load ptr, ptr %17, align 8, !tbaa !9
  %133 = load float, ptr %18, align 4, !tbaa !11
  %134 = call i32 @firfilt_rrrf_push(ptr noundef %132, float noundef %133)
  %135 = load ptr, ptr %17, align 8, !tbaa !9
  %136 = call i32 @firfilt_rrrf_execute(ptr noundef %135, ptr noundef %19)
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = uitofp i32 %137 to float
  %139 = load float, ptr %19, align 4, !tbaa !11
  %140 = fdiv float %139, %138
  store float %140, ptr %19, align 4, !tbaa !11
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = load i32, ptr %16, align 4, !tbaa !5
  %143 = add i32 %142, 1
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = urem i32 %143, %144
  %146 = icmp eq i32 %145, 0
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, i32 42, i32 32
  %149 = load float, ptr %19, align 4, !tbaa !11
  %150 = fpext float %149 to double
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %141, i32 noundef %148, double noundef %150)
  br label %152

152:                                              ; preds = %130
  %153 = load i32, ptr %16, align 4, !tbaa !5
  %154 = add i32 %153, 1
  store i32 %154, ptr %16, align 4, !tbaa !5
  br label %114, !llvm.loop !16

155:                                              ; preds = %114
  %156 = load ptr, ptr %17, align 8, !tbaa !9
  %157 = call i32 @firfilt_rrrf_destroy(ptr noundef %156)
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %159 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %159)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %160

160:                                              ; preds = %155, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %161 = load i32, ptr %3, align 4
  ret i32 %161
}

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

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

declare i32 @liquid_firdes_rrcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #1

declare ptr @firfilt_rrrf_create(ptr noundef, i32 noundef) #1

declare i32 @firfilt_rrrf_push(ptr noundef, float noundef) #1

declare i32 @firfilt_rrrf_execute(ptr noundef, ptr noundef) #1

declare i32 @firfilt_rrrf_destroy(ptr noundef) #1

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

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

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 "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 = { inlinehint nounwind willreturn memory(read) 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 #5 = { noreturn 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 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca float, align 4
  br label %.outer

.outer:                                           ; preds = %13, %2
  %.047.ph = phi float [ %16, %13 ], [ 0x3FECCCCCC0000000, %2 ]
  %.045.ph = phi i32 [ %.045.ph87, %13 ], [ 2, %2 ]
  %.042.ph = phi i32 [ %.042, %13 ], [ 4, %2 ]
  br label %.outer86

.outer86:                                         ; preds = %.outer, %10
  %.045.ph87 = phi i32 [ %.045.ph, %.outer ], [ %12, %10 ]
  %.042.ph88 = phi i32 [ %.042.ph, %.outer ], [ %.042, %10 ]
  br label %4

4:                                                ; preds = %.outer86, %7
  %.042 = phi i32 [ %9, %7 ], [ %.042.ph88, %.outer86 ]
  %5 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5) #8
  switch i32 %5, label %17 [
    i32 -1, label %18
    i32 117, label %6
    i32 104, label %6
    i32 107, label %7
    i32 109, label %10
    i32 98, label %13
  ]

6:                                                ; preds = %4, %4
  tail call void @usage()
  br label %125

7:                                                ; preds = %4
  %8 = load ptr, ptr @optarg, align 8, !tbaa !5
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #9
  br label %4, !llvm.loop !9

10:                                               ; preds = %4
  %11 = load ptr, ptr @optarg, align 8, !tbaa !5
  %12 = tail call i32 @atoi(ptr nocapture noundef %11) #9
  br label %.outer86, !llvm.loop !9

13:                                               ; preds = %4
  %14 = load ptr, ptr @optarg, align 8, !tbaa !5
  %15 = tail call double @atof(ptr noundef %14) #9
  %16 = fptrunc double %15 to float
  br label %.outer, !llvm.loop !9

17:                                               ; preds = %4
  tail call void @exit(i32 noundef 1) #10
  unreachable

18:                                               ; preds = %4
  %19 = icmp ult i32 %.042, 2
  br i1 %19, label %20, label %24

20:                                               ; preds = %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.6, ptr noundef %22) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

24:                                               ; preds = %18
  %25 = icmp eq i32 %.045.ph87, 0
  br i1 %25, label %26, label %30

26:                                               ; preds = %24
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.7, ptr noundef %28) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

30:                                               ; preds = %24
  %31 = fcmp ole float %.047.ph, 0.000000e+00
  %32 = fcmp oge float %.047.ph, 1.000000e+00
  %or.cond = or i1 %31, %32
  br i1 %or.cond, label %33, label %37

33:                                               ; preds = %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = load ptr, ptr %1, align 8, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.8, ptr noundef %35) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

37:                                               ; preds = %30
  %38 = shl i32 %.042, 1
  %39 = mul i32 %38, %.045.ph87
  %40 = or disjoint i32 %39, 1
  %41 = zext i32 %40 to i64
  %42 = tail call ptr @llvm.stacksave.p0()
  %43 = alloca float, i64 %41, align 16
  %44 = call i32 @liquid_firdes_rrcos(i32 noundef %.042, i32 noundef %.045.ph87, float noundef %.047.ph, float noundef 0.000000e+00, ptr noundef nonnull %43) #8
  %45 = zext i32 %39 to i64
  %46 = alloca float, i64 %45, align 16
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %37
  %min.iters.check = icmp ult i32 %39, 16
  br i1 %min.iters.check, label %.lr.ph.preheader85, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %47 = add nsw i64 %45, -1
  %48 = add i32 %39, -1
  %49 = trunc i64 %47 to i32
  %50 = icmp ult i32 %48, %49
  %51 = icmp ugt i64 %47, 4294967295
  %52 = or i1 %50, %51
  br i1 %52, label %.lr.ph.preheader85, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %n.vec = and i64 %45, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %53 = trunc i64 %index to i32
  %54 = xor i32 %53, -1
  %55 = add i32 %39, %54
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %43, i64 %56
  %58 = getelementptr inbounds i8, ptr %57, i64 -12
  %59 = getelementptr inbounds i8, ptr %57, i64 -28
  %wide.load = load <4 x float>, ptr %58, align 4, !tbaa !11
  %reverse = shufflevector <4 x float> %wide.load, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load83 = load <4 x float>, ptr %59, align 4, !tbaa !11
  %reverse84 = shufflevector <4 x float> %wide.load83, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %60 = getelementptr inbounds float, ptr %46, i64 %index
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  store <4 x float> %reverse, ptr %60, align 16, !tbaa !11
  store <4 x float> %reverse84, ptr %61, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %62 = icmp eq i64 %index.next, %n.vec
  br i1 %62, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %45
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader85

.lr.ph.preheader85:                               ; preds = %middle.block, %vector.scevcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %45, 2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader85, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader85 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader85 ]
  %63 = trunc nuw i64 %indvars.iv.prol to i32
  %64 = xor i32 %63, -1
  %65 = add i32 %39, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %43, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = getelementptr inbounds float, ptr %46, i64 %indvars.iv.prol
  store float %68, ptr %69, align 4, !tbaa !11
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !16

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader85
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader85 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %70 = sub nsw i64 %indvars.iv.ph, %45
  %71 = icmp ugt i64 %70, -4
  br i1 %71, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %72 = trunc nuw i64 %indvars.iv to i32
  %73 = xor i32 %72, -1
  %74 = add i32 %39, %73
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %43, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = getelementptr inbounds float, ptr %46, i64 %indvars.iv
  store float %77, ptr %78, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = trunc nuw i64 %indvars.iv.next to i32
  %80 = xor i32 %79, -1
  %81 = add i32 %39, %80
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %43, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !11
  %85 = getelementptr inbounds float, ptr %46, i64 %indvars.iv.next
  store float %84, ptr %85, align 4, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %86 = trunc nuw i64 %indvars.iv.next.1 to i32
  %87 = xor i32 %86, -1
  %88 = add i32 %39, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %43, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = getelementptr inbounds float, ptr %46, i64 %indvars.iv.next.1
  store float %91, ptr %92, align 4, !tbaa !11
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %93 = trunc nuw i64 %indvars.iv.next.2 to i32
  %94 = xor i32 %93, -1
  %95 = add i32 %39, %94
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %43, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !11
  %99 = getelementptr inbounds float, ptr %46, i64 %indvars.iv.next.2
  store float %98, ptr %99, align 4, !tbaa !11
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %45
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %37
  %100 = call ptr @firfilt_rrrf_create(ptr noundef nonnull %46, i32 noundef %39) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %101 = shl i32 %39, 1
  %102 = add i32 %101, -1
  %103 = uitofp i32 %.042 to float
  %wide.trip.count69 = zext i32 %102 to i64
  br label %104

104:                                              ; preds = %._crit_edge, %109
  %indvars.iv66 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next67, %109 ]
  %105 = icmp ult i64 %indvars.iv66, %45
  br i1 %105, label %106, label %109

106:                                              ; preds = %104
  %107 = getelementptr inbounds float, ptr %43, i64 %indvars.iv66
  %108 = load float, ptr %107, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %104, %106
  %110 = phi float [ %108, %106 ], [ 0.000000e+00, %104 ]
  %111 = call i32 @firfilt_rrrf_push(ptr noundef %100, float noundef %110) #8
  %112 = call i32 @firfilt_rrrf_execute(ptr noundef %100, ptr noundef nonnull %3) #8
  %113 = load float, ptr %3, align 4, !tbaa !11
  %114 = fdiv float %113, %103
  store float %114, ptr %3, align 4, !tbaa !11
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %115 = trunc nuw i64 %indvars.iv.next67 to i32
  %116 = urem i32 %115, %.042
  %117 = icmp eq i32 %116, 0
  %118 = select i1 %117, i32 42, i32 32
  %119 = fpext float %114 to double
  %120 = trunc nuw i64 %indvars.iv66 to i32
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %120, i32 noundef %118, double noundef %119)
  %exitcond70.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count69
  br i1 %exitcond70.not, label %122, label %104, !llvm.loop !19

122:                                              ; preds = %109
  %123 = call i32 @firfilt_rrrf_destroy(ptr noundef %100) #8
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.stackrestore.p0(ptr %42)
  br label %125

125:                                              ; preds = %122, %6
  ret i32 0
}

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

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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

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

declare i32 @liquid_firdes_rrcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #7

declare ptr @firfilt_rrrf_create(ptr noundef, i32 noundef) local_unnamed_addr #7

declare i32 @firfilt_rrrf_push(ptr noundef, float noundef) local_unnamed_addr #7

declare i32 @firfilt_rrrf_execute(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @firfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #7

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

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #5 = { noreturn 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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }
attributes #11 = { cold 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10, !14}
!19 = distinct !{!19, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass