Look up the text of an operator.
(vl-op-text x) → text
Function:
(defun vl-op-text (x) (declare (xargs :guard (vl-op-p x))) (let ((__function__ 'vl-op-text)) (declare (ignorable __function__)) (b* ((op (vl-op-fix x)) (info (cdr (assoc op (vl-ops-table))))) (vl-opinfo->text info))))
Theorem:
(defthm maybe-stringp-of-vl-op-text (b* ((text (vl-op-text x))) (maybe-stringp text)) :rule-classes :type-prescription)
Theorem:
(defthm vl-op-text-of-vl-op-fix-x (equal (vl-op-text (vl-op-fix x)) (vl-op-text x)))
Theorem:
(defthm vl-op-text-vl-op-equiv-congruence-on-x (implies (vl-op-equiv x x-equiv) (equal (vl-op-text x) (vl-op-text x-equiv))) :rule-classes :congruence)