summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2018-04-09 18:50:39 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-04-09 20:50:39 -0500
commit80792d1026600d162f293839615fecdf19665e17 (patch)
treed559376f149bb28ad1b5795f568392065bc369e0 /src
parentfc9e113c5f9ea99a1308d0f36b1aad778747870c (diff)
Fix dumping of benchmark in SmtEngine::checkSatisfiability(). (#1764)
Diffstat (limited to 'src')
-rw-r--r--src/smt/command.cpp2
-rw-r--r--src/smt/smt_engine.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/smt/command.cpp b/src/smt/command.cpp
index c77c4ed02..847221979 100644
--- a/src/smt/command.cpp
+++ b/src/smt/command.cpp
@@ -449,8 +449,6 @@ CheckSatAssumingCommand::CheckSatAssumingCommand(const std::vector<Expr>& terms,
bool inUnsatCore)
: d_terms(terms), d_inUnsatCore(inUnsatCore)
{
- PrettyCheckArgument(
- terms.size() >= 1, terms, "cannot get-value of an empty set of terms");
}
const std::vector<Expr>& CheckSatAssumingCommand::getTerms() const
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 70dc04669..dd8a2e502 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -4646,11 +4646,16 @@ Result SmtEngine::checkSatisfiability(const vector<Expr>& assumptions,
// Dump the query if requested
if (Dump.isOn("benchmark"))
{
+ size_t size = assumptions.size();
// the expr already got dumped out if assertion-dumping is on
- if (isQuery && assumptions.size() == 1)
+ if (isQuery && size == 1)
{
Dump("benchmark") << QueryCommand(assumptions[0]);
}
+ else if (size == 0)
+ {
+ Dump("benchmark") << CheckSatCommand();
+ }
else
{
Dump("benchmark") << CheckSatAssumingCommand(d_assumptions,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback