3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

bv_bounds: early exit in is_bound in case the expr is not boolean

~2% speedup
This commit is contained in:
Nuno Lopes 2016-02-25 09:32:10 +00:00
parent 4e7a867cd9
commit c1aa33339d

View file

@ -162,6 +162,9 @@ class bv_bounds_simplifier : public ctx_simplify_tactic::simplifier {
map *m_bound;
bool is_bound(expr *e, expr*& v, interval& b) {
if (!m.is_bool(e))
return false;
rational n;
expr *lhs, *rhs;
unsigned sz;