summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smt/smt_engine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 2a0cde015..1d623fdef 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -506,7 +506,7 @@ bool SmtEngine::isValidGetInfoFlag(const std::string& key) const
if (key == "all-statistics" || key == "error-behavior" || key == "name"
|| key == "version" || key == "authors" || key == "status"
|| key == "reason-unknown" || key == "assertion-stack-levels"
- || key == "all-options")
+ || key == "all-options" || key == "time")
{
return true;
}
@@ -578,6 +578,10 @@ CVC4::SExpr SmtEngine::getInfo(const std::string& key) const
default: return SExpr(SExpr::Keyword("unknown"));
}
}
+ if (key == "time")
+ {
+ return SExpr(std::clock());
+ }
if (key == "reason-unknown")
{
Result status = d_state->getStatus();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback