; 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: mustprogress uwtable
define dso_local void @_ZNK3DIS26DirectedEnergyAreaAimpoint7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 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 = load i32, ptr %13, align 8, !tbaa !9
  %15 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %12, i32 noundef %14)
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 2
  %18 = load i16, ptr %17, align 4, !tbaa !21
  %19 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %16, i16 noundef zeroext %18)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 3
  %22 = load i16, ptr %21, align 2, !tbaa !22
  %23 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %20, i16 noundef zeroext %22)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 6
  %26 = call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %27 = trunc i64 %26 to i16
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %24, i16 noundef zeroext %27)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 7
  %31 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = trunc i64 %31 to i16
  %33 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %29, i16 noundef zeroext %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !23
  br label %34

34:                                               ; preds = %46, %2
  %35 = load i64, ptr %5, align 8, !tbaa !23
  %36 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 6
  %37 = call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #6
  %41 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 6
  %42 = load i64, ptr %5, align 8, !tbaa !23
  %43 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #6
  call void @_ZN3DIS18BeamAntennaPatternC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %43) #6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS18BeamAntennaPattern7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(48) %44)
          to label %45 unwind label %49

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

46:                                               ; preds = %45
  %47 = load i64, ptr %5, align 8, !tbaa !23
  %48 = add i64 %47, 1
  store i64 %48, ptr %5, align 8, !tbaa !23
  br label %34, !llvm.loop !25

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

53:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !23
  br label %54

54:                                               ; preds = %66, %53
  %55 = load i64, ptr %9, align 8, !tbaa !23
  %56 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 7
  %57 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %60, label %59

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

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  %61 = getelementptr inbounds %"class.DIS::DirectedEnergyAreaAimpoint", ptr %11, i32 0, i32 7
  %62 = load i64, ptr %9, align 8, !tbaa !23
  %63 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62) #6
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %63) #6
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %65 unwind label %69

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

66:                                               ; preds = %65
  %67 = load i64, ptr %9, align 8, !tbaa !23
  %68 = add i64 %67, 1
  store i64 %68, ptr %9, align 8, !tbaa !23
  br label %54, !llvm.loop !27

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %74

73:                                               ; preds = %59
  ret void

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(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 #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN3DIS26DirectedEnergyAreaAimpointE", !11, i64 8, !12, i64 12, !12, i64 14, !12, i64 16, !12, i64 18, !13, i64 24, !17, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3DIS18BeamAntennaPatternESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!10, !12, i64 12}
!22 = !{!10, !12, i64 14}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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 uwtable
define dso_local void @_ZNK3DIS26DirectedEnergyAreaAimpoint7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 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 = load i32, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = load i16, ptr %8, align 4, !tbaa !20
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 14
  %12 = load i16, ptr %11, align 2, !tbaa !21
  %13 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = tail call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %16 = trunc i64 %15 to i16
  %17 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = tail call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = trunc i64 %19 to i16
  %21 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %20)
  %22 = tail call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %25, %2
  %23 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %.not22 = icmp eq i64 %23, 0
  br i1 %.not22, label %._crit_edge, label %.lr.ph21

.lr.ph:                                           ; preds = %2, %25
  %.01719 = phi i64 [ %26, %25 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  %24 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.01719) #6
  call void @_ZN3DIS18BeamAntennaPatternC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(64) %24) #6
  invoke void @_ZNK3DIS18BeamAntennaPattern7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %25 unwind label %29

25:                                               ; preds = %.lr.ph
  call void @_ZN3DIS18BeamAntennaPatternD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  %26 = add nuw i64 %.01719, 1
  %27 = call noundef i64 @_ZNKSt6vectorIN3DIS18BeamAntennaPatternESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %.lr.ph, label %.preheader, !llvm.loop !22

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

._crit_edge:                                      ; preds = %32, %.preheader
  ret void

.lr.ph21:                                         ; preds = %.preheader, %32
  %.020 = phi i64 [ %33, %32 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.020) #6
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %31) #6
  invoke void @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %32 unwind label %36

32:                                               ; preds = %.lr.ph21
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  %33 = add nuw i64 %.020, 1
  %34 = call noundef i64 @_ZNKSt6vectorIN3DIS36DirectedEnergyTargetEnergyDepositionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph21, label %._crit_edge, !llvm.loop !24

36:                                               ; preds = %.lr.ph21
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  br label %38

38:                                               ; preds = %36, %29
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %37, %36 ]
  resume { ptr, i32 } %.pn
}

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(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 #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZNK3DIS36DirectedEnergyTargetEnergyDeposition7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3DIS36DirectedEnergyTargetEnergyDepositionD1Ev(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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!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 12}
!21 = !{!6, !10, i64 14}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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