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:
parent
4e7a867cd9
commit
c1aa33339d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue