• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
          • Genblob
          • Expr-tools
          • Extract-vl-types
          • Hierarchy
            • Vl-design-toplevel
            • Vl-remove-unnecessary-elements
            • Vl-necessary-elements-transitive
            • Vl-interfacelist-everinstanced
            • Vl-dependent-elements-transitive
            • Vl-necessary-elements-direct
            • Vl-modulelist-everinstanced
              • Vl-module->flatten-modinsts
                • Vl-modulelist-everinstanced-nrev
              • Vl-dependent-elements-direct
              • Vl-design-deporder-modules
              • Vl-design-check-complete
              • Vl-design-upgraph
              • Immdeps
              • Vl-design-downgraph
              • Vl-collect-dependencies
              • Vl-hierarchy-free
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-modulelist-everinstanced

    Vl-module->flatten-modinsts

    Gather modinsts from the module, including its generate blocks and bind constructs (which don't even belong to it) -- rarely sensible!

    Signature
    (vl-module->flatten-modinsts x) → modinsts
    Arguments
    x — Guard (vl-module-p x).
    Returns
    modinsts — Type (vl-modinstlist-p modinsts).

    Definitions and Theorems

    Function: vl-module->flatten-modinsts

    (defun vl-module->flatten-modinsts (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-module->flatten-modinsts))
        (declare (ignorable __function__))
        (b* ((genblob (vl-module->genblob x)))
          (vl-genblob->flatten-modinsts genblob nil))))

    Theorem: vl-modinstlist-p-of-vl-module->flatten-modinsts

    (defthm vl-modinstlist-p-of-vl-module->flatten-modinsts
      (b* ((modinsts (vl-module->flatten-modinsts x)))
        (vl-modinstlist-p modinsts))
      :rule-classes :rewrite)

    Theorem: vl-module->flatten-modinsts-of-vl-module-fix-x

    (defthm vl-module->flatten-modinsts-of-vl-module-fix-x
      (equal (vl-module->flatten-modinsts (vl-module-fix x))
             (vl-module->flatten-modinsts x)))

    Theorem: vl-module->flatten-modinsts-vl-module-equiv-congruence-on-x

    (defthm vl-module->flatten-modinsts-vl-module-equiv-congruence-on-x
      (implies (vl-module-equiv x x-equiv)
               (equal (vl-module->flatten-modinsts x)
                      (vl-module->flatten-modinsts x-equiv)))
      :rule-classes :congruence)