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