(vl-add-typo-candidate ss varname typos) → new-typos
Function:
(defun vl-add-typo-candidate (ss varname typos) (declare (xargs :guard (and (vl-scopestack-p ss) (stringp varname) (vl-typocandidates-p typos)))) (let ((__function__ 'vl-add-typo-candidate)) (declare (ignorable __function__)) (b* ((ss (vl-scopestack-fix ss)) (varname (string-fix varname)) (typos (vl-typocandidates-fix typos)) (old (cdr (hons-get ss typos)))) (hons-acons ss (cons varname old) typos))))
Theorem:
(defthm vl-typocandidates-p-of-vl-add-typo-candidate (b* ((new-typos (vl-add-typo-candidate ss varname typos))) (vl-typocandidates-p new-typos)) :rule-classes :rewrite)
Theorem:
(defthm vl-add-typo-candidate-of-vl-scopestack-fix-ss (equal (vl-add-typo-candidate (vl-scopestack-fix ss) varname typos) (vl-add-typo-candidate ss varname typos)))
Theorem:
(defthm vl-add-typo-candidate-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-add-typo-candidate ss varname typos) (vl-add-typo-candidate ss-equiv varname typos))) :rule-classes :congruence)
Theorem:
(defthm vl-add-typo-candidate-of-str-fix-varname (equal (vl-add-typo-candidate ss (str-fix varname) typos) (vl-add-typo-candidate ss varname typos)))
Theorem:
(defthm vl-add-typo-candidate-streqv-congruence-on-varname (implies (streqv varname varname-equiv) (equal (vl-add-typo-candidate ss varname typos) (vl-add-typo-candidate ss varname-equiv typos))) :rule-classes :congruence)
Theorem:
(defthm vl-add-typo-candidate-of-vl-typocandidates-fix-typos (equal (vl-add-typo-candidate ss varname (vl-typocandidates-fix typos)) (vl-add-typo-candidate ss varname typos)))
Theorem:
(defthm vl-add-typo-candidate-vl-typocandidates-equiv-congruence-on-typos (implies (vl-typocandidates-equiv typos typos-equiv) (equal (vl-add-typo-candidate ss varname typos) (vl-add-typo-candidate ss varname typos-equiv))) :rule-classes :congruence)