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

; 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::GridAxisRecord" = type <{ ptr, i16, i16, [4 x i8] }>
%"class.DIS::GriddedDataPdu" = type { %"class.DIS::SyntheticEnvironmentFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", i16, i16, i16, i16, i8, i8, %"class.DIS::EntityType", %"class.DIS::Orientation", i64, i32, i8, i16, i8, %"class.std::vector" }
%"class.DIS::SyntheticEnvironmentFamilyPdu.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::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::Orientation" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::GridAxisRecord, std::allocator<DIS::GridAxisRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::GridAxisRecord, std::allocator<DIS::GridAxisRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::GridAxisRecord, std::allocator<DIS::GridAxisRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::GridAxisRecord, std::allocator<DIS::GridAxisRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS14GriddedDataPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 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::GridAxisRecord", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS29SyntheticEnvironmentFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
  %11 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 3
  %15 = load i16, ptr %14, align 8, !tbaa !9
  %16 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %13, i16 noundef zeroext %15)
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 4
  %19 = load i16, ptr %18, align 2, !tbaa !24
  %20 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %17, i16 noundef zeroext %19)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 5
  %23 = load i16, ptr %22, align 4, !tbaa !25
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %21, i16 noundef zeroext %23)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 6
  %27 = load i16, ptr %26, align 2, !tbaa !26
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %25, i16 noundef zeroext %27)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 16
  %31 = call noundef i64 @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = trunc i64 %31 to i8
  %33 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %29, i8 noundef zeroext %32)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 8
  %36 = load i8, ptr %35, align 1, !tbaa !27
  %37 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %34, i8 noundef zeroext %36)
  %38 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(48) %39)
  %40 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 10
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNK3DIS11Orientation7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %40, ptr noundef nonnull align 8 dereferenceable(48) %41)
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 11
  %44 = load i64, ptr %43, align 8, !tbaa !28
  %45 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48) %42, i64 noundef %44)
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 12
  %48 = load i32, ptr %47, align 8, !tbaa !29
  %49 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %46, i32 noundef %48)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 13
  %52 = load i8, ptr %51, align 4, !tbaa !30
  %53 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %50, i8 noundef zeroext %52)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 14
  %56 = load i16, ptr %55, align 2, !tbaa !31
  %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::GriddedDataPdu", ptr %9, i32 0, i32 15
  %60 = load i8, ptr %59, align 8, !tbaa !32
  %61 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %58, i8 noundef zeroext %60)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !33
  br label %62

62:                                               ; preds = %74, %2
  %63 = load i64, ptr %5, align 8, !tbaa !33
  %64 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 16
  %65 = call noundef i64 @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #6
  %66 = icmp ult i64 %63, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %69 = getelementptr inbounds %"class.DIS::GriddedDataPdu", ptr %9, i32 0, i32 16
  %70 = load i64, ptr %5, align 8, !tbaa !33
  %71 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %70) #6
  call void @_ZN3DIS14GridAxisRecordC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %71) #6
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3DIS14GridAxisRecord7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(48) %72)
          to label %73 unwind label %77

73:                                               ; preds = %68
  call void @_ZN3DIS14GridAxisRecordD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %5, align 8, !tbaa !33
  %76 = add i64 %75, 1
  store i64 %76, ptr %5, align 8, !tbaa !33
  br label %62, !llvm.loop !35

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

81:                                               ; preds = %67
  ret void

82:                                               ; preds = %77
  %83 = load ptr, ptr %7, align 8
  %84 = load i32, ptr %8, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2

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

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

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

declare void @_ZNK3DIS14GridAxisRecord7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

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

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 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 40}
!10 = !{!"_ZTSN3DIS14GriddedDataPduE", !11, i64 0, !15, i64 24, !14, i64 40, !14, i64 42, !14, i64 44, !14, i64 46, !7, i64 48, !7, i64 49, !16, i64 56, !17, i64 72, !19, i64 96, !13, i64 104, !7, i64 108, !14, i64 110, !7, i64 112, !20, i64 120}
!11 = !{!"_ZTSN3DIS29SyntheticEnvironmentFamilyPduE", !12, i64 0}
!12 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !14, i64 16, !14, i64 18}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSN3DIS8EntityIDE", !14, i64 8, !14, i64 10, !14, i64 12}
!16 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !14, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!17 = !{!"_ZTSN3DIS11OrientationE", !18, i64 8, !18, i64 12, !18, i64 16}
!18 = !{!"float", !7, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIN3DIS14GridAxisRecordESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!10, !14, i64 42}
!25 = !{!10, !14, i64 44}
!26 = !{!10, !14, i64 46}
!27 = !{!10, !7, i64 49}
!28 = !{!10, !19, i64 96}
!29 = !{!10, !13, i64 104}
!30 = !{!10, !7, i64 108}
!31 = !{!10, !14, i64 110}
!32 = !{!10, !7, i64 112}
!33 = !{!34, !34, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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

%"class.DIS::GridAxisRecord" = type <{ ptr, i16, i16, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3DIS14GriddedDataPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::GridAxisRecord", align 8
  tail call void @_ZNK3DIS29SyntheticEnvironmentFamilyPdu7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNK3DIS8EntityID7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load i16, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 42
  %9 = load i16, ptr %8, align 2, !tbaa !23
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 44
  %12 = load i16, ptr %11, align 4, !tbaa !24
  %13 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 46
  %15 = load i16, ptr %14, align 2, !tbaa !25
  %16 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 120
  %18 = tail call noundef i64 @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %19 = trunc i64 %18 to i8
  %20 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 49
  %22 = load i8, ptr %21, align 1, !tbaa !26
  %23 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNK3DIS10EntityType7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNK3DIS11Orientation7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %25, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %26 = getelementptr inbounds i8, ptr %0, i64 96
  %27 = load i64, ptr %26, align 8, !tbaa !27
  %28 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEy(ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef %27)
  %29 = getelementptr inbounds i8, ptr %0, i64 104
  %30 = load i32, ptr %29, align 8, !tbaa !28
  %31 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 108
  %33 = load i8, ptr %32, align 4, !tbaa !29
  %34 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %33)
  %35 = getelementptr inbounds i8, ptr %0, i64 110
  %36 = load i16, ptr %35, align 2, !tbaa !30
  %37 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEt(ptr noundef nonnull align 8 dereferenceable(48) %1, i16 noundef zeroext %36)
  %38 = getelementptr inbounds i8, ptr %0, i64 112
  %39 = load i8, ptr %38, align 8, !tbaa !31
  %40 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEh(ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext %39)
  %41 = tail call noundef i64 @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %.not = icmp eq i64 %41, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

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

.lr.ph:                                           ; preds = %2, %43
  %.021 = phi i64 [ %44, %43 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %42 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.021) #6
  call void @_ZN3DIS14GridAxisRecordC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %42) #6
  invoke void @_ZNK3DIS14GridAxisRecord7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %43 unwind label %47

43:                                               ; preds = %.lr.ph
  call void @_ZN3DIS14GridAxisRecordD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %44 = add nuw i64 %.021, 1
  %45 = call noundef i64 @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !32

47:                                               ; preds = %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS14GridAxisRecordD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %48
}

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamlsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorIN3DIS14GridAxisRecordESaIS1_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 @_ZN3DIS14GridAxisRecordC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

declare void @_ZNK3DIS14GridAxisRecord7marshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 40}
!6 = !{!"_ZTSN3DIS14GriddedDataPduE", !7, i64 0, !13, i64 24, !12, i64 40, !12, i64 42, !12, i64 44, !12, i64 46, !9, i64 48, !9, i64 49, !14, i64 56, !15, i64 72, !17, i64 96, !11, i64 104, !9, i64 108, !12, i64 110, !9, i64 112, !18, i64 120}
!7 = !{!"_ZTSN3DIS29SyntheticEnvironmentFamilyPduE", !8, i64 0}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!15 = !{!"_ZTSN3DIS11OrientationE", !16, i64 8, !16, i64 12, !16, i64 16}
!16 = !{!"float", !9, i64 0}
!17 = !{!"long long", !9, i64 0}
!18 = !{!"_ZTSSt6vectorIN3DIS14GridAxisRecordESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS14GridAxisRecordESaIS1_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!6, !12, i64 42}
!24 = !{!6, !12, i64 44}
!25 = !{!6, !12, i64 46}
!26 = !{!6, !9, i64 49}
!27 = !{!6, !17, i64 96}
!28 = !{!6, !11, i64 104}
!29 = !{!6, !9, i64 108}
!30 = !{!6, !12, i64 110}
!31 = !{!6, !9, i64 112}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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