Initial printer state.
We pass the printing options and the GCC flag, which must be provided externally.
Initially, no data has been printed, and the indentation level is 0.
Function:
(defun init-pristate (options gcc) (declare (xargs :guard (and (prioptp options) (booleanp gcc)))) (let ((__function__ 'init-pristate)) (declare (ignorable __function__)) (make-pristate :bytes-rev nil :indent-level 0 :options options :gcc gcc)))
Theorem:
(defthm pristatep-of-init-pristate (b* ((pstate (init-pristate options gcc))) (pristatep pstate)) :rule-classes :rewrite)
Theorem:
(defthm init-pristate-of-priopt-fix-options (equal (init-pristate (priopt-fix options) gcc) (init-pristate options gcc)))
Theorem:
(defthm init-pristate-priopt-equiv-congruence-on-options (implies (priopt-equiv options options-equiv) (equal (init-pristate options gcc) (init-pristate options-equiv gcc))) :rule-classes :congruence)
Theorem:
(defthm init-pristate-of-bool-fix-gcc (equal (init-pristate options (bool-fix gcc)) (init-pristate options gcc)))
Theorem:
(defthm init-pristate-iff-congruence-on-gcc (implies (iff gcc gcc-equiv) (equal (init-pristate options gcc) (init-pristate options gcc-equiv))) :rule-classes :congruence)