summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-12-05 21:11:19 +0000
committerMorgan Deters <mdeters@gmail.com>2011-12-05 21:11:19 +0000
commitc232c1054d0635f4fcd136c3cb2038fa57538e6b (patch)
tree1fb43639cbeaae27423cde36252b9553a11a3980 /src
parent9468dec9f3c041e4996df2f703f2c2ba4ba8dd91 (diff)
change short-circuiting behavior of Command execution in the main driver; allows a (limited) form of error recovery, matching what we had previously
Diffstat (limited to 'src')
-rw-r--r--src/main/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 76ca7a925..df9063808 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -294,7 +294,7 @@ static int runCvc4(int argc, char* argv[]) {
replayParser->useDeclarationsFrom(shell.getParser());
}
while((cmd = shell.readCommand())) {
- status = status && doCommand(smt, cmd);
+ status = doCommand(smt, cmd) && status;
delete cmd;
}
} else {
@@ -310,7 +310,7 @@ static int runCvc4(int argc, char* argv[]) {
replayParser->useDeclarationsFrom(parser);
}
while((cmd = parser->nextCommand())) {
- status = status && doCommand(smt, cmd);
+ status = doCommand(smt, cmd) && status;
delete cmd;
}
// Remove the parser
@@ -370,7 +370,7 @@ static bool doCommand(SmtEngine& smt, Command* cmd) {
for(CommandSequence::iterator subcmd = seq->begin();
subcmd != seq->end();
++subcmd) {
- status = status && doCommand(smt, *subcmd);
+ status = doCommand(smt, *subcmd) && status;
}
} else {
if(options.verbosity > 0) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback