3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 21:50:52 +00:00

self-contained function for merge_tf

This commit is contained in:
Nikolaj Bjorner 2021-03-16 15:24:48 -07:00
parent 0949ad26c2
commit 0b8939d86e
2 changed files with 2 additions and 1 deletions

View file

@ -161,6 +161,7 @@ namespace euf {
bool commutative() const { return m_commutative; }
void mark_interpreted() { SASSERT(num_args() == 0); m_interpreted = true; }
bool merge_enabled() const { return m_merge_enabled; }
bool merge_tf() const { return merge_enabled() && (class_size() > 1 || num_parents() > 0 || num_args() > 0); }
enode* get_arg(unsigned i) const { SASSERT(i < num_args()); return m_args[i]; }
unsigned hash() const { return m_expr->hash(); }