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