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