Return the addresses of each valid label in
(get-label-addresses labels elf) → addrs
Function:
(defun get-label-addresses (labels elf) (declare (xargs :stobjs (elf))) (declare (xargs :guard (string-listp labels))) (let ((__function__ 'get-label-addresses)) (declare (ignorable __function__)) (if (atom labels) nil (cons (get-label-address (car labels) elf) (get-label-addresses (cdr labels) elf)))))
Theorem:
(defthm true-listp-of-get-label-addresses (implies (and (elfp elf) (string-listp labels)) (b* ((addrs (get-label-addresses labels elf))) (true-listp addrs))) :rule-classes :rewrite)