(vl-pp-plainarg x &key (ps 'ps)) → ps
Function:
(defun vl-pp-plainarg-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-plainarg-p x))) (let ((__function__ 'vl-pp-plainarg)) (declare (ignorable __function__)) (b* (((vl-plainarg x) x) (htmlp (vl-ps->htmlp)) (name-hack-p (if (and htmlp x.portname) t nil))) (vl-ps-seq (if htmlp (vl-print-markup (case x.dir (:vl-input "<span class=\"vl_input_arg\">") (:vl-output "<span class=\"vl_output_arg\">") (:vl-inout "<span class=\"vl_inout_arg\">") (otherwise "<span class=\"vl_unknown_arg\">"))) ps) (if x.atts (vl-pp-atts x.atts) ps) (if name-hack-p (vl-ps-seq (vl-print ".") (vl-print-str x.portname) (vl-print "(")) ps) (if x.expr (vl-pp-expr x.expr) ps) (if name-hack-p (vl-print ")") ps) (if htmlp (vl-print-markup "</span>") ps)))))
Theorem:
(defthm vl-pp-plainarg-fn-of-vl-plainarg-fix-x (equal (vl-pp-plainarg-fn (vl-plainarg-fix x) ps) (vl-pp-plainarg-fn x ps)))
Theorem:
(defthm vl-pp-plainarg-fn-vl-plainarg-equiv-congruence-on-x (implies (vl-plainarg-equiv x x-equiv) (equal (vl-pp-plainarg-fn x ps) (vl-pp-plainarg-fn x-equiv ps))) :rule-classes :congruence)