; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (msresamp_crcf_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"

@liquid_autotest_verbose = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 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

declare ptr @msresamp_crcf_create(float noundef, float noundef) #1

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

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

declare i32 @msresamp_crcf_destroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp_crcf_num_output(float noundef %0) #2 {
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [10 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store float %0, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %22

18:                                               ; preds = %1
  %19 = load float, ptr %2, align 4, !tbaa !5
  %20 = fpext float %19 to double
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %20)
  br label %22

22:                                               ; preds = %18, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 6.000000e+01, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %23 = load float, ptr %2, align 4, !tbaa !5
  %24 = load float, ptr %3, align 4, !tbaa !5
  %25 = call ptr @msresamp_crcf_create(float noundef %23, float noundef %24)
  store ptr %25, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %26 = load float, ptr %2, align 4, !tbaa !5
  %27 = fcmp olt float %26, 0x3FB99999A0000000
  %28 = zext i1 %27 to i64
  %29 = select i1 %27, i32 131, i32 1
  store i32 %29, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = mul i32 1, %30
  store i32 %31, ptr %6, align 4, !tbaa !9
  %32 = getelementptr inbounds i32, ptr %6, i64 1
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = mul i32 2, %33
  store i32 %34, ptr %32, align 4, !tbaa !9
  %35 = getelementptr inbounds i32, ptr %6, i64 2
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = mul i32 3, %36
  store i32 %37, ptr %35, align 4, !tbaa !9
  %38 = getelementptr inbounds i32, ptr %6, i64 3
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = mul i32 20, %39
  store i32 %40, ptr %38, align 4, !tbaa !9
  %41 = getelementptr inbounds i32, ptr %6, i64 4
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = mul i32 7, %42
  store i32 %43, ptr %41, align 4, !tbaa !9
  %44 = getelementptr inbounds i32, ptr %6, i64 5
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = mul i32 64, %45
  store i32 %46, ptr %44, align 4, !tbaa !9
  %47 = getelementptr inbounds i32, ptr %6, i64 6
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = mul i32 4, %48
  store i32 %49, ptr %47, align 4, !tbaa !9
  %50 = getelementptr inbounds i32, ptr %6, i64 7
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = mul i32 4, %51
  store i32 %52, ptr %50, align 4, !tbaa !9
  %53 = getelementptr inbounds i32, ptr %6, i64 8
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = mul i32 4, %54
  store i32 %55, ptr %53, align 4, !tbaa !9
  %56 = getelementptr inbounds i32, ptr %6, i64 9
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = mul i32 27, %57
  store i32 %58, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = mul i32 64, %59
  store i32 %60, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = uitofp i32 %61 to float
  %63 = fmul float 4.000000e+00, %62
  %64 = load float, ptr %2, align 4, !tbaa !5
  %65 = fmul float %63, %64
  %66 = fptoui float %65 to i32
  %67 = add i32 16, %66
  store i32 %67, ptr %8, align 4, !tbaa !9
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %68, i32 noundef %69)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = mul i64 %72, 8
  %74 = call noalias ptr @malloc(i64 noundef %73) #6
  store ptr %74, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = mul i64 %76, 8
  %78 = call noalias ptr @malloc(i64 noundef %77) #6
  store ptr %78, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %90, %22
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %93

83:                                               ; preds = %79
  %84 = load ptr, ptr %9, align 8, !tbaa !11
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds { float, float }, ptr %84, i64 %86
  %88 = getelementptr inbounds { float, float }, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds { float, float }, ptr %87, i32 0, i32 1
  store float 0.000000e+00, ptr %88, align 4
  store float 0.000000e+00, ptr %89, align 4
  br label %90

90:                                               ; preds = %83
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = add i32 %91, 1
  store i32 %92, ptr %11, align 4, !tbaa !9
  br label %79, !llvm.loop !13

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %138, %93
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = icmp ult i32 %95, 8
  br i1 %96, label %97, label %141

97:                                               ; preds = %94
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %134, %97
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = icmp ult i32 %99, 10
  br i1 %100, label %101, label %137

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  store i32 %105, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %106 = load ptr, ptr %4, align 8, !tbaa !11
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = call i32 @msresamp_crcf_get_num_output(ptr noundef %106, i32 noundef %107)
  store i32 %108, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %109 = load ptr, ptr %4, align 8, !tbaa !11
  %110 = load ptr, ptr %9, align 8, !tbaa !11
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = load ptr, ptr %10, align 8, !tbaa !11
  %113 = call i32 @msresamp_crcf_execute(ptr noundef %109, ptr noundef %110, i32 noundef %111, ptr noundef %112, ptr noundef %15)
  %114 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %123

116:                                              ; preds = %101
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %121)
  br label %123

123:                                              ; preds = %116, %101
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = icmp ne i32 %124, %125
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = uitofp i32 %128 to double
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = uitofp i32 %130 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.4, i32 noundef 119, ptr noundef @.str.5, double noundef %129, ptr noundef @.str.6, ptr noundef @.str.7, double noundef %131)
  br label %133

132:                                              ; preds = %123
  call void (...) @liquid_autotest_passed()
  br label %133

133:                                              ; preds = %132, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = add i32 %135, 1
  store i32 %136, ptr %11, align 4, !tbaa !9
  br label %98, !llvm.loop !15

137:                                              ; preds = %98
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = add i32 %139, 1
  store i32 %140, ptr %12, align 4, !tbaa !9
  br label %94, !llvm.loop !16

141:                                              ; preds = %94
  %142 = load ptr, ptr %9, align 8, !tbaa !11
  call void @free(ptr noundef %142) #5
  %143 = load ptr, ptr %10, align 8, !tbaa !11
  call void @free(ptr noundef %143) #5
  %144 = load ptr, ptr %4, align 8, !tbaa !11
  %145 = call i32 @msresamp_crcf_destroy(ptr noundef %144)
  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 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

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

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

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

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

declare void @liquid_autotest_passed(...) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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"="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 = { 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 #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 = !{!"float", !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, !12, i64 0}
!12 = !{!"any pointer", !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"

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare ptr @msresamp_crcf_create(float noundef, float noundef) local_unnamed_addr #1

declare i32 @msresamp_crcf_execute(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @msresamp_crcf_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp_crcf_num_output(float noundef %0) local_unnamed_addr #2 {
  %2 = alloca [10 x i32], align 16
  %3 = alloca i32, align 4
  %4 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.preheader.preheader, label %5

5:                                                ; preds = %1
  %6 = fpext float %0 to double
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %6)
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %5, %1
  %8 = tail call ptr @msresamp_crcf_create(float noundef %0, float noundef 6.000000e+01) #7
  %9 = fcmp olt float %0, 0x3FB99999A0000000
  %10 = select i1 %9, i32 131, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  store i32 %10, ptr %2, align 16, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  %12 = shl nuw nsw i32 %10, 1
  store i32 %12, ptr %11, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  %14 = mul nuw nsw i32 %10, 3
  store i32 %14, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %2, i64 12
  %16 = mul nuw nsw i32 %10, 20
  store i32 %16, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = mul nuw nsw i32 %10, 7
  store i32 %18, ptr %17, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %2, i64 20
  %20 = shl nuw nsw i32 %10, 6
  store i32 %20, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  %22 = shl nuw nsw i32 %10, 2
  store i32 %22, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %22, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %2, i64 32
  store i32 %22, ptr %24, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %2, i64 36
  %26 = mul nuw nsw i32 %10, 27
  store i32 %26, ptr %25, align 4, !tbaa !5
  %27 = shl nuw nsw i32 %10, 8
  %28 = uitofp nneg i32 %27 to float
  %29 = fmul float %28, %0
  %30 = fptoui float %29 to i32
  %31 = add i32 %30, 16
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %20, i32 noundef %31)
  %33 = shl nuw nsw i32 %10, 9
  %34 = zext nneg i32 %33 to i64
  %35 = tail call noalias ptr @malloc(i64 noundef %34) #8
  %36 = zext i32 %31 to i64
  %37 = shl nuw nsw i64 %36, 3
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #8
  %39 = shl nuw nsw i32 %10, 9
  %40 = zext nneg i32 %39 to i64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %35, i8 0, i64 %40, i1 false)
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %58
  %.04553 = phi i32 [ %59, %58 ], [ 0, %.preheader.preheader ]
  br label %41

41:                                               ; preds = %.preheader, %57
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %57 ]
  %42 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call i32 @msresamp_crcf_get_num_output(ptr noundef %8, i32 noundef %43) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %45 = call i32 @msresamp_crcf_execute(ptr noundef %8, ptr noundef %35, i32 noundef %43, ptr noundef %38, ptr noundef nonnull %3) #7
  %46 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not48 = icmp eq i32 %46, 0
  br i1 %.not48, label %51, label %47

47:                                               ; preds = %41
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = trunc nuw nsw i64 %indvars.iv to i32
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.04553, i32 noundef %49, i32 noundef %43, i32 noundef %44, i32 noundef %48)
  br label %51

51:                                               ; preds = %47, %41
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %.not49 = icmp eq i32 %44, %52
  br i1 %.not49, label %56, label %53

53:                                               ; preds = %51
  %54 = uitofp i32 %44 to double
  %55 = uitofp i32 %52 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.4, i32 noundef 119, ptr noundef nonnull @.str.5, double noundef %54, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, double noundef %55) #7
  br label %57

56:                                               ; preds = %51
  call void (...) @liquid_autotest_passed() #7
  br label %57

57:                                               ; preds = %56, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %58, label %41, !llvm.loop !9

58:                                               ; preds = %57
  %59 = add nuw nsw i32 %.04553, 1
  %exitcond56.not = icmp eq i32 %59, 8
  br i1 %exitcond56.not, label %60, label %.preheader, !llvm.loop !11

60:                                               ; preds = %58
  call void @free(ptr noundef %35) #7
  call void @free(ptr noundef %38) #7
  %61 = call i32 @msresamp_crcf_destroy(ptr noundef %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  ret void
}

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

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

declare i32 @msresamp_crcf_get_num_output(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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"="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 = { 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 #4 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass