; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (Triangle3)

; 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.Maths::TVector3" = type { float, float, float }
%"class.Riemann::Triangle3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3" }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(36) %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) #3 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.Riemann::Triangle3", align 4
  %13 = alloca [3 x %"class.Maths::TVector3"], align 16
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::TVector3", align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca [3 x %"class.Maths::TVector3"], align 16
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca %"class.Maths::TVector3", align 4
  %27 = alloca %"class.Maths::TVector3", align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.Maths::TVector3", align 4
  %33 = alloca float, align 4
  %34 = alloca %"class.Maths::TVector3", align 4
  %35 = alloca %"class.Maths::TVector3", align 4
  %36 = alloca %"class.Maths::TVector3", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  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
  %37 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store float 0x3EB0C6F7A0000000, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr %37, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %12) #4
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7Riemann9Triangle3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %40)
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #4
  %41 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i32 0, i32 0
  %42 = getelementptr inbounds %"class.Maths::TVector3", ptr %41, i64 3
  br label %43

43:                                               ; preds = %43, %4
  %44 = phi ptr [ %41, %4 ], [ %45, %43 ]
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %44)
  %45 = getelementptr inbounds %"class.Maths::TVector3", ptr %44, i64 1
  %46 = icmp eq ptr %45, %42
  br i1 %46, label %47, label %43

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %50, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %51)
  %52 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 0
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #4
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %56, i32 0, i32 1
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %57)
  %58 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 1
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %58, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #4
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %62, i32 0, i32 2
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %63)
  %64 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 2
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #4
  %66 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 0
  %67 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 1
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %67)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %68, i32 0, i32 0
  %70 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %69)
  store float %70, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %71 = load float, ptr %18, align 4, !tbaa !9
  %72 = load float, ptr %19, align 4, !tbaa !9
  %73 = fsub float %72, 0x3EB0C6F7A0000000
  %74 = fcmp olt float %71, %73
  br i1 %74, label %80, label %75

75:                                               ; preds = %47
  %76 = load float, ptr %18, align 4, !tbaa !9
  %77 = load float, ptr %20, align 4, !tbaa !9
  %78 = fadd float %77, 0x3EB0C6F7A0000000
  %79 = fcmp ogt float %76, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %75, %47
  store i1 false, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %209

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #4
  %82 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i32 0, i32 0
  %83 = getelementptr inbounds %"class.Maths::TVector3", ptr %82, i64 3
  br label %84

84:                                               ; preds = %84, %81
  %85 = phi ptr [ %82, %81 ], [ %86, %84 ]
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %85)
  %86 = getelementptr inbounds %"class.Maths::TVector3", ptr %85, i64 1
  %87 = icmp eq ptr %86, %83
  br i1 %87, label %88, label %84

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #4
  %89 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 1
  %90 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 0
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) %90)
  %91 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 0
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %91, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #4
  %93 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 2
  %94 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 1
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) %94)
  %95 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 1
  %96 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #4
  %97 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 0
  %98 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 2
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %98)
  %99 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 2
  %100 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %99, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #4
  %101 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 0
  %102 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 1
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) %102)
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %26)
  %103 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %32)
  %104 = fcmp oge float %103, 0x3EB0C6F7A0000000
  br i1 %104, label %105, label %158

105:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %106 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %12, i32 0, i32 0
  %107 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %106)
  store float %107, ptr %33, align 4, !tbaa !9
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %108, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %109 = load float, ptr %33, align 4, !tbaa !9
  %110 = load float, ptr %28, align 4, !tbaa !9
  %111 = fsub float %110, 0x3EB0C6F7A0000000
  %112 = fcmp olt float %109, %111
  br i1 %112, label %118, label %113

113:                                              ; preds = %105
  %114 = load float, ptr %33, align 4, !tbaa !9
  %115 = load float, ptr %29, align 4, !tbaa !9
  %116 = fadd float %115, 0x3EB0C6F7A0000000
  %117 = fcmp ogt float %114, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %113, %105
  store i1 false, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %155

119:                                              ; preds = %113
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %151, %119
  %121 = load i32, ptr %31, align 4, !tbaa !11
  %122 = icmp slt i32 %121, 3
  br i1 %122, label %123, label %154

123:                                              ; preds = %120
  store i32 0, ptr %30, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %147, %123
  %125 = load i32, ptr %30, align 4, !tbaa !11
  %126 = icmp slt i32 %125, 3
  br i1 %126, label %127, label %150

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #4
  %128 = load i32, ptr %30, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 %129
  %131 = load i32, ptr %31, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 %132
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) %133)
  %134 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #4
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %135, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %136 = load float, ptr %29, align 4, !tbaa !9
  %137 = load float, ptr %19, align 4, !tbaa !9
  %138 = fsub float %137, 0x3EB0C6F7A0000000
  %139 = fcmp olt float %136, %138
  br i1 %139, label %145, label %140

140:                                              ; preds = %127
  %141 = load float, ptr %20, align 4, !tbaa !9
  %142 = load float, ptr %28, align 4, !tbaa !9
  %143 = fsub float %142, 0x3EB0C6F7A0000000
  %144 = fcmp olt float %141, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %140, %127
  store i1 false, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %155

146:                                              ; preds = %140
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %30, align 4, !tbaa !11
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %30, align 4, !tbaa !11
  br label %124, !llvm.loop !13

150:                                              ; preds = %124
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %31, align 4, !tbaa !11
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %31, align 4, !tbaa !11
  br label %120, !llvm.loop !15

154:                                              ; preds = %120
  store i32 0, ptr %21, align 4
  br label %155

155:                                              ; preds = %154, %145, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  %156 = load i32, ptr %21, align 4
  switch i32 %156, label %208 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  br label %207

158:                                              ; preds = %88
  store i32 0, ptr %30, align 4, !tbaa !11
  br label %159

159:                                              ; preds = %179, %158
  %160 = load i32, ptr %30, align 4, !tbaa !11
  %161 = icmp slt i32 %160, 3
  br i1 %161, label %162, label %182

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #4
  %163 = load i32, ptr %30, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %13, i64 0, i64 %164
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %35, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %165)
  %166 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #4
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %167, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %168 = load float, ptr %29, align 4, !tbaa !9
  %169 = load float, ptr %19, align 4, !tbaa !9
  %170 = fsub float %169, 0x3EB0C6F7A0000000
  %171 = fcmp olt float %168, %170
  br i1 %171, label %177, label %172

172:                                              ; preds = %162
  %173 = load float, ptr %20, align 4, !tbaa !9
  %174 = load float, ptr %28, align 4, !tbaa !9
  %175 = fsub float %174, 0x3EB0C6F7A0000000
  %176 = fcmp olt float %173, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %172, %162
  store i1 false, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %208

178:                                              ; preds = %172
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %30, align 4, !tbaa !11
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %30, align 4, !tbaa !11
  br label %159, !llvm.loop !16

182:                                              ; preds = %159
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %183

183:                                              ; preds = %203, %182
  %184 = load i32, ptr %31, align 4, !tbaa !11
  %185 = icmp slt i32 %184, 3
  br i1 %185, label %186, label %206

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #4
  %187 = load i32, ptr %31, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [3 x %"class.Maths::TVector3"], ptr %22, i64 0, i64 %188
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %189)
  %190 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #4
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %191, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %192 = load float, ptr %29, align 4, !tbaa !9
  %193 = load float, ptr %19, align 4, !tbaa !9
  %194 = fsub float %193, 0x3EB0C6F7A0000000
  %195 = fcmp olt float %192, %194
  br i1 %195, label %201, label %196

196:                                              ; preds = %186
  %197 = load float, ptr %20, align 4, !tbaa !9
  %198 = load float, ptr %28, align 4, !tbaa !9
  %199 = fsub float %198, 0x3EB0C6F7A0000000
  %200 = fcmp olt float %197, %199
  br i1 %200, label %201, label %202

201:                                              ; preds = %196, %186
  store i1 false, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %208

202:                                              ; preds = %196
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %31, align 4, !tbaa !11
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %31, align 4, !tbaa !11
  br label %183, !llvm.loop !17

206:                                              ; preds = %183
  br label %207

207:                                              ; preds = %206, %157
  store i1 true, ptr %5, align 1
  store i32 1, ptr %21, align 4
  br label %208

208:                                              ; preds = %207, %201, %177, %155
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #4
  br label %209

209:                                              ; preds = %208, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %210 = load i1, ptr %5, align 1
  ret i1 %210
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

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

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


; 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.Maths::TVector3" = type { float, float, float }
%"class.Riemann::Triangle3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3" }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(36) %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) local_unnamed_addr #3 align 2 {
  %5 = alloca %"class.Riemann::Triangle3", align 4
  %6 = alloca [3 x %"class.Maths::TVector3"], align 16
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca [3 x %"class.Maths::TVector3"], align 16
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::TVector3", align 4
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  %22 = alloca %"class.Maths::TVector3", align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #4
  call void @_ZN7Riemann9Triangle3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.ptr.1 = getelementptr inbounds i8, ptr %6, i64 12
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %0)
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %25)
  %28 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %27)
  %29 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1)
  %30 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %31 = load float, ptr %11, align 4, !tbaa !5
  %32 = fadd float %31, 0xBEB0C6F7A0000000
  %33 = fcmp olt float %30, %32
  br i1 %33, label %212, label %34

34:                                               ; preds = %4
  %35 = load float, ptr %12, align 4, !tbaa !5
  %36 = fadd float %35, 0x3EB0C6F7A0000000
  %37 = fcmp ogt float %30, %36
  br i1 %37, label %212, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
  %.ptr41.1 = getelementptr inbounds i8, ptr %13, i64 12
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  %.ptr41.2 = getelementptr inbounds i8, ptr %13, i64 24
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #4
  %39 = getelementptr inbounds i8, ptr %5, i64 12
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %40 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #4
  %41 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %39)
  %42 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #4
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %41)
  %43 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #4
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %44 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %45 = fcmp ult float %44, 0x3EB0C6F7A0000000
  br i1 %45, label %.preheader43.preheader, label %51

.preheader43.preheader:                           ; preds = %38
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %46 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %47 = load float, ptr %20, align 4, !tbaa !5
  %48 = load float, ptr %11, align 4, !tbaa !5
  %49 = fadd float %48, 0xBEB0C6F7A0000000
  %50 = fcmp olt float %47, %49
  br i1 %50, label %.critedge, label %181

51:                                               ; preds = %38
  %52 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %53 = load float, ptr %19, align 4, !tbaa !5
  %54 = fadd float %53, 0xBEB0C6F7A0000000
  %55 = fcmp olt float %52, %54
  br i1 %55, label %.critedge, label %56

56:                                               ; preds = %51
  %57 = load float, ptr %20, align 4, !tbaa !5
  %58 = fadd float %57, 0x3EB0C6F7A0000000
  %59 = fcmp ogt float %52, %58
  br i1 %59, label %.critedge, label %.preheader45.preheader

.preheader45.preheader:                           ; preds = %56
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %60 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %61 = load float, ptr %20, align 4, !tbaa !5
  %62 = load float, ptr %11, align 4, !tbaa !5
  %63 = fadd float %62, 0xBEB0C6F7A0000000
  %64 = fcmp olt float %61, %63
  br i1 %64, label %.critedge.loopexit54, label %151

65:                                               ; preds = %151
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %67 = load float, ptr %20, align 4, !tbaa !5
  %68 = load float, ptr %11, align 4, !tbaa !5
  %69 = fadd float %68, 0xBEB0C6F7A0000000
  %70 = fcmp olt float %67, %69
  br i1 %70, label %.critedge.loopexit54, label %71

71:                                               ; preds = %65
  %72 = load float, ptr %12, align 4, !tbaa !5
  %73 = load float, ptr %19, align 4, !tbaa !5
  %74 = fadd float %73, 0xBEB0C6F7A0000000
  %75 = fcmp olt float %72, %74
  br i1 %75, label %.critedge.loopexit54, label %76

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %77 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %78 = load float, ptr %20, align 4, !tbaa !5
  %79 = load float, ptr %11, align 4, !tbaa !5
  %80 = fadd float %79, 0xBEB0C6F7A0000000
  %81 = fcmp olt float %78, %80
  br i1 %81, label %.critedge.loopexit54, label %82

82:                                               ; preds = %76
  %83 = load float, ptr %12, align 4, !tbaa !5
  %84 = load float, ptr %19, align 4, !tbaa !5
  %85 = fadd float %84, 0xBEB0C6F7A0000000
  %86 = fcmp olt float %83, %85
  br i1 %86, label %.critedge.loopexit54, label %.preheader45.1

.preheader45.1:                                   ; preds = %82
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  %87 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %88 = load float, ptr %20, align 4, !tbaa !5
  %89 = load float, ptr %11, align 4, !tbaa !5
  %90 = fadd float %89, 0xBEB0C6F7A0000000
  %91 = fcmp olt float %88, %90
  br i1 %91, label %.critedge.loopexit54, label %92

92:                                               ; preds = %.preheader45.1
  %93 = load float, ptr %12, align 4, !tbaa !5
  %94 = load float, ptr %19, align 4, !tbaa !5
  %95 = fadd float %94, 0xBEB0C6F7A0000000
  %96 = fcmp olt float %93, %95
  br i1 %96, label %.critedge.loopexit54, label %97

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  %98 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %99 = load float, ptr %20, align 4, !tbaa !5
  %100 = load float, ptr %11, align 4, !tbaa !5
  %101 = fadd float %100, 0xBEB0C6F7A0000000
  %102 = fcmp olt float %99, %101
  br i1 %102, label %.critedge.loopexit54, label %103

103:                                              ; preds = %97
  %104 = load float, ptr %12, align 4, !tbaa !5
  %105 = load float, ptr %19, align 4, !tbaa !5
  %106 = fadd float %105, 0xBEB0C6F7A0000000
  %107 = fcmp olt float %104, %106
  br i1 %107, label %.critedge.loopexit54, label %108

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %110 = load float, ptr %20, align 4, !tbaa !5
  %111 = load float, ptr %11, align 4, !tbaa !5
  %112 = fadd float %111, 0xBEB0C6F7A0000000
  %113 = fcmp olt float %110, %112
  br i1 %113, label %.critedge.loopexit54, label %114

114:                                              ; preds = %108
  %115 = load float, ptr %12, align 4, !tbaa !5
  %116 = load float, ptr %19, align 4, !tbaa !5
  %117 = fadd float %116, 0xBEB0C6F7A0000000
  %118 = fcmp olt float %115, %117
  br i1 %118, label %.critedge.loopexit54, label %.preheader45.2

.preheader45.2:                                   ; preds = %114
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2)
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %120 = load float, ptr %20, align 4, !tbaa !5
  %121 = load float, ptr %11, align 4, !tbaa !5
  %122 = fadd float %121, 0xBEB0C6F7A0000000
  %123 = fcmp olt float %120, %122
  br i1 %123, label %.critedge.loopexit54, label %124

124:                                              ; preds = %.preheader45.2
  %125 = load float, ptr %12, align 4, !tbaa !5
  %126 = load float, ptr %19, align 4, !tbaa !5
  %127 = fadd float %126, 0xBEB0C6F7A0000000
  %128 = fcmp olt float %125, %127
  br i1 %128, label %.critedge.loopexit54, label %129

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2)
  %130 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %131 = load float, ptr %20, align 4, !tbaa !5
  %132 = load float, ptr %11, align 4, !tbaa !5
  %133 = fadd float %132, 0xBEB0C6F7A0000000
  %134 = fcmp olt float %131, %133
  br i1 %134, label %.critedge.loopexit54, label %135

135:                                              ; preds = %129
  %136 = load float, ptr %12, align 4, !tbaa !5
  %137 = load float, ptr %19, align 4, !tbaa !5
  %138 = fadd float %137, 0xBEB0C6F7A0000000
  %139 = fcmp olt float %136, %138
  br i1 %139, label %.critedge.loopexit54, label %140

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2)
  %141 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %142 = load float, ptr %20, align 4, !tbaa !5
  %143 = load float, ptr %11, align 4, !tbaa !5
  %144 = fadd float %143, 0xBEB0C6F7A0000000
  %145 = fcmp olt float %142, %144
  br i1 %145, label %.critedge.loopexit54, label %146

146:                                              ; preds = %140
  %147 = load float, ptr %12, align 4, !tbaa !5
  %148 = load float, ptr %19, align 4, !tbaa !5
  %149 = fadd float %148, 0xBEB0C6F7A0000000
  %150 = fcmp olt float %147, %149
  br i1 %150, label %.critedge.loopexit54, label %.critedge

151:                                              ; preds = %.preheader45.preheader
  %152 = load float, ptr %12, align 4, !tbaa !5
  %153 = load float, ptr %19, align 4, !tbaa !5
  %154 = fadd float %153, 0xBEB0C6F7A0000000
  %155 = fcmp olt float %152, %154
  br i1 %155, label %.critedge.loopexit54, label %65

.preheader43.1:                                   ; preds = %181
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1)
  %156 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %157 = load float, ptr %20, align 4, !tbaa !5
  %158 = load float, ptr %11, align 4, !tbaa !5
  %159 = fadd float %158, 0xBEB0C6F7A0000000
  %160 = fcmp olt float %157, %159
  br i1 %160, label %.critedge, label %161

161:                                              ; preds = %.preheader43.1
  %162 = load float, ptr %12, align 4, !tbaa !5
  %163 = load float, ptr %19, align 4, !tbaa !5
  %164 = fadd float %163, 0xBEB0C6F7A0000000
  %165 = fcmp olt float %162, %164
  br i1 %165, label %.critedge, label %.preheader43.2

.preheader43.2:                                   ; preds = %161
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %.ptr.2)
  %166 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %167 = load float, ptr %20, align 4, !tbaa !5
  %168 = load float, ptr %11, align 4, !tbaa !5
  %169 = fadd float %168, 0xBEB0C6F7A0000000
  %170 = fcmp olt float %167, %169
  br i1 %170, label %.critedge, label %171

171:                                              ; preds = %.preheader43.2
  %172 = load float, ptr %12, align 4, !tbaa !5
  %173 = load float, ptr %19, align 4, !tbaa !5
  %174 = fadd float %173, 0xBEB0C6F7A0000000
  %175 = fcmp olt float %172, %174
  br i1 %175, label %.critedge, label %.preheader.preheader

.preheader.preheader:                             ; preds = %171
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %176 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %177 = load float, ptr %20, align 4, !tbaa !5
  %178 = load float, ptr %11, align 4, !tbaa !5
  %179 = fadd float %178, 0xBEB0C6F7A0000000
  %180 = fcmp olt float %177, %179
  br i1 %180, label %.critedge, label %207

181:                                              ; preds = %.preheader43.preheader
  %182 = load float, ptr %12, align 4, !tbaa !5
  %183 = load float, ptr %19, align 4, !tbaa !5
  %184 = fadd float %183, 0xBEB0C6F7A0000000
  %185 = fcmp olt float %182, %184
  br i1 %185, label %.critedge, label %.preheader43.1

.preheader.1:                                     ; preds = %207
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.1)
  %186 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %187 = load float, ptr %20, align 4, !tbaa !5
  %188 = load float, ptr %11, align 4, !tbaa !5
  %189 = fadd float %188, 0xBEB0C6F7A0000000
  %190 = fcmp olt float %187, %189
  br i1 %190, label %.critedge, label %191

191:                                              ; preds = %.preheader.1
  %192 = load float, ptr %12, align 4, !tbaa !5
  %193 = load float, ptr %19, align 4, !tbaa !5
  %194 = fadd float %193, 0xBEB0C6F7A0000000
  %195 = fcmp olt float %192, %194
  br i1 %195, label %.critedge, label %.preheader.2

.preheader.2:                                     ; preds = %191
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #4
  call void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %.ptr41.2)
  %196 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #4
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZNK7Riemann9Triangle315ProjectOntoAxisERKN5Maths8TVector3IfEERfS6_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %197 = load float, ptr %20, align 4, !tbaa !5
  %198 = load float, ptr %11, align 4, !tbaa !5
  %199 = fadd float %198, 0xBEB0C6F7A0000000
  %200 = fcmp olt float %197, %199
  br i1 %200, label %.critedge, label %201

201:                                              ; preds = %.preheader.2
  %202 = load float, ptr %12, align 4, !tbaa !5
  %203 = load float, ptr %19, align 4, !tbaa !5
  %204 = fadd float %203, 0xBEB0C6F7A0000000
  %205 = fcmp olt float %202, %204
  br i1 %205, label %.critedge, label %206

206:                                              ; preds = %201
  br label %.critedge

207:                                              ; preds = %.preheader.preheader
  %208 = load float, ptr %12, align 4, !tbaa !5
  %209 = load float, ptr %19, align 4, !tbaa !5
  %210 = fadd float %209, 0xBEB0C6F7A0000000
  %211 = fcmp olt float %208, %210
  br i1 %211, label %.critedge, label %.preheader.1

.critedge.loopexit54:                             ; preds = %146, %140, %135, %129, %124, %.preheader45.2, %114, %108, %103, %97, %92, %.preheader45.1, %82, %76, %71, %65, %.preheader45.preheader, %151
  br label %.critedge

.critedge:                                        ; preds = %.preheader43.preheader, %181, %.preheader43.1, %161, %.preheader43.2, %171, %.preheader.preheader, %207, %.preheader.1, %191, %.preheader.2, %201, %206, %146, %.critedge.loopexit54, %56, %51
  %.1 = phi i1 [ false, %51 ], [ false, %56 ], [ false, %.critedge.loopexit54 ], [ true, %146 ], [ false, %207 ], [ false, %.preheader.preheader ], [ false, %.preheader.1 ], [ false, %191 ], [ false, %.preheader.2 ], [ false, %201 ], [ true, %206 ], [ false, %171 ], [ false, %.preheader43.2 ], [ false, %161 ], [ false, %.preheader43.1 ], [ false, %181 ], [ false, %.preheader43.preheader ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #4
  br label %212

212:                                              ; preds = %4, %34, %.critedge
  %.2 = phi i1 [ %.1, %.critedge ], [ false, %34 ], [ false, %4 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #4
  ret i1 %.2
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Maths16UnitCrossProductIfEENS_8TVector3IT_EERKS3_S5_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass