• 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
        • Server
          • Vls-commands
          • Vl-descriptionlist-summaries
          • Vls-transdb
          • File-layout
          • Vls-data-p
          • Ts-queue
          • Vls-showloc
          • Vls-get-plainsrc
          • Vl-description->warnings
          • Vl-describe
          • Vls-port-table
          • Vls-describe
            • Vls-data-from-translation
            • Vl-find-description-insensitive
            • Vls-get-warnings
            • Vls-get-summary
            • Vls-get-origsrc
            • Vls-data-origname-reportcard
            • Vls-get-parents
            • Vls-get-children
            • Vls-get-summaries
            • Vl-ppc-description
            • Vls-get-desctypes
            • Vl-description-summary
            • Start
            • Vl-descalist->descriptions/types
            • Stop
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Server

    Vls-describe

    Signature
    (vls-describe origname what data) → ans
    Arguments
    origname — Guard (stringp origname).
    what — Guard (stringp what).
    data — Guard (vls-data-p data).
    Returns
    ans — Type (stringp ans).

    Definitions and Theorems

    Function: vls-describe

    (defun vls-describe (origname what data)
     (declare (xargs :guard (and (stringp origname)
                                 (stringp what)
                                 (vls-data-p data))))
     (let ((__function__ 'vls-describe))
       (declare (ignorable __function__))
       (b* (((vls-data data))
            (desc (cdr (hons-assoc-equal origname data.orig-descalist)))
            ((unless desc)
             (cat "Error: " origname " not found."))
            ((unless (mbe :logic (vl-module-p desc)
                          :exec (eq (tag desc) :vl-module)))
             (cat "BOZO implement describe page for "
                  (ec-call (symbol-name (tag desc))))))
         (with-local-ps (vl-ps-update-htmlp t)
                        (vl-pp-describe what desc)))))

    Theorem: stringp-of-vls-describe

    (defthm stringp-of-vls-describe
      (b* ((ans (vls-describe origname what data)))
        (stringp ans))
      :rule-classes :type-prescription)