diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-08-21 15:58:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 15:58:46 -0500 |
commit | 05c6ae0bda064083efb7941e1ceb0869cb1b1090 (patch) | |
tree | fb9497cf16421d7488b31bc7e702ea0826e61aa6 /src/theory/strings/theory_strings.h | |
parent | b8301cde27c455c8da3e9017072a577a0816939b (diff) |
Remove spurious theory methods calls (#4931)
This PR removes spurious theory method calls that are not implemented.
It also renames a common "propagate(TNode lit)" pattern to "propagateLit(TNode lit)" to avoid confusion with "propagate(Effort e)".
Diffstat (limited to 'src/theory/strings/theory_strings.h')
-rw-r--r-- | src/theory/strings/theory_strings.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/theory/strings/theory_strings.h b/src/theory/strings/theory_strings.h index da48ece90..8a1afe6b3 100644 --- a/src/theory/strings/theory_strings.h +++ b/src/theory/strings/theory_strings.h @@ -84,8 +84,6 @@ class TheoryStrings : public Theory { //--------------------------------- end initialization /** Identify this theory */ std::string identify() const override; - /** Propagate */ - void propagate(Effort e) override; /** Explain */ TrustNode explain(TNode literal) override; /** Get current substitution */ @@ -130,9 +128,9 @@ class TheoryStrings : public Theory { { Debug("strings") << "NotifyClass::eqNotifyTriggerPredicate(" << predicate << ", " << (value ? "true" : "false") << ")" << std::endl; if (value) { - return d_str.propagate(predicate); + return d_str.propagateLit(predicate); } - return d_str.propagate(predicate.notNode()); + return d_str.propagateLit(predicate.notNode()); } bool eqNotifyTriggerTermEquality(TheoryId tag, TNode t1, @@ -141,10 +139,9 @@ class TheoryStrings : public Theory { { Debug("strings") << "NotifyClass::eqNotifyTriggerTermMerge(" << tag << ", " << t1 << ", " << t2 << ")" << std::endl; if (value) { - return d_str.propagate(t1.eqNode(t2)); - } else { - return d_str.propagate(t1.eqNode(t2).notNode()); + return d_str.propagateLit(t1.eqNode(t2)); } + return d_str.propagateLit(t1.eqNode(t2).notNode()); } void eqNotifyConstantTermMerge(TNode t1, TNode t2) override { @@ -175,7 +172,7 @@ class TheoryStrings : public Theory { SolverState& d_state; };/* class TheoryStrings::NotifyClass */ /** propagate method */ - bool propagate(TNode literal); + bool propagateLit(TNode literal); /** compute care graph */ void computeCareGraph() override; /** |