; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (ofdmflexframegen)

; 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.ofdmflexframegen_s = type { i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ofdmflexframegenprops_s, %struct.ofdmflexframegenprops_s }
%struct.ofdmflexframegenprops_s = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @ofdmflexframegen_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !9
  %13 = load i32, ptr %7, align 4, !tbaa !5
  %14 = icmp ult i32 %13, 8
  br i1 %14, label %15, label %17

15:                                               ; preds = %5
  %16 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 157, ptr noundef @.str.1)
  store ptr %16, ptr %6, align 8
  br label %182

17:                                               ; preds = %5
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = urem i32 %18, 2
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %17
  %22 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 159, ptr noundef @.str.2)
  store ptr %22, ptr %6, align 8
  br label %182

23:                                               ; preds = %17
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = icmp ugt i32 %24, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %23
  %28 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 161, ptr noundef @.str.3)
  store ptr %28, ptr %6, align 8
  br label %182

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %30 = call noalias ptr @malloc(i64 noundef 248) #6
  store ptr %30, ptr %12, align 8, !tbaa !9
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = load ptr, ptr %12, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %32, i32 0, i32 0
  store i32 %31, ptr %33, align 8, !tbaa !11
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %35, i32 0, i32 1
  store i32 %34, ptr %36, align 4, !tbaa !14
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %38, i32 0, i32 2
  store i32 %37, ptr %39, align 8, !tbaa !15
  %40 = load ptr, ptr %12, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !11
  %43 = load ptr, ptr %12, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !14
  %46 = add i32 %42, %45
  %47 = load ptr, ptr %12, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %47, i32 0, i32 9
  store i32 %46, ptr %48, align 4, !tbaa !16
  %49 = load ptr, ptr %12, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = zext i32 %51 to i64
  %53 = mul i64 %52, 8
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  %55 = load ptr, ptr %12, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %55, i32 0, i32 10
  store ptr %54, ptr %56, align 8, !tbaa !17
  %57 = load ptr, ptr %12, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %57, i32 0, i32 9
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = zext i32 %59 to i64
  %61 = mul i64 %60, 8
  %62 = call noalias ptr @malloc(i64 noundef %61) #6
  %63 = load ptr, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %63, i32 0, i32 11
  store ptr %62, ptr %64, align 8, !tbaa !18
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %65, i32 0, i32 9
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = load ptr, ptr %12, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %68, i32 0, i32 12
  store i32 %67, ptr %69, align 8, !tbaa !19
  %70 = load ptr, ptr %12, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !11
  %73 = zext i32 %72 to i64
  %74 = mul i64 %73, 1
  %75 = call noalias ptr @malloc(i64 noundef %74) #6
  %76 = load ptr, ptr %12, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %76, i32 0, i32 3
  store ptr %75, ptr %77, align 8, !tbaa !20
  %78 = load ptr, ptr %10, align 8, !tbaa !9
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %88

80:                                               ; preds = %29
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = load ptr, ptr %12, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = call i32 @ofdmframe_init_default_sctype(i32 noundef %83, ptr noundef %86)
  br label %98

88:                                               ; preds = %29
  %89 = load ptr, ptr %12, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %89, i32 0, i32 3
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = load ptr, ptr %10, align 8, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !11
  %96 = zext i32 %95 to i64
  %97 = mul i64 %96, 1
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %91, ptr align 1 %92, i64 %97, i1 false)
  br label %98

98:                                               ; preds = %88, %80
  %99 = load ptr, ptr %12, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %99, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !20
  %102 = load ptr, ptr %12, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !11
  %105 = load ptr, ptr %12, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %12, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %107, i32 0, i32 5
  %109 = load ptr, ptr %12, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %109, i32 0, i32 6
  %111 = call i32 @ofdmframe_validate_sctype(ptr noundef %101, i32 noundef %104, ptr noundef %106, ptr noundef %108, ptr noundef %110)
  %112 = load ptr, ptr %12, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %12, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !14
  %118 = load ptr, ptr %12, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 8, !tbaa !15
  %121 = load ptr, ptr %12, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %121, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = call ptr @ofdmframegen_create(i32 noundef %114, i32 noundef %117, i32 noundef %120, ptr noundef %123)
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %125, i32 0, i32 13
  store ptr %124, ptr %126, align 8, !tbaa !21
  %127 = load ptr, ptr %12, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %127, i32 0, i32 18
  store ptr null, ptr %128, align 8, !tbaa !22
  %129 = load ptr, ptr %12, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %129, i32 0, i32 17
  store ptr null, ptr %130, align 8, !tbaa !23
  %131 = load ptr, ptr %12, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %131, i32 0, i32 19
  store ptr null, ptr %132, align 8, !tbaa !24
  %133 = load ptr, ptr %12, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %133, i32 0, i32 20
  store ptr null, ptr %134, align 8, !tbaa !25
  %135 = load ptr, ptr %12, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %135, i32 0, i32 16
  store ptr null, ptr %136, align 8, !tbaa !26
  %137 = load ptr, ptr %12, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %137, i32 0, i32 21
  store i32 8, ptr %138, align 8, !tbaa !27
  %139 = load ptr, ptr %12, align 8, !tbaa !9
  %140 = call i32 @ofdmflexframegen_set_header_props(ptr noundef %139, ptr noundef null)
  %141 = load ptr, ptr %12, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %141, i32 0, i32 26
  store i32 1, ptr %142, align 8, !tbaa !28
  %143 = load ptr, ptr %12, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %143, i32 0, i32 26
  %145 = load i32, ptr %144, align 8, !tbaa !28
  %146 = call ptr @packetizer_create(i32 noundef %145, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %147 = load ptr, ptr %12, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %147, i32 0, i32 25
  store ptr %146, ptr %148, align 8, !tbaa !29
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %149, i32 0, i32 25
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  %152 = call i32 @packetizer_get_enc_msg_len(ptr noundef %151)
  %153 = load ptr, ptr %12, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %153, i32 0, i32 30
  store i32 %152, ptr %154, align 8, !tbaa !30
  %155 = load ptr, ptr %12, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %155, i32 0, i32 30
  %157 = load i32, ptr %156, align 8, !tbaa !30
  %158 = zext i32 %157 to i64
  %159 = mul i64 %158, 1
  %160 = call noalias ptr @malloc(i64 noundef %159) #6
  %161 = load ptr, ptr %12, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %161, i32 0, i32 28
  store ptr %160, ptr %162, align 8, !tbaa !31
  %163 = load ptr, ptr %12, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %163, i32 0, i32 31
  store i32 1, ptr %164, align 4, !tbaa !32
  %165 = load ptr, ptr %12, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %165, i32 0, i32 31
  %167 = load i32, ptr %166, align 4, !tbaa !32
  %168 = zext i32 %167 to i64
  %169 = mul i64 %168, 1
  %170 = call noalias ptr @malloc(i64 noundef %169) #6
  %171 = load ptr, ptr %12, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %171, i32 0, i32 29
  store ptr %170, ptr %172, align 8, !tbaa !33
  %173 = call ptr @modemcf_create(i32 noundef 40)
  %174 = load ptr, ptr %12, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.ofdmflexframegen_s, ptr %174, i32 0, i32 27
  store ptr %173, ptr %175, align 8, !tbaa !34
  %176 = load ptr, ptr %12, align 8, !tbaa !9
  %177 = load ptr, ptr %11, align 8, !tbaa !9
  %178 = call i32 @ofdmflexframegen_setprops(ptr noundef %176, ptr noundef %177)
  %179 = load ptr, ptr %12, align 8, !tbaa !9
  %180 = call i32 @ofdmflexframegen_reset(ptr noundef %179)
  %181 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %181, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %182

182:                                              ; preds = %98, %27, %21, %15
  %183 = load ptr, ptr %6, align 8
  ret ptr %183
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmflexframegen_set_header_props(ptr noundef, ptr noundef) #1

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

declare i32 @packetizer_get_enc_msg_len(ptr noundef) #2

declare ptr @modemcf_create(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmflexframegen_setprops(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmflexframegen_reset(ptr noundef) #1

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!"ofdmflexframegen_s", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !10, i64 48, !10, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 84, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !10, i64 144, !6, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !13, i64 216, !13, i64 232}
!13 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !6, i64 44}
!17 = !{!12, !10, i64 48}
!18 = !{!12, !10, i64 56}
!19 = !{!12, !6, i64 64}
!20 = !{!12, !10, i64 16}
!21 = !{!12, !10, i64 72}
!22 = !{!12, !10, i64 104}
!23 = !{!12, !10, i64 96}
!24 = !{!12, !10, i64 112}
!25 = !{!12, !10, i64 120}
!26 = !{!12, !10, i64 88}
!27 = !{!12, !6, i64 128}
!28 = !{!12, !6, i64 152}
!29 = !{!12, !10, i64 144}
!30 = !{!12, !6, i64 184}
!31 = !{!12, !10, i64 168}
!32 = !{!12, !6, i64 188}
!33 = !{!12, !10, i64 176}
!34 = !{!12, !10, i64 160}


; 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 [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @ofdmflexframegen_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readonly %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = icmp ult i32 %0, 8
  br i1 %6, label %7, label %9

7:                                                ; preds = %5
  %8 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 157, ptr noundef nonnull @.str.1) #5
  br label %67

9:                                                ; preds = %5
  %10 = and i32 %0, 1
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %13, label %11

11:                                               ; preds = %9
  %12 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 159, ptr noundef nonnull @.str.2) #5
  br label %67

13:                                               ; preds = %9
  %14 = icmp ugt i32 %1, %0
  br i1 %14, label %15, label %17

15:                                               ; preds = %13
  %16 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 161, ptr noundef nonnull @.str.3) #5
  br label %67

17:                                               ; preds = %13
  %18 = tail call noalias dereferenceable_or_null(248) ptr @malloc(i64 noundef 248) #6
  store i32 %0, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 4
  store i32 %1, ptr %19, align 4, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %18, i64 8
  store i32 %2, ptr %20, align 8, !tbaa !13
  %21 = add i32 %1, %0
  %22 = getelementptr inbounds i8, ptr %18, i64 44
  store i32 %21, ptr %22, align 4, !tbaa !14
  %23 = zext i32 %0 to i64
  %24 = shl nuw nsw i64 %23, 3
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #6
  %26 = getelementptr inbounds i8, ptr %18, i64 48
  store ptr %25, ptr %26, align 8, !tbaa !15
  %27 = zext i32 %21 to i64
  %28 = shl nuw nsw i64 %27, 3
  %29 = tail call noalias ptr @malloc(i64 noundef %28) #6
  %30 = getelementptr inbounds i8, ptr %18, i64 56
  store ptr %29, ptr %30, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %18, i64 64
  store i32 %21, ptr %31, align 8, !tbaa !17
  %32 = tail call noalias ptr @malloc(i64 noundef %23) #6
  %33 = getelementptr inbounds i8, ptr %18, i64 16
  store ptr %32, ptr %33, align 8, !tbaa !18
  %34 = icmp eq ptr %3, null
  br i1 %34, label %35, label %37

35:                                               ; preds = %17
  %36 = tail call i32 @ofdmframe_init_default_sctype(i32 noundef %0, ptr noundef %32) #5
  br label %38

37:                                               ; preds = %17
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %32, ptr nonnull align 1 %3, i64 %23, i1 false)
  br label %38

38:                                               ; preds = %37, %35
  %39 = getelementptr inbounds i8, ptr %18, i64 24
  %40 = getelementptr inbounds i8, ptr %18, i64 28
  %41 = getelementptr inbounds i8, ptr %18, i64 32
  %42 = tail call i32 @ofdmframe_validate_sctype(ptr noundef %32, i32 noundef %0, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef nonnull %41) #5
  %43 = load i32, ptr %18, align 8, !tbaa !5
  %44 = load i32, ptr %19, align 4, !tbaa !12
  %45 = load i32, ptr %20, align 8, !tbaa !13
  %46 = load ptr, ptr %33, align 8, !tbaa !18
  %47 = tail call ptr @ofdmframegen_create(i32 noundef %43, i32 noundef %44, i32 noundef %45, ptr noundef %46) #5
  %48 = getelementptr inbounds i8, ptr %18, i64 72
  store ptr %47, ptr %48, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %18, i64 88
  %50 = getelementptr inbounds i8, ptr %18, i64 128
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %49, i8 0, i64 40, i1 false)
  store i32 8, ptr %50, align 8, !tbaa !20
  %51 = tail call i32 @ofdmflexframegen_set_header_props(ptr noundef nonnull %18, ptr noundef null)
  %52 = getelementptr inbounds i8, ptr %18, i64 152
  store i32 1, ptr %52, align 8, !tbaa !21
  %53 = tail call ptr @packetizer_create(i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1) #5
  %54 = getelementptr inbounds i8, ptr %18, i64 144
  store ptr %53, ptr %54, align 8, !tbaa !22
  %55 = tail call i32 @packetizer_get_enc_msg_len(ptr noundef %53) #5
  %56 = getelementptr inbounds i8, ptr %18, i64 184
  store i32 %55, ptr %56, align 8, !tbaa !23
  %57 = zext i32 %55 to i64
  %58 = tail call noalias ptr @malloc(i64 noundef %57) #6
  %59 = getelementptr inbounds i8, ptr %18, i64 168
  store ptr %58, ptr %59, align 8, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %18, i64 188
  store i32 1, ptr %60, align 4, !tbaa !25
  %61 = tail call noalias dereferenceable_or_null(1) ptr @malloc(i64 noundef 1) #6
  %62 = getelementptr inbounds i8, ptr %18, i64 176
  store ptr %61, ptr %62, align 8, !tbaa !26
  %63 = tail call ptr @modemcf_create(i32 noundef 40) #5
  %64 = getelementptr inbounds i8, ptr %18, i64 160
  store ptr %63, ptr %64, align 8, !tbaa !27
  %65 = tail call i32 @ofdmflexframegen_setprops(ptr noundef nonnull %18, ptr noundef %4)
  %66 = tail call i32 @ofdmflexframegen_reset(ptr noundef nonnull %18)
  br label %67

67:                                               ; preds = %38, %15, %11, %7
  %.0 = phi ptr [ %8, %7 ], [ %12, %11 ], [ %16, %15 ], [ %18, %38 ]
  ret ptr %.0
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; 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 i32 @ofdmframe_init_default_sctype(i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

declare i32 @packetizer_get_enc_msg_len(ptr noundef) local_unnamed_addr #1

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmflexframegen_reset(ptr noundef) local_unnamed_addr #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) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ofdmflexframegen_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !11, i64 216, !11, i64 232}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 44}
!15 = !{!6, !10, i64 48}
!16 = !{!6, !10, i64 56}
!17 = !{!6, !7, i64 64}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !10, i64 72}
!20 = !{!6, !7, i64 128}
!21 = !{!6, !7, i64 152}
!22 = !{!6, !10, i64 144}
!23 = !{!6, !7, i64 184}
!24 = !{!6, !10, i64 168}
!25 = !{!6, !7, i64 188}
!26 = !{!6, !10, i64 176}
!27 = !{!6, !10, i64 160}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass