From 25e77125743b97b9f36d2344a3b5598ab64223b9 Mon Sep 17 00:00:00 2001 From: yoni206 Date: Fri, 13 Apr 2018 22:58:37 -0700 Subject: [PATCH] allowing --bool-to-bv without quantifiers (#1771) --- src/smt/smt_engine.cpp | 6 ++++-- 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 ----------------------------------------------- */ -- 2.30.2