Print a storage class specifier.
(print-stor-spec stor-spec pstate) → new-pstate
Function:
(defun print-stor-spec (stor-spec pstate) (declare (xargs :guard (and (stor-specp stor-spec) (pristatep pstate)))) (let ((__function__ 'print-stor-spec)) (declare (ignorable __function__)) (stor-spec-case stor-spec :typedef (print-astring "typedef" pstate) :extern (print-astring "extern" pstate) :static (print-astring "static" pstate) :threadloc (print-astring "_Thread_local" pstate) :auto (print-astring "auto" pstate) :register (print-astring "register" pstate))))
Theorem:
(defthm pristatep-of-print-stor-spec (b* ((new-pstate (print-stor-spec stor-spec pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm print-stor-spec-of-stor-spec-fix-stor-spec (equal (print-stor-spec (stor-spec-fix stor-spec) pstate) (print-stor-spec stor-spec pstate)))
Theorem:
(defthm print-stor-spec-stor-spec-equiv-congruence-on-stor-spec (implies (stor-spec-equiv stor-spec stor-spec-equiv) (equal (print-stor-spec stor-spec pstate) (print-stor-spec stor-spec-equiv pstate))) :rule-classes :congruence)
Theorem:
(defthm print-stor-spec-of-pristate-fix-pstate (equal (print-stor-spec stor-spec (pristate-fix pstate)) (print-stor-spec stor-spec pstate)))
Theorem:
(defthm print-stor-spec-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-stor-spec stor-spec pstate) (print-stor-spec stor-spec pstate-equiv))) :rule-classes :congruence)