3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

add a case to basic zero scenario

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2018-08-28 11:10:50 +08:00
parent 029a486884
commit 89d086fff0
2 changed files with 49 additions and 2 deletions

View file

@ -7,6 +7,13 @@
namespace nra {
bool check_assignment(mon_eq const& m, variable_map_type & vars) {
rational r1 = vars[m.m_v];
if (r1.is_zero()) {
for (auto w : m.m_vs) {
if (vars[w].is_zero())
return true;
}
return false;
}
rational r2(1);
for (auto w : m.m_vs) {
r2 *= vars[w];