; 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::Plane3" = type { %"class.Maths::TVector3", float }
%"class.Riemann::Triangle3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"struct.Riemann::Triangle3::Triangle3IntersectionResult" = type <{ i32, [6 x %"class.Maths::TVector3"], i8, [3 x i8] }>

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(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 void @_ZN5Maths8TVector3IfEC2Ev(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)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKS0_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(77) %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.Riemann::Plane3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Riemann::Plane3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [3 x i32], align 4
  %18 = alloca [3 x float], align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca %"class.Maths::TVector3", align 4
  %25 = alloca %"class.Maths::TVector3", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.Maths::TVector3", align 4
  %31 = alloca %"class.Maths::TVector3", align 4
  %32 = alloca %"class.Maths::TVector3", align 4
  %33 = alloca %"class.Maths::TVector3", align 4
  %34 = alloca %"class.Maths::TVector3", align 4
  %35 = alloca %"class.Maths::TVector3", align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.Maths::TVector3", align 4
  %40 = alloca %"class.Maths::TVector3", align 4
  %41 = alloca %"class.Maths::TVector3", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr %42, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %47, i32 0, i32 2
  call void @_ZN7Riemann6Plane3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %48)
  %49 = getelementptr inbounds %"class.Riemann::Plane3", ptr %9, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %10)
  %50 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfEeqERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  br i1 %50, label %51, label %67

51:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.Riemann::Triangle3", ptr %56, i32 0, i32 2
  call void @_ZN7Riemann6Plane3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %57)
  %58 = getelementptr inbounds %"class.Riemann::Plane3", ptr %11, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12)
  %59 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfEneERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %58, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  br i1 %59, label %60, label %65

60:                                               ; preds = %51
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKS0_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %61, ptr noundef nonnull align 4 dereferenceable(36) %62, ptr noundef nonnull align 4 dereferenceable(77) %63)
  store i1 %64, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %66

65:                                               ; preds = %51
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %66

66:                                               ; preds = %65, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %309

67:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 0
  %70 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 0
  call void @_ZN7RiemannL25CalculateRelationsToPlaneERKNS_9Triangle3ERKNS_6Plane3EPfPiRiS8_S8_(ptr noundef nonnull align 4 dereferenceable(36) %68, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef %69, ptr noundef %70, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 3
  br i1 %72, label %76, label %73

73:                                               ; preds = %67
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %76, label %77

76:                                               ; preds = %73, %67
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %308

77:                                               ; preds = %73
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 3
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %308

81:                                               ; preds = %77
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %87, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %162

87:                                               ; preds = %84, %81
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %90, label %124

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %118, %90
  %92 = load i32, ptr %19, align 4, !tbaa !9
  %93 = icmp slt i32 %92, 3
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 2, ptr %13, align 4
  br label %121

95:                                               ; preds = %91
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %117

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = add nsw i32 %102, 2
  %104 = srem i32 %103, 3
  store i32 %104, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  %107 = srem i32 %106, 3
  store i32 %107, ptr %21, align 4, !tbaa !9
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %20, align 4, !tbaa !9
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %109, i32 noundef %110)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %112, i32 noundef %113)
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %108, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %111, ptr noundef nonnull align 4 dereferenceable(12) %114, ptr noundef nonnull align 4 dereferenceable(77) %115)
  store i1 %116, ptr %4, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %121

117:                                              ; preds = %95
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !9
  br label %91, !llvm.loop !11

121:                                              ; preds = %101, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %122 = load i32, ptr %13, align 4
  switch i32 %122, label %308 [
    i32 2, label %123
  ]

123:                                              ; preds = %121
  br label %161

124:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %155, %124
  %126 = load i32, ptr %22, align 4, !tbaa !9
  %127 = icmp slt i32 %126, 3
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  store i32 5, ptr %13, align 4
  br label %158

129:                                              ; preds = %125
  %130 = load i32, ptr %22, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %154

135:                                              ; preds = %129
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %137, i32 noundef %138)
  %140 = call noundef zeroext i1 @_ZNK7Riemann9Triangle313ContainsPointERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(36) %136, ptr noundef nonnull align 4 dereferenceable(12) %139)
  br i1 %140, label %141, label %153

141:                                              ; preds = %135
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.Riemann::Triangle3::Triangle3IntersectionResult", ptr %142, i32 0, i32 2
  store i8 1, ptr %143, align 4, !tbaa !13
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.Riemann::Triangle3::Triangle3IntersectionResult", ptr %144, i32 0, i32 0
  store i32 1, ptr %145, align 4, !tbaa !16
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load i32, ptr %22, align 4, !tbaa !9
  %148 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %146, i32 noundef %147)
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.Riemann::Triangle3::Triangle3IntersectionResult", ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds [6 x %"class.Maths::TVector3"], ptr %150, i64 0, i64 0
  %152 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %151, ptr noundef nonnull align 4 dereferenceable(12) %148)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %158

153:                                              ; preds = %135
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %158

154:                                              ; preds = %129
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %22, align 4, !tbaa !9
  br label %125, !llvm.loop !17

158:                                              ; preds = %153, %141, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %159 = load i32, ptr %13, align 4
  switch i32 %159, label %308 [
    i32 5, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %123
  br label %162

162:                                              ; preds = %161, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25)
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %251

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = icmp eq i32 %166, 1
  %168 = zext i1 %167 to i64
  %169 = select i1 %167, i32 1, i32 -1
  store i32 %169, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %242, %165
  %171 = load i32, ptr %27, align 4, !tbaa !9
  %172 = icmp slt i32 %171, 3
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  store i32 8, ptr %13, align 4
  br label %245

174:                                              ; preds = %170
  %175 = load i32, ptr %27, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = load i32, ptr %26, align 4, !tbaa !9
  %180 = icmp eq i32 %178, %179
  br i1 %180, label %181, label %241

181:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %182 = load i32, ptr %27, align 4, !tbaa !9
  %183 = add nsw i32 %182, 2
  %184 = srem i32 %183, 3
  store i32 %184, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %185 = load i32, ptr %27, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  %187 = srem i32 %186, 3
  store i32 %187, ptr %29, align 4, !tbaa !9
  %188 = load i32, ptr %27, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %189
  %191 = load float, ptr %190, align 4, !tbaa !18
  %192 = load i32, ptr %27, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %193
  %195 = load float, ptr %194, align 4, !tbaa !18
  %196 = load i32, ptr %28, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %197
  %199 = load float, ptr %198, align 4, !tbaa !18
  %200 = fsub float %195, %199
  %201 = fdiv float %191, %200
  store float %201, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #5
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load i32, ptr %27, align 4, !tbaa !9
  %204 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %202, i32 noundef %203)
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #5
  %205 = load float, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #5
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = load i32, ptr %28, align 4, !tbaa !9
  %208 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %206, i32 noundef %207)
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %209, i32 noundef %210)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %208, ptr noundef nonnull align 4 dereferenceable(12) %211)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %31, float noundef %205, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %204, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %212 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #5
  %213 = load i32, ptr %27, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !18
  %217 = load i32, ptr %27, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %218
  %220 = load float, ptr %219, align 4, !tbaa !18
  %221 = load i32, ptr %29, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !18
  %225 = fsub float %220, %224
  %226 = fdiv float %216, %225
  store float %226, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #5
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = load i32, ptr %27, align 4, !tbaa !9
  %229 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %227, i32 noundef %228)
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #5
  %230 = load float, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #5
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = load i32, ptr %29, align 4, !tbaa !9
  %233 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %231, i32 noundef %232)
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = load i32, ptr %27, align 4, !tbaa !9
  %236 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %234, i32 noundef %235)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %35, ptr noundef nonnull align 4 dereferenceable(12) %233, ptr noundef nonnull align 4 dereferenceable(12) %236)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %34, float noundef %230, ptr noundef nonnull align 4 dereferenceable(12) %35)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %33, ptr noundef nonnull align 4 dereferenceable(12) %229, ptr noundef nonnull align 4 dereferenceable(12) %34)
  %237 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %33)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #5
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %238, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(77) %239)
  store i1 %240, ptr %4, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %245

241:                                              ; preds = %174
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %27, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %27, align 4, !tbaa !9
  br label %170, !llvm.loop !20

245:                                              ; preds = %181, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  %246 = load i32, ptr %13, align 4
  switch i32 %246, label %248 [
    i32 8, label %247
  ]

247:                                              ; preds = %245
  store i32 0, ptr %13, align 4
  br label %248

248:                                              ; preds = %247, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  %249 = load i32, ptr %13, align 4
  switch i32 %249, label %307 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %301, %251
  %253 = load i32, ptr %36, align 4, !tbaa !9
  %254 = icmp slt i32 %253, 3
  br i1 %254, label %256, label %255

255:                                              ; preds = %252
  store i32 11, ptr %13, align 4
  br label %304

256:                                              ; preds = %252
  %257 = load i32, ptr %36, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = icmp eq i32 %260, 0
  br i1 %261, label %262, label %300

262:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %263 = load i32, ptr %36, align 4, !tbaa !9
  %264 = add nsw i32 %263, 2
  %265 = srem i32 %264, 3
  store i32 %265, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %266 = load i32, ptr %36, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  %268 = srem i32 %267, 3
  store i32 %268, ptr %38, align 4, !tbaa !9
  %269 = load i32, ptr %37, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %270
  %272 = load float, ptr %271, align 4, !tbaa !18
  %273 = load i32, ptr %37, align 4, !tbaa !9
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %274
  %276 = load float, ptr %275, align 4, !tbaa !18
  %277 = load i32, ptr %38, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 %278
  %280 = load float, ptr %279, align 4, !tbaa !18
  %281 = fsub float %276, %280
  %282 = fdiv float %272, %281
  store float %282, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #5
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = load i32, ptr %37, align 4, !tbaa !9
  %285 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %283, i32 noundef %284)
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #5
  %286 = load float, ptr %23, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #5
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = load i32, ptr %38, align 4, !tbaa !9
  %289 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %287, i32 noundef %288)
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = load i32, ptr %37, align 4, !tbaa !9
  %292 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %290, i32 noundef %291)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %41, ptr noundef nonnull align 4 dereferenceable(12) %289, ptr noundef nonnull align 4 dereferenceable(12) %292)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %40, float noundef %286, ptr noundef nonnull align 4 dereferenceable(12) %41)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %39, ptr noundef nonnull align 4 dereferenceable(12) %285, ptr noundef nonnull align 4 dereferenceable(12) %40)
  %293 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #5
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = load i32, ptr %36, align 4, !tbaa !9
  %297 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %295, i32 noundef %296)
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %294, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %297, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(77) %298)
  store i1 %299, ptr %4, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %304

300:                                              ; preds = %256
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %36, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %36, align 4, !tbaa !9
  br label %252, !llvm.loop !21

304:                                              ; preds = %262, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  %305 = load i32, ptr %13, align 4
  switch i32 %305, label %307 [
    i32 11, label %306
  ]

306:                                              ; preds = %304
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %307

307:                                              ; preds = %306, %304, %248
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %308

308:                                              ; preds = %307, %158, %121, %80, %76
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %309

309:                                              ; preds = %308, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %310 = load i1, ptr %4, align 1
  ret i1 %310
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7RiemannL25CalculateRelationsToPlaneERKNS_9Triangle3ERKNS_6Plane3EPfPiRiS8_S8_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(77)) #2

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

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 76}
!14 = !{!"_ZTSN7Riemann9Triangle327Triangle3IntersectionResultE", !10, i64 0, !7, i64 4, !15, i64 76}
!15 = !{!"_ZTSN7Riemann16IntersectionTypeE", !7, i64 0}
!16 = !{!14, !10, i64 0}
!17 = distinct !{!17, !12}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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

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

; Function Attrs: 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(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 void @_ZN5Maths8TVector3IfEC2Ev(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 #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKS0_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(77) %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"class.Riemann::Plane3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Riemann::Plane3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [3 x i32], align 4
  %12 = alloca [3 x float], align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %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 %"class.Maths::TVector3", align 4
  %20 = alloca %"class.Maths::TVector3", align 4
  %21 = alloca %"class.Maths::TVector3", align 4
  %22 = alloca %"class.Maths::TVector3", align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %24 = getelementptr inbounds i8, ptr %0, i64 12
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN7Riemann6Plane3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5)
  %26 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfEeqERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  %.lcssa139.sroa.gep146 = getelementptr inbounds i8, ptr %12, i64 4
  %.lcssa139.sroa.gep147 = getelementptr inbounds i8, ptr %12, i64 8
  br i1 %26, label %27, label %34

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %28 = getelementptr inbounds i8, ptr %1, i64 12
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZN7Riemann6Plane3C2ERKN5Maths8TVector3IfEES5_S5_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7)
  %30 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfEneERKS1_(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) #5
  br i1 %30, label %31, label %33

31:                                               ; preds = %27
  %32 = call noundef zeroext i1 @_ZNK7Riemann9Triangle317IntersectTriangleERKS0_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(77) %2)
  br label %33

33:                                               ; preds = %27, %31
  %.0 = phi i1 [ %32, %31 ], [ false, %27 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %145

34:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #5
  call void @_ZN7RiemannL25CalculateRelationsToPlaneERKNS_9Triangle3ERKNS_6Plane3EPfPiRiS8_S8_(ptr noundef nonnull align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = icmp eq i32 %35, 3
  %37 = load i32, ptr %9, align 4
  %38 = icmp eq i32 %37, 3
  %or.cond = select i1 %36, i1 true, i1 %38
  br i1 %or.cond, label %.thread104, label %39

39:                                               ; preds = %34
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %.thread104, label %42

42:                                               ; preds = %39
  %43 = icmp eq i32 %35, 0
  %44 = icmp eq i32 %37, 0
  %or.cond7 = select i1 %43, i1 true, i1 %44
  br i1 %or.cond7, label %45, label %.thread

45:                                               ; preds = %42
  %46 = icmp eq i32 %40, 2
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %.not.not = icmp eq i32 %47, 0
  br i1 %46, label %.preheader.preheader, label %.preheader123.preheader

.preheader123.preheader:                          ; preds = %45
  br i1 %.not.not, label %60, label %.preheader123.1

.preheader.preheader:                             ; preds = %45
  br i1 %.not.not, label %.preheader.1, label %.thread148

.preheader.1:                                     ; preds = %.preheader.preheader
  %48 = getelementptr inbounds i8, ptr %11, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %49, 0
  br i1 %.not.1, label %.preheader.2, label %.thread148

.preheader.2:                                     ; preds = %.preheader.1
  %50 = getelementptr inbounds i8, ptr %11, i64 8
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %51, 0
  br i1 %.not.2, label %.thread, label %54

.thread148:                                       ; preds = %.preheader.preheader, %.preheader.1
  %.097132.lcssa.wide.ph = phi i32 [ 1, %.preheader.1 ], [ 0, %.preheader.preheader ]
  %.urem118151 = add nsw i32 %.097132.lcssa.wide.ph, -1
  %52 = select i1 %.not.not, i32 %.urem118151, i32 2
  %53 = add nuw nsw i32 %.097132.lcssa.wide.ph, 1
  br label %54

54:                                               ; preds = %.preheader.2, %.thread148
  %55 = phi i32 [ %52, %.thread148 ], [ 1, %.preheader.2 ]
  %56 = phi i32 [ %53, %.thread148 ], [ 0, %.preheader.2 ]
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %55)
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %56)
  %59 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %58, ptr noundef nonnull align 4 dereferenceable(77) %2)
  br label %.thread104

60:                                               ; preds = %.preheader123.2, %.preheader123.1, %.preheader123.preheader
  %.098131.lcssa.wide = phi i32 [ 0, %.preheader123.preheader ], [ 1, %.preheader123.1 ], [ 2, %.preheader123.2 ]
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.098131.lcssa.wide)
  %62 = call noundef zeroext i1 @_ZNK7Riemann9Triangle313ContainsPointERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(12) %61)
  br i1 %62, label %63, label %.thread104

63:                                               ; preds = %60
  %64 = getelementptr inbounds i8, ptr %2, i64 76
  store i8 1, ptr %64, align 4, !tbaa !9
  store i32 1, ptr %2, align 4, !tbaa !12
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.098131.lcssa.wide)
  %66 = getelementptr inbounds i8, ptr %2, i64 4
  %67 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %65)
  br label %.thread104

.preheader123.1:                                  ; preds = %.preheader123.preheader
  %68 = getelementptr inbounds i8, ptr %11, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %60, label %.preheader123.2

.preheader123.2:                                  ; preds = %.preheader123.1
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %60, label %.thread

.thread:                                          ; preds = %.preheader123.2, %.preheader.2, %42
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %14)
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = icmp eq i32 %74, 0
  %.pre = load i32, ptr %11, align 4, !tbaa !5
  br i1 %75, label %76, label %.thread106

76:                                               ; preds = %.thread
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = icmp eq i32 %77, 1
  %79 = select i1 %78, i32 1, i32 -1
  %80 = icmp eq i32 %.pre, %79
  br i1 %80, label %.thread153, label %81

81:                                               ; preds = %76
  %82 = getelementptr inbounds i8, ptr %11, i64 4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = icmp eq i32 %83, %79
  br i1 %84, label %.thread153, label %85

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %11, i64 8
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp eq i32 %87, %79
  br i1 %88, label %91, label %.thread106

.thread153:                                       ; preds = %76, %81
  %.099133.lcssa.ph = phi i32 [ 1, %81 ], [ 0, %76 ]
  %.lcssa139.sroa.phi.ph = phi ptr [ %.lcssa139.sroa.gep146, %81 ], [ %12, %76 ]
  %.urem112157 = add nsw i32 %.099133.lcssa.ph, -1
  %89 = select i1 %80, i32 2, i32 %.urem112157
  %90 = add nuw nsw i32 %.099133.lcssa.ph, 1
  br label %91

91:                                               ; preds = %85, %.thread153
  %92 = phi i32 [ %89, %.thread153 ], [ 1, %85 ]
  %.lcssa139.sroa.phi159 = phi ptr [ %.lcssa139.sroa.phi.ph, %.thread153 ], [ %.lcssa139.sroa.gep147, %85 ]
  %.099133.lcssa158 = phi i32 [ %.099133.lcssa.ph, %.thread153 ], [ 2, %85 ]
  %93 = phi i32 [ %90, %.thread153 ], [ 0, %85 ]
  %94 = load float, ptr %.lcssa139.sroa.phi159, align 4, !tbaa !13
  %95 = zext nneg i32 %92 to i64
  %96 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !13
  %98 = fsub float %94, %97
  %99 = fdiv float %94, %98
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #5
  %100 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.099133.lcssa158)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #5
  %101 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %92)
  %102 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.099133.lcssa158)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) %102)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %16, float noundef %99, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %100, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %103 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  %104 = load float, ptr %.lcssa139.sroa.phi159, align 4, !tbaa !13
  %105 = zext nneg i32 %93 to i64
  %106 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = fsub float %104, %107
  %109 = fdiv float %104, %108
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  %110 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.099133.lcssa158)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #5
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %93)
  %112 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.099133.lcssa158)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %111, ptr noundef nonnull align 4 dereferenceable(12) %112)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %19, float noundef %109, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %110, ptr noundef nonnull align 4 dereferenceable(12) %19)
  %113 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  %114 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(77) %2)
  br label %144

.thread106:                                       ; preds = %85, %.thread
  %115 = icmp eq i32 %.pre, 0
  br i1 %115, label %.thread161, label %135

.thread161:                                       ; preds = %.thread106, %135
  %.096134.lcssa.ph = phi i32 [ 1, %135 ], [ 0, %.thread106 ]
  %.urem164 = add nsw i32 %.096134.lcssa.ph, -1
  %116 = select i1 %115, i32 2, i32 %.urem164
  %117 = add nuw nsw i32 %.096134.lcssa.ph, 1
  br label %118

118:                                              ; preds = %139, %.thread161
  %119 = phi i32 [ %116, %.thread161 ], [ 1, %139 ]
  %.096134.lcssa165 = phi i32 [ %.096134.lcssa.ph, %.thread161 ], [ 2, %139 ]
  %120 = phi i32 [ %117, %.thread161 ], [ 0, %139 ]
  %121 = zext nneg i32 %119 to i64
  %122 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !13
  %124 = zext nneg i32 %120 to i64
  %125 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !13
  %127 = fsub float %123, %126
  %128 = fdiv float %123, %127
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #5
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %119)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #5
  %130 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %120)
  %131 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %119)
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) %131)
  call void @_ZN5MathsmlIfEENS_8TVector3IT_EES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %22, float noundef %128, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %129, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %132 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #5
  %133 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK7Riemann9Triangle3ixEi(ptr noundef nonnull align 4 dereferenceable(36) %1, i32 noundef %.096134.lcssa165)
  %134 = call noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36) %0, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(12) %133, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(77) %2)
  br label %.loopexit

135:                                              ; preds = %.thread106
  %136 = getelementptr inbounds i8, ptr %11, i64 4
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %.thread161, label %139

139:                                              ; preds = %135
  %140 = getelementptr inbounds i8, ptr %11, i64 8
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %118, label %.loopexit

.loopexit:                                        ; preds = %139, %118
  %143 = phi i1 [ true, %118 ], [ false, %139 ]
  %.6 = phi i1 [ %134, %118 ], [ undef, %139 ]
  %spec.select = and i1 %143, %.6
  br label %144

144:                                              ; preds = %91, %.loopexit
  %.7 = phi i1 [ %114, %91 ], [ %spec.select, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  br label %.thread104

.thread104:                                       ; preds = %63, %60, %54, %39, %34, %144
  %.8 = phi i1 [ %.7, %144 ], [ %59, %54 ], [ false, %34 ], [ false, %39 ], [ false, %60 ], [ true, %63 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %145

145:                                              ; preds = %.thread104, %33
  %.9 = phi i1 [ %.0, %33 ], [ %.8, %.thread104 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  ret i1 %.9
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE4ZeroEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7RiemannL25CalculateRelationsToPlaneERKNS_9Triangle3ERKNS_6Plane3EPfPiRiS8_S8_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL25IntersectSegment_CoplanarERKNS_9Triangle3ERKNS_6Plane3ERKN5Maths8TVector3IfEESA_RNS0_27Triangle3IntersectionResultE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(77)) local_unnamed_addr #2

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

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

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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 76}
!10 = !{!"_ZTSN7Riemann9Triangle327Triangle3IntersectionResultE", !6, i64 0, !7, i64 4, !11, i64 76}
!11 = !{!"_ZTSN7Riemann16IntersectionTypeE", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}


; Effective O3 passes: ADCEPass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass