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