diff options
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 14630bae1..de14723e6 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -1539,6 +1539,10 @@ bool NodeTemplate<ref_count>::hasSubterm(NodeTemplate<false> t, bool strict) con for (unsigned i = 0; i < toProcess.size(); ++ i) { TNode current = toProcess[i]; + if (current.hasOperator() && current.getOperator() == t) + { + return true; + } for(unsigned j = 0, j_end = current.getNumChildren(); j < j_end; ++ j) { TNode child = current[j]; if (child == t) { |