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