; LLVM IR from atlantis13579/Riemann :: Test/Test_Vehicle.ll (Z7TestLqrv)

; 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.Maths::TMatrixMxN" = type { [4 x float] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.Maths::TMatrixMxN.0" = type { [2 x float] }
%"class.Maths::TMatrixMxN.1" = type { [1 x float] }
%class.LinearQuadraticRegulator = type { %"class.Maths::TMatrixMxN", %"class.Maths::TMatrixMxN.0", %"class.Maths::TMatrixMxN", %"class.Maths::TMatrixMxN.1", %"class.Maths::TMatrixMxN.2", float }
%"class.Maths::TMatrixMxN.2" = type { [2 x float] }
%"class.Maths::TVectorN" = type { [2 x float] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_Z7TestLqrv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca float, align 4
  %2 = alloca %"class.Maths::TMatrixMxN", align 4
  %3 = alloca %"class.std::initializer_list", align 8
  %4 = alloca [4 x float], align 4
  %5 = alloca %"class.Maths::TMatrixMxN.0", align 4
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [2 x float], align 4
  %8 = alloca %"class.Maths::TMatrixMxN", align 4
  %9 = alloca %"class.Maths::TMatrixMxN.1", align 4
  %10 = alloca %class.LinearQuadraticRegulator, align 4
  %11 = alloca %"class.Maths::TMatrixMxN", align 4
  %12 = alloca %"class.Maths::TMatrixMxN.0", align 4
  %13 = alloca %"class.Maths::TMatrixMxN", align 4
  %14 = alloca %"class.Maths::TMatrixMxN.1", align 4
  %15 = alloca %"class.Maths::TVectorN", align 4
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [2 x float], align 4
  %18 = alloca %"class.Maths::TVectorN", align 4
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [2 x float], align 4
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.Maths::TVectorN", align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.Maths::TVectorN", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store float 0x3FB99999A0000000, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  store float 0x3FB99999A0000000, ptr %4, align 4, !tbaa !5
  %27 = getelementptr inbounds float, ptr %4, i64 1
  store float 1.000000e+00, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds float, ptr %4, i64 2
  store float 0.000000e+00, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds float, ptr %4, i64 3
  store float 0x3FB99999A0000000, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds %"class.std::initializer_list", ptr %3, i32 0, i32 0
  store ptr %4, ptr %30, align 8, !tbaa !9
  %31 = getelementptr inbounds %"class.std::initializer_list", ptr %3, i32 0, i32 1
  store i64 4, ptr %31, align 8, !tbaa !13
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store float 0.000000e+00, ptr %7, align 4, !tbaa !5
  %32 = getelementptr inbounds float, ptr %7, i64 1
  store float 1.000000e+00, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 0
  store ptr %7, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1
  store i64 2, ptr %34, align 8, !tbaa !13
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EE8IdentityEv(ptr dead_on_unwind writable sret(%"class.Maths::TMatrixMxN") align 4 %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @_ZN5Maths10TMatrixMxNIfLi1ELi1EE8IdentityEv(ptr dead_on_unwind writable sret(%"class.Maths::TMatrixMxN.1") align 4 %9)
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #5
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %2)
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @_ZN5Maths10TMatrixMxNIfLi1ELi1EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @_ZN24LinearQuadraticRegulatorILi2ELi1EEC2EN5Maths10TMatrixMxNIfLi2ELi2EEENS2_IfLi2ELi1EEES3_NS2_IfLi1ELi1EEE(ptr noundef nonnull align 4 dereferenceable(56) %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store float 0.000000e+00, ptr %17, align 4, !tbaa !5
  %35 = getelementptr inbounds float, ptr %17, i64 1
  store float 0.000000e+00, ptr %35, align 4, !tbaa !5
  %36 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %36, align 8, !tbaa !9
  %37 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 2, ptr %37, align 8, !tbaa !13
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store float 1.000000e+00, ptr %20, align 4, !tbaa !5
  %38 = getelementptr inbounds float, ptr %20, i64 1
  store float 1.500000e+00, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %39, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 2, ptr %40, align 8, !tbaa !13
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  invoke void @_ZN5Maths8TVectorNIfLi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %41 unwind label %52

41:                                               ; preds = %0
  invoke void @_ZN5Maths8TVectorNIfLi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %42 unwind label %52

42:                                               ; preds = %41
  %43 = invoke noundef zeroext i1 @_ZN24LinearQuadraticRegulatorILi2ELi1EE5SolveEffN5Maths8TVectorNIfLi2EEES3_PSt6vectorIS3_SaIS3_EE(ptr noundef nonnull align 4 dereferenceable(56) %10, float noundef 0x3FA0E56040000000, float noundef 1.000000e+00, ptr noundef %23, ptr noundef %26, ptr noundef %21)
          to label %44 unwind label %52

44:                                               ; preds = %42
  %45 = zext i1 %43 to i8
  store i8 %45, ptr %22, align 1, !tbaa !14
  %46 = load i8, ptr %22, align 1, !tbaa !14, !range !16, !noundef !17
  %47 = trunc i8 %46 to i1
  br i1 %47, label %56, label %48

48:                                               ; preds = %44
  %49 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 43)
          to label %50 unwind label %52

50:                                               ; preds = %48
  invoke void @_Z10BreakPointPKcl(ptr noundef @.str.2, i64 noundef 43)
          to label %51 unwind label %52

51:                                               ; preds = %50
  br label %56

52:                                               ; preds = %50, %48, %42, %41, %0
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %24, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %57

56:                                               ; preds = %51, %44
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

57:                                               ; preds = %52
  %58 = load ptr, ptr %24, align 8
  %59 = load i32, ptr %25, align 4
  %60 = insertvalue { ptr, i32 } poison, ptr %58, 0
  %61 = insertvalue { ptr, i32 } %60, i32 %59, 1
  resume { ptr, i32 } %61
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi2EE8IdentityEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TMatrixMxN") align 4) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi1ELi1EE8IdentityEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TMatrixMxN.1") align 4) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN24LinearQuadraticRegulatorILi2ELi1EE5SolveEffN5Maths8TVectorNIfLi2EEES3_PSt6vectorIS3_SaIS3_EE(ptr noundef nonnull align 4 dereferenceable(56), float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10BreakPointPKcl(ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

attributes #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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { inlinehint 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, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt16initializer_listIfE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}


; 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.Maths::TMatrixMxN" = type { [4 x float] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.Maths::TMatrixMxN.0" = type { [2 x float] }
%"class.Maths::TMatrixMxN.1" = type { [1 x float] }
%class.LinearQuadraticRegulator = type { %"class.Maths::TMatrixMxN", %"class.Maths::TMatrixMxN.0", %"class.Maths::TMatrixMxN", %"class.Maths::TMatrixMxN.1", %"class.Maths::TMatrixMxN.2", float }
%"class.Maths::TMatrixMxN.2" = type { [2 x float] }
%"class.Maths::TVectorN" = type { [2 x float] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVectorN<float, 2>, std::allocator<Maths::TVectorN<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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 void @_Z7TestLqrv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.Maths::TMatrixMxN", align 4
  %2 = alloca %"class.std::initializer_list", align 8
  %3 = alloca [4 x float], align 16
  %4 = alloca %"class.Maths::TMatrixMxN.0", align 4
  %5 = alloca %"class.std::initializer_list", align 8
  %6 = alloca [2 x float], align 8
  %7 = alloca %"class.Maths::TMatrixMxN", align 4
  %8 = alloca %"class.Maths::TMatrixMxN.1", align 4
  %9 = alloca %class.LinearQuadraticRegulator, align 4
  %10 = alloca %"class.Maths::TMatrixMxN", align 4
  %11 = alloca %"class.Maths::TMatrixMxN.0", align 4
  %12 = alloca %"class.Maths::TMatrixMxN", align 4
  %13 = alloca %"class.Maths::TMatrixMxN.1", align 4
  %14 = alloca %"class.Maths::TVectorN", align 4
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [2 x float], align 8
  %17 = alloca %"class.Maths::TVectorN", align 4
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [2 x float], align 8
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.Maths::TVectorN", align 4
  %22 = alloca %"class.Maths::TVectorN", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  store <4 x float> <float 0x3FB99999A0000000, float 1.000000e+00, float 0.000000e+00, float 0x3FB99999A0000000>, ptr %3, align 16, !tbaa !5
  store ptr %3, ptr %2, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 4, ptr %23, align 8, !tbaa !13
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %6, align 8, !tbaa !5
  store ptr %6, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 2, ptr %24, align 8, !tbaa !13
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EE8IdentityEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TMatrixMxN") align 4 %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @_ZN5Maths10TMatrixMxNIfLi1ELi1EE8IdentityEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TMatrixMxN.1") align 4 %8)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #5
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %1)
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @_ZN5Maths10TMatrixMxNIfLi1ELi1EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZN24LinearQuadraticRegulatorILi2ELi1EEC2EN5Maths10TMatrixMxNIfLi2ELi2EEENS2_IfLi2ELi1EEES3_NS2_IfLi1ELi1EEE(ptr noundef nonnull align 4 dereferenceable(56) %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  store <2 x float> zeroinitializer, ptr %16, align 8, !tbaa !5
  store ptr %16, ptr %15, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %15, i64 8
  store i64 2, ptr %25, align 8, !tbaa !13
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  store <2 x float> <float 1.000000e+00, float 1.500000e+00>, ptr %19, align 8, !tbaa !5
  store ptr %19, ptr %18, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %18, i64 8
  store i64 2, ptr %26, align 8, !tbaa !13
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #5
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @_ZN5Maths8TVectorNIfLi2EEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %27 = invoke noundef zeroext i1 @_ZN24LinearQuadraticRegulatorILi2ELi1EE5SolveEffN5Maths8TVectorNIfLi2EEES3_PSt6vectorIS3_SaIS3_EE(ptr noundef nonnull align 4 dereferenceable(56) %9, float noundef 0x3FA0E56040000000, float noundef 1.000000e+00, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %20)
          to label %28 unwind label %31

28:                                               ; preds = %0
  br i1 %27, label %33, label %29

29:                                               ; preds = %28
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2, i32 noundef 43)
  call void @_Z10BreakPointPKcl(ptr noundef nonnull @.str.2, i64 noundef 43)
  br label %33

31:                                               ; preds = %0
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  resume { ptr, i32 } %32

33:                                               ; preds = %29, %28
  call void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi1EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi2ELi2EE8IdentityEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TMatrixMxN") align 4) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths10TMatrixMxNIfLi1ELi1EE8IdentityEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TMatrixMxN.1") align 4) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVectorNIfLi2EEC2ERKSt16initializer_listIfE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN24LinearQuadraticRegulatorILi2ELi1EE5SolveEffN5Maths8TVectorNIfLi2EEES3_PSt6vectorIS3_SaIS3_EE(ptr noundef nonnull align 4 dereferenceable(56), float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10BreakPointPKcl(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVectorNIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { inlinehint 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, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt16initializer_listIfE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}


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