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

; 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::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.DIS::TransmitterPdu" = type { %"class.DIS::RadioCommunicationsFamilyPdu.base", %"class.DIS::RadioEntityType", i8, i8, i16, %"class.DIS::Vector3Double", %"class.DIS::Vector3Float", i16, i16, i64, float, float, %"class.DIS::ModulationType", i16, i16, i8, i16, i8, %"class.std::vector", %"class.std::vector" }
%"class.DIS::RadioCommunicationsFamilyPdu.base" = type { %"class.DIS::Pdu.base", [4 x i8], %"class.DIS::EntityID", i16 }
%"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::RadioEntityType" = type { ptr, i8, i8, i16, i8, i8, i16 }
%"class.DIS::Vector3Double" = type { ptr, double, double, double }
%"class.DIS::ModulationType" = type { ptr, i16, i16, i16, i16 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::Vector3Float, std::allocator<DIS::Vector3Float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS14TransmitterPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(232) %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::Vector3Float", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.DIS::Vector3Float", 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 @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 1
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS15RadioEntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(48) %14)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 2
  %17 = load i8, ptr %16, align 8, !tbaa !9
  %18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %15, i8 noundef zeroext %17)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 3
  %21 = load i8, ptr %20, align 1, !tbaa !27
  %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::TransmitterPdu", ptr %11, i32 0, i32 4
  %25 = load i16, ptr %24, align 2, !tbaa !28
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %23, i16 noundef zeroext %25)
  %27 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS13Vector3Double7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(48) %28)
  %29 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 6
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %29, ptr noundef nonnull align 8 dereferenceable(48) %30)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 7
  %33 = load i16, ptr %32, align 8, !tbaa !29
  %34 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %31, i16 noundef zeroext %33)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 19
  %37 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = trunc i64 %37 to i16
  %39 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %35, i16 noundef zeroext %38)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 9
  %42 = load i64, ptr %41, align 8, !tbaa !30
  %43 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48) %40, i64 noundef %42)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 10
  %46 = load float, ptr %45, align 8, !tbaa !31
  %47 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48) %44, float noundef %46)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 11
  %50 = load float, ptr %49, align 4, !tbaa !32
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48) %48, float noundef %50)
  %52 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 12
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS14ModulationType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(48) %53)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 13
  %56 = load i16, ptr %55, align 8, !tbaa !33
  %57 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %54, i16 noundef zeroext %56)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 14
  %60 = load i16, ptr %59, align 2, !tbaa !34
  %61 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %58, i16 noundef zeroext %60)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 18
  %64 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #6
  %65 = trunc i64 %64 to i8
  %66 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %62, i8 noundef zeroext %65)
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 16
  %69 = load i16, ptr %68, align 2, !tbaa !35
  %70 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %67, i16 noundef zeroext %69)
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 17
  %73 = load i8, ptr %72, align 8, !tbaa !36
  %74 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %71, i8 noundef zeroext %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !37
  br label %75

75:                                               ; preds = %87, %2
  %76 = load i64, ptr %5, align 8, !tbaa !37
  %77 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 18
  %78 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #6
  %79 = icmp ult i64 %76, %78
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %82 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 18
  %83 = load i64, ptr %5, align 8, !tbaa !37
  %84 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %83) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(20) %84) #6
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(48) %85)
          to label %86 unwind label %90

86:                                               ; preds = %81
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %87

87:                                               ; preds = %86
  %88 = load i64, ptr %5, align 8, !tbaa !37
  %89 = add i64 %88, 1
  store i64 %89, ptr %5, align 8, !tbaa !37
  br label %75, !llvm.loop !39

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %115

94:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !37
  br label %95

95:                                               ; preds = %107, %94
  %96 = load i64, ptr %9, align 8, !tbaa !37
  %97 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 19
  %98 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #6
  %99 = icmp ult i64 %96, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %102 = getelementptr inbounds %"class.DIS::TransmitterPdu", ptr %11, i32 0, i32 19
  %103 = load i64, ptr %9, align 8, !tbaa !37
  %104 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %103) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 8 dereferenceable(20) %104) #6
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 8 dereferenceable(48) %105)
          to label %106 unwind label %110

106:                                              ; preds = %101
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  br label %107

107:                                              ; preds = %106
  %108 = load i64, ptr %9, align 8, !tbaa !37
  %109 = add i64 %108, 1
  store i64 %109, ptr %9, align 8, !tbaa !37
  br label %95, !llvm.loop !41

110:                                              ; preds = %101
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %115

114:                                              ; preds = %100
  ret void

115:                                              ; preds = %110, %90
  %116 = load ptr, ptr %7, align 8
  %117 = load i32, ptr %8, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #3

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) #3

declare void @_ZNK3DIS14ModulationType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), 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(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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, !7, i64 64}
!10 = !{!"_ZTSN3DIS14TransmitterPduE", !11, i64 0, !16, i64 48, !7, i64 64, !7, i64 65, !14, i64 66, !17, i64 72, !19, i64 104, !14, i64 128, !14, i64 130, !21, i64 136, !20, i64 144, !20, i64 148, !22, i64 152, !14, i64 168, !14, i64 170, !7, i64 172, !14, i64 174, !7, i64 176, !23, i64 184, !23, i64 208}
!11 = !{!"_ZTSN3DIS28RadioCommunicationsFamilyPduE", !12, i64 0, !15, i64 24, !14, i64 40}
!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 = !{!"_ZTSN3DIS15RadioEntityTypeE", !7, i64 8, !7, i64 9, !14, i64 10, !7, i64 12, !7, i64 13, !14, i64 14}
!17 = !{!"_ZTSN3DIS13Vector3DoubleE", !18, i64 8, !18, i64 16, !18, i64 24}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN3DIS12Vector3FloatE", !20, i64 8, !20, i64 12, !20, i64 16}
!20 = !{!"float", !7, i64 0}
!21 = !{!"long long", !7, i64 0}
!22 = !{!"_ZTSN3DIS14ModulationTypeE", !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14}
!23 = !{!"_ZTSSt6vectorIN3DIS12Vector3FloatESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!10, !7, i64 65}
!28 = !{!10, !14, i64 66}
!29 = !{!10, !14, i64 128}
!30 = !{!10, !21, i64 136}
!31 = !{!10, !20, i64 144}
!32 = !{!10, !20, i64 148}
!33 = !{!10, !14, i64 168}
!34 = !{!10, !14, i64 170}
!35 = !{!10, !14, i64 174}
!36 = !{!10, !7, i64 176}
!37 = !{!38, !38, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}


; 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::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS14TransmitterPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::Vector3Float", align 8
  %4 = alloca %"class.DIS::Vector3Float", align 8
  tail call void @_ZNK3DIS28RadioCommunicationsFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(42) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNK3DIS15RadioEntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load i8, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 65
  %10 = load i8, ptr %9, align 1, !tbaa !26
  %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 66
  %13 = load i16, ptr %12, align 2, !tbaa !27
  %14 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNK3DIS13Vector3Double7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %16, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %17 = getelementptr inbounds i8, ptr %0, i64 128
  %18 = load i16, ptr %17, align 8, !tbaa !28
  %19 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %18)
  %20 = getelementptr inbounds i8, ptr %0, i64 208
  %21 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %22 = trunc i64 %21 to i16
  %23 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 136
  %25 = load i64, ptr %24, align 8, !tbaa !29
  %26 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef %25)
  %27 = getelementptr inbounds i8, ptr %0, i64 144
  %28 = load float, ptr %27, align 8, !tbaa !30
  %29 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48) %1, float noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 148
  %31 = load float, ptr %30, align 4, !tbaa !31
  %32 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48) %1, float noundef %31)
  %33 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZNK3DIS14ModulationType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %34 = getelementptr inbounds i8, ptr %0, i64 168
  %35 = load i16, ptr %34, align 8, !tbaa !32
  %36 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 170
  %38 = load i16, ptr %37, align 2, !tbaa !33
  %39 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 184
  %41 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = trunc i64 %41 to i8
  %43 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 174
  %45 = load i16, ptr %44, align 2, !tbaa !34
  %46 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %45)
  %47 = getelementptr inbounds i8, ptr %0, i64 176
  %48 = load i8, ptr %47, align 8, !tbaa !35
  %49 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %48)
  %50 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %.not = icmp eq i64 %50, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %53, %2
  %51 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %.not35 = icmp eq i64 %51, 0
  br i1 %.not35, label %._crit_edge, label %.lr.ph34

.lr.ph:                                           ; preds = %2, %53
  %.03032 = phi i64 [ %54, %53 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %52 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %.03032) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(20) %52) #6
  invoke void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %53 unwind label %57

53:                                               ; preds = %.lr.ph
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  %54 = add nuw i64 %.03032, 1
  %55 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %56 = icmp ult i64 %54, %55
  br i1 %56, label %.lr.ph, label %.preheader, !llvm.loop !36

57:                                               ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %66

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

.lr.ph34:                                         ; preds = %.preheader, %60
  %.033 = phi i64 [ %61, %60 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %59 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %.033) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(20) %59) #6
  invoke void @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %60 unwind label %64

60:                                               ; preds = %.lr.ph34
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %61 = add nuw i64 %.033, 1
  %62 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %63 = icmp ult i64 %61, %62
  br i1 %63, label %.lr.ph34, label %._crit_edge, !llvm.loop !38

64:                                               ; preds = %.lr.ph34
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %66

66:                                               ; preds = %64, %57
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %65, %64 ]
  resume { ptr, i32 } %.pn
}

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

declare void @_ZNK3DIS15RadioEntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) 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 noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48), i16 noundef zeroext) local_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 @_ZNK3DIS12Vector3Float7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) local_unnamed_addr #3

declare void @_ZNK3DIS14ModulationType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), 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(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_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 @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5 align 2

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

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, !9, i64 64}
!6 = !{!"_ZTSN3DIS14TransmitterPduE", !7, i64 0, !14, i64 48, !9, i64 64, !9, i64 65, !12, i64 66, !15, i64 72, !17, i64 104, !12, i64 128, !12, i64 130, !19, i64 136, !18, i64 144, !18, i64 148, !20, i64 152, !12, i64 168, !12, i64 170, !9, i64 172, !12, i64 174, !9, i64 176, !21, i64 184, !21, i64 208}
!7 = !{!"_ZTSN3DIS28RadioCommunicationsFamilyPduE", !8, i64 0, !13, i64 24, !12, i64 40}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS15RadioEntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !12, i64 14}
!15 = !{!"_ZTSN3DIS13Vector3DoubleE", !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN3DIS12Vector3FloatE", !18, i64 8, !18, i64 12, !18, i64 16}
!18 = !{!"float", !9, i64 0}
!19 = !{!"long long", !9, i64 0}
!20 = !{!"_ZTSN3DIS14ModulationTypeE", !12, i64 8, !12, i64 10, !12, i64 12, !12, i64 14}
!21 = !{!"_ZTSSt6vectorIN3DIS12Vector3FloatESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN3DIS12Vector3FloatESaIS1_EE17_Vector_impl_dataE", !25, i64 0, !25, i64 8, !25, i64 16}
!25 = !{!"any pointer", !9, i64 0}
!26 = !{!6, !9, i64 65}
!27 = !{!6, !12, i64 66}
!28 = !{!6, !12, i64 128}
!29 = !{!6, !19, i64 136}
!30 = !{!6, !18, i64 144}
!31 = !{!6, !18, i64 148}
!32 = !{!6, !12, i64 168}
!33 = !{!6, !12, i64 170}
!34 = !{!6, !12, i64 174}
!35 = !{!6, !9, i64 176}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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