summaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-10-20 21:49:34 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-10-20 21:49:34 +0000
commit91829206b4783a532453eab3c69de83b8b510286 (patch)
tree8b125cd8d849876eb91ab3ade96c15d5ecee891e /src/main/main.cpp
parent5a8b70ca247b52f7ac3804bae71fdc09cd4fe8c3 (diff)
Changing --no-early-type-checking to --no-type-checking
Disabling type checking when --no-checking is given (Fixes: #221)
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r--src/main/main.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index fd7c1b303..8f790c211 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -123,15 +123,18 @@ int runCvc4(int argc, char* argv[]) {
const bool inputFromStdin =
firstArgIndex >= argc || !strcmp("-", argv[firstArgIndex]);
- // if we're reading from stdin, default to interactive mode
- // [chris 10/20/10] The expected behavior of interactive is
- // different from the expected behavior of file input from
- // stdin, due to EOL escapes in interactive mode
-
+ // if we're reading from stdin on a TTY, default to interactive mode
if(!options.interactiveSetByUser) {
options.interactive = inputFromStdin && isatty(fileno(stdin));
}
+ /* Early type checking can be turned off by --no-type-checking OR
+ --no-checking. We're assuming that earlyTypeChecking is not
+ explicitly set by the user. */
+ if(options.earlyTypeChecking) {
+ options.earlyTypeChecking = options.semanticChecks;
+ }
+
// Create the expression manager
ExprManager exprMgr(options.earlyTypeChecking);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback