(vl-udp-vardecl-from-portdecl x) → vardecl
Function:
(defun vl-udp-vardecl-from-portdecl (x) (declare (xargs :guard (vl-portdecl-p x))) (let ((__function__ 'vl-udp-vardecl-from-portdecl)) (declare (ignorable __function__)) (b* (((vl-portdecl x))) (make-vl-vardecl :name x.name :type x.type :nettype :vl-wire :atts (cons (cons "VL_PORT_IMPLICIT" nil) x.atts) :loc x.loc))))
Theorem:
(defthm vl-vardecl-p-of-vl-udp-vardecl-from-portdecl (b* ((vardecl (vl-udp-vardecl-from-portdecl x))) (vl-vardecl-p vardecl)) :rule-classes :rewrite)