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