(vl-description->maxloc x) → maxloc
Function:
(defun vl-description->maxloc (x) (declare (xargs :guard (vl-description-p x))) (let ((__function__ 'vl-description->maxloc)) (declare (ignorable __function__)) (b* ((x (vl-description-fix x))) (case (tag x) (:vl-module (vl-module->maxloc x)) (:vl-udp (vl-udp->maxloc x)) (:vl-interface (vl-interface->maxloc x)) (:vl-package (vl-package->maxloc x)) (:vl-program (vl-program->maxloc x)) (:vl-class (vl-class->maxloc x)) (:vl-config (vl-config->maxloc x)) (:vl-typedef (vl-typedef->maxloc x)) (:vl-vardecl (vl-vardecl->loc x)) (:vl-taskdecl (vl-taskdecl->loc x)) (:vl-fundecl (vl-fundecl->loc x)) (:vl-paramdecl (vl-paramdecl->loc x)) (:vl-import (vl-import->loc x)) (:vl-fwdtypedef (vl-fwdtypedef->loc x)) (:vl-dpiimport (vl-dpiimport->loc x)) (:vl-dpiexport (vl-dpiexport->loc x)) (:vl-bind (vl-bind->loc x)) (:vl-property (vl-property->loc x)) (:vl-sequence (vl-sequence->loc x)) (otherwise (progn$ (impossible) *vl-fakeloc*))))))
Theorem:
(defthm vl-location-p-of-vl-description->maxloc (b* ((maxloc (vl-description->maxloc x))) (vl-location-p maxloc)) :rule-classes :rewrite)