Get the kind (tag) of a vl-scopecontext structure.
(vl-scopecontext-kind x) → kind
Function:
(defun vl-scopecontext-kind$inline (x) (declare (xargs :guard (vl-scopecontext-p x))) (let ((__function__ 'vl-scopecontext-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :local)) :local) ((eq (car x) :root) :root) ((eq (car x) :package) :package) ((eq (car x) :class) :class) ((eq (car x) :module) :module) (t :interface)) :exec (car x))))
Theorem:
(defthm vl-scopecontext-kind-possibilities (or (equal (vl-scopecontext-kind x) :local) (equal (vl-scopecontext-kind x) :root) (equal (vl-scopecontext-kind x) :package) (equal (vl-scopecontext-kind x) :class) (equal (vl-scopecontext-kind x) :module) (equal (vl-scopecontext-kind x) :interface)) :rule-classes ((:forward-chaining :trigger-terms ((vl-scopecontext-kind x)))))