• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
          • Finding-by-name
            • Fast-finding-by-name
            • Vl-find-interfaceport
            • Vl-find-portdecl
            • Vl-find-taskdecl
            • Vl-find-paramdecl
            • Vl-find-interface
            • Vl-find-gateinst
            • Vl-find-vardecl
            • Vl-find-typedef
            • Vl-find-program
            • Vl-find-package
            • Vl-find-module
            • Vl-find-modport
            • Vl-find-modinst
            • Vl-find-genelement
            • Vl-find-fundecl
            • Vl-find-config
            • Vl-modalist
            • Vl-find-udp
            • Vl-make-portdecl-alist
            • Vl-fast-find-module
            • Vl-fast-find-portdecl
            • 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
    • Finding-by-name

    Vl-fast-find-portdecl

    Faster version of vl-find-portdecl, where the search is done as an fast-alist lookup rather than as string search.

    Signature
    (vl-fast-find-portdecl name portdecls alist) → *
    Arguments
    name — Guard (stringp name).
    portdecls — Guard (vl-portdecllist-p portdecls).
    alist — Guard (equal alist (vl-make-portdecl-alist portdecls)).

    Definitions and Theorems

    Function: vl-fast-find-portdecl

    (defun vl-fast-find-portdecl (name portdecls alist)
     (declare
        (xargs :guard (and (stringp name)
                           (vl-portdecllist-p portdecls)
                           (equal alist
                                  (vl-make-portdecl-alist portdecls)))))
     (let ((__function__ 'vl-fast-find-portdecl))
       (declare (ignorable __function__))
       (mbe :logic (vl-find-portdecl name portdecls)
            :exec (cdr (hons-get name alist)))))