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