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