; LLVM IR from heroseh/cgm :: cgm (cgm_3d_triangle_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 }

; 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 uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) #4

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

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

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

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

; 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) #4

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

256:                                              ; preds = %511, %6
  %257 = load i32, ptr %56, align 4, !tbaa !13
  %258 = icmp ult i32 %257, 11
  br i1 %258, label %260, label %259

259:                                              ; preds = %256
  store i32 2, ptr %57, align 4
  br label %514

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 12, ptr %58) #5
  %261 = load i32, ptr %56, align 4, !tbaa !13
  %262 = icmp ult i32 %261, 9
  br i1 %262, label %263, label %376

263:                                              ; preds = %260
  %264 = load i32, ptr %56, align 4, !tbaa !13
  %265 = zext i32 %264 to i64
  %266 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %52, i64 0, i64 %265
  %267 = getelementptr inbounds [2 x %union.CgmVec3], ptr %266, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 8 %267, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %59) #5
  %268 = load i32, ptr %56, align 4, !tbaa !13
  %269 = zext i32 %268 to i64
  %270 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %52, i64 0, i64 %269
  %271 = getelementptr inbounds [2 x %union.CgmVec3], ptr %270, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %58, i64 12, i1 false)
  %272 = getelementptr inbounds { <2 x float>, float }, ptr %60, i32 0, i32 0
  %273 = load <2 x float>, ptr %272, align 4
  %274 = getelementptr inbounds { <2 x float>, float }, ptr %60, i32 0, i32 1
  %275 = load float, ptr %274, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %271, i64 12, i1 false)
  %276 = getelementptr inbounds { <2 x float>, float }, ptr %61, i32 0, i32 0
  %277 = load <2 x float>, ptr %276, align 4
  %278 = getelementptr inbounds { <2 x float>, float }, ptr %61, i32 0, i32 1
  %279 = load float, ptr %278, align 4
  %280 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %273, float %275, <2 x float> %277, float %279)
  %281 = getelementptr inbounds %union.CgmVec3, ptr %59, i32 0, i32 0
  store { <2 x float>, float } %280, ptr %62, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %281, ptr align 8 %62, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %59, i64 12, i1 false)
  %282 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 0
  %283 = load <2 x float>, ptr %282, align 4
  %284 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 1
  %285 = load float, ptr %284, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %59, i64 12, i1 false)
  %286 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 0
  %287 = load <2 x float>, ptr %286, align 4
  %288 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 1
  %289 = load float, ptr %288, align 4
  %290 = call float @CgmVec3_dot(<2 x float> %283, float %285, <2 x float> %287, float %289)
  store float %290, ptr %63, align 4, !tbaa !11
  %291 = load float, ptr %63, align 4, !tbaa !11
  %292 = call zeroext i8 @cgm_approx_eq(float noundef %291, float noundef 0.000000e+00)
  %293 = icmp ne i8 %292, 0
  br i1 %293, label %294, label %369

294:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #5
  %295 = load i32, ptr %56, align 4, !tbaa !13
  %296 = udiv i32 %295, 3
  store i32 %296, ptr %66, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #5
  %297 = load i32, ptr %56, align 4, !tbaa !13
  %298 = urem i32 %297, 3
  store i32 %298, ptr %67, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #5
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = load i32, ptr %66, align 4, !tbaa !13
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds [3 x %union.CgmVec3], ptr %299, i64 0, i64 %301
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %302, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %69) #5
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = load i32, ptr %66, align 4, !tbaa !13
  %305 = add i32 %304, 1
  %306 = icmp eq i32 %305, 3
  br i1 %306, label %307, label %308

307:                                              ; preds = %294
  br label %311

308:                                              ; preds = %294
  %309 = load i32, ptr %66, align 4, !tbaa !13
  %310 = add i32 %309, 1
  br label %311

311:                                              ; preds = %308, %307
  %312 = phi i32 [ 0, %307 ], [ %310, %308 ]
  %313 = zext i32 %312 to i64
  %314 = getelementptr inbounds [3 x %union.CgmVec3], ptr %303, i64 0, i64 %313
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %314, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %70) #5
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load i32, ptr %67, align 4, !tbaa !13
  %317 = zext i32 %316 to i64
  %318 = getelementptr inbounds [3 x %union.CgmVec3], ptr %315, i64 0, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %318, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #5
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = load i32, ptr %67, align 4, !tbaa !13
  %321 = add i32 %320, 1
  %322 = icmp eq i32 %321, 3
  br i1 %322, label %323, label %324

323:                                              ; preds = %311
  br label %327

324:                                              ; preds = %311
  %325 = load i32, ptr %67, align 4, !tbaa !13
  %326 = add i32 %325, 1
  br label %327

327:                                              ; preds = %324, %323
  %328 = phi i32 [ 0, %323 ], [ %326, %324 ]
  %329 = zext i32 %328 to i64
  %330 = getelementptr inbounds [3 x %union.CgmVec3], ptr %319, i64 0, i64 %329
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %330, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %70, i64 12, i1 false)
  %331 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 0
  %332 = load <2 x float>, ptr %331, align 4
  %333 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 1
  %334 = load float, ptr %333, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %71, i64 12, i1 false)
  %335 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 0
  %336 = load <2 x float>, ptr %335, align 4
  %337 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 1
  %338 = load float, ptr %337, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %68, i64 12, i1 false)
  %339 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 0
  %340 = load <2 x float>, ptr %339, align 4
  %341 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 1
  %342 = load float, ptr %341, align 4
  %343 = call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %332, float %334, <2 x float> %336, float %338, <2 x float> %340, float %342)
  %344 = getelementptr inbounds %union.CgmVec3, ptr %72, i32 0, i32 0
  store { <2 x float>, float } %343, ptr %76, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %344, ptr align 8 %76, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %77) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %68, i64 12, i1 false)
  %345 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %346 = load <2 x float>, ptr %345, align 4
  %347 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %348 = load float, ptr %347, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %69, i64 12, i1 false)
  %349 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 0
  %350 = load <2 x float>, ptr %349, align 4
  %351 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 1
  %352 = load float, ptr %351, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %72, i64 12, i1 false)
  %353 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 0
  %354 = load <2 x float>, ptr %353, align 4
  %355 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 1
  %356 = load float, ptr %355, align 4
  %357 = call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %346, float %348, <2 x float> %350, float %352, <2 x float> %354, float %356)
  %358 = getelementptr inbounds %union.CgmVec3, ptr %77, i32 0, i32 0
  store { <2 x float>, float } %357, ptr %81, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %358, ptr align 8 %81, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %82) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %72, i64 12, i1 false)
  %359 = getelementptr inbounds { <2 x float>, float }, ptr %83, i32 0, i32 0
  %360 = load <2 x float>, ptr %359, align 4
  %361 = getelementptr inbounds { <2 x float>, float }, ptr %83, i32 0, i32 1
  %362 = load float, ptr %361, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %77, i64 12, i1 false)
  %363 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 0
  %364 = load <2 x float>, ptr %363, align 4
  %365 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 1
  %366 = load float, ptr %365, align 4
  %367 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %360, float %362, <2 x float> %364, float %366)
  %368 = getelementptr inbounds %union.CgmVec3, ptr %82, i32 0, i32 0
  store { <2 x float>, float } %367, ptr %85, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %368, ptr align 8 %85, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %82, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %77) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #5
  br label %369

369:                                              ; preds = %327, %263
  call void @llvm.lifetime.start.p0(i64 12, ptr %86) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %59, i64 12, i1 false)
  %370 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 0
  %371 = load <2 x float>, ptr %370, align 4
  %372 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 1
  %373 = load float, ptr %372, align 4
  %374 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %371, float %373)
  %375 = getelementptr inbounds %union.CgmVec3, ptr %86, i32 0, i32 0
  store { <2 x float>, float } %374, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %375, ptr align 8 %88, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %86, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %59) #5
  br label %381

376:                                              ; preds = %260
  %377 = load i32, ptr %56, align 4, !tbaa !13
  %378 = sub i32 %377, 9
  %379 = zext i32 %378 to i64
  %380 = getelementptr inbounds [2 x %union.CgmVec3], ptr %53, i64 0, i64 %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %380, i64 12, i1 false), !tbaa.struct !10
  br label %381

381:                                              ; preds = %376, %369
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #5
  %382 = load ptr, ptr %8, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.anon.9, ptr %382, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %383, i64 12, i1 false)
  %384 = getelementptr inbounds { <2 x float>, float }, ptr %90, i32 0, i32 0
  %385 = load <2 x float>, ptr %384, align 4
  %386 = getelementptr inbounds { <2 x float>, float }, ptr %90, i32 0, i32 1
  %387 = load float, ptr %386, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %91, ptr align 4 %58, i64 12, i1 false)
  %388 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 0
  %389 = load <2 x float>, ptr %388, align 4
  %390 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 1
  %391 = load float, ptr %390, align 4
  %392 = call float @CgmVec3_dot(<2 x float> %385, float %387, <2 x float> %389, float %391)
  store float %392, ptr %89, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #5
  %393 = load ptr, ptr %8, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.anon.9, ptr %393, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %394, i64 12, i1 false)
  %395 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 0
  %396 = load <2 x float>, ptr %395, align 4
  %397 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 1
  %398 = load float, ptr %397, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %58, i64 12, i1 false)
  %399 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 0
  %400 = load <2 x float>, ptr %399, align 4
  %401 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 1
  %402 = load float, ptr %401, align 4
  %403 = call float @CgmVec3_dot(<2 x float> %396, float %398, <2 x float> %400, float %402)
  store float %403, ptr %92, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #5
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.anon.9, ptr %404, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 4 %405, i64 12, i1 false)
  %406 = getelementptr inbounds { <2 x float>, float }, ptr %96, i32 0, i32 0
  %407 = load <2 x float>, ptr %406, align 4
  %408 = getelementptr inbounds { <2 x float>, float }, ptr %96, i32 0, i32 1
  %409 = load float, ptr %408, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %58, i64 12, i1 false)
  %410 = getelementptr inbounds { <2 x float>, float }, ptr %97, i32 0, i32 0
  %411 = load <2 x float>, ptr %410, align 4
  %412 = getelementptr inbounds { <2 x float>, float }, ptr %97, i32 0, i32 1
  %413 = load float, ptr %412, align 4
  %414 = call float @CgmVec3_dot(<2 x float> %407, float %409, <2 x float> %411, float %413)
  store float %414, ptr %95, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %98) #5
  %415 = load float, ptr %89, align 4, !tbaa !11
  %416 = load float, ptr %92, align 4, !tbaa !11
  %417 = load float, ptr %95, align 4, !tbaa !11
  %418 = call float @cgm_min(float noundef %416, float noundef %417)
  %419 = call float @cgm_min(float noundef %415, float noundef %418)
  store float %419, ptr %98, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #5
  %420 = load float, ptr %89, align 4, !tbaa !11
  %421 = load float, ptr %92, align 4, !tbaa !11
  %422 = load float, ptr %95, align 4, !tbaa !11
  %423 = call float @cgm_max(float noundef %421, float noundef %422)
  %424 = call float @cgm_max(float noundef %420, float noundef %423)
  store float %424, ptr %99, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %100) #5
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.anon.9, ptr %425, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %426, i64 12, i1 false)
  %427 = getelementptr inbounds { <2 x float>, float }, ptr %101, i32 0, i32 0
  %428 = load <2 x float>, ptr %427, align 4
  %429 = getelementptr inbounds { <2 x float>, float }, ptr %101, i32 0, i32 1
  %430 = load float, ptr %429, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 4 %58, i64 12, i1 false)
  %431 = getelementptr inbounds { <2 x float>, float }, ptr %102, i32 0, i32 0
  %432 = load <2 x float>, ptr %431, align 4
  %433 = getelementptr inbounds { <2 x float>, float }, ptr %102, i32 0, i32 1
  %434 = load float, ptr %433, align 4
  %435 = call float @CgmVec3_dot(<2 x float> %428, float %430, <2 x float> %432, float %434)
  store float %435, ptr %100, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %103) #5
  %436 = load ptr, ptr %9, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.anon.9, ptr %436, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %437, i64 12, i1 false)
  %438 = getelementptr inbounds { <2 x float>, float }, ptr %104, i32 0, i32 0
  %439 = load <2 x float>, ptr %438, align 4
  %440 = getelementptr inbounds { <2 x float>, float }, ptr %104, i32 0, i32 1
  %441 = load float, ptr %440, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %58, i64 12, i1 false)
  %442 = getelementptr inbounds { <2 x float>, float }, ptr %105, i32 0, i32 0
  %443 = load <2 x float>, ptr %442, align 4
  %444 = getelementptr inbounds { <2 x float>, float }, ptr %105, i32 0, i32 1
  %445 = load float, ptr %444, align 4
  %446 = call float @CgmVec3_dot(<2 x float> %439, float %441, <2 x float> %443, float %445)
  store float %446, ptr %103, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %106) #5
  %447 = load ptr, ptr %9, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.anon.9, ptr %447, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %448, i64 12, i1 false)
  %449 = getelementptr inbounds { <2 x float>, float }, ptr %107, i32 0, i32 0
  %450 = load <2 x float>, ptr %449, align 4
  %451 = getelementptr inbounds { <2 x float>, float }, ptr %107, i32 0, i32 1
  %452 = load float, ptr %451, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %108, ptr align 4 %58, i64 12, i1 false)
  %453 = getelementptr inbounds { <2 x float>, float }, ptr %108, i32 0, i32 0
  %454 = load <2 x float>, ptr %453, align 4
  %455 = getelementptr inbounds { <2 x float>, float }, ptr %108, i32 0, i32 1
  %456 = load float, ptr %455, align 4
  %457 = call float @CgmVec3_dot(<2 x float> %450, float %452, <2 x float> %454, float %456)
  store float %457, ptr %106, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %109) #5
  %458 = load float, ptr %100, align 4, !tbaa !11
  %459 = load float, ptr %103, align 4, !tbaa !11
  %460 = load float, ptr %106, align 4, !tbaa !11
  %461 = call float @cgm_min(float noundef %459, float noundef %460)
  %462 = call float @cgm_min(float noundef %458, float noundef %461)
  store float %462, ptr %109, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %110) #5
  %463 = load float, ptr %100, align 4, !tbaa !11
  %464 = load float, ptr %103, align 4, !tbaa !11
  %465 = load float, ptr %106, align 4, !tbaa !11
  %466 = call float @cgm_max(float noundef %464, float noundef %465)
  %467 = call float @cgm_max(float noundef %463, float noundef %466)
  store float %467, ptr %110, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %111) #5
  %468 = load float, ptr %99, align 4, !tbaa !11
  %469 = load float, ptr %109, align 4, !tbaa !11
  %470 = fsub float %468, %469
  %471 = load float, ptr %110, align 4, !tbaa !11
  %472 = load float, ptr %98, align 4, !tbaa !11
  %473 = fsub float %471, %472
  %474 = call float @cgm_min(float noundef %470, float noundef %473)
  store float %474, ptr %111, align 4, !tbaa !11
  %475 = load float, ptr %111, align 4, !tbaa !11
  %476 = fcmp olt float %475, 0.000000e+00
  br i1 %476, label %477, label %478

477:                                              ; preds = %381
  store i8 0, ptr %7, align 1
  store i32 1, ptr %57, align 4
  br label %508

478:                                              ; preds = %381
  %479 = load float, ptr %111, align 4, !tbaa !11
  %480 = fcmp ogt float %479, 0.000000e+00
  br i1 %480, label %481, label %507

481:                                              ; preds = %478
  %482 = load float, ptr %111, align 4, !tbaa !11
  %483 = load float, ptr %55, align 4, !tbaa !11
  %484 = fcmp olt float %482, %483
  br i1 %484, label %485, label %507

485:                                              ; preds = %481
  %486 = load float, ptr %111, align 4, !tbaa !11
  store float %486, ptr %55, align 4, !tbaa !11
  %487 = load float, ptr %98, align 4, !tbaa !11
  %488 = load float, ptr %99, align 4, !tbaa !11
  %489 = load float, ptr %98, align 4, !tbaa !11
  %490 = fsub float %488, %489
  %491 = call float @llvm.fmuladd.f32(float %490, float 5.000000e-01, float %487)
  %492 = load float, ptr %109, align 4, !tbaa !11
  %493 = load float, ptr %110, align 4, !tbaa !11
  %494 = load float, ptr %109, align 4, !tbaa !11
  %495 = fsub float %493, %494
  %496 = call float @llvm.fmuladd.f32(float %495, float 5.000000e-01, float %492)
  %497 = fcmp olt float %491, %496
  store i1 false, ptr %113, align 1
  br i1 %497, label %498, label %505

498:                                              ; preds = %485
  call void @llvm.lifetime.start.p0(i64 12, ptr %112) #5
  store i1 true, ptr %113, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %114, ptr align 4 %58, i64 12, i1 false)
  %499 = getelementptr inbounds { <2 x float>, float }, ptr %114, i32 0, i32 0
  %500 = load <2 x float>, ptr %499, align 4
  %501 = getelementptr inbounds { <2 x float>, float }, ptr %114, i32 0, i32 1
  %502 = load float, ptr %501, align 4
  %503 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %500, float %502)
  %504 = getelementptr inbounds %union.CgmVec3, ptr %112, i32 0, i32 0
  store { <2 x float>, float } %503, ptr %115, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %504, ptr align 8 %115, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %112, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %112) #5
  br label %506

505:                                              ; preds = %485
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %58, i64 12, i1 false), !tbaa.struct !10
  br label %506

506:                                              ; preds = %505, %498
  br label %507

507:                                              ; preds = %506, %481, %478
  store i32 0, ptr %57, align 4
  br label %508

508:                                              ; preds = %507, %477
  call void @llvm.lifetime.end.p0(i64 4, ptr %111) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %110) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %109) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %103) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %100) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %58) #5
  %509 = load i32, ptr %57, align 4
  switch i32 %509, label %514 [
    i32 0, label %510
  ]

510:                                              ; preds = %508
  br label %511

511:                                              ; preds = %510
  %512 = load i32, ptr %56, align 4, !tbaa !13
  %513 = add i32 %512, 1
  store i32 %513, ptr %56, align 4, !tbaa !13
  br label %256, !llvm.loop !15

514:                                              ; preds = %508, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #5
  %515 = load i32, ptr %57, align 4
  switch i32 %515, label %570 [
    i32 2, label %516
  ]

516:                                              ; preds = %514
  %517 = load i8, ptr %12, align 1, !tbaa !9
  %518 = icmp ne i8 %517, 0
  br i1 %518, label %519, label %537

519:                                              ; preds = %516
  call void @llvm.lifetime.start.p0(i64 4, ptr %116) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %54, i64 12, i1 false)
  %520 = getelementptr inbounds { <2 x float>, float }, ptr %117, i32 0, i32 0
  %521 = load <2 x float>, ptr %520, align 4
  %522 = getelementptr inbounds { <2 x float>, float }, ptr %117, i32 0, i32 1
  %523 = load float, ptr %522, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 %26, i64 12, i1 false)
  %524 = getelementptr inbounds { <2 x float>, float }, ptr %118, i32 0, i32 0
  %525 = load <2 x float>, ptr %524, align 4
  %526 = getelementptr inbounds { <2 x float>, float }, ptr %118, i32 0, i32 1
  %527 = load float, ptr %526, align 4
  %528 = call float @CgmVec3_dot(<2 x float> %521, float %523, <2 x float> %525, float %527)
  store float %528, ptr %116, align 4, !tbaa !11
  %529 = load float, ptr %116, align 4, !tbaa !11
  %530 = call zeroext i8 @cgm_approx_eq(float noundef %529, float noundef 1.000000e+00)
  %531 = icmp ne i8 %530, 0
  br i1 %531, label %533, label %532

532:                                              ; preds = %519
  store i8 0, ptr %7, align 1
  store i32 1, ptr %57, align 4
  br label %534

533:                                              ; preds = %519
  store i32 0, ptr %57, align 4
  br label %534

534:                                              ; preds = %533, %532
  call void @llvm.lifetime.end.p0(i64 4, ptr %116) #5
  %535 = load i32, ptr %57, align 4
  switch i32 %535, label %570 [
    i32 0, label %536
  ]

536:                                              ; preds = %534
  br label %537

537:                                              ; preds = %536, %516
  %538 = load i8, ptr %13, align 1, !tbaa !9
  %539 = icmp ne i8 %538, 0
  br i1 %539, label %540, label %558

540:                                              ; preds = %537
  call void @llvm.lifetime.start.p0(i64 4, ptr %119) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 4 %54, i64 12, i1 false)
  %541 = getelementptr inbounds { <2 x float>, float }, ptr %120, i32 0, i32 0
  %542 = load <2 x float>, ptr %541, align 4
  %543 = getelementptr inbounds { <2 x float>, float }, ptr %120, i32 0, i32 1
  %544 = load float, ptr %543, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %45, i64 12, i1 false)
  %545 = getelementptr inbounds { <2 x float>, float }, ptr %121, i32 0, i32 0
  %546 = load <2 x float>, ptr %545, align 4
  %547 = getelementptr inbounds { <2 x float>, float }, ptr %121, i32 0, i32 1
  %548 = load float, ptr %547, align 4
  %549 = call float @CgmVec3_dot(<2 x float> %542, float %544, <2 x float> %546, float %548)
  store float %549, ptr %119, align 4, !tbaa !11
  %550 = load float, ptr %119, align 4, !tbaa !11
  %551 = call zeroext i8 @cgm_approx_eq(float noundef %550, float noundef 1.000000e+00)
  %552 = icmp ne i8 %551, 0
  br i1 %552, label %554, label %553

553:                                              ; preds = %540
  store i8 0, ptr %7, align 1
  store i32 1, ptr %57, align 4
  br label %555

554:                                              ; preds = %540
  store i32 0, ptr %57, align 4
  br label %555

555:                                              ; preds = %554, %553
  call void @llvm.lifetime.end.p0(i64 4, ptr %119) #5
  %556 = load i32, ptr %57, align 4
  switch i32 %556, label %570 [
    i32 0, label %557
  ]

557:                                              ; preds = %555
  br label %558

558:                                              ; preds = %557, %537
  %559 = load ptr, ptr %10, align 8, !tbaa !5
  %560 = icmp ne ptr %559, null
  br i1 %560, label %561, label %563

561:                                              ; preds = %558
  %562 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %562, ptr align 4 %54, i64 12, i1 false), !tbaa.struct !10
  br label %563

563:                                              ; preds = %561, %558
  %564 = load ptr, ptr %11, align 8, !tbaa !5
  %565 = icmp ne ptr %564, null
  br i1 %565, label %566, label %569

566:                                              ; preds = %563
  %567 = load float, ptr %55, align 4, !tbaa !11
  %568 = load ptr, ptr %11, align 8, !tbaa !5
  store float %567, ptr %568, align 4, !tbaa !11
  br label %569

569:                                              ; preds = %566, %563
  store i8 1, ptr %7, align 1
  store i32 1, ptr %57, align 4
  br label %570

570:                                              ; preds = %569, %555, %534, %514
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  %571 = load i8, ptr %7, align 1
  ret i8 %571
}

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 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 #5 = { nounwind }

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

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

%union.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

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

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

; 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 #2

; 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 #2

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i8 @cgm_3d_triangle_vs_triangle(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i8 noundef zeroext %4, i8 noundef zeroext %5) local_unnamed_addr #2 {
  %7 = alloca [9 x [2 x %union.CgmVec3]], align 16
  %8 = alloca [2 x %union.CgmVec3], align 16
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %.sroa.0290.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2291.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 20
  %.sroa.2291.0.copyload = load float, ptr %.sroa.2291.0..sroa_idx, align 4
  %.sroa.0288.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2289.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.2289.0.copyload = load float, ptr %.sroa.2289.0..sroa_idx, align 4
  %10 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0290.0.copyload, float %.sroa.2291.0.copyload, <2 x float> %.sroa.0288.0.copyload, float %.sroa.2289.0.copyload)
  %.fca.0.extract284 = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract285 = extractvalue { <2 x float>, float } %10, 1
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.0274.0.copyload = load <2 x float>, ptr %11, align 4
  %.sroa.2275.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.2275.0.copyload = load float, ptr %.sroa.2275.0..sroa_idx, align 4
  %.sroa.0272.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2273.0.copyload = load float, ptr %.sroa.2291.0..sroa_idx, align 4
  %12 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0274.0.copyload, float %.sroa.2275.0.copyload, <2 x float> %.sroa.0272.0.copyload, float %.sroa.2273.0.copyload)
  %.fca.0.extract268 = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract269 = extractvalue { <2 x float>, float } %12, 1
  %.sroa.0258.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2259.0.copyload = load float, ptr %.sroa.2289.0..sroa_idx, align 4
  %.sroa.0256.0.copyload = load <2 x float>, ptr %11, align 4
  %.sroa.2257.0.copyload = load float, ptr %.sroa.2275.0..sroa_idx, align 4
  %13 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0258.0.copyload, float %.sroa.2259.0.copyload, <2 x float> %.sroa.0256.0.copyload, float %.sroa.2257.0.copyload)
  %.fca.0.extract252 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract253 = extractvalue { <2 x float>, float } %13, 1
  %14 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.fca.0.extract284, float %.fca.1.extract285, <2 x float> %.fca.0.extract268, float %.fca.1.extract269)
  %.fca.0.extract240 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract241 = extractvalue { <2 x float>, float } %14, 1
  %15 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract240, float %.fca.1.extract241)
  %.fca.0.extract234 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract235 = extractvalue { <2 x float>, float } %15, 1
  %16 = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.0224.0.copyload = load <2 x float>, ptr %16, align 4
  %.sroa.2225.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %.sroa.2225.0.copyload = load float, ptr %.sroa.2225.0..sroa_idx, align 4
  %.sroa.0222.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2223.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.2223.0.copyload = load float, ptr %.sroa.2223.0..sroa_idx, align 4
  %17 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0224.0.copyload, float %.sroa.2225.0.copyload, <2 x float> %.sroa.0222.0.copyload, float %.sroa.2223.0.copyload)
  %.fca.0.extract218 = extractvalue { <2 x float>, float } %17, 0
  %.fca.1.extract219 = extractvalue { <2 x float>, float } %17, 1
  %18 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.0208.0.copyload = load <2 x float>, ptr %18, align 4
  %.sroa.2209.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.2209.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %.sroa.0206.0.copyload = load <2 x float>, ptr %16, align 4
  %.sroa.2207.0.copyload = load float, ptr %.sroa.2225.0..sroa_idx, align 4
  %19 = 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 } %19, 0
  %.fca.1.extract203 = extractvalue { <2 x float>, float } %19, 1
  %.sroa.0193.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2194.0.copyload = load float, ptr %.sroa.2223.0..sroa_idx, align 4
  %.sroa.0191.0.copyload = load <2 x float>, ptr %18, align 4
  %.sroa.2192.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %20 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0193.0.copyload, float %.sroa.2194.0.copyload, <2 x float> %.sroa.0191.0.copyload, float %.sroa.2192.0.copyload)
  %.fca.0.extract187 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract188 = extractvalue { <2 x float>, float } %20, 1
  %21 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.fca.0.extract218, float %.fca.1.extract219, <2 x float> %.fca.0.extract202, float %.fca.1.extract203)
  %.fca.0.extract175 = extractvalue { <2 x float>, float } %21, 0
  %.fca.1.extract176 = extractvalue { <2 x float>, float } %21, 1
  %22 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract175, float %.fca.1.extract176)
  %.fca.0.extract169 = extractvalue { <2 x float>, float } %22, 0
  %.fca.1.extract170 = extractvalue { <2 x float>, float } %22, 1
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %7) #4
  store <2 x float> %.fca.0.extract284, ptr %7, align 16
  %.sroa.7295.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract285, ptr %.sroa.7295.0..sroa_idx, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %7, i64 12
  store <2 x float> %.fca.0.extract218, ptr %23, align 4
  %.sroa.7229.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 20
  store float %.fca.1.extract219, ptr %.sroa.7229.0..sroa_idx, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %7, i64 24
  store <2 x float> %.fca.0.extract284, ptr %24, align 8
  %.sroa.7295.0..sroa_idx296 = getelementptr inbounds i8, ptr %7, i64 32
  store float %.fca.1.extract285, ptr %.sroa.7295.0..sroa_idx296, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %7, i64 36
  store <2 x float> %.fca.0.extract202, ptr %25, align 4
  %.sroa.7213.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 44
  store float %.fca.1.extract203, ptr %.sroa.7213.0..sroa_idx, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %7, i64 48
  store <2 x float> %.fca.0.extract284, ptr %26, align 16
  %.sroa.7295.0..sroa_idx298 = getelementptr inbounds i8, ptr %7, i64 56
  store float %.fca.1.extract285, ptr %.sroa.7295.0..sroa_idx298, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %7, i64 60
  store <2 x float> %.fca.0.extract187, ptr %27, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 68
  store float %.fca.1.extract188, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %7, i64 72
  store <2 x float> %.fca.0.extract268, ptr %28, align 8
  %.sroa.7279.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 80
  store float %.fca.1.extract269, ptr %.sroa.7279.0..sroa_idx, align 16, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %7, i64 84
  store <2 x float> %.fca.0.extract218, ptr %29, align 4
  %.sroa.7229.0..sroa_idx230 = getelementptr inbounds i8, ptr %7, i64 92
  store float %.fca.1.extract219, ptr %.sroa.7229.0..sroa_idx230, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %7, i64 96
  store <2 x float> %.fca.0.extract268, ptr %30, align 16
  %.sroa.7279.0..sroa_idx280 = getelementptr inbounds i8, ptr %7, i64 104
  store float %.fca.1.extract269, ptr %.sroa.7279.0..sroa_idx280, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %7, i64 108
  store <2 x float> %.fca.0.extract202, ptr %31, align 4
  %.sroa.7213.0..sroa_idx214 = getelementptr inbounds i8, ptr %7, i64 116
  store float %.fca.1.extract203, ptr %.sroa.7213.0..sroa_idx214, align 4, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %7, i64 120
  store <2 x float> %.fca.0.extract268, ptr %32, align 8
  %.sroa.7279.0..sroa_idx282 = getelementptr inbounds i8, ptr %7, i64 128
  store float %.fca.1.extract269, ptr %.sroa.7279.0..sroa_idx282, align 16, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %7, i64 132
  store <2 x float> %.fca.0.extract187, ptr %33, align 4
  %.sroa.6.0..sroa_idx198 = getelementptr inbounds i8, ptr %7, i64 140
  store float %.fca.1.extract188, ptr %.sroa.6.0..sroa_idx198, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %7, i64 144
  store <2 x float> %.fca.0.extract252, ptr %34, align 16
  %.sroa.6263.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 152
  store float %.fca.1.extract253, ptr %.sroa.6263.0..sroa_idx, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %7, i64 156
  store <2 x float> %.fca.0.extract218, ptr %35, align 4
  %.sroa.7229.0..sroa_idx232 = getelementptr inbounds i8, ptr %7, i64 164
  store float %.fca.1.extract219, ptr %.sroa.7229.0..sroa_idx232, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %7, i64 168
  store <2 x float> %.fca.0.extract252, ptr %36, align 8
  %.sroa.6263.0..sroa_idx264 = getelementptr inbounds i8, ptr %7, i64 176
  store float %.fca.1.extract253, ptr %.sroa.6263.0..sroa_idx264, align 16, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %7, i64 180
  store <2 x float> %.fca.0.extract202, ptr %37, align 4
  %.sroa.7213.0..sroa_idx216 = getelementptr inbounds i8, ptr %7, i64 188
  store float %.fca.1.extract203, ptr %.sroa.7213.0..sroa_idx216, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %7, i64 192
  store <2 x float> %.fca.0.extract252, ptr %38, align 16
  %.sroa.6263.0..sroa_idx266 = getelementptr inbounds i8, ptr %7, i64 200
  store float %.fca.1.extract253, ptr %.sroa.6263.0..sroa_idx266, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %7, i64 204
  store <2 x float> %.fca.0.extract187, ptr %39, align 4
  %.sroa.6.0..sroa_idx200 = getelementptr inbounds i8, ptr %7, i64 212
  store float %.fca.1.extract188, ptr %.sroa.6.0..sroa_idx200, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  store <2 x float> %.fca.0.extract234, ptr %8, align 16
  %.sroa.5251.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract235, ptr %.sroa.5251.0..sroa_idx, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %8, i64 12
  store <2 x float> %.fca.0.extract169, ptr %40, align 4
  %.sroa.5186.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 20
  store float %.fca.1.extract170, ptr %.sroa.5186.0..sroa_idx, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %6, %104
  %indvars.iv = phi i64 [ 0, %6 ], [ %indvars.iv.next, %104 ]
  %.sroa.7168.0372 = phi float [ undef, %6 ], [ %.sroa.7168.2.ph, %104 ]
  %.sroa.0166.0371 = phi <2 x float> [ undef, %6 ], [ %.sroa.0166.2.ph, %104 ]
  %.0329370 = phi float [ 0x7FF0000000000000, %6 ], [ %.2331.ph, %104 ]
  %42 = icmp ult i64 %indvars.iv, 9
  br i1 %42, label %43, label %67

43:                                               ; preds = %41
  %44 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %7, i64 0, i64 %indvars.iv
  %.sroa.0138.0.copyload = load <2 x float>, ptr %44, align 8
  %.sroa.14.0..sroa_idx = getelementptr inbounds i8, ptr %44, i64 8
  %.sroa.14.0.copyload = load float, ptr %.sroa.14.0..sroa_idx, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 12
  %.sroa.0131.0.copyload = load <2 x float>, ptr %45, align 4
  %.sroa.2132.0..sroa_idx = getelementptr inbounds i8, ptr %44, i64 20
  %.sroa.2132.0.copyload = load float, ptr %.sroa.2132.0..sroa_idx, align 4
  %46 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.sroa.0138.0.copyload, float %.sroa.14.0.copyload, <2 x float> %.sroa.0131.0.copyload, float %.sroa.2132.0.copyload)
  %.fca.0.extract127 = extractvalue { <2 x float>, float } %46, 0
  %.fca.1.extract128 = extractvalue { <2 x float>, float } %46, 1
  %47 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract127, float %.fca.1.extract128, <2 x float> %.fca.0.extract127, float %.fca.1.extract128)
  %48 = tail call zeroext i8 @cgm_approx_eq(float noundef %47, float noundef 0.000000e+00)
  %.not = icmp eq i8 %48, 0
  br i1 %.not, label %65, label %49

49:                                               ; preds = %43
  %.lhs.trunc = trunc nuw i64 %indvars.iv to i8
  %50 = udiv i8 %.lhs.trunc, 3
  %51 = urem i8 %.lhs.trunc, 3
  %52 = zext nneg i8 %50 to i64
  %53 = getelementptr inbounds [3 x %union.CgmVec3], ptr %0, i64 0, i64 %52
  %.sroa.0114.0.copyload = load <2 x float>, ptr %53, align 4
  %.sroa.5116.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.5116.0.copyload = load float, ptr %.sroa.5116.0..sroa_idx, align 4, !tbaa !5
  %narrow = add nuw nsw i8 %50, 1
  %54 = icmp eq i8 %narrow, 3
  %narrow362 = select i1 %54, i8 0, i8 %narrow
  %55 = zext nneg i8 %narrow362 to i64
  %56 = getelementptr inbounds [3 x %union.CgmVec3], ptr %0, i64 0, i64 %55
  %.sroa.0112.0.copyload = load <2 x float>, ptr %56, align 4
  %.sroa.4113.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  %.sroa.4113.0.copyload = load float, ptr %.sroa.4113.0..sroa_idx, align 4, !tbaa !5
  %57 = zext nneg i8 %51 to i64
  %58 = getelementptr inbounds [3 x %union.CgmVec3], ptr %1, i64 0, i64 %57
  %.sroa.0110.0.copyload = load <2 x float>, ptr %58, align 4
  %.sroa.4111.0..sroa_idx = getelementptr inbounds i8, ptr %58, i64 8
  %.sroa.4111.0.copyload = load float, ptr %.sroa.4111.0..sroa_idx, align 4, !tbaa !5
  %narrow363 = add nuw nsw i8 %51, 1
  %59 = icmp eq i8 %narrow363, 3
  %narrow364 = select i1 %59, i8 0, i8 %narrow363
  %60 = zext nneg i8 %narrow364 to i64
  %61 = getelementptr inbounds [3 x %union.CgmVec3], ptr %1, i64 0, i64 %60
  %.sroa.0108.0.copyload = load <2 x float>, ptr %61, align 4
  %.sroa.4109.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 8
  %.sroa.4109.0.copyload = load float, ptr %.sroa.4109.0..sroa_idx, align 4, !tbaa !5
  %62 = tail call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %.sroa.0110.0.copyload, float %.sroa.4111.0.copyload, <2 x float> %.sroa.0108.0.copyload, float %.sroa.4109.0.copyload, <2 x float> %.sroa.0114.0.copyload, float %.sroa.5116.0.copyload)
  %.fca.0.extract96 = extractvalue { <2 x float>, float } %62, 0
  %.fca.1.extract97 = extractvalue { <2 x float>, float } %62, 1
  %63 = tail call { <2 x float>, float } @cgm_line_get_projected_pt(<2 x float> %.sroa.0114.0.copyload, float %.sroa.5116.0.copyload, <2 x float> %.sroa.0112.0.copyload, float %.sroa.4113.0.copyload, <2 x float> %.fca.0.extract96, float %.fca.1.extract97)
  %.fca.0.extract84 = extractvalue { <2 x float>, float } %63, 0
  %.fca.1.extract85 = extractvalue { <2 x float>, float } %63, 1
  %64 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract96, float %.fca.1.extract97, <2 x float> %.fca.0.extract84, float %.fca.1.extract85)
  %.fca.0.extract74 = extractvalue { <2 x float>, float } %64, 0
  %.fca.1.extract75 = extractvalue { <2 x float>, float } %64, 1
  br label %65

65:                                               ; preds = %49, %43
  %.sroa.0135.0 = phi <2 x float> [ %.fca.0.extract74, %49 ], [ %.fca.0.extract127, %43 ]
  %.sroa.7.0 = phi float [ %.fca.1.extract75, %49 ], [ %.fca.1.extract128, %43 ]
  %66 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.sroa.0135.0, float %.sroa.7.0)
  %.fca.0.extract66 = extractvalue { <2 x float>, float } %66, 0
  %.fca.1.extract67 = extractvalue { <2 x float>, float } %66, 1
  br label %70

67:                                               ; preds = %41
  %68 = add nsw i64 %indvars.iv, -9
  %69 = getelementptr inbounds [2 x %union.CgmVec3], ptr %8, i64 0, i64 %68
  %.sroa.0138.0.copyload146 = load <2 x float>, ptr %69, align 4
  %.sroa.14.0..sroa_idx148 = getelementptr inbounds i8, ptr %69, i64 8
  %.sroa.14.0.copyload149 = load float, ptr %.sroa.14.0..sroa_idx148, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %67, %65
  %.sroa.0138.0 = phi <2 x float> [ %.fca.0.extract66, %65 ], [ %.sroa.0138.0.copyload146, %67 ]
  %.sroa.14.0 = phi float [ %.fca.1.extract67, %65 ], [ %.sroa.14.0.copyload149, %67 ]
  %.sroa.062.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.263.0.copyload = load float, ptr %.sroa.2289.0..sroa_idx, align 4
  %71 = tail call float @CgmVec3_dot(<2 x float> %.sroa.062.0.copyload, float %.sroa.263.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %.sroa.056.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.257.0.copyload = load float, ptr %.sroa.2291.0..sroa_idx, align 4
  %72 = tail call float @CgmVec3_dot(<2 x float> %.sroa.056.0.copyload, float %.sroa.257.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %.sroa.050.0.copyload = load <2 x float>, ptr %11, align 4
  %.sroa.251.0.copyload = load float, ptr %.sroa.2275.0..sroa_idx, align 4
  %73 = tail call float @CgmVec3_dot(<2 x float> %.sroa.050.0.copyload, float %.sroa.251.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %74 = tail call float @cgm_min(float noundef %72, float noundef %73)
  %75 = tail call float @cgm_min(float noundef %71, float noundef %74)
  %76 = tail call float @cgm_max(float noundef %72, float noundef %73)
  %77 = tail call float @cgm_max(float noundef %71, float noundef %76)
  %.sroa.039.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.240.0.copyload = load float, ptr %.sroa.2223.0..sroa_idx, align 4
  %78 = tail call float @CgmVec3_dot(<2 x float> %.sroa.039.0.copyload, float %.sroa.240.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %.sroa.033.0.copyload = load <2 x float>, ptr %16, align 4
  %.sroa.234.0.copyload = load float, ptr %.sroa.2225.0..sroa_idx, align 4
  %79 = tail call float @CgmVec3_dot(<2 x float> %.sroa.033.0.copyload, float %.sroa.234.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %.sroa.027.0.copyload = load <2 x float>, ptr %18, align 4
  %.sroa.228.0.copyload = load float, ptr %.sroa.2209.0..sroa_idx, align 4
  %80 = tail call float @CgmVec3_dot(<2 x float> %.sroa.027.0.copyload, float %.sroa.228.0.copyload, <2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %81 = tail call float @cgm_min(float noundef %79, float noundef %80)
  %82 = tail call float @cgm_min(float noundef %78, float noundef %81)
  %83 = tail call float @cgm_max(float noundef %79, float noundef %80)
  %84 = tail call float @cgm_max(float noundef %78, float noundef %83)
  %85 = fsub float %77, %82
  %86 = fsub float %84, %75
  %87 = tail call float @cgm_min(float noundef %85, float noundef %86)
  %88 = fcmp uge float %87, 0.000000e+00
  br i1 %88, label %89, label %.loopexit

89:                                               ; preds = %70
  %90 = fcmp ogt float %87, 0.000000e+00
  %91 = fcmp olt float %87, %.0329370
  %or.cond = select i1 %90, i1 %91, i1 false
  br i1 %or.cond, label %92, label %104

92:                                               ; preds = %89
  %93 = insertelement <2 x float> poison, float %77, i64 0
  %94 = insertelement <2 x float> %93, float %84, i64 1
  %95 = insertelement <2 x float> poison, float %75, i64 0
  %96 = insertelement <2 x float> %95, float %82, i64 1
  %97 = fsub <2 x float> %94, %96
  %98 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %97, <2 x float> <float 5.000000e-01, float 5.000000e-01>, <2 x float> %96)
  %99 = extractelement <2 x float> %98, i64 0
  %100 = extractelement <2 x float> %98, i64 1
  %101 = fcmp olt float %99, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %92
  %103 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.sroa.0138.0, float %.sroa.14.0)
  %.fca.0.extract = extractvalue { <2 x float>, float } %103, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %103, 1
  br label %104

104:                                              ; preds = %89, %102, %92
  %.2331.ph = phi float [ %87, %92 ], [ %.0329370, %89 ], [ %87, %102 ]
  %.sroa.0166.2.ph = phi <2 x float> [ %.sroa.0138.0, %92 ], [ %.sroa.0166.0371, %89 ], [ %.fca.0.extract, %102 ]
  %.sroa.7168.2.ph = phi float [ %.sroa.14.0, %92 ], [ %.sroa.7168.0372, %89 ], [ %.fca.1.extract, %102 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 11
  br i1 %exitcond, label %105, label %41, !llvm.loop !8

105:                                              ; preds = %104
  %.not341 = icmp eq i8 %4, 0
  br i1 %.not341, label %109, label %106

106:                                              ; preds = %105
  %107 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0166.2.ph, float %.sroa.7168.2.ph, <2 x float> %.fca.0.extract234, float %.fca.1.extract235)
  %108 = tail call zeroext i8 @cgm_approx_eq(float noundef %107, float noundef 1.000000e+00)
  %.not342.not = icmp eq i8 %108, 0
  br i1 %.not342.not, label %.loopexit, label %109

109:                                              ; preds = %106, %105
  %.not343 = icmp eq i8 %5, 0
  br i1 %.not343, label %113, label %110

110:                                              ; preds = %109
  %111 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0166.2.ph, float %.sroa.7168.2.ph, <2 x float> %.fca.0.extract169, float %.fca.1.extract170)
  %112 = tail call zeroext i8 @cgm_approx_eq(float noundef %111, float noundef 1.000000e+00)
  %.not344.not = icmp eq i8 %112, 0
  br i1 %.not344.not, label %.loopexit, label %113

113:                                              ; preds = %110, %109
  %.not345 = icmp eq ptr %2, null
  br i1 %.not345, label %115, label %114

114:                                              ; preds = %113
  store <2 x float> %.sroa.0166.2.ph, ptr %2, align 4
  %.sroa.7168.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.sroa.7168.2.ph, ptr %.sroa.7168.0..sroa_idx, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %114, %113
  %.not346 = icmp eq ptr %3, null
  br i1 %.not346, label %.loopexit, label %116

116:                                              ; preds = %115
  store float %.2331.ph, ptr %3, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %70, %115, %116, %106, %110
  %.6 = phi i8 [ 0, %110 ], [ 0, %106 ], [ 1, %116 ], [ 1, %115 ], [ 0, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %7) #4
  ret i8 %.6
}

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

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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass