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