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