; LLVM IR from heroseh/cgm :: cgm (cgm_3d_capsule_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.CgmCapsule3d = type { %union.CgmVec3, %union.CgmVec3, 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: nounwind uwtable
declare dso_local float @cgm_clamp(float noundef, 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_add(<2 x float>, float, <2 x float>, float) #4

; 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_mul_scalar(<2 x float>, float, float noundef) #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 } @CgmCapsule3d_get_projected_pt(ptr noundef, <2 x float>, float) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @cgm_3d_capsule_vs_triangle(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i8 noundef zeroext %4) #4 {
  %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 8
  %15 = alloca %union.CgmVec3, align 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca { <2 x float>, float }, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %union.CgmVec3, align 4
  %20 = alloca %union.CgmVec3, align 4
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca { <2 x float>, float }, align 8
  %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 { <2 x float>, float }, align 4
  %28 = alloca { <2 x float>, float }, align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca [3 x %union.CgmVec3], align 16
  %31 = alloca [7 x %union.CgmVec3], align 16
  %32 = alloca i32, align 4
  %33 = alloca %union.CgmVec3, align 4
  %34 = alloca %union.CgmVec3, align 4
  %35 = alloca %union.CgmVec3, align 4
  %36 = alloca { <2 x float>, float }, align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca float, align 4
  %40 = alloca { <2 x float>, float }, align 4
  %41 = alloca { <2 x float>, float }, align 4
  %42 = alloca float, align 4
  %43 = alloca %union.CgmVec3, align 4
  %44 = alloca { <2 x float>, float }, align 4
  %45 = alloca { <2 x float>, float }, align 4
  %46 = alloca { <2 x float>, float }, align 8
  %47 = alloca { <2 x float>, float }, align 4
  %48 = alloca { <2 x float>, float }, align 4
  %49 = alloca %union.CgmVec3, align 4
  %50 = alloca %union.CgmVec3, align 4
  %51 = alloca { <2 x float>, float }, align 4
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca { <2 x float>, float }, align 4
  %54 = alloca { <2 x float>, float }, align 4
  %55 = alloca { <2 x float>, float }, align 8
  %56 = alloca %union.CgmVec3, align 4
  %57 = alloca { <2 x float>, float }, align 4
  %58 = alloca { <2 x float>, float }, align 4
  %59 = alloca { <2 x float>, float }, align 8
  %60 = alloca { <2 x float>, float }, align 4
  %61 = alloca { <2 x float>, float }, align 4
  %62 = alloca %union.CgmVec3, align 4
  %63 = alloca %union.CgmVec3, 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 4
  %68 = alloca { <2 x float>, float }, align 8
  %69 = alloca %union.CgmVec3, align 4
  %70 = alloca { <2 x float>, float }, align 4
  %71 = alloca { <2 x float>, float }, align 8
  %72 = alloca %union.CgmVec3, align 4
  %73 = alloca { <2 x float>, float }, align 4
  %74 = alloca { <2 x float>, float }, align 8
  %75 = alloca %union.CgmVec3, align 4
  %76 = alloca %union.CgmVec3, align 4
  %77 = alloca { <2 x float>, float }, align 4
  %78 = alloca { <2 x float>, float }, align 4
  %79 = alloca { <2 x float>, float }, align 8
  %80 = alloca { <2 x float>, float }, align 4
  %81 = alloca { <2 x float>, float }, align 8
  %82 = alloca %union.CgmVec3, align 4
  %83 = alloca %union.CgmVec3, align 4
  %84 = alloca { <2 x float>, float }, align 4
  %85 = alloca { <2 x float>, float }, align 4
  %86 = alloca { <2 x float>, float }, align 8
  %87 = alloca { <2 x float>, float }, align 4
  %88 = alloca { <2 x float>, float }, align 8
  %89 = alloca %union.CgmVec3, align 4
  %90 = alloca %union.CgmVec3, align 4
  %91 = alloca { <2 x float>, float }, align 16
  %92 = alloca { <2 x float>, float }, align 4
  %93 = alloca { <2 x float>, float }, align 8
  %94 = alloca { <2 x float>, float }, align 4
  %95 = alloca { <2 x float>, float }, align 8
  %96 = alloca [3 x [2 x %union.CgmVec3]], align 16
  %97 = alloca %union.CgmVec3, align 4
  %98 = alloca float, align 4
  %99 = alloca i32, align 4
  %100 = alloca i32, align 4
  %101 = alloca %union.CgmVec3, align 4
  %102 = alloca %union.CgmVec3, align 4
  %103 = alloca { <2 x float>, float }, align 4
  %104 = alloca { <2 x float>, float }, align 4
  %105 = alloca { <2 x float>, float }, align 8
  %106 = alloca float, align 4
  %107 = alloca { <2 x float>, float }, align 4
  %108 = alloca { <2 x float>, float }, align 4
  %109 = alloca %union.CgmVec3, align 4
  %110 = alloca { <2 x float>, float }, align 4
  %111 = alloca { <2 x float>, float }, align 8
  %112 = alloca float, align 4
  %113 = alloca { <2 x float>, float }, align 4
  %114 = alloca { <2 x float>, float }, align 4
  %115 = alloca float, align 4
  %116 = alloca { <2 x float>, float }, align 4
  %117 = alloca { <2 x float>, float }, align 4
  %118 = alloca float, align 4
  %119 = alloca float, align 4
  %120 = alloca float, align 4
  %121 = alloca { <2 x float>, float }, align 4
  %122 = alloca { <2 x float>, float }, align 4
  %123 = alloca float, align 4
  %124 = alloca { <2 x float>, float }, align 4
  %125 = alloca { <2 x float>, float }, align 4
  %126 = alloca float, align 4
  %127 = alloca { <2 x float>, float }, align 4
  %128 = alloca { <2 x float>, float }, align 4
  %129 = alloca float, align 4
  %130 = alloca float, align 4
  %131 = alloca float, align 4
  %132 = alloca %union.CgmVec3, align 4
  %133 = alloca i1, align 1
  %134 = alloca { <2 x float>, float }, align 4
  %135 = alloca { <2 x float>, float }, align 8
  %136 = alloca float, align 4
  %137 = alloca { <2 x float>, float }, align 4
  %138 = 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) #5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.CgmCapsule3d, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.CgmCapsule3d, ptr %141, i32 0, i32 2
  %143 = load float, ptr %142, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %140, i64 12, i1 false)
  %144 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  %145 = load <2 x float>, ptr %144, align 4
  %146 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  %147 = load float, ptr %146, align 4
  %148 = call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %145, float %147, float noundef %143)
  %149 = getelementptr inbounds %union.CgmVec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %148, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %149, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.CgmCapsule3d, ptr %150, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %151, i64 12, i1 false)
  %152 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %153 = load <2 x float>, ptr %152, align 4
  %154 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %155 = load float, ptr %154, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %12, i64 12, i1 false)
  %156 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 0
  %157 = load <2 x float>, ptr %156, align 4
  %158 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %153, float %155, <2 x float> %157, float %159)
  %161 = getelementptr inbounds %union.CgmVec3, ptr %15, i32 0, i32 0
  store { <2 x float>, float } %160, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %161, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #5
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.CgmCapsule3d, ptr %162, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %12, i64 12, i1 false)
  %164 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %165 = load <2 x float>, ptr %164, align 4
  %166 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %167 = load float, ptr %166, align 4
  %168 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %165, float %167)
  %169 = getelementptr inbounds %union.CgmVec3, ptr %20, i32 0, i32 0
  store { <2 x float>, float } %168, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %163, i64 12, i1 false)
  %170 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 0
  %171 = load <2 x float>, ptr %170, align 4
  %172 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %20, i64 12, i1 false)
  %174 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 0
  %175 = load <2 x float>, ptr %174, align 4
  %176 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  %178 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %171, float %173, <2 x float> %175, float %177)
  %179 = getelementptr inbounds %union.CgmVec3, ptr %19, i32 0, i32 0
  store { <2 x float>, float } %178, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %179, 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 %27, ptr align 4 %19, i64 12, i1 false)
  %180 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 0
  %181 = load <2 x float>, ptr %180, align 4
  %182 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 1
  %183 = load float, ptr %182, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %15, i64 12, i1 false)
  %184 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 0
  %185 = load <2 x float>, ptr %184, align 4
  %186 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 1
  %187 = load float, ptr %186, align 4
  %188 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %181, float %183, <2 x float> %185, float %187)
  %189 = getelementptr inbounds %union.CgmVec3, ptr %26, i32 0, i32 0
  store { <2 x float>, float } %188, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %189, ptr align 8 %29, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 84, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !13
  br label %190

190:                                              ; preds = %368, %5
  %191 = load i32, ptr %32, align 4, !tbaa !13
  %192 = icmp ult i32 %191, 3
  br i1 %192, label %194, label %193

193:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %371

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #5
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = load i32, ptr %32, align 4, !tbaa !13
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds [3 x %union.CgmVec3], ptr %195, i64 0, i64 %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %198, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #5
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load i32, ptr %32, align 4, !tbaa !13
  %201 = add i32 %200, 1
  %202 = icmp eq i32 %201, 3
  br i1 %202, label %203, label %204

203:                                              ; preds = %194
  br label %207

204:                                              ; preds = %194
  %205 = load i32, ptr %32, align 4, !tbaa !13
  %206 = add i32 %205, 1
  br label %207

207:                                              ; preds = %204, %203
  %208 = phi i32 [ 0, %203 ], [ %206, %204 ]
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds [3 x %union.CgmVec3], ptr %199, i64 0, i64 %209
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %210, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %34, i64 12, i1 false)
  %211 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 0
  %212 = load <2 x float>, ptr %211, align 4
  %213 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 1
  %214 = load float, ptr %213, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %33, i64 12, i1 false)
  %215 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %216 = load <2 x float>, ptr %215, align 4
  %217 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %218 = load float, ptr %217, align 4
  %219 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %212, float %214, <2 x float> %216, float %218)
  %220 = getelementptr inbounds %union.CgmVec3, ptr %35, i32 0, i32 0
  store { <2 x float>, float } %219, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %220, ptr align 8 %38, i64 12, i1 false)
  %221 = load i32, ptr %32, align 4, !tbaa !13
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 %222
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %223, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %35, i64 12, i1 false)
  %224 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 0
  %225 = load <2 x float>, ptr %224, align 4
  %226 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 1
  %227 = load float, ptr %226, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %35, i64 12, i1 false)
  %228 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 0
  %229 = load <2 x float>, ptr %228, align 4
  %230 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  %232 = call float @CgmVec3_dot(<2 x float> %225, float %227, <2 x float> %229, float %231)
  store float %232, ptr %39, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %15, i64 12, i1 false)
  %233 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 0
  %234 = load <2 x float>, ptr %233, align 4
  %235 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 1
  %236 = load float, ptr %235, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %33, i64 12, i1 false)
  %237 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 0
  %238 = load <2 x float>, ptr %237, align 4
  %239 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 1
  %240 = load float, ptr %239, align 4
  %241 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %234, float %236, <2 x float> %238, float %240)
  %242 = getelementptr inbounds %union.CgmVec3, ptr %43, i32 0, i32 0
  store { <2 x float>, float } %241, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %242, ptr align 8 %46, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %43, i64 12, i1 false)
  %243 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 0
  %244 = load <2 x float>, ptr %243, align 4
  %245 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 1
  %246 = load float, ptr %245, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %35, i64 12, i1 false)
  %247 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 0
  %248 = load <2 x float>, ptr %247, align 4
  %249 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 1
  %250 = load float, ptr %249, align 4
  %251 = call float @CgmVec3_dot(<2 x float> %244, float %246, <2 x float> %248, float %250)
  %252 = load float, ptr %39, align 4, !tbaa !16
  %253 = fdiv float %251, %252
  store float %253, ptr %42, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #5
  %254 = load float, ptr %42, align 4, !tbaa !16
  %255 = call float @cgm_clamp(float noundef %254, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %35, i64 12, i1 false)
  %256 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 0
  %257 = load <2 x float>, ptr %256, align 4
  %258 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 1
  %259 = load float, ptr %258, align 4
  %260 = call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %257, float %259, float noundef %255)
  %261 = getelementptr inbounds %union.CgmVec3, ptr %50, i32 0, i32 0
  store { <2 x float>, float } %260, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %261, ptr align 8 %52, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %33, i64 12, i1 false)
  %262 = getelementptr inbounds { <2 x float>, float }, ptr %53, i32 0, i32 0
  %263 = load <2 x float>, ptr %262, align 4
  %264 = getelementptr inbounds { <2 x float>, float }, ptr %53, i32 0, i32 1
  %265 = load float, ptr %264, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %50, i64 12, i1 false)
  %266 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 0
  %267 = load <2 x float>, ptr %266, align 4
  %268 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 1
  %269 = load float, ptr %268, align 4
  %270 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %263, float %265, <2 x float> %267, float %269)
  %271 = getelementptr inbounds %union.CgmVec3, ptr %49, i32 0, i32 0
  store { <2 x float>, float } %270, ptr %55, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %271, ptr align 8 %55, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %19, i64 12, i1 false)
  %272 = getelementptr inbounds { <2 x float>, float }, ptr %57, i32 0, i32 0
  %273 = load <2 x float>, ptr %272, align 4
  %274 = getelementptr inbounds { <2 x float>, float }, ptr %57, i32 0, i32 1
  %275 = load float, ptr %274, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %33, i64 12, i1 false)
  %276 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 0
  %277 = load <2 x float>, ptr %276, align 4
  %278 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 1
  %279 = load float, ptr %278, align 4
  %280 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %273, float %275, <2 x float> %277, float %279)
  %281 = getelementptr inbounds %union.CgmVec3, ptr %56, i32 0, i32 0
  store { <2 x float>, float } %280, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %281, ptr align 8 %59, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %56, i64 12, i1 false)
  %282 = getelementptr inbounds { <2 x float>, float }, ptr %60, i32 0, i32 0
  %283 = load <2 x float>, ptr %282, align 4
  %284 = getelementptr inbounds { <2 x float>, float }, ptr %60, i32 0, i32 1
  %285 = load float, ptr %284, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %35, i64 12, i1 false)
  %286 = getelementptr inbounds { <2 x float>, float }, ptr %61, i32 0, i32 0
  %287 = load <2 x float>, ptr %286, align 4
  %288 = getelementptr inbounds { <2 x float>, float }, ptr %61, 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)
  %291 = load float, ptr %39, align 4, !tbaa !16
  %292 = fdiv float %290, %291
  store float %292, ptr %42, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #5
  %293 = load float, ptr %42, align 4, !tbaa !16
  %294 = call float @cgm_clamp(float noundef %293, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %35, i64 12, i1 false)
  %295 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 0
  %296 = load <2 x float>, ptr %295, align 4
  %297 = getelementptr inbounds { <2 x float>, float }, ptr %64, i32 0, i32 1
  %298 = load float, ptr %297, align 4
  %299 = call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %296, float %298, float noundef %294)
  %300 = getelementptr inbounds %union.CgmVec3, ptr %63, i32 0, i32 0
  store { <2 x float>, float } %299, ptr %65, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %300, ptr align 8 %65, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %33, i64 12, i1 false)
  %301 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 0
  %302 = load <2 x float>, ptr %301, align 4
  %303 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 1
  %304 = load float, ptr %303, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %63, i64 12, i1 false)
  %305 = getelementptr inbounds { <2 x float>, float }, ptr %67, i32 0, i32 0
  %306 = load <2 x float>, ptr %305, align 4
  %307 = getelementptr inbounds { <2 x float>, float }, ptr %67, i32 0, i32 1
  %308 = load float, ptr %307, align 4
  %309 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %302, float %304, <2 x float> %306, float %308)
  %310 = getelementptr inbounds %union.CgmVec3, ptr %62, i32 0, i32 0
  store { <2 x float>, float } %309, ptr %68, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %310, ptr align 8 %68, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %69) #5
  %311 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %49, i64 12, i1 false)
  %312 = getelementptr inbounds { <2 x float>, float }, ptr %70, i32 0, i32 0
  %313 = load <2 x float>, ptr %312, align 4
  %314 = getelementptr inbounds { <2 x float>, float }, ptr %70, i32 0, i32 1
  %315 = load float, ptr %314, align 4
  %316 = call { <2 x float>, float } @CgmCapsule3d_get_projected_pt(ptr noundef %311, <2 x float> %313, float %315)
  %317 = getelementptr inbounds %union.CgmVec3, ptr %69, i32 0, i32 0
  store { <2 x float>, float } %316, ptr %71, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %317, ptr align 8 %71, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #5
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %62, i64 12, i1 false)
  %319 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 0
  %320 = load <2 x float>, ptr %319, align 4
  %321 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 1
  %322 = load float, ptr %321, align 4
  %323 = call { <2 x float>, float } @CgmCapsule3d_get_projected_pt(ptr noundef %318, <2 x float> %320, float %322)
  %324 = getelementptr inbounds %union.CgmVec3, ptr %72, i32 0, i32 0
  store { <2 x float>, float } %323, ptr %74, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %324, ptr align 8 %74, i64 12, i1 false)
  %325 = load i32, ptr %32, align 4, !tbaa !13
  %326 = mul i32 %325, 2
  %327 = add i32 1, %326
  %328 = zext i32 %327 to i64
  %329 = getelementptr inbounds [7 x %union.CgmVec3], ptr %31, i64 0, i64 %328
  call void @llvm.lifetime.start.p0(i64 12, ptr %75) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %49, i64 12, i1 false)
  %330 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 0
  %331 = load <2 x float>, ptr %330, align 4
  %332 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 1
  %333 = load float, ptr %332, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %69, i64 12, i1 false)
  %334 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %335 = load <2 x float>, ptr %334, align 4
  %336 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %337 = load float, ptr %336, align 4
  %338 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %331, float %333, <2 x float> %335, float %337)
  %339 = getelementptr inbounds %union.CgmVec3, ptr %76, i32 0, i32 0
  store { <2 x float>, float } %338, ptr %79, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %339, ptr align 8 %79, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %76, i64 12, i1 false)
  %340 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 0
  %341 = load <2 x float>, ptr %340, align 4
  %342 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 1
  %343 = load float, ptr %342, align 4
  %344 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %341, float %343)
  %345 = getelementptr inbounds %union.CgmVec3, ptr %75, i32 0, i32 0
  store { <2 x float>, float } %344, ptr %81, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %345, ptr align 8 %81, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %329, ptr align 4 %75, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #5
  %346 = load i32, ptr %32, align 4, !tbaa !13
  %347 = mul i32 %346, 2
  %348 = add i32 1, %347
  %349 = add i32 %348, 1
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds [7 x %union.CgmVec3], ptr %31, i64 0, i64 %350
  call void @llvm.lifetime.start.p0(i64 12, ptr %82) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %62, i64 12, i1 false)
  %352 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 0
  %353 = load <2 x float>, ptr %352, align 4
  %354 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 1
  %355 = load float, ptr %354, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 4 %72, i64 12, i1 false)
  %356 = getelementptr inbounds { <2 x float>, float }, ptr %85, i32 0, i32 0
  %357 = load <2 x float>, ptr %356, align 4
  %358 = getelementptr inbounds { <2 x float>, float }, ptr %85, i32 0, i32 1
  %359 = load float, ptr %358, align 4
  %360 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %353, float %355, <2 x float> %357, float %359)
  %361 = getelementptr inbounds %union.CgmVec3, ptr %83, i32 0, i32 0
  store { <2 x float>, float } %360, ptr %86, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %361, ptr align 8 %86, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %83, i64 12, i1 false)
  %362 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 0
  %363 = load <2 x float>, ptr %362, align 4
  %364 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 1
  %365 = load float, ptr %364, align 4
  %366 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %363, float %365)
  %367 = getelementptr inbounds %union.CgmVec3, ptr %82, i32 0, i32 0
  store { <2 x float>, float } %366, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %367, ptr align 8 %88, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %351, ptr align 4 %82, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #5
  br label %368

368:                                              ; preds = %207
  %369 = load i32, ptr %32, align 4, !tbaa !13
  %370 = add i32 %369, 1
  store i32 %370, ptr %32, align 4, !tbaa !13
  br label %190, !llvm.loop !17

371:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 12, ptr %89) #5
  %372 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 0
  %373 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %91, ptr align 16 %372, i64 12, i1 false)
  %374 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 0
  %375 = load <2 x float>, ptr %374, align 16
  %376 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 1
  %377 = load float, ptr %376, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %373, i64 12, i1 false)
  %378 = getelementptr inbounds { <2 x float>, float }, ptr %92, i32 0, i32 0
  %379 = load <2 x float>, ptr %378, align 4
  %380 = getelementptr inbounds { <2 x float>, float }, ptr %92, i32 0, i32 1
  %381 = load float, ptr %380, align 4
  %382 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %375, float %377, <2 x float> %379, float %381)
  %383 = getelementptr inbounds %union.CgmVec3, ptr %90, i32 0, i32 0
  store { <2 x float>, float } %382, ptr %93, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %383, ptr align 8 %93, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %90, i64 12, i1 false)
  %384 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 0
  %385 = load <2 x float>, ptr %384, align 4
  %386 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 1
  %387 = load float, ptr %386, align 4
  %388 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %385, float %387)
  %389 = getelementptr inbounds %union.CgmVec3, ptr %89, i32 0, i32 0
  store { <2 x float>, float } %388, ptr %95, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %389, ptr align 8 %95, i64 12, i1 false)
  %390 = getelementptr inbounds [7 x %union.CgmVec3], ptr %31, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %390, ptr align 4 %89, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 72, ptr %96) #5
  %391 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 16 %391, i64 12, i1 false), !tbaa.struct !15
  %392 = getelementptr inbounds %union.CgmVec3, ptr %96, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %392, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !15
  %393 = getelementptr inbounds [2 x %union.CgmVec3], ptr %96, i64 1
  %394 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %393, ptr align 4 %394, i64 12, i1 false), !tbaa.struct !15
  %395 = getelementptr inbounds %union.CgmVec3, ptr %393, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %395, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !15
  %396 = getelementptr inbounds [2 x %union.CgmVec3], ptr %96, i64 2
  %397 = getelementptr inbounds [3 x %union.CgmVec3], ptr %30, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %396, ptr align 8 %397, i64 12, i1 false), !tbaa.struct !15
  %398 = getelementptr inbounds %union.CgmVec3, ptr %396, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %398, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %97) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %98) #5
  store float 0x7FF0000000000000, ptr %98, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #5
  store i32 0, ptr %99, align 4, !tbaa !13
  br label %399

399:                                              ; preds = %570, %371
  %400 = load i32, ptr %99, align 4, !tbaa !13
  %401 = icmp ult i32 %400, 9
  br i1 %401, label %403, label %402

402:                                              ; preds = %399
  store i32 5, ptr %100, align 4
  br label %573

403:                                              ; preds = %399
  call void @llvm.lifetime.start.p0(i64 12, ptr %101) #5
  %404 = load i32, ptr %99, align 4, !tbaa !13
  %405 = icmp ult i32 %404, 3
  br i1 %405, label %406, label %448

406:                                              ; preds = %403
  %407 = load i32, ptr %99, align 4, !tbaa !13
  %408 = zext i32 %407 to i64
  %409 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %96, i64 0, i64 %408
  %410 = getelementptr inbounds [2 x %union.CgmVec3], ptr %409, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 8 %410, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %102) #5
  %411 = load i32, ptr %99, align 4, !tbaa !13
  %412 = zext i32 %411 to i64
  %413 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %96, i64 0, i64 %412
  %414 = getelementptr inbounds [2 x %union.CgmVec3], ptr %413, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %101, i64 12, i1 false)
  %415 = getelementptr inbounds { <2 x float>, float }, ptr %103, i32 0, i32 0
  %416 = load <2 x float>, ptr %415, align 4
  %417 = getelementptr inbounds { <2 x float>, float }, ptr %103, i32 0, i32 1
  %418 = load float, ptr %417, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %414, i64 12, i1 false)
  %419 = getelementptr inbounds { <2 x float>, float }, ptr %104, i32 0, i32 0
  %420 = load <2 x float>, ptr %419, align 4
  %421 = getelementptr inbounds { <2 x float>, float }, ptr %104, i32 0, i32 1
  %422 = load float, ptr %421, align 4
  %423 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %416, float %418, <2 x float> %420, float %422)
  %424 = getelementptr inbounds %union.CgmVec3, ptr %102, i32 0, i32 0
  store { <2 x float>, float } %423, ptr %105, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %424, ptr align 8 %105, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %106) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %102, i64 12, i1 false)
  %425 = getelementptr inbounds { <2 x float>, float }, ptr %107, i32 0, i32 0
  %426 = load <2 x float>, ptr %425, align 4
  %427 = getelementptr inbounds { <2 x float>, float }, ptr %107, i32 0, i32 1
  %428 = load float, ptr %427, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %108, ptr align 4 %102, i64 12, i1 false)
  %429 = getelementptr inbounds { <2 x float>, float }, ptr %108, i32 0, i32 0
  %430 = load <2 x float>, ptr %429, align 4
  %431 = getelementptr inbounds { <2 x float>, float }, ptr %108, i32 0, i32 1
  %432 = load float, ptr %431, align 4
  %433 = call float @CgmVec3_dot(<2 x float> %426, float %428, <2 x float> %430, float %432)
  store float %433, ptr %106, align 4, !tbaa !16
  %434 = load float, ptr %106, align 4, !tbaa !16
  %435 = call zeroext i8 @cgm_approx_eq(float noundef %434, float noundef 0.000000e+00)
  %436 = icmp ne i8 %435, 0
  br i1 %436, label %437, label %438

437:                                              ; preds = %406
  store i32 7, ptr %100, align 4
  br label %445

438:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 12, ptr %109) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %110, ptr align 4 %102, i64 12, i1 false)
  %439 = getelementptr inbounds { <2 x float>, float }, ptr %110, i32 0, i32 0
  %440 = load <2 x float>, ptr %439, align 4
  %441 = getelementptr inbounds { <2 x float>, float }, ptr %110, i32 0, i32 1
  %442 = load float, ptr %441, align 4
  %443 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %440, float %442)
  %444 = getelementptr inbounds %union.CgmVec3, ptr %109, i32 0, i32 0
  store { <2 x float>, float } %443, ptr %111, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %444, ptr align 8 %111, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %109, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %109) #5
  store i32 0, ptr %100, align 4
  br label %445

445:                                              ; preds = %438, %437
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %102) #5
  %446 = load i32, ptr %100, align 4
  switch i32 %446, label %567 [
    i32 0, label %447
  ]

447:                                              ; preds = %445
  br label %453

448:                                              ; preds = %403
  %449 = load i32, ptr %99, align 4, !tbaa !13
  %450 = sub i32 %449, 3
  %451 = zext i32 %450 to i64
  %452 = getelementptr inbounds [7 x %union.CgmVec3], ptr %31, i64 0, i64 %451
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %452, i64 12, i1 false), !tbaa.struct !15
  br label %453

453:                                              ; preds = %448, %447
  call void @llvm.lifetime.start.p0(i64 4, ptr %112) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %15, i64 12, i1 false)
  %454 = getelementptr inbounds { <2 x float>, float }, ptr %113, i32 0, i32 0
  %455 = load <2 x float>, ptr %454, align 4
  %456 = getelementptr inbounds { <2 x float>, float }, ptr %113, i32 0, i32 1
  %457 = load float, ptr %456, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %114, ptr align 4 %101, i64 12, i1 false)
  %458 = getelementptr inbounds { <2 x float>, float }, ptr %114, i32 0, i32 0
  %459 = load <2 x float>, ptr %458, align 4
  %460 = getelementptr inbounds { <2 x float>, float }, ptr %114, i32 0, i32 1
  %461 = load float, ptr %460, align 4
  %462 = call float @CgmVec3_dot(<2 x float> %455, float %457, <2 x float> %459, float %461)
  store float %462, ptr %112, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %115) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 4 %19, i64 12, i1 false)
  %463 = getelementptr inbounds { <2 x float>, float }, ptr %116, i32 0, i32 0
  %464 = load <2 x float>, ptr %463, align 4
  %465 = getelementptr inbounds { <2 x float>, float }, ptr %116, i32 0, i32 1
  %466 = load float, ptr %465, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %101, i64 12, i1 false)
  %467 = getelementptr inbounds { <2 x float>, float }, ptr %117, i32 0, i32 0
  %468 = load <2 x float>, ptr %467, align 4
  %469 = getelementptr inbounds { <2 x float>, float }, ptr %117, i32 0, i32 1
  %470 = load float, ptr %469, align 4
  %471 = call float @CgmVec3_dot(<2 x float> %464, float %466, <2 x float> %468, float %470)
  store float %471, ptr %115, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %118) #5
  %472 = load float, ptr %112, align 4, !tbaa !16
  %473 = load float, ptr %115, align 4, !tbaa !16
  %474 = call float @cgm_min(float noundef %472, float noundef %473)
  %475 = load ptr, ptr %7, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.CgmCapsule3d, ptr %475, i32 0, i32 3
  %477 = load float, ptr %476, align 4, !tbaa !19
  %478 = fsub float %474, %477
  store float %478, ptr %118, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %119) #5
  %479 = load float, ptr %112, align 4, !tbaa !16
  %480 = load float, ptr %115, align 4, !tbaa !16
  %481 = call float @cgm_max(float noundef %479, float noundef %480)
  %482 = load ptr, ptr %7, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.CgmCapsule3d, ptr %482, i32 0, i32 3
  %484 = load float, ptr %483, align 4, !tbaa !19
  %485 = fadd float %481, %484
  store float %485, ptr %119, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %120) #5
  %486 = load ptr, ptr %8, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.anon.9, ptr %486, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %487, i64 12, i1 false)
  %488 = getelementptr inbounds { <2 x float>, float }, ptr %121, i32 0, i32 0
  %489 = load <2 x float>, ptr %488, align 4
  %490 = getelementptr inbounds { <2 x float>, float }, ptr %121, i32 0, i32 1
  %491 = load float, ptr %490, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 4 %101, i64 12, i1 false)
  %492 = getelementptr inbounds { <2 x float>, float }, ptr %122, i32 0, i32 0
  %493 = load <2 x float>, ptr %492, align 4
  %494 = getelementptr inbounds { <2 x float>, float }, ptr %122, i32 0, i32 1
  %495 = load float, ptr %494, align 4
  %496 = call float @CgmVec3_dot(<2 x float> %489, float %491, <2 x float> %493, float %495)
  store float %496, ptr %120, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %123) #5
  %497 = load ptr, ptr %8, align 8, !tbaa !5
  %498 = getelementptr inbounds %struct.anon.9, ptr %497, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %124, ptr align 4 %498, i64 12, i1 false)
  %499 = getelementptr inbounds { <2 x float>, float }, ptr %124, i32 0, i32 0
  %500 = load <2 x float>, ptr %499, align 4
  %501 = getelementptr inbounds { <2 x float>, float }, ptr %124, i32 0, i32 1
  %502 = load float, ptr %501, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %125, ptr align 4 %101, i64 12, i1 false)
  %503 = getelementptr inbounds { <2 x float>, float }, ptr %125, i32 0, i32 0
  %504 = load <2 x float>, ptr %503, align 4
  %505 = getelementptr inbounds { <2 x float>, float }, ptr %125, i32 0, i32 1
  %506 = load float, ptr %505, align 4
  %507 = call float @CgmVec3_dot(<2 x float> %500, float %502, <2 x float> %504, float %506)
  store float %507, ptr %123, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %126) #5
  %508 = load ptr, ptr %8, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.anon.9, ptr %508, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %127, ptr align 4 %509, i64 12, i1 false)
  %510 = getelementptr inbounds { <2 x float>, float }, ptr %127, i32 0, i32 0
  %511 = load <2 x float>, ptr %510, align 4
  %512 = getelementptr inbounds { <2 x float>, float }, ptr %127, i32 0, i32 1
  %513 = load float, ptr %512, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %101, i64 12, i1 false)
  %514 = getelementptr inbounds { <2 x float>, float }, ptr %128, i32 0, i32 0
  %515 = load <2 x float>, ptr %514, align 4
  %516 = getelementptr inbounds { <2 x float>, float }, ptr %128, i32 0, i32 1
  %517 = load float, ptr %516, align 4
  %518 = call float @CgmVec3_dot(<2 x float> %511, float %513, <2 x float> %515, float %517)
  store float %518, ptr %126, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %129) #5
  %519 = load float, ptr %120, align 4, !tbaa !16
  %520 = load float, ptr %123, align 4, !tbaa !16
  %521 = call float @cgm_min(float noundef %519, float noundef %520)
  %522 = load float, ptr %126, align 4, !tbaa !16
  %523 = call float @cgm_min(float noundef %521, float noundef %522)
  store float %523, ptr %129, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %130) #5
  %524 = load float, ptr %120, align 4, !tbaa !16
  %525 = load float, ptr %123, align 4, !tbaa !16
  %526 = call float @cgm_max(float noundef %524, float noundef %525)
  %527 = load float, ptr %126, align 4, !tbaa !16
  %528 = call float @cgm_max(float noundef %526, float noundef %527)
  store float %528, ptr %130, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %131) #5
  %529 = load float, ptr %119, align 4, !tbaa !16
  %530 = load float, ptr %129, align 4, !tbaa !16
  %531 = fsub float %529, %530
  %532 = load float, ptr %130, align 4, !tbaa !16
  %533 = load float, ptr %118, align 4, !tbaa !16
  %534 = fsub float %532, %533
  %535 = call float @cgm_min(float noundef %531, float noundef %534)
  store float %535, ptr %131, align 4, !tbaa !16
  %536 = load float, ptr %131, align 4, !tbaa !16
  %537 = fcmp olt float %536, 0.000000e+00
  br i1 %537, label %538, label %539

538:                                              ; preds = %453
  store i8 0, ptr %6, align 1
  store i32 1, ptr %100, align 4
  br label %566

539:                                              ; preds = %453
  %540 = load float, ptr %131, align 4, !tbaa !16
  %541 = load float, ptr %98, align 4, !tbaa !16
  %542 = fcmp olt float %540, %541
  br i1 %542, label %543, label %565

543:                                              ; preds = %539
  %544 = load float, ptr %131, align 4, !tbaa !16
  store float %544, ptr %98, align 4, !tbaa !16
  %545 = load float, ptr %118, align 4, !tbaa !16
  %546 = load float, ptr %119, align 4, !tbaa !16
  %547 = load float, ptr %118, align 4, !tbaa !16
  %548 = fsub float %546, %547
  %549 = call float @llvm.fmuladd.f32(float %548, float 5.000000e-01, float %545)
  %550 = load float, ptr %129, align 4, !tbaa !16
  %551 = load float, ptr %130, align 4, !tbaa !16
  %552 = load float, ptr %129, align 4, !tbaa !16
  %553 = fsub float %551, %552
  %554 = call float @llvm.fmuladd.f32(float %553, float 5.000000e-01, float %550)
  %555 = fcmp olt float %549, %554
  store i1 false, ptr %133, align 1
  br i1 %555, label %556, label %563

556:                                              ; preds = %543
  call void @llvm.lifetime.start.p0(i64 12, ptr %132) #5
  store i1 true, ptr %133, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %134, ptr align 4 %101, i64 12, i1 false)
  %557 = getelementptr inbounds { <2 x float>, float }, ptr %134, i32 0, i32 0
  %558 = load <2 x float>, ptr %557, align 4
  %559 = getelementptr inbounds { <2 x float>, float }, ptr %134, i32 0, i32 1
  %560 = load float, ptr %559, align 4
  %561 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %558, float %560)
  %562 = getelementptr inbounds %union.CgmVec3, ptr %132, i32 0, i32 0
  store { <2 x float>, float } %561, ptr %135, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %562, ptr align 8 %135, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %132, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %132) #5
  br label %564

563:                                              ; preds = %543
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %101, i64 12, i1 false), !tbaa.struct !15
  br label %564

564:                                              ; preds = %563, %556
  br label %565

565:                                              ; preds = %564, %539
  store i32 0, ptr %100, align 4
  br label %566

566:                                              ; preds = %565, %538
  call void @llvm.lifetime.end.p0(i64 4, ptr %131) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %130) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %129) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %126) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %123) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %120) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %119) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %118) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %115) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %112) #5
  br label %567

567:                                              ; preds = %566, %445
  call void @llvm.lifetime.end.p0(i64 12, ptr %101) #5
  %568 = load i32, ptr %100, align 4
  switch i32 %568, label %573 [
    i32 0, label %569
    i32 7, label %570
  ]

569:                                              ; preds = %567
  br label %570

570:                                              ; preds = %569, %567
  %571 = load i32, ptr %99, align 4, !tbaa !13
  %572 = add i32 %571, 1
  store i32 %572, ptr %99, align 4, !tbaa !13
  br label %399, !llvm.loop !20

573:                                              ; preds = %567, %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #5
  %574 = load i32, ptr %100, align 4
  switch i32 %574, label %608 [
    i32 5, label %575
  ]

575:                                              ; preds = %573
  %576 = load i8, ptr %11, align 1, !tbaa !9
  %577 = icmp ne i8 %576, 0
  br i1 %577, label %578, label %596

578:                                              ; preds = %575
  call void @llvm.lifetime.start.p0(i64 4, ptr %136) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %137, ptr align 4 %97, i64 12, i1 false)
  %579 = getelementptr inbounds { <2 x float>, float }, ptr %137, i32 0, i32 0
  %580 = load <2 x float>, ptr %579, align 4
  %581 = getelementptr inbounds { <2 x float>, float }, ptr %137, i32 0, i32 1
  %582 = load float, ptr %581, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %138, ptr align 4 %89, i64 12, i1 false)
  %583 = getelementptr inbounds { <2 x float>, float }, ptr %138, i32 0, i32 0
  %584 = load <2 x float>, ptr %583, align 4
  %585 = getelementptr inbounds { <2 x float>, float }, ptr %138, i32 0, i32 1
  %586 = load float, ptr %585, align 4
  %587 = call float @CgmVec3_dot(<2 x float> %580, float %582, <2 x float> %584, float %586)
  store float %587, ptr %136, align 4, !tbaa !16
  %588 = load float, ptr %136, align 4, !tbaa !16
  %589 = call zeroext i8 @cgm_approx_eq(float noundef %588, float noundef 1.000000e+00)
  %590 = icmp ne i8 %589, 0
  br i1 %590, label %592, label %591

591:                                              ; preds = %578
  store i8 0, ptr %6, align 1
  store i32 1, ptr %100, align 4
  br label %593

592:                                              ; preds = %578
  store i32 0, ptr %100, align 4
  br label %593

593:                                              ; preds = %592, %591
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #5
  %594 = load i32, ptr %100, align 4
  switch i32 %594, label %608 [
    i32 0, label %595
  ]

595:                                              ; preds = %593
  br label %596

596:                                              ; preds = %595, %575
  %597 = load ptr, ptr %9, align 8, !tbaa !5
  %598 = icmp ne ptr %597, null
  br i1 %598, label %599, label %601

599:                                              ; preds = %596
  %600 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %600, ptr align 4 %97, i64 12, i1 false), !tbaa.struct !15
  br label %601

601:                                              ; preds = %599, %596
  %602 = load ptr, ptr %10, align 8, !tbaa !5
  %603 = icmp ne ptr %602, null
  br i1 %603, label %604, label %607

604:                                              ; preds = %601
  %605 = load float, ptr %98, align 4, !tbaa !16
  %606 = load ptr, ptr %10, align 8, !tbaa !5
  store float %605, ptr %606, align 4, !tbaa !16
  br label %607

607:                                              ; preds = %604, %601
  store i8 1, ptr %6, align 1
  store i32 1, ptr %100, align 4
  br label %608

608:                                              ; preds = %607, %593, %573
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %97) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %96) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %89) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %609 = load i8, ptr %6, align 1
  ret i8 %609
}

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 = !{!11, !12, i64 24}
!11 = !{!"CgmCapsule3d", !7, i64 0, !7, i64 12, !12, i64 24, !12, i64 28}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 12, !9}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!11, !12, i64 28}
!20 = distinct !{!20, !18}


; 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: nounwind uwtable
declare dso_local float @cgm_clamp(float noundef, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: 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_add(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; 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 } @CgmCapsule3d_get_projected_pt(ptr noundef, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i8 @cgm_3d_capsule_vs_triangle(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i8 noundef zeroext %4) local_unnamed_addr #3 {
  %6 = alloca [3 x %union.CgmVec3], align 16
  %7 = alloca [7 x %union.CgmVec3], align 16
  %8 = alloca [3 x [2 x %union.CgmVec3]], align 16
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load float, ptr %10, align 4, !tbaa !5
  %.sroa.0327.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.2328.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 20
  %.sroa.2328.0.copyload = load float, ptr %.sroa.2328.0..sroa_idx, align 4
  %12 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.sroa.0327.0.copyload, float %.sroa.2328.0.copyload, float noundef %11)
  %.fca.0.extract323 = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract324 = extractvalue { <2 x float>, float } %12, 1
  %.sroa.0317.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2318.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.2318.0.copyload = load float, ptr %.sroa.2318.0..sroa_idx, align 4
  %13 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.sroa.0317.0.copyload, float %.sroa.2318.0.copyload, <2 x float> %.fca.0.extract323, float %.fca.1.extract324)
  %.fca.0.extract311 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract312 = extractvalue { <2 x float>, float } %13, 1
  %14 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract323, float %.fca.1.extract324)
  %.fca.0.extract299 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract300 = extractvalue { <2 x float>, float } %14, 1
  %.sroa.0297.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.2298.0.copyload = load float, ptr %.sroa.2318.0..sroa_idx, align 4
  %15 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.sroa.0297.0.copyload, float %.sroa.2298.0.copyload, <2 x float> %.fca.0.extract299, float %.fca.1.extract300)
  %.fca.0.extract291 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract292 = extractvalue { <2 x float>, float } %15, 1
  %16 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract291, float %.fca.1.extract292, <2 x float> %.fca.0.extract311, float %.fca.1.extract312)
  %.fca.0.extract275 = extractvalue { <2 x float>, float } %16, 0
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %7) #5
  br label %30

17:                                               ; preds = %30
  %.fca.1.extract276 = extractvalue { <2 x float>, float } %16, 1
  %18 = getelementptr inbounds i8, ptr %6, i64 12
  %.sroa.0115.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.2116.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.2116.0.copyload = load float, ptr %.sroa.2116.0..sroa_idx, align 8
  %.sroa.0113.0.copyload = load <2 x float>, ptr %18, align 4
  %.sroa.2114.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 20
  %.sroa.2114.0.copyload = load float, ptr %.sroa.2114.0..sroa_idx, align 4
  %19 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.sroa.0115.0.copyload, float %.sroa.2116.0.copyload, <2 x float> %.sroa.0113.0.copyload, float %.sroa.2114.0.copyload)
  %.fca.0.extract109 = extractvalue { <2 x float>, float } %19, 0
  %.fca.1.extract110 = extractvalue { <2 x float>, float } %19, 1
  %20 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract109, float %.fca.1.extract110)
  %.fca.0.extract103 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract104 = extractvalue { <2 x float>, float } %20, 1
  store <2 x float> %.fca.0.extract103, ptr %7, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract104, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %8, ptr noundef nonnull align 16 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !11
  %21 = getelementptr inbounds i8, ptr %8, i64 12
  store <2 x float> %.fca.0.extract275, ptr %21, align 4
  %.sroa.6286.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 20
  store float %.fca.1.extract276, ptr %.sroa.6286.0..sroa_idx, align 4, !tbaa !10
  %22 = getelementptr inbounds i8, ptr %8, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %18, i64 12, i1 false), !tbaa.struct !11
  %23 = getelementptr inbounds i8, ptr %8, i64 36
  store <2 x float> %.fca.0.extract275, ptr %23, align 4
  %.sroa.6286.0..sroa_idx287 = getelementptr inbounds i8, ptr %8, i64 44
  store float %.fca.1.extract276, ptr %.sroa.6286.0..sroa_idx287, align 4, !tbaa !10
  %24 = getelementptr inbounds i8, ptr %8, i64 48
  %25 = getelementptr inbounds i8, ptr %6, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(12) %25, i64 12, i1 false), !tbaa.struct !11
  %26 = getelementptr inbounds i8, ptr %8, i64 60
  store <2 x float> %.fca.0.extract275, ptr %26, align 4
  %.sroa.6286.0..sroa_idx289 = getelementptr inbounds i8, ptr %8, i64 68
  store float %.fca.1.extract276, ptr %.sroa.6286.0..sroa_idx289, align 4, !tbaa !10
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %28 = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 32
  br label %62

30:                                               ; preds = %5, %30
  %indvars.iv = phi i64 [ 0, %5 ], [ %indvars.iv.next, %30 ]
  %31 = getelementptr inbounds [3 x %union.CgmVec3], ptr %1, i64 0, i64 %indvars.iv
  %.sroa.0262.0.copyload = load <2 x float>, ptr %31, align 4
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %.sroa.8.0.copyload = load float, ptr %.sroa.8.0..sroa_idx, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = icmp eq i64 %indvars.iv.next, 3
  %33 = and i64 %indvars.iv.next, 4294967295
  %34 = select i1 %32, i64 0, i64 %33
  %35 = getelementptr inbounds [3 x %union.CgmVec3], ptr %1, i64 0, i64 %34
  %.sroa.0260.0.copyload = load <2 x float>, ptr %35, align 4
  %.sroa.4261.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 8
  %.sroa.4261.0.copyload = load float, ptr %.sroa.4261.0..sroa_idx, align 4, !tbaa !10
  %36 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0260.0.copyload, float %.sroa.4261.0.copyload, <2 x float> %.sroa.0262.0.copyload, float %.sroa.8.0.copyload)
  %.fca.0.extract246 = extractvalue { <2 x float>, float } %36, 0
  %.fca.1.extract247 = extractvalue { <2 x float>, float } %36, 1
  %37 = getelementptr inbounds [3 x %union.CgmVec3], ptr %6, i64 0, i64 %indvars.iv
  store <2 x float> %.fca.0.extract246, ptr %37, align 4
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 8
  store float %.fca.1.extract247, ptr %.sroa.10.0..sroa_idx, align 4, !tbaa !10
  %38 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract246, float %.fca.1.extract247, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %39 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract311, float %.fca.1.extract312, <2 x float> %.sroa.0262.0.copyload, float %.sroa.8.0.copyload)
  %.fca.0.extract228 = extractvalue { <2 x float>, float } %39, 0
  %.fca.1.extract229 = extractvalue { <2 x float>, float } %39, 1
  %40 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract228, float %.fca.1.extract229, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %41 = fdiv float %40, %38
  %42 = tail call float @cgm_clamp(float noundef %41, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %43 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract246, float %.fca.1.extract247, float noundef %42)
  %.fca.0.extract213 = extractvalue { <2 x float>, float } %43, 0
  %.fca.1.extract214 = extractvalue { <2 x float>, float } %43, 1
  %44 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.sroa.0262.0.copyload, float %.sroa.8.0.copyload, <2 x float> %.fca.0.extract213, float %.fca.1.extract214)
  %.fca.0.extract205 = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract206 = extractvalue { <2 x float>, float } %44, 1
  %45 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract291, float %.fca.1.extract292, <2 x float> %.sroa.0262.0.copyload, float %.sroa.8.0.copyload)
  %.fca.0.extract195 = extractvalue { <2 x float>, float } %45, 0
  %.fca.1.extract196 = extractvalue { <2 x float>, float } %45, 1
  %46 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract195, float %.fca.1.extract196, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %47 = fdiv float %46, %38
  %48 = tail call float @cgm_clamp(float noundef %47, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %49 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.fca.0.extract246, float %.fca.1.extract247, float noundef %48)
  %.fca.0.extract180 = extractvalue { <2 x float>, float } %49, 0
  %.fca.1.extract181 = extractvalue { <2 x float>, float } %49, 1
  %50 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.sroa.0262.0.copyload, float %.sroa.8.0.copyload, <2 x float> %.fca.0.extract180, float %.fca.1.extract181)
  %.fca.0.extract172 = extractvalue { <2 x float>, float } %50, 0
  %.fca.1.extract173 = extractvalue { <2 x float>, float } %50, 1
  %51 = tail call { <2 x float>, float } @CgmCapsule3d_get_projected_pt(ptr noundef nonnull %0, <2 x float> %.fca.0.extract205, float %.fca.1.extract206)
  %.fca.0.extract164 = extractvalue { <2 x float>, float } %51, 0
  %.fca.1.extract165 = extractvalue { <2 x float>, float } %51, 1
  %52 = tail call { <2 x float>, float } @CgmCapsule3d_get_projected_pt(ptr noundef nonnull %0, <2 x float> %.fca.0.extract172, float %.fca.1.extract173)
  %.fca.0.extract156 = extractvalue { <2 x float>, float } %52, 0
  %.fca.1.extract157 = extractvalue { <2 x float>, float } %52, 1
  %53 = shl nuw nsw i64 %indvars.iv, 1
  %54 = or disjoint i64 %53, 1
  %55 = getelementptr inbounds [7 x %union.CgmVec3], ptr %7, i64 0, i64 %54
  %56 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract205, float %.fca.1.extract206, <2 x float> %.fca.0.extract164, float %.fca.1.extract165)
  %.fca.0.extract144 = extractvalue { <2 x float>, float } %56, 0
  %.fca.1.extract145 = extractvalue { <2 x float>, float } %56, 1
  %57 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract144, float %.fca.1.extract145)
  %.fca.0.extract138 = extractvalue { <2 x float>, float } %57, 0
  %.fca.1.extract139 = extractvalue { <2 x float>, float } %57, 1
  store <2 x float> %.fca.0.extract138, ptr %55, align 4
  %.sroa.4155.0..sroa_idx = getelementptr inbounds i8, ptr %55, i64 8
  store float %.fca.1.extract139, ptr %.sroa.4155.0..sroa_idx, align 4, !tbaa !10
  %58 = add nuw nsw i64 %53, 2
  %59 = getelementptr inbounds [7 x %union.CgmVec3], ptr %7, i64 0, i64 %58
  %60 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract172, float %.fca.1.extract173, <2 x float> %.fca.0.extract156, float %.fca.1.extract157)
  %.fca.0.extract126 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract127 = extractvalue { <2 x float>, float } %60, 1
  %61 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract126, float %.fca.1.extract127)
  %.fca.0.extract120 = extractvalue { <2 x float>, float } %61, 0
  %.fca.1.extract121 = extractvalue { <2 x float>, float } %61, 1
  store <2 x float> %.fca.0.extract120, ptr %59, align 8
  %.sroa.4137.0..sroa_idx = getelementptr inbounds i8, ptr %59, i64 8
  store float %.fca.1.extract121, ptr %.sroa.4137.0..sroa_idx, align 8, !tbaa !10
  %exitcond.not = icmp eq i64 %indvars.iv.next, 3
  br i1 %exitcond.not, label %17, label %30, !llvm.loop !12

62:                                               ; preds = %17, %108
  %indvars.iv398 = phi i64 [ 0, %17 ], [ %indvars.iv.next399, %108 ]
  %.sroa.6102.0396 = phi float [ undef, %17 ], [ %.sroa.6102.3.ph, %108 ]
  %.sroa.0101.0395 = phi <2 x float> [ undef, %17 ], [ %.sroa.0101.3.ph, %108 ]
  %.0352394 = phi float [ 0x7FF0000000000000, %17 ], [ %.3355.ph, %108 ]
  %63 = icmp ult i64 %indvars.iv398, 3
  br i1 %63, label %64, label %71

64:                                               ; preds = %62
  %65 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %8, i64 0, i64 %indvars.iv398
  %.sroa.077.0.copyload = load <2 x float>, ptr %65, align 8
  %.sroa.13.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 8
  %.sroa.13.0.copyload = load float, ptr %.sroa.13.0..sroa_idx, align 8, !tbaa !10
  %66 = getelementptr inbounds i8, ptr %65, i64 12
  %.sroa.070.0.copyload = load <2 x float>, ptr %66, align 4
  %.sroa.271.0..sroa_idx = getelementptr inbounds i8, ptr %65, i64 20
  %.sroa.271.0.copyload = load float, ptr %.sroa.271.0..sroa_idx, align 4
  %67 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.sroa.077.0.copyload, float %.sroa.13.0.copyload, <2 x float> %.sroa.070.0.copyload, float %.sroa.271.0.copyload)
  %.fca.0.extract66 = extractvalue { <2 x float>, float } %67, 0
  %.fca.1.extract67 = extractvalue { <2 x float>, float } %67, 1
  %68 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract66, float %.fca.1.extract67, <2 x float> %.fca.0.extract66, float %.fca.1.extract67)
  %69 = tail call zeroext i8 @cgm_approx_eq(float noundef %68, float noundef 0.000000e+00)
  %.not = icmp eq i8 %69, 0
  br i1 %.not, label %.thread, label %108

.thread:                                          ; preds = %64
  %70 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract66, float %.fca.1.extract67)
  %.fca.0.extract53 = extractvalue { <2 x float>, float } %70, 0
  %.fca.1.extract54 = extractvalue { <2 x float>, float } %70, 1
  br label %74

71:                                               ; preds = %62
  %72 = add nsw i64 %indvars.iv398, -3
  %73 = getelementptr inbounds [7 x %union.CgmVec3], ptr %7, i64 0, i64 %72
  %.sroa.077.0.copyload84 = load <2 x float>, ptr %73, align 4
  %.sroa.13.0..sroa_idx86 = getelementptr inbounds i8, ptr %73, i64 8
  %.sroa.13.0.copyload87 = load float, ptr %.sroa.13.0..sroa_idx86, align 4, !tbaa !10
  br label %74

74:                                               ; preds = %.thread, %71
  %.sroa.077.1 = phi <2 x float> [ %.sroa.077.0.copyload84, %71 ], [ %.fca.0.extract53, %.thread ]
  %.sroa.13.1 = phi float [ %.sroa.13.0.copyload87, %71 ], [ %.fca.1.extract54, %.thread ]
  %75 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract311, float %.fca.1.extract312, <2 x float> %.sroa.077.1, float %.sroa.13.1)
  %76 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract291, float %.fca.1.extract292, <2 x float> %.sroa.077.1, float %.sroa.13.1)
  %77 = tail call float @cgm_min(float noundef %75, float noundef %76)
  %78 = load float, ptr %27, align 4, !tbaa !14
  %79 = fsub float %77, %78
  %80 = tail call float @cgm_max(float noundef %75, float noundef %76)
  %81 = load float, ptr %27, align 4, !tbaa !14
  %82 = fadd float %80, %81
  %.sroa.032.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.233.0.copyload = load float, ptr %.sroa.233.0..sroa_idx, align 4
  %83 = tail call float @CgmVec3_dot(<2 x float> %.sroa.032.0.copyload, float %.sroa.233.0.copyload, <2 x float> %.sroa.077.1, float %.sroa.13.1)
  %.sroa.026.0.copyload = load <2 x float>, ptr %28, align 4
  %.sroa.227.0.copyload = load float, ptr %.sroa.227.0..sroa_idx, align 4
  %84 = tail call float @CgmVec3_dot(<2 x float> %.sroa.026.0.copyload, float %.sroa.227.0.copyload, <2 x float> %.sroa.077.1, float %.sroa.13.1)
  %.sroa.020.0.copyload = load <2 x float>, ptr %29, align 4
  %.sroa.221.0.copyload = load float, ptr %.sroa.221.0..sroa_idx, align 4
  %85 = tail call float @CgmVec3_dot(<2 x float> %.sroa.020.0.copyload, float %.sroa.221.0.copyload, <2 x float> %.sroa.077.1, float %.sroa.13.1)
  %86 = tail call float @cgm_min(float noundef %83, float noundef %84)
  %87 = tail call float @cgm_min(float noundef %86, float noundef %85)
  %88 = tail call float @cgm_max(float noundef %83, float noundef %84)
  %89 = tail call float @cgm_max(float noundef %88, float noundef %85)
  %90 = fsub float %82, %87
  %91 = fsub float %89, %79
  %92 = tail call float @cgm_min(float noundef %90, float noundef %91)
  %93 = fcmp olt float %92, 0.000000e+00
  br i1 %93, label %.loopexit, label %94

94:                                               ; preds = %74
  %95 = fcmp olt float %92, %.0352394
  br i1 %95, label %96, label %108

96:                                               ; preds = %94
  %97 = insertelement <2 x float> poison, float %82, i64 0
  %98 = insertelement <2 x float> %97, float %89, i64 1
  %99 = insertelement <2 x float> poison, float %79, i64 0
  %100 = insertelement <2 x float> %99, float %87, i64 1
  %101 = fsub <2 x float> %98, %100
  %102 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %101, <2 x float> <float 5.000000e-01, float 5.000000e-01>, <2 x float> %100)
  %103 = extractelement <2 x float> %102, i64 0
  %104 = extractelement <2 x float> %102, i64 1
  %105 = fcmp olt float %103, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %96
  %107 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.sroa.077.1, float %.sroa.13.1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %107, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %107, 1
  br label %108

108:                                              ; preds = %96, %106, %94, %64
  %.3355.ph = phi float [ %.0352394, %64 ], [ %92, %96 ], [ %.0352394, %94 ], [ %92, %106 ]
  %.sroa.0101.3.ph = phi <2 x float> [ %.sroa.0101.0395, %64 ], [ %.sroa.077.1, %96 ], [ %.sroa.0101.0395, %94 ], [ %.fca.0.extract, %106 ]
  %.sroa.6102.3.ph = phi float [ %.sroa.6102.0396, %64 ], [ %.sroa.13.1, %96 ], [ %.sroa.6102.0396, %94 ], [ %.fca.1.extract, %106 ]
  %indvars.iv.next399 = add nuw nsw i64 %indvars.iv398, 1
  %exitcond401 = icmp eq i64 %indvars.iv.next399, 9
  br i1 %exitcond401, label %109, label %62, !llvm.loop !15

109:                                              ; preds = %108
  %.not366 = icmp eq i8 %4, 0
  br i1 %.not366, label %113, label %110

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

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

114:                                              ; preds = %113
  store <2 x float> %.sroa.0101.3.ph, ptr %2, align 4
  %.sroa.6102.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.sroa.6102.3.ph, ptr %.sroa.6102.0..sroa_idx, align 4, !tbaa !10
  br label %115

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

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

.loopexit:                                        ; preds = %74, %115, %116, %110
  %.5 = phi i8 [ 0, %110 ], [ 1, %116 ], [ 1, %115 ], [ 0, %74 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #5
  ret i8 %.5
}

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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