(vl-pp-scopename x &key (ps 'ps)) → ps
Function:
(defun vl-pp-scopename-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-scopename-p x))) (let ((__function__ 'vl-pp-scopename)) (declare (ignorable __function__)) (b* ((x (vl-scopename-fix x))) (cond ((eq x :vl-local) (vl-ps-span "vl_key" (vl-print "local"))) ((eq x :vl-$unit) (vl-ps-span "vl_key" (vl-print "$unit"))) (t (vl-ps-span "vl_id" (vl-print-str x)))))))
Theorem:
(defthm vl-pp-scopename-fn-of-vl-scopename-fix-x (equal (vl-pp-scopename-fn (vl-scopename-fix x) ps) (vl-pp-scopename-fn x ps)))
Theorem:
(defthm vl-pp-scopename-fn-vl-scopename-equiv-congruence-on-x (implies (vl-scopename-equiv x x-equiv) (equal (vl-pp-scopename-fn x ps) (vl-pp-scopename-fn x-equiv ps))) :rule-classes :congruence)