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