(vl-find-namedparamvalue name args) → arg
Function:
(defun vl-find-namedparamvalue (name args) (declare (xargs :guard (and (stringp name) (vl-namedparamvaluelist-p args)))) (let ((__function__ 'vl-find-namedparamvalue)) (declare (ignorable __function__)) (b* (((when (atom args)) nil) (arg1 (vl-namedparamvalue-fix (car args))) ((when (equal (vl-namedparamvalue->name arg1) (string-fix name))) arg1)) (vl-find-namedparamvalue name (cdr args)))))
Theorem:
(defthm return-type-of-vl-find-namedparamvalue (b* ((arg (vl-find-namedparamvalue name args))) (equal (vl-namedparamvalue-p arg) (if arg t nil))) :rule-classes :rewrite)
Theorem:
(defthm vl-find-namedparamvalue-when-member-of-vl-namedparamvaluelist->names (implies (and (member name (vl-namedparamvaluelist->names args)) (stringp name)) (vl-find-namedparamvalue name args)))
Theorem:
(defthm vl-find-namedparamvalue-of-str-fix-name (equal (vl-find-namedparamvalue (str-fix name) args) (vl-find-namedparamvalue name args)))
Theorem:
(defthm vl-find-namedparamvalue-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-find-namedparamvalue name args) (vl-find-namedparamvalue name-equiv args))) :rule-classes :congruence)
Theorem:
(defthm vl-find-namedparamvalue-of-vl-namedparamvaluelist-fix-args (equal (vl-find-namedparamvalue name (vl-namedparamvaluelist-fix args)) (vl-find-namedparamvalue name args)))
Theorem:
(defthm vl-find-namedparamvalue-vl-namedparamvaluelist-equiv-congruence-on-args (implies (vl-namedparamvaluelist-equiv args args-equiv) (equal (vl-find-namedparamvalue name args) (vl-find-namedparamvalue name args-equiv))) :rule-classes :congruence)