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

; 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::HeightField3" = type { i32, i32, %"class.Maths::TAABB3", float, float, float, float, float, %"class.std::vector", ptr }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::HeightField3::CellInfo, std::allocator<Riemann::HeightField3::CellInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::HeightField3::CellInfo, std::allocator<Riemann::HeightField3::CellInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::HeightField3::CellInfo, std::allocator<Riemann::HeightField3::CellInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::HeightField3::CellInfo, std::allocator<Riemann::HeightField3::CellInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::HeightFieldHitOption" = type { i8, float }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann20HeightFieldHitResult12AddTestCountEi(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann12HeightField313IntersectRayYERKN5Maths8TVector3IfEES5_RKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann12HeightField312IntersectRayERKN5Maths8TVector3IfEES5_RKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef %4) #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, 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 i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.Maths::TVector3", ptr %37, i32 0, i32 1
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %41 = getelementptr inbounds %"class.Maths::TAABB3", ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %"class.Maths::TVector3", ptr %41, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = fcmp ogt float %39, %43
  br i1 %44, label %45, label %51

45:                                               ; preds = %5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.Maths::TVector3", ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = fcmp oge float %48, 0.000000e+00
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  store i1 false, ptr %6, align 1
  br label %430

51:                                               ; preds = %45, %5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.Maths::TVector3", ptr %52, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %56 = getelementptr inbounds %"class.Maths::TAABB3", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"class.Maths::TVector3", ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !20
  %59 = fcmp olt float %54, %58
  br i1 %59, label %60, label %66

60:                                               ; preds = %51
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.Maths::TVector3", ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fcmp ole float %63, 0.000000e+00
  br i1 %64, label %65, label %66

65:                                               ; preds = %60
  store i1 false, ptr %6, align 1
  br label %430

66:                                               ; preds = %60, %51
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @_ZN5Maths8TVector3IfE5UnitYEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12)
  %69 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE10ParallelToERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %68, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  br i1 %69, label %70, label %76

70:                                               ; preds = %67
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZNK7Riemann12HeightField313IntersectRayYERKN5Maths8TVector3IfEES5_RKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %71, ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef %74)
  store i1 %75, ptr %6, align 1
  br label %430

76:                                               ; preds = %67
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN7Riemann20HeightFieldHitResult12AddTestCountEi(ptr noundef nonnull align 4 dereferenceable(24) %77, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %81 = getelementptr inbounds %"class.Maths::TAABB3", ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %83 = getelementptr inbounds %"class.Maths::TAABB3", ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Riemann::HeightFieldHitOption", ptr %84, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !21
  %87 = call noundef zeroext i1 @_ZN4Ray317RayIntersectAABB2ERKN5Maths8TVector3IfEES4_S4_S4_ffPfS5_(ptr noundef nonnull align 4 dereferenceable(12) %78, ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %81, ptr noundef nonnull align 4 dereferenceable(12) %83, float noundef 0x3F1A36E2E0000000, float noundef %86, ptr noundef %13, ptr noundef %14)
  br i1 %87, label %89, label %88

88:                                               ; preds = %76
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %429

89:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load float, ptr %13, align 4, !tbaa !24
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %91, float noundef %92)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %90, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #5
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load float, ptr %14, align 4, !tbaa !24
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %94, float noundef %95)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %96 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %97 = load float, ptr %96, align 4, !tbaa !25
  %98 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %99 = getelementptr inbounds %"class.Maths::TAABB3", ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %"class.Maths::TVector3", ptr %99, i32 0, i32 0
  %101 = load float, ptr %100, align 8, !tbaa !26
  %102 = fsub float %97, %101
  %103 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 5
  %104 = load float, ptr %103, align 8, !tbaa !27
  %105 = fmul float %102, %104
  %106 = fptosi float %105 to i32
  store i32 %106, ptr %20, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %107 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %108 = load float, ptr %107, align 4, !tbaa !29
  %109 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %110 = getelementptr inbounds %"class.Maths::TAABB3", ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %"class.Maths::TVector3", ptr %110, i32 0, i32 2
  %112 = load float, ptr %111, align 8, !tbaa !30
  %113 = fsub float %108, %112
  %114 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 6
  %115 = load float, ptr %114, align 4, !tbaa !31
  %116 = fmul float %113, %115
  %117 = fptosi float %116 to i32
  store i32 %117, ptr %21, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %118 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !25
  %120 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %121 = getelementptr inbounds %"class.Maths::TAABB3", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %"class.Maths::TVector3", ptr %121, i32 0, i32 0
  %123 = load float, ptr %122, align 8, !tbaa !26
  %124 = fsub float %119, %123
  %125 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 5
  %126 = load float, ptr %125, align 8, !tbaa !27
  %127 = fmul float %124, %126
  %128 = fptosi float %127 to i32
  store i32 %128, ptr %22, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %129 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %130 = load float, ptr %129, align 4, !tbaa !29
  %131 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %132 = getelementptr inbounds %"class.Maths::TAABB3", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %"class.Maths::TVector3", ptr %132, i32 0, i32 2
  %134 = load float, ptr %133, align 8, !tbaa !30
  %135 = fsub float %130, %134
  %136 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 6
  %137 = load float, ptr %136, align 4, !tbaa !31
  %138 = fmul float %135, %137
  %139 = fptosi float %138 to i32
  store i32 %139, ptr %23, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.Maths::TVector3", ptr %140, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !25
  %143 = fcmp ogt float %142, 0.000000e+00
  br i1 %143, label %144, label %145

144:                                              ; preds = %89
  br label %152

145:                                              ; preds = %89
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %"class.Maths::TVector3", ptr %146, i32 0, i32 0
  %148 = load float, ptr %147, align 4, !tbaa !25
  %149 = fcmp olt float %148, 0.000000e+00
  %150 = zext i1 %149 to i64
  %151 = select i1 %149, i32 -1, i32 0
  br label %152

152:                                              ; preds = %145, %144
  %153 = phi i32 [ 1, %144 ], [ %151, %145 ]
  store i32 %153, ptr %24, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.Maths::TVector3", ptr %154, i32 0, i32 2
  %156 = load float, ptr %155, align 4, !tbaa !29
  %157 = fcmp ogt float %156, 0.000000e+00
  br i1 %157, label %158, label %159

158:                                              ; preds = %152
  br label %166

159:                                              ; preds = %152
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %"class.Maths::TVector3", ptr %160, i32 0, i32 2
  %162 = load float, ptr %161, align 4, !tbaa !29
  %163 = fcmp olt float %162, 0.000000e+00
  %164 = zext i1 %163 to i64
  %165 = select i1 %163, i32 -1, i32 0
  br label %166

166:                                              ; preds = %159, %158
  %167 = phi i32 [ 1, %158 ], [ %165, %159 ]
  store i32 %167, ptr %25, align 4, !tbaa !28
  %168 = load i32, ptr %20, align 4, !tbaa !28
  %169 = icmp slt i32 %168, 0
  br i1 %169, label %185, label %170

170:                                              ; preds = %166
  %171 = load i32, ptr %20, align 4, !tbaa !28
  %172 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 0
  %173 = load i32, ptr %172, align 8, !tbaa !32
  %174 = sub nsw i32 %173, 1
  %175 = icmp sge i32 %171, %174
  br i1 %175, label %185, label %176

176:                                              ; preds = %170
  %177 = load i32, ptr %21, align 4, !tbaa !28
  %178 = icmp slt i32 %177, 0
  br i1 %178, label %185, label %179

179:                                              ; preds = %176
  %180 = load i32, ptr %21, align 4, !tbaa !28
  %181 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !33
  %183 = sub nsw i32 %182, 1
  %184 = icmp sge i32 %180, %183
  br i1 %184, label %185, label %186

185:                                              ; preds = %179, %176, %170, %166
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %428

186:                                              ; preds = %179
  %187 = load i32, ptr %22, align 4, !tbaa !28
  %188 = icmp slt i32 %187, 0
  br i1 %188, label %204, label %189

189:                                              ; preds = %186
  %190 = load i32, ptr %22, align 4, !tbaa !28
  %191 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !32
  %193 = sub nsw i32 %192, 1
  %194 = icmp sge i32 %190, %193
  br i1 %194, label %204, label %195

195:                                              ; preds = %189
  %196 = load i32, ptr %23, align 4, !tbaa !28
  %197 = icmp slt i32 %196, 0
  br i1 %197, label %204, label %198

198:                                              ; preds = %195
  %199 = load i32, ptr %23, align 4, !tbaa !28
  %200 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 1
  %201 = load i32, ptr %200, align 4, !tbaa !33
  %202 = sub nsw i32 %201, 1
  %203 = icmp sge i32 %199, %202
  br i1 %203, label %204, label %205

204:                                              ; preds = %198, %195, %189, %186
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %428

205:                                              ; preds = %198
  %206 = load i32, ptr %20, align 4, !tbaa !28
  %207 = load i32, ptr %22, align 4, !tbaa !28
  %208 = icmp eq i32 %206, %207
  br i1 %208, label %209, label %221

209:                                              ; preds = %205
  %210 = load i32, ptr %21, align 4, !tbaa !28
  %211 = load i32, ptr %23, align 4, !tbaa !28
  %212 = icmp eq i32 %210, %211
  br i1 %212, label %213, label %221

213:                                              ; preds = %209
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = load i32, ptr %20, align 4, !tbaa !28
  %217 = load i32, ptr %21, align 4, !tbaa !28
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %214, ptr noundef nonnull align 4 dereferenceable(12) %215, i32 noundef %216, i32 noundef %217, ptr noundef nonnull align 4 dereferenceable(8) %218, ptr noundef %219)
  store i1 %220, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %428

221:                                              ; preds = %209, %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %222 = load i32, ptr %20, align 4, !tbaa !28
  store i32 %222, ptr %26, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %223 = load i32, ptr %21, align 4, !tbaa !28
  store i32 %223, ptr %27, align 4, !tbaa !28
  %224 = load i32, ptr %20, align 4, !tbaa !28
  %225 = load i32, ptr %22, align 4, !tbaa !28
  %226 = icmp ne i32 %224, %225
  br i1 %226, label %227, label %376

227:                                              ; preds = %221
  %228 = load i32, ptr %21, align 4, !tbaa !28
  %229 = load i32, ptr %23, align 4, !tbaa !28
  %230 = icmp ne i32 %228, %229
  br i1 %230, label %231, label %376

231:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %232 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %233 = getelementptr inbounds %"class.Maths::TAABB3", ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds %"class.Maths::TVector3", ptr %233, i32 0, i32 0
  %235 = load float, ptr %234, align 8, !tbaa !26
  %236 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 3
  %237 = load float, ptr %236, align 8, !tbaa !34
  %238 = load i32, ptr %20, align 4, !tbaa !28
  %239 = sitofp i32 %238 to float
  %240 = call float @llvm.fmuladd.f32(float %237, float %239, float %235)
  store float %240, ptr %28, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %241 = load float, ptr %28, align 4, !tbaa !24
  %242 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 3
  %243 = load float, ptr %242, align 8, !tbaa !34
  %244 = fadd float %241, %243
  store float %244, ptr %29, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %245 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 2
  %246 = getelementptr inbounds %"class.Maths::TAABB3", ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds %"class.Maths::TVector3", ptr %246, i32 0, i32 2
  %248 = load float, ptr %247, align 8, !tbaa !30
  %249 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 4
  %250 = load float, ptr %249, align 4, !tbaa !35
  %251 = load i32, ptr %21, align 4, !tbaa !28
  %252 = sitofp i32 %251 to float
  %253 = call float @llvm.fmuladd.f32(float %250, float %252, float %248)
  store float %253, ptr %30, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %254 = load float, ptr %30, align 4, !tbaa !24
  %255 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 4
  %256 = load float, ptr %255, align 4, !tbaa !35
  %257 = fadd float %254, %256
  store float %257, ptr %31, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %258 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 3
  %259 = load float, ptr %258, align 8, !tbaa !34
  %260 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %261 = load float, ptr %260, align 4, !tbaa !25
  %262 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %263 = load float, ptr %262, align 4, !tbaa !25
  %264 = fsub float %261, %263
  %265 = call float @llvm.fabs.f32(float %264)
  %266 = fdiv float %259, %265
  store float %266, ptr %32, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %267 = getelementptr inbounds %"class.Riemann::HeightField3", ptr %36, i32 0, i32 4
  %268 = load float, ptr %267, align 4, !tbaa !35
  %269 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %270 = load float, ptr %269, align 4, !tbaa !29
  %271 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %272 = load float, ptr %271, align 4, !tbaa !29
  %273 = fsub float %270, %272
  %274 = call float @llvm.fabs.f32(float %273)
  %275 = fdiv float %268, %274
  store float %275, ptr %33, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %276 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %277 = load float, ptr %276, align 4, !tbaa !25
  %278 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %279 = load float, ptr %278, align 4, !tbaa !25
  %280 = fcmp ogt float %277, %279
  br i1 %280, label %281, label %286

281:                                              ; preds = %231
  %282 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %283 = load float, ptr %282, align 4, !tbaa !25
  %284 = load float, ptr %28, align 4, !tbaa !24
  %285 = fsub float %283, %284
  br label %291

286:                                              ; preds = %231
  %287 = load float, ptr %29, align 4, !tbaa !24
  %288 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %289 = load float, ptr %288, align 4, !tbaa !25
  %290 = fsub float %287, %289
  br label %291

291:                                              ; preds = %286, %281
  %292 = phi float [ %285, %281 ], [ %290, %286 ]
  %293 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 0
  %294 = load float, ptr %293, align 4, !tbaa !25
  %295 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 0
  %296 = load float, ptr %295, align 4, !tbaa !25
  %297 = fsub float %294, %296
  %298 = call float @llvm.fabs.f32(float %297)
  %299 = fdiv float %292, %298
  store float %299, ptr %34, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %300 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %301 = load float, ptr %300, align 4, !tbaa !29
  %302 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %303 = load float, ptr %302, align 4, !tbaa !29
  %304 = fcmp ogt float %301, %303
  br i1 %304, label %305, label %310

305:                                              ; preds = %291
  %306 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %307 = load float, ptr %306, align 4, !tbaa !29
  %308 = load float, ptr %30, align 4, !tbaa !24
  %309 = fsub float %307, %308
  br label %315

310:                                              ; preds = %291
  %311 = load float, ptr %31, align 4, !tbaa !24
  %312 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %313 = load float, ptr %312, align 4, !tbaa !29
  %314 = fsub float %311, %313
  br label %315

315:                                              ; preds = %310, %305
  %316 = phi float [ %309, %305 ], [ %314, %310 ]
  %317 = getelementptr inbounds %"class.Maths::TVector3", ptr %18, i32 0, i32 2
  %318 = load float, ptr %317, align 4, !tbaa !29
  %319 = getelementptr inbounds %"class.Maths::TVector3", ptr %16, i32 0, i32 2
  %320 = load float, ptr %319, align 4, !tbaa !29
  %321 = fsub float %318, %320
  %322 = call float @llvm.fabs.f32(float %321)
  %323 = fdiv float %316, %322
  store float %323, ptr %35, align 4, !tbaa !24
  br label %324

324:                                              ; preds = %371, %315
  %325 = load i32, ptr %26, align 4, !tbaa !28
  %326 = load i32, ptr %22, align 4, !tbaa !28
  %327 = icmp ne i32 %325, %326
  br i1 %327, label %332, label %328

328:                                              ; preds = %324
  %329 = load i32, ptr %27, align 4, !tbaa !28
  %330 = load i32, ptr %23, align 4, !tbaa !28
  %331 = icmp ne i32 %329, %330
  br label %332

332:                                              ; preds = %328, %324
  %333 = phi i1 [ true, %324 ], [ %331, %328 ]
  br i1 %333, label %334, label %372

334:                                              ; preds = %332
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = load i32, ptr %26, align 4, !tbaa !28
  %338 = load i32, ptr %27, align 4, !tbaa !28
  %339 = load ptr, ptr %10, align 8, !tbaa !5
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  %341 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %335, ptr noundef nonnull align 4 dereferenceable(12) %336, i32 noundef %337, i32 noundef %338, ptr noundef nonnull align 4 dereferenceable(8) %339, ptr noundef %340)
  br i1 %341, label %342, label %343

342:                                              ; preds = %334
  store i1 true, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %373

343:                                              ; preds = %334
  %344 = load float, ptr %34, align 4, !tbaa !24
  %345 = load float, ptr %35, align 4, !tbaa !24
  %346 = fcmp ole float %344, %345
  br i1 %346, label %347, label %359

347:                                              ; preds = %343
  %348 = load i32, ptr %26, align 4, !tbaa !28
  %349 = load i32, ptr %22, align 4, !tbaa !28
  %350 = icmp eq i32 %348, %349
  br i1 %350, label %351, label %352

351:                                              ; preds = %347
  br label %372

352:                                              ; preds = %347
  %353 = load float, ptr %32, align 4, !tbaa !24
  %354 = load float, ptr %34, align 4, !tbaa !24
  %355 = fadd float %354, %353
  store float %355, ptr %34, align 4, !tbaa !24
  %356 = load i32, ptr %24, align 4, !tbaa !28
  %357 = load i32, ptr %26, align 4, !tbaa !28
  %358 = add nsw i32 %357, %356
  store i32 %358, ptr %26, align 4, !tbaa !28
  br label %371

359:                                              ; preds = %343
  %360 = load i32, ptr %27, align 4, !tbaa !28
  %361 = load i32, ptr %23, align 4, !tbaa !28
  %362 = icmp eq i32 %360, %361
  br i1 %362, label %363, label %364

363:                                              ; preds = %359
  br label %372

364:                                              ; preds = %359
  %365 = load float, ptr %33, align 4, !tbaa !24
  %366 = load float, ptr %35, align 4, !tbaa !24
  %367 = fadd float %366, %365
  store float %367, ptr %35, align 4, !tbaa !24
  %368 = load i32, ptr %25, align 4, !tbaa !28
  %369 = load i32, ptr %27, align 4, !tbaa !28
  %370 = add nsw i32 %369, %368
  store i32 %370, ptr %27, align 4, !tbaa !28
  br label %371

371:                                              ; preds = %364, %352
  br label %324, !llvm.loop !36

372:                                              ; preds = %363, %351, %332
  store i32 0, ptr %15, align 4
  br label %373

373:                                              ; preds = %372, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  %374 = load i32, ptr %15, align 4
  switch i32 %374, label %427 [
    i32 0, label %375
  ]

375:                                              ; preds = %373
  br label %419

376:                                              ; preds = %227, %221
  %377 = load i32, ptr %20, align 4, !tbaa !28
  %378 = load i32, ptr %22, align 4, !tbaa !28
  %379 = icmp eq i32 %377, %378
  br i1 %379, label %380, label %399

380:                                              ; preds = %376
  br label %381

381:                                              ; preds = %394, %380
  %382 = load i32, ptr %27, align 4, !tbaa !28
  %383 = load i32, ptr %23, align 4, !tbaa !28
  %384 = icmp ne i32 %382, %383
  br i1 %384, label %385, label %398

385:                                              ; preds = %381
  %386 = load ptr, ptr %8, align 8, !tbaa !5
  %387 = load ptr, ptr %9, align 8, !tbaa !5
  %388 = load i32, ptr %26, align 4, !tbaa !28
  %389 = load i32, ptr %27, align 4, !tbaa !28
  %390 = load ptr, ptr %10, align 8, !tbaa !5
  %391 = load ptr, ptr %11, align 8, !tbaa !5
  %392 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %386, ptr noundef nonnull align 4 dereferenceable(12) %387, i32 noundef %388, i32 noundef %389, ptr noundef nonnull align 4 dereferenceable(8) %390, ptr noundef %391)
  br i1 %392, label %393, label %394

393:                                              ; preds = %385
  store i1 true, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %427

394:                                              ; preds = %385
  %395 = load i32, ptr %25, align 4, !tbaa !28
  %396 = load i32, ptr %27, align 4, !tbaa !28
  %397 = add nsw i32 %396, %395
  store i32 %397, ptr %27, align 4, !tbaa !28
  br label %381, !llvm.loop !38

398:                                              ; preds = %381
  br label %418

399:                                              ; preds = %376
  br label %400

400:                                              ; preds = %413, %399
  %401 = load i32, ptr %26, align 4, !tbaa !28
  %402 = load i32, ptr %22, align 4, !tbaa !28
  %403 = icmp ne i32 %401, %402
  br i1 %403, label %404, label %417

404:                                              ; preds = %400
  %405 = load ptr, ptr %8, align 8, !tbaa !5
  %406 = load ptr, ptr %9, align 8, !tbaa !5
  %407 = load i32, ptr %26, align 4, !tbaa !28
  %408 = load i32, ptr %27, align 4, !tbaa !28
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  %410 = load ptr, ptr %11, align 8, !tbaa !5
  %411 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %405, ptr noundef nonnull align 4 dereferenceable(12) %406, i32 noundef %407, i32 noundef %408, ptr noundef nonnull align 4 dereferenceable(8) %409, ptr noundef %410)
  br i1 %411, label %412, label %413

412:                                              ; preds = %404
  store i1 true, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %427

413:                                              ; preds = %404
  %414 = load i32, ptr %24, align 4, !tbaa !28
  %415 = load i32, ptr %26, align 4, !tbaa !28
  %416 = add nsw i32 %415, %414
  store i32 %416, ptr %26, align 4, !tbaa !28
  br label %400, !llvm.loop !39

417:                                              ; preds = %400
  br label %418

418:                                              ; preds = %417, %398
  br label %419

419:                                              ; preds = %418, %375
  %420 = load ptr, ptr %8, align 8, !tbaa !5
  %421 = load ptr, ptr %9, align 8, !tbaa !5
  %422 = load i32, ptr %22, align 4, !tbaa !28
  %423 = load i32, ptr %23, align 4, !tbaa !28
  %424 = load ptr, ptr %10, align 8, !tbaa !5
  %425 = load ptr, ptr %11, align 8, !tbaa !5
  %426 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %36, ptr noundef nonnull align 4 dereferenceable(12) %420, ptr noundef nonnull align 4 dereferenceable(12) %421, i32 noundef %422, i32 noundef %423, ptr noundef nonnull align 4 dereferenceable(8) %424, ptr noundef %425)
  store i1 %426, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %427

427:                                              ; preds = %419, %412, %393, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %428

428:                                              ; preds = %427, %213, %204, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %429

429:                                              ; preds = %428, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %430

430:                                              ; preds = %429, %70, %65, %50
  %431 = load i1, ptr %6, align 1
  ret i1 %431
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE5UnitYEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) #0 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)) #4 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSN5Maths8TVector3IfEE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 24}
!13 = !{!"_ZTSN7Riemann12HeightField3E", !14, i64 0, !14, i64 4, !15, i64 8, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !16, i64 56, !6, i64 80}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN5Maths6TAABB3IfEE", !10, i64 0, !10, i64 12}
!16 = !{!"_ZTSSt6vectorIN7Riemann12HeightField38CellInfoESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!13, !11, i64 12}
!21 = !{!22, !11, i64 4}
!22 = !{!"_ZTSN7Riemann20HeightFieldHitOptionE", !23, i64 0, !11, i64 4}
!23 = !{!"bool", !7, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 0}
!26 = !{!13, !11, i64 8}
!27 = !{!13, !11, i64 40}
!28 = !{!14, !14, i64 0}
!29 = !{!10, !11, i64 8}
!30 = !{!13, !11, i64 16}
!31 = !{!13, !11, i64 44}
!32 = !{!13, !14, i64 0}
!33 = !{!13, !14, i64 4}
!34 = !{!13, !11, i64 32}
!35 = !{!13, !11, i64 36}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}


; 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 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann20HeightFieldHitResult12AddTestCountEi(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann12HeightField312IntersectRayERKN5Maths8TVector3IfEES5_RKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = getelementptr inbounds i8, ptr %1, i64 4
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load float, ptr %17, align 8, !tbaa !10
  %19 = fcmp ule float %14, %18
  %20 = getelementptr inbounds i8, ptr %2, i64 4
  %21 = load float, ptr %20, align 4
  %22 = fcmp ult float %21, 0.000000e+00
  %or.cond140 = select i1 %19, i1 true, i1 %22
  br i1 %or.cond140, label %23, label %155

23:                                               ; preds = %5
  %24 = getelementptr inbounds i8, ptr %0, i64 12
  %25 = load float, ptr %24, align 4, !tbaa !19
  %26 = fcmp uge float %14, %25
  %27 = fcmp ugt float %21, 0.000000e+00
  %or.cond143 = select i1 %26, i1 true, i1 %27
  br i1 %or.cond143, label %28, label %155

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @_ZN5Maths8TVector3IfE5UnitYEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6)
  %29 = call noundef zeroext i1 @_ZNK5Maths8TVector3IfE10ParallelToERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br i1 %29, label %30, label %32

30:                                               ; preds = %28
  %31 = call noundef zeroext i1 @_ZNK7Riemann12HeightField313IntersectRayYERKN5Maths8TVector3IfEES5_RKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef %4)
  br label %155

32:                                               ; preds = %28
  call void @_ZN7Riemann20HeightFieldHitResult12AddTestCountEi(ptr noundef nonnull align 4 dereferenceable(24) %4, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %33 = getelementptr inbounds i8, ptr %3, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !20
  %35 = call noundef zeroext i1 @_ZN4Ray317RayIntersectAABB2ERKN5Maths8TVector3IfEES4_S4_S4_ffPfS5_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 0x3F1A36E2E0000000, float noundef %34, ptr noundef nonnull %7, ptr noundef nonnull %8)
  br i1 %35, label %36, label %154

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  %37 = load float, ptr %7, align 4, !tbaa !23
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef %37)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, 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
  %38 = load float, ptr %8, align 4, !tbaa !23
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef %38)
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  %39 = load float, ptr %9, align 4, !tbaa !24
  %40 = load float, ptr %15, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = getelementptr inbounds i8, ptr %9, i64 8
  %43 = load float, ptr %42, align 4, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load float, ptr %44, align 8, !tbaa !27
  %46 = insertelement <2 x float> poison, float %43, i64 0
  %47 = insertelement <2 x float> %46, float %39, i64 1
  %48 = insertelement <2 x float> poison, float %45, i64 0
  %49 = insertelement <2 x float> %48, float %40, i64 1
  %50 = fsub <2 x float> %47, %49
  %51 = load <2 x float>, ptr %41, align 8, !tbaa !23
  %52 = shufflevector <2 x float> %51, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %53 = fmul <2 x float> %50, %52
  %54 = fptosi <2 x float> %53 to <2 x i32>
  %55 = load float, ptr %11, align 4, !tbaa !24
  %56 = fsub float %55, %40
  %57 = extractelement <2 x float> %51, i64 0
  %58 = fmul float %57, %56
  %59 = fptosi float %58 to i32
  %60 = getelementptr inbounds i8, ptr %11, i64 8
  %61 = load float, ptr %60, align 4, !tbaa !26
  %62 = fsub float %61, %45
  %63 = extractelement <2 x float> %51, i64 1
  %64 = fmul float %63, %62
  %65 = fptosi float %64 to i32
  %66 = load float, ptr %2, align 4, !tbaa !24
  %67 = fcmp ogt float %66, 0.000000e+00
  %68 = fcmp olt float %66, 0.000000e+00
  %69 = sext i1 %68 to i32
  %70 = select i1 %67, i32 1, i32 %69
  %71 = getelementptr inbounds i8, ptr %2, i64 8
  %72 = load float, ptr %71, align 4, !tbaa !26
  %73 = fcmp ogt float %72, 0.000000e+00
  %74 = fcmp olt float %72, 0.000000e+00
  %75 = sext i1 %74 to i32
  %76 = select i1 %73, i32 1, i32 %75
  %77 = extractelement <2 x i32> %54, i64 1
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %.critedge, label %79

79:                                               ; preds = %36
  %80 = load i32, ptr %0, align 8, !tbaa !28
  %81 = add nsw i32 %80, -1
  %82 = icmp sle i32 %81, %77
  %83 = extractelement <2 x i32> %54, i64 0
  %84 = icmp slt i32 %83, 0
  %or.cond = select i1 %82, i1 true, i1 %84
  br i1 %or.cond, label %.critedge, label %85

85:                                               ; preds = %79
  %86 = getelementptr inbounds i8, ptr %0, i64 4
  %87 = load i32, ptr %86, align 4, !tbaa !29
  %88 = add nsw i32 %87, -1
  %.not = icmp sle i32 %88, %83
  %89 = icmp slt i32 %59, 0
  %or.cond147 = select i1 %.not, i1 true, i1 %89
  br i1 %or.cond147, label %.critedge, label %90

90:                                               ; preds = %85
  %91 = icmp ugt i32 %81, %59
  %92 = icmp sgt i32 %65, -1
  %.not133 = icmp sgt i32 %88, %65
  %93 = and i1 %92, %.not133
  %or.cond144 = select i1 %91, i1 %93, i1 false
  br i1 %or.cond144, label %94, label %.critedge

94:                                               ; preds = %90
  %95 = icmp eq i32 %77, %59
  %96 = icmp eq i32 %83, %65
  %or.cond145 = select i1 %95, i1 %96, i1 false
  br i1 %or.cond145, label %97, label %99

97:                                               ; preds = %94
  %98 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %77, i32 noundef %83, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull %4)
  br label %.critedge

99:                                               ; preds = %94
  %or.cond146 = select i1 %95, i1 true, i1 %96
  br i1 %or.cond146, label %146, label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds i8, ptr %0, i64 32
  %102 = uitofp <2 x i32> %54 to <2 x float>
  %103 = insertelement <2 x float> poison, float %61, i64 0
  %104 = insertelement <2 x float> %103, float %55, i64 1
  %105 = fsub <2 x float> %104, %47
  %106 = fcmp ogt <2 x float> %47, %104
  %107 = load <2 x float>, ptr %101, align 8, !tbaa !23
  %108 = shufflevector <2 x float> %107, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %109 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %108, <2 x float> %102, <2 x float> %49)
  %110 = call <2 x float> @llvm.fabs.v2f32(<2 x float> %105)
  %111 = extractelement <2 x float> %107, i64 0
  %112 = extractelement <2 x float> %110, i64 1
  %113 = fdiv float %111, %112
  %114 = extractelement <2 x float> %107, i64 1
  %115 = extractelement <2 x float> %110, i64 0
  %116 = fdiv float %114, %115
  %117 = fadd <2 x float> %108, %109
  %118 = fsub <2 x float> %47, %109
  %119 = fsub <2 x float> %117, %47
  %120 = select <2 x i1> %106, <2 x float> %118, <2 x float> %119
  %121 = fdiv <2 x float> %120, %110
  br label %122

122:                                              ; preds = %100, %141
  %.0115157 = phi i32 [ %77, %100 ], [ %.1116, %141 ]
  %.0118156 = phi i32 [ %83, %100 ], [ %.1119, %141 ]
  %123 = phi <2 x float> [ %121, %100 ], [ %142, %141 ]
  %124 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %.0115157, i32 noundef %.0118156, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull %4)
  br i1 %124, label %.critedge, label %125

125:                                              ; preds = %122
  %126 = extractelement <2 x float> %123, i64 0
  %127 = extractelement <2 x float> %123, i64 1
  %128 = fcmp ugt float %127, %126
  br i1 %128, label %135, label %129

129:                                              ; preds = %125
  %130 = icmp eq i32 %.0115157, %59
  br i1 %130, label %.loopexit, label %131

131:                                              ; preds = %129
  %132 = fadd float %113, %127
  %133 = add nsw i32 %.0115157, %70
  %134 = insertelement <2 x float> %123, float %132, i64 1
  br label %141

135:                                              ; preds = %125
  %136 = icmp eq i32 %.0118156, %65
  br i1 %136, label %.loopexit, label %137

137:                                              ; preds = %135
  %138 = fadd float %116, %126
  %139 = add nsw i32 %.0118156, %76
  %140 = insertelement <2 x float> %123, float %138, i64 0
  br label %141

141:                                              ; preds = %137, %131
  %.1119 = phi i32 [ %.0118156, %131 ], [ %139, %137 ]
  %.1116 = phi i32 [ %133, %131 ], [ %.0115157, %137 ]
  %142 = phi <2 x float> [ %134, %131 ], [ %140, %137 ]
  %143 = icmp ne i32 %.1116, %59
  %144 = icmp ne i32 %.1119, %65
  %145 = select i1 %143, i1 true, i1 %144
  br i1 %145, label %122, label %.loopexit, !llvm.loop !30

146:                                              ; preds = %99
  br i1 %95, label %.preheader, label %.preheader151

.preheader:                                       ; preds = %146
  br i1 %96, label %.loopexit, label %.lr.ph

147:                                              ; preds = %.lr.ph
  %148 = add nsw i32 %.2120162, %76
  %.not137 = icmp eq i32 %148, %65
  br i1 %.not137, label %.loopexit, label %.lr.ph, !llvm.loop !32

.lr.ph:                                           ; preds = %.preheader, %147
  %.2120162 = phi i32 [ %148, %147 ], [ %83, %.preheader ]
  %149 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %77, i32 noundef %.2120162, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull %4)
  br i1 %149, label %.critedge, label %147

150:                                              ; preds = %.preheader151
  %151 = add nsw i32 %.2117160, %70
  %.not136 = icmp eq i32 %151, %59
  br i1 %.not136, label %.loopexit, label %.preheader151, !llvm.loop !33

.preheader151:                                    ; preds = %146, %150
  %.2117160 = phi i32 [ %151, %150 ], [ %77, %146 ]
  %152 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %.2117160, i32 noundef %83, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull %4)
  br i1 %152, label %.critedge, label %150

.loopexit:                                        ; preds = %135, %129, %141, %150, %147, %.preheader
  %153 = call noundef zeroext i1 @_ZNK7Riemann12HeightField316IntersectRayCellERKN5Maths8TVector3IfEES5_iiRKNS_20HeightFieldHitOptionEPNS_20HeightFieldHitResultE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %59, i32 noundef %65, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull %4)
  br label %.critedge

.critedge:                                        ; preds = %122, %.preheader151, %.lr.ph, %.loopexit, %90, %36, %79, %85, %97
  %.2 = phi i1 [ %98, %97 ], [ false, %85 ], [ false, %79 ], [ false, %36 ], [ false, %90 ], [ %153, %.loopexit ], [ true, %.lr.ph ], [ true, %.preheader151 ], [ true, %122 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  br label %154

154:                                              ; preds = %32, %.critedge
  %.3 = phi i1 [ %.2, %.critedge ], [ false, %32 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %155

155:                                              ; preds = %23, %5, %154, %30
  %.4 = phi i1 [ %31, %30 ], [ %.3, %154 ], [ false, %5 ], [ false, %23 ]
  ret i1 %.4
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE5UnitYEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) local_unnamed_addr #0 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 #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fabs.v2f32(<2 x float>) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 4}
!6 = !{!"_ZTSN5Maths8TVector3IfEE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 24}
!11 = !{!"_ZTSN7Riemann12HeightField3E", !12, i64 0, !12, i64 4, !13, i64 8, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !14, i64 56, !18, i64 80}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN5Maths6TAABB3IfEE", !6, i64 0, !6, i64 12}
!14 = !{!"_ZTSSt6vectorIN7Riemann12HeightField38CellInfoESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7Riemann12HeightField38CellInfoESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!11, !7, i64 12}
!20 = !{!21, !7, i64 4}
!21 = !{!"_ZTSN7Riemann20HeightFieldHitOptionE", !22, i64 0, !7, i64 4}
!22 = !{!"bool", !8, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!6, !7, i64 0}
!25 = !{!11, !7, i64 8}
!26 = !{!6, !7, i64 8}
!27 = !{!11, !7, i64 16}
!28 = !{!11, !12, i64 0}
!29 = !{!11, !12, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass