summaryrefslogtreecommitdiff
path: root/src/main/driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/driver.cpp')
-rw-r--r--src/main/driver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/driver.cpp b/src/main/driver.cpp
index 00072d6d9..5ecfed3a6 100644
--- a/src/main/driver.cpp
+++ b/src/main/driver.cpp
@@ -242,6 +242,9 @@ int runCvc4(int argc, char* argv[], Options& options) {
*options.replayLog << Expr::setlanguage(options.outputLanguage) << Expr::setdepth(-1);
}
+ // important even for muzzled builds (to get result output right)
+ *options.out << Expr::setlanguage(options.outputLanguage);
+
// Parse and execute commands until we are done
Command* cmd;
bool status = true;
@@ -281,6 +284,10 @@ int runCvc4(int argc, char* argv[], Options& options) {
replayParser->useDeclarationsFrom(parser);
}
while((cmd = parser->nextCommand())) {
+ if(dynamic_cast<QuitCommand*>(cmd) != NULL) {
+ delete cmd;
+ break;
+ }
status = doCommand(smt, cmd, options) && status;
delete cmd;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback