Get the model field from a vl-tname.
(vl-tname->model x) → model
This is an ordinary field accessor created by defprod.
Function:
(defun vl-tname->model$inline (x) (declare (xargs :guard (vl-tname-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-tname->model)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (str-fix (cdr (std::da-nth 1 (cdr x))))) :exec (cdr (std::da-nth 1 (cdr x))))))
Theorem:
(defthm stringp-of-vl-tname->model (b* ((model (vl-tname->model$inline x))) (stringp model)) :rule-classes :type-prescription)
Theorem:
(defthm vl-tname->model$inline-of-vl-tname-fix-x (equal (vl-tname->model$inline (vl-tname-fix x)) (vl-tname->model$inline x)))
Theorem:
(defthm vl-tname->model$inline-vl-tname-equiv-congruence-on-x (implies (vl-tname-equiv x x-equiv) (equal (vl-tname->model$inline x) (vl-tname->model$inline x-equiv))) :rule-classes :congruence)