summaryrefslogtreecommitdiff
path: root/src/theory/logic_info.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-07-22 19:11:59 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-07-22 19:11:59 -0400
commit36b4c5c156e32d7bb8634794e8bf95b8617a3944 (patch)
treec0be6fa56997c1307a866368db24600c65506ffb /src/theory/logic_info.cpp
parent0b13f748c7a6f2cb5ee61404e0864667e9a931b9 (diff)
Allow BV and DT in either order in the logic string
Diffstat (limited to 'src/theory/logic_info.cpp')
-rw-r--r--src/theory/logic_info.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/logic_info.cpp b/src/theory/logic_info.cpp
index cbd0b510e..008618342 100644
--- a/src/theory/logic_info.cpp
+++ b/src/theory/logic_info.cpp
@@ -181,6 +181,7 @@ void LogicInfo::setLogicString(std::string logicString) throw(IllegalArgumentExc
enableTheory(THEORY_UF);
p += 2;
}
+ // allow BV or DT in either order
if(!strncmp(p, "BV", 2)) {
enableTheory(THEORY_BV);
p += 2;
@@ -189,6 +190,10 @@ void LogicInfo::setLogicString(std::string logicString) throw(IllegalArgumentExc
enableTheory(THEORY_DATATYPES);
p += 2;
}
+ if(!d_theories[THEORY_BV] && !strncmp(p, "BV", 2)) {
+ enableTheory(THEORY_BV);
+ p += 2;
+ }
if(!strncmp(p, "IDL", 3)) {
enableIntegers();
disableReals();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback