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

; 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" = type { %"struct.cgp::numarray_stack.1" }
%"struct.cgp::numarray_stack.1" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"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 }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.cgp::affine" = type { %"struct.cgp::rotation_transform", %"struct.cgp::numarray_stack.0", float, %"struct.cgp::numarray_stack.0" }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack" }

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

; Function Attrs: 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 void @_ZNK3cgp6affine6matrixEv(ptr dead_on_unwind noalias writable sret(%"struct.cgp::matrix_stack") align 4 %0, ptr noundef nonnull align 4 dereferenceable(44) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.cgp::matrix_stack.2", align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [16 x float], align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 36, ptr %5) #3
  %12 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 0
  call void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind writable sret(%"struct.cgp::matrix_stack.2") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %12)
  store ptr %5, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %13 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 3
  %14 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %13, i32 0, i32 0
  %15 = load float, ptr %14, align 4, !tbaa !9
  %16 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 2
  %17 = load float, ptr %16, align 4, !tbaa !16
  %18 = fmul float %15, %17
  store float %18, ptr %6, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %19 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 3
  %20 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %19, i32 0, i32 1
  %21 = load float, ptr %20, align 4, !tbaa !18
  %22 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 2
  %23 = load float, ptr %22, align 4, !tbaa !16
  %24 = fmul float %21, %23
  store float %24, ptr %7, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %25 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 3
  %26 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %25, i32 0, i32 2
  %27 = load float, ptr %26, align 4, !tbaa !19
  %28 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 2
  %29 = load float, ptr %28, align 4, !tbaa !16
  %30 = fmul float %27, %29
  store float %30, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #3
  %31 = load float, ptr %6, align 4, !tbaa !17
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %32)
  %34 = load float, ptr %33, align 4, !tbaa !17
  %35 = fmul float %31, %34
  store float %35, ptr %10, align 4, !tbaa !17
  %36 = getelementptr inbounds float, ptr %10, i64 1
  %37 = load float, ptr %6, align 4, !tbaa !17
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %38)
  %40 = load float, ptr %39, align 4, !tbaa !17
  %41 = fmul float %37, %40
  store float %41, ptr %36, align 4, !tbaa !17
  %42 = getelementptr inbounds float, ptr %10, i64 2
  %43 = load float, ptr %6, align 4, !tbaa !17
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %44)
  %46 = load float, ptr %45, align 4, !tbaa !17
  %47 = fmul float %43, %46
  store float %47, ptr %42, align 4, !tbaa !17
  %48 = getelementptr inbounds float, ptr %10, i64 3
  %49 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 4, !tbaa !20
  store float %51, ptr %48, align 4, !tbaa !17
  %52 = getelementptr inbounds float, ptr %10, i64 4
  %53 = load float, ptr %7, align 4, !tbaa !17
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %54)
  %56 = load float, ptr %55, align 4, !tbaa !17
  %57 = fmul float %53, %56
  store float %57, ptr %52, align 4, !tbaa !17
  %58 = getelementptr inbounds float, ptr %10, i64 5
  %59 = load float, ptr %7, align 4, !tbaa !17
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %60)
  %62 = load float, ptr %61, align 4, !tbaa !17
  %63 = fmul float %59, %62
  store float %63, ptr %58, align 4, !tbaa !17
  %64 = getelementptr inbounds float, ptr %10, i64 6
  %65 = load float, ptr %7, align 4, !tbaa !17
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %66)
  %68 = load float, ptr %67, align 4, !tbaa !17
  %69 = fmul float %65, %68
  store float %69, ptr %64, align 4, !tbaa !17
  %70 = getelementptr inbounds float, ptr %10, i64 7
  %71 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 1
  %72 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %71, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !21
  store float %73, ptr %70, align 4, !tbaa !17
  %74 = getelementptr inbounds float, ptr %10, i64 8
  %75 = load float, ptr %8, align 4, !tbaa !17
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %76)
  %78 = load float, ptr %77, align 4, !tbaa !17
  %79 = fmul float %75, %78
  store float %79, ptr %74, align 4, !tbaa !17
  %80 = getelementptr inbounds float, ptr %10, i64 9
  %81 = load float, ptr %8, align 4, !tbaa !17
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %82)
  %84 = load float, ptr %83, align 4, !tbaa !17
  %85 = fmul float %81, %84
  store float %85, ptr %80, align 4, !tbaa !17
  %86 = getelementptr inbounds float, ptr %10, i64 10
  %87 = load float, ptr %8, align 4, !tbaa !17
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %88)
  %90 = load float, ptr %89, align 4, !tbaa !17
  %91 = fmul float %87, %90
  store float %91, ptr %86, align 4, !tbaa !17
  %92 = getelementptr inbounds float, ptr %10, i64 11
  %93 = getelementptr inbounds %"struct.cgp::affine", ptr %11, i32 0, i32 1
  %94 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %93, i32 0, i32 2
  %95 = load float, ptr %94, align 4, !tbaa !22
  store float %95, ptr %92, align 4, !tbaa !17
  %96 = getelementptr inbounds float, ptr %10, i64 12
  store float 0.000000e+00, ptr %96, align 4, !tbaa !17
  %97 = getelementptr inbounds float, ptr %10, i64 13
  store float 0.000000e+00, ptr %97, align 4, !tbaa !17
  %98 = getelementptr inbounds float, ptr %10, i64 14
  store float 0.000000e+00, ptr %98, align 4, !tbaa !17
  %99 = getelementptr inbounds float, ptr %10, i64 15
  store float 1.000000e+00, ptr %99, align 4, !tbaa !17
  %100 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %100, align 8, !tbaa !23
  %101 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 16, ptr %101, align 8, !tbaa !26
  call void @_ZN3cgp12matrix_stackIfLi4ELi4EEC1ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 36, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  ret void
}

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)) #1

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

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

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

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

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

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

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

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

declare void @_ZN3cgp12matrix_stackIfLi4ELi4EEC1ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 32}
!10 = !{!"_ZTSN3cgp6affineE", !11, i64 0, !15, i64 16, !14, i64 28, !15, i64 32}
!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 = !{!10, !14, i64 28}
!17 = !{!14, !14, i64 0}
!18 = !{!10, !14, i64 36}
!19 = !{!10, !14, i64 40}
!20 = !{!10, !14, i64 16}
!21 = !{!10, !14, i64 20}
!22 = !{!10, !14, i64 24}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSSt16initializer_listIfE", !6, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!24, !25, i64 8}


; 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" = type { %"struct.cgp::numarray_stack.1" }
%"struct.cgp::numarray_stack.1" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack" }
%"struct.cgp::numarray_stack" = type { float, float, float, float }
%"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 }
%"class.std::initializer_list" = type { ptr, i64 }

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

; 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 void @_ZNK3cgp6affine6matrixEv(ptr dead_on_unwind noalias writable sret(%"struct.cgp::matrix_stack") align 4 %0, ptr noundef nonnull align 4 dereferenceable(44) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"struct.cgp::matrix_stack.2", align 4
  %4 = alloca %"class.std::initializer_list", align 8
  %5 = alloca [16 x float], align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #3
  call void @_ZNK3cgp18rotation_transform6matrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::matrix_stack.2") align 4 %3, ptr noundef nonnull align 4 dereferenceable(16) %1)
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  %7 = load float, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 28
  %9 = load float, ptr %8, align 4, !tbaa !14
  %10 = fmul float %7, %9
  %11 = getelementptr inbounds i8, ptr %1, i64 36
  %12 = load float, ptr %11, align 4, !tbaa !15
  %13 = fmul float %9, %12
  %14 = getelementptr inbounds i8, ptr %1, i64 40
  %15 = load float, ptr %14, align 4, !tbaa !16
  %16 = fmul float %9, %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #3
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %18 = load float, ptr %17, align 4, !tbaa !17
  %19 = fmul float %10, %18
  store float %19, ptr %5, align 4, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %5, i64 4
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %22 = load float, ptr %21, align 4, !tbaa !17
  %23 = fmul float %10, %22
  store float %23, ptr %20, align 4, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %26 = load float, ptr %25, align 4, !tbaa !17
  %27 = fmul float %10, %26
  store float %27, ptr %24, align 4, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %5, i64 12
  %29 = getelementptr inbounds i8, ptr %1, i64 16
  %30 = load float, ptr %29, align 4, !tbaa !18
  store float %30, ptr %28, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %5, i64 16
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %33 = load float, ptr %32, align 4, !tbaa !17
  %34 = fmul float %13, %33
  store float %34, ptr %31, align 4, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %5, i64 20
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %37 = load float, ptr %36, align 4, !tbaa !17
  %38 = fmul float %13, %37
  store float %38, ptr %35, align 4, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %5, i64 24
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = fmul float %13, %41
  store float %42, ptr %39, align 4, !tbaa !17
  %43 = getelementptr inbounds i8, ptr %5, i64 28
  %44 = getelementptr inbounds i8, ptr %1, i64 20
  %45 = load float, ptr %44, align 4, !tbaa !19
  store float %45, ptr %43, align 4, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %5, i64 32
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %48 = load float, ptr %47, align 4, !tbaa !17
  %49 = fmul float %16, %48
  store float %49, ptr %46, align 4, !tbaa !17
  %50 = getelementptr inbounds i8, ptr %5, i64 36
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %52 = load float, ptr %51, align 4, !tbaa !17
  %53 = fmul float %16, %52
  store float %53, ptr %50, align 4, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %5, i64 40
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %3)
  %56 = load float, ptr %55, align 4, !tbaa !17
  %57 = fmul float %16, %56
  store float %57, ptr %54, align 4, !tbaa !17
  %58 = getelementptr inbounds i8, ptr %5, i64 44
  %59 = getelementptr inbounds i8, ptr %1, i64 24
  %60 = load float, ptr %59, align 4, !tbaa !20
  store float %60, ptr %58, align 4, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %5, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %61, align 4, !tbaa !17
  store ptr %5, ptr %4, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 16, ptr %62, align 8, !tbaa !25
  call void @_ZN3cgp12matrix_stackIfLi4ELi4EEC1ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #3
  ret void
}

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 #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)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

declare void @_ZN3cgp12matrix_stackIfLi4ELi4EEC1ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 32}
!6 = !{!"_ZTSN3cgp6affineE", !7, i64 0, !13, i64 16, !10, i64 28, !13, i64 32}
!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 = !{!6, !10, i64 28}
!15 = !{!6, !10, i64 36}
!16 = !{!6, !10, i64 40}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !10, i64 20}
!20 = !{!6, !10, i64 24}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSSt16initializer_listIfE", !23, i64 0, !24, i64 8}
!23 = !{!"any pointer", !11, i64 0}
!24 = !{!"long", !11, i64 0}
!25 = !{!22, !24, i64 8}


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