Get the kind (tag) of a vl-genelement structure.
(vl-genelement-kind x) → kind
Function:
(defun vl-genelement-kind$inline (x) (declare (xargs :guard (vl-genelement-p x))) (let ((__function__ 'vl-genelement-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :vl-genbase)) :vl-genbase) ((eq (car x) :vl-genbegin) :vl-genbegin) ((eq (car x) :vl-genif) :vl-genif) ((eq (car x) :vl-gencase) :vl-gencase) ((eq (car x) :vl-genloop) :vl-genloop) (t :vl-genarray)) :exec (car x))))
Theorem:
(defthm vl-genelement-kind-possibilities (or (equal (vl-genelement-kind x) :vl-genbase) (equal (vl-genelement-kind x) :vl-genbegin) (equal (vl-genelement-kind x) :vl-genif) (equal (vl-genelement-kind x) :vl-gencase) (equal (vl-genelement-kind x) :vl-genloop) (equal (vl-genelement-kind x) :vl-genarray)) :rule-classes ((:forward-chaining :trigger-terms ((vl-genelement-kind x)))))