Get the dir field from a vl-plainarg.
(vl-plainarg->dir x) → dir
This is an ordinary field accessor created by defprod.
Function:
(defun vl-plainarg->dir$inline (x) (declare (xargs :guard (vl-plainarg-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-plainarg->dir)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-maybe-direction-fix (std::prod-car (std::prod-cdr (cdr x))))) :exec (std::prod-car (std::prod-cdr (cdr x))))))
Theorem:
(defthm vl-maybe-direction-p-of-vl-plainarg->dir (b* ((dir (vl-plainarg->dir$inline x))) (vl-maybe-direction-p dir)) :rule-classes :rewrite)
Theorem:
(defthm vl-plainarg->dir$inline-of-vl-plainarg-fix-x (equal (vl-plainarg->dir$inline (vl-plainarg-fix x)) (vl-plainarg->dir$inline x)))
Theorem:
(defthm vl-plainarg->dir$inline-vl-plainarg-equiv-congruence-on-x (implies (vl-plainarg-equiv x x-equiv) (equal (vl-plainarg->dir$inline x) (vl-plainarg->dir$inline x-equiv))) :rule-classes :congruence)