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