; LLVM IR from skywind3000/RenderHelp :: sample_04_gouraud.ll (Z10draw_planeR10RenderHelpiiii)

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

%struct.VertexAttrib = type { %struct.Vector, %struct.Vector.1, %struct.Vector, %struct.Vector }
%struct.Vector.1 = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float }
%struct.Vector = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }

@vs_input = external dso_local global [3 x %struct.VertexAttrib], align 16
@mesh = external dso_local global [8 x %struct.VertexAttrib], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10draw_planeR10RenderHelpiiii(ptr noundef nonnull align 8 dereferenceable(824) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.Vector, align 4
  %12 = alloca %struct.Vector, align 4
  %13 = alloca %struct.Vector, align 4
  %14 = alloca %struct.Vector, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %16
  %18 = getelementptr inbounds %struct.VertexAttrib, ptr %17, i32 0, i32 1
  %19 = getelementptr inbounds %struct.Vector.1, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.anon.3, ptr %19, i32 0, i32 0
  store float 0.000000e+00, ptr %20, align 4, !tbaa !11
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %22
  %24 = getelementptr inbounds %struct.VertexAttrib, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %struct.Vector.1, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds %struct.anon.3, ptr %25, i32 0, i32 1
  store float 0.000000e+00, ptr %26, align 4, !tbaa !11
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %28
  %30 = getelementptr inbounds %struct.VertexAttrib, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds %struct.Vector.1, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.anon.3, ptr %31, i32 0, i32 0
  store float 0.000000e+00, ptr %32, align 4, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.VertexAttrib, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds %struct.Vector.1, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.anon.3, ptr %37, i32 0, i32 1
  store float 1.000000e+00, ptr %38, align 4, !tbaa !11
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.VertexAttrib, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %struct.Vector.1, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %struct.anon.3, ptr %43, i32 0, i32 0
  store float 1.000000e+00, ptr %44, align 4, !tbaa !11
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %46
  %48 = getelementptr inbounds %struct.VertexAttrib, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds %struct.Vector.1, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.anon.3, ptr %49, i32 0, i32 1
  store float 1.000000e+00, ptr %50, align 4, !tbaa !11
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.VertexAttrib, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds %struct.Vector.1, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.anon.3, ptr %55, i32 0, i32 0
  store float 1.000000e+00, ptr %56, align 4, !tbaa !11
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.VertexAttrib, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.Vector.1, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %struct.anon.3, ptr %61, i32 0, i32 1
  store float 0.000000e+00, ptr %62, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #4
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.VertexAttrib, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %68
  %70 = getelementptr inbounds %struct.VertexAttrib, ptr %69, i32 0, i32 0
  call void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind writable sret(%struct.Vector) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %70)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.VertexAttrib, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %76
  %78 = getelementptr inbounds %struct.VertexAttrib, ptr %77, i32 0, i32 0
  call void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind writable sret(%struct.Vector) align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %74, ptr noundef nonnull align 4 dereferenceable(12) %78)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  call void @_Z12vector_crossIfE6VectorILm3ET_ERKS2_S4_(ptr dead_on_unwind writable sret(%struct.Vector) align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @_Z16vector_normalizeILm3EfE6VectorIXT_ET0_ERKS2_(ptr dead_on_unwind writable sret(%struct.Vector) align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.VertexAttrib, ptr %81, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !12
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %84
  %86 = getelementptr inbounds %struct.VertexAttrib, ptr %85, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !12
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.VertexAttrib, ptr %89, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !12
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %92
  %94 = getelementptr inbounds %struct.VertexAttrib, ptr %93, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !12
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @vs_input, ptr align 4 %97, i64 44, i1 false), !tbaa.struct !13
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 getelementptr inbounds ([3 x %struct.VertexAttrib], ptr @vs_input, i64 0, i64 1), ptr align 4 %100, i64 44, i1 false), !tbaa.struct !13
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([3 x %struct.VertexAttrib], ptr @vs_input, i64 0, i64 2), ptr align 4 %103, i64 44, i1 false), !tbaa.struct !13
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824) %104)
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @vs_input, ptr align 4 %108, i64 44, i1 false), !tbaa.struct !13
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 getelementptr inbounds ([3 x %struct.VertexAttrib], ptr @vs_input, i64 0, i64 1), ptr align 4 %111, i64 44, i1 false), !tbaa.struct !13
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([3 x %struct.VertexAttrib], ptr @vs_input, i64 0, i64 2), ptr align 4 %114, i64 44, i1 false), !tbaa.struct !13
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = call noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824) %115)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #4
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16vector_normalizeILm3EfE6VectorIXT_ET0_ERKS2_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12vector_crossIfE6VectorILm3ET_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824)) #2 align 2

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

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

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


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

%struct.VertexAttrib = type { %struct.Vector, %struct.Vector.1, %struct.Vector, %struct.Vector }
%struct.Vector.1 = type { %union.anon.2 }
%union.anon.2 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float }
%struct.Vector = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }

@vs_input = external dso_local local_unnamed_addr global [3 x %struct.VertexAttrib], align 16
@mesh = external dso_local global [8 x %struct.VertexAttrib], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10draw_planeR10RenderHelpiiii(ptr noundef nonnull align 8 dereferenceable(824) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca %struct.Vector, align 4
  %7 = alloca %struct.Vector, align 4
  %8 = alloca %struct.Vector, align 4
  %9 = alloca %struct.Vector, align 4
  %10 = sext i32 %1 to i64
  %11 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %10
  %12 = getelementptr inbounds i8, ptr %11, i64 12
  store <2 x float> zeroinitializer, ptr %12, align 4, !tbaa !5
  %13 = sext i32 %2 to i64
  %14 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %13
  %15 = getelementptr inbounds i8, ptr %14, i64 12
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %15, align 4, !tbaa !5
  %16 = sext i32 %3 to i64
  %17 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %16
  %18 = getelementptr inbounds i8, ptr %17, i64 12
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %18, align 4, !tbaa !5
  %19 = sext i32 %4 to i64
  %20 = getelementptr inbounds [8 x %struct.VertexAttrib], ptr @mesh, i64 0, i64 %19
  %21 = getelementptr inbounds i8, ptr %20, i64 12
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  call void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%struct.Vector) align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%struct.Vector) align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  call void @_Z12vector_crossIfE6VectorILm3ET_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%struct.Vector) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_Z16vector_normalizeILm3EfE6VectorIXT_ET0_ERKS2_(ptr dead_on_unwind nonnull writable sret(%struct.Vector) align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  %22 = getelementptr inbounds i8, ptr %11, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !8
  %23 = getelementptr inbounds i8, ptr %14, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !8
  %24 = getelementptr inbounds i8, ptr %17, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !8
  %25 = getelementptr inbounds i8, ptr %20, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) @vs_input, ptr noundef nonnull align 4 dereferenceable(44) %11, i64 44, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(44) getelementptr inbounds (i8, ptr @vs_input, i64 44), ptr noundef nonnull align 4 dereferenceable(44) %14, i64 44, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(44) getelementptr inbounds (i8, ptr @vs_input, i64 88), ptr noundef nonnull align 4 dereferenceable(44) %17, i64 44, i1 false), !tbaa.struct !9
  %26 = call noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824) %0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) @vs_input, ptr noundef nonnull align 4 dereferenceable(44) %17, i64 44, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(44) getelementptr inbounds (i8, ptr @vs_input, i64 44), ptr noundef nonnull align 4 dereferenceable(44) %20, i64 44, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(44) getelementptr inbounds (i8, ptr @vs_input, i64 88), ptr noundef nonnull align 4 dereferenceable(44) %11, i64 44, i1 false), !tbaa.struct !9
  %27 = call noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824) %0)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiILm3EfE6VectorIXT_ET0_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16vector_normalizeILm3EfE6VectorIXT_ET0_ERKS2_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12vector_crossIfE6VectorILm3ET_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vector) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10RenderHelp13DrawPrimitiveEv(ptr noundef nonnull align 8 dereferenceable(824)) local_unnamed_addr #2 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass