• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
            • Vl-remove-unnecessary-elements
            • Vl-necessary-elements-transitive
            • Vl-dependent-elements-transitive
            • Vl-necessary-elements-direct
            • Vl-modulelist-everinstanced
            • Vl-dependent-elements-direct
            • Vl-modulelist-toplevel
            • Vl-design-deporder-modules
            • Vl-design-check-complete
            • Vl-design-upgraph
            • Immdeps
            • Vl-design-downgraph
            • Vl-collect-dependencies
              • Vl-hierarchy-free
            • Finding-by-name
            • Expr-tools
            • Expr-slicing
            • Stripping-functions
            • Stmt-tools
            • Modnamespace
            • Vl-parse-expr-from-str
            • Welltyped
            • Reordering-by-name
            • Flat-warnings
            • Genblob
            • Expr-building
            • Datatype-tools
            • Syscalls
            • Relocate
            • Expr-cleaning
            • Namemangle
            • Caremask
            • Port-tools
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • 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)