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