; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/collision (glacier_distance)

; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN9GDistance20ClosestPointTriangleERK8GVector3S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3) #0 align 2 {
  %5 = alloca %class.GVector3, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.GVector3, align 4
  %11 = alloca { i64, i32 }, align 8
  %12 = alloca %class.GVector3, align 4
  %13 = alloca { i64, i32 }, align 8
  %14 = alloca %class.GVector3, align 4
  %15 = alloca { i64, i32 }, align 8
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GFloat, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca i32, align 4
  %21 = alloca %class.GVector3, align 4
  %22 = alloca { i64, i32 }, align 8
  %23 = alloca %class.GFloat, align 4
  %24 = alloca %class.GFloat, align 4
  %25 = alloca %class.GFloat, align 4
  %26 = alloca %class.GFloat, align 4
  %27 = alloca %class.GFloat, align 4
  %28 = alloca %class.GFloat, align 4
  %29 = alloca %class.GFloat, align 4
  %30 = alloca %class.GFloat, align 4
  %31 = alloca %class.GFloat, align 4
  %32 = alloca %class.GFloat, align 4
  %33 = alloca %class.GFloat, align 4
  %34 = alloca %class.GFloat, align 4
  %35 = alloca %class.GFloat, align 4
  %36 = alloca %class.GFloat, align 4
  %37 = alloca %class.GFloat, align 4
  %38 = alloca %class.GVector3, align 4
  %39 = alloca %class.GFloat, align 4
  %40 = alloca { i64, i32 }, align 8
  %41 = alloca { i64, i32 }, align 8
  %42 = alloca %class.GVector3, align 4
  %43 = alloca { i64, i32 }, align 8
  %44 = alloca %class.GFloat, align 4
  %45 = alloca %class.GFloat, align 4
  %46 = alloca %class.GFloat, align 4
  %47 = alloca %class.GFloat, align 4
  %48 = alloca %class.GFloat, align 4
  %49 = alloca %class.GFloat, align 4
  %50 = alloca %class.GFloat, align 4
  %51 = alloca %class.GFloat, align 4
  %52 = alloca %class.GFloat, align 4
  %53 = alloca %class.GFloat, align 4
  %54 = alloca %class.GFloat, align 4
  %55 = alloca %class.GFloat, align 4
  %56 = alloca %class.GFloat, align 4
  %57 = alloca %class.GFloat, align 4
  %58 = alloca %class.GFloat, align 4
  %59 = alloca %class.GVector3, align 4
  %60 = alloca %class.GFloat, align 4
  %61 = alloca { i64, i32 }, align 8
  %62 = alloca { i64, i32 }, align 8
  %63 = alloca %class.GFloat, align 4
  %64 = alloca %class.GFloat, align 4
  %65 = alloca %class.GFloat, align 4
  %66 = alloca %class.GFloat, align 4
  %67 = alloca %class.GFloat, align 4
  %68 = alloca %class.GFloat, align 4
  %69 = alloca %class.GFloat, align 4
  %70 = alloca %class.GFloat, align 4
  %71 = alloca %class.GFloat, align 4
  %72 = alloca %class.GFloat, align 4
  %73 = alloca %class.GFloat, align 4
  %74 = alloca %class.GFloat, align 4
  %75 = alloca %class.GFloat, align 4
  %76 = alloca %class.GFloat, align 4
  %77 = alloca %class.GFloat, align 4
  %78 = alloca %class.GFloat, align 4
  %79 = alloca %class.GFloat, align 4
  %80 = alloca %class.GFloat, align 4
  %81 = alloca %class.GFloat, align 4
  %82 = alloca %class.GFloat, align 4
  %83 = alloca %class.GVector3, align 4
  %84 = alloca %class.GFloat, align 4
  %85 = alloca %class.GVector3, align 4
  %86 = alloca { i64, i32 }, align 8
  %87 = alloca { i64, i32 }, align 8
  %88 = alloca { i64, i32 }, align 8
  %89 = alloca %class.GFloat, align 4
  %90 = alloca %class.GFloat, align 4
  %91 = alloca %class.GFloat, align 4
  %92 = alloca %class.GFloat, align 4
  %93 = alloca %class.GFloat, align 4
  %94 = alloca %class.GFloat, align 4
  %95 = alloca %class.GFloat, align 4
  %96 = alloca %class.GFloat, align 4
  %97 = alloca %class.GFloat, align 4
  %98 = alloca %class.GFloat, align 4
  %99 = alloca %class.GVector3, align 4
  %100 = alloca %class.GVector3, align 4
  %101 = alloca %class.GFloat, align 4
  %102 = alloca { i64, i32 }, align 8
  %103 = alloca { i64, i32 }, align 8
  %104 = alloca %class.GVector3, align 4
  %105 = alloca %class.GFloat, align 4
  %106 = alloca { i64, i32 }, align 8
  %107 = alloca { i64, i32 }, align 8
  %108 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %109, ptr noundef nonnull align 4 dereferenceable(12) %110)
  store { i64, i32 } %111, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %112, ptr noundef nonnull align 4 dereferenceable(12) %113)
  store { i64, i32 } %114, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %115, ptr noundef nonnull align 4 dereferenceable(12) %116)
  store { i64, i32 } %117, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %118 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %119 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  store i32 %118, ptr %119, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %120 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %121 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  store i32 %120, ptr %121, align 4
  %122 = call i32 @_ZN5GMath4ZeroEv()
  %123 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  store i32 %122, ptr %123, align 4
  %124 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %125)
  br i1 %126, label %127, label %135

127:                                              ; preds = %4
  %128 = call i32 @_ZN5GMath4ZeroEv()
  %129 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  store i32 %128, ptr %129, align 4
  %130 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  %131 = load i32, ptr %130, align 4
  %132 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %131)
  br i1 %132, label %133, label %135

133:                                              ; preds = %127
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %134, i64 12, i1 false), !tbaa.struct !9
  store i32 1, ptr %20, align 4
  br label %367

135:                                              ; preds = %127, %4
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #4
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %136, ptr noundef nonnull align 4 dereferenceable(12) %137)
  store { i64, i32 } %138, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %139 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %140 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  store i32 %139, ptr %140, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %141 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %21)
  %142 = getelementptr inbounds %class.GFloat, ptr %24, i32 0, i32 0
  store i32 %141, ptr %142, align 4
  %143 = call i32 @_ZN5GMath4ZeroEv()
  %144 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  store i32 %143, ptr %144, align 4
  %145 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  %147 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %146)
  br i1 %147, label %148, label %154

148:                                              ; preds = %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !12
  %149 = getelementptr inbounds %class.GFloat, ptr %26, i32 0, i32 0
  %150 = load i32, ptr %149, align 4
  %151 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %150)
  br i1 %151, label %152, label %154

152:                                              ; preds = %148
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %153, i64 12, i1 false), !tbaa.struct !9
  store i32 1, ptr %20, align 4
  br label %366

154:                                              ; preds = %148, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %24, i64 4, i1 false), !tbaa.struct !12
  %155 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  %156 = load i32, ptr %155, align 4
  %157 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %156)
  %158 = getelementptr inbounds %class.GFloat, ptr %28, i32 0, i32 0
  store i32 %157, ptr %158, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !12
  %159 = getelementptr inbounds %class.GFloat, ptr %31, i32 0, i32 0
  %160 = load i32, ptr %159, align 4
  %161 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %160)
  %162 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  store i32 %161, ptr %162, align 4
  %163 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  %164 = load i32, ptr %163, align 4
  %165 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 %164)
  %166 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  store i32 %165, ptr %166, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  %167 = call i32 @_ZN5GMath4ZeroEv()
  %168 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  store i32 %167, ptr %168, align 4
  %169 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  %170 = load i32, ptr %169, align 4
  %171 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 %170)
  br i1 %171, label %172, label %198

172:                                              ; preds = %154
  %173 = call i32 @_ZN5GMath4ZeroEv()
  %174 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  store i32 %173, ptr %174, align 4
  %175 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  %176 = load i32, ptr %175, align 4
  %177 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %176)
  br i1 %177, label %178, label %198

178:                                              ; preds = %172
  %179 = call i32 @_ZN5GMath4ZeroEv()
  %180 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  store i32 %179, ptr %180, align 4
  %181 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  %182 = load i32, ptr %181, align 4
  %183 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %182)
  br i1 %183, label %184, label %198

184:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !12
  %185 = getelementptr inbounds %class.GFloat, ptr %37, i32 0, i32 0
  %186 = load i32, ptr %185, align 4
  %187 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %186)
  %188 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  store i32 %187, ptr %188, align 4
  %189 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  %190 = load i32, ptr %189, align 4
  %191 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %190)
  %192 = getelementptr inbounds %class.GFloat, ptr %35, i32 0, i32 0
  store i32 %191, ptr %192, align 4
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %35, i64 4, i1 false), !tbaa.struct !12
  %194 = getelementptr inbounds %class.GFloat, ptr %39, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  %196 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %195, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store { i64, i32 } %196, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %40, i64 12, i1 false)
  %197 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %193, ptr noundef nonnull align 4 dereferenceable(12) %38)
  store { i64, i32 } %197, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %41, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %365

198:                                              ; preds = %178, %172, %154
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #4
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %199, ptr noundef nonnull align 4 dereferenceable(12) %200)
  store { i64, i32 } %201, ptr %43, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %43, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  %202 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %42)
  %203 = getelementptr inbounds %class.GFloat, ptr %44, i32 0, i32 0
  store i32 %202, ptr %203, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %204 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %42)
  %205 = getelementptr inbounds %class.GFloat, ptr %45, i32 0, i32 0
  store i32 %204, ptr %205, align 4
  %206 = call i32 @_ZN5GMath4ZeroEv()
  %207 = getelementptr inbounds %class.GFloat, ptr %46, i32 0, i32 0
  store i32 %206, ptr %207, align 4
  %208 = getelementptr inbounds %class.GFloat, ptr %46, i32 0, i32 0
  %209 = load i32, ptr %208, align 4
  %210 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %45, i32 %209)
  br i1 %210, label %211, label %217

211:                                              ; preds = %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %212 = getelementptr inbounds %class.GFloat, ptr %47, i32 0, i32 0
  %213 = load i32, ptr %212, align 4
  %214 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %213)
  br i1 %214, label %215, label %217

215:                                              ; preds = %211
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %216, i64 12, i1 false), !tbaa.struct !9
  store i32 1, ptr %20, align 4
  br label %364

217:                                              ; preds = %211, %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !12
  %218 = getelementptr inbounds %class.GFloat, ptr %50, i32 0, i32 0
  %219 = load i32, ptr %218, align 4
  %220 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %219)
  %221 = getelementptr inbounds %class.GFloat, ptr %49, i32 0, i32 0
  store i32 %220, ptr %221, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %222 = getelementptr inbounds %class.GFloat, ptr %52, i32 0, i32 0
  %223 = load i32, ptr %222, align 4
  %224 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %223)
  %225 = getelementptr inbounds %class.GFloat, ptr %51, i32 0, i32 0
  store i32 %224, ptr %225, align 4
  %226 = getelementptr inbounds %class.GFloat, ptr %51, i32 0, i32 0
  %227 = load i32, ptr %226, align 4
  %228 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %49, i32 %227)
  %229 = getelementptr inbounds %class.GFloat, ptr %48, i32 0, i32 0
  store i32 %228, ptr %229, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  %230 = call i32 @_ZN5GMath4ZeroEv()
  %231 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  store i32 %230, ptr %231, align 4
  %232 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  %233 = load i32, ptr %232, align 4
  %234 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 %233)
  br i1 %234, label %235, label %261

235:                                              ; preds = %217
  %236 = call i32 @_ZN5GMath4ZeroEv()
  %237 = getelementptr inbounds %class.GFloat, ptr %54, i32 0, i32 0
  store i32 %236, ptr %237, align 4
  %238 = getelementptr inbounds %class.GFloat, ptr %54, i32 0, i32 0
  %239 = load i32, ptr %238, align 4
  %240 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %239)
  br i1 %240, label %241, label %261

241:                                              ; preds = %235
  %242 = call i32 @_ZN5GMath4ZeroEv()
  %243 = getelementptr inbounds %class.GFloat, ptr %55, i32 0, i32 0
  store i32 %242, ptr %243, align 4
  %244 = getelementptr inbounds %class.GFloat, ptr %55, i32 0, i32 0
  %245 = load i32, ptr %244, align 4
  %246 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %45, i32 %245)
  br i1 %246, label %247, label %261

247:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %248 = getelementptr inbounds %class.GFloat, ptr %58, i32 0, i32 0
  %249 = load i32, ptr %248, align 4
  %250 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %249)
  %251 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  store i32 %250, ptr %251, align 4
  %252 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  %253 = load i32, ptr %252, align 4
  %254 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %253)
  %255 = getelementptr inbounds %class.GFloat, ptr %56, i32 0, i32 0
  store i32 %254, ptr %255, align 4
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %59) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %56, i64 4, i1 false), !tbaa.struct !12
  %257 = getelementptr inbounds %class.GFloat, ptr %60, i32 0, i32 0
  %258 = load i32, ptr %257, align 4
  %259 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %258, ptr noundef nonnull align 4 dereferenceable(12) %12)
  store { i64, i32 } %259, ptr %61, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 8 %61, i64 12, i1 false)
  %260 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %256, ptr noundef nonnull align 4 dereferenceable(12) %59)
  store { i64, i32 } %260, ptr %62, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %62, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %59) #4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #4
  br label %363

261:                                              ; preds = %241, %235, %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %262 = getelementptr inbounds %class.GFloat, ptr %65, i32 0, i32 0
  %263 = load i32, ptr %262, align 4
  %264 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %263)
  %265 = getelementptr inbounds %class.GFloat, ptr %64, i32 0, i32 0
  store i32 %264, ptr %265, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %24, i64 4, i1 false), !tbaa.struct !12
  %266 = getelementptr inbounds %class.GFloat, ptr %67, i32 0, i32 0
  %267 = load i32, ptr %266, align 4
  %268 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %267)
  %269 = getelementptr inbounds %class.GFloat, ptr %66, i32 0, i32 0
  store i32 %268, ptr %269, align 4
  %270 = getelementptr inbounds %class.GFloat, ptr %66, i32 0, i32 0
  %271 = load i32, ptr %270, align 4
  %272 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %64, i32 %271)
  %273 = getelementptr inbounds %class.GFloat, ptr %63, i32 0, i32 0
  store i32 %272, ptr %273, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #4
  %274 = call i32 @_ZN5GMath4ZeroEv()
  %275 = getelementptr inbounds %class.GFloat, ptr %68, i32 0, i32 0
  store i32 %274, ptr %275, align 4
  %276 = getelementptr inbounds %class.GFloat, ptr %68, i32 0, i32 0
  %277 = load i32, ptr %276, align 4
  %278 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %63, i32 %277)
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #4
  br i1 %278, label %279, label %299

279:                                              ; preds = %261
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !12
  %280 = getelementptr inbounds %class.GFloat, ptr %70, i32 0, i32 0
  %281 = load i32, ptr %280, align 4
  %282 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %281)
  %283 = getelementptr inbounds %class.GFloat, ptr %69, i32 0, i32 0
  store i32 %282, ptr %283, align 4
  %284 = call i32 @_ZN5GMath4ZeroEv()
  %285 = getelementptr inbounds %class.GFloat, ptr %71, i32 0, i32 0
  store i32 %284, ptr %285, align 4
  %286 = getelementptr inbounds %class.GFloat, ptr %71, i32 0, i32 0
  %287 = load i32, ptr %286, align 4
  %288 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %69, i32 %287)
  br i1 %288, label %289, label %299

289:                                              ; preds = %279
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %290 = getelementptr inbounds %class.GFloat, ptr %73, i32 0, i32 0
  %291 = load i32, ptr %290, align 4
  %292 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %291)
  %293 = getelementptr inbounds %class.GFloat, ptr %72, i32 0, i32 0
  store i32 %292, ptr %293, align 4
  %294 = call i32 @_ZN5GMath4ZeroEv()
  %295 = getelementptr inbounds %class.GFloat, ptr %74, i32 0, i32 0
  store i32 %294, ptr %295, align 4
  %296 = getelementptr inbounds %class.GFloat, ptr %74, i32 0, i32 0
  %297 = load i32, ptr %296, align 4
  %298 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %72, i32 %297)
  br label %299

299:                                              ; preds = %289, %279, %261
  %300 = phi i1 [ false, %279 ], [ false, %261 ], [ %298, %289 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #4
  br i1 %300, label %301, label %330

301:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !12
  %302 = getelementptr inbounds %class.GFloat, ptr %77, i32 0, i32 0
  %303 = load i32, ptr %302, align 4
  %304 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %303)
  %305 = getelementptr inbounds %class.GFloat, ptr %76, i32 0, i32 0
  store i32 %304, ptr %305, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !12
  %306 = getelementptr inbounds %class.GFloat, ptr %80, i32 0, i32 0
  %307 = load i32, ptr %306, align 4
  %308 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %307)
  %309 = getelementptr inbounds %class.GFloat, ptr %79, i32 0, i32 0
  store i32 %308, ptr %309, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !12
  %310 = getelementptr inbounds %class.GFloat, ptr %82, i32 0, i32 0
  %311 = load i32, ptr %310, align 4
  %312 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %311)
  %313 = getelementptr inbounds %class.GFloat, ptr %81, i32 0, i32 0
  store i32 %312, ptr %313, align 4
  %314 = getelementptr inbounds %class.GFloat, ptr %81, i32 0, i32 0
  %315 = load i32, ptr %314, align 4
  %316 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %79, i32 %315)
  %317 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  store i32 %316, ptr %317, align 4
  %318 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  %319 = load i32, ptr %318, align 4
  %320 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %76, i32 %319)
  %321 = getelementptr inbounds %class.GFloat, ptr %75, i32 0, i32 0
  store i32 %320, ptr %321, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #4
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %83) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %75, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %85) #4
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  %325 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %323, ptr noundef nonnull align 4 dereferenceable(12) %324)
  store { i64, i32 } %325, ptr %86, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %86, i64 12, i1 false)
  %326 = getelementptr inbounds %class.GFloat, ptr %84, i32 0, i32 0
  %327 = load i32, ptr %326, align 4
  %328 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %327, ptr noundef nonnull align 4 dereferenceable(12) %85)
  store { i64, i32 } %328, ptr %87, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 8 %87, i64 12, i1 false)
  %329 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %322, ptr noundef nonnull align 4 dereferenceable(12) %83)
  store { i64, i32 } %329, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %88, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %85) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %83) #4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #4
  br label %362

330:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #4
  %331 = call i32 @_ZN5GMath3OneEv()
  %332 = getelementptr inbounds %class.GFloat, ptr %90, i32 0, i32 0
  store i32 %331, ptr %332, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %48, i64 4, i1 false), !tbaa.struct !12
  %333 = getelementptr inbounds %class.GFloat, ptr %93, i32 0, i32 0
  %334 = load i32, ptr %333, align 4
  %335 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %63, i32 %334)
  %336 = getelementptr inbounds %class.GFloat, ptr %92, i32 0, i32 0
  store i32 %335, ptr %336, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !12
  %337 = getelementptr inbounds %class.GFloat, ptr %94, i32 0, i32 0
  %338 = load i32, ptr %337, align 4
  %339 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %92, i32 %338)
  %340 = getelementptr inbounds %class.GFloat, ptr %91, i32 0, i32 0
  store i32 %339, ptr %340, align 4
  %341 = getelementptr inbounds %class.GFloat, ptr %91, i32 0, i32 0
  %342 = load i32, ptr %341, align 4
  %343 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %90, i32 %342)
  %344 = getelementptr inbounds %class.GFloat, ptr %89, i32 0, i32 0
  store i32 %343, ptr %344, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 4 %89, i64 4, i1 false), !tbaa.struct !12
  %345 = getelementptr inbounds %class.GFloat, ptr %96, i32 0, i32 0
  %346 = load i32, ptr %345, align 4
  %347 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 %346)
  %348 = getelementptr inbounds %class.GFloat, ptr %95, i32 0, i32 0
  store i32 %347, ptr %348, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %89, i64 4, i1 false), !tbaa.struct !12
  %349 = getelementptr inbounds %class.GFloat, ptr %98, i32 0, i32 0
  %350 = load i32, ptr %349, align 4
  %351 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 %350)
  %352 = getelementptr inbounds %class.GFloat, ptr %97, i32 0, i32 0
  store i32 %351, ptr %352, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %99) #4
  %353 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %100) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %95, i64 4, i1 false), !tbaa.struct !12
  %354 = getelementptr inbounds %class.GFloat, ptr %101, i32 0, i32 0
  %355 = load i32, ptr %354, align 4
  %356 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %355)
  store { i64, i32 } %356, ptr %102, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 8 %102, i64 12, i1 false)
  %357 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %353, ptr noundef nonnull align 4 dereferenceable(12) %100)
  store { i64, i32 } %357, ptr %103, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 8 %103, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %104) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %97, i64 4, i1 false), !tbaa.struct !12
  %358 = getelementptr inbounds %class.GFloat, ptr %105, i32 0, i32 0
  %359 = load i32, ptr %358, align 4
  %360 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 %359)
  store { i64, i32 } %360, ptr %106, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 8 %106, i64 12, i1 false)
  %361 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %99, ptr noundef nonnull align 4 dereferenceable(12) %104)
  store { i64, i32 } %361, ptr %107, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %107, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %104) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %100) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %99) #4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #4
  br label %362

362:                                              ; preds = %330, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #4
  br label %363

363:                                              ; preds = %362, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  br label %364

364:                                              ; preds = %363, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #4
  br label %365

365:                                              ; preds = %364, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %366

366:                                              ; preds = %365, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #4
  br label %367

367:                                              ; preds = %366, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %108, ptr align 4 %5, i64 12, i1 false)
  %368 = load { i64, i32 }, ptr %108, align 8
  ret { i64, i32 } %368
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_Zml6GFloatRK8GVector3(i32, ptr noundef nonnull align 4 dereferenceable(12)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) #2 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 4, !10}


; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN9GDistance20ClosestPointTriangleERK8GVector3S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %class.GVector3, align 8
  %6 = alloca %class.GVector3, align 8
  %7 = alloca %class.GVector3, align 8
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GFloat, align 4
  %10 = alloca %class.GVector3, align 8
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GFloat, align 4
  %14 = alloca %class.GFloat, align 4
  %15 = alloca %class.GVector3, align 8
  %16 = alloca %class.GVector3, align 8
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GFloat, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca %class.GFloat, align 4
  %21 = alloca %class.GVector3, align 8
  %22 = alloca %class.GFloat, align 4
  %23 = alloca %class.GFloat, align 4
  %24 = alloca %class.GFloat, align 4
  %25 = alloca %class.GFloat, align 4
  %26 = alloca %class.GFloat, align 4
  %27 = alloca %class.GFloat, align 4
  %28 = alloca %class.GVector3, align 8
  %29 = alloca %class.GVector3, align 8
  %30 = alloca %class.GFloat, align 4
  %31 = alloca %class.GFloat, align 4
  %32 = alloca %class.GVector3, align 8
  %33 = alloca %class.GVector3, align 8
  %34 = alloca %class.GVector3, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
  %35 = tail call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract111 = extractvalue { i64, i32 } %35, 0
  %.fca.1.extract112 = extractvalue { i64, i32 } %35, 1
  store i64 %.fca.0.extract111, ptr %5, align 8
  %.sroa.2114.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract112, ptr %.sroa.2114.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #3
  %36 = tail call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract107 = extractvalue { i64, i32 } %36, 0
  %.fca.1.extract108 = extractvalue { i64, i32 } %36, 1
  store i64 %.fca.0.extract107, ptr %6, align 8
  %.sroa.2110.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract108, ptr %.sroa.2110.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #3
  %37 = tail call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract103 = extractvalue { i64, i32 } %37, 0
  %.fca.1.extract104 = extractvalue { i64, i32 } %37, 1
  store i64 %.fca.0.extract103, ptr %7, align 8
  %.sroa.2106.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract104, ptr %.sroa.2106.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %38 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %7)
  store i32 %38, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %39 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  store i32 %39, ptr %9, align 4
  %40 = call i32 @_ZN5GMath4ZeroEv()
  %41 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %40)
  br i1 %41, label %42, label %46

42:                                               ; preds = %4
  %43 = call i32 @_ZN5GMath4ZeroEv()
  %44 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %43)
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  %.sroa.0133.0.copyload = load i64, ptr %1, align 4
  %.sroa.8.0..0.126.sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.8.0.copyload = load i32, ptr %.sroa.8.0..0.126.sroa_idx, align 4, !tbaa !5
  br label %137

46:                                               ; preds = %42, %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #3
  %47 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %.fca.0.extract97 = extractvalue { i64, i32 } %47, 0
  %.fca.1.extract98 = extractvalue { i64, i32 } %47, 1
  store i64 %.fca.0.extract97, ptr %10, align 8
  %.sroa.2100.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract98, ptr %.sroa.2100.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %48 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store i32 %48, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  %49 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store i32 %49, ptr %12, align 4
  %50 = call i32 @_ZN5GMath4ZeroEv()
  %51 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %50)
  br i1 %51, label %52, label %55

52:                                               ; preds = %46
  %.sroa.095.0.copyload = load i32, ptr %11, align 4, !tbaa !5
  %53 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.095.0.copyload)
  br i1 %53, label %54, label %._crit_edge

._crit_edge:                                      ; preds = %52
  %.sroa.094.0.copyload.pre = load i32, ptr %12, align 4, !tbaa !5
  br label %55

54:                                               ; preds = %52
  %.sroa.0133.0.copyload134 = load i64, ptr %2, align 4
  %.sroa.8.0..0.120.sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.8.0.copyload136 = load i32, ptr %.sroa.8.0..0.120.sroa_idx, align 4, !tbaa !5
  br label %136

55:                                               ; preds = %._crit_edge, %46
  %.sroa.094.0.copyload = phi i32 [ %.sroa.094.0.copyload.pre, %._crit_edge ], [ %49, %46 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  %56 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %.sroa.094.0.copyload)
  store i32 %56, ptr %14, align 4
  %.sroa.092.0.copyload = load i32, ptr %9, align 4, !tbaa !5
  %57 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %.sroa.092.0.copyload)
  %58 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %57)
  store i32 %58, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  %59 = call i32 @_ZN5GMath4ZeroEv()
  %60 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %59)
  br i1 %60, label %61, label %72

61:                                               ; preds = %55
  %62 = call i32 @_ZN5GMath4ZeroEv()
  %63 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %62)
  br i1 %63, label %64, label %72

64:                                               ; preds = %61
  %65 = call i32 @_ZN5GMath4ZeroEv()
  %66 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %65)
  br i1 %66, label %67, label %72

67:                                               ; preds = %64
  %.sroa.086.0.copyload = load i32, ptr %11, align 4, !tbaa !5
  %68 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %.sroa.086.0.copyload)
  %69 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %68)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #3
  %70 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %69, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract81 = extractvalue { i64, i32 } %70, 0
  %.fca.1.extract82 = extractvalue { i64, i32 } %70, 1
  store i64 %.fca.0.extract81, ptr %15, align 8
  %.sroa.284.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store i32 %.fca.1.extract82, ptr %.sroa.284.0..sroa_idx, align 8
  %71 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %.fca.0.extract77 = extractvalue { i64, i32 } %71, 0
  %.fca.1.extract78 = extractvalue { i64, i32 } %71, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #3
  br label %135

72:                                               ; preds = %64, %61, %55
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #3
  %73 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %.fca.0.extract73 = extractvalue { i64, i32 } %73, 0
  %.fca.1.extract74 = extractvalue { i64, i32 } %73, 1
  store i64 %.fca.0.extract73, ptr %16, align 8
  %.sroa.276.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store i32 %.fca.1.extract74, ptr %.sroa.276.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  %74 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store i32 %74, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  %75 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store i32 %75, ptr %18, align 4
  %76 = call i32 @_ZN5GMath4ZeroEv()
  %77 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %76)
  br i1 %77, label %78, label %81

78:                                               ; preds = %72
  %.sroa.071.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %79 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.071.0.copyload)
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  %.sroa.0133.0.copyload135 = load i64, ptr %3, align 4
  %.sroa.8.0..0.116.sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.8.0.copyload137 = load i32, ptr %.sroa.8.0..0.116.sroa_idx, align 4, !tbaa !5
  br label %134

81:                                               ; preds = %78, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #3
  %.sroa.070.0.copyload = load i32, ptr %9, align 4, !tbaa !5
  %82 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.070.0.copyload)
  store i32 %82, ptr %20, align 4
  %.sroa.068.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %83 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %.sroa.068.0.copyload)
  %84 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %83)
  store i32 %84, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #3
  %85 = call i32 @_ZN5GMath4ZeroEv()
  %86 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %85)
  br i1 %86, label %87, label %98

87:                                               ; preds = %81
  %88 = call i32 @_ZN5GMath4ZeroEv()
  %89 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %88)
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  %91 = call i32 @_ZN5GMath4ZeroEv()
  %92 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %91)
  br i1 %92, label %93, label %98

93:                                               ; preds = %90
  %.sroa.062.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %94 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %.sroa.062.0.copyload)
  %95 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %94)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #3
  %96 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %95, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.fca.0.extract57 = extractvalue { i64, i32 } %96, 0
  %.fca.1.extract58 = extractvalue { i64, i32 } %96, 1
  store i64 %.fca.0.extract57, ptr %21, align 8
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store i32 %.fca.1.extract58, ptr %.sroa.260.0..sroa_idx, align 8
  %97 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #3
  br label %133

98:                                               ; preds = %90, %87, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #3
  %.sroa.052.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %99 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %.sroa.052.0.copyload)
  store i32 %99, ptr %23, align 4
  %.sroa.050.0.copyload = load i32, ptr %12, align 4, !tbaa !5
  %100 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.050.0.copyload)
  %101 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %100)
  store i32 %101, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #3
  %102 = call i32 @_ZN5GMath4ZeroEv()
  %103 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 %102)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #3
  br i1 %103, label %104, label %.critedge

104:                                              ; preds = %98
  %.sroa.048.0.copyload = load i32, ptr %11, align 4, !tbaa !5
  %105 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.048.0.copyload)
  store i32 %105, ptr %24, align 4
  %106 = call i32 @_ZN5GMath4ZeroEv()
  %107 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %106)
  br i1 %107, label %108, label %.critedge

108:                                              ; preds = %104
  %.sroa.046.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %109 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.046.0.copyload)
  store i32 %109, ptr %25, align 4
  %110 = call i32 @_ZN5GMath4ZeroEv()
  %111 = call noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 %110)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #3
  br i1 %111, label %112, label %121

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #3
  %.sroa.043.0.copyload = load i32, ptr %11, align 4, !tbaa !5
  %113 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.043.0.copyload)
  store i32 %113, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #3
  %.sroa.041.0.copyload = load i32, ptr %11, align 4, !tbaa !5
  %114 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.041.0.copyload)
  store i32 %114, ptr %27, align 4
  %.sroa.039.0.copyload = load i32, ptr %18, align 4, !tbaa !5
  %115 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.039.0.copyload)
  %116 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 %115)
  %117 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 %116)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #3
  %118 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %.fca.0.extract34 = extractvalue { i64, i32 } %118, 0
  %.fca.1.extract35 = extractvalue { i64, i32 } %118, 1
  store i64 %.fca.0.extract34, ptr %29, align 8
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 8
  store i32 %.fca.1.extract35, ptr %.sroa.237.0..sroa_idx, align 8
  %119 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %117, ptr noundef nonnull align 4 dereferenceable(12) %29)
  %.fca.0.extract30 = extractvalue { i64, i32 } %119, 0
  %.fca.1.extract31 = extractvalue { i64, i32 } %119, 1
  store i64 %.fca.0.extract30, ptr %28, align 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  %120 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #3
  br label %132

.critedge:                                        ; preds = %98, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #3
  br label %121

121:                                              ; preds = %.critedge, %108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #3
  %122 = call i32 @_ZN5GMath3OneEv()
  store i32 %122, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #3
  %.sroa.022.0.copyload = load i32, ptr %19, align 4, !tbaa !5
  %123 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 %.sroa.022.0.copyload)
  store i32 %123, ptr %31, align 4
  %.sroa.021.0.copyload = load i32, ptr %13, align 4, !tbaa !5
  %124 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 %.sroa.021.0.copyload)
  %125 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 %124)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #3
  %126 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %125)
  %127 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %125)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #3
  %128 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %126)
  %.fca.0.extract12 = extractvalue { i64, i32 } %128, 0
  %.fca.1.extract13 = extractvalue { i64, i32 } %128, 1
  store i64 %.fca.0.extract12, ptr %33, align 8
  %.sroa.215.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 8
  store i32 %.fca.1.extract13, ptr %.sroa.215.0..sroa_idx, align 8
  %129 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %33)
  %.fca.0.extract8 = extractvalue { i64, i32 } %129, 0
  %.fca.1.extract9 = extractvalue { i64, i32 } %129, 1
  store i64 %.fca.0.extract8, ptr %32, align 8
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  store i32 %.fca.1.extract9, ptr %.sroa.211.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #3
  %130 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %127)
  %.fca.0.extract3 = extractvalue { i64, i32 } %130, 0
  %.fca.1.extract4 = extractvalue { i64, i32 } %130, 1
  store i64 %.fca.0.extract3, ptr %34, align 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 8
  store i32 %.fca.1.extract4, ptr %.sroa.26.0..sroa_idx, align 8
  %131 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #3
  br label %132

132:                                              ; preds = %121, %112
  %.pn = phi { i64, i32 } [ %120, %112 ], [ %131, %121 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #3
  br label %133

133:                                              ; preds = %132, %93
  %.pn139 = phi { i64, i32 } [ %97, %93 ], [ %.pn, %132 ]
  %.sroa.8.1 = extractvalue { i64, i32 } %.pn139, 1
  %.sroa.0133.1 = extractvalue { i64, i32 } %.pn139, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #3
  br label %134

134:                                              ; preds = %133, %80
  %.sroa.0133.2 = phi i64 [ %.sroa.0133.0.copyload135, %80 ], [ %.sroa.0133.1, %133 ]
  %.sroa.8.2 = phi i32 [ %.sroa.8.0.copyload137, %80 ], [ %.sroa.8.1, %133 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #3
  br label %135

135:                                              ; preds = %134, %67
  %.sroa.0133.3 = phi i64 [ %.fca.0.extract77, %67 ], [ %.sroa.0133.2, %134 ]
  %.sroa.8.3 = phi i32 [ %.fca.1.extract78, %67 ], [ %.sroa.8.2, %134 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  br label %136

136:                                              ; preds = %135, %54
  %.sroa.0133.4 = phi i64 [ %.sroa.0133.0.copyload134, %54 ], [ %.sroa.0133.3, %135 ]
  %.sroa.8.4 = phi i32 [ %.sroa.8.0.copyload136, %54 ], [ %.sroa.8.3, %135 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #3
  br label %137

137:                                              ; preds = %136, %45
  %.sroa.0133.5 = phi i64 [ %.sroa.0133.0.copyload, %45 ], [ %.sroa.0133.4, %136 ]
  %.sroa.8.5 = phi i32 [ %.sroa.8.0.copyload, %45 ], [ %.sroa.8.4, %136 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.0133.5, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.sroa.8.5, 1
  ret { i64, i32 } %.fca.1.insert
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatgeES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_Zml6GFloatRK8GVector3(i32, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) local_unnamed_addr #2 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass