; LLVM IR from ERGO-Code/HiGHS :: src/simplex/HEkkDualMulti.ll (ZN8HEkkDual14minorChooseRowEv)

; 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.HEkkDual = type { i32, i32, i8, i8, ptr, i32, i32, i32, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i8, double, double, double, double, double, i8, i32, i32, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HEkkDualRow, i32, %class.HEkkDualRHS, i32, i32, i32, i32, double, double, double, double, double, double, double, i8, i32, i32, [9 x i32], [8 x %class.HighsSparseMatrix], [8 x %class.HighsSparseMatrix], [8 x %class.HVectorBase], %"class.std::vector.18", i32, i32, i32, i32, i32, i32, [8 x %"struct.HEkkDual::MChoice"], [8 x %"struct.HEkkDual::MFinish"] }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.3", double, %"class.std::vector.8", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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" = 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.HEkkDualRow = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, %"class.std::set", i32, %"class.std::vector", %"class.std::vector.3", double, double, double, double, i32, i32, %"class.std::vector.13", %"class.std::vector", i32, %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector", ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HEkkDualRHS = type { ptr, double, i32, %"class.std::vector.8", %"class.std::vector", %"class.std::vector.3", i32, i32, i32, i32, i32, %"class.std::vector", ptr }
%class.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl" }
%"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl" = type { %"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HEkkDual::MChoice" = type { i32, double, double, double, double, double, double, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase }
%"struct.HEkkDual::MFinish" = type { i8, double, %"class.std::vector", i32, i32, i32, double, double, double, double, double, ptr, ptr, ptr }
%class.HEkk = type { ptr, ptr, ptr, %class.HighsSimplexAnalysis, %class.HighsLp, %"class.std::__cxx11::basic_string", %struct.HighsSimplexStatus, [3 x i8], %struct.HighsSimplexInfo, i32, %struct.SimplexBasis, %class.HighsHashTable, %class.HighsRandom, %"class.std::vector.3", %"class.std::vector.3", i8, %class.HighsSparseMatrix, %class.HighsSparseMatrix, %class.HSimplexNla, %struct.HotStart, double, double, double, i32, i32, i32, i32, i8, i8, i32, i32, i32, %"class.std::vector", %"class.std::vector.3", %struct.HighsRayRecord, %struct.HighsRayRecord, i32, i32, i32, double, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", double, double, double, i32, i32, i8, i32, i8, i8, i8, i8, double, %"class.std::vector.79", %"class.std::vector.3", %struct.HighsSimplexStats }
%class.HighsSimplexAnalysis = type { ptr, %"class.std::vector.23", %"class.std::vector.23", ptr, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %struct.HighsLogOptions, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, double, double, i32, double, double, i32, double, double, double, double, double, double, double, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, double, double, i32, double, double, i32, i32, double, double, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.28", %"class.std::unique_ptr", i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, i32, i32, double, double, double, i8, double, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, i32, i32, [10 x %"struct.HighsSimplexAnalysis::AnIterOpRec"], i32, i32, [22 x %"struct.HighsSimplexAnalysis::AnIterTraceRec"], [12 x i32], [3 x i32], [4 x i8], %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution, %struct.HighsValueDistribution }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsTimerClock, std::allocator<HighsTimerClock>>::_Vector_impl_data" = type { ptr, ptr, 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.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl" }
%"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl" = type { %"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TranStageAnalysis, std::allocator<TranStageAnalysis>>::_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.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"struct.HighsSimplexAnalysis::AnIterOpRec" = type { double, double, i32, i32, i32, i32, double, i32, %"class.std::__cxx11::basic_string", %struct.HighsValueDistribution }
%"struct.HighsSimplexAnalysis::AnIterTraceRec" = type { double, double, [10 x double], double, i32, i32, i32 }
%struct.HighsValueDistribution = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8], double, double, %"class.std::vector.3", %"class.std::vector", i32, [4 x i8] }>
%class.HighsLp = type { i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %class.HighsSparseMatrix, i32, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.35", %"class.std::vector.35", %"class.std::vector.40", %struct.HighsNameHash, %struct.HighsNameHash, i32, i32, %struct.HighsScale, i8, i8, i32, i8, %struct.HighsLpMods }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsNameHash = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.HighsScale = type { i32, i8, i32, i32, double, %"class.std::vector.3", %"class.std::vector.3" }
%struct.HighsLpMods = type { %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.40", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.HighsSimplexStatus = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.HighsSimplexInfo = type <{ %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", i32, i32, i8, i8, [6 x i8], %struct.SimplexBasis, i32, i32, i32, [4 x i8], %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", i32, i32, i32, i32, double, double, double, double, i32, i32, double, double, double, double, double, double, double, double, double, double, i8, [7 x i8], double, double, i32, [4 x i8], double, double, double, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, [4 x i8], double, double, i32, [4 x i8], double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i32, [4 x i8] }>
%struct.SimplexBasis = type { %"class.std::vector", %"class.std::vector.50", %"class.std::vector.50", i64, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = 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.HighsHashTable = type { %"class.std::unique_ptr.55", %"class.std::unique_ptr.63", i64, i64, i64 }
%"class.std::unique_ptr.55" = type { %"struct.std::__uniq_ptr_data.56" }
%"struct.std::__uniq_ptr_data.56" = type { %"class.std::__uniq_ptr_impl.57" }
%"class.std::__uniq_ptr_impl.57" = type { %"class.std::tuple.58" }
%"class.std::tuple.58" = type { %"struct.std::_Tuple_impl.59" }
%"struct.std::_Tuple_impl.59" = type { %"struct.std::_Head_base.62" }
%"struct.std::_Head_base.62" = type { ptr }
%"class.std::unique_ptr.63" = type { %"struct.std::__uniq_ptr_data.64" }
%"struct.std::__uniq_ptr_data.64" = type { %"class.std::__uniq_ptr_impl.65" }
%"class.std::__uniq_ptr_impl.65" = type { %"class.std::tuple.66" }
%"class.std::tuple.66" = type { %"struct.std::_Tuple_impl.67" }
%"struct.std::_Tuple_impl.67" = type { %"struct.std::_Head_base.70" }
%"struct.std::_Head_base.70" = type { ptr }
%class.HighsRandom = type { i64 }
%class.HSimplexNla = type { ptr, ptr, ptr, ptr, ptr, ptr, %class.HFactor, i8, double, %struct.ProductFormUpdate, %struct.SimplexIterate }
%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.71", %struct.HighsLogOptions, i8, i8, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"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.3", %"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.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %class.HVectorBase }
%struct.RefactorInfo = type { i8, %"class.std::vector", %"class.std::vector", %"class.std::vector.50", double }
%"class.std::unique_ptr.71" = type { %"struct.std::__uniq_ptr_data.72" }
%"struct.std::__uniq_ptr_data.72" = type { %"class.std::__uniq_ptr_impl.73" }
%"class.std::__uniq_ptr_impl.73" = type { %"class.std::tuple.74" }
%"class.std::tuple.74" = type { %"struct.std::_Tuple_impl.75" }
%"struct.std::_Tuple_impl.75" = type { %"struct.std::_Head_base.78" }
%"struct.std::_Head_base.78" = type { ptr }
%struct.ProductFormUpdate = type { i8, i32, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%struct.SimplexIterate = type { i8, %struct.SimplexBasis, %struct.InvertibleRepresentation, %"class.std::vector.3" }
%struct.InvertibleRepresentation = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3" }
%struct.HotStart = type { i8, %struct.RefactorInfo, %"class.std::vector.50" }
%struct.HighsRayRecord = type { i32, i32, %"class.std::vector.3" }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = type { %"struct.std::_Vector_base<HighsSimplexBadBasisChangeRecord, std::allocator<HighsSimplexBadBasisChangeRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsSimplexBadBasisChangeRecord, std::allocator<HighsSimplexBadBasisChangeRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsSimplexBadBasisChangeRecord, std::allocator<HighsSimplexBadBasisChangeRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsSimplexBadBasisChangeRecord, std::allocator<HighsSimplexBadBasisChangeRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsSimplexStats = type { i8, i32, i32, i32, i32, double, double, double, double }

; 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 nounwind uwtable
define dso_local void @_ZN8HEkkDual14minorChooseRowEv(ptr noundef nonnull align 8 dereferenceable(10968) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  %16 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 66
  store i32 -1, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  store double 0.000000e+00, ptr %3, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %4, align 4, !tbaa !49
  br label %17

17:                                               ; preds = %60, %1
  %18 = load i32, ptr %4, align 4, !tbaa !49
  %19 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 64
  %20 = load i32, ptr %19, align 8, !tbaa !50
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  br label %63

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  %24 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 70
  %25 = load i32, ptr %4, align 4, !tbaa !49
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %24, i64 0, i64 %26
  %28 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !51
  store i32 %29, ptr %6, align 4, !tbaa !49
  %30 = load i32, ptr %6, align 4, !tbaa !49
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %23
  store i32 4, ptr %5, align 4
  br label %57

33:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %34 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 70
  %35 = load i32, ptr %4, align 4, !tbaa !49
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %34, i64 0, i64 %36
  %38 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %37, i32 0, i32 4
  %39 = load double, ptr %38, align 8, !tbaa !53
  store double %39, ptr %7, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %40 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 70
  %41 = load i32, ptr %4, align 4, !tbaa !49
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %40, i64 0, i64 %42
  %44 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %43, i32 0, i32 5
  %45 = load double, ptr %44, align 8, !tbaa !54
  store double %45, ptr %8, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %46 = load double, ptr %7, align 8, !tbaa !48
  %47 = load double, ptr %8, align 8, !tbaa !48
  %48 = fdiv double %46, %47
  store double %48, ptr %9, align 8, !tbaa !48
  %49 = load double, ptr %3, align 8, !tbaa !48
  %50 = load double, ptr %9, align 8, !tbaa !48
  %51 = fcmp olt double %49, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %33
  %53 = load double, ptr %9, align 8, !tbaa !48
  store double %53, ptr %3, align 8, !tbaa !48
  %54 = load i32, ptr %4, align 4, !tbaa !49
  %55 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 66
  store i32 %54, ptr %55, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %52, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  store i32 0, ptr %5, align 4
  br label %57

57:                                               ; preds = %56, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  %58 = load i32, ptr %5, align 4
  switch i32 %58, label %148 [
    i32 0, label %59
    i32 4, label %60
  ]

59:                                               ; preds = %57
  br label %60

60:                                               ; preds = %59, %57
  %61 = load i32, ptr %4, align 4, !tbaa !49
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %4, align 4, !tbaa !49
  br label %17, !llvm.loop !55

63:                                               ; preds = %22
  %64 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 45
  store i32 -1, ptr %64, align 8, !tbaa !57
  %65 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 66
  %66 = load i32, ptr %65, align 8, !tbaa !9
  %67 = icmp ne i32 %66, -1
  br i1 %67, label %68, label %147

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %69 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 70
  %70 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 66
  %71 = load i32, ptr %70, align 8, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %69, i64 0, i64 %72
  store ptr %73, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !51
  %77 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 45
  store i32 %76, ptr %77, align 8, !tbaa !57
  %78 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !58
  %80 = getelementptr inbounds %class.HEkk, ptr %79, i32 0, i32 10
  %81 = getelementptr inbounds %struct.SimplexBasis, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 45
  %83 = load i32, ptr %82, align 8, !tbaa !57
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %84) #2
  %86 = load i32, ptr %85, align 4, !tbaa !49
  %87 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 46
  store i32 %86, ptr %87, align 4, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %88, i32 0, i32 1
  %90 = load double, ptr %89, align 8, !tbaa !60
  store double %90, ptr %11, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %91, i32 0, i32 2
  %93 = load double, ptr %92, align 8, !tbaa !61
  store double %93, ptr %12, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %94, i32 0, i32 3
  %96 = load double, ptr %95, align 8, !tbaa !62
  store double %96, ptr %13, align 8, !tbaa !48
  %97 = load double, ptr %11, align 8, !tbaa !48
  %98 = load double, ptr %11, align 8, !tbaa !48
  %99 = load double, ptr %12, align 8, !tbaa !48
  %100 = fcmp olt double %98, %99
  br i1 %100, label %101, label %103

101:                                              ; preds = %68
  %102 = load double, ptr %12, align 8, !tbaa !48
  br label %105

103:                                              ; preds = %68
  %104 = load double, ptr %13, align 8, !tbaa !48
  br label %105

105:                                              ; preds = %103, %101
  %106 = phi double [ %102, %101 ], [ %104, %103 ]
  %107 = fsub double %97, %106
  %108 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 49
  store double %107, ptr %108, align 8, !tbaa !63
  %109 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 49
  %110 = load double, ptr %109, align 8, !tbaa !63
  %111 = fcmp olt double %110, 0.000000e+00
  %112 = zext i1 %111 to i64
  %113 = select i1 %111, i32 -1, i32 1
  %114 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 47
  store i32 %113, ptr %114, align 8, !tbaa !64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  %115 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 71
  %116 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 67
  %117 = load i32, ptr %116, align 4, !tbaa !65
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %115, i64 0, i64 %118
  store ptr %119, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 45
  %121 = load i32, ptr %120, align 8, !tbaa !57
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %122, i32 0, i32 3
  store i32 %121, ptr %123, align 8, !tbaa !66
  %124 = getelementptr inbounds %class.HEkkDual, ptr %15, i32 0, i32 46
  %125 = load i32, ptr %124, align 4, !tbaa !59
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %126, i32 0, i32 4
  store i32 %125, ptr %127, align 4, !tbaa !68
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %128, i32 0, i32 7
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %130, i32 0, i32 11
  store ptr %129, ptr %131, align 8, !tbaa !69
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %132, i32 0, i32 8
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %134, i32 0, i32 12
  store ptr %133, ptr %135, align 8, !tbaa !70
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %136, i32 0, i32 9
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %138, i32 0, i32 13
  store ptr %137, ptr %139, align 8, !tbaa !71
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %140, i32 0, i32 5
  %142 = load double, ptr %141, align 8, !tbaa !54
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %143, i32 0, i32 10
  store double %142, ptr %144, align 8, !tbaa !72
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %145, i32 0, i32 0
  store i32 -1, ptr %146, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %147

147:                                              ; preds = %105, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void

148:                                              ; preds = %57
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !12, i64 5320}
!10 = !{!"_ZTS8HEkkDual", !11, i64 0, !12, i64 4, !13, i64 8, !13, i64 9, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !15, i64 172, !13, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !13, i64 224, !12, i64 228, !12, i64 232, !16, i64 240, !16, i64 416, !16, i64 592, !16, i64 768, !16, i64 944, !16, i64 1120, !16, i64 1296, !29, i64 1472, !12, i64 1808, !43, i64 1816, !12, i64 1968, !12, i64 1972, !12, i64 1976, !12, i64 1980, !14, i64 1984, !14, i64 1992, !14, i64 2000, !14, i64 2008, !14, i64 2016, !14, i64 2024, !14, i64 2032, !13, i64 2040, !12, i64 2044, !12, i64 2048, !7, i64 2052, !7, i64 2088, !7, i64 2984, !7, i64 3880, !44, i64 5288, !12, i64 5312, !12, i64 5316, !12, i64 5320, !12, i64 5324, !12, i64 5328, !12, i64 5332, !7, i64 5336, !7, i64 10008}
!11 = !{!"_ZTS16SimplexAlgorithm", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTS14EdgeWeightMode", !7, i64 0}
!16 = !{!"_ZTS11HVectorBaseIdE", !12, i64 0, !12, i64 4, !17, i64 8, !21, i64 32, !14, i64 56, !25, i64 64, !17, i64 88, !6, i64 112, !13, i64 120, !12, i64 124, !17, i64 128, !21, i64 152}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!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 = !{!"_ZTS11HEkkDualRow", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !30, i64 56, !12, i64 104, !17, i64 112, !21, i64 136, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !12, i64 192, !12, i64 196, !39, i64 200, !17, i64 224, !12, i64 248, !39, i64 256, !39, i64 280, !17, i64 304, !6, i64 328}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !38, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTSSt6vectorISt4pairIidESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt4pairIidESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTS11HEkkDualRHS", !6, i64 0, !14, i64 8, !12, i64 16, !25, i64 24, !17, i64 48, !21, i64 72, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !17, i64 120, !6, i64 144}
!44 = !{!"_ZTSSt6vectorI11HEkkDualRowSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseI11HEkkDualRowSaIS0_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!14, !14, i64 0}
!49 = !{!12, !12, i64 0}
!50 = !{!10, !12, i64 5312}
!51 = !{!52, !12, i64 0}
!52 = !{!"_ZTSN8HEkkDual7MChoiceE", !12, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !16, i64 56, !16, i64 232, !16, i64 408}
!53 = !{!52, !14, i64 32}
!54 = !{!52, !14, i64 40}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = !{!10, !12, i64 1968}
!58 = !{!10, !6, i64 16}
!59 = !{!10, !12, i64 1972}
!60 = !{!52, !14, i64 8}
!61 = !{!52, !14, i64 16}
!62 = !{!52, !14, i64 24}
!63 = !{!10, !14, i64 1984}
!64 = !{!10, !12, i64 1976}
!65 = !{!10, !12, i64 5324}
!66 = !{!67, !12, i64 40}
!67 = !{!"_ZTSN8HEkkDual7MFinishE", !7, i64 0, !14, i64 8, !17, i64 16, !12, i64 40, !12, i64 44, !12, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !6, i64 96, !6, i64 104, !6, i64 112}
!68 = !{!67, !12, i64 44}
!69 = !{!67, !6, i64 96}
!70 = !{!67, !6, i64 104}
!71 = !{!67, !6, i64 112}
!72 = !{!67, !14, i64 88}


; 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.HEkkDual::MChoice" = type { i32, double, double, double, double, double, double, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.3", double, %"class.std::vector.8", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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" = 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.HEkkDual::MFinish" = type { i8, double, %"class.std::vector", i32, i32, i32, double, double, double, double, double, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8HEkkDual14minorChooseRowEv(ptr noundef nonnull align 8 dereferenceable(10968) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 5320
  store i32 -1, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 5312
  %4 = load i32, ptr %3, align 8, !tbaa !47
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 1968
  br label %.sink.split

.lr.ph:                                           ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 5336
  %wide.trip.count = zext nneg i32 %4 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %8 = icmp eq i32 %4, 1
  br i1 %8, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %22

._crit_edge.unr-lcssa:                            ; preds = %50, %.lr.ph
  %.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %51, %50 ]
  %.unr = phi i32 [ -1, %.lr.ph ], [ %51, %50 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %50 ]
  %.036.unr = phi double [ 0.000000e+00, %.lr.ph ], [ %.2.1, %50 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa
  %9 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %7, i64 0, i64 %indvars.iv.unr
  %10 = load i32, ptr %9, align 8, !tbaa !48
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %._crit_edge, label %12

12:                                               ; preds = %.epil.preheader
  %13 = getelementptr inbounds i8, ptr %9, i64 32
  %14 = load double, ptr %13, align 8, !tbaa !50
  %15 = getelementptr inbounds i8, ptr %9, i64 40
  %16 = load double, ptr %15, align 8, !tbaa !51
  %17 = fdiv double %14, %16
  %18 = fcmp olt double %.036.unr, %17
  br i1 %18, label %19, label %._crit_edge

19:                                               ; preds = %12
  %20 = trunc nuw nsw i64 %indvars.iv.unr to i32
  store i32 %20, ptr %2, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.epil.preheader, %12, %19, %._crit_edge.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.unr, %.epil.preheader ], [ %20, %19 ], [ %.unr, %12 ]
  %21 = getelementptr inbounds i8, ptr %0, i64 1968
  store i32 -1, ptr %21, align 8, !tbaa !52
  %.not = icmp eq i32 %.lcssa, -1
  br i1 %.not, label %94, label %52

22:                                               ; preds = %50, %.lr.ph.new
  %23 = phi i32 [ -1, %.lr.ph.new ], [ %51, %50 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %50 ]
  %.036 = phi double [ 0.000000e+00, %.lr.ph.new ], [ %.2.1, %50 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %50 ]
  %24 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %7, i64 0, i64 %indvars.iv
  %25 = load i32, ptr %24, align 8, !tbaa !48
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %36, label %27

27:                                               ; preds = %22
  %28 = getelementptr inbounds i8, ptr %24, i64 32
  %29 = load double, ptr %28, align 8, !tbaa !50
  %30 = getelementptr inbounds i8, ptr %24, i64 40
  %31 = load double, ptr %30, align 8, !tbaa !51
  %32 = fdiv double %29, %31
  %33 = fcmp olt double %.036, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %27
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %35, ptr %2, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %27, %34, %22
  %37 = phi i32 [ %23, %22 ], [ %35, %34 ], [ %23, %27 ]
  %.2 = phi double [ %.036, %22 ], [ %32, %34 ], [ %.036, %27 ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %38 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %7, i64 0, i64 %indvars.iv.next
  %39 = load i32, ptr %38, align 8, !tbaa !48
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %50, label %41

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %38, i64 32
  %43 = load double, ptr %42, align 8, !tbaa !50
  %44 = getelementptr inbounds i8, ptr %38, i64 40
  %45 = load double, ptr %44, align 8, !tbaa !51
  %46 = fdiv double %43, %45
  %47 = fcmp olt double %.2, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %41
  %49 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %49, ptr %2, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %48, %41, %36
  %51 = phi i32 [ %37, %36 ], [ %49, %48 ], [ %37, %41 ]
  %.2.1 = phi double [ %.2, %36 ], [ %46, %48 ], [ %.2, %41 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %22, !llvm.loop !53

52:                                               ; preds = %._crit_edge
  %53 = getelementptr inbounds i8, ptr %0, i64 5336
  %54 = sext i32 %.lcssa to i64
  %55 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %53, i64 0, i64 %54
  %56 = load i32, ptr %55, align 8, !tbaa !48
  store i32 %56, ptr %21, align 8, !tbaa !52
  %57 = getelementptr inbounds i8, ptr %0, i64 16
  %58 = load ptr, ptr %57, align 8, !tbaa !55
  %59 = getelementptr inbounds i8, ptr %58, i64 10616
  %60 = sext i32 %56 to i64
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %60) #1
  %62 = load i32, ptr %61, align 4, !tbaa !56
  %63 = getelementptr inbounds i8, ptr %0, i64 1972
  store i32 %62, ptr %63, align 4, !tbaa !57
  %64 = getelementptr inbounds i8, ptr %55, i64 8
  %65 = load double, ptr %64, align 8, !tbaa !58
  %66 = getelementptr inbounds i8, ptr %55, i64 16
  %67 = load double, ptr %66, align 8, !tbaa !59
  %68 = getelementptr inbounds i8, ptr %55, i64 24
  %69 = load double, ptr %68, align 8, !tbaa !60
  %70 = fcmp olt double %65, %67
  %71 = select i1 %70, double %67, double %69
  %72 = fsub double %65, %71
  %73 = getelementptr inbounds i8, ptr %0, i64 1984
  store double %72, ptr %73, align 8, !tbaa !61
  %74 = fcmp olt double %72, 0.000000e+00
  %75 = select i1 %74, i32 -1, i32 1
  %76 = getelementptr inbounds i8, ptr %0, i64 1976
  store i32 %75, ptr %76, align 8, !tbaa !62
  %77 = getelementptr inbounds i8, ptr %0, i64 10008
  %78 = getelementptr inbounds i8, ptr %0, i64 5324
  %79 = load i32, ptr %78, align 4, !tbaa !63
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %77, i64 0, i64 %80
  %82 = load i32, ptr %21, align 8, !tbaa !52
  %83 = getelementptr inbounds i8, ptr %81, i64 40
  store i32 %82, ptr %83, align 8, !tbaa !64
  %84 = getelementptr inbounds i8, ptr %81, i64 44
  store i32 %62, ptr %84, align 4, !tbaa !66
  %85 = getelementptr inbounds i8, ptr %55, i64 56
  %86 = getelementptr inbounds i8, ptr %81, i64 96
  store ptr %85, ptr %86, align 8, !tbaa !67
  %87 = getelementptr inbounds i8, ptr %55, i64 232
  %88 = getelementptr inbounds i8, ptr %81, i64 104
  store ptr %87, ptr %88, align 8, !tbaa !68
  %89 = getelementptr inbounds i8, ptr %55, i64 408
  %90 = getelementptr inbounds i8, ptr %81, i64 112
  store ptr %89, ptr %90, align 8, !tbaa !69
  %91 = getelementptr inbounds i8, ptr %55, i64 40
  %92 = load double, ptr %91, align 8, !tbaa !51
  %93 = getelementptr inbounds i8, ptr %81, i64 88
  store double %92, ptr %93, align 8, !tbaa !70
  br label %.sink.split

.sink.split:                                      ; preds = %52, %._crit_edge.thread
  %.sink = phi ptr [ %6, %._crit_edge.thread ], [ %55, %52 ]
  store i32 -1, ptr %.sink, align 8, !tbaa !56
  br label %94

94:                                               ; preds = %.sink.split, %._crit_edge
  ret void
}

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

attributes #0 = { 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 #1 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 5320}
!6 = !{!"_ZTS8HEkkDual", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 9, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !14, i64 172, !11, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !11, i64 224, !10, i64 228, !10, i64 232, !15, i64 240, !15, i64 416, !15, i64 592, !15, i64 768, !15, i64 944, !15, i64 1120, !15, i64 1296, !28, i64 1472, !10, i64 1808, !42, i64 1816, !10, i64 1968, !10, i64 1972, !10, i64 1976, !10, i64 1980, !13, i64 1984, !13, i64 1992, !13, i64 2000, !13, i64 2008, !13, i64 2016, !13, i64 2024, !13, i64 2032, !11, i64 2040, !10, i64 2044, !10, i64 2048, !8, i64 2052, !8, i64 2088, !8, i64 2984, !8, i64 3880, !43, i64 5288, !10, i64 5312, !10, i64 5316, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !8, i64 5336, !8, i64 10008}
!7 = !{!"_ZTS16SimplexAlgorithm", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"_ZTS14EdgeWeightMode", !8, i64 0}
!15 = !{!"_ZTS11HVectorBaseIdE", !10, i64 0, !10, i64 4, !16, i64 8, !20, i64 32, !13, i64 56, !24, i64 64, !16, i64 88, !12, i64 112, !11, 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", !12, i64 0, !12, i64 8, !12, 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", !12, i64 0, !12, i64 8, !12, i64 16}
!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", !12, i64 0, !12, i64 8, !12, i64 16}
!28 = !{!"_ZTS11HEkkDualRow", !12, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !29, i64 56, !10, i64 104, !16, i64 112, !20, i64 136, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !10, i64 192, !10, i64 196, !38, i64 200, !16, i64 224, !10, i64 248, !38, i64 256, !38, i64 280, !16, i64 304, !12, i64 328}
!29 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIiE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !37, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!37 = !{!"long", !8, i64 0}
!38 = !{!"_ZTSSt6vectorISt4pairIidESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt4pairIidESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!42 = !{!"_ZTS11HEkkDualRHS", !12, i64 0, !13, i64 8, !10, i64 16, !24, i64 24, !16, i64 48, !20, i64 72, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !16, i64 120, !12, i64 144}
!43 = !{!"_ZTSSt6vectorI11HEkkDualRowSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseI11HEkkDualRowSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!47 = !{!6, !10, i64 5312}
!48 = !{!49, !10, i64 0}
!49 = !{!"_ZTSN8HEkkDual7MChoiceE", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !15, i64 56, !15, i64 232, !15, i64 408}
!50 = !{!49, !13, i64 32}
!51 = !{!49, !13, i64 40}
!52 = !{!6, !10, i64 1968}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = !{!6, !12, i64 16}
!56 = !{!10, !10, i64 0}
!57 = !{!6, !10, i64 1972}
!58 = !{!49, !13, i64 8}
!59 = !{!49, !13, i64 16}
!60 = !{!49, !13, i64 24}
!61 = !{!6, !13, i64 1984}
!62 = !{!6, !10, i64 1976}
!63 = !{!6, !10, i64 5324}
!64 = !{!65, !10, i64 40}
!65 = !{!"_ZTSN8HEkkDual7MFinishE", !8, i64 0, !13, i64 8, !16, i64 16, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !12, i64 96, !12, i64 104, !12, i64 112}
!66 = !{!65, !10, i64 44}
!67 = !{!65, !12, i64 96}
!68 = !{!65, !12, i64 104}
!69 = !{!65, !12, i64 112}
!70 = !{!65, !13, i64 88}


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