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