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