; LLVM IR from jgaeddert/liquid-dsp :: src/fec/tests (packetizer_copy_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 [95 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1

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

43:                                               ; preds = %54, %0
  %44 = load i32, ptr %13, align 4, !tbaa !5
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %47, label %57

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

54:                                               ; preds = %47
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = add i32 %55, 1
  store i32 %56, ptr %13, align 4, !tbaa !5
  br label %43, !llvm.loop !12

57:                                               ; preds = %43
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = call i32 @packetizer_encode(ptr noundef %58, ptr noundef %25, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %60 = load ptr, ptr %12, align 8, !tbaa !9
  %61 = call ptr @packetizer_copy(ptr noundef %60)
  store ptr %61, ptr %14, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !9
  %63 = call i32 @packetizer_encode(ptr noundef %62, ptr noundef %25, ptr noundef %31)
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = call i32 @liquid_autotest_same_data(ptr noundef %28, ptr noundef %31, i32 noundef %64)
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %74, label %67

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

70:                                               ; preds = %67
  %71 = load i32, ptr %5, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %28, i32 noundef %71)
  %72 = load i32, ptr %5, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %31, i32 noundef %72)
  br label %73

73:                                               ; preds = %70, %67
  br label %75

74:                                               ; preds = %57
  call void (...) @liquid_autotest_passed()
  br label %75

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

76:                                               ; preds = %94, %75
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = icmp ult i32 %77, %78
  br i1 %79, label %80, label %97

80:                                               ; preds = %76
  %81 = call i32 @rand() #5
  %82 = and i32 %81, 255
  %83 = trunc i32 %82 to i8
  %84 = load i32, ptr %13, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %28, i64 %85
  store i8 %83, ptr %86, align 1, !tbaa !11
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %28, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %31, i64 %92
  store i8 %90, ptr %93, align 1, !tbaa !11
  br label %94

94:                                               ; preds = %80
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = add i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !5
  br label %76, !llvm.loop !14

97:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %98 = load ptr, ptr %12, align 8, !tbaa !9
  %99 = call i32 @packetizer_decode(ptr noundef %98, ptr noundef %28, ptr noundef %34)
  store i32 %99, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %100 = load ptr, ptr %14, align 8, !tbaa !9
  %101 = call i32 @packetizer_decode(ptr noundef %100, ptr noundef %31, ptr noundef %37)
  store i32 %101, ptr %16, align 4, !tbaa !5
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = call i32 @liquid_autotest_same_data(ptr noundef %34, ptr noundef %37, i32 noundef %102)
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %112, label %105

105:                                              ; preds = %97
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 71, ptr noundef @.str.2)
  %106 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = load i32, ptr %1, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %34, i32 noundef %109)
  %110 = load i32, ptr %1, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %37, i32 noundef %110)
  br label %111

111:                                              ; preds = %108, %105
  br label %113

112:                                              ; preds = %97
  call void (...) @liquid_autotest_passed()
  br label %113

113:                                              ; preds = %112, %111
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = load i32, ptr %16, align 4, !tbaa !5
  %116 = icmp ne i32 %114, %115
  br i1 %116, label %117, label %122

117:                                              ; preds = %113
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = sitofp i32 %118 to double
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = sitofp i32 %120 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 72, ptr noundef @.str.3, double noundef %119, ptr noundef @.str.4, ptr noundef @.str.5, double noundef %121)
  br label %123

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

123:                                              ; preds = %122, %117
  %124 = load ptr, ptr %12, align 8, !tbaa !9
  %125 = call i32 @packetizer_destroy(ptr noundef %124)
  %126 = load ptr, ptr %14, align 8, !tbaa !9
  %127 = call i32 @packetizer_destroy(ptr noundef %126)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %128 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %128)
  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
}

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

declare i32 @packetizer_compute_enc_msg_len(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

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

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

declare ptr @packetizer_copy(ptr noundef) #2

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

declare i32 @packetizer_decode(ptr noundef, ptr 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

declare i32 @packetizer_destroy(ptr noundef) #2

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

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

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 = { nocallback nofree nosync 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 = { nocallback nofree nosync nounwind willreturn }
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 }

!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"

@.str = external hidden unnamed_addr constant [95 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_packetizer_copy() local_unnamed_addr #0 {
  %1 = tail call i32 @packetizer_compute_enc_msg_len(i32 noundef 57, i32 noundef 6, i32 noundef 6, i32 noundef 7) #3
  %2 = alloca [57 x i8], align 16
  %3 = zext i32 %1 to i64
  %4 = alloca i8, i64 %3, align 16
  %5 = alloca i8, i64 %3, align 16
  %6 = alloca [57 x i8], align 16
  %7 = alloca [57 x i8], align 16
  %8 = tail call ptr @packetizer_create(i32 noundef 57, i32 noundef 6, i32 noundef 6, i32 noundef 7) #3
  %9 = tail call i32 @rand() #3
  %10 = trunc i32 %9 to i8
  store i8 %10, ptr %2, align 16, !tbaa !5
  %11 = tail call i32 @rand() #3
  %12 = trunc i32 %11 to i8
  %13 = getelementptr inbounds i8, ptr %2, i64 1
  store i8 %12, ptr %13, align 1, !tbaa !5
  %14 = tail call i32 @rand() #3
  %15 = trunc i32 %14 to i8
  %16 = getelementptr inbounds i8, ptr %2, i64 2
  store i8 %15, ptr %16, align 2, !tbaa !5
  %17 = tail call i32 @rand() #3
  %18 = trunc i32 %17 to i8
  %19 = getelementptr inbounds i8, ptr %2, i64 3
  store i8 %18, ptr %19, align 1, !tbaa !5
  %20 = tail call i32 @rand() #3
  %21 = trunc i32 %20 to i8
  %22 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 %21, ptr %22, align 4, !tbaa !5
  %23 = tail call i32 @rand() #3
  %24 = trunc i32 %23 to i8
  %25 = getelementptr inbounds i8, ptr %2, i64 5
  store i8 %24, ptr %25, align 1, !tbaa !5
  %26 = tail call i32 @rand() #3
  %27 = trunc i32 %26 to i8
  %28 = getelementptr inbounds i8, ptr %2, i64 6
  store i8 %27, ptr %28, align 2, !tbaa !5
  %29 = tail call i32 @rand() #3
  %30 = trunc i32 %29 to i8
  %31 = getelementptr inbounds i8, ptr %2, i64 7
  store i8 %30, ptr %31, align 1, !tbaa !5
  %32 = tail call i32 @rand() #3
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  store i8 %33, ptr %34, align 8, !tbaa !5
  %35 = tail call i32 @rand() #3
  %36 = trunc i32 %35 to i8
  %37 = getelementptr inbounds i8, ptr %2, i64 9
  store i8 %36, ptr %37, align 1, !tbaa !5
  %38 = tail call i32 @rand() #3
  %39 = trunc i32 %38 to i8
  %40 = getelementptr inbounds i8, ptr %2, i64 10
  store i8 %39, ptr %40, align 2, !tbaa !5
  %41 = tail call i32 @rand() #3
  %42 = trunc i32 %41 to i8
  %43 = getelementptr inbounds i8, ptr %2, i64 11
  store i8 %42, ptr %43, align 1, !tbaa !5
  %44 = tail call i32 @rand() #3
  %45 = trunc i32 %44 to i8
  %46 = getelementptr inbounds i8, ptr %2, i64 12
  store i8 %45, ptr %46, align 4, !tbaa !5
  %47 = tail call i32 @rand() #3
  %48 = trunc i32 %47 to i8
  %49 = getelementptr inbounds i8, ptr %2, i64 13
  store i8 %48, ptr %49, align 1, !tbaa !5
  %50 = tail call i32 @rand() #3
  %51 = trunc i32 %50 to i8
  %52 = getelementptr inbounds i8, ptr %2, i64 14
  store i8 %51, ptr %52, align 2, !tbaa !5
  %53 = tail call i32 @rand() #3
  %54 = trunc i32 %53 to i8
  %55 = getelementptr inbounds i8, ptr %2, i64 15
  store i8 %54, ptr %55, align 1, !tbaa !5
  %56 = tail call i32 @rand() #3
  %57 = trunc i32 %56 to i8
  %58 = getelementptr inbounds i8, ptr %2, i64 16
  store i8 %57, ptr %58, align 16, !tbaa !5
  %59 = tail call i32 @rand() #3
  %60 = trunc i32 %59 to i8
  %61 = getelementptr inbounds i8, ptr %2, i64 17
  store i8 %60, ptr %61, align 1, !tbaa !5
  %62 = tail call i32 @rand() #3
  %63 = trunc i32 %62 to i8
  %64 = getelementptr inbounds i8, ptr %2, i64 18
  store i8 %63, ptr %64, align 2, !tbaa !5
  %65 = tail call i32 @rand() #3
  %66 = trunc i32 %65 to i8
  %67 = getelementptr inbounds i8, ptr %2, i64 19
  store i8 %66, ptr %67, align 1, !tbaa !5
  %68 = tail call i32 @rand() #3
  %69 = trunc i32 %68 to i8
  %70 = getelementptr inbounds i8, ptr %2, i64 20
  store i8 %69, ptr %70, align 4, !tbaa !5
  %71 = tail call i32 @rand() #3
  %72 = trunc i32 %71 to i8
  %73 = getelementptr inbounds i8, ptr %2, i64 21
  store i8 %72, ptr %73, align 1, !tbaa !5
  %74 = tail call i32 @rand() #3
  %75 = trunc i32 %74 to i8
  %76 = getelementptr inbounds i8, ptr %2, i64 22
  store i8 %75, ptr %76, align 2, !tbaa !5
  %77 = tail call i32 @rand() #3
  %78 = trunc i32 %77 to i8
  %79 = getelementptr inbounds i8, ptr %2, i64 23
  store i8 %78, ptr %79, align 1, !tbaa !5
  %80 = tail call i32 @rand() #3
  %81 = trunc i32 %80 to i8
  %82 = getelementptr inbounds i8, ptr %2, i64 24
  store i8 %81, ptr %82, align 8, !tbaa !5
  %83 = tail call i32 @rand() #3
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds i8, ptr %2, i64 25
  store i8 %84, ptr %85, align 1, !tbaa !5
  %86 = tail call i32 @rand() #3
  %87 = trunc i32 %86 to i8
  %88 = getelementptr inbounds i8, ptr %2, i64 26
  store i8 %87, ptr %88, align 2, !tbaa !5
  %89 = tail call i32 @rand() #3
  %90 = trunc i32 %89 to i8
  %91 = getelementptr inbounds i8, ptr %2, i64 27
  store i8 %90, ptr %91, align 1, !tbaa !5
  %92 = tail call i32 @rand() #3
  %93 = trunc i32 %92 to i8
  %94 = getelementptr inbounds i8, ptr %2, i64 28
  store i8 %93, ptr %94, align 4, !tbaa !5
  %95 = tail call i32 @rand() #3
  %96 = trunc i32 %95 to i8
  %97 = getelementptr inbounds i8, ptr %2, i64 29
  store i8 %96, ptr %97, align 1, !tbaa !5
  %98 = tail call i32 @rand() #3
  %99 = trunc i32 %98 to i8
  %100 = getelementptr inbounds i8, ptr %2, i64 30
  store i8 %99, ptr %100, align 2, !tbaa !5
  %101 = tail call i32 @rand() #3
  %102 = trunc i32 %101 to i8
  %103 = getelementptr inbounds i8, ptr %2, i64 31
  store i8 %102, ptr %103, align 1, !tbaa !5
  %104 = tail call i32 @rand() #3
  %105 = trunc i32 %104 to i8
  %106 = getelementptr inbounds i8, ptr %2, i64 32
  store i8 %105, ptr %106, align 16, !tbaa !5
  %107 = tail call i32 @rand() #3
  %108 = trunc i32 %107 to i8
  %109 = getelementptr inbounds i8, ptr %2, i64 33
  store i8 %108, ptr %109, align 1, !tbaa !5
  %110 = tail call i32 @rand() #3
  %111 = trunc i32 %110 to i8
  %112 = getelementptr inbounds i8, ptr %2, i64 34
  store i8 %111, ptr %112, align 2, !tbaa !5
  %113 = tail call i32 @rand() #3
  %114 = trunc i32 %113 to i8
  %115 = getelementptr inbounds i8, ptr %2, i64 35
  store i8 %114, ptr %115, align 1, !tbaa !5
  %116 = tail call i32 @rand() #3
  %117 = trunc i32 %116 to i8
  %118 = getelementptr inbounds i8, ptr %2, i64 36
  store i8 %117, ptr %118, align 4, !tbaa !5
  %119 = tail call i32 @rand() #3
  %120 = trunc i32 %119 to i8
  %121 = getelementptr inbounds i8, ptr %2, i64 37
  store i8 %120, ptr %121, align 1, !tbaa !5
  %122 = tail call i32 @rand() #3
  %123 = trunc i32 %122 to i8
  %124 = getelementptr inbounds i8, ptr %2, i64 38
  store i8 %123, ptr %124, align 2, !tbaa !5
  %125 = tail call i32 @rand() #3
  %126 = trunc i32 %125 to i8
  %127 = getelementptr inbounds i8, ptr %2, i64 39
  store i8 %126, ptr %127, align 1, !tbaa !5
  %128 = tail call i32 @rand() #3
  %129 = trunc i32 %128 to i8
  %130 = getelementptr inbounds i8, ptr %2, i64 40
  store i8 %129, ptr %130, align 8, !tbaa !5
  %131 = tail call i32 @rand() #3
  %132 = trunc i32 %131 to i8
  %133 = getelementptr inbounds i8, ptr %2, i64 41
  store i8 %132, ptr %133, align 1, !tbaa !5
  %134 = tail call i32 @rand() #3
  %135 = trunc i32 %134 to i8
  %136 = getelementptr inbounds i8, ptr %2, i64 42
  store i8 %135, ptr %136, align 2, !tbaa !5
  %137 = tail call i32 @rand() #3
  %138 = trunc i32 %137 to i8
  %139 = getelementptr inbounds i8, ptr %2, i64 43
  store i8 %138, ptr %139, align 1, !tbaa !5
  %140 = tail call i32 @rand() #3
  %141 = trunc i32 %140 to i8
  %142 = getelementptr inbounds i8, ptr %2, i64 44
  store i8 %141, ptr %142, align 4, !tbaa !5
  %143 = tail call i32 @rand() #3
  %144 = trunc i32 %143 to i8
  %145 = getelementptr inbounds i8, ptr %2, i64 45
  store i8 %144, ptr %145, align 1, !tbaa !5
  %146 = tail call i32 @rand() #3
  %147 = trunc i32 %146 to i8
  %148 = getelementptr inbounds i8, ptr %2, i64 46
  store i8 %147, ptr %148, align 2, !tbaa !5
  %149 = tail call i32 @rand() #3
  %150 = trunc i32 %149 to i8
  %151 = getelementptr inbounds i8, ptr %2, i64 47
  store i8 %150, ptr %151, align 1, !tbaa !5
  %152 = tail call i32 @rand() #3
  %153 = trunc i32 %152 to i8
  %154 = getelementptr inbounds i8, ptr %2, i64 48
  store i8 %153, ptr %154, align 16, !tbaa !5
  %155 = tail call i32 @rand() #3
  %156 = trunc i32 %155 to i8
  %157 = getelementptr inbounds i8, ptr %2, i64 49
  store i8 %156, ptr %157, align 1, !tbaa !5
  %158 = tail call i32 @rand() #3
  %159 = trunc i32 %158 to i8
  %160 = getelementptr inbounds i8, ptr %2, i64 50
  store i8 %159, ptr %160, align 2, !tbaa !5
  %161 = tail call i32 @rand() #3
  %162 = trunc i32 %161 to i8
  %163 = getelementptr inbounds i8, ptr %2, i64 51
  store i8 %162, ptr %163, align 1, !tbaa !5
  %164 = tail call i32 @rand() #3
  %165 = trunc i32 %164 to i8
  %166 = getelementptr inbounds i8, ptr %2, i64 52
  store i8 %165, ptr %166, align 4, !tbaa !5
  %167 = tail call i32 @rand() #3
  %168 = trunc i32 %167 to i8
  %169 = getelementptr inbounds i8, ptr %2, i64 53
  store i8 %168, ptr %169, align 1, !tbaa !5
  %170 = tail call i32 @rand() #3
  %171 = trunc i32 %170 to i8
  %172 = getelementptr inbounds i8, ptr %2, i64 54
  store i8 %171, ptr %172, align 2, !tbaa !5
  %173 = tail call i32 @rand() #3
  %174 = trunc i32 %173 to i8
  %175 = getelementptr inbounds i8, ptr %2, i64 55
  store i8 %174, ptr %175, align 1, !tbaa !5
  %176 = tail call i32 @rand() #3
  %177 = trunc i32 %176 to i8
  %178 = getelementptr inbounds i8, ptr %2, i64 56
  store i8 %177, ptr %178, align 8, !tbaa !5
  %179 = call i32 @packetizer_encode(ptr noundef %8, ptr noundef nonnull %2, ptr noundef nonnull %4) #3
  %180 = call ptr @packetizer_copy(ptr noundef %8) #3
  %181 = call i32 @packetizer_encode(ptr noundef %180, ptr noundef nonnull %2, ptr noundef nonnull %5) #3
  %182 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef %1) #3
  %.not = icmp eq i32 %182, 0
  br i1 %.not, label %183, label %186

183:                                              ; preds = %0
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1) #3
  %184 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !8
  %.not42 = icmp eq i32 %184, 0
  br i1 %.not42, label %187, label %185

185:                                              ; preds = %183
  call void @liquid_autotest_print_array(ptr noundef nonnull %4, i32 noundef %1) #3
  call void @liquid_autotest_print_array(ptr noundef nonnull %5, i32 noundef %1) #3
  br label %187

186:                                              ; preds = %0
  call void (...) @liquid_autotest_passed() #3
  br label %187

187:                                              ; preds = %183, %185, %186
  %.not48 = icmp eq i32 %1, 0
  br i1 %.not48, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %187, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %187 ]
  %188 = call i32 @rand() #3
  %189 = trunc i32 %188 to i8
  %190 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv
  store i8 %189, ptr %190, align 1, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv
  store i8 %189, ptr %191, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph, %187
  %192 = call i32 @packetizer_decode(ptr noundef %8, ptr noundef nonnull %4, ptr noundef nonnull %6) #3
  %193 = call i32 @packetizer_decode(ptr noundef %180, ptr noundef nonnull %5, ptr noundef nonnull %7) #3
  %194 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 57) #3
  %.not43 = icmp eq i32 %194, 0
  br i1 %.not43, label %195, label %198

195:                                              ; preds = %._crit_edge
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 71, ptr noundef nonnull @.str.2) #3
  %196 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !8
  %.not44 = icmp eq i32 %196, 0
  br i1 %.not44, label %199, label %197

197:                                              ; preds = %195
  call void @liquid_autotest_print_array(ptr noundef nonnull %6, i32 noundef 57) #3
  call void @liquid_autotest_print_array(ptr noundef nonnull %7, i32 noundef 57) #3
  br label %199

198:                                              ; preds = %._crit_edge
  call void (...) @liquid_autotest_passed() #3
  br label %199

199:                                              ; preds = %195, %197, %198
  %.not45 = icmp eq i32 %192, %193
  br i1 %.not45, label %203, label %200

200:                                              ; preds = %199
  %201 = sitofp i32 %192 to double
  %202 = sitofp i32 %193 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.3, double noundef %201, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, double noundef %202) #3
  br label %204

203:                                              ; preds = %199
  call void (...) @liquid_autotest_passed() #3
  br label %204

204:                                              ; preds = %203, %200
  %205 = call i32 @packetizer_destroy(ptr noundef %8) #3
  %206 = call i32 @packetizer_destroy(ptr noundef %180) #3
  ret void
}

declare i32 @packetizer_compute_enc_msg_len(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare ptr @packetizer_copy(ptr noundef) local_unnamed_addr #1

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

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

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

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

declare i32 @packetizer_decode(ptr noundef, ptr noundef, ptr 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 i32 @packetizer_destroy(ptr noundef) local_unnamed_addr #1

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 = { 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 #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 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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