summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-06-12 00:32:02 +0000
committerMorgan Deters <mdeters@gmail.com>2012-06-12 00:32:02 +0000
commit3424d8805837637542264cdb717d650a8eed76b6 (patch)
tree5160a5910a7bfb7c1105a30f35033a1893556f31 /src
parentcdb023736199d99d8202f248793cd465bfdae4fb (diff)
fix ordering issue of --dump-to and --default-dag-thresh. now can be specified in either order and the DAG threshold takes.
Diffstat (limited to 'src')
-rw-r--r--src/util/options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/options.cpp b/src/util/options.cpp
index 1296fa5af..06dc6769b 100644
--- a/src/util/options.cpp
+++ b/src/util/options.cpp
@@ -863,6 +863,7 @@ throw(OptionException) {
case DUMP_TO: {
#ifdef CVC4_DUMPING
+ size_t dagSetting = expr::ExprDag::getDag(Dump.getStream());
if(optarg == NULL || *optarg == '\0') {
throw OptionException(string("Bad file name for --dump-to"));
} else if(!strcmp(optarg, "-")) {
@@ -874,6 +875,7 @@ throw(OptionException) {
}
Dump.setStream(*dumpTo);
}
+ expr::ExprDag::setDag(Dump.getStream(), dagSetting);
#else /* CVC4_DUMPING */
throw OptionException("The dumping feature was disabled in this build of CVC4.");
#endif /* CVC4_DUMPING */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback