Get the hid field from a vl-scopeexpr-end.
(vl-scopeexpr-end->hid x) → hid
This is an ordinary field accessor created by defprod.
Function:
(defun vl-scopeexpr-end->hid$inline (x) (declare (xargs :guard (vl-scopeexpr-p x))) (declare (xargs :guard (equal (vl-scopeexpr-kind x) :end))) (let ((__function__ 'vl-scopeexpr-end->hid)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vl-scopeexpr-kind x) :end) x))) (vl-hidexpr-fix x)) :exec x)))
Theorem:
(defthm vl-hidexpr-p-of-vl-scopeexpr-end->hid (b* ((hid (vl-scopeexpr-end->hid$inline x))) (vl-hidexpr-p hid)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopeexpr-end->hid$inline-of-vl-scopeexpr-fix-x (equal (vl-scopeexpr-end->hid$inline (vl-scopeexpr-fix x)) (vl-scopeexpr-end->hid$inline x)))
Theorem:
(defthm vl-scopeexpr-end->hid$inline-vl-scopeexpr-equiv-congruence-on-x (implies (vl-scopeexpr-equiv x x-equiv) (equal (vl-scopeexpr-end->hid$inline x) (vl-scopeexpr-end->hid$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-scopeexpr-end->hid-when-wrong-kind (implies (not (equal (vl-scopeexpr-kind x) :end)) (equal (vl-scopeexpr-end->hid x) (vl-hidexpr-fix nil))))