}
#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());
free(lineBuf);
#endif /* HAVE_LIBREADLINE */
} else {
- if(d_options[options::verbosity] >= 0) {
+ if(d_options[options::interactivePrompt]) {
if(line == "") {
d_out << "CVC4> " << flush;
} else {
input[n] = '\n';
if(d_usingReadline) {
#if HAVE_LIBREADLINE
- lineBuf = ::readline(d_options[options::verbosity] >= 0 ? "... > " : "");
+ lineBuf = ::readline(d_options[options::interactivePrompt] ? "... > " : "");
if(lineBuf != NULL && lineBuf[0] != '\0') {
::add_history(lineBuf);
}
free(lineBuf);
#endif /* HAVE_LIBREADLINE */
} else {
- if(d_options[options::verbosity] >= 0) {
+ if(d_options[options::interactivePrompt]) {
d_out << "... > " << flush;
}
option incrementalParallel --incremental-parallel bool :default false :link --incremental
Use parallel solver even in incremental mode (may print 'unknown's at times)
-option interactivePrompt /--no-interactive-prompt bool :default true
+undocumented-option interactivePrompt /--no-interactive-prompt bool :default true
turn off interactive prompting while in interactive mode
+# error behaviors
+option continuedExecution --continued-execution/--immediate-exit bool :default false :link "--interactive --no-interactive-prompt"/
+ continue executing commands, even on error
+
option segvSpin --segv-spin bool :default false
spin on segfault/other crash waiting for gdb
undocumented-alias --segv-nospin = --no-segv-spin