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

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

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

; 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)) #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) 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)) #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)) #1 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)) #1 align 2

; 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) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types20isometricTransform_tERKNS3_11shapeCube_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #1 {
  %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.Matrix33, align 4
  %13 = alloca %class.Vector3, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca %class.Vector3, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca %class.Vector3, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %class.Vector3, 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
  %29 = alloca %class.Vector3, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = 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
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %33)
  call void @llvm.lifetime.start.p0(i64 36, ptr %12) #7
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %34, i32 0, i32 0
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %35)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.geometry::types::isometricTransform_t", ptr %37, i32 0, i32 1
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = fdiv float %41, 2.000000e+00
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %43, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fdiv float %45, 2.000000e+00
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %47, i32 0, i32 2
  %49 = load float, ptr %48, align 4, !tbaa !13
  %50 = fdiv float %49, 2.000000e+00
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %42, float noundef %46, float noundef %50)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !14
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0)
  %54 = load float, ptr %53, align 4, !tbaa !14
  %55 = fneg float %54
  %56 = call float @llvm.fmuladd.f32(float -1.000000e+00, float %52, float %55)
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 0)
  %58 = load float, ptr %57, align 4, !tbaa !14
  %59 = fdiv float %56, %58
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  %61 = load float, ptr %60, align 4, !tbaa !14
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 1)
  %63 = load float, ptr %62, align 4, !tbaa !14
  %64 = fneg float %63
  %65 = call float @llvm.fmuladd.f32(float -1.000000e+00, float %61, float %64)
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 1)
  %67 = load float, ptr %66, align 4, !tbaa !14
  %68 = fdiv float %65, %67
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  %70 = load float, ptr %69, align 4, !tbaa !14
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2)
  %72 = load float, ptr %71, align 4, !tbaa !14
  %73 = fneg float %72
  %74 = call float @llvm.fmuladd.f32(float -1.000000e+00, float %70, float %73)
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %76 = load float, ptr %75, align 4, !tbaa !14
  %77 = fdiv float %74, %76
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %59, float noundef %68, float noundef %77)
  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) %16, i32 noundef 0)
  %79 = load float, ptr %78, align 4, !tbaa !14
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0)
  %81 = load float, ptr %80, align 4, !tbaa !14
  %82 = fsub float %79, %81
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 0)
  %84 = load float, ptr %83, align 4, !tbaa !14
  %85 = fdiv float %82, %84
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  %87 = load float, ptr %86, align 4, !tbaa !14
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 1)
  %89 = load float, ptr %88, align 4, !tbaa !14
  %90 = fsub float %87, %89
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 1)
  %92 = load float, ptr %91, align 4, !tbaa !14
  %93 = fdiv float %90, %92
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  %95 = load float, ptr %94, align 4, !tbaa !14
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2)
  %97 = load float, ptr %96, align 4, !tbaa !14
  %98 = fsub float %95, %97
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %100 = load float, ptr %99, align 4, !tbaa !14
  %101 = fdiv float %98, %100
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %85, float noundef %93, float noundef %101)
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %102 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 1
  store ptr %102, ptr %19, align 8, !tbaa !5
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %103, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !15
  br label %104

104:                                              ; preds = %217, %5
  %105 = load i32, ptr %20, align 4, !tbaa !15
  %106 = icmp ult i32 %105, 3
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  store i32 2, ptr %21, align 4
  br label %220

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %109 = load i32, ptr %20, align 4, !tbaa !15
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %109)
  %111 = load float, ptr %110, align 4, !tbaa !14
  store float %111, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %112 = load i32, ptr %20, align 4, !tbaa !15
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef %112)
  %114 = load float, ptr %113, align 4, !tbaa !14
  store float %114, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef 0)
  %116 = load float, ptr %115, align 4, !tbaa !14
  %117 = call noundef float @_ZSt4fabsf(float noundef %116)
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  %119 = load float, ptr %118, align 4, !tbaa !14
  %120 = fadd float %119, 0x3EE4F8B580000000
  %121 = fcmp ole float %117, %120
  br i1 %121, label %122, label %158

122:                                              ; preds = %108
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef 1)
  %124 = load float, ptr %123, align 4, !tbaa !14
  %125 = call noundef float @_ZSt4fabsf(float noundef %124)
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  %127 = load float, ptr %126, align 4, !tbaa !14
  %128 = fadd float %127, 0x3EE4F8B580000000
  %129 = fcmp ole float %125, %128
  br i1 %129, label %130, label %158

130:                                              ; preds = %122
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef 2)
  %132 = load float, ptr %131, align 4, !tbaa !14
  %133 = call noundef float @_ZSt4fabsf(float noundef %132)
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  %135 = load float, ptr %134, align 4, !tbaa !14
  %136 = fadd float %135, 0x3EE4F8B580000000
  %137 = fcmp ole float %133, %136
  br i1 %137, label %138, label %158

138:                                              ; preds = %130
  %139 = load float, ptr %22, align 4, !tbaa !14
  %140 = fcmp oge float %139, 0.000000e+00
  br i1 %140, label %141, label %158

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %142)
  %143 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 2
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !15
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [2 x %class.Vector3], ptr %143, i64 0, i64 %146
  %148 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %147, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  %149 = load float, ptr %22, align 4, !tbaa !14
  %150 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 3
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !15
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds [2 x float], ptr %150, i64 0, i64 %153
  store float %149, ptr %154, align 4, !tbaa !14
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !15
  %157 = add i32 %156, 1
  store i32 %157, ptr %155, align 4, !tbaa !15
  br label %158

158:                                              ; preds = %141, %138, %130, %122, %108
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !15
  %161 = icmp ugt i32 %160, 1
  br i1 %161, label %162, label %163

162:                                              ; preds = %158
  store i32 2, ptr %21, align 4
  br label %214

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %28, i32 noundef 0)
  %165 = load float, ptr %164, align 4, !tbaa !14
  %166 = call noundef float @_ZSt4fabsf(float noundef %165)
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  %168 = load float, ptr %167, align 4, !tbaa !14
  %169 = fadd float %168, 0x3EE4F8B580000000
  %170 = fcmp ole float %166, %169
  br i1 %170, label %171, label %207

171:                                              ; preds = %163
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %28, i32 noundef 1)
  %173 = load float, ptr %172, align 4, !tbaa !14
  %174 = call noundef float @_ZSt4fabsf(float noundef %173)
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  %176 = load float, ptr %175, align 4, !tbaa !14
  %177 = fadd float %176, 0x3EE4F8B580000000
  %178 = fcmp ole float %174, %177
  br i1 %178, label %179, label %207

179:                                              ; preds = %171
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %28, i32 noundef 2)
  %181 = load float, ptr %180, align 4, !tbaa !14
  %182 = call noundef float @_ZSt4fabsf(float noundef %181)
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  %184 = load float, ptr %183, align 4, !tbaa !14
  %185 = fadd float %184, 0x3EE4F8B580000000
  %186 = fcmp ole float %182, %185
  br i1 %186, label %187, label %207

187:                                              ; preds = %179
  %188 = load float, ptr %23, align 4, !tbaa !14
  %189 = fcmp oge float %188, 0.000000e+00
  br i1 %189, label %190, label %207

190:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %191)
  %192 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 2
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  %194 = load i32, ptr %193, align 4, !tbaa !15
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds [2 x %class.Vector3], ptr %192, i64 0, i64 %195
  %197 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %196, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  %198 = load float, ptr %23, align 4, !tbaa !14
  %199 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 3
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = load i32, ptr %200, align 4, !tbaa !15
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds [2 x float], ptr %199, i64 0, i64 %202
  store float %198, ptr %203, align 4, !tbaa !14
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !15
  %206 = add i32 %205, 1
  store i32 %206, ptr %204, align 4, !tbaa !15
  br label %207

207:                                              ; preds = %190, %187, %179, %171, %163
  %208 = load ptr, ptr %19, align 8, !tbaa !5
  %209 = load i32, ptr %208, align 4, !tbaa !15
  %210 = icmp ugt i32 %209, 1
  br i1 %210, label %211, label %212

211:                                              ; preds = %207
  store i32 2, ptr %21, align 4
  br label %213

212:                                              ; preds = %207
  store i32 0, ptr %21, align 4
  br label %213

213:                                              ; preds = %212, %211
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  br label %214

214:                                              ; preds = %213, %162
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %215 = load i32, ptr %21, align 4
  switch i32 %215, label %220 [
    i32 0, label %216
  ]

216:                                              ; preds = %214
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %20, align 4, !tbaa !15
  %219 = add i32 %218, 1
  store i32 %219, ptr %20, align 4, !tbaa !15
  br label %104, !llvm.loop !17

220:                                              ; preds = %214, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = load i32, ptr %222, align 4, !tbaa !15
  %224 = icmp ugt i32 %223, 0
  %225 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 0
  %226 = zext i1 %224 to i8
  store i8 %226, ptr %225, align 4, !tbaa !19
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTSN8geometry5types11shapeCube_tE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN8geometry5types15raycastResult_tE", !21, i64 0, !16, i64 4, !7, i64 8, !7, i64 32}
!21 = !{!"bool", !7, i64 0}


; 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] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::raycastResult_t" = type { i8, i32, [2 x %class.Vector3], [2 x float] }

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

; 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 #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) 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 #1 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 #1 align 2

; 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 #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types20isometricTransform_tERKNS3_11shapeCube_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(48) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %4) local_unnamed_addr #1 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Matrix33, align 4
  %8 = alloca %class.Vector3, align 4
  %9 = alloca %class.Vector3, align 4
  %10 = alloca %class.Vector3, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Vector3, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca %class.Vector3, align 4
  %17 = alloca %class.Vector3, align 4
  %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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #7
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %24 = getelementptr inbounds i8, ptr %3, i64 36
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %25 = load float, ptr %4, align 4, !tbaa !5
  %26 = fmul float %25, 5.000000e-01
  %27 = getelementptr inbounds i8, ptr %4, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !10
  %29 = fmul float %28, 5.000000e-01
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  %31 = load float, ptr %30, align 4, !tbaa !11
  %32 = fmul float %31, 5.000000e-01
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %26, float noundef %29, float noundef %32)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %34 = load float, ptr %33, align 4, !tbaa !12
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0)
  %36 = load float, ptr %35, align 4, !tbaa !12
  %37 = fneg float %36
  %38 = call float @llvm.fmuladd.f32(float %34, float -1.000000e+00, float %37)
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  %40 = load float, ptr %39, align 4, !tbaa !12
  %41 = fdiv float %38, %40
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 1)
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fneg float %45
  %47 = call float @llvm.fmuladd.f32(float %43, float -1.000000e+00, float %46)
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
  %49 = load float, ptr %48, align 4, !tbaa !12
  %50 = fdiv float %47, %49
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %52 = load float, ptr %51, align 4, !tbaa !12
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %54 = load float, ptr %53, align 4, !tbaa !12
  %55 = fneg float %54
  %56 = call float @llvm.fmuladd.f32(float %52, float -1.000000e+00, float %55)
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %58 = load float, ptr %57, align 4, !tbaa !12
  %59 = fdiv float %56, %58
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %41, float noundef %50, float noundef %59)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %61 = load float, ptr %60, align 4, !tbaa !12
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0)
  %63 = load float, ptr %62, align 4, !tbaa !12
  %64 = fsub float %61, %63
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  %66 = load float, ptr %65, align 4, !tbaa !12
  %67 = fdiv float %64, %66
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %69 = load float, ptr %68, align 4, !tbaa !12
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 1)
  %71 = load float, ptr %70, align 4, !tbaa !12
  %72 = fsub float %69, %71
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = fdiv float %72, %74
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %77 = load float, ptr %76, align 4, !tbaa !12
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 2)
  %79 = load float, ptr %78, align 4, !tbaa !12
  %80 = fsub float %77, %79
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %82 = load float, ptr %81, align 4, !tbaa !12
  %83 = fdiv float %80, %82
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %67, float noundef %75, float noundef %83)
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  %84 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %84, align 4, !tbaa !13
  %85 = getelementptr inbounds i8, ptr %0, i64 8
  %86 = getelementptr inbounds i8, ptr %0, i64 32
  br label %87

87:                                               ; preds = %5, %169
  %.02732 = phi i32 [ 0, %5 ], [ %170, %169 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %.02732)
  %89 = load float, ptr %88, align 4, !tbaa !12
  store float %89, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef %.02732)
  %91 = load float, ptr %90, align 4, !tbaa !12
  store float %91, ptr %15, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %17, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0)
  %93 = load float, ptr %92, align 4, !tbaa !12
  %94 = call noundef float @_ZSt4fabsf(float noundef %93)
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %96 = load float, ptr %95, align 4, !tbaa !12
  %97 = fadd float %96, 0x3EE4F8B580000000
  %98 = fcmp ugt float %94, %97
  br i1 %98, label %thread-pre-split, label %99

99:                                               ; preds = %87
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 1)
  %101 = load float, ptr %100, align 4, !tbaa !12
  %102 = call noundef float @_ZSt4fabsf(float noundef %101)
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %104 = load float, ptr %103, align 4, !tbaa !12
  %105 = fadd float %104, 0x3EE4F8B580000000
  %106 = fcmp ugt float %102, %105
  br i1 %106, label %thread-pre-split, label %107

107:                                              ; preds = %99
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2)
  %109 = load float, ptr %108, align 4, !tbaa !12
  %110 = call noundef float @_ZSt4fabsf(float noundef %109)
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %112 = load float, ptr %111, align 4, !tbaa !12
  %113 = fadd float %112, 0x3EE4F8B580000000
  %114 = fcmp ole float %110, %113
  %115 = load float, ptr %14, align 4
  %116 = fcmp oge float %115, 0.000000e+00
  %or.cond = select i1 %114, i1 %116, i1 false
  br i1 %or.cond, label %117, label %thread-pre-split

117:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %118 = load i32, ptr %84, align 4, !tbaa !13
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [2 x %class.Vector3], ptr %85, i64 0, i64 %119
  %121 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  %122 = load float, ptr %14, align 4, !tbaa !12
  %123 = load i32, ptr %84, align 4, !tbaa !13
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [2 x float], ptr %86, i64 0, i64 %124
  store float %122, ptr %125, align 4, !tbaa !12
  %126 = add i32 %123, 1
  store i32 %126, ptr %84, align 4, !tbaa !13
  br label %127

thread-pre-split:                                 ; preds = %87, %99, %107
  %.pr = load i32, ptr %84, align 4, !tbaa !13
  br label %127

127:                                              ; preds = %thread-pre-split, %117
  %128 = phi i32 [ %.pr, %thread-pre-split ], [ %126, %117 ]
  %129 = icmp ugt i32 %128, 1
  br i1 %129, label %.thread, label %130

130:                                              ; preds = %127
  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 @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(12) %10)
  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) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 0)
  %132 = load float, ptr %131, align 4, !tbaa !12
  %133 = call noundef float @_ZSt4fabsf(float noundef %132)
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
  %135 = load float, ptr %134, align 4, !tbaa !12
  %136 = fadd float %135, 0x3EE4F8B580000000
  %137 = fcmp ugt float %133, %136
  br i1 %137, label %thread-pre-split30, label %138

138:                                              ; preds = %130
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 1)
  %140 = load float, ptr %139, align 4, !tbaa !12
  %141 = call noundef float @_ZSt4fabsf(float noundef %140)
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1)
  %143 = load float, ptr %142, align 4, !tbaa !12
  %144 = fadd float %143, 0x3EE4F8B580000000
  %145 = fcmp ugt float %141, %144
  br i1 %145, label %thread-pre-split30, label %146

146:                                              ; preds = %138
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 2)
  %148 = load float, ptr %147, align 4, !tbaa !12
  %149 = call noundef float @_ZSt4fabsf(float noundef %148)
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 2)
  %151 = load float, ptr %150, align 4, !tbaa !12
  %152 = fadd float %151, 0x3EE4F8B580000000
  %153 = fcmp ole float %149, %152
  %154 = load float, ptr %15, align 4
  %155 = fcmp oge float %154, 0.000000e+00
  %or.cond3 = select i1 %153, i1 %155, i1 false
  br i1 %or.cond3, label %156, label %thread-pre-split30

156:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %157 = load i32, ptr %84, align 4, !tbaa !13
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds [2 x %class.Vector3], ptr %85, i64 0, i64 %158
  %160 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %159, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  %161 = load float, ptr %15, align 4, !tbaa !12
  %162 = load i32, ptr %84, align 4, !tbaa !13
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds [2 x float], ptr %86, i64 0, i64 %163
  store float %161, ptr %164, align 4, !tbaa !12
  %165 = add i32 %162, 1
  store i32 %165, ptr %84, align 4, !tbaa !13
  br label %166

thread-pre-split30:                               ; preds = %130, %138, %146
  %.pr31 = load i32, ptr %84, align 4, !tbaa !13
  br label %166

166:                                              ; preds = %thread-pre-split30, %156
  %167 = phi i32 [ %.pr31, %thread-pre-split30 ], [ %165, %156 ]
  %168 = icmp ugt i32 %167, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  br i1 %168, label %.thread, label %169

.thread:                                          ; preds = %127, %166
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  br label %.loopexit

169:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  %170 = add nuw nsw i32 %.02732, 1
  %exitcond.not = icmp eq i32 %170, 3
  br i1 %exitcond.not, label %.loopexit.loopexit, label %87, !llvm.loop !15

.loopexit.loopexit:                               ; preds = %169
  %171 = trunc nuw i32 %167 to i8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.thread
  %172 = phi i8 [ %171, %.loopexit.loopexit ], [ 1, %.thread ]
  store i8 %172, ptr %0, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 12, 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 %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret void
}

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass