summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-04-23 23:03:37 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-04-23 23:16:58 -0400
commitb25991f4c2779c34b51cd51b943290a4a3d2a9fd (patch)
treeaaec41cf29cc3574288c6110ba246f361d84ec3a /src/smt
parenta006e7b92327668b76a1ab993007f42fe91052c3 (diff)
Theory "alternates" support
* This is a feature that Dejan and I want for the upcoming tutorial. It allows rapid prototyping of new decision procedure implementations (which we may choose to demonstrate), and a new --use-theory command-line option to select from different available implementations. It has no affect on the current set of theories, as no "alternates" are defined. * Also update the new-theory script, which was broken and incomplete.
Diffstat (limited to 'src/smt')
-rw-r--r--src/smt/smt_engine.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 864b444df..cc11147ed 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -603,12 +603,9 @@ SmtEngine::SmtEngine(ExprManager* em) throw() :
d_theoryEngine = new TheoryEngine(d_context, d_userContext, d_private->d_iteRemover, const_cast<const LogicInfo&>(d_logic));
// Add the theories
-#ifdef CVC4_FOR_EACH_THEORY_STATEMENT
-#undef CVC4_FOR_EACH_THEORY_STATEMENT
-#endif
-#define CVC4_FOR_EACH_THEORY_STATEMENT(THEORY) \
- d_theoryEngine->addTheory<TheoryTraits<THEORY>::theory_class>(THEORY);
- CVC4_FOR_EACH_THEORY;
+ for(TheoryId id = theory::THEORY_FIRST; id < theory::THEORY_LAST; ++id) {
+ TheoryConstructor::addTheory(d_theoryEngine, id);
+ }
// global push/pop around everything, to ensure proper destruction
// of context-dependent data structures
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback