Get the kind (tag) of a svstmt structure.
(svstmt-kind x) → kind
Function:
(defun svstmt-kind$inline (x) (declare (xargs :guard (svstmt-p x))) (let ((__function__ 'svstmt-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :assign)) :assign) ((eq (car x) :if) :if) ((eq (car x) :xcond) :xcond) ((eq (car x) :while) :while) ((eq (car x) :constraints) :constraints) ((eq (car x) :scope) :scope) (t :jump)) :exec (car x))))
Theorem:
(defthm svstmt-kind-possibilities (or (equal (svstmt-kind x) :assign) (equal (svstmt-kind x) :if) (equal (svstmt-kind x) :xcond) (equal (svstmt-kind x) :while) (equal (svstmt-kind x) :constraints) (equal (svstmt-kind x) :scope) (equal (svstmt-kind x) :jump)) :rule-classes ((:forward-chaining :trigger-terms ((svstmt-kind x)))))