Get the kind (tag) of a vl-stmt structure.
(vl-stmt-kind x) → kind
Function:
(defun vl-stmt-kind$inline (x) (declare (xargs :guard (vl-stmt-p x))) (let ((__function__ 'vl-stmt-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :vl-nullstmt)) :vl-nullstmt) ((eq (car x) :vl-assignstmt) :vl-assignstmt) ((eq (car x) :vl-deassignstmt) :vl-deassignstmt) ((eq (car x) :vl-enablestmt) :vl-enablestmt) ((eq (car x) :vl-disablestmt) :vl-disablestmt) ((eq (car x) :vl-eventtriggerstmt) :vl-eventtriggerstmt) ((eq (car x) :vl-casestmt) :vl-casestmt) ((eq (car x) :vl-ifstmt) :vl-ifstmt) ((eq (car x) :vl-foreverstmt) :vl-foreverstmt) ((eq (car x) :vl-waitstmt) :vl-waitstmt) ((eq (car x) :vl-repeatstmt) :vl-repeatstmt) ((eq (car x) :vl-whilestmt) :vl-whilestmt) ((eq (car x) :vl-forstmt) :vl-forstmt) ((eq (car x) :vl-blockstmt) :vl-blockstmt) ((eq (car x) :vl-timingstmt) :vl-timingstmt) (t :vl-returnstmt)) :exec (car x))))
Theorem:
(defthm vl-stmt-kind-possibilities (or (equal (vl-stmt-kind x) :vl-nullstmt) (equal (vl-stmt-kind x) :vl-assignstmt) (equal (vl-stmt-kind x) :vl-deassignstmt) (equal (vl-stmt-kind x) :vl-enablestmt) (equal (vl-stmt-kind x) :vl-disablestmt) (equal (vl-stmt-kind x) :vl-eventtriggerstmt) (equal (vl-stmt-kind x) :vl-casestmt) (equal (vl-stmt-kind x) :vl-ifstmt) (equal (vl-stmt-kind x) :vl-foreverstmt) (equal (vl-stmt-kind x) :vl-waitstmt) (equal (vl-stmt-kind x) :vl-repeatstmt) (equal (vl-stmt-kind x) :vl-whilestmt) (equal (vl-stmt-kind x) :vl-forstmt) (equal (vl-stmt-kind x) :vl-blockstmt) (equal (vl-stmt-kind x) :vl-timingstmt) (equal (vl-stmt-kind x) :vl-returnstmt)) :rule-classes ((:forward-chaining :trigger-terms ((vl-stmt-kind x)))))