diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-04 09:59:45 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-04 09:59:57 -0500 |
commit | 6cb3f49d3933061000fe63d2ee7e004cae06d6ba (patch) | |
tree | 1a8fc7ed586968a872476deb3f5db3dc0f6ae389 /src/expr/node.h | |
parent | 72a0afbd73f1d2505285a965eb0ff3312e201f2c (diff) |
Do not solve for 0-ary non-constant symbols (for which isVar returns true), add regressions.
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 6dbb5aa2b..31721b2ef 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -464,6 +464,12 @@ public: assertTNodeNotExpired(); return getMetaKind() == kind::metakind::VARIABLE; } + inline bool isUninterpretedVar() const { + assertTNodeNotExpired(); + return getMetaKind() == kind::metakind::VARIABLE && + getKind() != kind::UNIVERSE_SET && + getKind() != kind::SEP_NIL; + } inline bool isClosure() const { assertTNodeNotExpired(); |