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

; 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.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 } }
%"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.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 }
%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 }
%"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 }
%struct.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.8" }
%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" }

@.str.67 = external hidden unnamed_addr constant [44 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

; 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 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8containsIiEbRKSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6removeIiEbRSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5Basis8activateERK8Settingsi11BasisStatusiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #1 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  %16 = load ptr, ptr %8, align 8
  %17 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %18 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %18, ptr %14, align 4, !tbaa !9
  %19 = call noundef zeroext i1 @_Z8containsIiEbRKSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %20 = xor i1 %19, true
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br i1 %20, label %21, label %28

21:                                               ; preds = %6
  %22 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 11
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 4 dereferenceable(4) %12)
  store i32 0, ptr %23, align 4, !tbaa !11
  %24 = load i32, ptr %11, align 4, !tbaa !11
  %25 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 11
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %25, ptr noundef nonnull align 4 dereferenceable(4) %10)
  store i32 %24, ptr %26, align 4, !tbaa !11
  %27 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %10)
  br label %31

28:                                               ; preds = %6
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.67, i32 noundef %29)
  store i32 2, ptr %7, align 4
  br label %62

31:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %32 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 12
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #4
  %36 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %36, ptr %15, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 10
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #4
  store i32 %37, ptr %41, align 4, !tbaa !9
  %42 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 9
  %43 = call noundef zeroext i1 @_Z6removeIiEbRSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5Basis11updatebasisERK8SettingsiiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913) %16, ptr noundef nonnull align 8 dereferenceable(211) %44, i32 noundef %45, i32 noundef %46, ptr noundef %47)
  %48 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 5
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %61

51:                                               ; preds = %31
  %52 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 12
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #4
  store i32 -1, ptr %55, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = getelementptr inbounds %class.Basis, ptr %16, i32 0, i32 12
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #4
  store i32 %56, ptr %60, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %51, %31
  store i32 0, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %62

62:                                               ; preds = %61, %28
  %63 = load i32, ptr %7, align 4
  ret i32 %63
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Basis11updatebasisERK8SettingsiiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(211), i32 noundef, i32 noundef, ptr noundef) #1 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 = { "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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS11BasisStatus", !7, i64 0}
!13 = !{!14, !10, i64 2208}
!14 = !{!"_ZTS5Basis", !15, i64 0, !30, i64 176, !30, i64 232, !6, i64 288, !31, i64 296, !10, i64 2208, !46, i64 2216, !16, i64 2296, !16, i64 2320, !16, i64 2344, !47, i64 2368, !16, i64 2416, !30, i64 2440, !30, i64 2496, !10, i64 2552, !10, i64 2556, !15, i64 2560, !15, i64 2736, !29, i64 2912}
!15 = !{!"_ZTS11HVectorBaseIdE", !10, i64 0, !10, i64 4, !16, i64 8, !20, i64 32, !24, i64 56, !25, i64 64, !16, i64 88, !6, i64 112, !29, i64 120, !10, i64 124, !16, i64 128, !20, i64 152}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTS8QpVector", !10, i64 0, !10, i64 4, !16, i64 8, !20, i64 32}
!31 = !{!"_ZTS7HFactor", !24, i64 0, !24, i64 8, !10, i64 16, !16, i64 24, !16, i64 48, !16, i64 72, !32, i64 96, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !24, i64 216, !29, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !24, i64 264, !24, i64 272, !10, i64 280, !24, i64 288, !37, i64 296, !43, i64 304, !29, i64 400, !29, i64 401, !10, i64 404, !10, i64 408, !6, i64 416, !10, i64 424, !16, i64 432, !20, i64 456, !16, i64 480, !16, i64 504, !16, i64 528, !20, i64 552, !16, i64 576, !16, i64 600, !16, i64 624, !16, i64 648, !16, i64 672, !16, i64 696, !16, i64 720, !20, i64 744, !20, i64 768, !16, i64 792, !16, i64 816, !16, i64 840, !16, i64 864, !16, i64 888, !16, i64 912, !25, i64 936, !20, i64 960, !16, i64 984, !16, i64 1008, !16, i64 1032, !16, i64 1056, !16, i64 1080, !16, i64 1104, !16, i64 1128, !16, i64 1152, !16, i64 1176, !16, i64 1200, !20, i64 1224, !16, i64 1248, !16, i64 1272, !20, i64 1296, !16, i64 1320, !16, i64 1344, !20, i64 1368, !10, i64 1392, !10, i64 1396, !16, i64 1400, !16, i64 1424, !16, i64 1448, !20, i64 1472, !16, i64 1496, !16, i64 1520, !16, i64 1544, !16, i64 1568, !20, i64 1592, !20, i64 1616, !16, i64 1640, !16, i64 1664, !16, i64 1688, !20, i64 1712, !15, i64 1736}
!32 = !{!"_ZTS12RefactorInfo", !29, i64 0, !16, i64 8, !16, i64 32, !33, i64 56, !24, i64 80}
!33 = !{!"_ZTSSt6vectorIaSaIaEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !6, i64 0}
!43 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !44, i64 48, !6, i64 80, !29, i64 88}
!44 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !45, i64 0, !6, i64 24}
!45 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!46 = !{!"_ZTS10MatrixBase", !10, i64 0, !10, i64 4, !16, i64 8, !16, i64 32, !20, i64 56}
!47 = !{!"_ZTSSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEE", !48, i64 0}
!48 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !50, i64 0, !52, i64 8}
!50 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !51, i64 0}
!51 = !{!"_ZTSSt4lessIiE"}
!52 = !{!"_ZTSSt15_Rb_tree_header", !53, i64 0, !55, i64 32}
!53 = !{!"_ZTSSt18_Rb_tree_node_base", !54, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!54 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!55 = !{!"long", !7, i64 0}


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

@.str.67 = external hidden unnamed_addr constant [44 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

; 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 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8containsIiEbRKSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6removeIiEbRSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_ZN5Basis8activateERK8Settingsi11BasisStatusiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #1 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %2, ptr %7, align 4, !tbaa !5
  store i32 %4, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 2296
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 %2, ptr %9, align 4, !tbaa !5
  %11 = call noundef zeroext i1 @_Z8containsIiEbRKSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br i1 %11, label %31, label %12

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 2368
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 0, ptr %14, align 4, !tbaa !9
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i32 %3, ptr %15, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %16 = getelementptr inbounds i8, ptr %0, i64 2416
  %17 = load i32, ptr %8, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18) #4
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 2344
  %23 = sext i32 %20 to i64
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %23) #4
  store i32 %21, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 2320
  %26 = call noundef zeroext i1 @_Z6removeIiEbRSt6vectorIT_SaIS1_EERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN5Basis11updatebasisERK8SettingsiiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, i32 noundef %27, i32 noundef %28, ptr noundef %5)
  %29 = getelementptr inbounds i8, ptr %0, i64 2208
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %40, label %33

31:                                               ; preds = %6
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.67, i32 noundef %2)
  br label %40

33:                                               ; preds = %12
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %35) #4
  store i32 -1, ptr %36, align 4, !tbaa !5
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %38) #4
  store i32 %20, ptr %39, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %12, %33, %31
  %.0 = phi i32 [ 2, %31 ], [ 0, %33 ], [ 0, %12 ]
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Basis11updatebasisERK8SettingsiiP7Pricing(ptr noundef nonnull align 8 dereferenceable(2913), ptr noundef nonnull align 8 dereferenceable(211), i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS11BasisStatus", !7, i64 0}
!11 = !{!12, !6, i64 2208}
!12 = !{!"_ZTS5Basis", !13, i64 0, !29, i64 176, !29, i64 232, !18, i64 288, !30, i64 296, !6, i64 2208, !45, i64 2216, !14, i64 2296, !14, i64 2320, !14, i64 2344, !46, i64 2368, !14, i64 2416, !29, i64 2440, !29, i64 2496, !6, i64 2552, !6, i64 2556, !13, i64 2560, !13, i64 2736, !28, i64 2912}
!13 = !{!"_ZTS11HVectorBaseIdE", !6, i64 0, !6, i64 4, !14, i64 8, !19, i64 32, !23, i64 56, !24, i64 64, !14, i64 88, !18, i64 112, !28, i64 120, !6, i64 124, !14, i64 128, !19, i64 152}
!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", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTS8QpVector", !6, i64 0, !6, i64 4, !14, i64 8, !19, i64 32}
!30 = !{!"_ZTS7HFactor", !23, i64 0, !23, i64 8, !6, i64 16, !14, i64 24, !14, i64 48, !14, i64 72, !31, i64 96, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !23, i64 216, !28, i64 224, !18, i64 232, !18, i64 240, !18, i64 248, !18, i64 256, !23, i64 264, !23, i64 272, !6, i64 280, !23, i64 288, !36, i64 296, !42, i64 304, !28, i64 400, !28, i64 401, !6, i64 404, !6, i64 408, !18, i64 416, !6, i64 424, !14, i64 432, !19, i64 456, !14, i64 480, !14, i64 504, !14, i64 528, !19, i64 552, !14, i64 576, !14, i64 600, !14, i64 624, !14, i64 648, !14, i64 672, !14, i64 696, !14, i64 720, !19, i64 744, !19, i64 768, !14, i64 792, !14, i64 816, !14, i64 840, !14, i64 864, !14, i64 888, !14, i64 912, !24, i64 936, !19, i64 960, !14, i64 984, !14, i64 1008, !14, i64 1032, !14, i64 1056, !14, i64 1080, !14, i64 1104, !14, i64 1128, !14, i64 1152, !14, i64 1176, !14, i64 1200, !19, i64 1224, !14, i64 1248, !14, i64 1272, !19, i64 1296, !14, i64 1320, !14, i64 1344, !19, i64 1368, !6, i64 1392, !6, i64 1396, !14, i64 1400, !14, i64 1424, !14, i64 1448, !19, i64 1472, !14, i64 1496, !14, i64 1520, !14, i64 1544, !14, i64 1568, !19, i64 1592, !19, i64 1616, !14, i64 1640, !14, i64 1664, !14, i64 1688, !19, i64 1712, !13, i64 1736}
!31 = !{!"_ZTS12RefactorInfo", !28, i64 0, !14, i64 8, !14, i64 32, !32, i64 56, !23, i64 80}
!32 = !{!"_ZTSSt6vectorIaSaIaEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!36 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !40, i64 0}
!40 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !41, i64 0}
!41 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !18, i64 0}
!42 = !{!"_ZTS15HighsLogOptions", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !43, i64 48, !18, i64 80, !28, i64 88}
!43 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !44, i64 0, !18, i64 24}
!44 = !{!"_ZTSSt14_Function_base", !7, i64 0, !18, i64 16}
!45 = !{!"_ZTS10MatrixBase", !6, i64 0, !6, i64 4, !14, i64 8, !14, i64 32, !19, i64 56}
!46 = !{!"_ZTSSt3mapIi11BasisStatusSt4lessIiESaISt4pairIKiS0_EEE", !47, i64 0}
!47 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKi11BasisStatusESt10_Select1stIS3_ESt4lessIiESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !49, i64 0, !51, i64 8}
!49 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !50, i64 0}
!50 = !{!"_ZTSSt4lessIiE"}
!51 = !{!"_ZTSSt15_Rb_tree_header", !52, i64 0, !54, i64 32}
!52 = !{!"_ZTSSt18_Rb_tree_node_base", !53, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!53 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!54 = !{!"long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass