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