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