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

; 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.Vector4 = type { [4 x float] }
%class.Vector3 = type { [3 x float] }
%"struct.geometry::types::pointBaryCoord_t" = type { %class.Vector3, %class.Vector4 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #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
define dso_local void @_ZN8geometry8triangle19closestPointToPointERK7Vector3S3_S3_S3_(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::pointBaryCoord_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(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Vector3, 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 %class.Vector3, align 4
  %19 = alloca %class.Vector3, 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 float, align 4
  %25 = alloca %class.Vector3, align 4
  %26 = alloca %class.Vector3, align 4
  %27 = alloca %class.Vector3, align 4
  %28 = alloca float, align 4
  %29 = alloca float, 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
  %37 = alloca %class.Vector3, align 4
  %38 = alloca %class.Vector3, align 4
  %39 = alloca %class.Vector3, align 4
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca %class.Vector3, align 4
  %47 = alloca %class.Vector3, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = alloca %class.Vector3, align 4
  %51 = alloca %class.Vector3, align 4
  %52 = alloca float, align 4
  %53 = alloca %class.Vector3, align 4
  %54 = alloca i32, align 4
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca %class.Vector3, align 4
  %58 = alloca %class.Vector3, align 4
  %59 = alloca float, align 4
  %60 = alloca float, align 4
  %61 = alloca %class.Vector3, align 4
  %62 = alloca %class.Vector3, align 4
  %63 = alloca float, align 4
  %64 = alloca %class.Vector3, align 4
  %65 = alloca float, align 4
  %66 = alloca float, align 4
  %67 = alloca %class.Vector3, align 4
  %68 = alloca %class.Vector3, align 4
  %69 = alloca float, align 4
  %70 = alloca float, align 4
  %71 = alloca %class.Vector3, align 4
  %72 = alloca %class.Vector3, align 4
  %73 = alloca float, align 4
  %74 = alloca %class.Vector3, align 4
  %75 = alloca float, align 4
  %76 = alloca float, align 4
  %77 = alloca %class.Vector3, align 4
  %78 = alloca float, align 4
  %79 = alloca float, align 4
  %80 = alloca %class.Vector3, align 4
  %81 = alloca float, align 4
  %82 = alloca float, align 4
  %83 = alloca %class.Vector3, align 4
  %84 = alloca float, align 4
  %85 = alloca float, align 4
  %86 = alloca %class.Vector3, align 4
  %87 = alloca %class.Vector3, align 4
  %88 = alloca float, align 4
  %89 = alloca %class.Vector3, align 4
  %90 = alloca float, align 4
  %91 = alloca float, align 4
  %92 = alloca %class.Vector3, align 4
  %93 = alloca %class.Vector3, align 4
  %94 = alloca float, align 4
  %95 = alloca %class.Vector3, align 4
  %96 = alloca float, align 4
  %97 = alloca %class.Vector3, align 4
  %98 = alloca %class.Vector3, align 4
  %99 = alloca float, align 4
  %100 = alloca %class.Vector3, align 4
  %101 = alloca %class.Vector3, align 4
  %102 = alloca %class.Vector3, align 4
  %103 = alloca float, align 4
  %104 = alloca %class.Vector4, align 4
  %105 = alloca ptr, align 8
  %106 = alloca i32, align 4
  %107 = alloca float, align 4
  %108 = alloca %class.Vector3, align 4
  %109 = alloca %class.Vector3, align 4
  %110 = alloca float, align 4
  %111 = alloca %class.Vector3, align 4
  %112 = alloca float, align 4
  %113 = alloca %class.Vector3, align 4
  %114 = alloca %class.Vector3, align 4
  %115 = alloca float, align 4
  %116 = alloca %class.Vector3, align 4
  %117 = alloca float, align 4
  %118 = alloca %class.Vector3, align 4
  %119 = alloca %class.Vector3, align 4
  %120 = alloca float, align 4
  %121 = 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 @_ZN8geometry5types16pointBaryCoord_tC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %8, 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) %122, ptr noundef nonnull align 4 dereferenceable(12) %123)
  %124 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %125 = fcmp olt float %124, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  br i1 %125, label %126, label %131

126:                                              ; preds = %5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %127, ptr noundef nonnull align 4 dereferenceable(12) %128)
  %129 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %12)
  %130 = fcmp olt float %129, 0x3EB0C6F7A0000000
  br label %131

131:                                              ; preds = %126, %5
  %132 = phi i1 [ false, %5 ], [ %130, %126 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  br i1 %132, label %133, label %138

133:                                              ; preds = %131
  %134 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %134, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %137 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %136, ptr noundef nonnull align 4 dereferenceable(12) %135)
  br label %572

138:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %139, ptr noundef nonnull align 4 dereferenceable(12) %140)
  %141 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %13)
  %142 = fcmp olt float %141, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  br i1 %142, label %148, label %143

143:                                              ; preds = %138
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %144, ptr noundef nonnull align 4 dereferenceable(12) %145)
  %146 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  %147 = fcmp olt float %146, 0x3EB0C6F7A0000000
  br label %148

148:                                              ; preds = %143, %138
  %149 = phi i1 [ true, %138 ], [ %147, %143 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  br i1 %149, label %150, label %173

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %151, ptr noundef nonnull align 4 dereferenceable(12) %152)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %153, ptr noundef nonnull align 4 dereferenceable(12) %154)
  %155 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %156, ptr noundef nonnull align 4 dereferenceable(12) %157)
  %158 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %159 = fdiv float %155, %158
  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
  store float %159, ptr %15, align 4, !tbaa !9
  %160 = load float, ptr %15, align 4, !tbaa !9
  %161 = call noundef float @_ZSt4fminff(float noundef %160, float noundef 1.000000e+00)
  %162 = call noundef float @_ZSt4fmaxff(float noundef %161, float noundef 0.000000e+00)
  store float %162, ptr %15, align 4, !tbaa !9
  %163 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %164 = load float, ptr %15, align 4, !tbaa !9
  %165 = fsub float 1.000000e+00, %164
  %166 = load float, ptr %15, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %163, float noundef %165, float noundef 0.000000e+00, float noundef %166, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %167 = load float, ptr %15, align 4, !tbaa !9
  %168 = fsub float 1.000000e+00, %167
  store float %168, ptr %21, align 4, !tbaa !9
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(12) %169)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #7
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(12) %170)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %171 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %172 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %171, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %572

173:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %174, ptr noundef nonnull align 4 dereferenceable(12) %175)
  %176 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %23)
  %177 = fcmp olt float %176, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  br i1 %177, label %178, label %201

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %179, ptr noundef nonnull align 4 dereferenceable(12) %180)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #7
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %181, ptr noundef nonnull align 4 dereferenceable(12) %182)
  %183 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(12) %184, ptr noundef nonnull align 4 dereferenceable(12) %185)
  %186 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %27)
  %187 = fdiv float %183, %186
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  store float %187, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store float 1.000000e+00, ptr %28, align 4, !tbaa !9
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store float 0.000000e+00, ptr %29, align 4, !tbaa !9
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %188, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %190 = load float, ptr %189, align 4, !tbaa !9
  store float %190, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  %191 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %192 = load float, ptr %24, align 4, !tbaa !9
  %193 = fsub float 1.000000e+00, %192
  %194 = load float, ptr %24, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %191, float noundef %193, float noundef %194, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %195 = load float, ptr %24, align 4, !tbaa !9
  %196 = fsub float 1.000000e+00, %195
  store float %196, ptr %32, align 4, !tbaa !9
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  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) %197)
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(12) %198)
  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) %33)
  %199 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %200 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %199, ptr noundef nonnull align 4 dereferenceable(12) %30)
  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
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %572

201:                                              ; preds = %173
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #7
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %204, ptr noundef nonnull align 4 dereferenceable(12) %205)
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #7
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(12) %206, ptr noundef nonnull align 4 dereferenceable(12) %207)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #7
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %208, ptr noundef nonnull align 4 dereferenceable(12) %209)
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #7
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %37, ptr noundef nonnull align 4 dereferenceable(12) %210, ptr noundef nonnull align 4 dereferenceable(12) %211)
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #7
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #7
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %39, ptr noundef nonnull align 4 dereferenceable(12) %36)
  %212 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %39)
  %213 = fcmp oge float %212, 0x3FEFFFEB00000000
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #7
  br i1 %213, label %214, label %297

214:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %215 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store float %215, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %216 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %35)
  store float %216, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %217 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %36)
  store float %217, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %218 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %37)
  store float %218, ptr %43, align 4, !tbaa !9
  %219 = load float, ptr %40, align 4, !tbaa !9
  %220 = fcmp oge float %219, 0.000000e+00
  br i1 %220, label %221, label %246

221:                                              ; preds = %214
  %222 = load float, ptr %40, align 4, !tbaa !9
  %223 = load float, ptr %41, align 4, !tbaa !9
  %224 = fcmp ole float %222, %223
  br i1 %224, label %225, label %246

225:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #7
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %46, ptr noundef nonnull align 4 dereferenceable(12) %226, ptr noundef nonnull align 4 dereferenceable(12) %227)
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #7
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %47, ptr noundef nonnull align 4 dereferenceable(12) %228, ptr noundef nonnull align 4 dereferenceable(12) %229)
  %230 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %47)
  %231 = load float, ptr %41, align 4, !tbaa !9
  %232 = fdiv float %230, %231
  store float %232, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store float 1.000000e+00, ptr %48, align 4, !tbaa !9
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  store float 0.000000e+00, ptr %49, align 4, !tbaa !9
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %233, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %235 = load float, ptr %234, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  store float %235, ptr %44, align 4, !tbaa !9
  %236 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %237 = load float, ptr %44, align 4, !tbaa !9
  %238 = fsub float 1.000000e+00, %237
  %239 = load float, ptr %44, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %236, float noundef %238, float noundef %239, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %240 = load float, ptr %44, align 4, !tbaa !9
  %241 = fsub float 1.000000e+00, %240
  store float %241, ptr %52, align 4, !tbaa !9
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %51, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(12) %242)
  call void @llvm.lifetime.start.p0(i64 12, ptr %53) #7
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %53, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(12) %243)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %50, ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) %53)
  %244 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %245 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %244, ptr noundef nonnull align 4 dereferenceable(12) %50)
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %296

246:                                              ; preds = %221, %214
  %247 = load float, ptr %40, align 4, !tbaa !9
  %248 = fcmp oge float %247, 0.000000e+00
  br i1 %248, label %249, label %274

249:                                              ; preds = %246
  %250 = load float, ptr %40, align 4, !tbaa !9
  %251 = load float, ptr %42, align 4, !tbaa !9
  %252 = fcmp ole float %250, %251
  br i1 %252, label %253, label %274

253:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #7
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %57, ptr noundef nonnull align 4 dereferenceable(12) %254, ptr noundef nonnull align 4 dereferenceable(12) %255)
  call void @llvm.lifetime.start.p0(i64 12, ptr %58) #7
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %58, ptr noundef nonnull align 4 dereferenceable(12) %256, ptr noundef nonnull align 4 dereferenceable(12) %257)
  %258 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %58)
  %259 = load float, ptr %42, align 4, !tbaa !9
  %260 = fdiv float %258, %259
  store float %260, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  store float 1.000000e+00, ptr %59, align 4, !tbaa !9
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  store float 0.000000e+00, ptr %60, align 4, !tbaa !9
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %261, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %263 = load float, ptr %262, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #7
  store float %263, ptr %55, align 4, !tbaa !9
  %264 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %265 = load float, ptr %55, align 4, !tbaa !9
  %266 = fsub float 1.000000e+00, %265
  %267 = load float, ptr %55, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %264, float noundef %266, float noundef 0.000000e+00, float noundef %267, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #7
  %268 = load float, ptr %55, align 4, !tbaa !9
  %269 = fsub float 1.000000e+00, %268
  store float %269, ptr %63, align 4, !tbaa !9
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %62, ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(12) %270)
  call void @llvm.lifetime.start.p0(i64 12, ptr %64) #7
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %64, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(12) %271)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %61, ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %64)
  %272 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %273 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %272, ptr noundef nonnull align 4 dereferenceable(12) %61)
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %61) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %296

274:                                              ; preds = %249, %246
  br label %275

275:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %67) #7
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %67, ptr noundef nonnull align 4 dereferenceable(12) %276, ptr noundef nonnull align 4 dereferenceable(12) %277)
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #7
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %68, ptr noundef nonnull align 4 dereferenceable(12) %278, ptr noundef nonnull align 4 dereferenceable(12) %279)
  %280 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %68)
  %281 = load float, ptr %43, align 4, !tbaa !9
  %282 = fdiv float %280, %281
  store float %282, ptr %66, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #7
  store float 1.000000e+00, ptr %69, align 4, !tbaa !9
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %69)
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #7
  store float 0.000000e+00, ptr %70, align 4, !tbaa !9
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %283, ptr noundef nonnull align 4 dereferenceable(4) %70)
  %285 = load float, ptr %284, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %67) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #7
  store float %285, ptr %65, align 4, !tbaa !9
  %286 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %287 = load float, ptr %65, align 4, !tbaa !9
  %288 = fsub float 1.000000e+00, %287
  %289 = load float, ptr %65, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %286, float noundef 0.000000e+00, float noundef %288, float noundef %289, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #7
  %290 = load float, ptr %65, align 4, !tbaa !9
  %291 = fsub float 1.000000e+00, %290
  store float %291, ptr %73, align 4, !tbaa !9
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %72, ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(12) %292)
  call void @llvm.lifetime.start.p0(i64 12, ptr %74) #7
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %74, ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(12) %293)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %71, ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %74)
  %294 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %295 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %294, ptr noundef nonnull align 4 dereferenceable(12) %71)
  call void @llvm.lifetime.end.p0(i64 12, ptr %74) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #7
  br label %296

296:                                              ; preds = %275, %253, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %571

297:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #7
  %298 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store float %298, ptr %75, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #7
  %299 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %36)
  store float %299, ptr %76, align 4, !tbaa !9
  %300 = load float, ptr %75, align 4, !tbaa !9
  %301 = fcmp ole float %300, 0.000000e+00
  br i1 %301, label %302, label %310

302:                                              ; preds = %297
  %303 = load float, ptr %76, align 4, !tbaa !9
  %304 = fcmp ole float %303, 0.000000e+00
  br i1 %304, label %305, label %310

305:                                              ; preds = %302
  %306 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %306, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %307 = load ptr, ptr %7, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %309 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %308, ptr noundef nonnull align 4 dereferenceable(12) %307)
  store i32 1, ptr %54, align 4
  br label %570

310:                                              ; preds = %302, %297
  call void @llvm.lifetime.start.p0(i64 12, ptr %77) #7
  %311 = load ptr, ptr %10, align 8, !tbaa !5
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %77, ptr noundef nonnull align 4 dereferenceable(12) %311, ptr noundef nonnull align 4 dereferenceable(12) %312)
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #7
  %313 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store float %313, ptr %78, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #7
  %314 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %37)
  store float %314, ptr %79, align 4, !tbaa !9
  %315 = load float, ptr %78, align 4, !tbaa !9
  %316 = fcmp oge float %315, 0.000000e+00
  br i1 %316, label %317, label %325

317:                                              ; preds = %310
  %318 = load float, ptr %79, align 4, !tbaa !9
  %319 = fcmp oge float %318, 0.000000e+00
  br i1 %319, label %320, label %325

320:                                              ; preds = %317
  %321 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %321, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %324 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %323, ptr noundef nonnull align 4 dereferenceable(12) %322)
  store i32 1, ptr %54, align 4
  br label %569

325:                                              ; preds = %317, %310
  call void @llvm.lifetime.start.p0(i64 12, ptr %80) #7
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %80, ptr noundef nonnull align 4 dereferenceable(12) %326, ptr noundef nonnull align 4 dereferenceable(12) %327)
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #7
  %328 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) %36)
  store float %328, ptr %81, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #7
  %329 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) %37)
  store float %329, ptr %82, align 4, !tbaa !9
  %330 = load float, ptr %81, align 4, !tbaa !9
  %331 = fcmp oge float %330, 0.000000e+00
  br i1 %331, label %332, label %340

332:                                              ; preds = %325
  %333 = load float, ptr %82, align 4, !tbaa !9
  %334 = fcmp ole float %333, 0.000000e+00
  br i1 %334, label %335, label %340

335:                                              ; preds = %332
  %336 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %336, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %339 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %338, ptr noundef nonnull align 4 dereferenceable(12) %337)
  store i32 1, ptr %54, align 4
  br label %568

340:                                              ; preds = %332, %325
  call void @llvm.lifetime.start.p0(i64 12, ptr %83) #7
  call void @_ZNK7Vector312crossProductERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %83, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #7
  %341 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %36)
  store float %341, ptr %84, align 4, !tbaa !9
  %342 = load float, ptr %75, align 4, !tbaa !9
  %343 = fcmp oge float %342, 0.000000e+00
  br i1 %343, label %344, label %372

344:                                              ; preds = %340
  %345 = load float, ptr %78, align 4, !tbaa !9
  %346 = fcmp ole float %345, 0.000000e+00
  br i1 %346, label %347, label %372

347:                                              ; preds = %344
  %348 = load float, ptr %78, align 4, !tbaa !9
  %349 = load float, ptr %76, align 4, !tbaa !9
  %350 = load float, ptr %84, align 4, !tbaa !9
  %351 = load float, ptr %75, align 4, !tbaa !9
  %352 = fmul float %350, %351
  %353 = fneg float %352
  %354 = call float @llvm.fmuladd.f32(float %348, float %349, float %353)
  %355 = fcmp oge float %354, 0.000000e+00
  br i1 %355, label %356, label %372

356:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #7
  %357 = load float, ptr %75, align 4, !tbaa !9
  %358 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %35)
  %359 = fdiv float %357, %358
  %360 = call noundef float @_ZSt4fmaxff(float noundef %359, float noundef 0.000000e+00)
  %361 = call noundef float @_ZSt4fminff(float noundef %360, float noundef 1.000000e+00)
  store float %361, ptr %85, align 4, !tbaa !9
  %362 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %363 = load float, ptr %85, align 4, !tbaa !9
  %364 = fsub float 1.000000e+00, %363
  %365 = load float, ptr %85, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %362, float noundef %364, float noundef %365, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %86) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %87) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #7
  %366 = load float, ptr %85, align 4, !tbaa !9
  %367 = fsub float 1.000000e+00, %366
  store float %367, ptr %88, align 4, !tbaa !9
  %368 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %87, ptr noundef nonnull align 4 dereferenceable(4) %88, ptr noundef nonnull align 4 dereferenceable(12) %368)
  call void @llvm.lifetime.start.p0(i64 12, ptr %89) #7
  %369 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %89, ptr noundef nonnull align 4 dereferenceable(4) %85, ptr noundef nonnull align 4 dereferenceable(12) %369)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %86, ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(12) %89)
  %370 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %371 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %370, ptr noundef nonnull align 4 dereferenceable(12) %86)
  call void @llvm.lifetime.end.p0(i64 12, ptr %89) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %87) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #7
  br label %567

372:                                              ; preds = %347, %344, %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #7
  %373 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) %35)
  store float %373, ptr %90, align 4, !tbaa !9
  %374 = load float, ptr %79, align 4, !tbaa !9
  %375 = fcmp ole float %374, 0.000000e+00
  br i1 %375, label %376, label %405

376:                                              ; preds = %372
  %377 = load float, ptr %82, align 4, !tbaa !9
  %378 = fcmp oge float %377, 0.000000e+00
  br i1 %378, label %379, label %405

379:                                              ; preds = %376
  %380 = load float, ptr %90, align 4, !tbaa !9
  %381 = load float, ptr %84, align 4, !tbaa !9
  %382 = load float, ptr %81, align 4, !tbaa !9
  %383 = load float, ptr %78, align 4, !tbaa !9
  %384 = fmul float %382, %383
  %385 = fneg float %384
  %386 = call float @llvm.fmuladd.f32(float %380, float %381, float %385)
  %387 = fcmp oge float %386, 0.000000e+00
  br i1 %387, label %388, label %405

388:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #7
  %389 = load float, ptr %79, align 4, !tbaa !9
  %390 = fmul float -1.000000e+00, %389
  %391 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %37)
  %392 = fdiv float %390, %391
  %393 = call noundef float @_ZSt4fmaxff(float noundef %392, float noundef 0.000000e+00)
  %394 = call noundef float @_ZSt4fminff(float noundef %393, float noundef 1.000000e+00)
  store float %394, ptr %91, align 4, !tbaa !9
  %395 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %396 = load float, ptr %91, align 4, !tbaa !9
  %397 = fsub float 1.000000e+00, %396
  %398 = load float, ptr %91, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %395, float noundef 0.000000e+00, float noundef %397, float noundef %398, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %92) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %93) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %94) #7
  %399 = load float, ptr %91, align 4, !tbaa !9
  %400 = fsub float 1.000000e+00, %399
  store float %400, ptr %94, align 4, !tbaa !9
  %401 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %93, ptr noundef nonnull align 4 dereferenceable(4) %94, ptr noundef nonnull align 4 dereferenceable(12) %401)
  call void @llvm.lifetime.start.p0(i64 12, ptr %95) #7
  %402 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %95, ptr noundef nonnull align 4 dereferenceable(4) %91, ptr noundef nonnull align 4 dereferenceable(12) %402)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %92, ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) %95)
  %403 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %404 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %403, ptr noundef nonnull align 4 dereferenceable(12) %92)
  call void @llvm.lifetime.end.p0(i64 12, ptr %95) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %94) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %93) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %92) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #7
  br label %566

405:                                              ; preds = %379, %376, %372
  %406 = load float, ptr %81, align 4, !tbaa !9
  %407 = fcmp ole float %406, 0.000000e+00
  br i1 %407, label %408, label %436

408:                                              ; preds = %405
  %409 = load float, ptr %76, align 4, !tbaa !9
  %410 = fcmp oge float %409, 0.000000e+00
  br i1 %410, label %411, label %436

411:                                              ; preds = %408
  %412 = load float, ptr %75, align 4, !tbaa !9
  %413 = load float, ptr %81, align 4, !tbaa !9
  %414 = load float, ptr %76, align 4, !tbaa !9
  %415 = load float, ptr %90, align 4, !tbaa !9
  %416 = fmul float %414, %415
  %417 = fneg float %416
  %418 = call float @llvm.fmuladd.f32(float %412, float %413, float %417)
  %419 = fcmp oge float %418, 0.000000e+00
  br i1 %419, label %420, label %436

420:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #7
  %421 = load float, ptr %76, align 4, !tbaa !9
  %422 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %36)
  %423 = fdiv float %421, %422
  %424 = call noundef float @_ZSt4fmaxff(float noundef %423, float noundef 0.000000e+00)
  %425 = call noundef float @_ZSt4fminff(float noundef %424, float noundef 1.000000e+00)
  store float %425, ptr %96, align 4, !tbaa !9
  %426 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %427 = load float, ptr %96, align 4, !tbaa !9
  %428 = fsub float 1.000000e+00, %427
  %429 = load float, ptr %96, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %426, float noundef %428, float noundef 0.000000e+00, float noundef %429, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %97) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %98) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #7
  %430 = load float, ptr %96, align 4, !tbaa !9
  %431 = fsub float 1.000000e+00, %430
  store float %431, ptr %99, align 4, !tbaa !9
  %432 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %98, ptr noundef nonnull align 4 dereferenceable(4) %99, ptr noundef nonnull align 4 dereferenceable(12) %432)
  call void @llvm.lifetime.start.p0(i64 12, ptr %100) #7
  %433 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %100, ptr noundef nonnull align 4 dereferenceable(4) %96, ptr noundef nonnull align 4 dereferenceable(12) %433)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %97, ptr noundef nonnull align 4 dereferenceable(12) %98, ptr noundef nonnull align 4 dereferenceable(12) %100)
  %434 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %435 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %434, ptr noundef nonnull align 4 dereferenceable(12) %97)
  call void @llvm.lifetime.end.p0(i64 12, ptr %100) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %98) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %97) #7
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #7
  br label %566

436:                                              ; preds = %411, %408, %405
  call void @llvm.lifetime.start.p0(i64 12, ptr %101) #7
  %437 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %102) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %103) #7
  %438 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %83, ptr noundef nonnull align 4 dereferenceable(12) %34)
  %439 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %83)
  %440 = fdiv float %438, %439
  store float %440, ptr %103, align 4, !tbaa !9
  call void @_ZNK7Vector3mlERKf(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %102, ptr noundef nonnull align 4 dereferenceable(12) %83, ptr noundef nonnull align 4 dereferenceable(4) %103)
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %101, ptr noundef nonnull align 4 dereferenceable(12) %437, ptr noundef nonnull align 4 dereferenceable(12) %102)
  %441 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %442 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %441, ptr noundef nonnull align 4 dereferenceable(12) %101)
  call void @llvm.lifetime.end.p0(i64 4, ptr %103) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %102) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %101) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %104) #7
  %443 = load ptr, ptr %7, align 8, !tbaa !5
  %444 = load ptr, ptr %8, align 8, !tbaa !5
  %445 = load ptr, ptr %9, align 8, !tbaa !5
  %446 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  call void @_ZN8geometry8triangle10baryCoordsERK7Vector3S3_S3_S3_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %104, ptr noundef nonnull align 4 dereferenceable(12) %443, ptr noundef nonnull align 4 dereferenceable(12) %444, ptr noundef nonnull align 4 dereferenceable(12) %445, ptr noundef nonnull align 4 dereferenceable(12) %446)
  %447 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %448 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %447, ptr noundef nonnull align 4 dereferenceable(16) %104)
  call void @llvm.lifetime.end.p0(i64 16, ptr %104) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %105) #7
  %449 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  store ptr %449, ptr %105, align 8, !tbaa !5
  %450 = load ptr, ptr %105, align 8, !tbaa !5
  %451 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %450, i32 noundef 0)
  %452 = load float, ptr %451, align 4, !tbaa !9
  %453 = fcmp olt float %452, 0.000000e+00
  br i1 %453, label %479, label %454

454:                                              ; preds = %436
  %455 = load ptr, ptr %105, align 8, !tbaa !5
  %456 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %455, i32 noundef 0)
  %457 = load float, ptr %456, align 4, !tbaa !9
  %458 = fcmp ogt float %457, 1.000000e+00
  br i1 %458, label %479, label %459

459:                                              ; preds = %454
  %460 = load ptr, ptr %105, align 8, !tbaa !5
  %461 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %460, i32 noundef 1)
  %462 = load float, ptr %461, align 4, !tbaa !9
  %463 = fcmp olt float %462, 0.000000e+00
  br i1 %463, label %479, label %464

464:                                              ; preds = %459
  %465 = load ptr, ptr %105, align 8, !tbaa !5
  %466 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %465, i32 noundef 1)
  %467 = load float, ptr %466, align 4, !tbaa !9
  %468 = fcmp ogt float %467, 1.000000e+00
  br i1 %468, label %479, label %469

469:                                              ; preds = %464
  %470 = load ptr, ptr %105, align 8, !tbaa !5
  %471 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %470, i32 noundef 2)
  %472 = load float, ptr %471, align 4, !tbaa !9
  %473 = fcmp olt float %472, 0.000000e+00
  br i1 %473, label %479, label %474

474:                                              ; preds = %469
  %475 = load ptr, ptr %105, align 8, !tbaa !5
  %476 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %475, i32 noundef 2)
  %477 = load float, ptr %476, align 4, !tbaa !9
  %478 = fcmp ogt float %477, 1.000000e+00
  br i1 %478, label %479, label %565

479:                                              ; preds = %474, %469, %464, %459, %454, %436
  call void @llvm.lifetime.start.p0(i64 4, ptr %106) #7
  store i32 0, ptr %106, align 4, !tbaa !11
  %480 = load ptr, ptr %105, align 8, !tbaa !5
  %481 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %480, i32 noundef 0)
  %482 = load float, ptr %481, align 4, !tbaa !9
  %483 = fcmp oge float %482, 0.000000e+00
  %484 = zext i1 %483 to i32
  %485 = shl i32 %484, 0
  %486 = load i32, ptr %106, align 4, !tbaa !11
  %487 = or i32 %486, %485
  store i32 %487, ptr %106, align 4, !tbaa !11
  %488 = load ptr, ptr %105, align 8, !tbaa !5
  %489 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %488, i32 noundef 1)
  %490 = load float, ptr %489, align 4, !tbaa !9
  %491 = fcmp oge float %490, 0.000000e+00
  %492 = zext i1 %491 to i32
  %493 = shl i32 %492, 1
  %494 = load i32, ptr %106, align 4, !tbaa !11
  %495 = or i32 %494, %493
  store i32 %495, ptr %106, align 4, !tbaa !11
  %496 = load ptr, ptr %105, align 8, !tbaa !5
  %497 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %496, i32 noundef 2)
  %498 = load float, ptr %497, align 4, !tbaa !9
  %499 = fcmp oge float %498, 0.000000e+00
  %500 = zext i1 %499 to i32
  %501 = shl i32 %500, 2
  %502 = load i32, ptr %106, align 4, !tbaa !11
  %503 = or i32 %502, %501
  store i32 %503, ptr %106, align 4, !tbaa !11
  %504 = load i32, ptr %106, align 4, !tbaa !11
  switch i32 %504, label %563 [
    i32 1, label %505
    i32 2, label %510
    i32 3, label %515
    i32 4, label %529
    i32 5, label %534
    i32 6, label %548
  ]

505:                                              ; preds = %479
  %506 = load ptr, ptr %7, align 8, !tbaa !5
  %507 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %508 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %507, ptr noundef nonnull align 4 dereferenceable(12) %506)
  %509 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %509, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %564

510:                                              ; preds = %479
  %511 = load ptr, ptr %8, align 8, !tbaa !5
  %512 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %513 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %512, ptr noundef nonnull align 4 dereferenceable(12) %511)
  %514 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %514, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %564

515:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %107) #7
  %516 = load float, ptr %75, align 4, !tbaa !9
  %517 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %35)
  %518 = fdiv float %516, %517
  store float %518, ptr %107, align 4, !tbaa !9
  %519 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %520 = load float, ptr %107, align 4, !tbaa !9
  %521 = fsub float 1.000000e+00, %520
  %522 = load float, ptr %107, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %519, float noundef %521, float noundef %522, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %108) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %109) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %110) #7
  %523 = load float, ptr %107, align 4, !tbaa !9
  %524 = fsub float 1.000000e+00, %523
  store float %524, ptr %110, align 4, !tbaa !9
  %525 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %109, ptr noundef nonnull align 4 dereferenceable(4) %110, ptr noundef nonnull align 4 dereferenceable(12) %525)
  call void @llvm.lifetime.start.p0(i64 12, ptr %111) #7
  %526 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %111, ptr noundef nonnull align 4 dereferenceable(4) %107, ptr noundef nonnull align 4 dereferenceable(12) %526)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %108, ptr noundef nonnull align 4 dereferenceable(12) %109, ptr noundef nonnull align 4 dereferenceable(12) %111)
  %527 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %528 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %527, ptr noundef nonnull align 4 dereferenceable(12) %108)
  call void @llvm.lifetime.end.p0(i64 12, ptr %111) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %110) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %109) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %108) #7
  store i32 2, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #7
  br label %564

529:                                              ; preds = %479
  %530 = load ptr, ptr %9, align 8, !tbaa !5
  %531 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %532 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %531, ptr noundef nonnull align 4 dereferenceable(12) %530)
  %533 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %533, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  br label %564

534:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %112) #7
  %535 = load float, ptr %76, align 4, !tbaa !9
  %536 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %36)
  %537 = fdiv float %535, %536
  store float %537, ptr %112, align 4, !tbaa !9
  %538 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %539 = load float, ptr %112, align 4, !tbaa !9
  %540 = fsub float 1.000000e+00, %539
  %541 = load float, ptr %112, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %538, float noundef %540, float noundef 0.000000e+00, float noundef %541, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %113) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %114) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %115) #7
  %542 = load float, ptr %112, align 4, !tbaa !9
  %543 = fsub float 1.000000e+00, %542
  store float %543, ptr %115, align 4, !tbaa !9
  %544 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %114, ptr noundef nonnull align 4 dereferenceable(4) %115, ptr noundef nonnull align 4 dereferenceable(12) %544)
  call void @llvm.lifetime.start.p0(i64 12, ptr %116) #7
  %545 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %116, ptr noundef nonnull align 4 dereferenceable(4) %112, ptr noundef nonnull align 4 dereferenceable(12) %545)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %113, ptr noundef nonnull align 4 dereferenceable(12) %114, ptr noundef nonnull align 4 dereferenceable(12) %116)
  %546 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %547 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %546, ptr noundef nonnull align 4 dereferenceable(12) %113)
  call void @llvm.lifetime.end.p0(i64 12, ptr %116) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %115) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %114) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %113) #7
  store i32 2, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %112) #7
  br label %564

548:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %117) #7
  %549 = load float, ptr %79, align 4, !tbaa !9
  %550 = fmul float -1.000000e+00, %549
  %551 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %37)
  %552 = fdiv float %550, %551
  store float %552, ptr %117, align 4, !tbaa !9
  %553 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 1
  %554 = load float, ptr %117, align 4, !tbaa !9
  %555 = fsub float 1.000000e+00, %554
  %556 = load float, ptr %117, align 4, !tbaa !9
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %553, float noundef 0.000000e+00, float noundef %555, float noundef %556, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %118) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %119) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %120) #7
  %557 = load float, ptr %117, align 4, !tbaa !9
  %558 = fsub float 1.000000e+00, %557
  store float %558, ptr %120, align 4, !tbaa !9
  %559 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %119, ptr noundef nonnull align 4 dereferenceable(4) %120, ptr noundef nonnull align 4 dereferenceable(12) %559)
  call void @llvm.lifetime.start.p0(i64 12, ptr %121) #7
  %560 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %121, ptr noundef nonnull align 4 dereferenceable(4) %117, ptr noundef nonnull align 4 dereferenceable(12) %560)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %118, ptr noundef nonnull align 4 dereferenceable(12) %119, ptr noundef nonnull align 4 dereferenceable(12) %121)
  %561 = getelementptr inbounds %"struct.geometry::types::pointBaryCoord_t", ptr %0, i32 0, i32 0
  %562 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %561, ptr noundef nonnull align 4 dereferenceable(12) %118)
  call void @llvm.lifetime.end.p0(i64 12, ptr %121) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %120) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %119) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %118) #7
  store i32 2, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %117) #7
  br label %564

563:                                              ; preds = %479
  br label %564

564:                                              ; preds = %563, %548, %534, %529, %515, %510, %505
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #7
  br label %565

565:                                              ; preds = %564, %474
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #7
  br label %566

566:                                              ; preds = %565, %420, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #7
  br label %567

567:                                              ; preds = %566, %356
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %83) #7
  br label %568

568:                                              ; preds = %567, %335
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %80) #7
  br label %569

569:                                              ; preds = %568, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %77) #7
  br label %570

570:                                              ; preds = %569, %305
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #7
  br label %571

571:                                              ; preds = %570, %296
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #7
  br label %572

572:                                              ; preds = %571, %178, %150, %133
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fmaxff(float noundef, float noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fminff(float noundef, float noundef) #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)) #5

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

; 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)) #6

; 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)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector312crossProductERKS_(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)) #0 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)) #0 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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.Vector4 = type { [4 x float] }
%class.Vector3 = type { [3 x float] }
%"struct.geometry::types::pointBaryCoord_t" = type { %class.Vector3, %class.Vector4 }

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7Vector33dotERKS_(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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) 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
define dso_local void @_ZN8geometry8triangle19closestPointToPointERK7Vector3S3_S3_S3_(ptr dead_on_unwind noalias nonnull writable sret(%"struct.geometry::types::pointBaryCoord_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(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4) local_unnamed_addr #0 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Vector3, align 4
  %8 = alloca %class.Vector3, align 4
  %9 = alloca %class.Vector3, align 4
  %10 = alloca float, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Vector3, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca float, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca %class.Vector3, align 4
  %19 = alloca float, align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca %class.Vector3, align 4
  %26 = alloca %class.Vector3, align 4
  %27 = alloca float, 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 %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca %class.Vector3, align 4
  %38 = alloca %class.Vector3, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca %class.Vector3, align 4
  %42 = alloca %class.Vector3, align 4
  %43 = alloca float, align 4
  %44 = alloca %class.Vector3, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca %class.Vector3, align 4
  %48 = alloca %class.Vector3, align 4
  %49 = alloca float, align 4
  %50 = alloca float, align 4
  %51 = alloca %class.Vector3, align 4
  %52 = alloca %class.Vector3, align 4
  %53 = alloca float, align 4
  %54 = alloca %class.Vector3, align 4
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca %class.Vector3, align 4
  %58 = alloca %class.Vector3, align 4
  %59 = alloca float, align 4
  %60 = alloca float, align 4
  %61 = alloca %class.Vector3, align 4
  %62 = alloca %class.Vector3, align 4
  %63 = alloca float, align 4
  %64 = alloca %class.Vector3, align 4
  %65 = alloca %class.Vector3, align 4
  %66 = alloca %class.Vector3, align 4
  %67 = alloca %class.Vector3, align 4
  %68 = alloca float, align 4
  %69 = alloca %class.Vector3, align 4
  %70 = alloca %class.Vector3, align 4
  %71 = alloca float, align 4
  %72 = alloca %class.Vector3, align 4
  %73 = alloca float, align 4
  %74 = alloca %class.Vector3, align 4
  %75 = alloca %class.Vector3, align 4
  %76 = alloca float, align 4
  %77 = alloca %class.Vector3, align 4
  %78 = alloca float, align 4
  %79 = alloca %class.Vector3, align 4
  %80 = alloca %class.Vector3, align 4
  %81 = alloca float, align 4
  %82 = alloca %class.Vector3, align 4
  %83 = alloca %class.Vector3, align 4
  %84 = alloca %class.Vector3, align 4
  %85 = alloca float, align 4
  %86 = alloca %class.Vector4, align 4
  %87 = alloca float, align 4
  %88 = alloca %class.Vector3, align 4
  %89 = alloca %class.Vector3, align 4
  %90 = alloca float, align 4
  %91 = alloca %class.Vector3, align 4
  %92 = alloca float, align 4
  %93 = alloca %class.Vector3, align 4
  %94 = alloca %class.Vector3, align 4
  %95 = alloca float, align 4
  %96 = alloca %class.Vector3, align 4
  %97 = alloca float, align 4
  %98 = alloca %class.Vector3, align 4
  %99 = alloca %class.Vector3, align 4
  %100 = alloca float, align 4
  %101 = alloca %class.Vector3, align 4
  tail call void @_ZN8geometry5types16pointBaryCoord_tC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %0)
  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) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %102 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %103 = fcmp olt float %102, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  br i1 %103, label %104, label %.critedge

104:                                              ; preds = %5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %105 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %106 = fcmp olt float %105, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %108, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  br label %325

.critedge:                                        ; preds = %5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br label %110

110:                                              ; preds = %.critedge, %104
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %111 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %8)
  %112 = fcmp olt float %111, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  br i1 %112, label %.critedge2, label %113

113:                                              ; preds = %110
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %114 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %115 = fcmp olt float %114, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br i1 %115, label %116, label %125

.critedge2:                                       ; preds = %110
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %116

116:                                              ; preds = %.critedge2, %113
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %117 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %118 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %13)
  %119 = fdiv float %117, %118
  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
  %120 = call noundef float @_ZSt4fminff(float noundef %119, float noundef 1.000000e+00)
  %121 = call noundef float @_ZSt4fmaxff(float noundef %120, float noundef 0.000000e+00)
  store float %121, ptr %10, align 4, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %0, i64 12
  %123 = fsub float 1.000000e+00, %121
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %122, float noundef %123, float noundef 0.000000e+00, float noundef %121, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  store float %123, ptr %16, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(12) %1)
  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) %10, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %124 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %325

125:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %126 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %127 = fcmp olt float %126, 0x3EB0C6F7A0000000
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  br i1 %127, label %128, label %140

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1)
  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) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %129 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %130 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %22)
  %131 = fdiv float %129, %130
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  store float %131, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  store float 1.000000e+00, ptr %23, align 4, !tbaa !5
  %132 = 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) %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  store float 0.000000e+00, ptr %24, align 4, !tbaa !5
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %132, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %134 = load float, ptr %133, align 4, !tbaa !5
  store float %134, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  %135 = getelementptr inbounds i8, ptr %0, i64 12
  %136 = fsub float 1.000000e+00, %134
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %135, float noundef %136, float noundef %134, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %137 = load float, ptr %19, align 4, !tbaa !5
  %138 = fsub float 1.000000e+00, %137
  store float %138, ptr %27, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %28)
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  br label %325

140:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #7
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #7
  call void @_ZNK7Vector310unitVectorEv(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %141 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %34)
  %142 = fcmp ult float %141, 0x3FEFFFEB00000000
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #7
  br i1 %142, label %179, label %143

143:                                              ; preds = %140
  %144 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %145 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %30)
  %146 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %31)
  %147 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %32)
  %148 = fcmp ult float %144, 0.000000e+00
  %149 = fcmp ugt float %144, %145
  %or.cond150 = or i1 %148, %149
  br i1 %or.cond150, label %159, label %150

150:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %37) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %37, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %38) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %151 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %38)
  %152 = fdiv float %151, %145
  store float %152, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #7
  store float 1.000000e+00, ptr %39, align 4, !tbaa !5
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #7
  store float 0.000000e+00, ptr %40, align 4, !tbaa !5
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %153, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %155 = load float, ptr %154, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  store float %155, ptr %35, align 4, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %0, i64 12
  %157 = fsub float 1.000000e+00, %155
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %156, float noundef %157, float noundef %155, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %41) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #7
  store float %157, ptr %43, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %44) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %44, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %41, ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %44)
  %158 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %41)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #7
  br label %324

159:                                              ; preds = %143
  %160 = fcmp ugt float %144, %146
  %or.cond152 = or i1 %148, %160
  br i1 %or.cond152, label %170, label %161

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %46) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %47) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %47, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %48) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %48, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %162 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %48)
  %163 = fdiv float %162, %146
  store float %163, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %49) #7
  store float 1.000000e+00, ptr %49, align 4, !tbaa !5
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #7
  store float 0.000000e+00, ptr %50, align 4, !tbaa !5
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %164, ptr noundef nonnull align 4 dereferenceable(4) %50)
  %166 = load float, ptr %165, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #7
  store float %166, ptr %45, align 4, !tbaa !5
  %167 = getelementptr inbounds i8, ptr %0, i64 12
  %168 = fsub float 1.000000e+00, %166
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %167, float noundef %168, float noundef 0.000000e+00, float noundef %166, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %51) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %52) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #7
  store float %168, ptr %53, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %52, ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %54) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %54, ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %51, ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %54)
  %169 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %51)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %54) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %52) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #7
  br label %324

170:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %55) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %56) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %57) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %57, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %58) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %58, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %171 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %58)
  %172 = fdiv float %171, %147
  store float %172, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %59) #7
  store float 1.000000e+00, ptr %59, align 4, !tbaa !5
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %60) #7
  store float 0.000000e+00, ptr %60, align 4, !tbaa !5
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %173, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %175 = load float, ptr %174, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %60) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %59) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %58) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %57) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #7
  store float %175, ptr %55, align 4, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %0, i64 12
  %177 = fsub float 1.000000e+00, %175
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %176, float noundef 0.000000e+00, float noundef %177, float noundef %175, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %61) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %62) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %63) #7
  store float %177, ptr %63, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %62, ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %64) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %64, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %61, ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %64)
  %178 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %61)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %64) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %63) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %61) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #7
  br label %324

179:                                              ; preds = %140
  %180 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %181 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %182 = fcmp ole float %180, 0.000000e+00
  %183 = fcmp ole float %181, 0.000000e+00
  %or.cond = and i1 %182, %183
  br i1 %or.cond, label %184, label %187

184:                                              ; preds = %179
  %185 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %185, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %186 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  br label %324

187:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %65) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %65, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %188 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %189 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(12) %32)
  %190 = fcmp oge float %188, 0.000000e+00
  %191 = fcmp oge float %189, 0.000000e+00
  %or.cond5 = and i1 %190, %191
  br i1 %or.cond5, label %192, label %195

192:                                              ; preds = %187
  %193 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %193, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %194 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %2)
  br label %323

195:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %66) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %66, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %196 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %197 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %32)
  %198 = fcmp oge float %196, 0.000000e+00
  %199 = fcmp ole float %197, 0.000000e+00
  %or.cond7 = and i1 %198, %199
  br i1 %or.cond7, label %200, label %203

200:                                              ; preds = %195
  %201 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %201, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %202 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3)
  br label %322

203:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %67) #7
  call void @_ZNK7Vector312crossProductERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %67, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %204 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %205 = fcmp oge float %180, 0.000000e+00
  %206 = fcmp ole float %188, 0.000000e+00
  %or.cond9 = and i1 %205, %206
  br i1 %or.cond9, label %207, label %220

207:                                              ; preds = %203
  %208 = fneg float %204
  %209 = fmul float %180, %208
  %210 = call float @llvm.fmuladd.f32(float %188, float %181, float %209)
  %211 = fcmp ult float %210, 0.000000e+00
  br i1 %211, label %220, label %212

212:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %68) #7
  %213 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %30)
  %214 = fdiv float %180, %213
  %215 = call noundef float @_ZSt4fmaxff(float noundef %214, float noundef 0.000000e+00)
  %216 = call noundef float @_ZSt4fminff(float noundef %215, float noundef 1.000000e+00)
  store float %216, ptr %68, align 4, !tbaa !5
  %217 = getelementptr inbounds i8, ptr %0, i64 12
  %218 = fsub float 1.000000e+00, %216
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %217, float noundef %218, float noundef %216, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %69) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %70) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %71) #7
  store float %218, ptr %71, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %70, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %72) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %72, ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %69, ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %72)
  %219 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %69)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %72) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %71) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %70) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %69) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %68) #7
  br label %321

220:                                              ; preds = %207, %203
  %221 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %222 = fcmp ole float %189, 0.000000e+00
  %223 = fcmp oge float %197, 0.000000e+00
  %or.cond11 = and i1 %222, %223
  br i1 %or.cond11, label %224, label %238

224:                                              ; preds = %220
  %225 = fneg float %196
  %226 = fmul float %188, %225
  %227 = call float @llvm.fmuladd.f32(float %221, float %204, float %226)
  %228 = fcmp ult float %227, 0.000000e+00
  br i1 %228, label %238, label %229

229:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %73) #7
  %230 = fneg float %189
  %231 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %32)
  %232 = fdiv float %230, %231
  %233 = call noundef float @_ZSt4fmaxff(float noundef %232, float noundef 0.000000e+00)
  %234 = call noundef float @_ZSt4fminff(float noundef %233, float noundef 1.000000e+00)
  store float %234, ptr %73, align 4, !tbaa !5
  %235 = getelementptr inbounds i8, ptr %0, i64 12
  %236 = fsub float 1.000000e+00, %234
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %235, float noundef 0.000000e+00, float noundef %236, float noundef %234, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %74) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %75) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %76) #7
  store float %236, ptr %76, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %75, ptr noundef nonnull align 4 dereferenceable(4) %76, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %77) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %77, ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %74, ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %77)
  %237 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %74)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %77) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %76) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %75) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %74) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %73) #7
  br label %321

238:                                              ; preds = %224, %220
  %239 = fcmp ole float %196, 0.000000e+00
  %240 = fcmp oge float %181, 0.000000e+00
  %or.cond13 = and i1 %240, %239
  br i1 %or.cond13, label %241, label %254

241:                                              ; preds = %238
  %242 = fneg float %181
  %243 = fmul float %221, %242
  %244 = call float @llvm.fmuladd.f32(float %180, float %196, float %243)
  %245 = fcmp ult float %244, 0.000000e+00
  br i1 %245, label %254, label %246

246:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %78) #7
  %247 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %31)
  %248 = fdiv float %181, %247
  %249 = call noundef float @_ZSt4fmaxff(float noundef %248, float noundef 0.000000e+00)
  %250 = call noundef float @_ZSt4fminff(float noundef %249, float noundef 1.000000e+00)
  store float %250, ptr %78, align 4, !tbaa !5
  %251 = getelementptr inbounds i8, ptr %0, i64 12
  %252 = fsub float 1.000000e+00, %250
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %251, float noundef %252, float noundef 0.000000e+00, float noundef %250, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %79) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %80) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %81) #7
  store float %252, ptr %81, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %80, ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %82) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %82, ptr noundef nonnull align 4 dereferenceable(4) %78, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %79, ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) %82)
  %253 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %79)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %82) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %81) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %80) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %79) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %78) #7
  br label %321

254:                                              ; preds = %241, %238
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %83) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %84) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %85) #7
  %255 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %29)
  %256 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %67)
  %257 = fdiv float %255, %256
  store float %257, ptr %85, align 4, !tbaa !5
  call void @_ZNK7Vector3mlERKf(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %84, ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(4) %85)
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %83, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %84)
  %258 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %83)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %85) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %84) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %83) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %86) #7
  call void @_ZN8geometry8triangle10baryCoordsERK7Vector3S3_S3_S3_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %86, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %0)
  %259 = getelementptr inbounds i8, ptr %0, i64 12
  %260 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %259, ptr noundef nonnull align 4 dereferenceable(16) %86)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %86) #7
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 0)
  %262 = load float, ptr %261, align 4, !tbaa !5
  %263 = fcmp olt float %262, 0.000000e+00
  br i1 %263, label %284, label %264

264:                                              ; preds = %254
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 0)
  %266 = load float, ptr %265, align 4, !tbaa !5
  %267 = fcmp ogt float %266, 1.000000e+00
  br i1 %267, label %284, label %268

268:                                              ; preds = %264
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 1)
  %270 = load float, ptr %269, align 4, !tbaa !5
  %271 = fcmp olt float %270, 0.000000e+00
  br i1 %271, label %284, label %272

272:                                              ; preds = %268
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 1)
  %274 = load float, ptr %273, align 4, !tbaa !5
  %275 = fcmp ogt float %274, 1.000000e+00
  br i1 %275, label %284, label %276

276:                                              ; preds = %272
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 2)
  %278 = load float, ptr %277, align 4, !tbaa !5
  %279 = fcmp olt float %278, 0.000000e+00
  br i1 %279, label %284, label %280

280:                                              ; preds = %276
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 2)
  %282 = load float, ptr %281, align 4, !tbaa !5
  %283 = fcmp ogt float %282, 1.000000e+00
  br i1 %283, label %284, label %321

284:                                              ; preds = %280, %276, %272, %268, %264, %254
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 0)
  %286 = load float, ptr %285, align 4, !tbaa !5
  %287 = fcmp oge float %286, 0.000000e+00
  %288 = zext i1 %287 to i32
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 1)
  %290 = load float, ptr %289, align 4, !tbaa !5
  %291 = fcmp oge float %290, 0.000000e+00
  %292 = select i1 %291, i32 2, i32 0
  %293 = or disjoint i32 %292, %288
  %294 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector4ixEj(ptr noundef nonnull align 4 dereferenceable(16) %259, i32 noundef 2)
  %295 = load float, ptr %294, align 4, !tbaa !5
  %296 = fcmp oge float %295, 0.000000e+00
  %297 = select i1 %296, i32 4, i32 0
  %298 = or disjoint i32 %293, %297
  switch i32 %298, label %321 [
    i32 1, label %299
    i32 2, label %301
    i32 3, label %303
    i32 4, label %308
    i32 5, label %310
    i32 6, label %315
  ]

299:                                              ; preds = %284
  %300 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %321

301:                                              ; preds = %284
  %302 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %321

303:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %87) #7
  %304 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %30)
  %305 = fdiv float %180, %304
  store float %305, ptr %87, align 4, !tbaa !5
  %306 = fsub float 1.000000e+00, %305
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef %306, float noundef %305, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %88) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %89) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %90) #7
  store float %306, ptr %90, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %89, ptr noundef nonnull align 4 dereferenceable(4) %90, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %91) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %91, ptr noundef nonnull align 4 dereferenceable(4) %87, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %88, ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) %91)
  %307 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %88)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %91) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %90) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %89) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %88) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %87) #7
  br label %321

308:                                              ; preds = %284
  %309 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  br label %321

310:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %92) #7
  %311 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %31)
  %312 = fdiv float %181, %311
  store float %312, ptr %92, align 4, !tbaa !5
  %313 = fsub float 1.000000e+00, %312
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef %313, float noundef 0.000000e+00, float noundef %312, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %93) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %94) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %95) #7
  store float %313, ptr %95, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %94, ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %96) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %96, ptr noundef nonnull align 4 dereferenceable(4) %92, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %93, ptr noundef nonnull align 4 dereferenceable(12) %94, ptr noundef nonnull align 4 dereferenceable(12) %96)
  %314 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %93)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %96) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %95) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %94) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %93) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %92) #7
  br label %321

315:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %97) #7
  %316 = fneg float %189
  %317 = call noundef float @_ZNK7Vector316magnitudeSquaredEv(ptr noundef nonnull align 4 dereferenceable(12) %32)
  %318 = fdiv float %316, %317
  store float %318, ptr %97, align 4, !tbaa !5
  %319 = fsub float 1.000000e+00, %318
  call void @_ZN7Vector410InitializeEffff(ptr noundef nonnull align 4 dereferenceable(16) %259, float noundef 0.000000e+00, float noundef %319, float noundef %318, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %98) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %99) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %100) #7
  store float %319, ptr %100, align 4, !tbaa !5
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %99, ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %101) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %101, ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %98, ptr noundef nonnull align 4 dereferenceable(12) %99, ptr noundef nonnull align 4 dereferenceable(12) %101)
  %320 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %98)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %101) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %100) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %99) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %98) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %97) #7
  br label %321

321:                                              ; preds = %229, %246, %299, %301, %303, %308, %310, %315, %284, %280, %212
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %67) #7
  br label %322

322:                                              ; preds = %321, %200
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %66) #7
  br label %323

323:                                              ; preds = %322, %192
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %65) #7
  br label %324

324:                                              ; preds = %184, %323, %150, %161, %170
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #7
  br label %325

325:                                              ; preds = %324, %128, %116, %107
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fmaxff(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fminff(float noundef, float noundef) local_unnamed_addr #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 #5

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

; 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 #6

; 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 #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector312crossProductERKS_(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 #0 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 #0 align 2

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass