Get the weight field from a vl-distitem.
(vl-distitem->weight x) → weight
This is an ordinary field accessor created by defprod.
Function:
(defun vl-distitem->weight$inline (x) (declare (xargs :guard (vl-distitem-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-distitem->weight)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-expr-fix (std::prod-cdr (std::prod-cdr (cdr x))))) :exec (std::prod-cdr (std::prod-cdr (cdr x))))))
Theorem:
(defthm vl-expr-p-of-vl-distitem->weight (b* ((weight (vl-distitem->weight$inline x))) (vl-expr-p weight)) :rule-classes :rewrite)
Theorem:
(defthm vl-distitem->weight$inline-of-vl-distitem-fix-x (equal (vl-distitem->weight$inline (vl-distitem-fix x)) (vl-distitem->weight$inline x)))
Theorem:
(defthm vl-distitem->weight$inline-vl-distitem-equiv-congruence-on-x (implies (vl-distitem-equiv x x-equiv) (equal (vl-distitem->weight$inline x) (vl-distitem->weight$inline x-equiv))) :rule-classes :congruence)