; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis7 (ActionRequestPdu)

; 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::FixedDatum" = type { ptr, i32, i32 }
%"class.DIS::VariableDatum" = type { ptr, i32, i32, i32, i32, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DIS::ActionRequestPdu" = type { %"class.DIS::SimulationManagementFamilyPdu", %"class.DIS::EntityID", %"class.DIS::EntityID", i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.DIS::SimulationManagementFamilyPdu" = type { %"class.DIS::Pdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EntityID" }
%"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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::FixedDatum, std::allocator<DIS::FixedDatum>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::FixedDatum, std::allocator<DIS::FixedDatum>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::FixedDatum, std::allocator<DIS::FixedDatum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::FixedDatum, std::allocator<DIS::FixedDatum>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nounwind
declare void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS16ActionRequestPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(216) %0) unnamed_addr #5 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::FixedDatum", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.DIS::VariableDatum", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  %11 = call noundef i32 @_ZNK3DIS29SimulationManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  store i32 %11, ptr %3, align 4, !tbaa !9
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 1
  %14 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %13)
  %15 = add nsw i32 %12, %14
  store i32 %15, ptr %3, align 4, !tbaa !9
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 2
  %18 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %17)
  %19 = add nsw i32 %16, %18
  store i32 %19, ptr %3, align 4, !tbaa !9
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = add nsw i32 %20, 4
  store i32 %21, ptr %3, align 4, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = add nsw i32 %22, 4
  store i32 %23, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = add nsw i32 %24, 4
  store i32 %25, ptr %3, align 4, !tbaa !9
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = add nsw i32 %26, 4
  store i32 %27, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %42, %1
  %29 = load i64, ptr %4, align 8, !tbaa !11
  %30 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 7
  %31 = call noundef i64 @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %32 = icmp ult i64 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %49

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %35 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 7
  %36 = load i64, ptr %4, align 8, !tbaa !11
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36) #7
  call void @_ZN3DIS10FixedDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %37) #7
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = invoke noundef i32 @_ZNK3DIS10FixedDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %40 unwind label %45

40:                                               ; preds = %34
  %41 = add nsw i32 %38, %39
  store i32 %41, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %42

42:                                               ; preds = %40
  %43 = load i64, ptr %4, align 8, !tbaa !11
  %44 = add i64 %43, 1
  store i64 %44, ptr %4, align 8, !tbaa !11
  br label %28, !llvm.loop !13

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  call void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %73

49:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %64, %49
  %51 = load i64, ptr %8, align 8, !tbaa !11
  %52 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 8
  %53 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %71

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #7
  %57 = getelementptr inbounds %"class.DIS::ActionRequestPdu", ptr %10, i32 0, i32 8
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58) #7
  call void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %59)
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = invoke noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %62 unwind label %67

62:                                               ; preds = %56
  %63 = add nsw i32 %60, %61
  store i32 %63, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #7
  br label %64

64:                                               ; preds = %62
  %65 = load i64, ptr %8, align 8, !tbaa !11
  %66 = add i64 %65, 1
  store i64 %66, ptr %8, align 8, !tbaa !11
  br label %50, !llvm.loop !15

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

71:                                               ; preds = %55
  %72 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret i32 %72

73:                                               ; preds = %67, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %74

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

declare noundef i32 @_ZNK3DIS29SimulationManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6

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

declare noundef i32 @_ZNK3DIS10FixedDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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 = { inlinehint 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 = { 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 #6 = { "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 #7 = { 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"}
!15 = distinct !{!15, !14}


; 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::FixedDatum" = type { ptr, i32, i32 }
%"class.DIS::VariableDatum" = type { ptr, i32, i32, i32, i32, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::EightByteChunk, std::allocator<DIS::EightByteChunk>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_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(16) ptr @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_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 @_ZN3DIS10FixedDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS16ActionRequestPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(216) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::FixedDatum", align 8
  %3 = alloca %"class.DIS::VariableDatum", align 8
  %4 = tail call noundef i32 @_ZNK3DIS29SimulationManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %5 = getelementptr inbounds i8, ptr %0, i64 88
  %6 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 120
  %8 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(26) %7)
  %9 = add i32 %4, 16
  %10 = add i32 %9, %6
  %11 = add i32 %10, %8
  %12 = getelementptr inbounds i8, ptr %0, i64 168
  %13 = tail call noundef i64 @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %18, %1
  %.020.lcssa = phi i32 [ %11, %1 ], [ %19, %18 ]
  %14 = getelementptr inbounds i8, ptr %0, i64 192
  %15 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %.not30 = icmp eq i64 %15, 0
  br i1 %.not30, label %._crit_edge, label %.lr.ph28

.lr.ph:                                           ; preds = %1, %18
  %.01925 = phi i64 [ %20, %18 ], [ 0, %1 ]
  %.02024 = phi i32 [ %19, %18 ], [ %11, %1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.01925) #7
  call void @_ZN3DIS10FixedDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  %17 = invoke noundef i32 @_ZNK3DIS10FixedDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %18 unwind label %23

18:                                               ; preds = %.lr.ph
  %19 = add nsw i32 %17, %.02024
  call void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  %20 = add nuw i64 %.01925, 1
  %21 = call noundef i64 @_ZNKSt6vectorIN3DIS10FixedDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %22 = icmp ult i64 %20, %21
  br i1 %22, label %.lr.ph, label %.preheader, !llvm.loop !5

23:                                               ; preds = %.lr.ph
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS10FixedDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  br label %34

._crit_edge:                                      ; preds = %27, %.preheader
  %.1.lcssa = phi i32 [ %.020.lcssa, %.preheader ], [ %28, %27 ]
  ret i32 %.1.lcssa

.lr.ph28:                                         ; preds = %.preheader, %27
  %.027 = phi i64 [ %29, %27 ], [ 0, %.preheader ]
  %.126 = phi i32 [ %28, %27 ], [ %.020.lcssa, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  %25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.027) #7
  call void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %25)
  %26 = invoke noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %27 unwind label %32

27:                                               ; preds = %.lr.ph28
  %28 = add nsw i32 %26, %.126
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  %29 = add nuw i64 %.027, 1
  %30 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph28, label %._crit_edge, !llvm.loop !7

32:                                               ; preds = %.lr.ph28
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  br label %34

34:                                               ; preds = %32, %23
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %33, %32 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK3DIS29SimulationManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6

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

declare noundef i32 @_ZNK3DIS10FixedDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

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 = { inlinehint 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 = { 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 #6 = { "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 #7 = { 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"}
!7 = distinct !{!7, !6}


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