; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis7/IFFPdu.ll (ZNK3DIS6IFFPdu7marshalERNS_10DataStreamE)

; 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::IFFFundamentalParameterData" = type { ptr, float, float, float, float, i32, i8, [3 x i8] }
%"class.DIS::IFFPdu" = type { %"class.DIS::DistributedEmissionsFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EventIdentifier", %"class.DIS::Vector3Float", i32, [4 x i8], %"class.DIS::SystemIdentifier", i8, i8, %"class.DIS::FundamentalOperationalData", %"class.DIS::LayerHeader", %"class.DIS::BeamData", %"class.DIS::SecondaryOperationalData", %"class.std::vector" }
%"class.DIS::DistributedEmissionsFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"class.DIS::Pdu.base" = type { %"class.DIS::PduSuperclass.base", i8, i8 }
%"class.DIS::PduSuperclass.base" = type <{ ptr, i8, i8, i8, i8, i32, i16 }>
%"class.DIS::EntityID" = type <{ ptr, %"class.DIS::SimulationAddress", i16, [6 x i8] }>
%"class.DIS::SimulationAddress" = type <{ ptr, i16, i16, [4 x i8] }>
%"class.DIS::EventIdentifier" = type <{ ptr, %"class.DIS::SimulationAddress", i16, [6 x i8] }>
%"class.DIS::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.DIS::SystemIdentifier" = type <{ ptr, i16, i16, i16, i8, i8 }>
%"class.DIS::FundamentalOperationalData" = type { ptr, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16 }
%"class.DIS::LayerHeader" = type <{ ptr, i8, i8, i16, [4 x i8] }>
%"class.DIS::BeamData" = type <{ ptr, float, float, float, float, float, [4 x i8] }>
%"class.DIS::SecondaryOperationalData" = type <{ ptr, i8, i8, i16, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::IFFFundamentalParameterData, std::allocator<DIS::IFFFundamentalParameterData>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::IFFFundamentalParameterData, std::allocator<DIS::IFFFundamentalParameterData>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::IFFFundamentalParameterData, std::allocator<DIS::IFFFundamentalParameterData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::IFFFundamentalParameterData, std::allocator<DIS::IFFFundamentalParameterData>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS6IFFPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #0 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::IFFFundamentalParameterData", 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 @_ZNK3DIS29DistributedEmissionsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
  %11 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS15EventIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26) %13, ptr noundef nonnull align 8 dereferenceable(48) %14)
  %15 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 4
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %15, ptr noundef nonnull align 8 dereferenceable(48) %16)
  %17 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 7
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS16SystemIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(15) %17, ptr noundef nonnull align 8 dereferenceable(48) %18)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 8
  %21 = load i8, ptr %20, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %19, i8 noundef zeroext %21)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 9
  %25 = load i8, ptr %24, align 1, !tbaa !30
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %23, i8 noundef zeroext %25)
  %27 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 10
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS26FundamentalOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(48) %28)
  %29 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 11
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS11LayerHeader7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %29, ptr noundef nonnull align 8 dereferenceable(48) %30)
  %31 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 12
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8BeamData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(48) %32)
  %33 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 13
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS24SecondaryOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %33, ptr noundef nonnull align 8 dereferenceable(48) %34)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 14
  %37 = call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = trunc i64 %37 to i8
  %39 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %35, i8 noundef zeroext %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !31
  br label %40

40:                                               ; preds = %52, %2
  %41 = load i64, ptr %5, align 8, !tbaa !31
  %42 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 14
  %43 = call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = icmp ult i64 %41, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  %47 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %9, i32 0, i32 14
  %48 = load i64, ptr %5, align 8, !tbaa !31
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #6
  call void @_ZN3DIS27IFFFundamentalParameterDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %49) #6
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS27IFFFundamentalParameterData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(48) %50)
          to label %51 unwind label %55

51:                                               ; preds = %46
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %5, align 8, !tbaa !31
  %54 = add i64 %53, 1
  store i64 %54, ptr %5, align 8, !tbaa !31
  br label %40, !llvm.loop !33

55:                                               ; preds = %46
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %60

59:                                               ; preds = %45
  ret void

60:                                               ; preds = %55
  %61 = load ptr, ptr %7, align 8
  %62 = load i32, ptr %8, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

declare void @_ZNK3DIS29DistributedEmissionsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

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

declare void @_ZNK3DIS15EventIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS16SystemIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(15), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

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

declare void @_ZNK3DIS26FundamentalOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS11LayerHeader7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS8BeamData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS24SecondaryOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 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(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

declare void @_ZNK3DIS27IFFFundamentalParameterData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 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 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 = { 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 136}
!10 = !{!"_ZTSN3DIS6IFFPduE", !11, i64 0, !16, i64 24, !18, i64 56, !19, i64 88, !14, i64 112, !21, i64 120, !7, i64 136, !7, i64 137, !22, i64 144, !23, i64 168, !24, i64 184, !25, i64 216, !26, i64 232}
!11 = !{!"_ZTSN3DIS29DistributedEmissionsFamilyPduE", !12, i64 0}
!12 = !{!"_ZTSN3DIS3PduE", !13, i64 0, !7, i64 18, !7, i64 19}
!13 = !{!"_ZTSN3DIS13PduSuperclassE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !14, i64 12, !15, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTSN3DIS8EntityIDE", !17, i64 8, !15, i64 24}
!17 = !{!"_ZTSN3DIS17SimulationAddressE", !15, i64 8, !15, i64 10}
!18 = !{!"_ZTSN3DIS15EventIdentifierE", !17, i64 8, !15, i64 24}
!19 = !{!"_ZTSN3DIS12Vector3FloatE", !20, i64 8, !20, i64 12, !20, i64 16}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3DIS16SystemIdentifierE", !15, i64 8, !15, i64 10, !15, i64 12, !7, i64 14}
!22 = !{!"_ZTSN3DIS26FundamentalOperationalDataE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !15, i64 20, !15, i64 22}
!23 = !{!"_ZTSN3DIS11LayerHeaderE", !7, i64 8, !7, i64 9, !15, i64 10}
!24 = !{!"_ZTSN3DIS8BeamDataE", !20, i64 8, !20, i64 12, !20, i64 16, !20, i64 20, !20, i64 24}
!25 = !{!"_ZTSN3DIS24SecondaryOperationalDataE", !7, i64 8, !7, i64 9, !15, i64 10}
!26 = !{!"_ZTSSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!10, !7, i64 137}
!31 = !{!32, !32, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"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::IFFFundamentalParameterData" = type { ptr, float, float, float, float, i32, i8, [3 x i8] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS6IFFPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::IFFFundamentalParameterData", align 8
  tail call void @_ZNK3DIS29DistributedEmissionsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNK3DIS15EventIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZNK3DIS16SystemIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(15) %7, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i8, ptr %8, align 8, !tbaa !5
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 137
  %12 = load i8, ptr %11, align 1, !tbaa !29
  %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 144
  tail call void @_ZNK3DIS26FundamentalOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %15 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZNK3DIS11LayerHeader7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %16 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZNK3DIS8BeamData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(28) %16, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZNK3DIS24SecondaryOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %18 = getelementptr inbounds i8, ptr %0, i64 232
  %19 = tail call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = trunc i64 %19 to i8
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %20)
  %22 = tail call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

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

.lr.ph:                                           ; preds = %2, %24
  %.018 = phi i64 [ %25, %24 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  %23 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.018) #6
  call void @_ZN3DIS27IFFFundamentalParameterDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  invoke void @_ZNK3DIS27IFFFundamentalParameterData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %24 unwind label %28

24:                                               ; preds = %.lr.ph
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %25 = add nuw i64 %.018, 1
  %26 = call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %27 = icmp ult i64 %25, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !30

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

declare void @_ZNK3DIS29DistributedEmissionsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

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

declare void @_ZNK3DIS15EventIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(26), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS16SystemIdentifier7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(15), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

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

declare void @_ZNK3DIS26FundamentalOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS11LayerHeader7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS8BeamData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

declare void @_ZNK3DIS24SecondaryOperationalData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 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(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

declare void @_ZNK3DIS27IFFFundamentalParameterData7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 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 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 = { 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, !10, i64 136}
!6 = !{!"_ZTSN3DIS6IFFPduE", !7, i64 0, !14, i64 24, !16, i64 56, !17, i64 88, !12, i64 112, !19, i64 120, !10, i64 136, !10, i64 137, !20, i64 144, !21, i64 168, !22, i64 184, !23, i64 216, !24, i64 232}
!7 = !{!"_ZTSN3DIS29DistributedEmissionsFamilyPduE", !8, i64 0}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 0, !10, i64 18, !10, i64 19}
!9 = !{!"_ZTSN3DIS13PduSuperclassE", !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !12, i64 12, !13, i64 16}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"short", !10, i64 0}
!14 = !{!"_ZTSN3DIS8EntityIDE", !15, i64 8, !13, i64 24}
!15 = !{!"_ZTSN3DIS17SimulationAddressE", !13, i64 8, !13, i64 10}
!16 = !{!"_ZTSN3DIS15EventIdentifierE", !15, i64 8, !13, i64 24}
!17 = !{!"_ZTSN3DIS12Vector3FloatE", !18, i64 8, !18, i64 12, !18, i64 16}
!18 = !{!"float", !10, i64 0}
!19 = !{!"_ZTSN3DIS16SystemIdentifierE", !13, i64 8, !13, i64 10, !13, i64 12, !10, i64 14}
!20 = !{!"_ZTSN3DIS26FundamentalOperationalDataE", !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !13, i64 22}
!21 = !{!"_ZTSN3DIS11LayerHeaderE", !10, i64 8, !10, i64 9, !13, i64 10}
!22 = !{!"_ZTSN3DIS8BeamDataE", !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24}
!23 = !{!"_ZTSN3DIS24SecondaryOperationalDataE", !10, i64 8, !10, i64 9, !13, i64 10}
!24 = !{!"_ZTSSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3DIS27IFFFundamentalParameterDataESaIS1_EE17_Vector_impl_dataE", !28, i64 0, !28, i64 8, !28, i64 16}
!28 = !{!"any pointer", !10, i64 0}
!29 = !{!6, !10, i64 137}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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