diff options
author | yoni206 <yoni206@users.noreply.github.com> | 2018-04-13 22:58:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 22:58:37 -0700 |
commit | 25e77125743b97b9f36d2344a3b5598ab64223b9 (patch) | |
tree | 7359c99b4671e0b6f439c773d2d60c0e28f59425 | |
parent | 84ead159cfbb76c8a6195ed2a64102529a84bdac (diff) |
allowing --bool-to-bv without quantifiers (#1771)
-rw-r--r-- | src/smt/smt_engine.cpp | 6 | ||||
-rw-r--r-- | src/theory/quantifiers/bv_inverter.cpp | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index ea51df8c9..57cf3ac8c 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -1472,9 +1472,11 @@ void SmtEngine::setDefaults() { } } - if (options::cbqiBv()) { + if (options::cbqiBv() && d_logic.isQuantified()) + { if(options::boolToBitvector.wasSetByUser()) { - throw OptionException("bool-to-bv not supported with CBQI BV"); + throw OptionException( + "bool-to-bv not supported with CBQI BV for quantified logics"); } Notice() << "SmtEngine: turning off bool-to-bitvector to support CBQI BV" << endl; diff --git a/src/theory/quantifiers/bv_inverter.cpp b/src/theory/quantifiers/bv_inverter.cpp index f9f66a0be..b0f7a2cb8 100644 --- a/src/theory/quantifiers/bv_inverter.cpp +++ b/src/theory/quantifiers/bv_inverter.cpp @@ -2834,7 +2834,8 @@ Node BvInverter::solveBvLit(Node sv, litk = k = lit.getKind(); /* Note: option --bool-to-bv is currently disabled when CBQI BV - * is enabled. We currently do not support Boolean operators + * is enabled and the logic is quantified. + * We currently do not support Boolean operators * that are interpreted as bit-vector operators of width 1. */ /* Boolean layer ----------------------------------------------- */ |