(vl-pp-modport-port x &key (ps 'ps)) → ps
Function:
(defun vl-pp-modport-port-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-modport-port-p x))) (let ((__function__ 'vl-pp-modport-port)) (declare (ignorable __function__)) (b* (((vl-modport-port x))) (vl-ps-seq (if x.atts (vl-pp-atts x.atts) ps) (vl-ps-span "vl_key" (vl-print-str (vl-direction-string x.dir))) (vl-print " ") (if (and x.expr (vl-idexpr-p x.expr) (equal (vl-idexpr->name x.expr) x.name)) (vl-print-wirename x.name) (vl-ps-seq (vl-print ".") (vl-print-wirename x.name) (vl-print "(") (if x.expr (vl-pp-expr x.expr) ps) (vl-print ")")))))))
Theorem:
(defthm vl-pp-modport-port-fn-of-vl-modport-port-fix-x (equal (vl-pp-modport-port-fn (vl-modport-port-fix x) ps) (vl-pp-modport-port-fn x ps)))
Theorem:
(defthm vl-pp-modport-port-fn-vl-modport-port-equiv-congruence-on-x (implies (vl-modport-port-equiv x x-equiv) (equal (vl-pp-modport-port-fn x ps) (vl-pp-modport-port-fn x-equiv ps))) :rule-classes :congruence)