Basic constructor macro for address+pos structures.
(make-address+pos [:address <address>] [:pos <pos>])
This is the usual way to construct address+pos structures. It simply conses together a structure with the specified fields.
This macro generates a new address+pos structure from scratch. See also change-address+pos, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-address+pos (&rest args) (std::make-aggregate 'address+pos args '((:address) (:pos)) 'make-address+pos nil))
Function:
(defun address+pos (address pos) (declare (xargs :guard (and (addressp address) (posp pos)))) (declare (xargs :guard t)) (let ((__function__ 'address+pos)) (declare (ignorable __function__)) (b* ((address (mbe :logic (address-fix address) :exec address)) (pos (mbe :logic (pos-fix pos) :exec pos))) (list (cons 'address address) (cons 'pos pos)))))