; LLVM IR from heroseh/cgm :: cgm (cgm_3d_sphere_vs_triangle)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }
%struct.anon.9 = type { %union.CgmVec3, %union.CgmVec3, %union.CgmVec3 }
%struct.CgmSphere = type { %union.anon.7, float }
%union.anon.7 = type { %struct.anon.8 }
%struct.anon.8 = type { float, float, float }

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @cgm_approx_eq(float noundef, float noundef) #0

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) #5

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float>, float, float noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_neg(<2 x float>, float) #5

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_norm(<2 x float>, float) #5

; Function Attrs: nounwind uwtable
declare dso_local float @CgmVec3_dot(<2 x float>, float, <2 x float>, float) #5

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_cross(<2 x float>, float, <2 x float>, float) #5

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float>, float, <2 x float>, float, <2 x float>, float) #5

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @cgm_3d_sphere_vs_triangle(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i8 noundef zeroext %4) #5 {
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca %union.CgmVec3, align 4
  %13 = alloca { <2 x float>, float }, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %union.CgmVec3, align 4
  %17 = alloca { <2 x float>, float }, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %union.CgmVec3, align 4
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %union.CgmVec3, align 4
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca %union.CgmVec3, align 4
  %29 = alloca { <2 x float>, float }, align 4
  %30 = alloca { <2 x float>, float }, align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca %union.CgmVec3, align 4
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %union.CgmVec3, align 4
  %37 = alloca %union.CgmVec3, align 4
  %38 = alloca { <2 x float>, float }, align 4
  %39 = alloca { <2 x float>, float }, align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca { <2 x float>, float }, align 4
  %42 = alloca { <2 x float>, float }, align 8
  %43 = alloca [4 x %union.CgmVec3], align 16
  %44 = alloca %union.CgmVec3, align 4
  %45 = alloca %union.CgmVec3, align 4
  %46 = alloca { <2 x float>, float }, align 4
  %47 = alloca { <2 x float>, float }, align 4
  %48 = alloca { <2 x float>, float }, align 4
  %49 = alloca { <2 x float>, float }, align 8
  %50 = alloca { <2 x float>, float }, align 4
  %51 = alloca { <2 x float>, float }, align 8
  %52 = alloca %union.CgmVec3, align 4
  %53 = alloca %union.CgmVec3, align 4
  %54 = alloca { <2 x float>, float }, align 4
  %55 = alloca { <2 x float>, float }, align 4
  %56 = alloca { <2 x float>, float }, align 4
  %57 = alloca { <2 x float>, float }, align 8
  %58 = alloca { <2 x float>, float }, align 4
  %59 = alloca { <2 x float>, float }, align 8
  %60 = alloca %union.CgmVec3, align 4
  %61 = alloca %union.CgmVec3, align 4
  %62 = alloca { <2 x float>, float }, align 4
  %63 = alloca { <2 x float>, float }, align 4
  %64 = alloca { <2 x float>, float }, align 4
  %65 = alloca { <2 x float>, float }, align 8
  %66 = alloca { <2 x float>, float }, align 4
  %67 = alloca { <2 x float>, float }, align 8
  %68 = alloca %union.CgmVec3, align 4
  %69 = alloca float, align 4
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca %union.CgmVec3, align 4
  %73 = alloca float, align 4
  %74 = alloca { <2 x float>, float }, align 4
  %75 = alloca { <2 x float>, float }, align 4
  %76 = alloca float, align 4
  %77 = alloca %union.CgmVec3, align 4
  %78 = alloca { <2 x float>, float }, align 4
  %79 = alloca { <2 x float>, float }, align 8
  %80 = alloca float, align 4
  %81 = alloca { <2 x float>, float }, align 4
  %82 = alloca { <2 x float>, float }, align 4
  %83 = alloca float, align 4
  %84 = alloca { <2 x float>, float }, align 4
  %85 = alloca { <2 x float>, float }, align 4
  %86 = alloca float, align 4
  %87 = alloca { <2 x float>, float }, align 4
  %88 = alloca { <2 x float>, float }, align 4
  %89 = alloca float, align 4
  %90 = alloca float, align 4
  %91 = alloca float, align 4
  %92 = alloca float, align 4
  %93 = alloca %union.CgmVec3, align 4
  %94 = alloca i1, align 1
  %95 = alloca { <2 x float>, float }, align 4
  %96 = alloca { <2 x float>, float }, align 8
  %97 = alloca float, align 4
  %98 = alloca { <2 x float>, float }, align 4
  %99 = alloca { <2 x float>, 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 i8 %4, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.anon.9, ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CgmSphere, ptr %102, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %101, i64 12, i1 false)
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  %105 = load <2 x float>, ptr %104, align 4
  %106 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  %107 = load float, ptr %106, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %103, i64 12, i1 false)
  %108 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %109 = load <2 x float>, ptr %108, align 4
  %110 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %105, float %107, <2 x float> %109, float %111)
  %113 = getelementptr inbounds %union.CgmVec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %112, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.anon.9, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.CgmSphere, ptr %116, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %115, i64 12, i1 false)
  %118 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 0
  %119 = load <2 x float>, ptr %118, align 4
  %120 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 1
  %121 = load float, ptr %120, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %117, i64 12, i1 false)
  %122 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %123 = load <2 x float>, ptr %122, align 4
  %124 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %125 = load float, ptr %124, align 4
  %126 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %119, float %121, <2 x float> %123, float %125)
  %127 = getelementptr inbounds %union.CgmVec3, ptr %16, i32 0, i32 0
  store { <2 x float>, float } %126, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %127, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.anon.9, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.CgmSphere, ptr %130, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %129, i64 12, i1 false)
  %132 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %133 = load <2 x float>, ptr %132, align 4
  %134 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %135 = load float, ptr %134, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %131, i64 12, i1 false)
  %136 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %137 = load <2 x float>, ptr %136, align 4
  %138 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  %140 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %133, float %135, <2 x float> %137, float %139)
  %141 = getelementptr inbounds %union.CgmVec3, ptr %20, i32 0, i32 0
  store { <2 x float>, float } %140, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %141, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.anon.9, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.anon.9, ptr %144, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %143, i64 12, i1 false)
  %146 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %147 = load <2 x float>, ptr %146, align 4
  %148 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %145, i64 12, i1 false)
  %150 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %151 = load <2 x float>, ptr %150, align 4
  %152 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %153 = load float, ptr %152, align 4
  %154 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %147, float %149, <2 x float> %151, float %153)
  %155 = getelementptr inbounds %union.CgmVec3, ptr %24, i32 0, i32 0
  store { <2 x float>, float } %154, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.anon.9, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.anon.9, ptr %158, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %157, i64 12, i1 false)
  %160 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 0
  %161 = load <2 x float>, ptr %160, align 4
  %162 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 1
  %163 = load float, ptr %162, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %159, i64 12, i1 false)
  %164 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %165 = load <2 x float>, ptr %164, align 4
  %166 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %167 = load float, ptr %166, align 4
  %168 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %161, float %163, <2 x float> %165, float %167)
  %169 = getelementptr inbounds %union.CgmVec3, ptr %28, i32 0, i32 0
  store { <2 x float>, float } %168, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #6
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.anon.9, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.anon.9, ptr %172, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %171, i64 12, i1 false)
  %174 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %175 = load <2 x float>, ptr %174, align 4
  %176 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %173, i64 12, i1 false)
  %178 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %179 = load <2 x float>, ptr %178, align 4
  %180 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %181 = load float, ptr %180, align 4
  %182 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %175, float %177, <2 x float> %179, float %181)
  %183 = getelementptr inbounds %union.CgmVec3, ptr %32, i32 0, i32 0
  store { <2 x float>, float } %182, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %183, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %24, i64 12, i1 false)
  %184 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 0
  %185 = load <2 x float>, ptr %184, align 4
  %186 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 1
  %187 = load float, ptr %186, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %28, i64 12, i1 false)
  %188 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 0
  %189 = load <2 x float>, ptr %188, align 4
  %190 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 1
  %191 = load float, ptr %190, align 4
  %192 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %185, float %187, <2 x float> %189, float %191)
  %193 = getelementptr inbounds %union.CgmVec3, ptr %37, i32 0, i32 0
  store { <2 x float>, float } %192, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 8 %40, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %37, i64 12, i1 false)
  %194 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 0
  %195 = load <2 x float>, ptr %194, align 4
  %196 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 1
  %197 = load float, ptr %196, align 4
  %198 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %195, float %197)
  %199 = getelementptr inbounds %union.CgmVec3, ptr %36, i32 0, i32 0
  store { <2 x float>, float } %198, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %199, ptr align 8 %42, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %43) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !10
  %200 = getelementptr inbounds %union.CgmVec3, ptr %43, i64 1
  %201 = getelementptr inbounds %struct.anon.0, ptr %45, i32 0, i32 0
  store float 0.000000e+00, ptr %201, align 4, !tbaa !11
  %202 = getelementptr inbounds %struct.anon.0, ptr %45, i32 0, i32 1
  store float 0.000000e+00, ptr %202, align 4, !tbaa !14
  %203 = getelementptr inbounds %struct.anon.0, ptr %45, i32 0, i32 2
  store float 0.000000e+00, ptr %203, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %12, i64 12, i1 false)
  %204 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 0
  %205 = load <2 x float>, ptr %204, align 4
  %206 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 1
  %207 = load float, ptr %206, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %16, i64 12, i1 false)
  %208 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 0
  %209 = load <2 x float>, ptr %208, align 4
  %210 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 1
  %211 = load float, ptr %210, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %45, i64 12, i1 false)
  %212 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 0
  %213 = load <2 x float>, ptr %212, align 4
  %214 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 1
  %215 = load float, ptr %214, align 4
  %216 = call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %205, float %207, <2 x float> %209, float %211, <2 x float> %213, float %215)
  %217 = getelementptr inbounds %union.CgmVec3, ptr %44, i32 0, i32 0
  store { <2 x float>, float } %216, ptr %49, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %217, ptr align 8 %49, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %44, i64 12, i1 false)
  %218 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 0
  %219 = load <2 x float>, ptr %218, align 4
  %220 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 1
  %221 = load float, ptr %220, align 4
  %222 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %219, float %221)
  %223 = getelementptr inbounds %union.CgmVec3, ptr %200, i32 0, i32 0
  store { <2 x float>, float } %222, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %223, ptr align 8 %51, i64 12, i1 false)
  %224 = getelementptr inbounds %union.CgmVec3, ptr %43, i64 2
  %225 = getelementptr inbounds %struct.anon.0, ptr %53, i32 0, i32 0
  store float 0.000000e+00, ptr %225, align 4, !tbaa !11
  %226 = getelementptr inbounds %struct.anon.0, ptr %53, i32 0, i32 1
  store float 0.000000e+00, ptr %226, align 4, !tbaa !14
  %227 = getelementptr inbounds %struct.anon.0, ptr %53, i32 0, i32 2
  store float 0.000000e+00, ptr %227, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %16, i64 12, i1 false)
  %228 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 0
  %229 = load <2 x float>, ptr %228, align 4
  %230 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %20, i64 12, i1 false)
  %232 = getelementptr inbounds { <2 x float>, float }, ptr %55, i32 0, i32 0
  %233 = load <2 x float>, ptr %232, align 4
  %234 = getelementptr inbounds { <2 x float>, float }, ptr %55, i32 0, i32 1
  %235 = load float, ptr %234, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %53, i64 12, i1 false)
  %236 = getelementptr inbounds { <2 x float>, float }, ptr %56, i32 0, i32 0
  %237 = load <2 x float>, ptr %236, align 4
  %238 = getelementptr inbounds { <2 x float>, float }, ptr %56, i32 0, i32 1
  %239 = load float, ptr %238, align 4
  %240 = call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %229, float %231, <2 x float> %233, float %235, <2 x float> %237, float %239)
  %241 = getelementptr inbounds %union.CgmVec3, ptr %52, i32 0, i32 0
  store { <2 x float>, float } %240, ptr %57, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %241, ptr align 8 %57, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %52, i64 12, i1 false)
  %242 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 0
  %243 = load <2 x float>, ptr %242, align 4
  %244 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 1
  %245 = load float, ptr %244, align 4
  %246 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %243, float %245)
  %247 = getelementptr inbounds %union.CgmVec3, ptr %224, i32 0, i32 0
  store { <2 x float>, float } %246, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %247, ptr align 8 %59, i64 12, i1 false)
  %248 = getelementptr inbounds %union.CgmVec3, ptr %43, i64 3
  %249 = getelementptr inbounds %struct.anon.0, ptr %61, i32 0, i32 0
  store float 0.000000e+00, ptr %249, align 4, !tbaa !11
  %250 = getelementptr inbounds %struct.anon.0, ptr %61, i32 0, i32 1
  store float 0.000000e+00, ptr %250, align 4, !tbaa !14
  %251 = getelementptr inbounds %struct.anon.0, ptr %61, i32 0, i32 2
  store float 0.000000e+00, ptr %251, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 4 %20, i64 12, i1 false)
  %252 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 0
  %253 = load <2 x float>, ptr %252, align 4
  %254 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 1
  %255 = load float, ptr %254, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %12, i64 12, i1 false)
  %256 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 0
  %257 = load <2 x float>, ptr %256, align 4
  %258 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 1
  %259 = load float, ptr %258, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %61, i64 12, i1 false)
  %260 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 0
  %261 = load <2 x float>, ptr %260, align 4
  %262 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 1
  %263 = load float, ptr %262, align 4
  %264 = call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %253, float %255, <2 x float> %257, float %259, <2 x float> %261, float %263)
  %265 = getelementptr inbounds %union.CgmVec3, ptr %60, i32 0, i32 0
  store { <2 x float>, float } %264, ptr %65, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %265, ptr align 8 %65, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %60, i64 12, i1 false)
  %266 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 0
  %267 = load <2 x float>, ptr %266, align 4
  %268 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 1
  %269 = load float, ptr %268, align 4
  %270 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %267, float %269)
  %271 = getelementptr inbounds %union.CgmVec3, ptr %248, i32 0, i32 0
  store { <2 x float>, float } %270, ptr %67, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %271, ptr align 8 %67, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #6
  store float 0x7FF0000000000000, ptr %69, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #6
  store i32 0, ptr %70, align 4, !tbaa !17
  br label %272

272:                                              ; preds = %381, %5
  %273 = load i32, ptr %70, align 4, !tbaa !17
  %274 = icmp ult i32 %273, 4
  br i1 %274, label %276, label %275

275:                                              ; preds = %272
  store i32 2, ptr %71, align 4
  br label %384

276:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #6
  %277 = load i32, ptr %70, align 4, !tbaa !17
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds [4 x %union.CgmVec3], ptr %43, i64 0, i64 %278
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %279, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %72, i64 12, i1 false)
  %280 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 0
  %281 = load <2 x float>, ptr %280, align 4
  %282 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 1
  %283 = load float, ptr %282, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %72, i64 12, i1 false)
  %284 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 0
  %285 = load <2 x float>, ptr %284, align 4
  %286 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 1
  %287 = load float, ptr %286, align 4
  %288 = call float @CgmVec3_dot(<2 x float> %281, float %283, <2 x float> %285, float %287)
  store float %288, ptr %73, align 4, !tbaa !16
  %289 = load float, ptr %73, align 4, !tbaa !16
  %290 = fcmp oeq float %289, 0.000000e+00
  br i1 %290, label %291, label %292

291:                                              ; preds = %276
  store i32 4, ptr %71, align 4
  br label %378

292:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #6
  %293 = load float, ptr %73, align 4, !tbaa !16
  %294 = call float @sqrtf(float noundef %293) #6
  %295 = fdiv float 1.000000e+00, %294
  store float %295, ptr %76, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 12, ptr %77) #6
  %296 = load float, ptr %76, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %72, i64 12, i1 false)
  %297 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %298 = load <2 x float>, ptr %297, align 4
  %299 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %300 = load float, ptr %299, align 4
  %301 = call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %298, float %300, float noundef %296)
  %302 = getelementptr inbounds %union.CgmVec3, ptr %77, i32 0, i32 0
  store { <2 x float>, float } %301, ptr %79, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %302, ptr align 8 %79, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %77, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %77) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %12, i64 12, i1 false)
  %303 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 0
  %304 = load <2 x float>, ptr %303, align 4
  %305 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 1
  %306 = load float, ptr %305, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %72, i64 12, i1 false)
  %307 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 0
  %308 = load <2 x float>, ptr %307, align 4
  %309 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 1
  %310 = load float, ptr %309, align 4
  %311 = call float @CgmVec3_dot(<2 x float> %304, float %306, <2 x float> %308, float %310)
  store float %311, ptr %80, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %16, i64 12, i1 false)
  %312 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 0
  %313 = load <2 x float>, ptr %312, align 4
  %314 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 1
  %315 = load float, ptr %314, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 4 %72, i64 12, i1 false)
  %316 = getelementptr inbounds { <2 x float>, float }, ptr %85, i32 0, i32 0
  %317 = load <2 x float>, ptr %316, align 4
  %318 = getelementptr inbounds { <2 x float>, float }, ptr %85, i32 0, i32 1
  %319 = load float, ptr %318, align 4
  %320 = call float @CgmVec3_dot(<2 x float> %313, float %315, <2 x float> %317, float %319)
  store float %320, ptr %83, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %20, i64 12, i1 false)
  %321 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 0
  %322 = load <2 x float>, ptr %321, align 4
  %323 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 1
  %324 = load float, ptr %323, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %72, i64 12, i1 false)
  %325 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 0
  %326 = load <2 x float>, ptr %325, align 4
  %327 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 1
  %328 = load float, ptr %327, align 4
  %329 = call float @CgmVec3_dot(<2 x float> %322, float %324, <2 x float> %326, float %328)
  store float %329, ptr %86, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #6
  %330 = load float, ptr %80, align 4, !tbaa !16
  %331 = load float, ptr %83, align 4, !tbaa !16
  %332 = call float @cgm_max(float noundef %330, float noundef %331)
  %333 = load float, ptr %86, align 4, !tbaa !16
  %334 = call float @cgm_max(float noundef %332, float noundef %333)
  store float %334, ptr %89, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #6
  %335 = load float, ptr %80, align 4, !tbaa !16
  %336 = load float, ptr %83, align 4, !tbaa !16
  %337 = call float @cgm_min(float noundef %335, float noundef %336)
  %338 = load float, ptr %86, align 4, !tbaa !16
  %339 = call float @cgm_min(float noundef %337, float noundef %338)
  store float %339, ptr %90, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #6
  %340 = load float, ptr %89, align 4, !tbaa !16
  %341 = fneg float %340
  %342 = load float, ptr %90, align 4, !tbaa !16
  %343 = call float @cgm_max(float noundef %341, float noundef %342)
  store float %343, ptr %91, align 4, !tbaa !16
  %344 = load float, ptr %91, align 4, !tbaa !16
  %345 = load ptr, ptr %7, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.CgmSphere, ptr %345, i32 0, i32 1
  %347 = load float, ptr %346, align 4, !tbaa !19
  %348 = fcmp ogt float %344, %347
  br i1 %348, label %349, label %350

349:                                              ; preds = %292
  store i8 0, ptr %6, align 1
  store i32 1, ptr %71, align 4
  br label %377

350:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #6
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.CgmSphere, ptr %351, i32 0, i32 1
  %353 = load float, ptr %352, align 4, !tbaa !19
  %354 = load float, ptr %91, align 4, !tbaa !16
  %355 = fsub float %353, %354
  store float %355, ptr %92, align 4, !tbaa !16
  %356 = load float, ptr %92, align 4, !tbaa !16
  %357 = load float, ptr %69, align 4, !tbaa !16
  %358 = fcmp olt float %356, %357
  br i1 %358, label %359, label %376

359:                                              ; preds = %350
  %360 = load float, ptr %92, align 4, !tbaa !16
  store float %360, ptr %69, align 4, !tbaa !16
  %361 = load float, ptr %90, align 4, !tbaa !16
  %362 = load float, ptr %89, align 4, !tbaa !16
  %363 = load float, ptr %90, align 4, !tbaa !16
  %364 = fsub float %362, %363
  %365 = call float @llvm.fmuladd.f32(float %364, float 5.000000e-01, float %361)
  %366 = fcmp ogt float %365, 0.000000e+00
  store i1 false, ptr %94, align 1
  br i1 %366, label %367, label %374

367:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 12, ptr %93) #6
  store i1 true, ptr %94, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %72, i64 12, i1 false)
  %368 = getelementptr inbounds { <2 x float>, float }, ptr %95, i32 0, i32 0
  %369 = load <2 x float>, ptr %368, align 4
  %370 = getelementptr inbounds { <2 x float>, float }, ptr %95, i32 0, i32 1
  %371 = load float, ptr %370, align 4
  %372 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %369, float %371)
  %373 = getelementptr inbounds %union.CgmVec3, ptr %93, i32 0, i32 0
  store { <2 x float>, float } %372, ptr %96, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %373, ptr align 8 %96, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %93, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %93) #6
  br label %375

374:                                              ; preds = %359
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %72, i64 12, i1 false), !tbaa.struct !10
  br label %375

375:                                              ; preds = %374, %367
  br label %376

376:                                              ; preds = %375, %350
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #6
  store i32 0, ptr %71, align 4
  br label %377

377:                                              ; preds = %376, %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #6
  br label %378

378:                                              ; preds = %377, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #6
  %379 = load i32, ptr %71, align 4
  switch i32 %379, label %384 [
    i32 0, label %380
    i32 4, label %381
  ]

380:                                              ; preds = %378
  br label %381

381:                                              ; preds = %380, %378
  %382 = load i32, ptr %70, align 4, !tbaa !17
  %383 = add i32 %382, 1
  store i32 %383, ptr %70, align 4, !tbaa !17
  br label %272, !llvm.loop !21

384:                                              ; preds = %378, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #6
  %385 = load i32, ptr %71, align 4
  switch i32 %385, label %419 [
    i32 2, label %386
  ]

386:                                              ; preds = %384
  %387 = load i8, ptr %11, align 1, !tbaa !9
  %388 = icmp ne i8 %387, 0
  br i1 %388, label %389, label %407

389:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %68, i64 12, i1 false)
  %390 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 0
  %391 = load <2 x float>, ptr %390, align 4
  %392 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 1
  %393 = load float, ptr %392, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 4 %36, i64 12, i1 false)
  %394 = getelementptr inbounds { <2 x float>, float }, ptr %99, i32 0, i32 0
  %395 = load <2 x float>, ptr %394, align 4
  %396 = getelementptr inbounds { <2 x float>, float }, ptr %99, i32 0, i32 1
  %397 = load float, ptr %396, align 4
  %398 = call float @CgmVec3_dot(<2 x float> %391, float %393, <2 x float> %395, float %397)
  store float %398, ptr %97, align 4, !tbaa !16
  %399 = load float, ptr %97, align 4, !tbaa !16
  %400 = call zeroext i8 @cgm_approx_eq(float noundef %399, float noundef 1.000000e+00)
  %401 = icmp ne i8 %400, 0
  br i1 %401, label %403, label %402

402:                                              ; preds = %389
  store i8 0, ptr %6, align 1
  store i32 1, ptr %71, align 4
  br label %404

403:                                              ; preds = %389
  store i32 0, ptr %71, align 4
  br label %404

404:                                              ; preds = %403, %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #6
  %405 = load i32, ptr %71, align 4
  switch i32 %405, label %419 [
    i32 0, label %406
  ]

406:                                              ; preds = %404
  br label %407

407:                                              ; preds = %406, %386
  %408 = load ptr, ptr %9, align 8, !tbaa !5
  %409 = icmp ne ptr %408, null
  br i1 %409, label %410, label %412

410:                                              ; preds = %407
  %411 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %411, ptr align 4 %68, i64 12, i1 false), !tbaa.struct !10
  br label %412

412:                                              ; preds = %410, %407
  %413 = load ptr, ptr %10, align 8, !tbaa !5
  %414 = icmp ne ptr %413, null
  br i1 %414, label %415, label %418

415:                                              ; preds = %412
  %416 = load float, ptr %69, align 4, !tbaa !16
  %417 = load ptr, ptr %10, align 8, !tbaa !5
  store float %416, ptr %417, align 4, !tbaa !16
  br label %418

418:                                              ; preds = %415, %412
  store i8 1, ptr %6, align 1
  store i32 1, ptr %71, align 4
  br label %419

419:                                              ; preds = %418, %404, %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  %420 = load i8, ptr %6, align 1
  ret i8 %420
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 12, !9}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !13, i64 12}
!20 = !{!"CgmSphere", !7, i64 0, !13, i64 12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @cgm_approx_eq(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float>, float, float noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_neg(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_norm(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local float @CgmVec3_dot(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_cross(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float>, float, <2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i8 @cgm_3d_sphere_vs_triangle(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i8 noundef zeroext %4) local_unnamed_addr #3 {
  %.sroa.0208.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2209.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.2209.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %.sroa.0206.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2207.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.2207.0.copyload = load float, ptr %.sroa.2207.0..sroa_idx, align 4
  %6 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0208.0.copyload, float %.sroa.2209.0.copyload, <2 x float> %.sroa.0206.0.copyload, float %.sroa.2207.0.copyload)
  %.fca.0.extract202 = extractvalue { <2 x float>, float } %6, 0
  %.fca.1.extract203 = extractvalue { <2 x float>, float } %6, 1
  %7 = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.0196.0.copyload = load <2 x float>, ptr %7, align 4
  %.sroa.2197.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %.sroa.2197.0.copyload = load float, ptr %.sroa.2197.0..sroa_idx, align 4
  %.sroa.0194.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2195.0.copyload = load float, ptr %.sroa.2207.0..sroa_idx, align 4
  %8 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0196.0.copyload, float %.sroa.2197.0.copyload, <2 x float> %.sroa.0194.0.copyload, float %.sroa.2195.0.copyload)
  %.fca.0.extract190 = extractvalue { <2 x float>, float } %8, 0
  %.fca.1.extract191 = extractvalue { <2 x float>, float } %8, 1
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.0184.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2185.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.2185.0.copyload = load float, ptr %.sroa.2185.0..sroa_idx, align 4
  %.sroa.0182.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2183.0.copyload = load float, ptr %.sroa.2207.0..sroa_idx, align 4
  %10 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0184.0.copyload, float %.sroa.2185.0.copyload, <2 x float> %.sroa.0182.0.copyload, float %.sroa.2183.0.copyload)
  %.fca.0.extract178 = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract179 = extractvalue { <2 x float>, float } %10, 1
  %.sroa.0174.0.copyload = load <2 x float>, ptr %7, align 4
  %.sroa.2175.0.copyload = load float, ptr %.sroa.2197.0..sroa_idx, align 4
  %.sroa.0172.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2173.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %11 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0174.0.copyload, float %.sroa.2175.0.copyload, <2 x float> %.sroa.0172.0.copyload, float %.sroa.2173.0.copyload)
  %.fca.0.extract168 = extractvalue { <2 x float>, float } %11, 0
  %.fca.1.extract169 = extractvalue { <2 x float>, float } %11, 1
  %.sroa.0164.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2165.0.copyload = load float, ptr %.sroa.2185.0..sroa_idx, align 4
  %.sroa.0162.0.copyload = load <2 x float>, ptr %7, align 4
  %.sroa.2163.0.copyload = load float, ptr %.sroa.2197.0..sroa_idx, align 4
  %12 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0164.0.copyload, float %.sroa.2165.0.copyload, <2 x float> %.sroa.0162.0.copyload, float %.sroa.2163.0.copyload)
  %.fca.0.extract158 = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract159 = extractvalue { <2 x float>, float } %12, 1
  %.sroa.0154.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2155.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %.sroa.0152.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2153.0.copyload = load float, ptr %.sroa.2185.0..sroa_idx, align 4
  %13 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0154.0.copyload, float %.sroa.2155.0.copyload, <2 x float> %.sroa.0152.0.copyload, float %.sroa.2153.0.copyload)
  %14 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.fca.0.extract168, float %.fca.1.extract169, <2 x float> %.fca.0.extract158, float %.fca.1.extract159)
  %.fca.0.extract137 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract138 = extractvalue { <2 x float>, float } %14, 1
  %15 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract137, float %.fca.1.extract138)
  %.fca.0.extract131 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract132 = extractvalue { <2 x float>, float } %15, 1
  %16 = tail call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> zeroinitializer, float 0.000000e+00)
  %.fca.0.extract116 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract117 = extractvalue { <2 x float>, float } %16, 1
  %17 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract116, float %.fca.1.extract117)
  %.fca.0.extract110 = extractvalue { <2 x float>, float } %17, 0
  %.fca.1.extract111 = extractvalue { <2 x float>, float } %17, 1
  %18 = tail call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> zeroinitializer, float 0.000000e+00)
  %.fca.0.extract95 = extractvalue { <2 x float>, float } %18, 0
  %.fca.1.extract96 = extractvalue { <2 x float>, float } %18, 1
  %19 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract95, float %.fca.1.extract96)
  %.fca.0.extract89 = extractvalue { <2 x float>, float } %19, 0
  %.fca.1.extract90 = extractvalue { <2 x float>, float } %19, 1
  %20 = tail call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> zeroinitializer, float 0.000000e+00)
  %.fca.0.extract75 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract76 = extractvalue { <2 x float>, float } %20, 1
  %21 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract75, float %.fca.1.extract76)
  %.fca.0.extract69 = extractvalue { <2 x float>, float } %21, 0
  %.fca.1.extract70 = extractvalue { <2 x float>, float } %21, 1
  %22 = getelementptr inbounds i8, ptr %0, i64 12
  %23 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract131, float %.fca.1.extract132, <2 x float> %.fca.0.extract131, float %.fca.1.extract132)
  %24 = fcmp oeq float %23, 0.000000e+00
  br i1 %24, label %49, label %25

25:                                               ; preds = %5
  %26 = tail call float @sqrtf(float noundef %23) #4
  %27 = fdiv float 1.000000e+00, %26
  %28 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract131, float %.fca.1.extract132, float noundef %27)
  %.fca.0.extract36 = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract37 = extractvalue { <2 x float>, float } %28, 1
  %29 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> %.fca.0.extract36, float %.fca.1.extract37)
  %30 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> %.fca.0.extract36, float %.fca.1.extract37)
  %31 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> %.fca.0.extract36, float %.fca.1.extract37)
  %32 = tail call float @cgm_max(float noundef %29, float noundef %30)
  %33 = tail call float @cgm_max(float noundef %32, float noundef %31)
  %34 = tail call float @cgm_min(float noundef %29, float noundef %30)
  %35 = tail call float @cgm_min(float noundef %34, float noundef %31)
  %36 = fneg float %33
  %37 = tail call float @cgm_max(float noundef %36, float noundef %35)
  %38 = load float, ptr %22, align 4, !tbaa !5
  %39 = fcmp ogt float %37, %38
  br i1 %39, label %.loopexit, label %40

40:                                               ; preds = %25
  %41 = fsub float %38, %37
  %42 = fcmp ueq float %41, 0x7FF0000000000000
  br i1 %42, label %49, label %43

43:                                               ; preds = %40
  %44 = fsub float %33, %35
  %45 = tail call float @llvm.fmuladd.f32(float %44, float 5.000000e-01, float %35)
  %46 = fcmp ogt float %45, 0.000000e+00
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract36, float %.fca.1.extract37)
  %.fca.0.extract = extractvalue { <2 x float>, float } %48, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %48, 1
  br label %49

49:                                               ; preds = %5, %43, %47, %40
  %.3237.ph = phi float [ %41, %43 ], [ 0x7FF0000000000000, %40 ], [ %41, %47 ], [ 0x7FF0000000000000, %5 ]
  %.sroa.068.3.ph = phi <2 x float> [ %.fca.0.extract36, %43 ], [ undef, %40 ], [ %.fca.0.extract, %47 ], [ undef, %5 ]
  %.sroa.6.3.ph = phi float [ %.fca.1.extract37, %43 ], [ undef, %40 ], [ %.fca.1.extract, %47 ], [ undef, %5 ]
  %50 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract110, float %.fca.1.extract111, <2 x float> %.fca.0.extract110, float %.fca.1.extract111)
  %51 = fcmp oeq float %50, 0.000000e+00
  br i1 %51, label %76, label %52

52:                                               ; preds = %49
  %53 = tail call float @sqrtf(float noundef %50) #4
  %54 = fdiv float 1.000000e+00, %53
  %55 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract110, float %.fca.1.extract111, float noundef %54)
  %.fca.0.extract36.1 = extractvalue { <2 x float>, float } %55, 0
  %.fca.1.extract37.1 = extractvalue { <2 x float>, float } %55, 1
  %56 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> %.fca.0.extract36.1, float %.fca.1.extract37.1)
  %57 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> %.fca.0.extract36.1, float %.fca.1.extract37.1)
  %58 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> %.fca.0.extract36.1, float %.fca.1.extract37.1)
  %59 = tail call float @cgm_max(float noundef %56, float noundef %57)
  %60 = tail call float @cgm_max(float noundef %59, float noundef %58)
  %61 = tail call float @cgm_min(float noundef %56, float noundef %57)
  %62 = tail call float @cgm_min(float noundef %61, float noundef %58)
  %63 = fneg float %60
  %64 = tail call float @cgm_max(float noundef %63, float noundef %62)
  %65 = load float, ptr %22, align 4, !tbaa !5
  %66 = fcmp ogt float %64, %65
  br i1 %66, label %.loopexit, label %67

67:                                               ; preds = %52
  %68 = fsub float %65, %64
  %69 = fcmp olt float %68, %.3237.ph
  br i1 %69, label %70, label %76

70:                                               ; preds = %67
  %71 = fsub float %60, %62
  %72 = tail call float @llvm.fmuladd.f32(float %71, float 5.000000e-01, float %62)
  %73 = fcmp ogt float %72, 0.000000e+00
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract36.1, float %.fca.1.extract37.1)
  %.fca.0.extract.1 = extractvalue { <2 x float>, float } %75, 0
  %.fca.1.extract.1 = extractvalue { <2 x float>, float } %75, 1
  br label %76

76:                                               ; preds = %74, %70, %67, %49
  %.3237.ph.1 = phi float [ %68, %70 ], [ %.3237.ph, %67 ], [ %68, %74 ], [ %.3237.ph, %49 ]
  %.sroa.068.3.ph.1 = phi <2 x float> [ %.fca.0.extract36.1, %70 ], [ %.sroa.068.3.ph, %67 ], [ %.fca.0.extract.1, %74 ], [ %.sroa.068.3.ph, %49 ]
  %.sroa.6.3.ph.1 = phi float [ %.fca.1.extract37.1, %70 ], [ %.sroa.6.3.ph, %67 ], [ %.fca.1.extract.1, %74 ], [ %.sroa.6.3.ph, %49 ]
  %77 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract89, float %.fca.1.extract90, <2 x float> %.fca.0.extract89, float %.fca.1.extract90)
  %78 = fcmp oeq float %77, 0.000000e+00
  br i1 %78, label %103, label %79

79:                                               ; preds = %76
  %80 = tail call float @sqrtf(float noundef %77) #4
  %81 = fdiv float 1.000000e+00, %80
  %82 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract89, float %.fca.1.extract90, float noundef %81)
  %.fca.0.extract36.2 = extractvalue { <2 x float>, float } %82, 0
  %.fca.1.extract37.2 = extractvalue { <2 x float>, float } %82, 1
  %83 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> %.fca.0.extract36.2, float %.fca.1.extract37.2)
  %84 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> %.fca.0.extract36.2, float %.fca.1.extract37.2)
  %85 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> %.fca.0.extract36.2, float %.fca.1.extract37.2)
  %86 = tail call float @cgm_max(float noundef %83, float noundef %84)
  %87 = tail call float @cgm_max(float noundef %86, float noundef %85)
  %88 = tail call float @cgm_min(float noundef %83, float noundef %84)
  %89 = tail call float @cgm_min(float noundef %88, float noundef %85)
  %90 = fneg float %87
  %91 = tail call float @cgm_max(float noundef %90, float noundef %89)
  %92 = load float, ptr %22, align 4, !tbaa !5
  %93 = fcmp ogt float %91, %92
  br i1 %93, label %.loopexit, label %94

94:                                               ; preds = %79
  %95 = fsub float %92, %91
  %96 = fcmp olt float %95, %.3237.ph.1
  br i1 %96, label %97, label %103

97:                                               ; preds = %94
  %98 = fsub float %87, %89
  %99 = tail call float @llvm.fmuladd.f32(float %98, float 5.000000e-01, float %89)
  %100 = fcmp ogt float %99, 0.000000e+00
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract36.2, float %.fca.1.extract37.2)
  %.fca.0.extract.2 = extractvalue { <2 x float>, float } %102, 0
  %.fca.1.extract.2 = extractvalue { <2 x float>, float } %102, 1
  br label %103

103:                                              ; preds = %101, %97, %94, %76
  %.3237.ph.2 = phi float [ %95, %97 ], [ %.3237.ph.1, %94 ], [ %95, %101 ], [ %.3237.ph.1, %76 ]
  %.sroa.068.3.ph.2 = phi <2 x float> [ %.fca.0.extract36.2, %97 ], [ %.sroa.068.3.ph.1, %94 ], [ %.fca.0.extract.2, %101 ], [ %.sroa.068.3.ph.1, %76 ]
  %.sroa.6.3.ph.2 = phi float [ %.fca.1.extract37.2, %97 ], [ %.sroa.6.3.ph.1, %94 ], [ %.fca.1.extract.2, %101 ], [ %.sroa.6.3.ph.1, %76 ]
  %104 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract69, float %.fca.1.extract70, <2 x float> %.fca.0.extract69, float %.fca.1.extract70)
  %105 = fcmp oeq float %104, 0.000000e+00
  br i1 %105, label %130, label %106

106:                                              ; preds = %103
  %107 = tail call float @sqrtf(float noundef %104) #4
  %108 = fdiv float 1.000000e+00, %107
  %109 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract69, float %.fca.1.extract70, float noundef %108)
  %.fca.0.extract36.3 = extractvalue { <2 x float>, float } %109, 0
  %.fca.1.extract37.3 = extractvalue { <2 x float>, float } %109, 1
  %110 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract202, float %.fca.1.extract203, <2 x float> %.fca.0.extract36.3, float %.fca.1.extract37.3)
  %111 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract190, float %.fca.1.extract191, <2 x float> %.fca.0.extract36.3, float %.fca.1.extract37.3)
  %112 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract178, float %.fca.1.extract179, <2 x float> %.fca.0.extract36.3, float %.fca.1.extract37.3)
  %113 = tail call float @cgm_max(float noundef %110, float noundef %111)
  %114 = tail call float @cgm_max(float noundef %113, float noundef %112)
  %115 = tail call float @cgm_min(float noundef %110, float noundef %111)
  %116 = tail call float @cgm_min(float noundef %115, float noundef %112)
  %117 = fneg float %114
  %118 = tail call float @cgm_max(float noundef %117, float noundef %116)
  %119 = load float, ptr %22, align 4, !tbaa !5
  %120 = fcmp ogt float %118, %119
  br i1 %120, label %.loopexit, label %121

121:                                              ; preds = %106
  %122 = fsub float %119, %118
  %123 = fcmp olt float %122, %.3237.ph.2
  br i1 %123, label %124, label %130

124:                                              ; preds = %121
  %125 = fsub float %114, %116
  %126 = tail call float @llvm.fmuladd.f32(float %125, float 5.000000e-01, float %116)
  %127 = fcmp ogt float %126, 0.000000e+00
  br i1 %127, label %128, label %130

128:                                              ; preds = %124
  %129 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract36.3, float %.fca.1.extract37.3)
  %.fca.0.extract.3 = extractvalue { <2 x float>, float } %129, 0
  %.fca.1.extract.3 = extractvalue { <2 x float>, float } %129, 1
  br label %130

130:                                              ; preds = %128, %124, %121, %103
  %.3237.ph.3 = phi float [ %122, %124 ], [ %.3237.ph.2, %121 ], [ %122, %128 ], [ %.3237.ph.2, %103 ]
  %.sroa.068.3.ph.3 = phi <2 x float> [ %.fca.0.extract36.3, %124 ], [ %.sroa.068.3.ph.2, %121 ], [ %.fca.0.extract.3, %128 ], [ %.sroa.068.3.ph.2, %103 ]
  %.sroa.6.3.ph.3 = phi float [ %.fca.1.extract37.3, %124 ], [ %.sroa.6.3.ph.2, %121 ], [ %.fca.1.extract.3, %128 ], [ %.sroa.6.3.ph.2, %103 ]
  %.not = icmp eq i8 %4, 0
  br i1 %.not, label %134, label %131

131:                                              ; preds = %130
  %132 = tail call float @CgmVec3_dot(<2 x float> %.sroa.068.3.ph.3, float %.sroa.6.3.ph.3, <2 x float> %.fca.0.extract131, float %.fca.1.extract132)
  %133 = tail call zeroext i8 @cgm_approx_eq(float noundef %132, float noundef 1.000000e+00)
  %.not250.not = icmp eq i8 %133, 0
  br i1 %.not250.not, label %.loopexit, label %134

134:                                              ; preds = %131, %130
  %.not251 = icmp eq ptr %2, null
  br i1 %.not251, label %136, label %135

135:                                              ; preds = %134
  store <2 x float> %.sroa.068.3.ph.3, ptr %2, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.sroa.6.3.ph.3, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !10
  br label %136

136:                                              ; preds = %135, %134
  %.not252 = icmp eq ptr %3, null
  br i1 %.not252, label %.loopexit, label %137

137:                                              ; preds = %136
  store float %.3237.ph.3, ptr %3, align 4, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %25, %52, %79, %106, %136, %137, %131
  %.5 = phi i8 [ 0, %131 ], [ 1, %137 ], [ 1, %136 ], [ 0, %106 ], [ 0, %79 ], [ 0, %52 ], [ 0, %25 ]
  ret i8 %.5
}

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass