; LLVM IR from szxp/3d-soft-engine :: src/Mesh.ll (ZN2g314getWorldMatrixERNS_12TriangleMeshE)

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

%"class.g3::Mat" = type { [16 x float] }
%"class.g3::Vec" = type { [3 x float] }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.g3::Quaternion" = type { %"class.g3::Vec", float }
%"struct.g3::TriangleMesh" = type { i32, %"class.std::unique_ptr", i32, %"class.std::unique_ptr.2", float, float, float, %"class.g3::Vec" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }

; 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 @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12), ptr, i64) 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: mustprogress uwtable
define dso_local void @_ZN2g314getWorldMatrixERNS_12TriangleMeshE(ptr dead_on_unwind noalias writable sret(%"class.g3::Mat") align 4 %0, ptr noundef nonnull align 8 dereferenceable(56) %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.g3::Vec", align 4
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [3 x float], align 4
  %8 = alloca %"class.g3::Vec", align 4
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [3 x float], align 4
  %11 = alloca %"class.g3::Vec", align 4
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [3 x float], align 4
  %14 = alloca %"struct.g3::Quaternion", align 4
  %15 = alloca %"struct.g3::Quaternion", align 4
  %16 = alloca %"struct.g3::Quaternion", align 4
  %17 = alloca %"class.g3::Mat", align 4
  %18 = alloca %"struct.g3::Quaternion", align 4
  %19 = alloca %"struct.g3::Quaternion", align 4
  %20 = alloca %"class.g3::Mat", align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #4
  store float 1.000000e+00, ptr %7, align 4, !tbaa !9
  %21 = getelementptr inbounds float, ptr %7, i64 1
  store float 0.000000e+00, ptr %21, align 4, !tbaa !9
  %22 = getelementptr inbounds float, ptr %7, i64 2
  store float 0.000000e+00, ptr %22, align 4, !tbaa !9
  %23 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 0
  store ptr %7, ptr %23, align 8, !tbaa !11
  %24 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1
  store i64 3, ptr %24, align 8, !tbaa !14
  %25 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8
  %27 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %28 = load i64, ptr %27, align 8
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr %26, i64 %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  store float 0.000000e+00, ptr %10, align 4, !tbaa !9
  %29 = getelementptr inbounds float, ptr %10, i64 1
  store float 1.000000e+00, ptr %29, align 4, !tbaa !9
  %30 = getelementptr inbounds float, ptr %10, i64 2
  store float 0.000000e+00, ptr %30, align 4, !tbaa !9
  %31 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %31, align 8, !tbaa !11
  %32 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 3, ptr %32, align 8, !tbaa !14
  %33 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %36 = load i64, ptr %35, align 8
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr %34, i64 %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #4
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  %37 = getelementptr inbounds float, ptr %13, i64 1
  store float 0.000000e+00, ptr %37, align 4, !tbaa !9
  %38 = getelementptr inbounds float, ptr %13, i64 2
  store float 1.000000e+00, ptr %38, align 4, !tbaa !9
  %39 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 0
  store ptr %13, ptr %39, align 8, !tbaa !11
  %40 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 1
  store i64 3, ptr %40, align 8, !tbaa !14
  %41 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr %42, i64 %44)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %45, i32 0, i32 4
  %47 = load float, ptr %46, align 8, !tbaa !15
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %48, i32 0, i32 5
  %50 = load float, ptr %49, align 4, !tbaa !31
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %50)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %51, i32 0, i32 6
  %53 = load float, ptr %52, align 8, !tbaa !32
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %53)
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4 %19, ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4 %18, ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %14)
  call void @_ZN2g320createRotationMatrixERKNS_10QuaternionE(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4 %17, ptr noundef nonnull align 4 dereferenceable(16) %18)
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %54, i32 0, i32 7
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %55, i32 noundef 0)
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %58, i32 0, i32 7
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %59, i32 noundef 1)
  %61 = load float, ptr %60, align 4, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.g3::TriangleMesh", ptr %62, i32 0, i32 7
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %63, i32 noundef 2)
  %65 = load float, ptr %64, align 4, !tbaa !9
  call void @_ZN2g323createTranslationMatrixEfff(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4 %20, float noundef %57, float noundef %61, float noundef %65)
  call void @_ZNK2g33MatILm4EEmlERKS1_(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4 %0, ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(64) %20)
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #4
  ret void
}

declare void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3

declare void @_ZN2g320createRotationMatrixERKNS_10QuaternionE(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #3

declare void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2g33MatILm4EEmlERKS1_(ptr dead_on_unwind noalias writable sret(%"class.g3::Mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

declare void @_ZN2g323createTranslationMatrixEfff(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4, float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1 align 2

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 = { 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 = { "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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listIfE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !10, i64 32}
!16 = !{!"_ZTSN2g312TriangleMeshE", !17, i64 0, !18, i64 8, !17, i64 16, !24, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !30, i64 44}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt10unique_ptrIA_N2g36VertexESt14default_deleteIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_dataIN2g36VertexESt14default_deleteIA_S1_ELb1ELb1EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_implIN2g36VertexESt14default_deleteIA_S1_EE", !21, i64 0}
!21 = !{!"_ZTSSt5tupleIJPN2g36VertexESt14default_deleteIA_S1_EEE", !22, i64 0}
!22 = !{!"_ZTSSt11_Tuple_implILm0EJPN2g36VertexESt14default_deleteIA_S1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm0EPN2g36VertexELb0EE", !6, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIA_N2g38TriangleESt14default_deleteIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIN2g38TriangleESt14default_deleteIA_S1_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIN2g38TriangleESt14default_deleteIA_S1_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPN2g38TriangleESt14default_deleteIA_S1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPN2g38TriangleESt14default_deleteIA_S1_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPN2g38TriangleELb0EE", !6, i64 0}
!30 = !{!"_ZTSN2g33VecILm3EEE", !7, i64 0}
!31 = !{!16, !10, i64 36}
!32 = !{!16, !10, i64 40}


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

%"class.g3::Mat" = type { [16 x float] }
%"class.g3::Vec" = type { [3 x float] }
%"struct.g3::Quaternion" = type { %"class.g3::Vec", 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 @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12), ptr, i64) 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2g314getWorldMatrixERNS_12TriangleMeshE(ptr dead_on_unwind noalias writable sret(%"class.g3::Mat") align 4 %0, ptr noundef nonnull align 8 dereferenceable(56) %1) local_unnamed_addr #2 {
  %3 = alloca %"class.g3::Vec", align 4
  %4 = alloca [3 x float], align 8
  %5 = alloca %"class.g3::Vec", align 4
  %6 = alloca [3 x float], align 8
  %7 = alloca %"class.g3::Vec", align 4
  %8 = alloca [3 x float], align 8
  %9 = alloca %"struct.g3::Quaternion", align 4
  %10 = alloca %"struct.g3::Quaternion", align 4
  %11 = alloca %"struct.g3::Quaternion", align 4
  %12 = alloca %"class.g3::Mat", align 4
  %13 = alloca %"struct.g3::Quaternion", align 4
  %14 = alloca %"struct.g3::Quaternion", align 4
  %15 = alloca %"class.g3::Mat", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %4, i64 8
  store float 0.000000e+00, ptr %16, align 8, !tbaa !5
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr nonnull %4, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  store float 0.000000e+00, ptr %17, align 8, !tbaa !5
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr nonnull %6, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  store <2 x float> zeroinitializer, ptr %8, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  store float 1.000000e+00, ptr %18, align 8, !tbaa !5
  call void @_ZN2g33VecILm3EEC2ESt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr nonnull %8, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load float, ptr %19, align 8, !tbaa !9
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind nonnull writable sret(%"struct.g3::Quaternion") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %21 = getelementptr inbounds i8, ptr %1, i64 36
  %22 = load float, ptr %21, align 4, !tbaa !26
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind nonnull writable sret(%"struct.g3::Quaternion") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %22)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %23 = getelementptr inbounds i8, ptr %1, i64 40
  %24 = load float, ptr %23, align 8, !tbaa !27
  call void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind nonnull writable sret(%"struct.g3::Quaternion") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %24)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  call void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind nonnull writable sret(%"struct.g3::Quaternion") align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind nonnull writable sret(%"struct.g3::Quaternion") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @_ZN2g320createRotationMatrixERKNS_10QuaternionE(ptr dead_on_unwind nonnull writable sret(%"class.g3::Mat") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %13)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  %25 = getelementptr inbounds i8, ptr %1, i64 44
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef 0)
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef 1)
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef 2)
  %31 = load float, ptr %30, align 4, !tbaa !5
  call void @_ZN2g323createTranslationMatrixEfff(ptr dead_on_unwind nonnull writable sret(%"class.g3::Mat") align 4 %15, float noundef %27, float noundef %29, float noundef %31)
  call void @_ZNK2g33MatILm4EEmlERKS1_(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4 %0, ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %15)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  ret void
}

declare void @_ZN2g316createQuaternionERKNS_3VecILm3EEEf(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3

declare void @_ZN2g320createRotationMatrixERKNS_10QuaternionE(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN2g3mlERKNS_10QuaternionES2_(ptr dead_on_unwind writable sret(%"struct.g3::Quaternion") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2g33MatILm4EEmlERKS1_(ptr dead_on_unwind noalias writable sret(%"class.g3::Mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

declare void @_ZN2g323createTranslationMatrixEfff(ptr dead_on_unwind writable sret(%"class.g3::Mat") align 4, float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2g33VecILm3EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

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 = { 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 = { "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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTSN2g312TriangleMeshE", !11, i64 0, !12, i64 8, !11, i64 16, !19, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !25, i64 44}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt10unique_ptrIA_N2g36VertexESt14default_deleteIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_dataIN2g36VertexESt14default_deleteIA_S1_ELb1ELb1EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_implIN2g36VertexESt14default_deleteIA_S1_EE", !15, i64 0}
!15 = !{!"_ZTSSt5tupleIJPN2g36VertexESt14default_deleteIA_S1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt11_Tuple_implILm0EJPN2g36VertexESt14default_deleteIA_S1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt10_Head_baseILm0EPN2g36VertexELb0EE", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIA_N2g38TriangleESt14default_deleteIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIN2g38TriangleESt14default_deleteIA_S1_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIN2g38TriangleESt14default_deleteIA_S1_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPN2g38TriangleESt14default_deleteIA_S1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPN2g38TriangleESt14default_deleteIA_S1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPN2g38TriangleELb0EE", !18, i64 0}
!25 = !{!"_ZTSN2g33VecILm3EEE", !7, i64 0}
!26 = !{!10, !6, i64 36}
!27 = !{!10, !6, i64 40}


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