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

; 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::AggregateID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::VariableDatum" = type <{ ptr, i32, i32, %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DIS::AggregateStatePdu" = type { %"class.DIS::EntityManagementFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", i8, i8, %"class.DIS::EntityType", i32, %"class.DIS::AggregateMarking", %"class.DIS::Vector3Float", %"class.DIS::Orientation", %"class.DIS::Vector3Double", %"class.DIS::Vector3Float", i16, i16, i16, i16, %"class.std::vector", %"class.std::vector.0", i8, %"class.std::vector.5", %"class.std::vector.5", i32, %"class.std::vector.10" }
%"class.DIS::EntityManagementFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::AggregateMarking" = type { ptr, i8, [31 x i8] }
%"class.DIS::Orientation" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.DIS::Vector3Double" = type { ptr, double, double, double }
%"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::AggregateID, std::allocator<DIS::AggregateID>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::AggregateID, std::allocator<DIS::AggregateID>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::AggregateID, std::allocator<DIS::AggregateID>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::AggregateID, std::allocator<DIS::AggregateID>>::_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::EntityID, std::allocator<DIS::EntityID>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::EntityID, std::allocator<DIS::EntityID>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::EntityID, std::allocator<DIS::EntityID>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::EntityID, std::allocator<DIS::EntityID>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::VariableDatum, std::allocator<DIS::VariableDatum>>::_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: nounwind
declare void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS17AggregateStatePdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(360) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"class.DIS::AggregateID", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.DIS::EntityID", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.DIS::EntityType", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.DIS::EntityType", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.DIS::VariableDatum", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  %17 = call noundef i32 @_ZNK3DIS25EntityManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %16)
  store i32 %17, ptr %3, align 4, !tbaa !9
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 2
  %20 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %19)
  %21 = add nsw i32 %18, %20
  store i32 %21, ptr %3, align 4, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %3, align 4, !tbaa !9
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 5
  %28 = call noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = add nsw i32 %26, %28
  store i32 %29, ptr %3, align 4, !tbaa !9
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add nsw i32 %30, 4
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 7
  %34 = call noundef i32 @_ZNK3DIS16AggregateMarking17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %33)
  %35 = add nsw i32 %32, %34
  store i32 %35, ptr %3, align 4, !tbaa !9
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 8
  %38 = call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %37)
  %39 = add nsw i32 %36, %38
  store i32 %39, ptr %3, align 4, !tbaa !9
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 9
  %42 = call noundef i32 @_ZNK3DIS11Orientation17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %41)
  %43 = add nsw i32 %40, %42
  store i32 %43, ptr %3, align 4, !tbaa !9
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 10
  %46 = call noundef i32 @_ZNK3DIS13Vector3Double17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  %47 = add nsw i32 %44, %46
  store i32 %47, ptr %3, align 4, !tbaa !9
  %48 = load i32, ptr %3, align 4, !tbaa !9
  %49 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 11
  %50 = call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %49)
  %51 = add nsw i32 %48, %50
  store i32 %51, ptr %3, align 4, !tbaa !9
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = add nsw i32 %52, 2
  store i32 %53, ptr %3, align 4, !tbaa !9
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = add nsw i32 %54, 2
  store i32 %55, ptr %3, align 4, !tbaa !9
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = add nsw i32 %56, 2
  store i32 %57, ptr %3, align 4, !tbaa !9
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = add nsw i32 %58, 2
  store i32 %59, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %74, %1
  %61 = load i64, ptr %4, align 8, !tbaa !11
  %62 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 16
  %63 = call noundef i64 @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #7
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %81

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %67 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 16
  %68 = load i64, ptr %4, align 8, !tbaa !11
  %69 = call noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #7
  call void @_ZN3DIS11AggregateIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %5, ptr noundef nonnull align 8 dereferenceable(14) %69) #7
  %70 = load i32, ptr %3, align 4, !tbaa !9
  %71 = invoke noundef i32 @_ZNK3DIS11AggregateID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %5)
          to label %72 unwind label %77

72:                                               ; preds = %66
  %73 = add nsw i32 %70, %71
  store i32 %73, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS11AggregateIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %74

74:                                               ; preds = %72
  %75 = load i64, ptr %4, align 8, !tbaa !11
  %76 = add i64 %75, 1
  store i64 %76, ptr %4, align 8, !tbaa !11
  br label %60, !llvm.loop !13

77:                                               ; preds = %66
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %6, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %7, align 4
  call void @_ZN3DIS11AggregateIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %175

81:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %82

82:                                               ; preds = %96, %81
  %83 = load i64, ptr %8, align 8, !tbaa !11
  %84 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 17
  %85 = call noundef i64 @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %86 = icmp ult i64 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %103

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %89 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 17
  %90 = load i64, ptr %8, align 8, !tbaa !11
  %91 = call noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %90) #7
  call void @_ZN3DIS8EntityIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %9, ptr noundef nonnull align 8 dereferenceable(14) %91) #7
  %92 = load i32, ptr %3, align 4, !tbaa !9
  %93 = invoke noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %9)
          to label %94 unwind label %99

94:                                               ; preds = %88
  %95 = add nsw i32 %92, %93
  store i32 %95, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %96

96:                                               ; preds = %94
  %97 = load i64, ptr %8, align 8, !tbaa !11
  %98 = add i64 %97, 1
  store i64 %98, ptr %8, align 8, !tbaa !11
  br label %82, !llvm.loop !15

99:                                               ; preds = %88
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %6, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %7, align 4
  call void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %175

103:                                              ; preds = %87
  %104 = load i32, ptr %3, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %120, %103
  %107 = load i64, ptr %10, align 8, !tbaa !11
  %108 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 19
  %109 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #7
  %110 = icmp ult i64 %107, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %127

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %113 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 19
  %114 = load i64, ptr %10, align 8, !tbaa !11
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %114) #7
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %115) #7
  %116 = load i32, ptr %3, align 4, !tbaa !9
  %117 = invoke noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %118 unwind label %123

118:                                              ; preds = %112
  %119 = add nsw i32 %116, %117
  store i32 %119, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %120

120:                                              ; preds = %118
  %121 = load i64, ptr %10, align 8, !tbaa !11
  %122 = add i64 %121, 1
  store i64 %122, ptr %10, align 8, !tbaa !11
  br label %106, !llvm.loop !16

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %6, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %7, align 4
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %175

127:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %142, %127
  %129 = load i64, ptr %12, align 8, !tbaa !11
  %130 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 20
  %131 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #7
  %132 = icmp ult i64 %129, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %149

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %135 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 20
  %136 = load i64, ptr %12, align 8, !tbaa !11
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %136) #7
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %137) #7
  %138 = load i32, ptr %3, align 4, !tbaa !9
  %139 = invoke noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %140 unwind label %145

140:                                              ; preds = %134
  %141 = add nsw i32 %138, %139
  store i32 %141, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %142

142:                                              ; preds = %140
  %143 = load i64, ptr %12, align 8, !tbaa !11
  %144 = add i64 %143, 1
  store i64 %144, ptr %12, align 8, !tbaa !11
  br label %128, !llvm.loop !17

145:                                              ; preds = %134
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %175

149:                                              ; preds = %133
  %150 = load i32, ptr %3, align 4, !tbaa !9
  %151 = add nsw i32 %150, 4
  store i32 %151, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %152

152:                                              ; preds = %166, %149
  %153 = load i64, ptr %14, align 8, !tbaa !11
  %154 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 22
  %155 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #7
  %156 = icmp ult i64 %153, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %173

158:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #7
  %159 = getelementptr inbounds %"class.DIS::AggregateStatePdu", ptr %16, i32 0, i32 22
  %160 = load i64, ptr %14, align 8, !tbaa !11
  %161 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %160) #7
  call void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(44) %15, ptr noundef nonnull align 8 dereferenceable(44) %161)
  %162 = load i32, ptr %3, align 4, !tbaa !9
  %163 = invoke noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(44) %15)
          to label %164 unwind label %169

164:                                              ; preds = %158
  %165 = add i32 %162, %163
  store i32 %165, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #7
  br label %166

166:                                              ; preds = %164
  %167 = load i64, ptr %14, align 8, !tbaa !11
  %168 = add i64 %167, 1
  store i64 %168, ptr %14, align 8, !tbaa !11
  br label %152, !llvm.loop !18

169:                                              ; preds = %158
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %6, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %7, align 4
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %175

173:                                              ; preds = %157
  %174 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret i32 %174

175:                                              ; preds = %169, %145, %123, %99, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %6, align 8
  %178 = load i32, ptr %7, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

declare noundef i32 @_ZNK3DIS25EntityManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS16AggregateMarking17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS11Orientation17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13Vector3Double17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS11AggregateID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

%"class.DIS::AggregateID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::VariableDatum" = type <{ ptr, i32, i32, %"class.std::vector.15", i32, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_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: nounwind
declare void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_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 @_ZN3DIS11AggregateIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_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 @_ZN3DIS8EntityIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS17AggregateStatePdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(360) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::AggregateID", align 8
  %3 = alloca %"class.DIS::EntityID", align 8
  %4 = alloca %"class.DIS::EntityType", align 8
  %5 = alloca %"class.DIS::EntityType", align 8
  %6 = alloca %"class.DIS::VariableDatum", align 8
  %7 = tail call noundef i32 @_ZNK3DIS25EntityManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = tail call noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = tail call noundef i32 @_ZNK3DIS16AggregateMarking17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  %15 = tail call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  %17 = tail call noundef i32 @_ZNK3DIS11Orientation17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 160
  %19 = tail call noundef i32 @_ZNK3DIS13Vector3Double17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %20 = getelementptr inbounds i8, ptr %0, i64 192
  %21 = tail call noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %20)
  %22 = add i32 %7, 14
  %23 = add i32 %22, %9
  %24 = add i32 %23, %11
  %25 = add i32 %24, %13
  %26 = add i32 %25, %15
  %27 = add i32 %26, %17
  %28 = add i32 %27, %19
  %29 = add i32 %28, %21
  %30 = getelementptr inbounds i8, ptr %0, i64 224
  %31 = tail call noundef i64 @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %.preheader47, label %.lr.ph

.preheader47:                                     ; preds = %36, %1
  %.045.lcssa = phi i32 [ %29, %1 ], [ %37, %36 ]
  %32 = getelementptr inbounds i8, ptr %0, i64 248
  %33 = call noundef i64 @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %.not75 = icmp eq i64 %33, 0
  br i1 %.not75, label %._crit_edge, label %.lr.ph57

.lr.ph:                                           ; preds = %1, %36
  %.04454 = phi i64 [ %38, %36 ], [ 0, %1 ]
  %.04553 = phi i32 [ %37, %36 ], [ %29, %1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %34 = call noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.04454) #7
  call void @_ZN3DIS11AggregateIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %2, ptr noundef nonnull align 8 dereferenceable(14) %34) #7
  %35 = invoke noundef i32 @_ZNK3DIS11AggregateID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %2)
          to label %36 unwind label %41

36:                                               ; preds = %.lr.ph
  %37 = add nsw i32 %35, %.04553
  call void @_ZN3DIS11AggregateIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  %38 = add nuw i64 %.04454, 1
  %39 = call noundef i64 @_ZNKSt6vectorIN3DIS11AggregateIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %.lr.ph, label %.preheader47, !llvm.loop !5

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS11AggregateIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  br label %87

._crit_edge:                                      ; preds = %48, %.preheader47
  %.1.lcssa = phi i32 [ %.045.lcssa, %.preheader47 ], [ %49, %48 ]
  %43 = add nsw i32 %.1.lcssa, 1
  %44 = getelementptr inbounds i8, ptr %0, i64 280
  %45 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  %.not76 = icmp eq i64 %45, 0
  br i1 %.not76, label %.preheader, label %.lr.ph62

.lr.ph57:                                         ; preds = %.preheader47, %48
  %.04156 = phi i64 [ %50, %48 ], [ 0, %.preheader47 ]
  %.155 = phi i32 [ %49, %48 ], [ %.045.lcssa, %.preheader47 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %46 = call noundef nonnull align 8 dereferenceable(14) ptr @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.04156) #7
  call void @_ZN3DIS8EntityIDC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %3, ptr noundef nonnull align 8 dereferenceable(14) %46) #7
  %47 = invoke noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %3)
          to label %48 unwind label %53

48:                                               ; preds = %.lr.ph57
  %49 = add nsw i32 %47, %.155
  call void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  %50 = add nuw i64 %.04156, 1
  %51 = call noundef i64 @_ZNKSt6vectorIN3DIS8EntityIDESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %52 = icmp ult i64 %50, %51
  br i1 %52, label %.lr.ph57, label %._crit_edge, !llvm.loop !7

53:                                               ; preds = %.lr.ph57
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS8EntityIDD1Ev(ptr noundef nonnull align 8 dereferenceable(14) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %87

.preheader:                                       ; preds = %59, %._crit_edge
  %.2.lcssa = phi i32 [ %43, %._crit_edge ], [ %60, %59 ]
  %55 = getelementptr inbounds i8, ptr %0, i64 304
  %56 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %.not77 = icmp eq i64 %56, 0
  br i1 %.not77, label %._crit_edge67, label %.lr.ph66

.lr.ph62:                                         ; preds = %._crit_edge, %59
  %.04060 = phi i64 [ %61, %59 ], [ 0, %._crit_edge ]
  %.259 = phi i32 [ %60, %59 ], [ %43, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %.04060) #7
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %57) #7
  %58 = invoke noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %59 unwind label %64

59:                                               ; preds = %.lr.ph62
  %60 = add nsw i32 %58, %.259
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  %61 = add nuw i64 %.04060, 1
  %62 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %.lr.ph62, label %.preheader, !llvm.loop !8

64:                                               ; preds = %.lr.ph62
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %87

._crit_edge67:                                    ; preds = %71, %.preheader
  %.3.lcssa = phi i32 [ %.2.lcssa, %.preheader ], [ %72, %71 ]
  %66 = add nsw i32 %.3.lcssa, 4
  %67 = getelementptr inbounds i8, ptr %0, i64 336
  %68 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #7
  %.not78 = icmp eq i64 %68, 0
  br i1 %.not78, label %._crit_edge73, label %.lr.ph72

.lr.ph66:                                         ; preds = %.preheader, %71
  %.03965 = phi i64 [ %73, %71 ], [ 0, %.preheader ]
  %.364 = phi i32 [ %72, %71 ], [ %.2.lcssa, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %.03965) #7
  call void @_ZN3DIS10EntityTypeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %69) #7
  %70 = invoke noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %71 unwind label %76

71:                                               ; preds = %.lr.ph66
  %72 = add nsw i32 %70, %.364
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %73 = add nuw i64 %.03965, 1
  %74 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %.lr.ph66, label %._crit_edge67, !llvm.loop !9

76:                                               ; preds = %.lr.ph66
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS10EntityTypeD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %87

._crit_edge73:                                    ; preds = %80, %._crit_edge67
  %.4.lcssa = phi i32 [ %66, %._crit_edge67 ], [ %81, %80 ]
  ret i32 %.4.lcssa

.lr.ph72:                                         ; preds = %._crit_edge67, %80
  %.070 = phi i64 [ %82, %80 ], [ 0, %._crit_edge67 ]
  %.469 = phi i32 [ %81, %80 ], [ %66, %._crit_edge67 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  %78 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %.070) #7
  call void @_ZN3DIS13VariableDatumC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(44) %6, ptr noundef nonnull align 8 dereferenceable(44) %78)
  %79 = invoke noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(44) %6)
          to label %80 unwind label %85

80:                                               ; preds = %.lr.ph72
  %81 = add i32 %79, %.469
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  %82 = add nuw i64 %.070, 1
  %83 = call noundef i64 @_ZNKSt6vectorIN3DIS13VariableDatumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #7
  %84 = icmp ult i64 %82, %83
  br i1 %84, label %.lr.ph72, label %._crit_edge73, !llvm.loop !10

85:                                               ; preds = %.lr.ph72
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS13VariableDatumD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  br label %87

87:                                               ; preds = %85, %76, %64, %53, %41
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %54, %53 ], [ %65, %64 ], [ %77, %76 ], [ %86, %85 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK3DIS25EntityManagementFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS16AggregateMarking17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS11Orientation17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13Vector3Double17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS11AggregateID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS13VariableDatum17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


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