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