diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2013-07-22 19:11:59 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2013-07-22 19:11:59 -0400 |
commit | 36b4c5c156e32d7bb8634794e8bf95b8617a3944 (patch) | |
tree | c0be6fa56997c1307a866368db24600c65506ffb /src/theory/logic_info.cpp | |
parent | 0b13f748c7a6f2cb5ee61404e0864667e9a931b9 (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.cpp | 5 |
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(); |