(vl-pp-gatestrength x &key (ps 'ps)) → ps
Function:
(defun vl-pp-gatestrength-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-gatestrength-p x))) (let ((__function__ 'vl-pp-gatestrength)) (declare (ignorable __function__)) (b* (((vl-gatestrength x) x)) (vl-ps-seq (vl-print "(") (vl-ps-span "vl_key" (vl-print-str (case x.zero (:vl-supply "supply0") (:vl-strong "strong0") (:vl-pull "pull0") (:vl-weak "weak0") (:vl-highz "highz0")))) (vl-print ", ") (vl-ps-span "vl_key" (vl-print-str (case x.one (:vl-supply "supply1") (:vl-strong "strong1") (:vl-pull "pull1") (:vl-weak "weak1") (:vl-highz "highz1")))) (vl-println? ")")))))
Theorem:
(defthm vl-pp-gatestrength-fn-of-vl-gatestrength-fix-x (equal (vl-pp-gatestrength-fn (vl-gatestrength-fix x) ps) (vl-pp-gatestrength-fn x ps)))
Theorem:
(defthm vl-pp-gatestrength-fn-vl-gatestrength-equiv-congruence-on-x (implies (vl-gatestrength-equiv x x-equiv) (equal (vl-pp-gatestrength-fn x ps) (vl-pp-gatestrength-fn x-equiv ps))) :rule-classes :congruence)