; 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 void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE5clearEv(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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #2

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

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

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

28:                                               ; preds = %40, %2
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 4
  %31 = load i16, ptr %30, align 8, !tbaa !11
  %32 = zext i16 %31 to i64
  %33 = icmp ult i64 %29, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %47

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #5
  call void @_ZN3DIS18BeamAntennaPatternC1Ev(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3DIS18BeamAntennaPattern9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(48) %36)
          to label %37 unwind label %43

37:                                               ; preds = %35
  %38 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 6
  invoke void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(64) %6)
          to label %39 unwind label %43

39:                                               ; preds = %37
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  br label %40

40:                                               ; preds = %39
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = add i64 %41, 1
  store i64 %42, ptr %5, align 8, !tbaa !9
  br label %28, !llvm.loop !23

43:                                               ; preds = %37, %35
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %69

47:                                               ; preds = %34
  %48 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 7
  call void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %61, %47
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 5
  %52 = load i16, ptr %51, align 2, !tbaa !25
  %53 = zext i16 %52 to i64
  %54 = icmp ult i64 %50, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %68

56:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3DIS36DirectedEnergyTargetEnergyDeposition9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %57)
          to label %58 unwind label %64

58:                                               ; preds = %56
  %59 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 7
  invoke void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %60 unwind label %64

60:                                               ; preds = %58
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  br label %61

61:                                               ; preds = %60
  %62 = load i64, ptr %9, align 8, !tbaa !9
  %63 = add i64 %62, 1
  store i64 %63, ptr %9, align 8, !tbaa !9
  br label %49, !llvm.loop !26

64:                                               ; preds = %58, %56
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %69

68:                                               ; preds = %55
  ret void

69:                                               ; preds = %64, %43
  %70 = load ptr, ptr %7, align 8
  %71 = load i32, ptr %8, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 2 dereferenceable(2)) #4

declare void @_ZN3DIS18BeamAntennaPatternC1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4

declare void @_ZN3DIS18BeamAntennaPattern9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

declare void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS36DirectedEnergyTargetEnergyDeposition9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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 = { 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 #3 = { 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 #4 = { "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 }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 16}
!12 = !{!"_ZTSN3DIS26DirectedEnergyAreaAimpointE", !13, i64 8, !14, i64 12, !14, i64 14, !14, i64 16, !14, i64 18, !15, i64 24, !19, i64 48}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !14, i64 18}
!26 = distinct !{!26, !24}


; 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 void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE5clearEv(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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DIS26DirectedEnergyAreaAimpoint9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::BeamAntennaPattern", align 8
  %4 = alloca %"class.DIS::DirectedEnergyTargetEnergyDeposition", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 12
  %8 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 2 dereferenceable(2) %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 14
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 2 dereferenceable(2) %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 2 dereferenceable(2) %11)
  %13 = getelementptr inbounds i8, ptr %0, i64 18
  %14 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 2 dereferenceable(2) %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %16 = load i16, ptr %11, align 8, !tbaa !5
  %.not = icmp eq i16 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %20, %2
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %18 = load i16, ptr %13, align 2, !tbaa !20
  %.not22 = icmp eq i16 %18, 0
  br i1 %.not22, label %._crit_edge21, label %.lr.ph20

.lr.ph:                                           ; preds = %2, %20
  %.01517 = phi i64 [ %21, %20 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @_ZN3DIS18BeamAntennaPatternC1Ev(ptr noundef nonnull align 8 dereferenceable(64) %3)
  invoke void @_ZN3DIS18BeamAntennaPattern9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %19 unwind label %25

19:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(64) %3)
          to label %20 unwind label %25

20:                                               ; preds = %19
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  %21 = add nuw nsw i64 %.01517, 1
  %22 = load i16, ptr %11, align 8, !tbaa !5
  %23 = zext i16 %22 to i64
  %24 = icmp ult i64 %21, %23
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !21

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

._crit_edge21:                                    ; preds = %28, %._crit_edge
  ret void

.lr.ph20:                                         ; preds = %._crit_edge, %28
  %.018 = phi i64 [ %29, %28 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4)
  invoke void @_ZN3DIS36DirectedEnergyTargetEnergyDeposition9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %27 unwind label %33

27:                                               ; preds = %.lr.ph20
  invoke void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %28 unwind label %33

28:                                               ; preds = %27
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  %29 = add nuw nsw i64 %.018, 1
  %30 = load i16, ptr %13, align 2, !tbaa !20
  %31 = zext i16 %30 to i64
  %32 = icmp ult i64 %29, %31
  br i1 %32, label %.lr.ph20, label %._crit_edge21, !llvm.loop !23

33:                                               ; preds = %27, %.lr.ph20
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  br label %35

35:                                               ; preds = %33, %25
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %34, %33 ]
  resume { ptr, i32 } %.pn
}

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERt(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #4

declare void @_ZN3DIS18BeamAntennaPatternC1Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4

declare void @_ZN3DIS18BeamAntennaPattern9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

declare void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS36DirectedEnergyTargetEnergyDeposition9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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 = { 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 #3 = { 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 #4 = { "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 }

!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 16}
!6 = !{!"_ZTSN3DIS26DirectedEnergyAreaAimpointE", !7, i64 8, !10, i64 12, !10, i64 14, !10, i64 16, !10, i64 18, !11, i64 24, !16, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!6, !10, i64 18}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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