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