summaryrefslogtreecommitdiff
path: root/src/theory/substitutions.h
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.nyu.edu>2012-06-04 22:26:40 +0000
committerClark Barrett <barrett@cs.nyu.edu>2012-06-04 22:26:40 +0000
commit3609fb41d7744b3a7d74e44f7bedc4d4c522c938 (patch)
tree011a3fa796fdb98bb3b9a1b425d12c678535f294 /src/theory/substitutions.h
parent468c5bc5d8b63ec6818813270225e09383dd79ff (diff)
Added preprocessing pass that propagates unconstrained values - solves all of
the unconstrained examples in QF_AUFBV/brummayerbiere3 - should also help generally on at least BV and maybe others. Off by default for now - results are mixed and it's hard to evaluate with so many existing assertion failures and segfaults - will re-evaluate once those are fixed
Diffstat (limited to 'src/theory/substitutions.h')
-rw-r--r--src/theory/substitutions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/substitutions.h b/src/theory/substitutions.h
index 958f50276..711ff9b72 100644
--- a/src/theory/substitutions.h
+++ b/src/theory/substitutions.h
@@ -107,6 +107,12 @@ public:
void addSubstitution(TNode x, TNode t, bool invalidateCache = true);
/**
+ * Returns true iff x is in the substitution map
+ */
+ bool hasSubstitution(TNode x)
+ { return d_substitutions.find(x) != d_substitutions.end(); }
+
+ /**
* Apply the substitutions to the node.
*/
Node apply(TNode t);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback