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

@.str = external hidden unnamed_addr constant [94 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@__const.autotest_pack_bytes_01.input = external hidden unnamed_addr constant [36 x i8], align 16
@__const.autotest_pack_bytes_01.output_test_01 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_02 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_03 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_04 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

declare void @liquid_autotest_passed(...) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_pack_bytes_01() #3 {
  %1 = alloca [8 x i8], align 1
  %2 = alloca i32, align 4
  %3 = alloca [36 x i8], align 16
  %4 = alloca [4 x i8], align 1
  %5 = alloca [4 x i8], align 1
  %6 = alloca [4 x i8], align 1
  %7 = alloca [3 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.autotest_pack_bytes_01.input, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.autotest_pack_bytes_01.output_test_01, i64 4, i1 false)
  %8 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %9 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %10 = call i32 @liquid_pack_bytes(ptr noundef %8, i32 noundef 32, ptr noundef %9, i32 noundef 8, ptr noundef %2)
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp ne i32 %11, 4
  br i1 %12, label %13, label %16

13:                                               ; preds = %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = uitofp i32 %14 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 144, ptr noundef @.str.4, double noundef %15, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 4.000000e+00)
  br label %17

16:                                               ; preds = %0
  call void (...) @liquid_autotest_passed()
  br label %17

17:                                               ; preds = %16, %13
  %18 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %19 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
  %20 = call i32 @liquid_autotest_same_data(ptr noundef %18, ptr noundef %19, i32 noundef 4)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %29, label %22

22:                                               ; preds = %17
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 145, ptr noundef @.str.7)
  %23 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %26, i32 noundef 4)
  %27 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %27, i32 noundef 4)
  br label %28

28:                                               ; preds = %25, %22
  br label %30

29:                                               ; preds = %17
  call void (...) @liquid_autotest_passed()
  br label %30

30:                                               ; preds = %29, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.autotest_pack_bytes_01.output_test_02, i64 4, i1 false)
  %31 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %32 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %33 = call i32 @liquid_pack_bytes(ptr noundef %31, i32 noundef 28, ptr noundef %32, i32 noundef 8, ptr noundef %2)
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = icmp ne i32 %34, 4
  br i1 %35, label %36, label %39

36:                                               ; preds = %30
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = uitofp i32 %37 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 150, ptr noundef @.str.4, double noundef %38, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 4.000000e+00)
  br label %40

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

40:                                               ; preds = %39, %36
  %41 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %42 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
  %43 = call i32 @liquid_autotest_same_data(ptr noundef %41, ptr noundef %42, i32 noundef 4)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %52, label %45

45:                                               ; preds = %40
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 151, ptr noundef @.str.8)
  %46 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %49, i32 noundef 4)
  %50 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %50, i32 noundef 4)
  br label %51

51:                                               ; preds = %48, %45
  br label %53

52:                                               ; preds = %40
  call void (...) @liquid_autotest_passed()
  br label %53

53:                                               ; preds = %52, %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.autotest_pack_bytes_01.output_test_03, i64 4, i1 false)
  %54 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %55 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %56 = call i32 @liquid_pack_bytes(ptr noundef %54, i32 noundef 25, ptr noundef %55, i32 noundef 8, ptr noundef %2)
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = icmp ne i32 %57, 4
  br i1 %58, label %59, label %62

59:                                               ; preds = %53
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = uitofp i32 %60 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 156, ptr noundef @.str.4, double noundef %61, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 4.000000e+00)
  br label %63

62:                                               ; preds = %53
  call void (...) @liquid_autotest_passed()
  br label %63

63:                                               ; preds = %62, %59
  %64 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %65 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %66 = call i32 @liquid_autotest_same_data(ptr noundef %64, ptr noundef %65, i32 noundef 4)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %75, label %68

68:                                               ; preds = %63
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 157, 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 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %72, i32 noundef 4)
  %73 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %73, i32 noundef 4)
  br label %74

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

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

76:                                               ; preds = %75, %74
  call void @llvm.lifetime.start.p0(i64 3, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.autotest_pack_bytes_01.output_test_04, i64 3, i1 false)
  %77 = getelementptr inbounds [36 x i8], ptr %3, i64 0, i64 0
  %78 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %79 = call i32 @liquid_pack_bytes(ptr noundef %77, i32 noundef 24, ptr noundef %78, i32 noundef 8, ptr noundef %2)
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = icmp ne i32 %80, 3
  br i1 %81, label %82, label %85

82:                                               ; preds = %76
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = uitofp i32 %83 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 162, ptr noundef @.str.4, double noundef %84, ptr noundef @.str.5, ptr noundef @.str.10, double noundef 3.000000e+00)
  br label %86

85:                                               ; preds = %76
  call void (...) @liquid_autotest_passed()
  br label %86

86:                                               ; preds = %85, %82
  %87 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  %88 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
  %89 = call i32 @liquid_autotest_same_data(ptr noundef %87, ptr noundef %88, i32 noundef 3)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %98, label %91

91:                                               ; preds = %86
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 163, ptr noundef @.str.11)
  %92 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = getelementptr inbounds [8 x i8], ptr %1, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %95, i32 noundef 3)
  %96 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %96, i32 noundef 3)
  br label %97

97:                                               ; preds = %94, %91
  br label %99

98:                                               ; preds = %86
  call void (...) @liquid_autotest_passed()
  br label %99

99:                                               ; preds = %98, %97
  call void @llvm.lifetime.end.p0(i64 3, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

declare i32 @liquid_pack_bytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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


; 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 [94 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@__const.autotest_pack_bytes_01.input = external hidden unnamed_addr constant [36 x i8], align 16
@__const.autotest_pack_bytes_01.output_test_01 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_02 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_03 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@__const.autotest_pack_bytes_01.output_test_04 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_pack_bytes_01() local_unnamed_addr #3 {
  %1 = alloca [8 x i8], align 1
  %2 = alloca i32, align 4
  %3 = alloca [36 x i8], align 16
  %4 = alloca [4 x i8], align 4
  %5 = alloca [4 x i8], align 4
  %6 = alloca [4 x i8], align 4
  %7 = alloca [3 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %3, ptr noundef nonnull align 16 dereferenceable(36) @__const.autotest_pack_bytes_01.input, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %8 = load i32, ptr @__const.autotest_pack_bytes_01.output_test_01, align 1
  store i32 %8, ptr %4, align 4
  %9 = call i32 @liquid_pack_bytes(ptr noundef nonnull %3, i32 noundef 32, ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2) #4
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %10, 4
  br i1 %.not, label %13, label %11

11:                                               ; preds = %0
  %12 = uitofp i32 %10 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 144, ptr noundef nonnull @.str.4, double noundef %12, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 4.000000e+00) #4
  br label %14

13:                                               ; preds = %0
  call void (...) @liquid_autotest_passed() #4
  br label %14

14:                                               ; preds = %13, %11
  %15 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %1, ptr noundef nonnull %4, i32 noundef 4) #4
  %.not4 = icmp eq i32 %15, 0
  br i1 %.not4, label %16, label %19

16:                                               ; preds = %14
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 145, ptr noundef nonnull @.str.7) #4
  %17 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not5 = icmp eq i32 %17, 0
  br i1 %.not5, label %20, label %18

18:                                               ; preds = %16
  call void @liquid_autotest_print_array(ptr noundef nonnull %1, i32 noundef 4) #4
  call void @liquid_autotest_print_array(ptr noundef nonnull %4, i32 noundef 4) #4
  br label %20

19:                                               ; preds = %14
  call void (...) @liquid_autotest_passed() #4
  br label %20

20:                                               ; preds = %16, %18, %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %21 = load i32, ptr @__const.autotest_pack_bytes_01.output_test_02, align 1
  store i32 %21, ptr %5, align 4
  %22 = call i32 @liquid_pack_bytes(ptr noundef nonnull %3, i32 noundef 28, ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2) #4
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %.not6 = icmp eq i32 %23, 4
  br i1 %.not6, label %26, label %24

24:                                               ; preds = %20
  %25 = uitofp i32 %23 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 150, ptr noundef nonnull @.str.4, double noundef %25, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 4.000000e+00) #4
  br label %27

26:                                               ; preds = %20
  call void (...) @liquid_autotest_passed() #4
  br label %27

27:                                               ; preds = %26, %24
  %28 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %1, ptr noundef nonnull %5, i32 noundef 4) #4
  %.not7 = icmp eq i32 %28, 0
  br i1 %.not7, label %29, label %32

29:                                               ; preds = %27
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 151, ptr noundef nonnull @.str.8) #4
  %30 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not8 = icmp eq i32 %30, 0
  br i1 %.not8, label %33, label %31

31:                                               ; preds = %29
  call void @liquid_autotest_print_array(ptr noundef nonnull %1, i32 noundef 4) #4
  call void @liquid_autotest_print_array(ptr noundef nonnull %5, i32 noundef 4) #4
  br label %33

32:                                               ; preds = %27
  call void (...) @liquid_autotest_passed() #4
  br label %33

33:                                               ; preds = %29, %31, %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %34 = load i32, ptr @__const.autotest_pack_bytes_01.output_test_03, align 1
  store i32 %34, ptr %6, align 4
  %35 = call i32 @liquid_pack_bytes(ptr noundef nonnull %3, i32 noundef 25, ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2) #4
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %.not9 = icmp eq i32 %36, 4
  br i1 %.not9, label %39, label %37

37:                                               ; preds = %33
  %38 = uitofp i32 %36 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 156, ptr noundef nonnull @.str.4, double noundef %38, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 4.000000e+00) #4
  br label %40

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

40:                                               ; preds = %39, %37
  %41 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %1, ptr noundef nonnull %6, i32 noundef 4) #4
  %.not10 = icmp eq i32 %41, 0
  br i1 %.not10, label %42, label %45

42:                                               ; preds = %40
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 157, ptr noundef nonnull @.str.9) #4
  %43 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not11 = icmp eq i32 %43, 0
  br i1 %.not11, label %46, label %44

44:                                               ; preds = %42
  call void @liquid_autotest_print_array(ptr noundef nonnull %1, i32 noundef 4) #4
  call void @liquid_autotest_print_array(ptr noundef nonnull %6, i32 noundef 4) #4
  br label %46

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

46:                                               ; preds = %42, %44, %45
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %7, ptr noundef nonnull align 1 dereferenceable(3) @__const.autotest_pack_bytes_01.output_test_04, i64 3, i1 false)
  %47 = call i32 @liquid_pack_bytes(ptr noundef nonnull %3, i32 noundef 24, ptr noundef nonnull %1, i32 noundef 8, ptr noundef nonnull %2) #4
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %.not12 = icmp eq i32 %48, 3
  br i1 %.not12, label %51, label %49

49:                                               ; preds = %46
  %50 = uitofp i32 %48 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 162, ptr noundef nonnull @.str.4, double noundef %50, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.10, double noundef 3.000000e+00) #4
  br label %52

51:                                               ; preds = %46
  call void (...) @liquid_autotest_passed() #4
  br label %52

52:                                               ; preds = %51, %49
  %53 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %1, ptr noundef nonnull %7, i32 noundef 3) #4
  %.not13 = icmp eq i32 %53, 0
  br i1 %.not13, label %54, label %57

54:                                               ; preds = %52
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 163, ptr noundef nonnull @.str.11) #4
  %55 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not14 = icmp eq i32 %55, 0
  br i1 %.not14, label %58, label %56

56:                                               ; preds = %54
  call void @liquid_autotest_print_array(ptr noundef nonnull %1, i32 noundef 3) #4
  call void @liquid_autotest_print_array(ptr noundef nonnull %7, i32 noundef 3) #4
  br label %58

57:                                               ; preds = %52
  call void (...) @liquid_autotest_passed() #4
  br label %58

58:                                               ; preds = %54, %56, %57
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void
}

declare i32 @liquid_pack_bytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SimplifyCFGPass