Get the signedp field from a vl-union.
(vl-union->signedp x) → signedp
This is an ordinary field accessor created by defprod.
Function:
(defun vl-union->signedp$inline (x) (declare (xargs :guard (vl-datatype-p x))) (declare (xargs :guard (equal (vl-datatype-kind x) :vl-union))) (let ((__function__ 'vl-union->signedp)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vl-datatype-kind x) :vl-union) x))) (acl2::bool-fix (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) :exec (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))))
Theorem:
(defthm booleanp-of-vl-union->signedp (b* ((signedp (vl-union->signedp$inline x))) (booleanp signedp)) :rule-classes :type-prescription)
Theorem:
(defthm vl-union->signedp$inline-of-vl-datatype-fix-x (equal (vl-union->signedp$inline (vl-datatype-fix x)) (vl-union->signedp$inline x)))
Theorem:
(defthm vl-union->signedp$inline-vl-datatype-equiv-congruence-on-x (implies (vl-datatype-equiv x x-equiv) (equal (vl-union->signedp$inline x) (vl-union->signedp$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-union->signedp-when-wrong-kind (implies (not (equal (vl-datatype-kind x) :vl-union)) (equal (vl-union->signedp x) (acl2::bool-fix nil))))