(vl-scopestack->path-aux x rchars) → rchars
Function:
(defun vl-scopestack->path-aux (x rchars) (declare (xargs :guard (vl-scopestack-p x))) (let ((__function__ 'vl-scopestack->path-aux)) (declare (ignorable __function__)) (vl-scopestack-case x :null (str::revappend-chars ":null" rchars) :global (str::revappend-chars "$root" rchars) :local (b* ((rchars (vl-scopestack->path-aux x.super rchars)) (rchars (cons #\. rchars)) (name1 (or (vl-scope->name x.top) "<unnamed " (symbol-name (tag x.top)) ">")) (rchars (str::revappend-chars name1 rchars))) rchars))))
Theorem:
(defthm character-listp-of-vl-scopestack->path-aux (implies (character-listp rchars) (b* ((rchars (vl-scopestack->path-aux x rchars))) (character-listp rchars))) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack->path-aux-of-vl-scopestack-fix-x (equal (vl-scopestack->path-aux (vl-scopestack-fix x) rchars) (vl-scopestack->path-aux x rchars)))
Theorem:
(defthm vl-scopestack->path-aux-vl-scopestack-equiv-congruence-on-x (implies (vl-scopestack-equiv x x-equiv) (equal (vl-scopestack->path-aux x rchars) (vl-scopestack->path-aux x-equiv rchars))) :rule-classes :congruence)