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