(vl-pp-scopetype x &key (ps 'ps)) → ps
Function:
(defun vl-pp-scopetype-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-scopetype-p x))) (let ((__function__ 'vl-pp-scopetype)) (declare (ignorable __function__)) (vl-print (case (vl-scopetype-fix x) (:vl-module "module") (:vl-interface "interface") (:vl-fundecl "function") (:vl-taskdecl "task") (:vl-blockstmt "block statement") (:vl-forstmt "for statement") (:vl-foreachstmt "foreach statement") (:vl-design "global design") (:vl-package "package") (:vl-genblock "generate block") (:vl-genarrayblock "generate array block") (:vl-genarray "generate array") (otherwise "anonymous scope")))))
Theorem:
(defthm vl-pp-scopetype-fn-of-vl-scopetype-fix-x (equal (vl-pp-scopetype-fn (vl-scopetype-fix x) ps) (vl-pp-scopetype-fn x ps)))
Theorem:
(defthm vl-pp-scopetype-fn-vl-scopetype-equiv-congruence-on-x (implies (vl-scopetype-equiv x x-equiv) (equal (vl-pp-scopetype-fn x ps) (vl-pp-scopetype-fn x-equiv ps))) :rule-classes :congruence)