summaryrefslogtreecommitdiff
path: root/src/expr
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-04-04 09:59:45 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-04-04 09:59:57 -0500
commit6cb3f49d3933061000fe63d2ee7e004cae06d6ba (patch)
tree1a8fc7ed586968a872476deb3f5db3dc0f6ae389 /src/expr
parent72a0afbd73f1d2505285a965eb0ff3312e201f2c (diff)
Do not solve for 0-ary non-constant symbols (for which isVar returns true), add regressions.
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/node.h6
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();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback