summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2014-06-26 15:46:26 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2014-06-26 15:46:26 -0400
commit78b9b1d41f638563799998024410e9b362e054f6 (patch)
tree5f00cc8e6986f13ab03f04506a6fa989d5eec970 /src/main
parentb825605aecaa4be5c8b62de0f8dc12d0575850e0 (diff)
parent4746a045ce8dd0b3155610652e0fcdf341b0f759 (diff)
Merge pull request #46 from mdeters/bug573
Potential fix for bug 573.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/command_executor.cpp2
-rw-r--r--src/main/driver_unified.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp
index 5dc10a473..028a23f01 100644
--- a/src/main/command_executor.cpp
+++ b/src/main/command_executor.cpp
@@ -69,7 +69,7 @@ bool CommandExecutor::doCommand(Command* cmd)
bool status = true;
for(CommandSequence::iterator subcmd = seq->begin();
- status && subcmd != seq->end();
+ (status || d_options[options::continuedExecution]) && subcmd != seq->end();
++subcmd) {
status = doCommand(*subcmd);
}
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp
index 64e10cc53..6beb9636a 100644
--- a/src/main/driver_unified.cpp
+++ b/src/main/driver_unified.cpp
@@ -338,7 +338,7 @@ int runCvc4(int argc, char* argv[], Options& opts) {
replayParser->useDeclarationsFrom(parser);
}
bool needReset = false;
- while(status && (cmd = parser->nextCommand())) {
+ while((status || opts[options::continuedExecution]) && (cmd = parser->nextCommand())) {
if(dynamic_cast<PushCommand*>(cmd) != NULL) {
if(needReset) {
pExecutor->reset();
@@ -417,7 +417,7 @@ int runCvc4(int argc, char* argv[], Options& opts) {
// have the replay parser use the file's declarations
replayParser->useDeclarationsFrom(parser);
}
- while(status && (cmd = parser->nextCommand())) {
+ while((status || opts[options::continuedExecution]) && (cmd = parser->nextCommand())) {
status = pExecutor->doCommand(cmd);
if(dynamic_cast<QuitCommand*>(cmd) != NULL) {
delete cmd;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback