; LLVM IR from ERGO-Code/HiGHS :: src/qpsolver/basis.ll (ZN5Basis10recomputexERK8Instance)

; 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.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.8", double, %"class.std::vector.13", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Basis = type <{ %class.HVectorBase, %struct.QpVector, %struct.QpVector, ptr, %class.HFactor, i32, [4 x i8], %struct.MatrixBase, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::map", %"class.std::vector", %struct.QpVector, %struct.QpVector, i32, i32, %class.HVectorBase, %class.HVectorBase, i8, [7 x i8] }>
%class.HFactor = type { double, double, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.RefactorInfo, i32, i32, i32, i32, i32, i32, i32, double, i8, ptr, ptr, ptr, ptr, double, double, i32, double, %"class.std::unique_ptr", %struct.HighsLogOptions, i8, i8, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %class.HVectorBase }
%struct.RefactorInfo = type { i8, %"class.std::vector", %"class.std::vector", %"class.std::vector.15", double }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.21" }
%"struct.std::_Head_base.21" = type { ptr }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%struct.MatrixBase = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.8" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, BasisStatus>, std::_Select1st<std::pair<const int, BasisStatus>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, BasisStatus>, std::_Select1st<std::pair<const int, BasisStatus>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.Instance = type { i32, i32, i32, double, %struct.QpVector, %struct.Matrix, %"class.std::vector.8", %"class.std::vector.8", %struct.Matrix, %"class.std::vector.8", %"class.std::vector.8" }
%struct.Matrix = type { %struct.MatrixBase, i8, %struct.MatrixBase }

@.str.52 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__._ZN5Basis10recomputexERK8Instance = external hidden unnamed_addr constant [45 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QpVectorC2Ei(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

declare void @_ZNK7HFactor9btranCallER11HVectorBaseIdEdP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912), ptr noundef nonnull align 8 dereferenceable(176), double noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Basis8hvec2vecERK11HVectorBaseIdE(ptr dead_on_unwind noalias writable sret(%struct.QpVector) align 8, ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(176)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(176) ptr @_ZN5Basis8vec2hvecERK8QpVector(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11HVectorBaseIdEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Basis10recomputexERK8Instance(ptr dead_on_unwind noalias writable sret(%struct.QpVector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(2913) %1, ptr noundef nonnull align 8 dereferenceable(512) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.QpVector, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.HVectorBase, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8
  %14 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 8
  %15 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %16 = trunc i64 %15 to i32
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.Instance, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = icmp eq i32 %16, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  br label %24

22:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.52, i32 noundef 367, ptr noundef @__PRETTY_FUNCTION__._ZN5Basis10recomputexERK8Instance) #8
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #7
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Instance, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !9
  call void @_ZN8QpVectorC2Ei(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !25
  br label %28

28:                                               ; preds = %151, %24
  %29 = load i32, ptr %8, align 4, !tbaa !25
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Instance, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %154

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %36 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 8
  %37 = load i32, ptr %8, align 4, !tbaa !25
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #7
  %40 = load i32, ptr %39, align 4, !tbaa !25
  store i32 %40, ptr %9, align 4, !tbaa !25
  %41 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 12
  %42 = load i32, ptr %9, align 4, !tbaa !25
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #7
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = icmp eq i32 %45, -1
  br i1 %46, label %47, label %54

47:                                               ; preds = %35
  %48 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.69)
          to label %49 unwind label %50

49:                                               ; preds = %47
  br label %54

50:                                               ; preds = %54, %47
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %10, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %170

54:                                               ; preds = %49, %35
  %55 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 11
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %55, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %57 unwind label %50

57:                                               ; preds = %54
  %58 = load i32, ptr %56, align 4, !tbaa !26
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %101

60:                                               ; preds = %57
  %61 = load i32, ptr %9, align 4, !tbaa !25
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Instance, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !28
  %65 = icmp slt i32 %61, %64
  br i1 %65, label %66, label %81

66:                                               ; preds = %60
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Instance, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %9, align 4, !tbaa !25
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #7
  %72 = load double, ptr %71, align 8, !tbaa !29
  %73 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 3
  %74 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 12
  %75 = load i32, ptr %9, align 4, !tbaa !25
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %76) #7
  %78 = load i32, ptr %77, align 4, !tbaa !25
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %79) #7
  store double %72, ptr %80, align 8, !tbaa !29
  br label %100

81:                                               ; preds = %60
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Instance, ptr %82, i32 0, i32 9
  %84 = load i32, ptr %9, align 4, !tbaa !25
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Instance, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 8, !tbaa !28
  %88 = sub nsw i32 %84, %87
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %89) #7
  %91 = load double, ptr %90, align 8, !tbaa !29
  %92 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 3
  %93 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 12
  %94 = load i32, ptr %9, align 4, !tbaa !25
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #7
  %97 = load i32, ptr %96, align 4, !tbaa !25
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %98) #7
  store double %91, ptr %99, align 8, !tbaa !29
  br label %100

100:                                              ; preds = %81, %66
  br label %142

101:                                              ; preds = %57
  %102 = load i32, ptr %9, align 4, !tbaa !25
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Instance, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !28
  %106 = icmp slt i32 %102, %105
  br i1 %106, label %107, label %122

107:                                              ; preds = %101
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Instance, ptr %108, i32 0, i32 7
  %110 = load i32, ptr %9, align 4, !tbaa !25
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #7
  %113 = load double, ptr %112, align 8, !tbaa !29
  %114 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 3
  %115 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 12
  %116 = load i32, ptr %9, align 4, !tbaa !25
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #7
  %119 = load i32, ptr %118, align 4, !tbaa !25
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %120) #7
  store double %113, ptr %121, align 8, !tbaa !29
  br label %141

122:                                              ; preds = %101
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.Instance, ptr %123, i32 0, i32 10
  %125 = load i32, ptr %9, align 4, !tbaa !25
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Instance, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 8, !tbaa !28
  %129 = sub nsw i32 %125, %128
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %130) #7
  %132 = load double, ptr %131, align 8, !tbaa !29
  %133 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 3
  %134 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 12
  %135 = load i32, ptr %9, align 4, !tbaa !25
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #7
  %138 = load i32, ptr %137, align 4, !tbaa !25
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %139) #7
  store double %132, ptr %140, align 8, !tbaa !29
  br label %141

141:                                              ; preds = %122, %107
  br label %142

142:                                              ; preds = %141, %100
  %143 = load i32, ptr %8, align 4, !tbaa !25
  %144 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 2
  %145 = load i32, ptr %8, align 4, !tbaa !25
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #7
  store i32 %143, ptr %147, align 4, !tbaa !25
  %148 = getelementptr inbounds %struct.QpVector, ptr %7, i32 0, i32 0
  %149 = load i32, ptr %148, align 8, !tbaa !30
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %151

151:                                              ; preds = %142
  %152 = load i32, ptr %8, align 4, !tbaa !25
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %8, align 4, !tbaa !25
  br label %28, !llvm.loop !31

154:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 176, ptr %12) #7
  %155 = invoke noundef nonnull align 8 dereferenceable(176) ptr @_ZN5Basis8vec2hvecERK8QpVector(ptr noundef nonnull align 8 dereferenceable(2913) %13, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %156 unwind label %161

156:                                              ; preds = %154
  invoke void @_ZN11HVectorBaseIdEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(176) %12, ptr noundef nonnull align 8 dereferenceable(176) %155)
          to label %157 unwind label %161

157:                                              ; preds = %156
  %158 = getelementptr inbounds %class.Basis, ptr %13, i32 0, i32 4
  invoke void @_ZNK7HFactor9btranCallER11HVectorBaseIdEdP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %158, ptr noundef nonnull align 8 dereferenceable(176) %12, double noundef 1.000000e+00, ptr noundef null)
          to label %159 unwind label %165

159:                                              ; preds = %157
  invoke void @_ZN5Basis8hvec2vecERK11HVectorBaseIdE(ptr dead_on_unwind writable sret(%struct.QpVector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(2913) %13, ptr noundef nonnull align 8 dereferenceable(176) %12)
          to label %160 unwind label %165

160:                                              ; preds = %159
  call void @_ZN11HVectorBaseIdED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %12) #7
  call void @llvm.lifetime.end.p0(i64 176, ptr %12) #7
  call void @_ZN8QpVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #7
  ret void

161:                                              ; preds = %156, %154
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %10, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %11, align 4
  br label %169

165:                                              ; preds = %159, %157
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %10, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %11, align 4
  call void @_ZN11HVectorBaseIdED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %12) #7
  br label %169

169:                                              ; preds = %165, %161
  call void @llvm.lifetime.end.p0(i64 176, ptr %12) #7
  br label %170

170:                                              ; preds = %169, %50
  call void @_ZN8QpVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #7
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr %10, align 8
  %173 = load i32, ptr %11, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 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 = { 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 #3 = { 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 #4 = { noreturn 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !11, i64 4}
!10 = !{!"_ZTS8Instance", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !13, i64 24, !22, i64 80, !18, i64 248, !18, i64 272, !22, i64 296, !18, i64 464, !18, i64 488}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS8QpVector", !11, i64 0, !11, i64 4, !14, i64 8, !18, i64 32}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTS6Matrix", !23, i64 0, !24, i64 80, !23, i64 88}
!23 = !{!"_ZTS10MatrixBase", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 32, !18, i64 56}
!24 = !{!"bool", !7, i64 0}
!25 = !{!11, !11, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS11BasisStatus", !7, i64 0}
!28 = !{!10, !11, i64 8}
!29 = !{!12, !12, i64 0}
!30 = !{!13, !11, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; 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.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.8", double, %"class.std::vector.13", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.8" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.52 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__._ZN5Basis10recomputexERK8Instance = external hidden unnamed_addr constant [45 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QpVectorC2Ei(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

declare void @_ZNK7HFactor9btranCallER11HVectorBaseIdEdP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912), ptr noundef nonnull align 8 dereferenceable(176), double noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Basis8hvec2vecERK11HVectorBaseIdE(ptr dead_on_unwind noalias writable sret(%struct.QpVector) align 8, ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(176) ptr @_ZN5Basis8vec2hvecERK8QpVector(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11HVectorBaseIdEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Basis10recomputexERK8Instance(ptr dead_on_unwind noalias writable sret(%struct.QpVector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(2913) %1, ptr noundef nonnull align 8 dereferenceable(512) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.QpVector, align 8
  %5 = alloca i32, align 4
  %6 = alloca %class.HVectorBase, align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 2296
  %8 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %9 = trunc i64 %8 to i32
  %10 = getelementptr inbounds i8, ptr %2, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = icmp eq i32 %11, %9
  br i1 %12, label %14, label %13

13:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.52, i32 noundef 367, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5Basis10recomputexERK8Instance) #9
  unreachable

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #8
  call void @_ZN8QpVectorC2Ei(ptr noundef nonnull align 8 dereferenceable(56) %4, i32 noundef %9)
  %15 = load i32, ptr %10, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %14
  %17 = getelementptr inbounds i8, ptr %1, i64 2416
  %18 = getelementptr inbounds i8, ptr %1, i64 2368
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = getelementptr inbounds i8, ptr %4, i64 32
  %21 = getelementptr inbounds i8, ptr %4, i64 8
  br label %23

._crit_edge:                                      ; preds = %36, %14
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %6) #8
  %22 = invoke noundef nonnull align 8 dereferenceable(176) ptr @_ZN5Basis8vec2hvecERK8QpVector(ptr noundef nonnull align 8 dereferenceable(2913) %1, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %57 unwind label %62

23:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #8
  %25 = load i32, ptr %24, align 4, !tbaa !24
  store i32 %25, ptr %5, align 4, !tbaa !24
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %26) #8
  %28 = load i32, ptr %27, align 4, !tbaa !24
  %29 = icmp eq i32 %28, -1
  br i1 %29, label %30, label %34

30:                                               ; preds = %23
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.69)
  br label %34

32:                                               ; preds = %34
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %67

34:                                               ; preds = %30, %23
  %35 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %36 unwind label %32

36:                                               ; preds = %34
  %37 = load i32, ptr %35, align 4, !tbaa !25
  %38 = icmp eq i32 %37, 1
  %39 = load i32, ptr %5, align 4, !tbaa !24
  %40 = load i32, ptr %19, align 8, !tbaa !27
  %41 = icmp slt i32 %39, %40
  %42 = select i1 %41, i32 0, i32 %40
  %spec.select = sub nsw i32 %39, %42
  %spec.select41.v = select i1 %41, i64 248, i64 464
  %spec.select43.v = select i1 %41, i64 272, i64 488
  %.sink38.v = select i1 %38, i64 %spec.select41.v, i64 %spec.select43.v
  %.sink38 = getelementptr inbounds i8, ptr %2, i64 %.sink38.v
  %43 = sext i32 %spec.select to i64
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink38, i64 noundef %43) #8
  %.sink = load double, ptr %44, align 8, !tbaa !28
  %.sink37 = load i32, ptr %5, align 4, !tbaa !24
  %45 = sext i32 %.sink37 to i64
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %45) #8
  %47 = load i32, ptr %46, align 4, !tbaa !24
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %48) #8
  store double %.sink, ptr %49, align 8, !tbaa !28
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv) #8
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %51, ptr %50, align 4, !tbaa !24
  %52 = load i32, ptr %4, align 8, !tbaa !29
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %4, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next, %55
  br i1 %56, label %23, label %._crit_edge, !llvm.loop !30

57:                                               ; preds = %._crit_edge
  invoke void @_ZN11HVectorBaseIdEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(176) %6, ptr noundef nonnull align 8 dereferenceable(176) %22)
          to label %58 unwind label %62

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %1, i64 296
  invoke void @_ZNK7HFactor9btranCallER11HVectorBaseIdEdP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %59, ptr noundef nonnull align 8 dereferenceable(176) %6, double noundef 1.000000e+00, ptr noundef null)
          to label %60 unwind label %64

60:                                               ; preds = %58
  invoke void @_ZN5Basis8hvec2vecERK11HVectorBaseIdE(ptr dead_on_unwind writable sret(%struct.QpVector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(2913) %1, ptr noundef nonnull align 8 dereferenceable(176) %6)
          to label %61 unwind label %64

61:                                               ; preds = %60
  call void @_ZN11HVectorBaseIdED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %6) #8
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %6) #8
  call void @_ZN8QpVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  ret void

62:                                               ; preds = %57, %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %60, %58
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11HVectorBaseIdED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %6) #8
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %6) #8
  br label %67

67:                                               ; preds = %66, %32
  %.pn28 = phi { ptr, i32 } [ %33, %32 ], [ %.pn, %66 ]
  call void @_ZN8QpVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn28
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 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 = { 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 #3 = { 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 #4 = { noreturn 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 #5 = { 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 #6 = { "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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !7, i64 4}
!6 = !{!"_ZTS8Instance", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !11, i64 24, !21, i64 80, !17, i64 248, !17, i64 272, !21, i64 296, !17, i64 464, !17, i64 488}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTS8QpVector", !7, i64 0, !7, i64 4, !12, i64 8, !17, i64 32}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTS6Matrix", !22, i64 0, !23, i64 80, !22, i64 88}
!22 = !{!"_ZTS10MatrixBase", !7, i64 0, !7, i64 4, !12, i64 8, !12, i64 32, !17, i64 56}
!23 = !{!"bool", !8, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS11BasisStatus", !8, i64 0}
!27 = !{!6, !7, i64 8}
!28 = !{!10, !10, i64 0}
!29 = !{!11, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass