Get the comments field from a vl-program.
(vl-program->comments x) → comments
This is an ordinary field accessor created by defprod.
Function:
(defun vl-program->comments$inline (x) (declare (xargs :guard (vl-program-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-program->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-program->comments (b* ((comments (vl-program->comments$inline x))) (vl-commentmap-p comments)) :rule-classes :rewrite)
Theorem:
(defthm vl-program->comments$inline-of-vl-program-fix-x (equal (vl-program->comments$inline (vl-program-fix x)) (vl-program->comments$inline x)))
Theorem:
(defthm vl-program->comments$inline-vl-program-equiv-congruence-on-x (implies (vl-program-equiv x x-equiv) (equal (vl-program->comments$inline x) (vl-program->comments$inline x-equiv))) :rule-classes :congruence)