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