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

; 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.modulation_type_s = type { ptr, ptr, i32, i32 }
%struct.div_t = type { i32, i32 }
%struct.ofdmflexframesync_s = type { i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, %struct.ofdmflexframegenprops_s, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, %struct.framesyncstats_s, %struct.framedatastats_s, float, ptr, i32, i32, i32, i32, i32 }
%struct.ofdmflexframegenprops_s = type { i32, i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, i64 }

@modulation_types = external constant [53 x %struct.modulation_type_s], align 16

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

declare ptr @modemcf_create(i32 noundef) #1

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

declare i32 @packetizer_get_enc_msg_len(ptr noundef) #1

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

declare i32 @packetizer_destroy(ptr noundef) #1

declare i32 @modemcf_destroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @ofdmflexframesync_set_header_len(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.div_t, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %7 = load i32, ptr %4, align 4, !tbaa !9
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %8, i32 0, i32 15
  store i32 %7, ptr %9, align 8, !tbaa !11
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %10, i32 0, i32 15
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = add i32 6, %12
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %14, i32 0, i32 16
  store i32 %13, ptr %15, align 4, !tbaa !18
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %16, i32 0, i32 12
  %18 = load ptr, ptr %17, align 8, !tbaa !19
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %19, i32 0, i32 16
  %21 = load i32, ptr %20, align 4, !tbaa !18
  %22 = zext i32 %21 to i64
  %23 = mul i64 %22, 1
  %24 = call ptr @realloc(ptr noundef %18, i64 noundef %23) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %25, i32 0, i32 12
  store ptr %24, ptr %26, align 8, !tbaa !19
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %27, i32 0, i32 11
  %29 = load ptr, ptr %28, align 8, !tbaa !20
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %36

31:                                               ; preds = %2
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %32, i32 0, i32 11
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  %35 = call i32 @packetizer_destroy(ptr noundef %34)
  br label %36

36:                                               ; preds = %31, %2
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %37, i32 0, i32 16
  %39 = load i32, ptr %38, align 4, !tbaa !18
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %40, i32 0, i32 20
  %42 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !21
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %44, i32 0, i32 20
  %46 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %48, i32 0, i32 20
  %50 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !23
  %52 = call ptr @packetizer_create(i32 noundef %39, i32 noundef %43, i32 noundef %47, i32 noundef %51)
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %53, i32 0, i32 11
  store ptr %52, ptr %54, align 8, !tbaa !20
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %55, i32 0, i32 9
  %57 = load i32, ptr %56, align 4, !tbaa !24
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %72

59:                                               ; preds = %36
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %60, i32 0, i32 11
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = call i32 @packetizer_get_enc_msg_len(ptr noundef %62)
  %64 = mul i32 8, %63
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %65, i32 0, i32 17
  store i32 %64, ptr %66, align 8, !tbaa !25
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %67, i32 0, i32 17
  %69 = load i32, ptr %68, align 8, !tbaa !25
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %70, i32 0, i32 18
  store i32 %69, ptr %71, align 4, !tbaa !26
  br label %103

72:                                               ; preds = %36
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %73, i32 0, i32 11
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = call i32 @packetizer_get_enc_msg_len(ptr noundef %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %77, i32 0, i32 17
  store i32 %76, ptr %78, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %79, i32 0, i32 20
  %81 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 4, !tbaa !27
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.modulation_type_s, ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 4, !tbaa !28
  store i32 %86, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %87, i32 0, i32 17
  %89 = load i32, ptr %88, align 8, !tbaa !25
  %90 = mul i32 %89, 8
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = call i64 @div(i32 noundef %90, i32 noundef %91) #7
  store i64 %92, ptr %6, align 4
  %93 = getelementptr inbounds %struct.div_t, ptr %6, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !30
  %95 = getelementptr inbounds %struct.div_t, ptr %6, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !32
  %97 = icmp ne i32 %96, 0
  %98 = zext i1 %97 to i64
  %99 = select i1 %97, i32 1, i32 0
  %100 = add nsw i32 %94, %99
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %101, i32 0, i32 18
  store i32 %100, ptr %102, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %103

103:                                              ; preds = %72, %59
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %104, i32 0, i32 13
  %106 = load ptr, ptr %105, align 8, !tbaa !33
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %107, i32 0, i32 17
  %109 = load i32, ptr %108, align 8, !tbaa !25
  %110 = zext i32 %109 to i64
  %111 = mul i64 %110, 1
  %112 = call ptr @realloc(ptr noundef %106, i64 noundef %111) #5
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %113, i32 0, i32 13
  store ptr %112, ptr %114, align 8, !tbaa !33
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %115, i32 0, i32 14
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %118, i32 0, i32 18
  %120 = load i32, ptr %119, align 4, !tbaa !26
  %121 = zext i32 %120 to i64
  %122 = mul i64 %121, 1
  %123 = call ptr @realloc(ptr noundef %117, i64 noundef %122) #5
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %124, i32 0, i32 14
  store ptr %123, ptr %125, align 8, !tbaa !34
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %126, i32 0, i32 10
  %128 = load ptr, ptr %127, align 8, !tbaa !35
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %135

130:                                              ; preds = %103
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %131, i32 0, i32 10
  %133 = load ptr, ptr %132, align 8, !tbaa !35
  %134 = call i32 @modemcf_destroy(ptr noundef %133)
  br label %135

135:                                              ; preds = %130, %103
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %136, i32 0, i32 20
  %138 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %137, i32 0, i32 3
  %139 = load i32, ptr %138, align 4, !tbaa !27
  %140 = call ptr @modemcf_create(i32 noundef %139)
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ofdmflexframesync_s, ptr %141, i32 0, i32 10
  store ptr %140, ptr %142, align 8, !tbaa !35
  ret i32 0
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare i64 @div(i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(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 #4 = { nounwind willreturn memory(none) "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 allocsize(1) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"ofdmflexframesync_s", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !13, i64 108, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !14, i64 224, !16, i64 272, !15, i64 296, !6, i64 304, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!14 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!15 = !{!"float", !7, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!12, !10, i64 92}
!19 = !{!12, !6, i64 64}
!20 = !{!12, !6, i64 56}
!21 = !{!12, !10, i64 108}
!22 = !{!12, !10, i64 112}
!23 = !{!12, !10, i64 116}
!24 = !{!12, !10, i64 44}
!25 = !{!12, !10, i64 96}
!26 = !{!12, !10, i64 100}
!27 = !{!12, !10, i64 120}
!28 = !{!29, !10, i64 20}
!29 = !{!"modulation_type_s", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20}
!30 = !{!31, !10, i64 0}
!31 = !{!"", !10, i64 0, !10, i64 4}
!32 = !{!31, !10, i64 4}
!33 = !{!12, !6, i64 72}
!34 = !{!12, !6, i64 80}
!35 = !{!12, !6, i64 48}


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

%struct.modulation_type_s = type { ptr, ptr, i32, i32 }

@modulation_types = external local_unnamed_addr constant [53 x %struct.modulation_type_s], align 16

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #0

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

declare i32 @packetizer_get_enc_msg_len(ptr noundef) local_unnamed_addr #0

declare i32 @packetizer_destroy(ptr noundef) local_unnamed_addr #0

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ofdmflexframesync_set_header_len(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %1, ptr %3, align 8, !tbaa !5
  %4 = add i32 %1, 6
  %5 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %4, ptr %5, align 4, !tbaa !16
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load ptr, ptr %6, align 8, !tbaa !17
  %8 = zext i32 %4 to i64
  %9 = tail call ptr @realloc(ptr noundef %7, i64 noundef %8) #4
  store ptr %9, ptr %6, align 8, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load ptr, ptr %10, align 8, !tbaa !18
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %14, label %12

12:                                               ; preds = %2
  %13 = tail call i32 @packetizer_destroy(ptr noundef nonnull %11) #5
  br label %14

14:                                               ; preds = %12, %2
  %15 = load i32, ptr %5, align 4, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 108
  %17 = load i32, ptr %16, align 4, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %0, i64 112
  %19 = load i32, ptr %18, align 4, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %0, i64 116
  %21 = load i32, ptr %20, align 4, !tbaa !21
  %22 = tail call ptr @packetizer_create(i32 noundef %15, i32 noundef %17, i32 noundef %19, i32 noundef %21) #5
  store ptr %22, ptr %10, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 44
  %24 = load i32, ptr %23, align 4, !tbaa !22
  %.not35 = icmp eq i32 %24, 0
  %25 = tail call i32 @packetizer_get_enc_msg_len(ptr noundef %22) #5
  br i1 %.not35, label %28, label %26

26:                                               ; preds = %14
  %27 = shl i32 %25, 3
  br label %38

28:                                               ; preds = %14
  %29 = getelementptr inbounds i8, ptr %0, i64 120
  %30 = load i32, ptr %29, align 4, !tbaa !23
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [53 x %struct.modulation_type_s], ptr @modulation_types, i64 0, i64 %31, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !24
  %34 = shl i32 %25, 3
  %35 = tail call i64 @div(i32 noundef %34, i32 noundef %33) #6
  %.sroa.0.0.extract.trunc = trunc i64 %35 to i32
  %.not36 = icmp ugt i64 %35, 4294967295
  %36 = zext i1 %.not36 to i32
  %37 = add nsw i32 %36, %.sroa.0.0.extract.trunc
  br label %38

38:                                               ; preds = %28, %26
  %.sink38 = phi i32 [ %25, %28 ], [ %27, %26 ]
  %.sink = phi i32 [ %37, %28 ], [ %27, %26 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %.sink38, ptr %39, align 8
  %40 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %.sink, ptr %40, align 4
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  %42 = load ptr, ptr %41, align 8, !tbaa !26
  %43 = zext i32 %.sink38 to i64
  %44 = tail call ptr @realloc(ptr noundef %42, i64 noundef %43) #4
  store ptr %44, ptr %41, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %0, i64 80
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  %47 = load i32, ptr %40, align 4, !tbaa !28
  %48 = zext i32 %47 to i64
  %49 = tail call ptr @realloc(ptr noundef %46, i64 noundef %48) #4
  store ptr %49, ptr %45, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %0, i64 48
  %51 = load ptr, ptr %50, align 8, !tbaa !29
  %.not37 = icmp eq ptr %51, null
  br i1 %.not37, label %54, label %52

52:                                               ; preds = %38
  %53 = tail call i32 @modemcf_destroy(ptr noundef nonnull %51) #5
  br label %54

54:                                               ; preds = %52, %38
  %55 = getelementptr inbounds i8, ptr %0, i64 120
  %56 = load i32, ptr %55, align 4, !tbaa !23
  %57 = tail call ptr @modemcf_create(i32 noundef %56) #5
  store ptr %57, ptr %50, align 8, !tbaa !29
  ret i32 0
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare i64 @div(i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind 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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, 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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 allocsize(1) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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 88}
!6 = !{!"ofdmflexframesync_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, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !11, i64 108, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !7, i64 184, !7, i64 188, !7, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !12, i64 224, !14, i64 272, !13, i64 296, !10, i64 304, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328}
!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 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!13 = !{!"float", !8, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !15, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 92}
!17 = !{!6, !10, i64 64}
!18 = !{!6, !10, i64 56}
!19 = !{!6, !7, i64 108}
!20 = !{!6, !7, i64 112}
!21 = !{!6, !7, i64 116}
!22 = !{!6, !7, i64 44}
!23 = !{!6, !7, i64 120}
!24 = !{!25, !7, i64 20}
!25 = !{!"modulation_type_s", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 20}
!26 = !{!6, !10, i64 72}
!27 = !{!6, !10, i64 80}
!28 = !{!6, !7, i64 100}
!29 = !{!6, !10, i64 48}


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