; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (sat)

; 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.Vector3 = type { [3 x float] }
%"struct.geometry::types::satResult_t" = type { i8, %class.Vector3, i32, [4 x %class.Vector3], [4 x %class.Vector3] }
%"struct.geometry::types::isometricTransform_t" = type { %class.Matrix33, %class.Vector3 }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::shapeCube_t" = type { float, float, float }
%"struct.geometry::types::shapeSphere_t" = type { float }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4

declare void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10collisions10cubeSphereERKNS_5types20isometricTransform_tES4_RKNS1_11shapeCube_tERKNS1_13shapeSphere_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::satResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca [3 x float], align 4
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca i32, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca %class.Vector3, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = alloca %class.Vector3, align 4
  %32 = alloca %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %37, i32 0, i32 1
  call void @_ZN8geometry9transform12inverseBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(48) %36, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !9
  %43 = fdiv float %42, 2.000000e+00
  store float %43, ptr %13, align 4, !tbaa !12
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = fmul float -1.000000e+00, %47
  %49 = fdiv float %48, 2.000000e+00
  store float %49, ptr %14, align 4, !tbaa !12
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %51 = load float, ptr %50, align 4, !tbaa !12
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !13
  %56 = fdiv float %55, 2.000000e+00
  store float %56, ptr %15, align 4, !tbaa !12
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %58, i32 0, i32 1
  %60 = load float, ptr %59, align 4, !tbaa !13
  %61 = fmul float -1.000000e+00, %60
  %62 = fdiv float %61, 2.000000e+00
  store float %62, ptr %16, align 4, !tbaa !12
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %64 = load float, ptr %63, align 4, !tbaa !12
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %66, i32 0, i32 2
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = fdiv float %68, 2.000000e+00
  store float %69, ptr %17, align 4, !tbaa !12
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %71, i32 0, i32 2
  %73 = load float, ptr %72, align 4, !tbaa !14
  %74 = fmul float -1.000000e+00, %73
  %75 = fdiv float %74, 2.000000e+00
  store float %75, ptr %18, align 4, !tbaa !12
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %77 = load float, ptr %76, align 4, !tbaa !12
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %51, float noundef %64, float noundef %77)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %78 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  store float %78, ptr %19, align 4, !tbaa !12
  call void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116) %0)
  %79 = load float, ptr %19, align 4, !tbaa !12
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %80, i32 0, i32 0
  %82 = load float, ptr %81, align 4, !tbaa !15
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %83, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !15
  %86 = fmul float %82, %85
  %87 = fcmp olt float %79, %86
  %88 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 0
  %89 = zext i1 %87 to i8
  store i8 %89, ptr %88, align 4, !tbaa !17
  %90 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 2
  store i32 1, ptr %90, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #6
  call void @_ZN7Vector3C2ERKS_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %91 = load float, ptr %19, align 4, !tbaa !12
  %92 = fcmp ole float %91, 0x3EB0C6F7A0000000
  br i1 %92, label %93, label %167

93:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !9
  store float %96, ptr %23, align 4, !tbaa !12
  %97 = getelementptr inbounds float, ptr %23, i64 1
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %98, i32 0, i32 1
  %100 = load float, ptr %99, align 4, !tbaa !13
  store float %100, ptr %97, align 4, !tbaa !12
  %101 = getelementptr inbounds float, ptr %23, i64 2
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %102, i32 0, i32 2
  %104 = load float, ptr %103, align 4, !tbaa !14
  store float %104, ptr %101, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %105 = getelementptr inbounds [3 x float], ptr %23, i64 0, i64 0
  %106 = load float, ptr %105, align 4, !tbaa !12
  %107 = fdiv float %106, 2.000000e+00
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 0)
  %109 = load float, ptr %108, align 4, !tbaa !12
  %110 = fsub float %107, %109
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 0)
  %112 = load float, ptr %111, align 4, !tbaa !12
  %113 = fcmp oge float %112, 0.000000e+00
  %114 = zext i1 %113 to i64
  %115 = select i1 %113, float 1.000000e+00, float -1.000000e+00
  %116 = fmul float %110, %115
  store float %116, ptr %25, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 1, ptr %26, align 4, !tbaa !23
  br label %117

117:                                              ; preds = %145, %93
  %118 = load i32, ptr %26, align 4, !tbaa !23
  %119 = icmp slt i32 %118, 3
  br i1 %119, label %121, label %120

120:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %148

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %122 = load i32, ptr %26, align 4, !tbaa !23
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [3 x float], ptr %23, i64 0, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !12
  %126 = fdiv float %125, 2.000000e+00
  %127 = load i32, ptr %26, align 4, !tbaa !23
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %127)
  %129 = load float, ptr %128, align 4, !tbaa !12
  %130 = fsub float %126, %129
  %131 = load i32, ptr %26, align 4, !tbaa !23
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %131)
  %133 = load float, ptr %132, align 4, !tbaa !12
  %134 = fcmp oge float %133, 0.000000e+00
  %135 = zext i1 %134 to i64
  %136 = select i1 %134, float 1.000000e+00, float -1.000000e+00
  %137 = fmul float %130, %136
  store float %137, ptr %27, align 4, !tbaa !12
  %138 = load float, ptr %27, align 4, !tbaa !12
  %139 = load float, ptr %25, align 4, !tbaa !12
  %140 = fcmp olt float %138, %139
  br i1 %140, label %141, label %144

141:                                              ; preds = %121
  %142 = load i32, ptr %26, align 4, !tbaa !23
  store i32 %142, ptr %24, align 4, !tbaa !23
  %143 = load float, ptr %27, align 4, !tbaa !12
  store float %143, ptr %25, align 4, !tbaa !12
  br label %144

144:                                              ; preds = %141, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %26, align 4, !tbaa !23
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %26, align 4, !tbaa !23
  br label %117, !llvm.loop !24

148:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %149 = load i32, ptr %24, align 4, !tbaa !23
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %149)
  %151 = load float, ptr %150, align 4, !tbaa !12
  %152 = fcmp oge float %151, 0.000000e+00
  %153 = zext i1 %152 to i64
  %154 = select i1 %152, float 1.000000e+00, float -1.000000e+00
  store float %154, ptr %28, align 4, !tbaa !12
  %155 = load float, ptr %28, align 4, !tbaa !12
  %156 = load i32, ptr %24, align 4, !tbaa !23
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [3 x float], ptr %23, i64 0, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !12
  %160 = fmul float %155, %159
  %161 = fdiv float %160, 2.000000e+00
  %162 = load i32, ptr %24, align 4, !tbaa !23
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %162)
  store float %161, ptr %163, align 4, !tbaa !12
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %22, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %164 = load float, ptr %28, align 4, !tbaa !12
  %165 = load i32, ptr %24, align 4, !tbaa !23
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef %165)
  store float %164, ptr %166, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  br label %167

167:                                              ; preds = %148, %5
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(48) %168, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %169 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %170 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %169, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  %171 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %172 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %171)
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #6
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(48) %173, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %174 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 3
  %175 = getelementptr inbounds [4 x %class.Vector3], ptr %174, i64 0, i64 0
  %176 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %175, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #6
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %177, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(4) %178, ptr noundef nonnull align 4 dereferenceable(12) %33)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #6
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(48) %179, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %180 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 4
  %181 = getelementptr inbounds [4 x %class.Vector3], ptr %180, i64 0, i64 0
  %182 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %181, ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  ret void
}

declare void @_ZN8geometry9transform12inverseBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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, !11, i64 0}
!10 = !{!"_ZTSN8geometry5types11shapeCube_tE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTSN8geometry5types13shapeSphere_tE", !11, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN8geometry5types11satResult_tE", !19, i64 0, !20, i64 4, !21, i64 16, !7, i64 20, !7, i64 68}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTS7Vector3", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!18, !21, i64 16}
!23 = !{!21, !21, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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.Vector3 = type { [3 x float] }
%"struct.geometry::types::satResult_t" = type { i8, %class.Vector3, i32, [4 x %class.Vector3], [4 x %class.Vector3] }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

; 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 uwtable
declare dso_local void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

declare void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10collisions10cubeSphereERKNS_5types20isometricTransform_tES4_RKNS1_11shapeCube_tERKNS1_13shapeSphere_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::satResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(48) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) local_unnamed_addr #2 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Vector3, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca %class.Vector3, align 4
  %17 = alloca [3 x float], align 8
  %18 = alloca %class.Vector3, align 4
  %19 = alloca %class.Vector3, align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca %class.Vector3, align 4
  %24 = alloca %class.Vector3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  %25 = getelementptr inbounds i8, ptr %2, i64 36
  call void @_ZN8geometry9transform12inverseBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %27 = load float, ptr %3, align 4, !tbaa !5
  %28 = fmul float %27, 5.000000e-01
  store float %28, ptr %8, align 4, !tbaa !10
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %30 = load float, ptr %3, align 4, !tbaa !5
  %31 = fmul float %30, -5.000000e-01
  store float %31, ptr %9, align 4, !tbaa !10
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %33 = load float, ptr %32, align 4, !tbaa !10
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = load float, ptr %35, align 4, !tbaa !11
  %37 = fmul float %36, 5.000000e-01
  store float %37, ptr %10, align 4, !tbaa !10
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %39 = load float, ptr %35, align 4, !tbaa !11
  %40 = fmul float %39, -5.000000e-01
  store float %40, ptr %11, align 4, !tbaa !10
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %42 = load float, ptr %41, align 4, !tbaa !10
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %44 = getelementptr inbounds i8, ptr %3, i64 8
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fmul float %45, 5.000000e-01
  store float %46, ptr %12, align 4, !tbaa !10
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %48 = load float, ptr %44, align 4, !tbaa !12
  %49 = fmul float %48, -5.000000e-01
  store float %49, ptr %13, align 4, !tbaa !10
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %51 = load float, ptr %50, align 4, !tbaa !10
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %33, float noundef %42, float noundef %51)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %52 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116) %0)
  %53 = load float, ptr %4, align 4, !tbaa !13
  %54 = fmul float %53, %53
  %55 = fcmp olt float %52, %54
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %0, align 4, !tbaa !15
  %57 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 1, ptr %57, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  call void @_ZN7Vector3C2ERKS_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %58 = fcmp ugt float %52, 0x3EB0C6F7A0000000
  br i1 %58, label %104, label %59

59:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #6
  %60 = load <2 x float>, ptr %3, align 4, !tbaa !10
  store <2 x float> %60, ptr %17, align 8, !tbaa !10
  %61 = getelementptr inbounds i8, ptr %17, i64 8
  %62 = load float, ptr %44, align 4, !tbaa !12
  store float %62, ptr %61, align 8, !tbaa !10
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 0)
  %64 = load float, ptr %63, align 4, !tbaa !10
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 0)
  %66 = load float, ptr %65, align 4, !tbaa !10
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 1)
  %68 = load float, ptr %67, align 4, !tbaa !10
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 1)
  %70 = load float, ptr %69, align 4, !tbaa !10
  %71 = fmul <2 x float> %60, <float 5.000000e-01, float 5.000000e-01>
  %72 = insertelement <2 x float> poison, float %64, i64 0
  %73 = insertelement <2 x float> %72, float %68, i64 1
  %74 = fsub <2 x float> %71, %73
  %75 = insertelement <2 x float> poison, float %66, i64 0
  %76 = insertelement <2 x float> %75, float %70, i64 1
  %77 = fcmp oge <2 x float> %76, zeroinitializer
  %78 = fneg <2 x float> %74
  %79 = select <2 x i1> %77, <2 x float> %74, <2 x float> %78
  %80 = extractelement <2 x float> %79, i64 0
  %81 = extractelement <2 x float> %79, i64 1
  %82 = fcmp olt float %81, %80
  %.134 = select i1 %82, float %81, float %80
  %.1 = zext i1 %82 to i32
  %83 = fmul float %62, 5.000000e-01
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 2)
  %85 = load float, ptr %84, align 4, !tbaa !10
  %86 = fsub float %83, %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 2)
  %88 = load float, ptr %87, align 4, !tbaa !10
  %89 = fcmp oge float %88, 0.000000e+00
  %90 = fneg float %86
  %91 = select i1 %89, float %86, float %90
  %92 = fcmp olt float %91, %.134
  %.1.1 = select i1 %92, i32 2, i32 %.1
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef %.1.1)
  %94 = load float, ptr %93, align 4, !tbaa !10
  %95 = fcmp oge float %94, 0.000000e+00
  %96 = select i1 %95, float 1.000000e+00, float -1.000000e+00
  %97 = zext nneg i32 %.1.1 to i64
  %98 = getelementptr inbounds [3 x float], ptr %17, i64 0, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !10
  %100 = fmul float %99, %96
  %101 = fmul float %100, 5.000000e-01
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef %.1.1)
  store float %101, ptr %102, align 4, !tbaa !10
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef %.1.1)
  store float %96, ptr %103, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #6
  br label %104

104:                                              ; preds = %59, %5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #6
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %18, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %105 = getelementptr inbounds i8, ptr %0, i64 4
  %106 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %105, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #6
  %107 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %105)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #6
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %108 = getelementptr inbounds i8, ptr %0, i64 20
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #6
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #6
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %24, ptr noundef nonnull align 4 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %110 = getelementptr inbounds i8, ptr %0, i64 68
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %110, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  ret void
}

declare void @_ZN8geometry9transform12inverseBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) local_unnamed_addr #3 align 2

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8geometry5types11shapeCube_tE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN8geometry5types13shapeSphere_tE", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN8geometry5types11satResult_tE", !17, i64 0, !18, i64 4, !19, i64 16, !8, i64 20, !8, i64 68}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTS7Vector3", !8, i64 0}
!19 = !{!"int", !8, i64 0}
!20 = !{!16, !19, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass