• 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
        • Transforms
          • Unparameterization
          • Elaborate
          • Addnames
          • Annotate
            • Increment-elim
            • Make-implicit-wires
              • Shadowcheck
              • Implicit-wires-minutia
              • Implicit-wires-generate-scoping
              • Vl-genbase-make-implicit-wires
              • Vl-expr-names-for-implicit
              • Vl-make-implicit-wires-main
              • Vl-implicitst
              • Vl-make-port-implicit-wires
              • Vl-import-update-implicit
              • Vl-blockitemlist-update-implicit
              • Vl-blockitem-update-implicit
              • Vl-make-ordinary-implicit-wires
              • Vl-remove-declared-wires
              • Vl-implicitsts-restore-fast-alists
              • Vl-genblock-under-cond-make-implicit-wires
              • Vl-collect-exprs-for-implicit-wires-from-namedargs
              • Vl-genblock-make-implicit-wires
              • Vl-collect-exprs-for-implicit-wires-from-portargs
              • Vl-collect-exprs-for-implicit-wires-from-namedarg
              • Vl-gateinst-exprs-for-implicit-wires
              • Vl-modinst-exprs-for-implicit-wires
              • Vl-genelementlist-make-implicit-wires
              • Vl-packagemap-find-name
              • Basic-bind-elim
              • Argresolve
              • Basicsanity
              • Portdecl-sign
              • Enum-names
              • Port-resolve
              • Udp-elim
              • Vl-annotate-design
              • Vl-annotate-module
            • Clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Make-implicit-wires

    Vl-packagemap-find-name

    Signature
    (vl-packagemap-find-name name map) → *
    Arguments
    name — Guard (stringp name).
    map — Guard (vl-packagemap-p map).

    Definitions and Theorems

    Function: vl-packagemap-find-name

    (defun vl-packagemap-find-name (name map)
      (declare (xargs :guard (and (stringp name)
                                  (vl-packagemap-p map))))
      (let ((__function__ 'vl-packagemap-find-name))
        (declare (ignorable __function__))
        (if (atom map)
            nil
          (or (and (mbt (consp (car map)))
                   (hons-get (string-fix name)
                             (vl-scopeitem-alist-fix (cdar map))))
              (vl-packagemap-find-name name (cdr map))))))

    Theorem: vl-packagemap-find-name-of-str-fix-name

    (defthm vl-packagemap-find-name-of-str-fix-name
      (equal (vl-packagemap-find-name (str-fix name)
                                      map)
             (vl-packagemap-find-name name map)))

    Theorem: vl-packagemap-find-name-streqv-congruence-on-name

    (defthm vl-packagemap-find-name-streqv-congruence-on-name
      (implies (streqv name name-equiv)
               (equal (vl-packagemap-find-name name map)
                      (vl-packagemap-find-name name-equiv map)))
      :rule-classes :congruence)

    Theorem: vl-packagemap-find-name-of-vl-packagemap-fix-map

    (defthm vl-packagemap-find-name-of-vl-packagemap-fix-map
      (equal (vl-packagemap-find-name name (vl-packagemap-fix map))
             (vl-packagemap-find-name name map)))

    Theorem: vl-packagemap-find-name-vl-packagemap-equiv-congruence-on-map

    (defthm
          vl-packagemap-find-name-vl-packagemap-equiv-congruence-on-map
      (implies (vl-packagemap-equiv map map-equiv)
               (equal (vl-packagemap-find-name name map)
                      (vl-packagemap-find-name name map-equiv)))
      :rule-classes :congruence)