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