; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6 (DetonationPdu)

; 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::ArticulationParameter" = type { ptr, i8, i8, i16, i32, double }
%"class.DIS::DetonationPdu" = type { %"class.DIS::WarfareFamilyPdu", %"class.DIS::EntityID", %"class.DIS::EventID", %"class.DIS::Vector3Float", %"class.DIS::Vector3Double", %"class.DIS::BurstDescriptor", %"class.DIS::Vector3Float", i8, i8, i16, %"class.std::vector" }
%"class.DIS::WarfareFamilyPdu" = type { %"class.DIS::Pdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EntityID" }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EventID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::Vector3Double" = type { ptr, double, double, double }
%"class.DIS::BurstDescriptor" = type { ptr, %"class.DIS::EntityType", i16, i16, i16, i16 }
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::ArticulationParameter, std::allocator<DIS::ArticulationParameter>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::ArticulationParameter, std::allocator<DIS::ArticulationParameter>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::ArticulationParameter, std::allocator<DIS::ArticulationParameter>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::ArticulationParameter, std::allocator<DIS::ArticulationParameter>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN3DIS21ArticulationParameterD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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: mustprogress uwtable
define dso_local void @_ZN3DIS13DetonationPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(232) %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::ArticulationParameter", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS16WarfareFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
  %11 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 1
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS7EventID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %13, ptr noundef nonnull align 8 dereferenceable(48) %14)
  %15 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS12Vector3Float9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %15, ptr noundef nonnull align 8 dereferenceable(48) %16)
  %17 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS13Vector3Double9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(48) %18)
  %19 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS15BurstDescriptor9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(48) %20)
  %21 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS12Vector3Float9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %21, ptr noundef nonnull align 8 dereferenceable(48) %22)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 7
  %25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 8
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 9
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERs(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 2 dereferenceable(2) %30)
  %32 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 10
  call void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %45, %2
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 8
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = zext i8 %36 to i64
  %38 = icmp ult i64 %34, %37
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @_ZN3DIS21ArticulationParameterC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3DIS21ArticulationParameter9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %42 unwind label %48

42:                                               ; preds = %40
  %43 = getelementptr inbounds %"class.DIS::DetonationPdu", ptr %9, i32 0, i32 10
  invoke void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %44 unwind label %48

44:                                               ; preds = %42
  call void @_ZN3DIS21ArticulationParameterD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %45

45:                                               ; preds = %44
  %46 = load i64, ptr %5, align 8, !tbaa !9
  %47 = add i64 %46, 1
  store i64 %47, ptr %5, align 8, !tbaa !9
  br label %33, !llvm.loop !29

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

52:                                               ; preds = %39
  ret void

53:                                               ; preds = %48
  %54 = load ptr, ptr %7, align 8
  %55 = load i32, ptr %8, align 4
  %56 = insertvalue { ptr, i32 } poison, ptr %54, 0
  %57 = insertvalue { ptr, i32 } %56, i32 %55, 1
  resume { ptr, i32 } %57
}

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

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

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

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

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

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

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

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

declare void @_ZN3DIS21ArticulationParameterC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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, !7, i64 201}
!12 = !{!"_ZTSN3DIS13DetonationPduE", !13, i64 0, !17, i64 56, !18, i64 72, !19, i64 88, !21, i64 112, !23, i64 144, !19, i64 176, !7, i64 200, !7, i64 201, !16, i64 202, !25, i64 208}
!13 = !{!"_ZTSN3DIS16WarfareFamilyPduE", !14, i64 0, !17, i64 24, !17, i64 40}
!14 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 12, !16, i64 16, !16, i64 18}
!15 = !{!"int", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN3DIS8EntityIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!18 = !{!"_ZTSN3DIS7EventIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!19 = !{!"_ZTSN3DIS12Vector3FloatE", !20, i64 8, !20, i64 12, !20, i64 16}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3DIS13Vector3DoubleE", !22, i64 8, !22, i64 16, !22, i64 24}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTSN3DIS15BurstDescriptorE", !24, i64 8, !16, i64 24, !16, i64 26, !16, i64 28, !16, i64 30}
!24 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !16, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!25 = !{!"_ZTSSt6vectorIN3DIS21ArticulationParameterESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.DIS::ArticulationParameter" = type { ptr, i8, i8, i16, i32, double }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN3DIS21ArticulationParameterD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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: mustprogress uwtable
define dso_local void @_ZN3DIS13DetonationPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::ArticulationParameter", align 8
  tail call void @_ZN3DIS16WarfareFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN3DIS7EventID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZN3DIS12Vector3Float9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN3DIS13Vector3Double9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %8 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN3DIS15BurstDescriptor9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZN3DIS12Vector3Float9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %9, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %10 = getelementptr inbounds i8, ptr %0, i64 200
  %11 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 201
  %13 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 202
  %15 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERs(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 2 dereferenceable(2) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %17 = load i8, ptr %12, align 1, !tbaa !5
  %.not = icmp eq i8 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %19, %2
  ret void

.lr.ph:                                           ; preds = %2, %19
  %.015 = phi i64 [ %20, %19 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN3DIS21ArticulationParameterC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  invoke void @_ZN3DIS21ArticulationParameter9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %18 unwind label %24

18:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %19 unwind label %24

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

24:                                               ; preds = %18, %.lr.ph
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS21ArticulationParameterD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %25
}

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

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

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

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

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

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

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

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

declare void @_ZN3DIS21ArticulationParameterC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3DIS21ArticulationParameterESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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, !9, i64 201}
!6 = !{!"_ZTSN3DIS13DetonationPduE", !7, i64 0, !13, i64 56, !14, i64 72, !15, i64 88, !17, i64 112, !19, i64 144, !15, i64 176, !9, i64 200, !9, i64 201, !12, i64 202, !21, i64 208}
!7 = !{!"_ZTSN3DIS16WarfareFamilyPduE", !8, i64 0, !13, i64 24, !13, i64 40}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS7EventIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!15 = !{!"_ZTSN3DIS12Vector3FloatE", !16, i64 8, !16, i64 12, !16, i64 16}
!16 = !{!"float", !9, i64 0}
!17 = !{!"_ZTSN3DIS13Vector3DoubleE", !18, i64 8, !18, i64 16, !18, i64 24}
!18 = !{!"double", !9, i64 0}
!19 = !{!"_ZTSN3DIS15BurstDescriptorE", !20, i64 8, !12, i64 24, !12, i64 26, !12, i64 28, !12, i64 30}
!20 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!21 = !{!"_ZTSSt6vectorIN3DIS21ArticulationParameterESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3DIS21ArticulationParameterESaIS1_EE17_Vector_impl_dataE", !25, i64 0, !25, i64 8, !25, i64 16}
!25 = !{!"any pointer", !9, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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