diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-03-31 14:27:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 14:27:04 -0500 |
commit | 63f887783e003546bf8de4501774a79dbcf8d4b0 (patch) | |
tree | 2932cf5aa5c81746f5747d48c1ea73ea47c0a624 /src/theory/theory_engine.cpp | |
parent | 5272f5d02f109b7dbfdb5088a1efbf7d13b64487 (diff) |
Remove replay and use-theory options and idl (#4186)
Towards disentangling Options / NodeManager / SmtEngine.
This PR removes options --use-theory=NAME and --replay/--replay-log. Both of these options are highly complex, unused, and lead to complications when implementing the way options and our build system work.
The first is motivated by making TheoryEngine use an "alternate" theory, which appears to e.g. make it so that TheoryIdl could entirely replace TheoryArith. I believe this is too heavy handed of a solution: there should a consistent TheoryArith class, and options should be used to enable/disable alternate modules within it.
The second attempts to replay low level decisions from the SAT solver. It is documented as not working (in 1.0). I do not believe this is worth salvaging.
It also removes the solver in src/theory/idl, which cannot be enabled after this commit.
Diffstat (limited to 'src/theory/theory_engine.cpp')
-rw-r--r-- | src/theory/theory_engine.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp index 32a80a418..e665f6115 100644 --- a/src/theory/theory_engine.cpp +++ b/src/theory/theory_engine.cpp @@ -350,7 +350,6 @@ TheoryEngine::TheoryEngine(context::Context* context, d_factsAsserted(context, false), d_preRegistrationVisitor(this, context), d_sharedTermsVisitor(d_sharedTerms), - d_theoryAlternatives(), d_attr_handle(), d_arithSubstitutionsAdded("theory::arith::zzz::arith::substitutions", 0) { @@ -2374,18 +2373,6 @@ void TheoryEngine::spendResource(ResourceManager::Resource r) d_resourceManager->spendResource(r); } -void TheoryEngine::enableTheoryAlternative(const std::string& name){ - Debug("TheoryEngine::enableTheoryAlternative") - << "TheoryEngine::enableTheoryAlternative(" << name << ")" << std::endl; - - d_theoryAlternatives.insert(name); -} - -bool TheoryEngine::useTheoryAlternative(const std::string& name) { - return d_theoryAlternatives.find(name) != d_theoryAlternatives.end(); -} - - TheoryEngine::Statistics::Statistics(theory::TheoryId theory): conflicts(getStatsPrefix(theory) + "::conflicts", 0), propagations(getStatsPrefix(theory) + "::propagations", 0), |