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