summaryrefslogtreecommitdiff
path: root/src/expr/node_builder.h
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-04-12 16:47:12 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-04-12 16:47:12 -0500
commit75db964b0c56f1a3b04b77c33d226c4d9cd0ca54 (patch)
treec30f7f17ae963e3f51cef111b2d549eacff1a852 /src/expr/node_builder.h
parente6e02c32c58f9e5edde2dd85fc7b19ef001eea03 (diff)
Add nullary operator metakind.
Diffstat (limited to 'src/expr/node_builder.h')
-rw-r--r--src/expr/node_builder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr/node_builder.h b/src/expr/node_builder.h
index d92524a19..7cb14ed5a 100644
--- a/src/expr/node_builder.h
+++ b/src/expr/node_builder.h
@@ -933,7 +933,7 @@ expr::NodeValue* NodeBuilder<nchild_thresh>::constructNV() {
// file comments at the top of this file.
// Case 0: If a VARIABLE
- if(getMetaKind() == kind::metakind::VARIABLE) {
+ if(getMetaKind() == kind::metakind::VARIABLE || getMetaKind() == kind::metakind::NULLARY_OPERATOR) {
/* 0. If a VARIABLE, treat similarly to 1(b), except that we know
* there are no children (no reference counts to reason about),
* and we don't keep VARIABLE-kinded Nodes in the NodeManager
@@ -1123,7 +1123,7 @@ expr::NodeValue* NodeBuilder<nchild_thresh>::constructNV() const {
// file comments at the top of this file.
// Case 0: If a VARIABLE
- if(getMetaKind() == kind::metakind::VARIABLE) {
+ if(getMetaKind() == kind::metakind::VARIABLE || getMetaKind() == kind::metakind::NULLARY_OPERATOR) {
/* 0. If a VARIABLE, treat similarly to 1(b), except that we know
* there are no children (no reference counts to reason about),
* and we don't keep VARIABLE-kinded Nodes in the NodeManager
@@ -1336,6 +1336,7 @@ inline void NodeBuilder<nchild_thresh>::maybeCheckType(const TNode n) const
if( d_nm->getOptions()[options::earlyTypeChecking] ) {
kind::MetaKind mk = n.getMetaKind();
if( mk != kind::metakind::VARIABLE
+ && mk != kind::metakind::NULLARY_OPERATOR
&& mk != kind::metakind::CONSTANT ) {
d_nm->getType(n, true);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback