diff options
author | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-04 22:26:40 +0000 |
---|---|---|
committer | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-04 22:26:40 +0000 |
commit | 3609fb41d7744b3a7d74e44f7bedc4d4c522c938 (patch) | |
tree | 011a3fa796fdb98bb3b9a1b425d12c678535f294 /src/expr/node.h | |
parent | 468c5bc5d8b63ec6818813270225e09383dd79ff (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/expr/node.h')
-rw-r--r-- | src/expr/node.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 4d39ec60f..3532116bc 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -451,6 +451,15 @@ public: } /** + * Returns true if this node represents a constant + * @return true if const + */ + inline bool isVar() const { + assertTNodeNotExpired(); + return getMetaKind() == kind::metakind::VARIABLE; + } + + /** * Returns the unique id of this node * @return the ud */ |