(vl-pp-scope-name x &key (ps 'ps)) → ps
Function:
(defun vl-pp-scope-name-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-scope-p x))) (let ((__function__ 'vl-pp-scope-name)) (declare (ignorable __function__)) (b* ((x (vl-scope-fix x)) (name (vl-scope->name x))) (if name (vl-print-str name) (vl-ps-seq (vl-print "<unnamed ") (vl-print-str (symbol-name (tag x))) (vl-print ">"))))))
Theorem:
(defthm vl-pp-scope-name-fn-of-vl-scope-fix-x (equal (vl-pp-scope-name-fn (vl-scope-fix x) ps) (vl-pp-scope-name-fn x ps)))
Theorem:
(defthm vl-pp-scope-name-fn-vl-scope-equiv-congruence-on-x (implies (vl-scope-equiv x x-equiv) (equal (vl-pp-scope-name-fn x ps) (vl-pp-scope-name-fn x-equiv ps))) :rule-classes :congruence)