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

; 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::Point" = type { ptr, float, float }
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::MinefieldStatePdu" = type { %"class.DIS::MinefieldFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", i16, i8, i8, %"class.DIS::EntityType", i16, %"class.DIS::Vector3Double", %"class.DIS::Orientation", i16, i16, %"class.std::vector", %"class.std::vector.0" }
%"class.DIS::MinefieldFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"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::Vector3Double" = type { ptr, double, double, double }
%"class.DIS::Orientation" = 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::Point, std::allocator<DIS::Point>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_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::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS17MinefieldStatePdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #2 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::Point", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.DIS::EntityType", 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
  call void @_ZNK3DIS18MinefieldFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %13, ptr noundef nonnull align 8 dereferenceable(48) %14)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 3
  %17 = load i16, ptr %16, align 8, !tbaa !9
  %18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %15, i16 noundef zeroext %17)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 4
  %21 = load i8, ptr %20, align 2, !tbaa !29
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %19, i8 noundef zeroext %21)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 12
  %25 = call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %26 = trunc i64 %25 to i8
  %27 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %23, i8 noundef zeroext %26)
  %28 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 6
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(48) %29)
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 13
  %32 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %33 = trunc i64 %32 to i16
  %34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %30, i16 noundef zeroext %33)
  %35 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS13Vector3Double7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(48) %36)
  %37 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS11Orientation7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %37, ptr noundef nonnull align 8 dereferenceable(48) %38)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 10
  %41 = load i16, ptr %40, align 8, !tbaa !30
  %42 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %39, i16 noundef zeroext %41)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 11
  %45 = load i16, ptr %44, align 2, !tbaa !31
  %46 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %43, i16 noundef zeroext %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !32
  br label %47

47:                                               ; preds = %59, %2
  %48 = load i64, ptr %5, align 8, !tbaa !32
  %49 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 12
  %50 = call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  %51 = icmp ult i64 %48, %50
  br i1 %51, label %53, label %52

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

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %54 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 12
  %55 = load i64, ptr %5, align 8, !tbaa !32
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %55) #6
  call void @_ZN3DIS5PointC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %56) #6
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS5Point7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(48) %57)
          to label %58 unwind label %62

58:                                               ; preds = %53
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %59

59:                                               ; preds = %58
  %60 = load i64, ptr %5, align 8, !tbaa !32
  %61 = add i64 %60, 1
  store i64 %61, ptr %5, align 8, !tbaa !32
  br label %47, !llvm.loop !34

62:                                               ; preds = %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %87

66:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !32
  br label %67

67:                                               ; preds = %79, %66
  %68 = load i64, ptr %9, align 8, !tbaa !32
  %69 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 13
  %70 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #6
  %71 = icmp ult i64 %68, %70
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %74 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %11, i32 0, i32 13
  %75 = load i64, ptr %9, align 8, !tbaa !32
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %75) #6
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %76) #6
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(48) %77)
          to label %78 unwind label %82

78:                                               ; preds = %73
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %9, align 8, !tbaa !32
  %81 = add i64 %80, 1
  store i64 %81, ptr %9, align 8, !tbaa !32
  br label %67, !llvm.loop !36

82:                                               ; preds = %73
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %87

86:                                               ; preds = %72
  ret void

87:                                               ; preds = %82, %62
  %88 = load ptr, ptr %7, align 8
  %89 = load i32, ptr %8, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) #3

declare void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

declare void @_ZNK3DIS5Point7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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, !14, i64 40}
!10 = !{!"_ZTSN3DIS17MinefieldStatePduE", !11, i64 0, !15, i64 24, !14, i64 40, !7, i64 42, !7, i64 43, !16, i64 48, !14, i64 64, !17, i64 72, !19, i64 104, !14, i64 128, !14, i64 130, !21, i64 136, !25, i64 160}
!11 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !12, i64 0}
!12 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !14, i64 16, !14, i64 18}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSN3DIS8EntityIDE", !14, i64 8, !14, i64 10, !14, i64 12}
!16 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !14, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!17 = !{!"_ZTSN3DIS13Vector3DoubleE", !18, i64 8, !18, i64 16, !18, i64 24}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN3DIS11OrientationE", !20, i64 8, !20, i64 12, !20, i64 16}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIN3DIS10EntityTypeESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!10, !7, i64 42}
!30 = !{!10, !14, i64 128}
!31 = !{!10, !14, i64 130}
!32 = !{!33, !33, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


; 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::Point" = type { ptr, float, float }
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS17MinefieldStatePdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::Point", align 8
  %4 = alloca %"class.DIS::EntityType", align 8
  tail call void @_ZNK3DIS18MinefieldFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = load i16, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 42
  %10 = load i8, ptr %9, align 2, !tbaa !28
  %11 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 136
  %13 = tail call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %14 = trunc i64 %13 to i8
  %15 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  %18 = tail call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %19 = trunc i64 %18 to i16
  %20 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNK3DIS13Vector3Double7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %22 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNK3DIS11Orientation7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  %24 = load i16, ptr %23, align 8, !tbaa !29
  %25 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 130
  %27 = load i16, ptr %26, align 2, !tbaa !30
  %28 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %27)
  %29 = tail call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %.not = icmp eq i64 %29, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %32, %2
  %30 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %.not28 = icmp eq i64 %30, 0
  br i1 %.not28, label %._crit_edge, label %.lr.ph27

.lr.ph:                                           ; preds = %2, %32
  %.02325 = phi i64 [ %33, %32 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.02325) #6
  call void @_ZN3DIS5PointC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  invoke void @_ZNK3DIS5Point7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %32 unwind label %36

32:                                               ; preds = %.lr.ph
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %33 = add nuw i64 %.02325, 1
  %34 = call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph, label %.preheader, !llvm.loop !31

36:                                               ; preds = %.lr.ph
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %45

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

.lr.ph27:                                         ; preds = %.preheader, %39
  %.026 = phi i64 [ %40, %39 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.026) #6
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  invoke void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %39 unwind label %43

39:                                               ; preds = %.lr.ph27
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %40 = add nuw i64 %.026, 1
  %41 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %42 = icmp ult i64 %40, %41
  br i1 %42, label %.lr.ph27, label %._crit_edge, !llvm.loop !33

43:                                               ; preds = %.lr.ph27
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %45

45:                                               ; preds = %43, %36
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %44, %43 ]
  resume { ptr, i32 } %.pn
}

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) local_unnamed_addr #3

declare void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

declare void @_ZNK3DIS5Point7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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, !12, i64 40}
!6 = !{!"_ZTSN3DIS17MinefieldStatePduE", !7, i64 0, !13, i64 24, !12, i64 40, !9, i64 42, !9, i64 43, !14, i64 48, !12, i64 64, !15, i64 72, !17, i64 104, !12, i64 128, !12, i64 130, !19, i64 136, !24, i64 160}
!7 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !8, i64 0}
!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 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!15 = !{!"_ZTSN3DIS13Vector3DoubleE", !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN3DIS11OrientationE", !18, i64 8, !18, i64 12, !18, i64 16}
!18 = !{!"float", !9, i64 0}
!19 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!23 = !{!"any pointer", !9, i64 0}
!24 = !{!"_ZTSSt6vectorIN3DIS10EntityTypeESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!28 = !{!6, !9, i64 42}
!29 = !{!6, !12, i64 128}
!30 = !{!6, !12, i64 130}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


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