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