(write1-pc pc stat1 feat) → *
Function:
(defun write1-pc (pc stat1 feat) (declare (xargs :stobjs (stat1))) (declare (xargs :non-executable t :guard (and (stat1p stat1) (b* ((stat (stat-from-stat1 stat1))) (and (natp pc) (statp stat) (featp feat) (stat-validp stat feat)))))) (prog2$ (acl2::throw-nonexec-error 'write1-pc (list pc stat1 feat)) (let ((__function__ 'write1-pc)) (declare (ignorable __function__)) (if (mbt (stat1p stat1)) (stat1-from-stat (b* ((stat (stat-from-stat1 stat1))) (let ((change-stat stat) (stat->pc (loghead (feat->xlen feat) (lnfix pc)))) (stat (stat->xregs change-stat) stat->pc (stat->memory change-stat) (stat->error change-stat))))) stat1))))