Goofy operation to name the arguments as we convert gate instances.
(vl-add-portnames-to-plainargs plainargs ports) → new-args
Function:
(defun vl-add-portnames-to-plainargs (plainargs ports) (declare (xargs :guard (and (vl-plainarglist-p plainargs) (vl-portlist-p ports)))) (declare (xargs :guard (same-lengthp plainargs ports))) (let ((__function__ 'vl-add-portnames-to-plainargs)) (declare (ignorable __function__)) (if (atom plainargs) nil (cons (change-vl-plainarg (car plainargs) :portname (vl-port->name (car ports))) (vl-add-portnames-to-plainargs (cdr plainargs) (cdr ports))))))
Theorem:
(defthm vl-plainarglist-p-of-vl-add-portnames-to-plainargs (implies (and (force (vl-plainarglist-p plainargs)) (force (vl-portlist-p ports)) (force (same-lengthp plainargs ports))) (b* ((new-args (vl-add-portnames-to-plainargs plainargs ports))) (vl-plainarglist-p new-args))) :rule-classes :rewrite)