Check if an optional token is a function specifier.
(token-function-specifier-p token?) → yes/no
All function specifiers consist of single keywords.
We also compare the token against the GCC variants
Function:
(defun token-function-specifier-p (token?) (declare (xargs :guard (token-optionp token?))) (let ((__function__ 'token-function-specifier-p)) (declare (ignorable __function__)) (or (token-keywordp token? "inline") (token-keywordp token? "__inline") (token-keywordp token? "__inline__") (token-keywordp token? "_Noreturn"))))
Theorem:
(defthm booleanp-of-token-function-specifier-p (b* ((yes/no (token-function-specifier-p token?))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm non-nil-when-token-function-specifier-p (implies (token-function-specifier-p token?) token?) :rule-classes :compound-recognizer)