summaryrefslogtreecommitdiff
path: root/src/expr/node_algorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/node_algorithm.cpp')
-rw-r--r--src/expr/node_algorithm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/expr/node_algorithm.cpp b/src/expr/node_algorithm.cpp
index 52c5165a6..be436bf8b 100644
--- a/src/expr/node_algorithm.cpp
+++ b/src/expr/node_algorithm.cpp
@@ -491,7 +491,13 @@ void getOperatorsMap(
// add the current operator to the result
if (cur.hasOperator())
{
- ops[tn].insert(NodeManager::currentNM()->operatorOf(cur.getKind()));
+ Node o;
+ if (cur.getMetaKind() == kind::metakind::PARAMETERIZED) {
+ o = cur.getOperator();
+ } else {
+ o = NodeManager::currentNM()->operatorOf(cur.getKind());
+ }
+ ops[tn].insert(o);
}
// add children to visit in the future
for (TNode cn : cur)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback