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

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; 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) #0 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 #2 align 2

; Function Attrs: nounwind
declare void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS6IFFPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(256) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"class.DIS::IFFFundamentalParameterData", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  %9 = call noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %8)
  store i32 %9, ptr %3, align 4, !tbaa !9
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 2
  %12 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %11)
  %13 = add nsw i32 %10, %12
  store i32 %13, ptr %3, align 4, !tbaa !9
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 3
  %16 = call noundef i32 @_ZNK3DIS15EventIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %15)
  %17 = add nsw i32 %14, %16
  store i32 %17, ptr %3, align 4, !tbaa !9
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 4
  %20 = call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %19)
  %21 = add nsw i32 %18, %20
  store i32 %21, ptr %3, align 4, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 7
  %26 = call noundef i32 @_ZNK3DIS16SystemIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(15) %25)
  %27 = add nsw i32 %24, %26
  store i32 %27, ptr %3, align 4, !tbaa !9
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %3, align 4, !tbaa !9
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 10
  %34 = call noundef i32 @_ZNK3DIS26FundamentalOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %35 = add nsw i32 %32, %34
  store i32 %35, ptr %3, align 4, !tbaa !9
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 11
  %38 = call noundef i32 @_ZNK3DIS11LayerHeader17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %37)
  %39 = add nsw i32 %36, %38
  store i32 %39, ptr %3, align 4, !tbaa !9
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 12
  %42 = call noundef i32 @_ZNK3DIS8BeamData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %41)
  %43 = add nsw i32 %40, %42
  store i32 %43, ptr %3, align 4, !tbaa !9
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 13
  %46 = call noundef i32 @_ZNK3DIS24SecondaryOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %45)
  %47 = add nsw i32 %44, %46
  store i32 %47, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %62, %1
  %49 = load i64, ptr %4, align 8, !tbaa !11
  %50 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 14
  %51 = call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %52 = icmp ult i64 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %69

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  %55 = getelementptr inbounds %"class.DIS::IFFPdu", ptr %8, i32 0, i32 14
  %56 = load i64, ptr %4, align 8, !tbaa !11
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %56) #6
  call void @_ZN3DIS27IFFFundamentalParameterDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %57) #6
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = invoke noundef i32 @_ZNK3DIS27IFFFundamentalParameterData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %60 unwind label %65

60:                                               ; preds = %54
  %61 = add nsw i32 %58, %59
  store i32 %61, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %62

62:                                               ; preds = %60
  %63 = load i64, ptr %4, align 8, !tbaa !11
  %64 = add i64 %63, 1
  store i64 %64, ptr %4, align 8, !tbaa !11
  br label %48, !llvm.loop !13

65:                                               ; preds = %54
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %71

69:                                               ; preds = %53
  %70 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 %70

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

declare noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS15EventIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS16SystemIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(15)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS26FundamentalOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS11LayerHeader17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8BeamData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS24SecondaryOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS27IFFFundamentalParameterData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { "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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; 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 #0 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 #2 align 2

; Function Attrs: nounwind
declare void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS6IFFPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(256) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::IFFFundamentalParameterData", align 8
  %3 = tail call noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %4)
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  %7 = tail call noundef i32 @_ZNK3DIS15EventIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = tail call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = tail call noundef i32 @_ZNK3DIS16SystemIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(15) %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  %13 = tail call noundef i32 @_ZNK3DIS26FundamentalOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 168
  %15 = tail call noundef i32 @_ZNK3DIS11LayerHeader17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 184
  %17 = tail call noundef i32 @_ZNK3DIS8BeamData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 216
  %19 = tail call noundef i32 @_ZNK3DIS24SecondaryOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %18)
  %20 = add i32 %3, 3
  %21 = add i32 %20, %5
  %22 = add i32 %21, %7
  %23 = add i32 %22, %9
  %24 = add i32 %23, %11
  %25 = add nsw i32 %24, %13
  %26 = add nsw i32 %25, %15
  %27 = add nsw i32 %26, %17
  %28 = add nsw i32 %27, %19
  %29 = getelementptr inbounds i8, ptr %0, i64 232
  %30 = tail call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %.not = icmp eq i64 %30, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %33, %1
  %.0.lcssa = phi i32 [ %28, %1 ], [ %34, %33 ]
  ret i32 %.0.lcssa

.lr.ph:                                           ; preds = %1, %33
  %.021 = phi i32 [ %34, %33 ], [ %28, %1 ]
  %.01820 = phi i64 [ %35, %33 ], [ 0, %1 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %.01820) #6
  call void @_ZN3DIS27IFFFundamentalParameterDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  %32 = invoke noundef i32 @_ZNK3DIS27IFFFundamentalParameterData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %33 unwind label %38

33:                                               ; preds = %.lr.ph
  %34 = add nsw i32 %32, %.021
  call void @_ZN3DIS27IFFFundamentalParameterDataD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  %35 = add nuw i64 %.01820, 1
  %36 = call noundef i64 @_ZNKSt6vectorIN3DIS27IFFFundamentalParameterDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !5

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

declare noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS15EventIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS16SystemIdentifier17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(15)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS26FundamentalOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS11LayerHeader17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8BeamData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS24SecondaryOperationalData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS27IFFFundamentalParameterData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass