We weren't collecting them as user-defined types after the recent refactor to Tuples.
return n;
}
+TypeNode LfscNodeConverter::preConvertType(TypeNode tn)
+{
+ if (tn.getKind() == TUPLE_TYPE)
+ {
+ // Must collect the tuple type here, since at post-order traversal, the
+ // type has been modified and no longer maintains the mapping to its
+ // datatype encoding.
+ d_declTypes.insert(tn);
+ }
+ return tn;
+}
+
TypeNode LfscNodeConverter::postConvertType(TypeNode tn)
{
NodeManager* nm = NodeManager::currentNM();
Node preConvert(Node n) override;
/** convert at post-order traversal */
Node postConvert(Node n) override;
+ /** convert type at pre-order traversal */
+ TypeNode preConvertType(TypeNode tn) override;
/** convert type at post-order traversal */
TypeNode postConvertType(TypeNode tn) override;
/**