Get the subtree field from a vl-warningtree-context.
(vl-warningtree->subtree x) → subtree
This is an ordinary field accessor created by defprod.
Function:
(defun vl-warningtree->subtree$inline (x) (declare (xargs :guard (vl-warningtree-p x))) (declare (xargs :guard (equal (vl-warningtree-kind x) :context))) (let ((__function__ 'vl-warningtree->subtree)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vl-warningtree-kind x) :context) x))) (vl-warningtree-fix (cddr x))) :exec (cddr x))))
Theorem:
(defthm vl-warningtree-p-of-vl-warningtree->subtree (b* ((subtree (vl-warningtree->subtree$inline x))) (vl-warningtree-p subtree)) :rule-classes :rewrite)
Theorem:
(defthm vl-warningtree->subtree$inline-of-vl-warningtree-fix-x (equal (vl-warningtree->subtree$inline (vl-warningtree-fix x)) (vl-warningtree->subtree$inline x)))
Theorem:
(defthm vl-warningtree->subtree$inline-vl-warningtree-equiv-congruence-on-x (implies (vl-warningtree-equiv x x-equiv) (equal (vl-warningtree->subtree$inline x) (vl-warningtree->subtree$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-warningtree->subtree-when-wrong-kind (implies (not (equal (vl-warningtree-kind x) :context)) (equal (vl-warningtree->subtree x) (vl-warningtree-fix nil))))