(tops-from-transform-outcomes outcomes) → l
Function:
(defun tops-from-transform-outcomes (outcomes) (declare (xargs :guard (outcome-listp outcomes))) (let ((__function__ 'tops-from-transform-outcomes)) (declare (ignorable __function__)) (if (endp outcomes) nil (let ((r (tops-from-transform-outcomes (cdr outcomes)))) (if (equal (outcome-kind (car outcomes)) ':transformation-success) (append (outcome-transformation-success->toplevels (car outcomes)) r) r)))))
Theorem:
(defthm toplevel-listp-of-tops-from-transform-outcomes (b* ((l (tops-from-transform-outcomes outcomes))) (toplevel-listp l)) :rule-classes :rewrite)