• 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
        • 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-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
    • Hierarchy

    Vl-collect-dependencies

    Signature
    (vl-collect-dependencies names graph) → dependencies
    Arguments
    names — Guard (string-listp names).
    graph — Guard (and (vl-depgraph-p graph) (depgraph::alist-values-are-sets-p graph)) .
    Returns
    dependencies — Type (and (string-listp dependencies) (setp dependencies)), given the guard.

    Definitions and Theorems

    Function: vl-collect-dependencies

    (defun vl-collect-dependencies (names graph)
     (declare
      (xargs
          :guard (and (string-listp names)
                      (and (vl-depgraph-p graph)
                           (depgraph::alist-values-are-sets-p graph)))))
     (let ((__function__ 'vl-collect-dependencies))
       (declare (ignorable __function__))
       (if (atom names)
           nil
         (union (cdr (hons-get (car names) graph))
                (vl-collect-dependencies (cdr names)
                                         graph)))))

    Theorem: return-type-of-vl-collect-dependencies

    (defthm return-type-of-vl-collect-dependencies
     (implies (and (force (string-listp names))
                   (force (vl-depgraph-p graph))
                   (force (depgraph::alist-values-are-sets-p graph)))
              (b* ((dependencies (vl-collect-dependencies names graph)))
                (and (string-listp dependencies)
                     (setp dependencies))))
     :rule-classes :rewrite)