Add default memory allocation and free functions for HSIterator and some other tiny...
[c11tester.git] / funcnode.cc
index bf8971bdfbf4de48eba3a53a20323358f3594477..18d7771bfba63ff6460a29039a564be1cd4e4000 100644 (file)
@@ -640,6 +640,10 @@ void FuncNode::add_out_edge(FuncNode * other)
        }
 }
 
        }
 }
 
+/* Compute the distance between this FuncNode and the target node.
+ * Return -1 if the target node is unreachable or the actual distance
+ * is greater than max_step.
+ */
 int FuncNode::compute_distance(FuncNode * target, int max_step)
 {
        SnapList<FuncNode *> queue;
 int FuncNode::compute_distance(FuncNode * target, int max_step)
 {
        SnapList<FuncNode *> queue;