(vl-string/int-alist-to-namedargs x) → args
Function:
(defun vl-string/int-alist-to-namedargs (x) (declare (xargs :guard (vl-string/int-alist-p x))) (let ((__function__ 'vl-string/int-alist-to-namedargs)) (declare (ignorable __function__)) (if (atom x) nil (if (mbt (and (consp (car x)) (stringp (caar x)))) (cons (make-vl-namedparamvalue :name (caar x) :value (make-vl-paramvalue-expr :expr (vl-make-index (cdar x)))) (vl-string/int-alist-to-namedargs (cdr x))) (vl-string/int-alist-to-namedargs (cdr x))))))
Theorem:
(defthm vl-namedparamvaluelist-p-of-vl-string/int-alist-to-namedargs (b* ((args (vl-string/int-alist-to-namedargs x))) (vl-namedparamvaluelist-p args)) :rule-classes :rewrite)
Theorem:
(defthm vl-string/int-alist-to-namedargs-of-vl-string/int-alist-fix-x (equal (vl-string/int-alist-to-namedargs (vl-string/int-alist-fix x)) (vl-string/int-alist-to-namedargs x)))
Theorem:
(defthm vl-string/int-alist-to-namedargs-vl-string/int-alist-equiv-congruence-on-x (implies (vl-string/int-alist-equiv x x-equiv) (equal (vl-string/int-alist-to-namedargs x) (vl-string/int-alist-to-namedargs x-equiv))) :rule-classes :congruence)