Get the kind (tag) of a exec-outcome structure.
(exec-outcome-kind x) → kind
Function:
(defun exec-outcome-kind$inline (x) (declare (xargs :guard (exec-outcome-p x))) (let ((__function__ 'exec-outcome-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :terminating)) :terminating) ((eq (car x) :error) :error) (t :nonterminating)) :exec (car x))))
Theorem:
(defthm exec-outcome-kind-possibilities (or (equal (exec-outcome-kind x) :terminating) (equal (exec-outcome-kind x) :error) (equal (exec-outcome-kind x) :nonterminating)) :rule-classes ((:forward-chaining :trigger-terms ((exec-outcome-kind x)))))