• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
            • Vl-modulelist-propagate
            • Too-hard-to-propagate
            • Vl-maybe-driven-by-modinsts
            • Vl-maybe-driven-by-gateinsts
            • Vl-driven-by-assigns
            • Propagate-limits-p
            • Vl-maybe-driven-by-args
              • Candidates-for-propagation
              • Remove-simple-assigns-to
              • Propagation-sigma
              • Vl-propagation-round
              • Vl-propagation-fixpoint
              • Vl-maybe-driven-by-modinst
              • Vl-maybe-driven-by-gateinst
              • Vl-module-propagate
              • Propagate-expr-limits-okp
              • Vl-driven-by-assign
              • Vl-design-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
    • Propagate

    Vl-maybe-driven-by-args

    Approximately collects the names of wires that are driven by the arguments to a gate/module instance. (unsound)

    Signature
    (vl-maybe-driven-by-args x) → driven-names
    Arguments
    x — Guard (vl-plainarglist-p x).
    Returns
    driven-names — Type (string-listp driven-names), given the guard.

    This hopefully returns an overapproximation of the wires that might possibly be driven by a gate/module instance with these arguments. Note that we only collect names here, so the entire wire is considered driven even if only a single bit of it is driven, etc.

    It is not sound if there are incorrectly labeled ports (e.g., if a submodule drives its inputs, then we will not realize that the wires connected to that input are driven.

    Definitions and Theorems

    Function: vl-maybe-driven-by-args

    (defun vl-maybe-driven-by-args (x)
      (declare (xargs :guard (vl-plainarglist-p x)))
      (let ((__function__ 'vl-maybe-driven-by-args))
        (declare (ignorable __function__))
        (b* (((mv ?in out inout unknown)
              (vl-partition-plainargs x nil nil nil nil))
             (out (remove nil (vl-plainarglist->exprs out)))
             (inout (remove nil (vl-plainarglist->exprs inout)))
             (unknown (remove nil (vl-plainarglist->exprs unknown))))
          (append (vl-exprlist-names out)
                  (vl-exprlist-names inout)
                  (vl-exprlist-names unknown)))))

    Theorem: string-listp-of-vl-maybe-driven-by-args

    (defthm string-listp-of-vl-maybe-driven-by-args
      (implies (and (force (vl-plainarglist-p x)))
               (b* ((driven-names (vl-maybe-driven-by-args x)))
                 (string-listp driven-names)))
      :rule-classes :rewrite)