summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-11-08 23:37:36 +0000
committerMorgan Deters <mdeters@gmail.com>2010-11-08 23:37:36 +0000
commit1f07775e9205b3f9e172a1ad218a9015b7265b58 (patch)
treee3a70b0f547a46cc3b25fc4867124ebb700977f4 /src/util
parent438e4336569f90adcb8c994df54bc410f56cde07 (diff)
command-line flag to disable theory registration, also SMT-LIBv2 compliance (per SMT-LIB mailing list this afternoon)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/options.cpp7
-rw-r--r--src/util/options.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/util/options.cpp b/src/util/options.cpp
index 6d3a06b4b..dbfed887d 100644
--- a/src/util/options.cpp
+++ b/src/util/options.cpp
@@ -52,6 +52,7 @@ static const string optionsDescription = "\
--eager-type-checking type check expressions immediately on creation\n\
--no-type-checking never type check expressions\n\
--no-checking disable ALL semantic checks, including type checks \n\
+ --no-theory-registration disable theory reg (not safe for some theories)\n\
--strict-parsing fail on non-conformant inputs (SMT2 only)\n\
--verbose | -v increase verbosity (repeatable)\n\
--quiet | -q decrease verbosity (repeatable)\n\
@@ -103,6 +104,7 @@ enum OptionValue {
SEGV_NOSPIN,
PARSE_ONLY,
NO_CHECKING,
+ NO_THEORY_REGISTRATION,
USE_MMAP,
SHOW_CONFIG,
STRICT_PARSING,
@@ -151,6 +153,7 @@ static struct option cmdlineOptions[] = {
{ "trace" , required_argument, NULL, 't' },
{ "stats" , no_argument , NULL, STATS },
{ "no-checking", no_argument , NULL, NO_CHECKING },
+ { "no-theory-registration", no_argument, NULL, NO_THEORY_REGISTRATION },
{ "show-config", no_argument , NULL, SHOW_CONFIG },
{ "segv-nospin", no_argument , NULL, SEGV_NOSPIN },
{ "help" , no_argument , NULL, 'h' },
@@ -268,6 +271,10 @@ throw(OptionException) {
parseOnly = true;
break;
+ case NO_THEORY_REGISTRATION:
+ theoryRegistration = false;
+ break;
+
case NO_CHECKING:
semanticChecks = false;
typeChecking = false;
diff --git a/src/util/options.h b/src/util/options.h
index 8cf0b8446..60c8f2a1a 100644
--- a/src/util/options.h
+++ b/src/util/options.h
@@ -90,6 +90,9 @@ struct CVC4_PUBLIC Options {
/** Should the parser do semantic checks? */
bool semanticChecks;
+ /** Should the TheoryEngine do theory registration? */
+ bool theoryRegistration;
+
/** Should the parser memory-map file input? */
bool memoryMap;
@@ -134,6 +137,7 @@ struct CVC4_PUBLIC Options {
uf_implementation(MORGAN),
parseOnly(false),
semanticChecks(DO_SEMANTIC_CHECKS_BY_DEFAULT),
+ theoryRegistration(true),
memoryMap(false),
strictParsing(false),
lazyDefinitionExpansion(false),
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback