• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Vl-find-file
          • Scope-of-defines
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
          • Vl-load
          • Vl-load-description
          • Vl-preprocess-debug
          • Vl-descriptions-left-to-load
          • Inject-warnings
          • Vl-read-file-report-gather
          • Vl-write-preprocessor-debug-file
          • Vl-load-descriptions
          • Vl-load-files
          • Translate-off
          • Vl-load-read-file-hook
          • Vl-loadstate-pad
          • Vl-read-file-report
          • Vl-load-summary
          • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Loader

    Vl-collect-modules-from-descriptions

    Signature
    (vl-collect-modules-from-descriptions x) → mods
    Arguments
    x — Guard (vl-descriptionlist-p x).
    Returns
    mods — Type (vl-modulelist-p mods).

    Definitions and Theorems

    Function: vl-collect-modules-from-descriptions

    (defun
      vl-collect-modules-from-descriptions (x)
      (declare (xargs :guard (vl-descriptionlist-p x)))
      (let ((__function__ 'vl-collect-modules-from-descriptions))
           (declare (ignorable __function__))
           (b* (((when (atom x)) nil)
                (x1 (vl-description-fix (car x)))
                ((when (eq (tag x1) :vl-module))
                 (cons x1
                       (vl-collect-modules-from-descriptions (cdr x)))))
               (vl-collect-modules-from-descriptions (cdr x)))))

    Theorem: vl-modulelist-p-of-vl-collect-modules-from-descriptions

    (defthm vl-modulelist-p-of-vl-collect-modules-from-descriptions
            (b* ((mods (vl-collect-modules-from-descriptions x)))
                (vl-modulelist-p mods))
            :rule-classes :rewrite)