3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-28 19:01:29 +00:00

improving performance for length constraints

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-11-29 11:32:52 -08:00
parent e96f9de70b
commit 67f22d8d65
7 changed files with 142 additions and 124 deletions

View file

@ -4874,9 +4874,10 @@ namespace smt {
return false;
}
arith_value v(get_context());
arith_value v(get_manager());
v.init(&get_context());
bool strict;
return v.get_lo(_e, lo, strict);
return v.get_lo_equiv(_e, lo, strict);
}
bool theory_str::upper_bound(expr* _e, rational& hi) {
@ -4885,9 +4886,10 @@ namespace smt {
return false;
}
arith_value v(get_context());
arith_value v(get_manager());
v.init(&get_context());
bool strict;
return v.get_up(_e, hi, strict);
return v.get_up_equiv(_e, hi, strict);
}
bool theory_str::get_len_value(expr* e, rational& val) {