(vl-port->loc x) → loc
Function:
(defun vl-port->loc (x) (declare (xargs :guard (vl-port-p x))) (let ((__function__ 'vl-port->loc)) (declare (ignorable __function__)) (b* ((x (vl-port-fix x))) (case (tag x) (:vl-regularport (vl-regularport->loc x)) (:vl-interfaceport (vl-interfaceport->loc x)) (otherwise (progn$ (impossible) *vl-fakeloc*))))))
Theorem:
(defthm vl-location-p-of-vl-port->loc (b* ((loc (vl-port->loc x))) (vl-location-p loc)) :rule-classes :rewrite)
Theorem:
(defthm vl-port->loc-of-vl-port-fix-x (equal (vl-port->loc (vl-port-fix x)) (vl-port->loc x)))
Theorem:
(defthm vl-port->loc-vl-port-equiv-congruence-on-x (implies (vl-port-equiv x x-equiv) (equal (vl-port->loc x) (vl-port->loc x-equiv))) :rule-classes :congruence)