3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 11:55:51 +00:00

NB's review

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-12-12 19:17:51 -10:00
parent 1df6411580
commit ef2520ace2
6 changed files with 51 additions and 110 deletions

View file

@ -52,7 +52,7 @@ class grobner : common {
}
}
// can return not a nex_mul
nex* get_monomial(unsigned idx) const {
nex const* get_monomial(unsigned idx) const {
switch(m_expr->type()) {
case expr_type::VAR:
case expr_type::SCALAR: UNREACHABLE();;
@ -60,7 +60,7 @@ class grobner : common {
SASSERT(idx == 0);
return m_expr;
case expr_type::SUM:
return (*to_sum(m_expr))[idx];
return m_expr->to_sum()[idx];
default: return 0;
}
}