; LLVM IR from danginsburg/opengles3-book :: Common/Source (esTransform)

; 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.ESMatrix = type { [4 x [4 x float]] }

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

; Function Attrs: nounwind uwtable
define dso_local void @esRotate(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.ESMatrix, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  store float %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %25 = load float, ptr %8, align 4, !tbaa !9
  %26 = load float, ptr %8, align 4, !tbaa !9
  %27 = load float, ptr %9, align 4, !tbaa !9
  %28 = load float, ptr %9, align 4, !tbaa !9
  %29 = fmul float %27, %28
  %30 = call float @llvm.fmuladd.f32(float %25, float %26, float %29)
  %31 = load float, ptr %10, align 4, !tbaa !9
  %32 = load float, ptr %10, align 4, !tbaa !9
  %33 = call float @llvm.fmuladd.f32(float %31, float %32, float %30)
  %34 = call float @sqrtf(float noundef %33) #4
  store float %34, ptr %13, align 4, !tbaa !9
  %35 = load float, ptr %7, align 4, !tbaa !9
  %36 = fmul float %35, 0x400921FB60000000
  %37 = fdiv float %36, 1.800000e+02
  %38 = call float @sinf(float noundef %37) #4
  store float %38, ptr %11, align 4, !tbaa !9
  %39 = load float, ptr %7, align 4, !tbaa !9
  %40 = fmul float %39, 0x400921FB60000000
  %41 = fdiv float %40, 1.800000e+02
  %42 = call float @cosf(float noundef %41) #4
  store float %42, ptr %12, align 4, !tbaa !9
  %43 = load float, ptr %13, align 4, !tbaa !9
  %44 = fcmp ogt float %43, 0.000000e+00
  br i1 %44, label %45, label %173

45:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  %46 = load float, ptr %13, align 4, !tbaa !9
  %47 = load float, ptr %8, align 4, !tbaa !9
  %48 = fdiv float %47, %46
  store float %48, ptr %8, align 4, !tbaa !9
  %49 = load float, ptr %13, align 4, !tbaa !9
  %50 = load float, ptr %9, align 4, !tbaa !9
  %51 = fdiv float %50, %49
  store float %51, ptr %9, align 4, !tbaa !9
  %52 = load float, ptr %13, align 4, !tbaa !9
  %53 = load float, ptr %10, align 4, !tbaa !9
  %54 = fdiv float %53, %52
  store float %54, ptr %10, align 4, !tbaa !9
  %55 = load float, ptr %8, align 4, !tbaa !9
  %56 = load float, ptr %8, align 4, !tbaa !9
  %57 = fmul float %55, %56
  store float %57, ptr %14, align 4, !tbaa !9
  %58 = load float, ptr %9, align 4, !tbaa !9
  %59 = load float, ptr %9, align 4, !tbaa !9
  %60 = fmul float %58, %59
  store float %60, ptr %15, align 4, !tbaa !9
  %61 = load float, ptr %10, align 4, !tbaa !9
  %62 = load float, ptr %10, align 4, !tbaa !9
  %63 = fmul float %61, %62
  store float %63, ptr %16, align 4, !tbaa !9
  %64 = load float, ptr %8, align 4, !tbaa !9
  %65 = load float, ptr %9, align 4, !tbaa !9
  %66 = fmul float %64, %65
  store float %66, ptr %17, align 4, !tbaa !9
  %67 = load float, ptr %9, align 4, !tbaa !9
  %68 = load float, ptr %10, align 4, !tbaa !9
  %69 = fmul float %67, %68
  store float %69, ptr %18, align 4, !tbaa !9
  %70 = load float, ptr %10, align 4, !tbaa !9
  %71 = load float, ptr %8, align 4, !tbaa !9
  %72 = fmul float %70, %71
  store float %72, ptr %19, align 4, !tbaa !9
  %73 = load float, ptr %8, align 4, !tbaa !9
  %74 = load float, ptr %11, align 4, !tbaa !9
  %75 = fmul float %73, %74
  store float %75, ptr %20, align 4, !tbaa !9
  %76 = load float, ptr %9, align 4, !tbaa !9
  %77 = load float, ptr %11, align 4, !tbaa !9
  %78 = fmul float %76, %77
  store float %78, ptr %21, align 4, !tbaa !9
  %79 = load float, ptr %10, align 4, !tbaa !9
  %80 = load float, ptr %11, align 4, !tbaa !9
  %81 = fmul float %79, %80
  store float %81, ptr %22, align 4, !tbaa !9
  %82 = load float, ptr %12, align 4, !tbaa !9
  %83 = fsub float 1.000000e+00, %82
  store float %83, ptr %23, align 4, !tbaa !9
  %84 = load float, ptr %23, align 4, !tbaa !9
  %85 = load float, ptr %14, align 4, !tbaa !9
  %86 = load float, ptr %12, align 4, !tbaa !9
  %87 = call float @llvm.fmuladd.f32(float %84, float %85, float %86)
  %88 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %89 = getelementptr inbounds [4 x [4 x float]], ptr %88, i64 0, i64 0
  %90 = getelementptr inbounds [4 x float], ptr %89, i64 0, i64 0
  store float %87, ptr %90, align 4, !tbaa !9
  %91 = load float, ptr %23, align 4, !tbaa !9
  %92 = load float, ptr %17, align 4, !tbaa !9
  %93 = load float, ptr %22, align 4, !tbaa !9
  %94 = fneg float %93
  %95 = call float @llvm.fmuladd.f32(float %91, float %92, float %94)
  %96 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %97 = getelementptr inbounds [4 x [4 x float]], ptr %96, i64 0, i64 0
  %98 = getelementptr inbounds [4 x float], ptr %97, i64 0, i64 1
  store float %95, ptr %98, align 4, !tbaa !9
  %99 = load float, ptr %23, align 4, !tbaa !9
  %100 = load float, ptr %19, align 4, !tbaa !9
  %101 = load float, ptr %21, align 4, !tbaa !9
  %102 = call float @llvm.fmuladd.f32(float %99, float %100, float %101)
  %103 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %104 = getelementptr inbounds [4 x [4 x float]], ptr %103, i64 0, i64 0
  %105 = getelementptr inbounds [4 x float], ptr %104, i64 0, i64 2
  store float %102, ptr %105, align 4, !tbaa !9
  %106 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %107 = getelementptr inbounds [4 x [4 x float]], ptr %106, i64 0, i64 0
  %108 = getelementptr inbounds [4 x float], ptr %107, i64 0, i64 3
  store float 0.000000e+00, ptr %108, align 4, !tbaa !9
  %109 = load float, ptr %23, align 4, !tbaa !9
  %110 = load float, ptr %17, align 4, !tbaa !9
  %111 = load float, ptr %22, align 4, !tbaa !9
  %112 = call float @llvm.fmuladd.f32(float %109, float %110, float %111)
  %113 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %114 = getelementptr inbounds [4 x [4 x float]], ptr %113, i64 0, i64 1
  %115 = getelementptr inbounds [4 x float], ptr %114, i64 0, i64 0
  store float %112, ptr %115, align 4, !tbaa !9
  %116 = load float, ptr %23, align 4, !tbaa !9
  %117 = load float, ptr %15, align 4, !tbaa !9
  %118 = load float, ptr %12, align 4, !tbaa !9
  %119 = call float @llvm.fmuladd.f32(float %116, float %117, float %118)
  %120 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %121 = getelementptr inbounds [4 x [4 x float]], ptr %120, i64 0, i64 1
  %122 = getelementptr inbounds [4 x float], ptr %121, i64 0, i64 1
  store float %119, ptr %122, align 4, !tbaa !9
  %123 = load float, ptr %23, align 4, !tbaa !9
  %124 = load float, ptr %18, align 4, !tbaa !9
  %125 = load float, ptr %20, align 4, !tbaa !9
  %126 = fneg float %125
  %127 = call float @llvm.fmuladd.f32(float %123, float %124, float %126)
  %128 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %129 = getelementptr inbounds [4 x [4 x float]], ptr %128, i64 0, i64 1
  %130 = getelementptr inbounds [4 x float], ptr %129, i64 0, i64 2
  store float %127, ptr %130, align 4, !tbaa !9
  %131 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %132 = getelementptr inbounds [4 x [4 x float]], ptr %131, i64 0, i64 1
  %133 = getelementptr inbounds [4 x float], ptr %132, i64 0, i64 3
  store float 0.000000e+00, ptr %133, align 4, !tbaa !9
  %134 = load float, ptr %23, align 4, !tbaa !9
  %135 = load float, ptr %19, align 4, !tbaa !9
  %136 = load float, ptr %21, align 4, !tbaa !9
  %137 = fneg float %136
  %138 = call float @llvm.fmuladd.f32(float %134, float %135, float %137)
  %139 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %140 = getelementptr inbounds [4 x [4 x float]], ptr %139, i64 0, i64 2
  %141 = getelementptr inbounds [4 x float], ptr %140, i64 0, i64 0
  store float %138, ptr %141, align 4, !tbaa !9
  %142 = load float, ptr %23, align 4, !tbaa !9
  %143 = load float, ptr %18, align 4, !tbaa !9
  %144 = load float, ptr %20, align 4, !tbaa !9
  %145 = call float @llvm.fmuladd.f32(float %142, float %143, float %144)
  %146 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %147 = getelementptr inbounds [4 x [4 x float]], ptr %146, i64 0, i64 2
  %148 = getelementptr inbounds [4 x float], ptr %147, i64 0, i64 1
  store float %145, ptr %148, align 4, !tbaa !9
  %149 = load float, ptr %23, align 4, !tbaa !9
  %150 = load float, ptr %16, align 4, !tbaa !9
  %151 = load float, ptr %12, align 4, !tbaa !9
  %152 = call float @llvm.fmuladd.f32(float %149, float %150, float %151)
  %153 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %154 = getelementptr inbounds [4 x [4 x float]], ptr %153, i64 0, i64 2
  %155 = getelementptr inbounds [4 x float], ptr %154, i64 0, i64 2
  store float %152, ptr %155, align 4, !tbaa !9
  %156 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %157 = getelementptr inbounds [4 x [4 x float]], ptr %156, i64 0, i64 2
  %158 = getelementptr inbounds [4 x float], ptr %157, i64 0, i64 3
  store float 0.000000e+00, ptr %158, align 4, !tbaa !9
  %159 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %160 = getelementptr inbounds [4 x [4 x float]], ptr %159, i64 0, i64 3
  %161 = getelementptr inbounds [4 x float], ptr %160, i64 0, i64 0
  store float 0.000000e+00, ptr %161, align 4, !tbaa !9
  %162 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %163 = getelementptr inbounds [4 x [4 x float]], ptr %162, i64 0, i64 3
  %164 = getelementptr inbounds [4 x float], ptr %163, i64 0, i64 1
  store float 0.000000e+00, ptr %164, align 4, !tbaa !9
  %165 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %166 = getelementptr inbounds [4 x [4 x float]], ptr %165, i64 0, i64 3
  %167 = getelementptr inbounds [4 x float], ptr %166, i64 0, i64 2
  store float 0.000000e+00, ptr %167, align 4, !tbaa !9
  %168 = getelementptr inbounds %struct.ESMatrix, ptr %24, i32 0, i32 0
  %169 = getelementptr inbounds [4 x [4 x float]], ptr %168, i64 0, i64 3
  %170 = getelementptr inbounds [4 x float], ptr %169, i64 0, i64 3
  store float 1.000000e+00, ptr %170, align 4, !tbaa !9
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  call void @esMatrixMultiply(ptr noundef %171, ptr noundef %24, ptr noundef %172)
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %173

173:                                              ; preds = %45, %5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, 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) #2

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

; Function Attrs: nounwind
declare float @sinf(float noundef) #3

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @esMatrixMultiply(ptr noundef, ptr noundef, ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; 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.ESMatrix = type { [4 x [4 x float]] }

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

; Function Attrs: nounwind uwtable
define dso_local void @esRotate(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.ESMatrix, align 8
  %7 = fmul float %3, %3
  %8 = tail call float @llvm.fmuladd.f32(float %2, float %2, float %7)
  %9 = tail call float @llvm.fmuladd.f32(float %4, float %4, float %8)
  %sqrt = tail call float @llvm.sqrt.f32(float %9)
  %10 = fmul float %1, 0x400921FB60000000
  %11 = fdiv float %10, 1.800000e+02
  %12 = tail call float @sinf(float noundef %11) #6
  %13 = tail call float @cosf(float noundef %11) #6
  %14 = fcmp ogt float %sqrt, 0.000000e+00
  br i1 %14, label %15, label %65

15:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  %16 = insertelement <2 x float> poison, float %2, i64 0
  %17 = insertelement <2 x float> %16, float %3, i64 1
  %18 = insertelement <2 x float> poison, float %sqrt, i64 0
  %19 = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> zeroinitializer
  %20 = fdiv <2 x float> %17, %19
  %21 = fdiv float %4, %sqrt
  %22 = extractelement <2 x float> %20, i64 1
  %23 = fmul float %22, %22
  %24 = fmul float %21, %21
  %25 = extractelement <2 x float> %20, i64 0
  %26 = fmul float %25, %12
  %27 = fmul float %22, %12
  %28 = fmul float %21, %12
  %29 = fsub float 1.000000e+00, %13
  %30 = fneg float %28
  %31 = shufflevector <2 x float> %20, <2 x float> poison, <2 x i32> zeroinitializer
  %32 = fmul <2 x float> %31, %20
  %33 = insertelement <2 x float> poison, float %29, i64 0
  %34 = shufflevector <2 x float> %33, <2 x float> poison, <2 x i32> zeroinitializer
  %35 = insertelement <2 x float> poison, float %13, i64 0
  %36 = insertelement <2 x float> %35, float %30, i64 1
  %37 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %34, <2 x float> %32, <2 x float> %36)
  store <2 x float> %37, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %6, i64 8
  %39 = getelementptr inbounds i8, ptr %6, i64 12
  store float 0.000000e+00, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %6, i64 16
  %41 = shufflevector <2 x float> %32, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %42 = insertelement <2 x float> %41, float %23, i64 1
  %43 = insertelement <2 x float> poison, float %28, i64 0
  %44 = insertelement <2 x float> %43, float %13, i64 1
  %45 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %34, <2 x float> %42, <2 x float> %44)
  store <2 x float> %45, ptr %40, align 8, !tbaa !5
  %46 = fneg float %26
  %47 = getelementptr inbounds i8, ptr %6, i64 24
  %48 = getelementptr inbounds i8, ptr %6, i64 28
  store float 0.000000e+00, ptr %48, align 4, !tbaa !5
  %49 = fneg float %27
  %50 = getelementptr inbounds i8, ptr %6, i64 32
  %51 = insertelement <2 x float> poison, float %21, i64 0
  %52 = shufflevector <2 x float> %51, <2 x float> poison, <2 x i32> zeroinitializer
  %53 = fmul <2 x float> %52, %20
  %54 = extractelement <2 x float> %53, i64 0
  %55 = tail call float @llvm.fmuladd.f32(float %29, float %54, float %27)
  store float %55, ptr %38, align 8, !tbaa !5
  %56 = extractelement <2 x float> %53, i64 1
  %57 = tail call float @llvm.fmuladd.f32(float %29, float %56, float %46)
  store float %57, ptr %47, align 8, !tbaa !5
  %58 = insertelement <2 x float> poison, float %49, i64 0
  %59 = insertelement <2 x float> %58, float %26, i64 1
  %60 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %34, <2 x float> %53, <2 x float> %59)
  store <2 x float> %60, ptr %50, align 8, !tbaa !5
  %61 = tail call float @llvm.fmuladd.f32(float %29, float %24, float %13)
  %62 = getelementptr inbounds i8, ptr %6, i64 40
  store float %61, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %6, i64 44
  %64 = getelementptr inbounds i8, ptr %6, i64 60
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %63, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %64, align 4, !tbaa !5
  call void @esMatrixMultiply(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  br label %65

65:                                               ; preds = %15, %5
  ret void
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @esMatrixMultiply(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,TailCallElimPass