; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/utils (glacier_physics_utils)

; 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.GColor = type { i32 }
%class.GFloat = type { i32 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GCollisionShape = type { i32, %class.GVector3, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GPhyscsUtils9DrawShapeERK13GTransform_QTRK15GCollisionShapeP12IGlacierDraw6GColor(ptr noundef nonnull align 4 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, i32 %3) #0 align 2 {
  %5 = alloca %class.GColor, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.GFloat, align 4
  %10 = alloca %class.GColor, align 4
  %11 = alloca %class.GVector3, align 4
  %12 = alloca { i64, i32 }, align 8
  %13 = alloca %class.GVector3, align 4
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca %class.GColor, align 4
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GColor, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca %class.GFloat, align 4
  %21 = alloca %class.GColor, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %class.GColor, align 4
  %24 = alloca %class.GFloat, align 4
  %25 = alloca %class.GColor, align 4
  %26 = getelementptr inbounds %class.GColor, ptr %5, i32 0, i32 0
  store i32 %3, ptr %26, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.GCollisionShape, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !9
  switch i32 %29, label %125 [
    i32 0, label %30
    i32 1, label %31
    i32 2, label %44
    i32 3, label %55
    i32 4, label %73
    i32 5, label %91
    i32 6, label %112
    i32 7, label %113
    i32 8, label %123
    i32 9, label %124
  ]

30:                                               ; preds = %4
  br label %126

31:                                               ; preds = %4
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  store i32 %35, ptr %36, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %37 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  %38 = load i32, ptr %37, align 4
  %39 = getelementptr inbounds %class.GColor, ptr %10, i32 0, i32 0
  %40 = load i32, ptr %39, align 4
  %41 = load ptr, ptr %32, align 8, !tbaa !17
  %42 = getelementptr inbounds ptr, ptr %41, i64 2
  %43 = load ptr, ptr %42, align 8
  call void %43(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(28) %33, i32 %38, i32 %40, i32 noundef 10)
  br label %126

44:                                               ; preds = %4
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  %47 = call { i64, i32 } @_ZN8GVector34ZeroEv()
  store { i64, i32 } %47, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %48)
  store { i64, i32 } %49, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %50 = getelementptr inbounds %class.GColor, ptr %15, i32 0, i32 0
  %51 = load i32, ptr %50, align 4
  %52 = load ptr, ptr %45, align 8, !tbaa !17
  %53 = getelementptr inbounds ptr, ptr %52, i64 1
  %54 = load ptr, ptr %53, align 8
  call void %54(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(28) %46, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %13, i32 %51)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  br label %126

55:                                               ; preds = %4
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  %60 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  store i32 %59, ptr %60, align 4
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %63 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  store i32 %62, ptr %63, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %64 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  %65 = load i32, ptr %64, align 4
  %66 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %67 = load i32, ptr %66, align 4
  %68 = getelementptr inbounds %class.GColor, ptr %18, i32 0, i32 0
  %69 = load i32, ptr %68, align 4
  %70 = load ptr, ptr %56, align 8, !tbaa !17
  %71 = getelementptr inbounds ptr, ptr %70, i64 3
  %72 = load ptr, ptr %71, align 8
  call void %72(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 4 dereferenceable(28) %57, i32 %65, i32 %67, i32 %69, i32 noundef 18)
  br label %126

73:                                               ; preds = %4
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %76)
  %78 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  store i32 %77, ptr %78, align 4
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %79)
  %81 = getelementptr inbounds %class.GFloat, ptr %20, i32 0, i32 0
  store i32 %80, ptr %81, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %82 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  %83 = load i32, ptr %82, align 4
  %84 = getelementptr inbounds %class.GFloat, ptr %20, i32 0, i32 0
  %85 = load i32, ptr %84, align 4
  %86 = getelementptr inbounds %class.GColor, ptr %21, i32 0, i32 0
  %87 = load i32, ptr %86, align 4
  %88 = load ptr, ptr %74, align 8, !tbaa !17
  %89 = getelementptr inbounds ptr, ptr %88, i64 4
  %90 = load ptr, ptr %89, align 8
  call void %90(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(28) %75, i32 %83, i32 %85, i32 %87, i32 noundef 18)
  br label %126

91:                                               ; preds = %4
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.GCollisionShape, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %111

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.GCollisionShape, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = icmp eq ptr %99, null
  br i1 %100, label %103, label %101

101:                                              ; preds = %96
  %102 = getelementptr inbounds i8, ptr %99, i64 -8
  br label %104

103:                                              ; preds = %96
  br label %104

104:                                              ; preds = %103, %101
  %105 = phi ptr [ %102, %101 ], [ null, %103 ]
  store ptr %105, ptr %22, align 8, !tbaa !5
  %106 = load ptr, ptr %22, align 8, !tbaa !5
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %109 = getelementptr inbounds %class.GColor, ptr %23, i32 0, i32 0
  %110 = load i32, ptr %109, align 4
  call void @_ZNK11GConvexHull4DrawEP12IGlacierDrawRK13GTransform_QT6GColor(ptr noundef nonnull align 8 dereferenceable(112) %106, ptr noundef %107, ptr noundef nonnull align 4 dereferenceable(28) %108, i32 %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %111

111:                                              ; preds = %104, %91
  br label %126

112:                                              ; preds = %4
  br label %126

113:                                              ; preds = %4
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 noundef 50)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !15
  %116 = getelementptr inbounds %class.GFloat, ptr %24, i32 0, i32 0
  %117 = load i32, ptr %116, align 4
  %118 = getelementptr inbounds %class.GColor, ptr %25, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = load ptr, ptr %114, align 8, !tbaa !17
  %121 = getelementptr inbounds ptr, ptr %120, i64 6
  %122 = load ptr, ptr %121, align 8
  call void %122(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull align 4 dereferenceable(28) %115, i32 %117, i32 %119)
  br label %126

123:                                              ; preds = %4
  br label %126

124:                                              ; preds = %4
  br label %126

125:                                              ; preds = %4
  br label %126

126:                                              ; preds = %125, %124, %123, %113, %112, %111, %73, %55, %44, %31, %30
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN8GVector34ZeroEv() #4 align 2

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

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

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

declare void @_ZNK11GConvexHull4DrawEP12IGlacierDrawRK13GTransform_QT6GColor(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 4 dereferenceable(28), i32) #5

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !11, i64 0}
!10 = !{!"_ZTS15GCollisionShape", !11, i64 0, !12, i64 4, !6, i64 16}
!11 = !{!"_ZTS6EShape", !7, i64 0}
!12 = !{!"_ZTS8GVector3", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"_ZTS6GFloat", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !16}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = !{!10, !6, i64 16}


; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GPhyscsUtils9DrawShapeERK13GTransform_QTRK15GCollisionShapeP12IGlacierDraw6GColor(ptr noundef nonnull align 4 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, i32 %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %class.GVector3, align 8
  %6 = alloca %class.GVector3, align 8
  %7 = alloca %class.GFloat, align 4
  %8 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %8, label %42 [
    i32 7, label %37
    i32 1, label %9
    i32 2, label %14
    i32 3, label %20
    i32 4, label %26
    i32 5, label %32
  ]

9:                                                ; preds = %4
  %10 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %11 = load ptr, ptr %2, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8
  tail call void %13(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(28) %0, i32 %10, i32 %3, i32 noundef 10)
  br label %42

14:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %15 = tail call { i64, i32 } @_ZN8GVector34ZeroEv()
  %.fca.0.extract10 = extractvalue { i64, i32 } %15, 0
  %.fca.1.extract11 = extractvalue { i64, i32 } %15, 1
  store i64 %.fca.0.extract10, ptr %5, align 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  %16 = tail call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.fca.0.extract = extractvalue { i64, i32 } %16, 0
  %.fca.1.extract = extractvalue { i64, i32 } %16, 1
  store i64 %.fca.0.extract, ptr %6, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %17 = load ptr, ptr %2, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load ptr, ptr %18, align 8
  call void %19(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(28) %0, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  br label %42

20:                                               ; preds = %4
  %21 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %22 = tail call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %23 = load ptr, ptr %2, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %23, i64 24
  %25 = load ptr, ptr %24, align 8
  tail call void %25(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(28) %0, i32 %21, i32 %22, i32 %3, i32 noundef 18)
  br label %42

26:                                               ; preds = %4
  %27 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %28 = tail call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %29 = load ptr, ptr %2, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load ptr, ptr %30, align 8
  tail call void %31(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(28) %0, i32 %27, i32 %28, i32 %3, i32 noundef 18)
  br label %42

32:                                               ; preds = %4
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %42, label %35

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %34, i64 -8
  tail call void @_ZNK11GConvexHull4DrawEP12IGlacierDrawRK13GTransform_QT6GColor(ptr noundef nonnull align 8 dereferenceable(112) %36, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(28) %0, i32 %3)
  br label %42

37:                                               ; preds = %4
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 50)
  %38 = load i32, ptr %7, align 4
  %39 = load ptr, ptr %2, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %39, i64 48
  %41 = load ptr, ptr %40, align 8
  call void %41(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(28) %0, i32 %38, i32 %3)
  br label %42

42:                                               ; preds = %4, %32, %35, %37, %26, %20, %14, %9
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN8GVector34ZeroEv() local_unnamed_addr #3 align 2

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

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

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

declare void @_ZNK11GConvexHull4DrawEP12IGlacierDrawRK13GTransform_QT6GColor(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 4 dereferenceable(28), i32) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

!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, !7, i64 0}
!6 = !{!"_ZTS15GCollisionShape", !7, i64 0, !10, i64 4, !13, i64 16}
!7 = !{!"_ZTS6EShape", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8GVector3", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"_ZTS6GFloat", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !9, i64 0}
!16 = !{!6, !13, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass