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

; 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::BeamAntennaPattern" = type { ptr, %"class.DIS::EulerAngles", float, float, float, i8, i16, float, float, float, i32 }
%"class.DIS::EulerAngles" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.DIS::DirectedEnergyTargetEnergyDeposition" = type { ptr, %"class.DIS::EntityID", i16, float }
%"class.DIS::EntityID" = type <{ ptr, %"class.DIS::SimulationAddress", i16, [6 x i8] }>
%"class.DIS::SimulationAddress" = type <{ ptr, i16, i16, [4 x i8] }>
%"class.DIS::DirectedEnergyAreaAimpoint" = type { ptr, i32, i16, i16, i16, i16, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::BeamAntennaPattern, std::allocator<DIS::BeamAntennaPattern>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::BeamAntennaPattern, std::allocator<DIS::BeamAntennaPattern>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::BeamAntennaPattern, std::allocator<DIS::BeamAntennaPattern>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::BeamAntennaPattern, std::allocator<DIS::BeamAntennaPattern>>::_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::DirectedEnergyTargetEnergyDeposition, std::allocator<DIS::DirectedEnergyTargetEnergyDeposition>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::DirectedEnergyTargetEnergyDeposition, std::allocator<DIS::DirectedEnergyTargetEnergyDeposition>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::DirectedEnergyTargetEnergyDeposition, std::allocator<DIS::DirectedEnergyTargetEnergyDeposition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::DirectedEnergyTargetEnergyDeposition, std::allocator<DIS::DirectedEnergyTargetEnergyDeposition>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) 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 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS26DirectedEnergyAreaAimpoint17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(72) %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::BeamAntennaPattern", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.DIS::DirectedEnergyTargetEnergyDeposition", 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) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = add nsw i32 %11, 4
  store i32 %12, ptr %3, align 4, !tbaa !9
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = add nsw i32 %13, 2
  store i32 %14, ptr %3, align 4, !tbaa !9
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = add nsw i32 %15, 2
  store i32 %16, ptr %3, align 4, !tbaa !9
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = add nsw i32 %17, 2
  store i32 %18, ptr %3, align 4, !tbaa !9
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = add nsw i32 %19, 2
  store i32 %20, 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 %21

21:                                               ; preds = %35, %1
  %22 = load i64, ptr %4, align 8, !tbaa !11
  %23 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %10, i32 0, i32 6
  %24 = call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %25 = icmp ult i64 %22, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #6
  %28 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %10, i32 0, i32 6
  %29 = load i64, ptr %4, align 8, !tbaa !11
  %30 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %29) #6
  call void @_ZN3DIS18BeamAntennaPatternC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %5, ptr noundef nonnull align 8 dereferenceable(64) %30) #6
  %31 = load i32, ptr %3, align 4, !tbaa !9
  %32 = invoke noundef i32 @_ZNK3DIS18BeamAntennaPattern17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(64) %5)
          to label %33 unwind label %38

33:                                               ; preds = %27
  %34 = add nsw i32 %31, %32
  store i32 %34, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #6
  br label %35

35:                                               ; preds = %33
  %36 = load i64, ptr %4, align 8, !tbaa !11
  %37 = add i64 %36, 1
  store i64 %37, ptr %4, align 8, !tbaa !11
  br label %21, !llvm.loop !13

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %7, align 4
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %66

42:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %57, %42
  %44 = load i64, ptr %8, align 8, !tbaa !11
  %45 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %10, i32 0, i32 7
  %46 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = icmp ult i64 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #6
  %50 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %10, i32 0, i32 7
  %51 = load i64, ptr %8, align 8, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %51) #6
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %52) #6
  %53 = load i32, ptr %3, align 4, !tbaa !9
  %54 = invoke noundef i32 @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %55 unwind label %60

55:                                               ; preds = %49
  %56 = add nsw i32 %53, %54
  store i32 %56, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  br label %57

57:                                               ; preds = %55
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = add i64 %58, 1
  store i64 %59, ptr %8, align 8, !tbaa !11
  br label %43, !llvm.loop !15

60:                                               ; preds = %49
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %6, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %7, align 4
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %66

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

66:                                               ; preds = %60, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %6, align 8
  %69 = load i32, ptr %7, align 4
  %70 = insertvalue { ptr, i32 } poison, ptr %68, 0
  %71 = insertvalue { ptr, i32 } %70, i32 %69, 1
  resume { ptr, i32 } %71
}

declare noundef i32 @_ZNK3DIS18BeamAntennaPattern17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48)) 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"}
!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::BeamAntennaPattern" = type { ptr, %"class.DIS::EulerAngles", float, float, float, i8, i16, float, float, float, i32 }
%"class.DIS::EulerAngles" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.DIS::DirectedEnergyTargetEnergyDeposition" = type { ptr, %"class.DIS::EntityID", i16, float }
%"class.DIS::EntityID" = type <{ ptr, %"class.DIS::SimulationAddress", i16, [6 x i8] }>
%"class.DIS::SimulationAddress" = type <{ ptr, i16, i16, [4 x i8] }>

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_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(64) ptr @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_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 @_ZN3DIS18BeamAntennaPatternC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) 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 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_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 @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS26DirectedEnergyAreaAimpoint17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(72) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::BeamAntennaPattern", align 8
  %3 = alloca %"class.DIS::DirectedEnergyTargetEnergyDeposition", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = tail call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %10, %1
  %.019.lcssa = phi i32 [ 12, %1 ], [ %11, %10 ]
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %.not29 = icmp eq i64 %7, 0
  br i1 %.not29, label %._crit_edge, label %.lr.ph27

.lr.ph:                                           ; preds = %1, %10
  %.01824 = phi i64 [ %12, %10 ], [ 0, %1 ]
  %.01923 = phi i32 [ %11, %10 ], [ 12, %1 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  %8 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.01824) #6
  call void @_ZN3DIS18BeamAntennaPatternC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull align 8 dereferenceable(64) %8) #6
  %9 = invoke noundef i32 @_ZNK3DIS18BeamAntennaPattern17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(64) %2)
          to label %10 unwind label %15

10:                                               ; preds = %.lr.ph
  %11 = add nsw i32 %9, %.01923
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  %12 = add nuw i64 %.01824, 1
  %13 = call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %14 = icmp ult i64 %12, %13
  br i1 %14, label %.lr.ph, label %.preheader, !llvm.loop !5

15:                                               ; preds = %.lr.ph
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  br label %26

._crit_edge:                                      ; preds = %19, %.preheader
  %.1.lcssa = phi i32 [ %.019.lcssa, %.preheader ], [ %20, %19 ]
  ret i32 %.1.lcssa

.lr.ph27:                                         ; preds = %.preheader, %19
  %.026 = phi i64 [ %21, %19 ], [ 0, %.preheader ]
  %.125 = phi i32 [ %20, %19 ], [ %.019.lcssa, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #6
  %17 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.026) #6
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  %18 = invoke noundef i32 @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %19 unwind label %24

19:                                               ; preds = %.lr.ph27
  %20 = add nsw i32 %18, %.125
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  %21 = add nuw i64 %.026, 1
  %22 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %.lr.ph27, label %._crit_edge, !llvm.loop !7

24:                                               ; preds = %.lr.ph27
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  br label %26

26:                                               ; preds = %24, %15
  %.pn = phi { ptr, i32 } [ %16, %15 ], [ %25, %24 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK3DIS18BeamAntennaPattern17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(48)) 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"}
!7 = distinct !{!7, !6}


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