(vls-port-table origname data) → ans
Function:
(defun vls-port-table (origname data) (declare (xargs :guard (and (stringp origname) (vls-data-p data)))) (let ((__function__ 'vls-port-table)) (declare (ignorable __function__)) (b* (((vls-data data)) (look (cdr (hons-assoc-equal origname data.orig-descalist))) ((unless look) (cat "Error: no such module " origname)) ((unless (mbe :logic (vl-module-p look) :exec (eq (tag look) :vl-module))) (cat "Error: expected a module but " origname " is a " (ec-call (symbol-name (tag look)))))) (with-local-ps (vl-ps-seq (vl-ps-update-htmlp t) (vl-pp-porttable look))))))
Theorem:
(defthm stringp-of-vls-port-table (b* ((ans (vls-port-table origname data))) (stringp ans)) :rule-classes :type-prescription)