Returns the name of an vl-emodwire-p, excluding the index, as a string.
For instance, the basename of
Function:
(defun vl-emodwire->basename (x) (declare (xargs :guard (vl-emodwire-p x))) (b* ((name (symbol-name x)) (open (position #\[ name))) (vl-emodwire-decode (if open (subseq name 0 open) name))))
Theorem:
(defthm stringp-of-vl-emodwire->basename (stringp (vl-emodwire->basename x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-emodwire->basename-of-vl-emodwire (implies (and (force (stringp basename)) (force (maybe-natp index))) (equal (vl-emodwire->basename (vl-emodwire basename index)) basename)))