mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 19:47:52 +00:00
use value function in lar_solver (#4771)
* use value function in lar_solver Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * add missing return Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * check_feasible is called after column is added for fixed variable Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * na
This commit is contained in:
parent
5335097768
commit
620204bbb4
7 changed files with 41 additions and 110 deletions
|
@ -798,9 +798,7 @@ namespace arith {
|
|||
}
|
||||
|
||||
rational solver::get_value(theory_var v) const {
|
||||
if (v == euf::null_theory_var || !lp().external_is_used(v))
|
||||
return rational::zero();
|
||||
return m_solver->get_value(get_tv(v));
|
||||
return is_registered_var(v) ? m_solver->get_value(get_tv(v)) : rational::zero();
|
||||
}
|
||||
|
||||
void solver::random_update() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue