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