std::map<TypeNode, std::unordered_set<Node, NodeHashFunction>>& ops,
std::unordered_set<TNode, TNodeHashFunction>& visited);
-/**
+/*
* Substitution of Nodes in a capture avoiding way.
+ * If x occurs free in n and it is substituted by a term t
+ * and t includes some variable y that is bound in n,
+ * then using alpha conversion y is replaced with a fresh bound variable
+ * before the substitution.
+ *
*/
Node substituteCaptureAvoiding(TNode n, Node src, Node dest);
/**
- * Simultaneous substitution of Nodes in a capture avoiding way. Elements in
- * source will be replaced by their corresponding element in dest. Both
- * vectors should have the same size.
+ * Same as substituteCaptureAvoiding above, but with a
+ * simultaneous substitution of a vector of variables.
+ * Elements in source will be replaced by their corresponding element in dest.
+ * Both vectors should have the same size.
*/
Node substituteCaptureAvoiding(TNode n,
std::vector<Node>& src,