mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
bugfixes to incremental linearization for expanding power
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8be43ca68b
commit
ae24b73b19
2 changed files with 8 additions and 7 deletions
|
@ -1115,7 +1115,8 @@ public:
|
|||
|
||||
void mk_power_axiom(expr* p, expr* x, expr* y) {
|
||||
rational r;
|
||||
if (a.is_extended_numeral(x, r) && r.is_unsigned() && r.is_pos()) {
|
||||
// r > 0 => r^y > 0
|
||||
if (a.is_extended_numeral(x, r) && r > 0) {
|
||||
expr_ref zero(a.mk_real(0), m);
|
||||
mk_axiom(~mk_literal(a.mk_le(p, zero)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue