(vl-pp-clkdecl x &key (ps 'ps)) → ps
Function:
(defun vl-pp-clkdecl-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-clkdecl-p x))) (let ((__function__ 'vl-pp-clkdecl)) (declare (ignorable __function__)) (b* (((vl-clkdecl x))) (vl-ps-seq (vl-progindent) (if x.atts (vl-pp-atts x.atts) ps) (vl-print " ") (vl-ps-span "vl_key" (if x.defaultp (vl-print "default ") ps) (vl-print "clocking ")) (if x.name (vl-ps-span "vl_id" (vl-print-str (vl-maybe-escape-identifier x.name)) (vl-print " ")) ps) (vl-pp-evatomlist x.event) (vl-println ";") (vl-progindent-block (if x.iskew (vl-ps-seq (vl-progindent) (vl-print " ") (vl-ps-span "vl_key" (vl-print "input ")) (vl-pp-clkskew x.iskew) (vl-println ";")) ps) (if x.oskew (vl-ps-seq (vl-progindent) (vl-print " ") (vl-ps-span "vl_key" (vl-print "output ")) (vl-pp-clkskew x.oskew) (vl-println ";")) ps) (vl-pp-clkassignlist x.clkassigns) (vl-pp-propertylist x.properties) (vl-pp-sequencelist x.sequences)) (vl-ps-span "vl_key" (vl-println "endclocking"))))))
Theorem:
(defthm vl-pp-clkdecl-fn-of-vl-clkdecl-fix-x (equal (vl-pp-clkdecl-fn (vl-clkdecl-fix x) ps) (vl-pp-clkdecl-fn x ps)))
Theorem:
(defthm vl-pp-clkdecl-fn-vl-clkdecl-equiv-congruence-on-x (implies (vl-clkdecl-equiv x x-equiv) (equal (vl-pp-clkdecl-fn x ps) (vl-pp-clkdecl-fn x-equiv ps))) :rule-classes :congruence)