diff options
Diffstat (limited to 'src/theory/arrays')
-rw-r--r-- | src/theory/arrays/theory_arrays.cpp | 2 | ||||
-rw-r--r-- | src/theory/arrays/theory_arrays.h | 19 |
2 files changed, 6 insertions, 15 deletions
diff --git a/src/theory/arrays/theory_arrays.cpp b/src/theory/arrays/theory_arrays.cpp index 51e1b367c..4cc51a87e 100644 --- a/src/theory/arrays/theory_arrays.cpp +++ b/src/theory/arrays/theory_arrays.cpp @@ -697,7 +697,7 @@ void TheoryArrays::preRegisterTermInternal(TNode node) case kind::EQUAL: // Add the trigger for equality // NOTE: note that if the equality is true or false already, it might not be added - d_equalityEngine->addTriggerEquality(node); + d_equalityEngine->addTriggerPredicate(node); break; case kind::SELECT: { // Invariant: array terms should be preregistered before being added to the equality engine diff --git a/src/theory/arrays/theory_arrays.h b/src/theory/arrays/theory_arrays.h index 530f8e0e1..b69450ac4 100644 --- a/src/theory/arrays/theory_arrays.h +++ b/src/theory/arrays/theory_arrays.h @@ -296,26 +296,17 @@ class TheoryArrays : public Theory { public: NotifyClass(TheoryArrays& arrays): d_arrays(arrays) {} - bool eqNotifyTriggerEquality(TNode equality, bool value) override - { - Debug("arrays::propagate") << spaces(d_arrays.getSatContext()->getLevel()) << "NotifyClass::eqNotifyTriggerEquality(" << equality << ", " << (value ? "true" : "false") << ")" << std::endl; - // Just forward to arrays - if (value) { - return d_arrays.propagate(equality); - } else { - return d_arrays.propagate(equality.notNode()); - } - } - bool eqNotifyTriggerPredicate(TNode predicate, bool value) override { - Debug("arrays::propagate") << spaces(d_arrays.getSatContext()->getLevel()) << "NotifyClass::eqNotifyTriggerEquality(" << predicate << ", " << (value ? "true" : "false") << ")" << std::endl; + Debug("arrays::propagate") + << spaces(d_arrays.getSatContext()->getLevel()) + << "NotifyClass::eqNotifyTriggerPredicate(" << predicate << ", " + << (value ? "true" : "false") << ")" << std::endl; // Just forward to arrays if (value) { return d_arrays.propagate(predicate); - } else { - return d_arrays.propagate(predicate.notNode()); } + return d_arrays.propagate(predicate.notNode()); } bool eqNotifyTriggerTermEquality(TheoryId tag, |