; LLVM IR from jgaeddert/liquid-dsp :: src/fec/src (packetizer)

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

%struct.packetizer_s = type { i32, i32, i32, i32, ptr, i32, i32, ptr, ptr }
%struct.fecintlv_plan = type { i32, i32, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
declare dso_local i32 @packetizer_compute_enc_msg_len(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

declare i32 @crc_get_length(i32 noundef) #2

declare i32 @fec_get_enc_msg_length(i32 noundef, i32 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: nounwind uwtable
define dso_local ptr @packetizer_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %12 = call noalias ptr @malloc(i64 noundef 48) #5
  store ptr %12, ptr %9, align 8, !tbaa !9
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = load ptr, ptr %9, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.packetizer_s, ptr %14, i32 0, i32 0
  store i32 %13, ptr %15, align 8, !tbaa !11
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !5
  %20 = call i32 @packetizer_compute_enc_msg_len(i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef %19)
  %21 = load ptr, ptr %9, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.packetizer_s, ptr %21, i32 0, i32 1
  store i32 %20, ptr %22, align 4, !tbaa !13
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.packetizer_s, ptr %24, i32 0, i32 2
  store i32 %23, ptr %25, align 8, !tbaa !14
  %26 = load ptr, ptr %9, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.packetizer_s, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = call i32 @crc_get_length(i32 noundef %28)
  %30 = load ptr, ptr %9, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.packetizer_s, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 4, !tbaa !15
  %32 = load ptr, ptr %9, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.packetizer_s, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.packetizer_s, ptr %35, i32 0, i32 6
  store i32 %34, ptr %36, align 4, !tbaa !16
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.packetizer_s, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = mul i32 8, %39
  %41 = zext i32 %40 to i64
  %42 = call noalias ptr @malloc(i64 noundef %41) #5
  %43 = load ptr, ptr %9, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.packetizer_s, ptr %43, i32 0, i32 7
  store ptr %42, ptr %44, align 8, !tbaa !17
  %45 = load ptr, ptr %9, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.packetizer_s, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %46, align 4, !tbaa !16
  %48 = mul i32 8, %47
  %49 = zext i32 %48 to i64
  %50 = call noalias ptr @malloc(i64 noundef %49) #5
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.packetizer_s, ptr %51, i32 0, i32 8
  store ptr %50, ptr %52, align 8, !tbaa !18
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.packetizer_s, ptr %53, i32 0, i32 5
  store i32 2, ptr %54, align 8, !tbaa !19
  %55 = load ptr, ptr %9, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.packetizer_s, ptr %55, i32 0, i32 5
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = zext i32 %57 to i64
  %59 = mul i64 %58, 32
  %60 = call noalias ptr @malloc(i64 noundef %59) #5
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.packetizer_s, ptr %61, i32 0, i32 4
  store ptr %60, ptr %62, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.packetizer_s, ptr %64, i32 0, i32 3
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = add i32 %63, %66
  store i32 %67, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %182, %4
  %69 = load i32, ptr %10, align 4, !tbaa !5
  %70 = load ptr, ptr %9, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.packetizer_s, ptr %70, i32 0, i32 5
  %72 = load i32, ptr %71, align 8, !tbaa !19
  %73 = icmp ult i32 %69, %72
  br i1 %73, label %74, label %185

74:                                               ; preds = %68
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load i32, ptr %7, align 4, !tbaa !5
  br label %81

79:                                               ; preds = %74
  %80 = load i32, ptr %8, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %79, %77
  %82 = phi i32 [ %78, %77 ], [ %80, %79 ]
  %83 = load ptr, ptr %9, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.packetizer_s, ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !20
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds %struct.fecintlv_plan, ptr %85, i64 %87
  %89 = getelementptr inbounds %struct.fecintlv_plan, ptr %88, i32 0, i32 2
  store i32 %82, ptr %89, align 8, !tbaa !21
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.packetizer_s, ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds %struct.fecintlv_plan, ptr %93, i64 %95
  %97 = getelementptr inbounds %struct.fecintlv_plan, ptr %96, i32 0, i32 0
  store i32 %90, ptr %97, align 8, !tbaa !23
  %98 = load ptr, ptr %9, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.packetizer_s, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds %struct.fecintlv_plan, ptr %100, i64 %102
  %104 = getelementptr inbounds %struct.fecintlv_plan, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !21
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.packetizer_s, ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %struct.fecintlv_plan, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.fecintlv_plan, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !23
  %114 = call i32 @fec_get_enc_msg_length(i32 noundef %105, i32 noundef %113)
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.packetizer_s, ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds %struct.fecintlv_plan, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.fecintlv_plan, ptr %120, i32 0, i32 1
  store i32 %114, ptr %121, align 4, !tbaa !24
  %122 = load ptr, ptr %9, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.packetizer_s, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds %struct.fecintlv_plan, ptr %124, i64 %126
  %128 = getelementptr inbounds %struct.fecintlv_plan, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !21
  %130 = call ptr @fec_create(i32 noundef %129, ptr noundef null)
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.packetizer_s, ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds %struct.fecintlv_plan, ptr %133, i64 %135
  %137 = getelementptr inbounds %struct.fecintlv_plan, ptr %136, i32 0, i32 3
  store ptr %130, ptr %137, align 8, !tbaa !25
  %138 = load ptr, ptr %9, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.packetizer_s, ptr %138, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.fecintlv_plan, ptr %140, i64 %142
  %144 = getelementptr inbounds %struct.fecintlv_plan, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !24
  %146 = call ptr @interleaver_create(i32 noundef %145)
  %147 = load ptr, ptr %9, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.packetizer_s, ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !20
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds %struct.fecintlv_plan, ptr %149, i64 %151
  %153 = getelementptr inbounds %struct.fecintlv_plan, ptr %152, i32 0, i32 4
  store ptr %146, ptr %153, align 8, !tbaa !26
  %154 = load ptr, ptr %9, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.packetizer_s, ptr %154, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !20
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds %struct.fecintlv_plan, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.fecintlv_plan, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 8, !tbaa !21
  %162 = icmp eq i32 %161, 1
  br i1 %162, label %163, label %173

163:                                              ; preds = %81
  %164 = load ptr, ptr %9, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.packetizer_s, ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !20
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds %struct.fecintlv_plan, ptr %166, i64 %168
  %170 = getelementptr inbounds %struct.fecintlv_plan, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !26
  %172 = call i32 @interleaver_set_depth(ptr noundef %171, i32 noundef 0)
  br label %173

173:                                              ; preds = %163, %81
  %174 = load ptr, ptr %9, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.packetizer_s, ptr %174, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !20
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds %struct.fecintlv_plan, ptr %176, i64 %178
  %180 = getelementptr inbounds %struct.fecintlv_plan, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !24
  store i32 %181, ptr %11, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %173
  %183 = load i32, ptr %10, align 4, !tbaa !5
  %184 = add i32 %183, 1
  store i32 %184, ptr %10, align 4, !tbaa !5
  br label %68, !llvm.loop !27

185:                                              ; preds = %68
  %186 = load ptr, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret ptr %186
}

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

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

declare ptr @interleaver_create(i32 noundef) #2

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

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 = { 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 }
attributes #5 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"packetizer_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !6, i64 24, !6, i64 28, !10, i64 32, !10, i64 40}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 12}
!16 = !{!12, !6, i64 28}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !6, i64 24}
!20 = !{!12, !10, i64 16}
!21 = !{!22, !6, i64 8}
!22 = !{!"fecintlv_plan", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !10, i64 24}
!23 = !{!22, !6, i64 0}
!24 = !{!22, !6, i64 4}
!25 = !{!22, !10, i64 16}
!26 = !{!22, !10, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @packetizer_compute_enc_msg_len(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @crc_get_length(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @packetizer_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = tail call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #3
  store i32 %0, ptr %5, align 8, !tbaa !5
  %6 = tail call i32 @packetizer_compute_enc_msg_len(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3)
  %7 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %6, ptr %7, align 4, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %1, ptr %8, align 8, !tbaa !12
  %9 = tail call i32 @crc_get_length(i32 noundef %1) #4
  %10 = getelementptr inbounds i8, ptr %5, i64 12
  store i32 %9, ptr %10, align 4, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 %6, ptr %11, align 4, !tbaa !14
  %12 = shl i32 %6, 3
  %13 = zext i32 %12 to i64
  %14 = tail call noalias ptr @malloc(i64 noundef %13) #3
  %15 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !15
  %16 = tail call noalias ptr @malloc(i64 noundef %13) #3
  %17 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %16, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %5, i64 24
  store i32 2, ptr %18, align 8, !tbaa !17
  %19 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #3
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !18
  %21 = add i32 %9, %0
  %22 = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %2, ptr %22, align 8, !tbaa !19
  store i32 %21, ptr %19, align 8, !tbaa !21
  %23 = tail call i32 @fec_get_enc_msg_length(i32 noundef %2, i32 noundef %21) #4
  %24 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 %23, ptr %24, align 4, !tbaa !22
  %25 = load i32, ptr %22, align 8, !tbaa !19
  %26 = tail call ptr @fec_create(i32 noundef %25, ptr noundef null) #4
  %27 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %26, ptr %27, align 8, !tbaa !23
  %28 = load i32, ptr %24, align 4, !tbaa !22
  %29 = tail call ptr @interleaver_create(i32 noundef %28) #4
  %30 = getelementptr inbounds i8, ptr %19, i64 24
  store ptr %29, ptr %30, align 8, !tbaa !24
  %31 = load i32, ptr %22, align 8, !tbaa !19
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %35

33:                                               ; preds = %4
  %34 = tail call i32 @interleaver_set_depth(ptr noundef %29, i32 noundef 0) #4
  br label %35

35:                                               ; preds = %33, %4
  %36 = load i32, ptr %24, align 4, !tbaa !22
  %37 = getelementptr inbounds i8, ptr %19, i64 40
  store i32 %3, ptr %37, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %19, i64 32
  store i32 %36, ptr %38, align 8, !tbaa !21
  %39 = tail call i32 @fec_get_enc_msg_length(i32 noundef %3, i32 noundef %36) #4
  %40 = getelementptr inbounds i8, ptr %19, i64 36
  store i32 %39, ptr %40, align 4, !tbaa !22
  %41 = load i32, ptr %37, align 8, !tbaa !19
  %42 = tail call ptr @fec_create(i32 noundef %41, ptr noundef null) #4
  %43 = getelementptr inbounds i8, ptr %19, i64 48
  store ptr %42, ptr %43, align 8, !tbaa !23
  %44 = load i32, ptr %40, align 4, !tbaa !22
  %45 = tail call ptr @interleaver_create(i32 noundef %44) #4
  %46 = getelementptr inbounds i8, ptr %19, i64 56
  store ptr %45, ptr %46, align 8, !tbaa !24
  %47 = getelementptr inbounds i8, ptr %19, i64 40
  %48 = load i32, ptr %47, align 8, !tbaa !19
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %52

50:                                               ; preds = %35
  %51 = tail call i32 @interleaver_set_depth(ptr noundef %45, i32 noundef 0) #4
  br label %52

52:                                               ; preds = %50, %35
  ret ptr %5
}

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

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

declare ptr @interleaver_create(i32 noundef) local_unnamed_addr #1

declare i32 @interleaver_set_depth(ptr noundef, i32 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 = { 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 #3 = { nounwind allocsize(0) }
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, !7, i64 0}
!6 = !{!"packetizer_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 28}
!15 = !{!6, !10, i64 32}
!16 = !{!6, !10, i64 40}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !10, i64 16}
!19 = !{!20, !7, i64 8}
!20 = !{!"fecintlv_plan", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!20, !7, i64 0}
!22 = !{!20, !7, i64 4}
!23 = !{!20, !10, i64 16}
!24 = !{!20, !10, i64 24}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass