• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
            • Vl-expr-expand-function-calls
            • Vl-expand-function-call
            • Vl-module-expand-functions
            • Vl-modulelist-expand-functions
            • Vl-check-bad-funcalls
            • Vl-funtemplate
            • Vl-funbody-to-assignments
            • Vl-assignlist->rhses
            • Vl-fundecl-expand-params
            • Vl-fun-stmt-okp
            • Vl-fundecllist-expand-params
            • Vl-remove-fake-function-vardecls
            • Vl-design-expand-functions
            • Delayredux
            • Unparameterization
            • Caseelim
            • Split
            • Selresolve
            • Weirdint-elim
            • Vl-delta
            • Replicate-insts
            • Rangeresolve
            • Propagate
            • Clean-selects
            • Clean-params
            • Blankargs
            • Inline-mods
            • Expr-simp
            • Trunc
            • Always-top
            • Gatesplit
            • Gate-elim
            • Expression-optimization
            • Elim-supplies
            • Wildelim
            • Drop-blankports
            • Clean-warnings
            • Addinstnames
            • Custom-transform-hooks
            • Annotate
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Expand-functions

    Vl-design-expand-functions

    Top-level expand-functions transform.

    Signature
    (vl-design-expand-functions x) → new-x
    Arguments
    x — Guard (vl-design-p x).
    Returns
    new-x — Type (vl-design-p new-x).

    Definitions and Theorems

    Function: vl-design-expand-functions

    (defun vl-design-expand-functions (x)
     (declare (xargs :guard (vl-design-p x)))
     (let ((__function__ 'vl-design-expand-functions))
      (declare (ignorable __function__))
      (b* (((vl-design x) x)
           (ss (vl-scopestack-init x))
           (res (change-vl-design
                     x
                     :mods (vl-modulelist-expand-functions x.mods ss))))
        (vl-scopestacks-free)
        res)))

    Theorem: vl-design-p-of-vl-design-expand-functions

    (defthm vl-design-p-of-vl-design-expand-functions
      (b* ((new-x (vl-design-expand-functions x)))
        (vl-design-p new-x))
      :rule-classes :rewrite)