• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Vl-fundecl
          • Vl-interface
          • Vl-design
          • Vl-assign
          • Vl-modinst
          • Vl-gateinst
          • Vl-taskdecl
          • Vl-portdecl
          • Vl-commentmap
          • Vl-dpiimport
          • Vl-ansi-portdecl
          • Vl-package
          • Vl-paramdecl
          • Vl-dpiexport
          • Vl-class
          • Vl-sort-blockitems-aux
          • Vl-plainarglist->exprs
          • Vl-taskdecllist->names
          • Expressions-and-datatypes
          • Vl-fundecllist->names
          • Vl-udp
          • Vl-port
          • Vl-genelement
          • Vl-clkdecl
          • Vl-parse-temps
          • Vl-bind
          • Vl-namedarg
          • Vl-exprdist
          • Vl-clkassign
          • Vl-range
          • Vl-propport
          • Vl-typedef
          • Vl-gatedelay
          • Vl-dimension
          • Vl-sequence
          • Vl-clkskew
          • Vl-program
          • Vl-gatestrength
          • Vl-property
          • Vl-config
          • Vl-always
          • Vl-import
          • Vl-repeateventcontrol
          • Vl-timeliteral
          • Vl-initial
          • Vl-eventcontrol
          • Vl-final
          • Vl-udpsymbol-p
          • Vl-maybe-clkskew
          • Vl-function-specialization
          • Vl-alias
          • Vl-maybe-nettypename
          • Vl-maybe-gatedelay
          • Vl-letdecl
          • Vl-direction-p
          • Vl-modelement
          • Vl-maybe-timeprecisiondecl
          • Vl-maybe-scopeid
          • Vl-maybe-gatestrength
          • Vl-maybe-direction
          • Vl-maybe-delayoreventcontrol
          • Vl-gclkdecl
          • Vl-fwdtypedef
          • Vl-maybe-udpsymbol-p
          • Vl-maybe-timeunitdecl
          • Vl-maybe-timeliteral
          • Vl-maybe-parse-temps
          • Vl-maybe-cstrength
          • Vl-arguments
          • Vl-maybe-module
          • Vl-maybe-design
          • Vl-covergroup
          • Vl-udpline
          • Vl-timeunitdecl
          • Vl-genvar
          • Vl-defaultdisable
          • Vl-context1
          • Vl-timeprecisiondecl
          • Vl-sort-blockitems
          • Vl-elabtask
          • Vl-udpedge
          • Vl-delaycontrol
          • Vl-context
          • Vl-ctxelement
          • Vl-ctxelement->loc
          • Vl-modelement->loc
          • Statements
            • Vl-stmt
              • Vl-assignstmt
              • Vl-blockstmt
              • Vl-stmt-p
              • Vl-casestmt
              • Vl-forstmt
                • Make-vl-forstmt
                  • Vl-forstmt->initassigns
                  • Vl-forstmt->stepforms
                  • Vl-forstmt->initdecls
                  • Vl-forstmt->test
                  • Vl-forstmt->body
                  • Vl-forstmt->atts
                  • Change-vl-forstmt
                • Vl-foreachstmt
                • Vl-callstmt
                • Vl-stmt-case
                • Vl-waitstmt
                • Vl-repeatstmt
                • Vl-whilestmt
                • Vl-assertstmt
                • Vl-ifstmt
                • Vl-eventtriggerstmt
                • Vl-timingstmt
                • Vl-dostmt
                • Vl-deassignstmt
                • Vl-cassertstmt
                • Vl-nullstmt
                • Vl-stmt-kind
                • Vl-returnstmt
                • Vl-foreverstmt
                • Vl-disablestmt
                • Vl-stmt-equiv
                • Vl-continuestmt
                • Vl-breakstmt
                • Vl-stmt-fix
                • Vl-stmt-count
              • Vl-cassertion
              • Vl-assertion
              • Vl-stmtlist
              • Vl-caselist
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-interface->ifports
            • Vl-syntaxversion
            • Vl-nettypename-p
            • Vl-module->ifports
            • Vl-lifetime-p
            • Vl-paramdecllist
            • Vl-modelementlist->genelements
            • Vl-importlist
            • Vl-typedeflist
            • Vl-gatetype-p
            • Vl-cstrength-p
            • Vl-port->name
            • Vl-genelement->loc
            • Vl-delayoreventcontrol
            • Vl-udpentry-p
            • Vl-portdecllist
            • Vl-elabtask->loc
            • Property-expressions
            • Vl-taskdecllist
            • Vl-port->loc
            • Vl-fundecllist
            • Vl-sequencelist
            • Vl-propertylist
            • Vl-portlist
            • Vl-dpiimportlist
            • Vl-dpiexportlist
            • Vl-classlist
            • Vl-arguments->args
            • Vl-alwaystype-p
            • Vl-modinstlist
            • Vl-importpart-p
            • Vl-importpart-fix
            • Vl-bindlist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-gclkdecllist
            • Vl-function-specialization-map
            • Vl-finallist
            • Vl-elabtasklist
            • Vl-defaultdisablelist
            • Vl-clkdecllist
            • Vl-cassertionlist
            • Vl-blockstmt-p
            • Vl-assignlist
            • Vl-assertionlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-udptable
            • Vl-udplist
            • Vl-udpentrylist
            • Vl-propportlist
            • Vl-programlist
            • Vl-packagelist
            • Vl-namedarglist
            • Vl-modulelist
            • Vl-modportlist
            • Vl-modport-portlist
            • Vl-letdecllist
            • Vl-interfacelist
            • Vl-gateinstlist
            • Vl-fwdtypedeflist
            • Vl-covergrouplist
            • Vl-configlist
            • Vl-clkassignlist
            • Vl-blockitemlist
            • Vl-ansi-portdecllist
            • Vl-regularportlist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-interfaceportlist
            • Vl-casekey-p
            • Sv::maybe-4veclist
          • Loader
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-forstmt

    Make-vl-forstmt

    Basic constructor macro for vl-forstmt structures.

    Syntax
    (make-vl-forstmt [:test <test>] 
                     [:stepforms <stepforms>] 
                     [:body <body>] 
                     [:initdecls <initdecls>] 
                     [:initassigns <initassigns>] 
                     [:atts <atts>]) 
    

    This is the usual way to construct vl-forstmt structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-forstmt structure from scratch. See also change-vl-forstmt, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-forstmt

    (defmacro make-vl-forstmt (&rest args)
      (std::make-aggregate 'vl-forstmt
                           args
                           '((:test)
                             (:stepforms)
                             (:body)
                             (:initdecls)
                             (:initassigns)
                             (:atts))
                           'make-vl-forstmt
                           nil))

    Function: vl-forstmt

    (defun vl-forstmt (test stepforms
                            body initdecls initassigns atts)
     (declare (xargs :guard (and (vl-expr-p test)
                                 (vl-stmtlist-p stepforms)
                                 (vl-stmt-p body)
                                 (vl-vardecllist-p initdecls)
                                 (vl-stmtlist-p initassigns)
                                 (vl-atts-p atts))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-forstmt))
      (declare (ignorable __function__))
      (b* ((test (mbe :logic (vl-expr-fix test)
                      :exec test))
           (stepforms (mbe :logic (vl-stmtlist-fix stepforms)
                           :exec stepforms))
           (body (mbe :logic (vl-stmt-fix body)
                      :exec body))
           (initdecls (mbe :logic (vl-vardecllist-fix initdecls)
                           :exec initdecls))
           (initassigns (mbe :logic (vl-stmtlist-fix initassigns)
                             :exec initassigns))
           (atts (mbe :logic (vl-atts-fix atts)
                      :exec atts)))
       (cons
            :vl-forstmt
            (std::prod-cons
                 (std::prod-cons test (std::prod-cons stepforms body))
                 (std::prod-cons initdecls
                                 (std::prod-cons initassigns atts)))))))