summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-08-14 13:12:19 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-08-14 15:12:19 -0500
commit044891b406eb3ee143403ad8fecd7acb99d17ecb (patch)
treef90d35b378da21c2fe889149eb974709292af609 /src
parent29639a7df6ddf105803431cc85888c9416af6af6 (diff)
Remove option --continued-execution. (#3189)
Diffstat (limited to 'src')
-rw-r--r--src/main/command_executor.cpp10
-rw-r--r--src/main/driver_unified.cpp6
-rw-r--r--src/options/didyoumean_test.cpp1
-rw-r--r--src/options/main_options.toml10
-rw-r--r--src/options/options.h1
-rw-r--r--src/options/options_public_functions.cpp4
-rw-r--r--src/smt/smt_engine.cpp7
7 files changed, 11 insertions, 28 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp
index 7e46b163b..241ca2b8f 100644
--- a/src/main/command_executor.cpp
+++ b/src/main/command_executor.cpp
@@ -89,9 +89,10 @@ bool CommandExecutor::doCommand(Command* cmd)
// assume no error
bool status = true;
- for(CommandSequence::iterator subcmd = seq->begin();
- (status || d_options.getContinuedExecution()) && subcmd != seq->end();
- ++subcmd) {
+ for (CommandSequence::iterator subcmd = seq->begin();
+ status && subcmd != seq->end();
+ ++subcmd)
+ {
status = doCommand(*subcmd);
}
@@ -183,7 +184,8 @@ bool CommandExecutor::doCommandSingleton(Command* cmd)
}
for (const auto& getterCommand : getterCommands) {
status = doCommandSingleton(getterCommand.get());
- if (!status && !d_options.getContinuedExecution()) {
+ if (!status)
+ {
break;
}
}
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp
index 7af8a6fdb..d0fce8d00 100644
--- a/src/main/driver_unified.cpp
+++ b/src/main/driver_unified.cpp
@@ -362,7 +362,8 @@ int runCvc4(int argc, char* argv[], Options& opts) {
int needReset = 0;
// true if one of the commands was interrupted
bool interrupted = false;
- while (status || opts.getContinuedExecution()) {
+ while (status)
+ {
if (interrupted) {
(*opts.getOut()) << CommandInterrupted();
break;
@@ -515,7 +516,8 @@ int runCvc4(int argc, char* argv[], Options& opts) {
replayParser->useDeclarationsFrom(parser.get());
}
bool interrupted = false;
- while(status || opts.getContinuedExecution()) {
+ while (status)
+ {
if (interrupted) {
(*opts.getOut()) << CommandInterrupted();
pExecutor->reset();
diff --git a/src/options/didyoumean_test.cpp b/src/options/didyoumean_test.cpp
index 7230f544d..c6d92c97b 100644
--- a/src/options/didyoumean_test.cpp
+++ b/src/options/didyoumean_test.cpp
@@ -734,7 +734,6 @@ set<string> getOptionStrings() {
"incremental-parallel",
"no-incremental-parallel",
"no-interactive-prompt",
- "continued-execution",
"immediate-exit",
"segv-spin",
"no-segv-spin",
diff --git a/src/options/main_options.toml b/src/options/main_options.toml
index 9f75e9426..71c964678 100644
--- a/src/options/main_options.toml
+++ b/src/options/main_options.toml
@@ -163,16 +163,6 @@ header = "options/main_options.h"
help = "interactive prompting while in interactive mode"
[[option]]
- name = "continuedExecution"
- category = "regular"
- long = "continued-execution"
- type = "bool"
- default = "false"
- links = ["--interactive", "--no-interactive-prompt"]
- read_only = true
- help = "continue executing commands, even on error"
-
-[[option]]
name = "segvSpin"
category = "regular"
long = "segv-spin"
diff --git a/src/options/options.h b/src/options/options.h
index 020350c49..0d26c60b9 100644
--- a/src/options/options.h
+++ b/src/options/options.h
@@ -198,7 +198,6 @@ public:
InstFormatMode getInstFormatMode() const;
OutputLanguage getOutputLanguage() const;
bool getCheckProofs() const;
- bool getContinuedExecution() const;
bool getDumpInstantiations() const;
bool getDumpModels() const;
bool getDumpProofs() const;
diff --git a/src/options/options_public_functions.cpp b/src/options/options_public_functions.cpp
index 39f2eb140..43b44b93e 100644
--- a/src/options/options_public_functions.cpp
+++ b/src/options/options_public_functions.cpp
@@ -54,10 +54,6 @@ bool Options::getCheckProofs() const{
return (*this)[options::checkProofs];
}
-bool Options::getContinuedExecution() const{
- return (*this)[options::continuedExecution];
-}
-
bool Options::getDumpInstantiations() const{
return (*this)[options::dumpInstantiations];
}
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 78f47993f..1827d902c 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -2438,12 +2438,7 @@ CVC4::SExpr SmtEngine::getInfo(const std::string& key) const {
}
return SExpr(stats);
} else if(key == "error-behavior") {
- // immediate-exit | continued-execution
- if( options::continuedExecution() || options::interactive() ) {
- return SExpr(SExpr::Keyword("continued-execution"));
- } else {
- return SExpr(SExpr::Keyword("immediate-exit"));
- }
+ return SExpr(SExpr::Keyword("immediate-exit"));
} else if(key == "name") {
return SExpr(Configuration::getName());
} else if(key == "version") {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback