projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97a37c
)
fix get-info error-behavior
author
Kshitij Bansal
<kshitij@cs.nyu.edu>
Wed, 9 Apr 2014 18:35:37 +0000
(14:35 -0400)
committer
Kshitij Bansal
<kshitij@cs.nyu.edu>
Wed, 9 Apr 2014 18:51:22 +0000
(14:51 -0400)
src/smt/smt_engine.cpp
patch
|
blob
|
history
diff --git
a/src/smt/smt_engine.cpp
b/src/smt/smt_engine.cpp
index 7aebb60f6f6586052c52289586a99805213d36e8..8586bc9da5ee04e54db61172b928739e2eb9a239 100644
(file)
--- a/
src/smt/smt_engine.cpp
+++ b/
src/smt/smt_engine.cpp
@@
-1348,7
+1348,11
@@
CVC4::SExpr SmtEngine::getInfo(const std::string& key) const
return stats;
} else if(key == "error-behavior") {
// immediate-exit | continued-execution
- return SExpr::Keyword("continued-execution");
+ if( options::continuedExecution() || options::interactive() ) {
+ return SExpr::Keyword("continued-execution");
+ } else {
+ return SExpr::Keyword("immediate-exit");
+ }
} else if(key == "name") {
return Configuration::getName();
} else if(key == "version") {