; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6/UaPdu.ll (ZNK3DIS5UaPdu17getMarshalledSizeEv)

; 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::ShaftRPMs" = type { ptr, i16, i16, float }
%"class.DIS::ApaData" = type <{ ptr, i16, i16, [4 x i8] }>
%"class.DIS::AcousticEmitterSystemData" = type { ptr, i8, i8, i16, [4 x i8], %"class.DIS::AcousticEmitterSystem", %"class.DIS::Vector3Float", %"class.std::vector.15" }
%"class.DIS::AcousticEmitterSystem" = type <{ ptr, i16, i8, i8, [4 x i8] }>
%"class.DIS::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.DIS::UaPdu" = type { %"class.DIS::DistributedEmissionsFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EventID", i8, i8, i16, i8, i8, i8, i8, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5" }
%"class.DIS::DistributedEmissionsFamilyPdu.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::EventID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::ShaftRPMs, std::allocator<DIS::ShaftRPMs>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::ShaftRPMs, std::allocator<DIS::ShaftRPMs>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::ShaftRPMs, std::allocator<DIS::ShaftRPMs>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::ShaftRPMs, std::allocator<DIS::ShaftRPMs>>::_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::ApaData, std::allocator<DIS::ApaData>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::ApaData, std::allocator<DIS::ApaData>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::ApaData, std::allocator<DIS::ApaData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::ApaData, std::allocator<DIS::ApaData>>::_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::AcousticEmitterSystemData, std::allocator<DIS::AcousticEmitterSystemData>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::AcousticEmitterSystemData, std::allocator<DIS::AcousticEmitterSystemData>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::AcousticEmitterSystemData, std::allocator<DIS::AcousticEmitterSystemData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::AcousticEmitterSystemData, std::allocator<DIS::AcousticEmitterSystemData>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EE4sizeEv(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: nounwind
declare void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: nounwind
declare void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS5UaPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(136) %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::ShaftRPMs", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.DIS::ApaData", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.DIS::AcousticEmitterSystemData", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = 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
  %13 = call noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %12)
  store i32 %13, ptr %3, align 4, !tbaa !9
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 2
  %16 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %15)
  %17 = add nsw i32 %14, %16
  store i32 %17, ptr %3, align 4, !tbaa !9
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 3
  %20 = call noundef i32 @_ZNK3DIS7EventID17getMarshalledSizeEv(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 = add nsw i32 %26, 2
  store i32 %27, ptr %3, align 4, !tbaa !9
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %3, align 4, !tbaa !9
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %3, align 4, !tbaa !9
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, 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 %36

36:                                               ; preds = %50, %1
  %37 = load i64, ptr %4, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 11
  %39 = call noundef i64 @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  %40 = icmp ult i64 %37, %39
  br i1 %40, label %42, label %41

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

42:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %43 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 11
  %44 = load i64, ptr %4, align 8, !tbaa !11
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %44) #7
  call void @_ZN3DIS9ShaftRPMsC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %45) #7
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = invoke noundef i32 @_ZNK3DIS9ShaftRPMs17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %48 unwind label %53

48:                                               ; preds = %42
  %49 = add nsw i32 %46, %47
  store i32 %49, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS9ShaftRPMsD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %50

50:                                               ; preds = %48
  %51 = load i64, ptr %4, align 8, !tbaa !11
  %52 = add i64 %51, 1
  store i64 %52, ptr %4, align 8, !tbaa !11
  br label %36, !llvm.loop !13

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  call void @_ZN3DIS9ShaftRPMsD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %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 %103

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

58:                                               ; preds = %72, %57
  %59 = load i64, ptr %8, align 8, !tbaa !11
  %60 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 12
  %61 = call noundef i64 @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %62 = icmp ult i64 %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %79

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %65 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 12
  %66 = load i64, ptr %8, align 8, !tbaa !11
  %67 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %66) #7
  call void @_ZN3DIS7ApaDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(12) %67) #7
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = invoke noundef i32 @_ZNK3DIS7ApaData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %70 unwind label %75

70:                                               ; preds = %64
  %71 = add nsw i32 %68, %69
  store i32 %71, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %72

72:                                               ; preds = %70
  %73 = load i64, ptr %8, align 8, !tbaa !11
  %74 = add i64 %73, 1
  store i64 %74, ptr %8, align 8, !tbaa !11
  br label %58, !llvm.loop !15

75:                                               ; preds = %64
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  call void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %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 %103

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

80:                                               ; preds = %94, %79
  %81 = load i64, ptr %10, align 8, !tbaa !11
  %82 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 13
  %83 = call noundef i64 @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #7
  %84 = icmp ult i64 %81, %83
  br i1 %84, label %86, label %85

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

86:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #7
  %87 = getelementptr inbounds %"class.DIS::UaPdu", ptr %12, i32 0, i32 13
  %88 = load i64, ptr %10, align 8, !tbaa !11
  %89 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %88) #7
  call void @_ZN3DIS25AcousticEmitterSystemDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef nonnull align 8 dereferenceable(80) %89)
  %90 = load i32, ptr %3, align 4, !tbaa !9
  %91 = invoke noundef i32 @_ZNK3DIS25AcousticEmitterSystemData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
          to label %92 unwind label %97

92:                                               ; preds = %86
  %93 = add nsw i32 %90, %91
  store i32 %93, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #7
  br label %94

94:                                               ; preds = %92
  %95 = load i64, ptr %10, align 8, !tbaa !11
  %96 = add i64 %95, 1
  store i64 %96, ptr %10, align 8, !tbaa !11
  br label %80, !llvm.loop !16

97:                                               ; preds = %86
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  call void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %103

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

103:                                              ; preds = %97, %75, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %104

104:                                              ; preds = %103
  %105 = load ptr, ptr %6, align 8
  %106 = load i32, ptr %7, align 4
  %107 = insertvalue { ptr, i32 } poison, ptr %105, 0
  %108 = insertvalue { ptr, i32 } %107, i32 %106, 1
  resume { ptr, i32 } %108
}

declare noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(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 @_ZNK3DIS7EventID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

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

declare noundef i32 @_ZNK3DIS7ApaData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS25AcousticEmitterSystemData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6

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


; 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::ShaftRPMs" = type { ptr, i16, i16, float }
%"class.DIS::ApaData" = type <{ ptr, i16, i16, [4 x i8] }>
%"class.DIS::AcousticEmitterSystemData" = type { ptr, i8, i8, i16, [4 x i8], %"class.DIS::AcousticEmitterSystem", %"class.DIS::Vector3Float", %"class.std::vector.15" }
%"class.DIS::AcousticEmitterSystem" = type <{ ptr, i16, i8, i8, [4 x i8] }>
%"class.DIS::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::AcousticBeamData, std::allocator<DIS::AcousticBeamData>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EE4sizeEv(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: nounwind
declare void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #3

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

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

; Function Attrs: nounwind
declare void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS5UaPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(136) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::ShaftRPMs", align 8
  %3 = alloca %"class.DIS::ApaData", align 8
  %4 = alloca %"class.DIS::AcousticEmitterSystemData", align 8
  %5 = tail call noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = tail call noundef i32 @_ZNK3DIS7EventID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %8)
  %10 = add i32 %5, 8
  %11 = add i32 %10, %7
  %12 = add i32 %11, %9
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = tail call noundef i64 @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %.preheader30, label %.lr.ph

.preheader30:                                     ; preds = %19, %1
  %.028.lcssa = phi i32 [ %12, %1 ], [ %20, %19 ]
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  %16 = call noundef i64 @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %.not44 = icmp eq i64 %16, 0
  br i1 %.not44, label %.preheader, label %.lr.ph38

.lr.ph:                                           ; preds = %1, %19
  %.02735 = phi i64 [ %21, %19 ], [ 0, %1 ]
  %.02834 = phi i32 [ %20, %19 ], [ %12, %1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.02735) #7
  call void @_ZN3DIS9ShaftRPMsC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %18 = invoke noundef i32 @_ZNK3DIS9ShaftRPMs17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %19 unwind label %24

19:                                               ; preds = %.lr.ph
  %20 = add nsw i32 %18, %.02834
  call void @_ZN3DIS9ShaftRPMsD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  %21 = add nuw i64 %.02735, 1
  %22 = call noundef i64 @_ZNKSt6vectorIN3DIS9ShaftRPMsESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %.lr.ph, label %.preheader30, !llvm.loop !5

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

.preheader:                                       ; preds = %30, %.preheader30
  %.1.lcssa = phi i32 [ %.028.lcssa, %.preheader30 ], [ %31, %30 ]
  %26 = getelementptr inbounds i8, ptr %0, i64 112
  %27 = call noundef i64 @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %.not45 = icmp eq i64 %27, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph42

.lr.ph38:                                         ; preds = %.preheader30, %30
  %.02437 = phi i64 [ %32, %30 ], [ 0, %.preheader30 ]
  %.136 = phi i32 [ %31, %30 ], [ %.028.lcssa, %.preheader30 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %28 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.02437) #7
  call void @_ZN3DIS7ApaDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %28) #7
  %29 = invoke noundef i32 @_ZNK3DIS7ApaData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %30 unwind label %35

30:                                               ; preds = %.lr.ph38
  %31 = add nsw i32 %29, %.136
  call void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  %32 = add nuw i64 %.02437, 1
  %33 = call noundef i64 @_ZNKSt6vectorIN3DIS7ApaDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %.lr.ph38, label %.preheader, !llvm.loop !7

35:                                               ; preds = %.lr.ph38
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS7ApaDataD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %46

._crit_edge:                                      ; preds = %39, %.preheader
  %.2.lcssa = phi i32 [ %.1.lcssa, %.preheader ], [ %40, %39 ]
  ret i32 %.2.lcssa

.lr.ph42:                                         ; preds = %.preheader, %39
  %.041 = phi i64 [ %41, %39 ], [ 0, %.preheader ]
  %.240 = phi i32 [ %40, %39 ], [ %.1.lcssa, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #7
  %37 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %.041) #7
  call void @_ZN3DIS25AcousticEmitterSystemDataC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(80) %37)
  %38 = invoke noundef i32 @_ZNK3DIS25AcousticEmitterSystemData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %39 unwind label %44

39:                                               ; preds = %.lr.ph42
  %40 = add nsw i32 %38, %.240
  call void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #7
  %41 = add nuw i64 %.041, 1
  %42 = call noundef i64 @_ZNKSt6vectorIN3DIS25AcousticEmitterSystemDataESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %.lr.ph42, label %._crit_edge, !llvm.loop !8

44:                                               ; preds = %.lr.ph42
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS25AcousticEmitterSystemDataD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #7
  br label %46

46:                                               ; preds = %44, %35, %24
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %36, %35 ], [ %45, %44 ]
  resume { ptr, i32 } %.pn
}

declare noundef i32 @_ZNK3DIS29DistributedEmissionsFamilyPdu17getMarshalledSizeEv(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 @_ZNK3DIS7EventID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #6

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

declare noundef i32 @_ZNK3DIS7ApaData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #6

declare noundef i32 @_ZNK3DIS25AcousticEmitterSystemData17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6

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


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