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