Main loop for finding the best AIG.
(aig-list-best-aux1 x best best-ands map) → new-best
Function:
(defun aig-list-best-aux1 (x best best-ands map) (declare (xargs :guard (natp best-ands))) (let ((__function__ 'aig-list-best-aux1)) (declare (ignorable __function__)) (b* (((when (atom x)) best) (ands (aig-count-andnode-labels (car x) map)) ((when (or (< ands best-ands) (and (= best-ands ands) (< (aig-count-labels (car x) map) (aig-count-labels best map))))) (aig-list-best-aux1 (cdr x) (car x) ands map))) (aig-list-best-aux1 (cdr x) best best-ands map))))