; 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::shapeCylinder_t" = type { 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 @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; 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

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 @_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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10collisions14sphereCylinderERKNS_5types20isometricTransform_tES4_RKNS1_13shapeSphere_tERKNS1_15shapeCylinder_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(4) %3, ptr noundef nonnull align 4 dereferenceable(8) %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 float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %class.Vector3, align 4
  %19 = alloca float, align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca float, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca %class.Vector3, align 4
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca %class.Vector3, align 4
  %28 = alloca %class.Vector3, align 4
  %29 = alloca %class.Vector3, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = alloca %class.Vector3, align 4
  %32 = alloca float, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  %36 = 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) #7
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %38, 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) %37, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %45 = load float, ptr %44, align 4, !tbaa !9
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = fmul float %45, %47
  %49 = call float @llvm.fmuladd.f32(float %41, float %43, float %48)
  %50 = call noundef float @_ZSt4sqrtf(float noundef %49)
  store float %50, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %51, i32 0, i32 0
  %53 = load float, ptr %52, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store float 0x3E7AD7F2A0000000, ptr %14, align 4, !tbaa !9
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = fdiv float %53, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  store float %56, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = load float, ptr %13, align 4, !tbaa !9
  %60 = fmul float %58, %59
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = load float, ptr %13, align 4, !tbaa !9
  %64 = fmul float %62, %63
  %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 %16) #7
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %66, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !13
  %69 = fdiv float %68, 2.000000e+00
  store float %69, ptr %16, align 4, !tbaa !9
  %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) %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !13
  %74 = fmul float -1.000000e+00, %73
  %75 = fdiv float %74, 2.000000e+00
  store float %75, ptr %17, align 4, !tbaa !9
  %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) %17)
  %77 = load float, ptr %76, align 4, !tbaa !9
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %60, float noundef %64, float noundef %77)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = load float, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = fcmp olt float %80, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %5
  br label %88

86:                                               ; preds = %5
  %87 = load float, ptr %13, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %86, %85
  %89 = phi float [ 1.000000e+00, %85 ], [ %87, %86 ]
  %90 = fmul float %79, %89
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %92 = load float, ptr %91, align 4, !tbaa !9
  %93 = load float, ptr %12, align 4, !tbaa !9
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = fcmp olt float %93, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %88
  br label %101

99:                                               ; preds = %88
  %100 = load float, ptr %13, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %99, %98
  %102 = phi float [ 1.000000e+00, %98 ], [ %100, %99 ]
  %103 = fmul float %92, %102
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %104, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !13
  %107 = fdiv float %106, 2.000000e+00
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = fcmp oge float %109, 0.000000e+00
  %111 = zext i1 %110 to i64
  %112 = select i1 %110, float 1.000000e+00, float -1.000000e+00
  %113 = fmul float %107, %112
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %90, float noundef %103, float noundef %113)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  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) %15)
  %114 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  store float %114, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #7
  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) %18)
  %115 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #7
  store float %115, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  %116 = load float, ptr %19, align 4, !tbaa !9
  %117 = load float, ptr %21, align 4, !tbaa !9
  %118 = fcmp ole float %116, %117
  br i1 %118, label %119, label %123

119:                                              ; preds = %101
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = fcmp ogt float %120, 0x3E7AD7F2A0000000
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  br label %124

123:                                              ; preds = %119, %101
  br label %124

124:                                              ; preds = %123, %122
  %125 = phi ptr [ %15, %122 ], [ %18, %123 ]
  call void @_ZN7Vector3C2ERKS_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %125)
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  %126 = load float, ptr %12, align 4, !tbaa !9
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %127, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = fcmp ole float %126, %129
  br i1 %130, label %131, label %140

131:                                              ; preds = %124
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = call noundef float @_ZSt3absf(float noundef %133)
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %135, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !13
  %138 = fdiv float %137, 2.000000e+00
  %139 = fcmp ole float %134, %138
  br label %140

140:                                              ; preds = %131, %124
  %141 = phi i1 [ false, %124 ], [ %139, %131 ]
  %142 = zext i1 %141 to i8
  store i8 %142, ptr %24, align 1, !tbaa !14
  call void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116) %0)
  %143 = load i8, ptr %24, align 1, !tbaa !14, !range !16, !noundef !17
  %144 = trunc i8 %143 to i1
  br i1 %144, label %156, label %145

145:                                              ; preds = %140
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %148, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !18
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %151, i32 0, i32 0
  %153 = load float, ptr %152, align 4, !tbaa !18
  %154 = fmul float %150, %153
  %155 = fcmp ole float %147, %154
  br label %156

156:                                              ; preds = %145, %140
  %157 = phi i1 [ true, %140 ], [ %155, %145 ]
  %158 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 0
  %159 = zext i1 %157 to i8
  store i8 %159, ptr %158, align 4, !tbaa !20
  %160 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 0
  %161 = load i8, ptr %160, align 4, !tbaa !20, !range !16, !noundef !17
  %162 = trunc i8 %161 to i1
  br i1 %162, label %164, label %163

163:                                              ; preds = %156
  store i32 1, ptr %25, align 4
  br label %221

164:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %165 = load i8, ptr %24, align 1, !tbaa !14, !range !16, !noundef !17
  %166 = trunc i8 %165 to i1
  %167 = zext i1 %166 to i64
  %168 = select i1 %166, float -1.000000e+00, float 1.000000e+00
  store float %168, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(48) %169, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(12) %28)
  %170 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %171 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %170, ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  %172 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %173 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %172)
  %174 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %175 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %174)
  %176 = fcmp olt float %175, 0x3E7AD7F2A0000000
  br i1 %176, label %177, label %207

177:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #7
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %30)
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %23, i32 noundef 2)
  %179 = load float, ptr %178, align 4, !tbaa !9
  %180 = call noundef float @_ZSt3absf(float noundef %179)
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %181, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !13
  %184 = fdiv float %183, 2.000000e+00
  %185 = fsub float %184, 0x3E7AD7F2A0000000
  %186 = fcmp oge float %180, %185
  br i1 %186, label %187, label %198

187:                                              ; preds = %177
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %188, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !13
  %191 = fdiv float %190, 2.000000e+00
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %23, i32 noundef 2)
  %193 = load float, ptr %192, align 4, !tbaa !9
  %194 = fcmp oge float %193, 0.000000e+00
  %195 = zext i1 %194 to i64
  %196 = select i1 %194, float 1.000000e+00, float -1.000000e+00
  %197 = fmul float %191, %196
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %30, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %197)
  br label %201

198:                                              ; preds = %177
  %199 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %30, i32 noundef 2)
  store float 0.000000e+00, ptr %200, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %198, %187
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store float -1.000000e+00, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(48) %202, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(12) %33)
  %203 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %204 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %203, ptr noundef nonnull align 4 dereferenceable(12) %31)
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  %205 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %206 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %205)
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  br label %207

207:                                              ; preds = %201, %164
  %208 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 2
  store i32 1, ptr %208, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #7
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %209, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #7
  %211 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 1
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.geometry::types::shapeSphere_t", ptr %212, i32 0, i32 0
  call void @_ZNK7Vector3mlERKf(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(12) %211, ptr noundef nonnull align 4 dereferenceable(4) %213)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %210, ptr noundef nonnull align 4 dereferenceable(12) %35)
  %214 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 3
  %215 = getelementptr inbounds [4 x %class.Vector3], ptr %214, i64 0, i64 0
  %216 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %215, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #7
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %36, ptr noundef nonnull align 4 dereferenceable(48) %217, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %218 = getelementptr inbounds %"struct.geometry::types::satResult_t", ptr %0, i32 0, i32 4
  %219 = getelementptr inbounds [4 x %class.Vector3], ptr %218, i64 0, i64 0
  %220 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %219, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %221

221:                                              ; preds = %207, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN8geometry5types15shapeCylinder_tE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSN8geometry5types13shapeSphere_tE", !10, i64 0}
!20 = !{!21, !15, i64 0}
!21 = !{!"_ZTSN8geometry5types11satResult_tE", !15, i64 0, !22, i64 4, !23, i64 16, !7, i64 20, !7, i64 68}
!22 = !{!"_ZTS7Vector3", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!21, !23, 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.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 @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; 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

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 @_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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry10collisions14sphereCylinderERKNS_5types20isometricTransform_tES4_RKNS1_13shapeSphere_tERKNS1_15shapeCylinder_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(4) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %4) local_unnamed_addr #2 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %class.Vector3, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca float, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca float, align 4
  %16 = alloca %class.Vector3, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca float, 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 float, align 4
  %25 = alloca %class.Vector3, align 4
  %26 = alloca %class.Vector3, align 4
  %27 = alloca %class.Vector3, align 4
  %28 = alloca %class.Vector3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %29 = getelementptr inbounds i8, ptr %1, 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) %2, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0)
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0)
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1)
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1)
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = fmul float %35, %37
  %39 = call float @llvm.fmuladd.f32(float %31, float %33, float %38)
  %40 = call noundef float @_ZSt4sqrtf(float noundef %39)
  store float %40, ptr %7, align 4, !tbaa !5
  %41 = load float, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store float 0x3E7AD7F2A0000000, ptr %8, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = fdiv float %41, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0)
  %46 = load float, ptr %45, align 4, !tbaa !5
  %47 = fmul float %44, %46
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1)
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = fmul float %44, %49
  %51 = 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 %10) #7
  %52 = getelementptr inbounds i8, ptr %4, i64 4
  %53 = load float, ptr %52, align 4, !tbaa !11
  %54 = fmul float %53, 5.000000e-01
  store float %54, ptr %10, align 4, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %56 = load float, ptr %52, align 4, !tbaa !11
  %57 = fmul float %56, -5.000000e-01
  store float %57, ptr %11, align 4, !tbaa !5
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %59 = load float, ptr %58, align 4, !tbaa !5
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %47, float noundef %50, float noundef %59)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0)
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = load float, ptr %7, align 4, !tbaa !5
  %63 = load float, ptr %4, align 4, !tbaa !9
  %64 = fcmp olt float %62, %63
  %65 = select i1 %64, float 1.000000e+00, float %44
  %66 = fmul float %61, %65
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1)
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = load float, ptr %7, align 4, !tbaa !5
  %70 = load float, ptr %4, align 4, !tbaa !9
  %71 = fcmp olt float %69, %70
  %72 = select i1 %71, float 1.000000e+00, float %44
  %73 = fmul float %68, %72
  %74 = load float, ptr %52, align 4, !tbaa !11
  %75 = fmul float %74, 5.000000e-01
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 2)
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = fcmp oge float %77, 0.000000e+00
  %79 = fneg float %75
  %80 = select i1 %78, float %75, float %79
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %66, float noundef %73, float noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  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) %9)
  %81 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  store float %81, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  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) %12)
  %82 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  store float %82, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  %83 = fcmp ole float %81, %82
  %84 = load float, ptr %7, align 4
  %85 = fcmp ogt float %84, 0x3E7AD7F2A0000000
  %or.cond = select i1 %83, i1 %85, i1 false
  %86 = select i1 %or.cond, ptr %9, ptr %12
  call void @_ZN7Vector3C2ERKS_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %86)
  %87 = load float, ptr %7, align 4, !tbaa !5
  %88 = load float, ptr %4, align 4, !tbaa !9
  %89 = fcmp ugt float %87, %88
  br i1 %89, label %.thread, label %90

.thread:                                          ; preds = %5
  call void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116) %0)
  br label %97

90:                                               ; preds = %5
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 2)
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = call noundef float @_ZSt3absf(float noundef %92)
  %94 = load float, ptr %52, align 4, !tbaa !11
  %95 = fmul float %94, 5.000000e-01
  %96 = fcmp ugt float %93, %95
  call void @_ZN8geometry5types11satResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(116) %0)
  br i1 %96, label %97, label %.critedge

97:                                               ; preds = %.thread, %90
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %99 = load float, ptr %98, align 4, !tbaa !5
  %100 = load float, ptr %3, align 4, !tbaa !12
  %101 = fmul float %100, %100
  %102 = fcmp ole float %99, %101
  %103 = zext i1 %102 to i8
  store i8 %103, ptr %0, align 4, !tbaa !14
  br i1 %102, label %104, label %137

.critedge:                                        ; preds = %90
  store i8 1, ptr %0, align 4, !tbaa !14
  br label %104

104:                                              ; preds = %.critedge, %97
  %105 = phi float [ -1.000000e+00, %.critedge ], [ 1.000000e+00, %97 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store float %105, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %106 = getelementptr inbounds i8, ptr %0, i64 4
  %107 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #7
  %108 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %106)
  %109 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %106)
  %110 = fcmp olt float %109, 0x3E7AD7F2A0000000
  br i1 %110, label %111, label %131

111:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %22)
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2)
  %113 = load float, ptr %112, align 4, !tbaa !5
  %114 = call noundef float @_ZSt3absf(float noundef %113)
  %115 = load float, ptr %52, align 4, !tbaa !11
  %116 = fmul float %115, 5.000000e-01
  %117 = fadd float %116, 0xBE7AD7F2A0000000
  %118 = fcmp ult float %114, %117
  br i1 %118, label %125, label %119

119:                                              ; preds = %111
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2)
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = fcmp oge float %121, 0.000000e+00
  %123 = fneg float %116
  %124 = select i1 %122, float %116, float %123
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %22, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %124)
  br label %128

125:                                              ; preds = %111
  %126 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef 2)
  store float 0.000000e+00, ptr %127, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %125, %119
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  store float -1.000000e+00, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #7
  call void @_ZN8geometry9transform14forwardUnboundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(12) %25)
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #7
  %130 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %106)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  br label %131

131:                                              ; preds = %128, %104
  %132 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 1, ptr %132, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #7
  call void @_ZNK7Vector3mlERKf(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %27)
  %133 = getelementptr inbounds i8, ptr %0, i64 20
  %134 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %133, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #7
  call void @_ZN8geometry9transform12forwardBoundERKNS_5types20isometricTransform_tERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %135 = getelementptr inbounds i8, ptr %0, i64 68
  %136 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %135, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %137

137:                                              ; preds = %97, %131
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #5

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass