From 045858c2d492af6e102c6b55a2f3e9e1d044da64 Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Wed, 9 Apr 2014 14:35:37 -0400 Subject: [PATCH] fix get-info error-behavior --- src/smt/smt_engine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 7aebb60f6..8586bc9da 100644 --- 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") { -- 2.30.2