(vl-pgenstr->val prefix str) retrieves
Function:
(defun vl-pgenstr->val (prefix str) (declare (xargs :guard (and (stringp prefix) (stringp str)))) (declare (xargs :guard (vl-pgenstr-p prefix str))) (let ((__function__ 'vl-pgenstr->val)) (declare (ignorable __function__)) (b* (((mv val ?len) (str::parse-nat-from-string str 0 0 (+ 1 (length prefix)) (length str)))) (lnfix val))))
Theorem:
(defthm vl-pgenstr->val-of-vl-pgenstr (implies (and (force (stringp prefix)) (force (natp n))) (equal (vl-pgenstr->val prefix (vl-pgenstr prefix n)) n)))