(create-physical-address-list count addr) → *
Given a physical address
Function:
(defun create-physical-address-list (count addr) (declare (xargs :guard (and (natp count) (physical-address-p addr) (physical-address-p (+ addr count))))) (let ((__function__ 'create-physical-address-list)) (declare (ignorable __function__)) (if (or (zp count) (not (physical-address-p addr))) nil (cons addr (create-physical-address-list (1- count) (1+ addr))))))
Theorem:
(defthm physical-address-listp-create-physical-address-list (physical-address-listp (create-physical-address-list count addr)) :rule-classes (:rewrite :type-prescription))