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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = !{!15, !14, i64 0}
!19 = !{!15, !14, i64 4}
!20 = !{!15, !14, i64 8}
!21 = !{!10, !14, i64 16}
!22 = !{!10, !14, i64 36}
!23 = !{!10, !14, i64 20}
!24 = !{!10, !14, i64 40}
!25 = !{!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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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 #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 #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #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)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, float } @_ZN3cgpmlERKNS_6affineERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(44) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %1) local_unnamed_addr #3 {
  %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 32
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load float, ptr %10, align 4, !tbaa !14
  %12 = fmul float %9, %11
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %14 = load float, ptr %13, align 4, !tbaa !15
  %15 = load float, ptr %1, align 4, !tbaa !16
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %17 = load float, ptr %16, align 4, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !17
  %20 = fmul float %17, %19
  %21 = call float @llvm.fmuladd.f32(float %14, float %15, float %20)
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi0ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %23 = load float, ptr %22, align 4, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = load float, ptr %24, align 4, !tbaa !18
  %26 = call float @llvm.fmuladd.f32(float %23, float %25, float %21)
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load float, ptr %27, align 4, !tbaa !19
  %29 = call float @llvm.fmuladd.f32(float %12, float %26, float %28)
  store float %29, ptr %5, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 36
  %31 = load float, ptr %30, align 4, !tbaa !20
  %32 = load float, ptr %10, align 4, !tbaa !14
  %33 = fmul float %31, %32
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %35 = load float, ptr %34, align 4, !tbaa !15
  %36 = load float, ptr %1, align 4, !tbaa !16
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %38 = load float, ptr %37, align 4, !tbaa !15
  %39 = load float, ptr %18, align 4, !tbaa !17
  %40 = fmul float %38, %39
  %41 = call float @llvm.fmuladd.f32(float %35, float %36, float %40)
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi1ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %43 = load float, ptr %42, align 4, !tbaa !15
  %44 = load float, ptr %24, align 4, !tbaa !18
  %45 = call float @llvm.fmuladd.f32(float %43, float %44, float %41)
  %46 = getelementptr inbounds i8, ptr %0, i64 20
  %47 = load float, ptr %46, align 4, !tbaa !21
  %48 = call float @llvm.fmuladd.f32(float %33, float %45, float %47)
  store float %48, ptr %6, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %49 = getelementptr inbounds i8, ptr %0, i64 40
  %50 = load float, ptr %49, align 4, !tbaa !22
  %51 = load float, ptr %10, align 4, !tbaa !14
  %52 = fmul float %50, %51
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi0EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %54 = load float, ptr %53, align 4, !tbaa !15
  %55 = load float, ptr %1, align 4, !tbaa !16
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi1EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %57 = load float, ptr %56, align 4, !tbaa !15
  %58 = load float, ptr %18, align 4, !tbaa !17
  %59 = fmul float %57, %58
  %60 = call float @llvm.fmuladd.f32(float %54, float %55, float %59)
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3cgp3getILi2ELi2EfLi3ELi3EEERKT1_RKNS_12matrix_stackIS1_XT2_EXT3_EEE(ptr noundef nonnull align 4 dereferenceable(36) %4)
  %62 = load float, ptr %61, align 4, !tbaa !15
  %63 = load float, ptr %24, align 4, !tbaa !18
  %64 = call float @llvm.fmuladd.f32(float %62, float %63, float %60)
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = load float, ptr %65, align 4, !tbaa !23
  %67 = call float @llvm.fmuladd.f32(float %52, float %64, float %66)
  store float %67, ptr %7, align 4, !tbaa !15
  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) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!10, !10, i64 0}
!16 = !{!13, !10, i64 0}
!17 = !{!13, !10, i64 4}
!18 = !{!13, !10, i64 8}
!19 = !{!6, !10, i64 16}
!20 = !{!6, !10, i64 36}
!21 = !{!6, !10, i64 20}
!22 = !{!6, !10, i64 40}
!23 = !{!6, !10, i64 24}


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