summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/term_util.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-07-23 17:39:12 -0500
committerGitHub <noreply@github.com>2018-07-23 17:39:12 -0500
commit3471e731b8538a906e37f8aeb4b0301598b34eff (patch)
treee67f70809e791c18aa9ca4800de87a7c707d062b /src/theory/quantifiers/term_util.cpp
parent03925b816a0f9aeb079e2c0037a426b5946e2eae (diff)
Generalize symmetry detection for 1 symmetry variable mapped to n input variables (#1888)
Diffstat (limited to 'src/theory/quantifiers/term_util.cpp')
-rw-r--r--src/theory/quantifiers/term_util.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/theory/quantifiers/term_util.cpp b/src/theory/quantifiers/term_util.cpp
index 5bf284dff..cf06dfa45 100644
--- a/src/theory/quantifiers/term_util.cpp
+++ b/src/theory/quantifiers/term_util.cpp
@@ -817,18 +817,18 @@ bool TermUtil::isNegate(Kind k)
}
bool TermUtil::isAssoc( Kind k ) {
- return k == PLUS || k == MULT || k == AND || k == OR || k == BITVECTOR_PLUS
- || k == BITVECTOR_MULT || k == BITVECTOR_AND || k == BITVECTOR_OR
- || k == BITVECTOR_XOR || k == BITVECTOR_XNOR || k == BITVECTOR_CONCAT
- || k == STRING_CONCAT || k == UNION || k == INTERSECTION || k == JOIN
- || k == PRODUCT;
+ return k == PLUS || k == MULT || k == NONLINEAR_MULT || k == AND || k == OR
+ || k == XOR || k == BITVECTOR_PLUS || k == BITVECTOR_MULT
+ || k == BITVECTOR_AND || k == BITVECTOR_OR || k == BITVECTOR_XOR
+ || k == BITVECTOR_XNOR || k == BITVECTOR_CONCAT || k == STRING_CONCAT
+ || k == UNION || k == INTERSECTION || k == JOIN || k == PRODUCT;
}
bool TermUtil::isComm( Kind k ) {
- return k == EQUAL || k == PLUS || k == MULT || k == AND || k == OR || k == XOR
- || k == BITVECTOR_PLUS || k == BITVECTOR_MULT || k == BITVECTOR_AND
- || k == BITVECTOR_OR || k == BITVECTOR_XOR || k == BITVECTOR_XNOR
- || k == UNION || k == INTERSECTION;
+ return k == EQUAL || k == PLUS || k == MULT || k == NONLINEAR_MULT || k == AND
+ || k == OR || k == XOR || k == BITVECTOR_PLUS || k == BITVECTOR_MULT
+ || k == BITVECTOR_AND || k == BITVECTOR_OR || k == BITVECTOR_XOR
+ || k == BITVECTOR_XNOR || k == UNION || k == INTERSECTION;
}
bool TermUtil::isNonAdditive( Kind k ) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback