• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Range-tools
          • 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-dpiimport
            • 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-genvar
            • Vl-find-config
            • Vl-find-class
            • Vl-find-udp
            • Vl-modalist
            • Vl-make-portdecl-alist
            • Vl-fast-find-module
            • Vl-fast-find-portdecl
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • 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)))))