; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (qpacketmodem_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 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 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 @qpacketmodem_create(...) #1

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

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

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) #1

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

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

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

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #1

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) #1

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

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

declare float @randnf(...) #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qpacketmodem_copy() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 400, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 5, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 10, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 6, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 51, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %18 = call ptr (...) @qpacketmodem_create()
  store ptr %18, ptr %7, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !9
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = call i32 @qpacketmodem_configure(ptr noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = call i32 @qpacketmodem_get_frame_len(ptr noundef %26)
  store i32 %27, ptr %8, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = call ptr @llvm.stacksave.p0()
  store ptr %30, ptr %9, align 8
  %31 = alloca i8, i64 %29, align 16
  store i64 %29, ptr %10, align 8
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = alloca { float, float }, i64 %33, align 16
  store i64 %33, ptr %11, align 8
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = alloca { float, float }, i64 %36, align 16
  store i64 %36, ptr %12, align 8
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = alloca i8, i64 %39, align 16
  store i64 %39, ptr %13, align 8
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = alloca i8, i64 %42, align 16
  store i64 %42, ptr %14, align 8
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %55, %0
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %58

48:                                               ; preds = %44
  %49 = call i32 @rand() #5
  %50 = and i32 %49, 255
  %51 = trunc i32 %50 to i8
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %31, i64 %53
  store i8 %51, ptr %54, align 1, !tbaa !11
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = add i32 %56, 1
  store i32 %57, ptr %1, align 4, !tbaa !5
  br label %44, !llvm.loop !12

58:                                               ; preds = %44
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = call i32 @qpacketmodem_encode(ptr noundef %59, ptr noundef %31, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %61 = load ptr, ptr %7, align 8, !tbaa !9
  %62 = call ptr @qpacketmodem_copy(ptr noundef %61)
  store ptr %62, ptr %15, align 8, !tbaa !9
  %63 = load ptr, ptr %15, align 8, !tbaa !9
  %64 = call i32 @qpacketmodem_encode(ptr noundef %63, ptr noundef %31, ptr noundef %37)
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = call i32 @liquid_autotest_same_data(ptr noundef %34, ptr noundef %37, i32 noundef %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %75, label %68

68:                                               ; preds = %58
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 224, ptr noundef @.str.9)
  %69 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = load i32, ptr %8, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %34, i32 noundef %72)
  %73 = load i32, ptr %8, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %37, i32 noundef %73)
  br label %74

74:                                               ; preds = %71, %68
  br label %76

75:                                               ; preds = %58
  call void (...) @liquid_autotest_passed()
  br label %76

76:                                               ; preds = %75, %74
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %104, %76
  %78 = load i32, ptr %1, align 4, !tbaa !5
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %107

81:                                               ; preds = %77
  %82 = call float (...) @randnf()
  %83 = call float (...) @randnf()
  %84 = fmul float 0.000000e+00, %83
  %85 = fmul float 1.000000e+00, %83
  %86 = fadd float %82, %84
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds { float, float }, ptr %34, i64 %88
  %90 = getelementptr inbounds { float, float }, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds { float, float }, ptr %89, i32 0, i32 1
  store float %86, ptr %90, align 8
  store float %85, ptr %91, align 4
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds { float, float }, ptr %34, i64 %93
  %95 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 8
  %97 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 1
  %98 = load float, ptr %97, align 4
  %99 = load i32, ptr %1, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds { float, float }, ptr %37, i64 %100
  %102 = getelementptr inbounds { float, float }, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds { float, float }, ptr %101, i32 0, i32 1
  store float %96, ptr %102, align 8
  store float %98, ptr %103, align 4
  br label %104

104:                                              ; preds = %81
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = add i32 %105, 1
  store i32 %106, ptr %1, align 4, !tbaa !5
  br label %77, !llvm.loop !14

107:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %108 = load ptr, ptr %7, align 8, !tbaa !9
  %109 = call i32 @qpacketmodem_decode(ptr noundef %108, ptr noundef %34, ptr noundef %40)
  store i32 %109, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %110 = load ptr, ptr %15, align 8, !tbaa !9
  %111 = call i32 @qpacketmodem_decode(ptr noundef %110, ptr noundef %37, ptr noundef %43)
  store i32 %111, ptr %17, align 4, !tbaa !5
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = call i32 @liquid_autotest_same_data(ptr noundef %40, ptr noundef %43, i32 noundef %112)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %122, label %115

115:                                              ; preds = %107
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 237, ptr noundef @.str.10)
  %116 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %121

118:                                              ; preds = %115
  %119 = load i32, ptr %2, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %40, i32 noundef %119)
  %120 = load i32, ptr %2, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %43, i32 noundef %120)
  br label %121

121:                                              ; preds = %118, %115
  br label %123

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

123:                                              ; preds = %122, %121
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = load i32, ptr %17, align 4, !tbaa !5
  %126 = icmp ne i32 %124, %125
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = sitofp i32 %128 to double
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = sitofp i32 %130 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 238, ptr noundef @.str.11, double noundef %129, ptr noundef @.str.2, ptr noundef @.str.12, double noundef %131)
  br label %133

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

133:                                              ; preds = %132, %127
  %134 = load ptr, ptr %7, align 8, !tbaa !9
  %135 = call i32 @qpacketmodem_destroy(ptr noundef %134)
  %136 = load ptr, ptr %15, align 8, !tbaa !9
  %137 = call i32 @qpacketmodem_destroy(ptr noundef %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %138 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %138)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

declare ptr @qpacketmodem_copy(ptr noundef) #1

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

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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1

declare ptr @qpacketmodem_create(...) local_unnamed_addr #0

declare i32 @qpacketmodem_configure(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

declare i32 @qpacketmodem_get_frame_len(ptr noundef) local_unnamed_addr #0

declare i32 @qpacketmodem_encode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @qpacketmodem_destroy(ptr noundef) local_unnamed_addr #0

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

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

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qpacketmodem_copy() local_unnamed_addr #2 {
  %1 = tail call ptr (...) @qpacketmodem_create() #3
  %2 = tail call i32 @qpacketmodem_configure(ptr noundef %1, i32 noundef 400, i32 noundef 5, i32 noundef 10, i32 noundef 6, i32 noundef 51) #3
  %3 = tail call i32 @qpacketmodem_get_frame_len(ptr noundef %1) #3
  %4 = alloca [400 x i8], align 16
  %5 = zext i32 %3 to i64
  %6 = alloca { float, float }, i64 %5, align 16
  %7 = alloca { float, float }, i64 %5, align 16
  %8 = alloca [400 x i8], align 16
  %9 = alloca [400 x i8], align 16
  br label %10

10:                                               ; preds = %0, %10
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %10 ]
  %11 = tail call i32 @rand() #3
  %12 = trunc i32 %11 to i8
  %13 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv
  store i8 %12, ptr %13, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 400
  br i1 %exitcond.not, label %14, label %10, !llvm.loop !8

14:                                               ; preds = %10
  %15 = call i32 @qpacketmodem_encode(ptr noundef %1, ptr noundef nonnull %4, ptr noundef nonnull %6) #3
  %16 = call ptr @qpacketmodem_copy(ptr noundef %1) #3
  %17 = call i32 @qpacketmodem_encode(ptr noundef %16, ptr noundef nonnull %4, ptr noundef nonnull %7) #3
  %18 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef %3) #3
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %19, label %22

19:                                               ; preds = %14
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 224, ptr noundef nonnull @.str.9) #3
  %20 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !10
  %.not41 = icmp eq i32 %20, 0
  br i1 %.not41, label %.preheader, label %21

21:                                               ; preds = %19
  call void @liquid_autotest_print_array(ptr noundef nonnull %6, i32 noundef %3) #3
  call void @liquid_autotest_print_array(ptr noundef nonnull %7, i32 noundef %3) #3
  br label %.preheader

22:                                               ; preds = %14
  call void (...) @liquid_autotest_passed() #3
  br label %.preheader

.preheader:                                       ; preds = %19, %21, %22
  br label %23

23:                                               ; preds = %.preheader, %23
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %23 ], [ 0, %.preheader ]
  %24 = call float (...) @randnf() #3
  %25 = call float (...) @randnf() #3
  %26 = fmul float %25, 0.000000e+00
  %27 = fadd float %24, %26
  %28 = getelementptr inbounds { float, float }, ptr %6, i64 %indvars.iv48
  %29 = getelementptr inbounds i8, ptr %28, i64 4
  store float %27, ptr %28, align 8
  store float %25, ptr %29, align 4
  %30 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv48
  %31 = getelementptr inbounds i8, ptr %30, i64 4
  store float %27, ptr %30, align 8
  store float %25, ptr %31, align 4
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next49, 400
  br i1 %exitcond51.not, label %32, label %23, !llvm.loop !12

32:                                               ; preds = %23
  %33 = call i32 @qpacketmodem_decode(ptr noundef %1, ptr noundef nonnull %6, ptr noundef nonnull %8) #3
  %34 = call i32 @qpacketmodem_decode(ptr noundef %16, ptr noundef nonnull %7, ptr noundef nonnull %9) #3
  %35 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef 400) #3
  %.not42 = icmp eq i32 %35, 0
  br i1 %.not42, label %36, label %39

36:                                               ; preds = %32
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 237, ptr noundef nonnull @.str.10) #3
  %37 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !10
  %.not43 = icmp eq i32 %37, 0
  br i1 %.not43, label %40, label %38

38:                                               ; preds = %36
  call void @liquid_autotest_print_array(ptr noundef nonnull %8, i32 noundef 400) #3
  call void @liquid_autotest_print_array(ptr noundef nonnull %9, i32 noundef 400) #3
  br label %40

39:                                               ; preds = %32
  call void (...) @liquid_autotest_passed() #3
  br label %40

40:                                               ; preds = %36, %38, %39
  %.not44 = icmp eq i32 %33, %34
  br i1 %.not44, label %44, label %41

41:                                               ; preds = %40
  %42 = sitofp i32 %33 to double
  %43 = sitofp i32 %34 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 238, ptr noundef nonnull @.str.11, double noundef %42, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.12, double noundef %43) #3
  br label %45

44:                                               ; preds = %40
  call void (...) @liquid_autotest_passed() #3
  br label %45

45:                                               ; preds = %44, %41
  %46 = call i32 @qpacketmodem_destroy(ptr noundef %1) #3
  %47 = call i32 @qpacketmodem_destroy(ptr noundef %16) #3
  ret void
}

declare ptr @qpacketmodem_copy(ptr noundef) local_unnamed_addr #0

declare i32 @qpacketmodem_decode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 = { 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 }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !9}


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