Print an integer constant.
Function:
(defun print-iconst (iconst pstate) (declare (xargs :guard (and (iconstp iconst) (pristatep pstate)))) (let ((__function__ 'print-iconst)) (declare (ignorable __function__)) (b* (((iconst iconst) iconst) (pstate (print-dec/oct/hex-const iconst.core pstate)) (pstate (print-isuffix-option iconst.suffix? pstate))) pstate)))
Theorem:
(defthm pristatep-of-print-iconst (b* ((new-pstate (print-iconst iconst pstate))) (pristatep new-pstate)) :rule-classes :rewrite)
Theorem:
(defthm print-iconst-of-iconst-fix-iconst (equal (print-iconst (iconst-fix iconst) pstate) (print-iconst iconst pstate)))
Theorem:
(defthm print-iconst-iconst-equiv-congruence-on-iconst (implies (iconst-equiv iconst iconst-equiv) (equal (print-iconst iconst pstate) (print-iconst iconst-equiv pstate))) :rule-classes :congruence)
Theorem:
(defthm print-iconst-of-pristate-fix-pstate (equal (print-iconst iconst (pristate-fix pstate)) (print-iconst iconst pstate)))
Theorem:
(defthm print-iconst-pristate-equiv-congruence-on-pstate (implies (pristate-equiv pstate pstate-equiv) (equal (print-iconst iconst pstate) (print-iconst iconst pstate-equiv))) :rule-classes :congruence)