(vl-pp-constint x &key (ps 'ps)) → ps
Function:
(defun vl-pp-constint-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-value-p x))) (declare (xargs :guard (vl-value-case x :vl-constint))) (let ((__function__ 'vl-pp-constint)) (declare (ignorable __function__)) (b* (((vl-constint x) x) ((when (and (eq x.origsign :vl-signed) (eql x.origwidth 32))) (vl-ps-span "vl_int" (vl-print-nat (acl2::logext 32 x.value))))) (vl-ps-span "vl_int" (vl-print-nat x.origwidth) (if (eq x.origsign :vl-signed) (vl-ps-seq (vl-print-str "'sd") (vl-print-nat (acl2::logext x.origwidth x.value))) (vl-ps-seq (vl-print-str "'d") (vl-print-nat x.value)))))))
Theorem:
(defthm vl-pp-constint-fn-of-vl-value-fix-x (equal (vl-pp-constint-fn (vl-value-fix x) ps) (vl-pp-constint-fn x ps)))
Theorem:
(defthm vl-pp-constint-fn-vl-value-equiv-congruence-on-x (implies (vl-value-equiv x x-equiv) (equal (vl-pp-constint-fn x ps) (vl-pp-constint-fn x-equiv ps))) :rule-classes :congruence)