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