(dependency-chain-p nodes graph) determines if a list of
(dependency-chain-p nodes graph) → depchain-p
Say
Function:
(defun dependency-chain-p (nodes graph) (declare (xargs :guard t)) (let ((__function__ 'dependency-chain-p)) (declare (ignorable __function__)) (b* (((when (atom nodes)) t) ((when (atom (cdr nodes))) t) (node1 (first nodes)) (node2 (second nodes)) (deps1 (cdr (hons-get node1 graph)))) (and (hons-member-equal node2 deps1) (dependency-chain-p (cdr nodes) graph)))))