; LLVM IR from drohmer/cgp :: library/cgp/09_geometric_transformation/affine/affine_rts (affine_rts)

; 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.cgp::matrix_stack.2" = type { %"struct.cgp::numarray_stack.3" }
%"struct.cgp::numarray_stack.3" = type { %"struct.cgp::numarray_stack.0", %"struct.cgp::numarray_stack.0", %"struct.cgp::numarray_stack.0" }
%"struct.cgp::numarray_stack.0" = type { float, float, float }
%"struct.cgp::affine_rts" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.0", float }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }

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

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

declare void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack.2") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) #3

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZN3cgpmlERKNS_10affine_rtsERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #3 {
  %3 = alloca %"struct.cgp::numarray_stack.0", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.cgp::matrix_stack.2", align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %6) #6
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %11, i32 0, i32 0
  call void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack.2") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %13, i32 0, i32 2
  %15 = load float, ptr %14, align 4, !tbaa !9
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %17 = load float, ptr %16, align 4, !tbaa !16
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %18, i32 0, i32 0
  %20 = load float, ptr %19, align 4, !tbaa !17
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %22 = load float, ptr %21, align 4, !tbaa !16
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %23, i32 0, i32 1
  %25 = load float, ptr %24, align 4, !tbaa !18
  %26 = fmul float %22, %25
  %27 = call float @llvm.fmuladd.f32(float %17, float %20, float %26)
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %29 = load float, ptr %28, align 4, !tbaa !16
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %30, i32 0, i32 2
  %32 = load float, ptr %31, align 4, !tbaa !19
  %33 = call float @llvm.fmuladd.f32(float %29, float %32, float %27)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %35, i32 0, i32 0
  %37 = load float, ptr %36, align 4, !tbaa !20
  %38 = call float @llvm.fmuladd.f32(float %15, float %33, float %37)
  store float %38, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %39, i32 0, i32 2
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %43 = load float, ptr %42, align 4, !tbaa !16
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %44, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !17
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %48 = load float, ptr %47, align 4, !tbaa !16
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !18
  %52 = fmul float %48, %51
  %53 = call float @llvm.fmuladd.f32(float %43, float %46, float %52)
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %55 = load float, ptr %54, align 4, !tbaa !16
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %56, i32 0, i32 2
  %58 = load float, ptr %57, align 4, !tbaa !19
  %59 = call float @llvm.fmuladd.f32(float %55, float %58, float %53)
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !21
  %64 = call float @llvm.fmuladd.f32(float %41, float %59, float %63)
  store float %64, ptr %8, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %65, i32 0, i32 2
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %69 = load float, ptr %68, align 4, !tbaa !16
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 4, !tbaa !17
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %74 = load float, ptr %73, align 4, !tbaa !16
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %75, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !18
  %78 = fmul float %74, %77
  %79 = call float @llvm.fmuladd.f32(float %69, float %72, float %78)
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %6)
  %81 = load float, ptr %80, align 4, !tbaa !16
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %82, i32 0, i32 2
  %84 = load float, ptr %83, align 4, !tbaa !19
  %85 = call float @llvm.fmuladd.f32(float %81, float %84, float %79)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.cgp::affine_rts", ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %87, i32 0, i32 2
  %89 = load float, ptr %88, align 4, !tbaa !22
  %90 = call float @llvm.fmuladd.f32(float %67, float %85, float %89)
  store float %90, ptr %9, align 4, !tbaa !16
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 4 %3, i64 12, i1 false)
  %91 = load { <2 x float>, float }, ptr %10, align 8
  ret { <2 x float>, float } %91
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 28}
!10 = !{!"_ZTSN3cgp10affine_rtsE", !11, i64 0, !15, i64 16, !14, i64 28}
!11 = !{!"_ZTSN3cgp18rotation_transformE", !12, i64 0}
!12 = !{!"_ZTSN3cgp10quaternionE", !13, i64 0}
!13 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !14, i64 0, !14, i64 4, !14, i64 8}
!16 = !{!14, !14, i64 0}
!17 = !{!15, !14, i64 0}
!18 = !{!15, !14, i64 4}
!19 = !{!15, !14, i64 8}
!20 = !{!10, !14, i64 16}
!21 = !{!10, !14, i64 20}
!22 = !{!10, !14, i64 24}


; 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.cgp::matrix_stack.2" = type { %"struct.cgp::numarray_stack.3" }
%"struct.cgp::numarray_stack.3" = type { %"struct.cgp::numarray_stack.0", %"struct.cgp::numarray_stack.0", %"struct.cgp::numarray_stack.0" }
%"struct.cgp::numarray_stack.0" = type { float, float, float }

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

declare void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack.2") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36)) 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) #0

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZN3cgpmlERKNS_10affine_rtsERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(32) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.cgp::numarray_stack.0", align 8
  %4 = alloca %"struct.cgp::matrix_stack.2", align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #5
  call void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::matrix_stack.2") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 28
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %11 = load float, ptr %10, align 4, !tbaa !14
  %12 = load float, ptr %1, align 4, !tbaa !15
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %14 = load float, ptr %13, align 4, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %1, i64 4
  %16 = load float, ptr %15, align 4, !tbaa !16
  %17 = fmul float %14, %16
  %18 = call float @llvm.fmuladd.f32(float %11, float %12, float %17)
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %20 = load float, ptr %19, align 4, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !17
  %23 = call float @llvm.fmuladd.f32(float %20, float %22, float %18)
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load float, ptr %24, align 4, !tbaa !18
  %26 = call float @llvm.fmuladd.f32(float %9, float %23, float %25)
  store float %26, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %27 = load float, ptr %8, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %29 = load float, ptr %28, align 4, !tbaa !14
  %30 = load float, ptr %1, align 4, !tbaa !15
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %32 = load float, ptr %31, align 4, !tbaa !14
  %33 = load float, ptr %15, align 4, !tbaa !16
  %34 = fmul float %32, %33
  %35 = call float @llvm.fmuladd.f32(float %29, float %30, float %34)
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %37 = load float, ptr %36, align 4, !tbaa !14
  %38 = load float, ptr %21, align 4, !tbaa !17
  %39 = call float @llvm.fmuladd.f32(float %37, float %38, float %35)
  %40 = getelementptr inbounds i8, ptr %0, i64 20
  %41 = load float, ptr %40, align 4, !tbaa !19
  %42 = call float @llvm.fmuladd.f32(float %27, float %39, float %41)
  store float %42, ptr %6, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %43 = load float, ptr %8, align 4, !tbaa !5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %45 = load float, ptr %44, align 4, !tbaa !14
  %46 = load float, ptr %1, align 4, !tbaa !15
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %48 = load float, ptr %47, align 4, !tbaa !14
  %49 = load float, ptr %15, align 4, !tbaa !16
  %50 = fmul float %48, %49
  %51 = call float @llvm.fmuladd.f32(float %45, float %46, float %50)
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = load float, ptr %21, align 4, !tbaa !17
  %55 = call float @llvm.fmuladd.f32(float %53, float %54, float %51)
  %56 = getelementptr inbounds i8, ptr %0, i64 24
  %57 = load float, ptr %56, align 4, !tbaa !20
  %58 = call float @llvm.fmuladd.f32(float %43, float %55, float %57)
  store float %58, ptr %7, align 4, !tbaa !14
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #5
  %.sroa.0.0.copyload = load <2 x float>, ptr %3, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.2.0.copyload = load float, ptr %.sroa.2.0..sroa_idx, align 8
  %.fca.0.insert = insertvalue { <2 x float>, float } poison, <2 x float> %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { <2 x float>, float } %.fca.0.insert, float %.sroa.2.0.copyload, 1
  ret { <2 x float>, float } %.fca.1.insert
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress 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 #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, !10, i64 28}
!6 = !{!"_ZTSN3cgp10affine_rtsE", !7, i64 0, !13, i64 16, !10, i64 28}
!7 = !{!"_ZTSN3cgp18rotation_transformE", !8, i64 0}
!8 = !{!"_ZTSN3cgp10quaternionE", !9, i64 0}
!9 = !{!"_ZTSN3cgp14numarray_stackIfLi4EEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!10 = !{!"float", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN3cgp14numarray_stackIfLi3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = !{!13, !10, i64 0}
!16 = !{!13, !10, i64 4}
!17 = !{!13, !10, i64 8}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !10, i64 20}
!20 = !{!6, !10, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass