Refine read-pc to use the stobj states.
Function:
(defun read1-pc (stat feat) (declare (xargs :non-executable t)) (declare (xargs :guard (non-exec (and (stat1p stat) (statp (stat-from-stat1 stat)) (featp feat) (stat-validp (stat-from-stat1 stat) feat))))) (prog2$ (acl2::throw-nonexec-error 'read1-pc (list stat feat)) (if (acl2::mbt$ (stat1p stat)) (unsigned-byte-fix (feat->xlen feat) (stat->pc (stat-from-stat1 stat))) 0)))
Theorem:
(defthm read1-pc-to-read-pc (implies (stat1p stat) (equal (read1-pc stat feat) (read-pc (stat-from-stat1 stat) feat))) :rule-classes :rewrite)
Theorem:
(defthm read-pc-to-read1-pc (implies (statp stat) (equal (read-pc stat feat) (read1-pc (stat1-from-stat stat) feat))) :rule-classes :rewrite)