Build a new parse-state whose alists are fast.
(vl-parsestate-restore pstate) → new-pstate
Function:
(defun vl-parsestate-restore (pstate) (declare (xargs :guard (vl-parsestate-p pstate))) (let ((__function__ 'vl-parsestate-restore)) (declare (ignorable __function__)) (b* (((vl-parsestate pstate) pstate)) (change-vl-parsestate pstate :usertypes (make-fast-alist pstate.usertypes)))))
Theorem:
(defthm vl-parsestate-p-of-vl-parsestate-restore (b* ((new-pstate (vl-parsestate-restore pstate))) (vl-parsestate-p new-pstate)) :rule-classes :rewrite)