summaryrefslogtreecommitdiff
path: root/src/main/driver_unified.cpp
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2014-04-06 06:25:08 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2014-04-06 06:56:54 -0400
commitab83b7f8d4cc25580cf140d753e0bfe3c76cb36c (patch)
tree471742f4e54178327c9c3413c70927f288dae300 /src/main/driver_unified.cpp
parent1364389f19e55984cc52589b3af42322c300e00f (diff)
fix for hiding prompt/header in shell, error-behavior options as in SMTLIB
Diffstat (limited to 'src/main/driver_unified.cpp')
-rw-r--r--src/main/driver_unified.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp
index adc40a9d1..c2b879a6b 100644
--- a/src/main/driver_unified.cpp
+++ b/src/main/driver_unified.cpp
@@ -246,17 +246,19 @@ int runCvc4(int argc, char* argv[], Options& opts) {
}
#endif /* PORTFOLIO_BUILD */
InteractiveShell shell(*exprMgr, opts);
- Message() << Configuration::getPackageName()
- << " " << Configuration::getVersionString();
- if(Configuration::isGitBuild()) {
- Message() << " [" << Configuration::getGitId() << "]";
- } else if(Configuration::isSubversionBuild()) {
- Message() << " [" << Configuration::getSubversionId() << "]";
+ if(opts[options::interactivePrompt]) {
+ Message() << Configuration::getPackageName()
+ << " " << Configuration::getVersionString();
+ if(Configuration::isGitBuild()) {
+ Message() << " [" << Configuration::getGitId() << "]";
+ } else if(Configuration::isSubversionBuild()) {
+ Message() << " [" << Configuration::getSubversionId() << "]";
+ }
+ Message() << (Configuration::isDebugBuild() ? " DEBUG" : "")
+ << " assertions:"
+ << (Configuration::isAssertionBuild() ? "on" : "off")
+ << endl;
}
- Message() << (Configuration::isDebugBuild() ? " DEBUG" : "")
- << " assertions:"
- << (Configuration::isAssertionBuild() ? "on" : "off")
- << endl;
if(replayParser != NULL) {
// have the replay parser use the declarations input interactively
replayParser->useDeclarationsFrom(shell.getParser());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback