; LLVM IR from devlinzhou/deterministic_physics :: samples (test)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GTimer = type { i64, i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %class.GVector3, align 4
  %3 = alloca %class.GFloat, align 4
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GFloat, align 4
  %6 = alloca %class.GVector3, align 4
  %7 = alloca %class.GFloat, align 4
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GFloat, align 4
  %10 = alloca %class.GVector3, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GFloat, align 4
  %14 = alloca %class.GVector3, align 4
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca i32, align 4
  %19 = alloca %class.GTimer, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %class.GFloat, align 4
  %24 = alloca %class.GFloat, align 4
  %25 = alloca %class.GVector3, align 4
  %26 = alloca %class.GFloat, align 4
  %27 = alloca %class.GFloat, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 1)
  %28 = getelementptr inbounds %class.GFloat, ptr %3, i32 0, i32 0
  %29 = load i32, ptr %28, align 4
  %30 = getelementptr inbounds %class.GFloat, ptr %4, i32 0, i32 0
  %31 = load i32, ptr %30, align 4
  %32 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  %33 = load i32, ptr %32, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 %29, i32 %31, i32 %33)
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 2)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 1)
  %34 = getelementptr inbounds %class.GFloat, ptr %7, i32 0, i32 0
  %35 = load i32, ptr %34, align 4
  %36 = getelementptr inbounds %class.GFloat, ptr %8, i32 0, i32 0
  %37 = load i32, ptr %36, align 4
  %38 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  %39 = load i32, ptr %38, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %35, i32 %37, i32 %39)
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 4)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 1)
  %40 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  %41 = load i32, ptr %40, align 4
  %42 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  %43 = load i32, ptr %42, align 4
  %44 = getelementptr inbounds %class.GFloat, ptr %13, i32 0, i32 0
  %45 = load i32, ptr %44, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %41, i32 %43, i32 %45)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 3)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef 7)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 9)
  %46 = getelementptr inbounds %class.GFloat, ptr %15, i32 0, i32 0
  %47 = load i32, ptr %46, align 4
  %48 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  %49 = load i32, ptr %48, align 4
  %50 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %51 = load i32, ptr %50, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 %47, i32 %49, i32 %51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @_ZN6GTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  invoke void @_ZN6GTimer5StartEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %52 unwind label %57

52:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %99, %52
  %54 = load i32, ptr %22, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 20000000
  br i1 %55, label %61, label %56

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

57:                                               ; preds = %112, %110, %108, %106, %104, %103, %0
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %20, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %21, align 4
  br label %117

61:                                               ; preds = %53
  %62 = invoke i32 @_ZN5GMath3OneEv()
          to label %63 unwind label %90

63:                                               ; preds = %61
  %64 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  store i32 %62, ptr %64, align 4
  %65 = getelementptr inbounds %class.GVector3, ptr %2, i32 0, i32 0
  %66 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  %67 = load i32, ptr %66, align 4
  %68 = invoke i32 @_ZN6GFloatpLES_(ptr noundef nonnull align 4 dereferenceable(4) %65, i32 %67)
          to label %69 unwind label %90

69:                                               ; preds = %63
  %70 = getelementptr inbounds %class.GFloat, ptr %24, i32 0, i32 0
  store i32 %68, ptr %70, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %71 = invoke i32 @_ZN5GMath3OneEv()
          to label %72 unwind label %94

72:                                               ; preds = %69
  %73 = getelementptr inbounds %class.GFloat, ptr %26, i32 0, i32 0
  store i32 %71, ptr %73, align 4
  %74 = getelementptr inbounds %class.GFloat, ptr %26, i32 0, i32 0
  %75 = load i32, ptr %74, align 4
  invoke void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 %75)
          to label %76 unwind label %94

76:                                               ; preds = %72
  %77 = invoke i32 @_ZN5GMath3OneEv()
          to label %78 unwind label %94

78:                                               ; preds = %76
  %79 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  store i32 %77, ptr %79, align 4
  %80 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  %81 = load i32, ptr %80, align 4
  %82 = invoke noundef zeroext i1 @_ZN17GCollision_Sphere10Sphere_BoxERK8GVector36GFloatS2_S2_RS0_PS0_(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 %81, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef null)
          to label %83 unwind label %94

83:                                               ; preds = %78
  br i1 %82, label %84, label %98

84:                                               ; preds = %83
  %85 = getelementptr inbounds %class.GVector3, ptr %25, i32 0, i32 0
  %86 = getelementptr inbounds %class.GFloat, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load i32, ptr %18, align 4, !tbaa !5
  %89 = add nsw i32 %88, %87
  store i32 %89, ptr %18, align 4, !tbaa !5
  br label %98

90:                                               ; preds = %63, %61
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %20, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %21, align 4
  br label %102

94:                                               ; preds = %78, %76, %72, %69
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %20, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  br label %102

98:                                               ; preds = %84, %83
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %22, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %22, align 4, !tbaa !5
  br label %53, !llvm.loop !12

102:                                              ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %117

103:                                              ; preds = %56
  invoke void @_ZN6GTimer3EndEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %104 unwind label %57

104:                                              ; preds = %103
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %106 unwind label %57

106:                                              ; preds = %104
  %107 = invoke noundef float @_ZN6GTimer14GetDeltaTimeMSEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %108 unwind label %57

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %105, float noundef %107)
          to label %110 unwind label %57

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str.1)
          to label %112 unwind label %57

112:                                              ; preds = %110
  %113 = load i32, ptr %18, align 4, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %111, i32 noundef %113)
          to label %115 unwind label %57

115:                                              ; preds = %112
  call void @_ZN6GTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #7
  %116 = load i32, ptr %1, align 4
  ret i32 %116

117:                                              ; preds = %102, %57
  call void @_ZN6GTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #7
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %20, align 8
  %120 = load i32, ptr %21, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6GTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6GTimer5StartEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() #4 align 2

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

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

declare noundef zeroext i1 @_ZN17GCollision_Sphere10Sphere_BoxERK8GVector36GFloatS2_S2_RS0_PS0_(ptr noundef nonnull align 4 dereferenceable(12), i32, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #5

; 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 void @_ZN6GTimer3EndEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6GTimer14GetDeltaTimeMSEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

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

attributes #0 = { mustprogress norecurse 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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS8GVector3", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"_ZTS6GFloat", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GTimer = type { i64, i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.GVector3, align 4
  %2 = alloca %class.GFloat, align 4
  %3 = alloca %class.GFloat, align 4
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GVector3, align 4
  %6 = alloca %class.GFloat, align 4
  %7 = alloca %class.GFloat, align 4
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GVector3, align 4
  %10 = alloca %class.GFloat, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GVector3, align 4
  %14 = alloca %class.GFloat, align 4
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GTimer, align 8
  %18 = alloca %class.GVector3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef 1)
  %19 = load i32, ptr %2, align 4
  %20 = load i32, ptr %3, align 4
  %21 = load i32, ptr %4, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 %19, i32 %20, i32 %21)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef 2)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 1)
  %22 = load i32, ptr %6, align 4
  %23 = load i32, ptr %7, align 4
  %24 = load i32, ptr %8, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %22, i32 %23, i32 %24)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 4)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 1)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 1)
  %25 = load i32, ptr %10, align 4
  %26 = load i32, ptr %11, align 4
  %27 = load i32, ptr %12, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 %25, i32 %26, i32 %27)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 3)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 7)
  call void @_ZN6GFloatC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef 9)
  %28 = load i32, ptr %14, align 4
  %29 = load i32, ptr %15, align 4
  %30 = load i32, ptr %16, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 %28, i32 %29, i32 %30)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN6GTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  invoke void @_ZN6GTimer5StartEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %.preheader unwind label %33

31:                                               ; preds = %44
  call void @_ZN6GTimer3EndEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %52 unwind label %33

33:                                               ; preds = %58, %56, %54, %52, %31, %0
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %61

.preheader:                                       ; preds = %0, %44
  %.019 = phi i32 [ %.1, %44 ], [ 0, %0 ]
  %.01318 = phi i32 [ %47, %44 ], [ 0, %0 ]
  %35 = invoke i32 @_ZN5GMath3OneEv()
          to label %36 unwind label %48

36:                                               ; preds = %.preheader
  %37 = invoke i32 @_ZN6GFloatpLES_(ptr noundef nonnull align 4 dereferenceable(4) %1, i32 %35)
          to label %38 unwind label %48

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  %39 = invoke i32 @_ZN5GMath3OneEv()
          to label %40 unwind label %50

40:                                               ; preds = %38
  call void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 %39)
  %41 = invoke i32 @_ZN5GMath3OneEv()
          to label %42 unwind label %50

42:                                               ; preds = %40
  %43 = invoke noundef zeroext i1 @_ZN17GCollision_Sphere10Sphere_BoxERK8GVector36GFloatS2_S2_RS0_PS0_(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 %41, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef null)
          to label %44 unwind label %50

44:                                               ; preds = %42
  %45 = load i32, ptr %18, align 4
  %46 = select i1 %43, i32 %45, i32 0
  %.1 = add nsw i32 %46, %.019
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  %47 = add nuw nsw i32 %.01318, 1
  %exitcond.not = icmp eq i32 %47, 20000000
  br i1 %exitcond.not, label %31, label %.preheader, !llvm.loop !5

48:                                               ; preds = %36, %.preheader
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %61

50:                                               ; preds = %42, %40, %38
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  br label %61

52:                                               ; preds = %31
  %53 = invoke noundef float @_ZN6GTimer14GetDeltaTimeMSEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %54 unwind label %33

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %32, float noundef %53)
          to label %56 unwind label %33

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.1)
          to label %58 unwind label %33

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %57, i32 noundef %.1)
          to label %60 unwind label %33

60:                                               ; preds = %58
  call void @_ZN6GTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #7
  ret i32 0

61:                                               ; preds = %48, %50, %33
  %.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %51, %50 ], [ %49, %48 ]
  call void @_ZN6GTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6GTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6GTimer5StartEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() local_unnamed_addr #4 align 2

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

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

declare noundef zeroext i1 @_ZN17GCollision_Sphere10Sphere_BoxERK8GVector36GFloatS2_S2_RS0_PS0_(ptr noundef nonnull align 4 dereferenceable(12), i32, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #5

; 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 void @_ZN6GTimer3EndEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6GTimer14GetDeltaTimeMSEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

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

attributes #0 = { mustprogress norecurse 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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass