Used to get a context for error messages.
(vl-safe-previous-n n acc) → prev-n
Function:
(defun vl-safe-previous-n (n acc) (declare (xargs :guard (natp n))) (let ((__function__ 'vl-safe-previous-n)) (declare (ignorable __function__)) (reverse (first-n (min (nfix n) (len acc)) acc))))
Theorem:
(defthm vl-echarlist-p-of-vl-safe-previous-n (implies (vl-echarlist-p acc) (b* ((prev-n (vl-safe-previous-n n acc))) (vl-echarlist-p prev-n))) :rule-classes :rewrite)