(vl-pp-dpiimport x &key (ps 'ps)) → ps
Function:
(defun vl-pp-dpiimport-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-dpiimport-p x))) (let ((__function__ 'vl-pp-dpiimport)) (declare (ignorable __function__)) (b* (((vl-dpiimport x))) (vl-ps-seq (vl-progindent) (if x.atts (vl-pp-atts x.atts) ps) (vl-ps-span "vl_key" (vl-print "import ")) (vl-ps-span "vl_str" (vl-print-str (vl-dpispec->string x.spec))) (vl-print " ") (if x.prop (vl-ps-span "vl_key" (vl-print-str (vl-dpiprop->string x.prop)) (vl-print " ")) ps) (if (not (equal x.c-name x.name)) (vl-ps-seq (vl-ps-span "vl_id" (vl-print-str x.c-name)) (vl-print " = ")) ps) (if x.rettype (vl-ps-seq (vl-ps-span "vl_key" (vl-print "function ")) (vl-pp-datatype x.rettype)) (vl-ps-span "vl_key" (vl-print "task "))) (vl-ps-span "vl_id" (vl-print-str (vl-maybe-escape-identifier x.name)) (vl-print " ")) (vl-print "(") (if x.portdecls (vl-ps-span "vl_cmt" (vl-print " /* bozo print ports */ ")) ps) (vl-print ")") (vl-println ";")))))
Theorem:
(defthm vl-pp-dpiimport-fn-of-vl-dpiimport-fix-x (equal (vl-pp-dpiimport-fn (vl-dpiimport-fix x) ps) (vl-pp-dpiimport-fn x ps)))
Theorem:
(defthm vl-pp-dpiimport-fn-vl-dpiimport-equiv-congruence-on-x (implies (vl-dpiimport-equiv x x-equiv) (equal (vl-pp-dpiimport-fn x ps) (vl-pp-dpiimport-fn x-equiv ps))) :rule-classes :congruence)