(vl-vardecl-ctxexprs mod x) → alist
Function:
(defun vl-vardecl-ctxexprs (mod x) (declare (xargs :guard (and (stringp mod) (vl-vardecl-p x)))) (let ((__function__ 'vl-vardecl-ctxexprs)) (declare (ignorable __function__)) (let ((x (vl-vardecl-fix x))) (vl-make-exprctxalist (vl-vardecl-allexprs x) (make-vl-context1 :mod mod :elem x)))))
Theorem:
(defthm vl-exprctxalist-p-of-vl-vardecl-ctxexprs (b* ((alist (vl-vardecl-ctxexprs mod x))) (vl-exprctxalist-p alist)) :rule-classes :rewrite)
Theorem:
(defthm vl-vardecl-ctxexprs-of-str-fix-mod (equal (vl-vardecl-ctxexprs (str-fix mod) x) (vl-vardecl-ctxexprs mod x)))
Theorem:
(defthm vl-vardecl-ctxexprs-streqv-congruence-on-mod (implies (streqv mod mod-equiv) (equal (vl-vardecl-ctxexprs mod x) (vl-vardecl-ctxexprs mod-equiv x))) :rule-classes :congruence)
Theorem:
(defthm vl-vardecl-ctxexprs-of-vl-vardecl-fix-x (equal (vl-vardecl-ctxexprs mod (vl-vardecl-fix x)) (vl-vardecl-ctxexprs mod x)))
Theorem:
(defthm vl-vardecl-ctxexprs-vl-vardecl-equiv-congruence-on-x (implies (vl-vardecl-equiv x x-equiv) (equal (vl-vardecl-ctxexprs mod x) (vl-vardecl-ctxexprs mod x-equiv))) :rule-classes :congruence)