; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6 (IntercomControlPdu)

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

%"class.DIS::IntercomCommunicationsParameters" = type { ptr, i16, i16, i32 }
%"class.DIS::IntercomControlPdu" = type { %"class.DIS::RadioCommunicationsFamilyPdu.base", i8, i8, [4 x i8], %"class.DIS::EntityID", i8, i8, i8, i8, i8, [3 x i8], %"class.DIS::EntityID", i16, i32, %"class.std::vector" }
%"class.DIS::RadioCommunicationsFamilyPdu.base" = type { %"class.DIS::Pdu.base", [4 x i8], %"class.DIS::EntityID", i16 }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::IntercomCommunicationsParameters, std::allocator<DIS::IntercomCommunicationsParameters>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::IntercomCommunicationsParameters, std::allocator<DIS::IntercomCommunicationsParameters>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::IntercomCommunicationsParameters, std::allocator<DIS::IntercomCommunicationsParameters>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::IntercomCommunicationsParameters, std::allocator<DIS::IntercomCommunicationsParameters>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS18IntercomControlPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.DIS::IntercomCommunicationsParameters", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 1
  %13 = load i8, ptr %12, align 2, !tbaa !9
  %14 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %11, i8 noundef zeroext %13)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 2
  %17 = load i8, ptr %16, align 1, !tbaa !20
  %18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %15, i8 noundef zeroext %17)
  %19 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 4
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %19, ptr noundef nonnull align 8 dereferenceable(48) %20)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 5
  %23 = load i8, ptr %22, align 8, !tbaa !21
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %21, i8 noundef zeroext %23)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 6
  %27 = load i8, ptr %26, align 1, !tbaa !22
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %25, i8 noundef zeroext %27)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 7
  %31 = load i8, ptr %30, align 2, !tbaa !23
  %32 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %29, i8 noundef zeroext %31)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 8
  %35 = load i8, ptr %34, align 1, !tbaa !24
  %36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %33, i8 noundef zeroext %35)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 9
  %39 = load i8, ptr %38, align 4, !tbaa !25
  %40 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %37, i8 noundef zeroext %39)
  %41 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 11
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %41, ptr noundef nonnull align 8 dereferenceable(48) %42)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 12
  %45 = load i16, ptr %44, align 8, !tbaa !26
  %46 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %43, i16 noundef zeroext %45)
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 14
  %49 = call noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = trunc i64 %49 to i32
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %47, i32 noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !27
  br label %52

52:                                               ; preds = %64, %2
  %53 = load i64, ptr %5, align 8, !tbaa !27
  %54 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 14
  %55 = call noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  %56 = icmp ult i64 %53, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %71

58:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %59 = getelementptr inbounds %"class.DIS::IntercomControlPdu", ptr %9, i32 0, i32 14
  %60 = load i64, ptr %5, align 8, !tbaa !27
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %60) #6
  call void @_ZN3DIS32IntercomCommunicationsParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %61) #6
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS32IntercomCommunicationsParameters7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(48) %62)
          to label %63 unwind label %67

63:                                               ; preds = %58
  call void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %64

64:                                               ; preds = %63
  %65 = load i64, ptr %5, align 8, !tbaa !27
  %66 = add i64 %65, 1
  store i64 %66, ptr %5, align 8, !tbaa !27
  br label %52, !llvm.loop !29

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %72

71:                                               ; preds = %57
  ret void

72:                                               ; preds = %67
  %73 = load ptr, ptr %7, align 8
  %74 = load i32, ptr %8, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

declare void @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) #2

declare void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext) #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3DIS32IntercomCommunicationsParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

declare void @_ZNK3DIS32IntercomCommunicationsParameters7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

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

attributes #0 = { mustprogress 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 = { mustprogress 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 = { inlinehint mustprogress 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 #5 = { 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 #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !7, i64 42}
!10 = !{!"_ZTSN3DIS18IntercomControlPduE", !11, i64 0, !7, i64 42, !7, i64 43, !15, i64 48, !7, i64 64, !7, i64 65, !7, i64 66, !7, i64 67, !7, i64 68, !15, i64 72, !14, i64 88, !13, i64 92, !16, i64 96}
!11 = !{!"_ZTSN3DIS28RadioCommunicationsFamilyPduE", !12, i64 0, !15, i64 24, !14, i64 40}
!12 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !14, i64 16, !14, i64 18}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSN3DIS8EntityIDE", !14, i64 8, !14, i64 10, !14, i64 12}
!16 = !{!"_ZTSSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!10, !7, i64 43}
!21 = !{!10, !7, i64 64}
!22 = !{!10, !7, i64 65}
!23 = !{!10, !7, i64 66}
!24 = !{!10, !7, i64 67}
!25 = !{!10, !7, i64 68}
!26 = !{!10, !14, i64 88}
!27 = !{!28, !28, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"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"

%"class.DIS::IntercomCommunicationsParameters" = type { ptr, i16, i16, i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS18IntercomControlPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::IntercomCommunicationsParameters", align 8
  tail call void @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 42
  %5 = load i8, ptr %4, align 2, !tbaa !5
  %6 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 43
  %8 = load i8, ptr %7, align 1, !tbaa !19
  %9 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %10, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = load i8, ptr %11, align 8, !tbaa !20
  %13 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 65
  %15 = load i8, ptr %14, align 1, !tbaa !21
  %16 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 66
  %18 = load i8, ptr %17, align 2, !tbaa !22
  %19 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %18)
  %20 = getelementptr inbounds i8, ptr %0, i64 67
  %21 = load i8, ptr %20, align 1, !tbaa !23
  %22 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %21)
  %23 = getelementptr inbounds i8, ptr %0, i64 68
  %24 = load i8, ptr %23, align 4, !tbaa !24
  %25 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %26, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %27 = getelementptr inbounds i8, ptr %0, i64 88
  %28 = load i16, ptr %27, align 8, !tbaa !25
  %29 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 96
  %31 = tail call noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = trunc i64 %31 to i32
  %33 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %32)
  %34 = tail call noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %.not = icmp eq i64 %34, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %36, %2
  ret void

.lr.ph:                                           ; preds = %2, %36
  %.018 = phi i64 [ %37, %36 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.018) #6
  call void @_ZN3DIS32IntercomCommunicationsParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  invoke void @_ZNK3DIS32IntercomCommunicationsParameters7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %36 unwind label %40

36:                                               ; preds = %.lr.ph
  call void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %37 = add nuw i64 %.018, 1
  %38 = call noundef i64 @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !26

40:                                               ; preds = %.lr.ph
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %41
}

declare void @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) local_unnamed_addr #2

declare void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3DIS32IntercomCommunicationsParametersC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

declare void @_ZNK3DIS32IntercomCommunicationsParameters7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3DIS32IntercomCommunicationsParametersD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

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

attributes #0 = { mustprogress 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 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress 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 #5 = { 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 #6 = { 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, !9, i64 42}
!6 = !{!"_ZTSN3DIS18IntercomControlPduE", !7, i64 0, !9, i64 42, !9, i64 43, !13, i64 48, !9, i64 64, !9, i64 65, !9, i64 66, !9, i64 67, !9, i64 68, !13, i64 72, !12, i64 88, !11, i64 92, !14, i64 96}
!7 = !{!"_ZTSN3DIS28RadioCommunicationsFamilyPduE", !8, i64 0, !13, i64 24, !12, i64 40}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSSt6vectorIN3DIS32IntercomCommunicationsParametersESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3DIS32IntercomCommunicationsParametersESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!6, !9, i64 43}
!20 = !{!6, !9, i64 64}
!21 = !{!6, !9, i64 65}
!22 = !{!6, !9, i64 66}
!23 = !{!6, !9, i64 67}
!24 = !{!6, !9, i64 68}
!25 = !{!6, !12, i64 88}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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