(vl-pp-ansi-portdecl x &key (ps 'ps)) → ps
Function:
(defun vl-pp-ansi-portdecl-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-ansi-portdecl-p x))) (let ((__function__ 'vl-pp-ansi-portdecl)) (declare (ignorable __function__)) (b* (((vl-ansi-portdecl x))) (vl-ps-seq (vl-progindent) (if x.atts (vl-ps-seq (vl-pp-atts x.atts) (vl-print " ")) ps) (if x.dir (vl-ps-seq (vl-ps-span "vl_key" (vl-println? (vl-direction-string x.dir))) (vl-print " ")) ps) (if x.nettype (vl-ps-seq (vl-ps-span "vl_key" (vl-println? (vl-nettypename-string x.nettype))) (vl-print " ")) ps) (if x.typename (vl-ps-seq (vl-print-str x.typename) (vl-print " ")) ps) (if x.type (vl-ps-seq (vl-pp-datatype x.type) (vl-print " ")) ps) (if x.signedness (if (eq x.signedness :vl-signed) (vl-print "signed ") (vl-print "unsigned ")) ps) (if x.pdims (vl-ps-seq (vl-pp-dimensionlist x.pdims) (vl-print " ")) ps) (vl-print-wirename x.name) (if x.udims (vl-ps-seq (vl-print " ") (vl-pp-dimensionlist x.pdims)) ps)))))
Theorem:
(defthm vl-pp-ansi-portdecl-fn-of-vl-ansi-portdecl-fix-x (equal (vl-pp-ansi-portdecl-fn (vl-ansi-portdecl-fix x) ps) (vl-pp-ansi-portdecl-fn x ps)))
Theorem:
(defthm vl-pp-ansi-portdecl-fn-vl-ansi-portdecl-equiv-congruence-on-x (implies (vl-ansi-portdecl-equiv x x-equiv) (equal (vl-pp-ansi-portdecl-fn x ps) (vl-pp-ansi-portdecl-fn x-equiv ps))) :rule-classes :congruence)