Get the kind (tag) of a version structure.
(version-kind x) → kind
Function:
(defun version-kind$inline (x) (declare (xargs :guard (versionp x))) (mbe :logic (cond ((or (atom x) (eq (car x) :c17)) :c17) ((eq (car x) :c23) :c23) ((eq (car x) :c17+gcc) :c17+gcc) (t :c23+gcc)) :exec (car x)))
Theorem:
(defthm version-kind-possibilities (or (equal (version-kind x) :c17) (equal (version-kind x) :c23) (equal (version-kind x) :c17+gcc) (equal (version-kind x) :c23+gcc)) :rule-classes ((:forward-chaining :trigger-terms ((version-kind x)))))