mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 21:08:46 +00:00
fix in theory_lra.cpp get_value
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
1918395f0e
commit
905282ffe4
|
@ -1168,7 +1168,9 @@ public:
|
|||
if (m_variable_values.count(vi) > 0)
|
||||
return m_variable_values[vi];
|
||||
|
||||
SASSERT (m_solver->is_term(vi));
|
||||
if(!m_solver->is_term(vi))
|
||||
return rational::zero();
|
||||
|
||||
m_todo_terms.push_back(std::make_pair(vi, rational::one()));
|
||||
rational result(0);
|
||||
while (!m_todo_terms.empty()) {
|
||||
|
|
Loading…
Reference in a new issue