• 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
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
            • Vl-description-p
            • Vl-sort-descriptions
            • Vl-description-fix
            • Vl-find-description
            • Vl-description-equiv
            • Vl-description->origname
              • Vl-description->name
              • Vl-design-from-descriptions
              • Vl-make-descalist
              • Vl-design-descriptions
              • Vl-fast-filter-descriptions
              • Vl-fast-find-description
              • Vl-descalist
              • Vl-slow-delete-descriptions
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-description

    Vl-description->origname

    Get the name from most descriptions -- original version, i.e. not modified by unparameterization, in the cases of modules and interfaces.

    Signature
    (vl-description->origname x) → name
    Arguments
    x — Guard (vl-description-p x).
    Returns
    name — Type (maybe-stringp name).

    Definitions and Theorems

    Function: vl-description->origname

    (defun vl-description->origname (x)
      (declare (xargs :guard (vl-description-p x)))
      (let ((__function__ 'vl-description->origname))
        (declare (ignorable __function__))
        (b* ((x (vl-description-fix x)))
          (case (tag x)
                (:vl-module (vl-module->origname x))
                (:vl-udp (vl-udp->name x))
                (:vl-interface (vl-interface->origname x))
                (:vl-package (vl-package->name x))
                (:vl-program (vl-program->name x))
                (:vl-class (vl-class->name x))
                (:vl-config (vl-config->name x))
                (:vl-vardecl (vl-vardecl->name x))
                (:vl-taskdecl (vl-taskdecl->name x))
                (:vl-fundecl (vl-fundecl->name x))
                (:vl-paramdecl (vl-paramdecl->name x))
                (:vl-import nil)
                (:vl-fwdtypedef nil)
                (:vl-typedef (vl-typedef->name x))
                (:vl-dpiimport (vl-dpiimport->name x))
                (:vl-dpiexport nil)
                (:vl-bind nil)
                (:vl-property (vl-property->name x))
                (:vl-sequence (vl-sequence->name x))
                (otherwise (impossible))))))

    Theorem: maybe-stringp-of-vl-description->origname

    (defthm maybe-stringp-of-vl-description->origname
      (b* ((name (vl-description->origname x)))
        (maybe-stringp name))
      :rule-classes :type-prescription)

    Theorem: vl-description->origname-of-vl-description-fix-x

    (defthm vl-description->origname-of-vl-description-fix-x
      (equal (vl-description->origname (vl-description-fix x))
             (vl-description->origname x)))

    Theorem: vl-description->origname-vl-description-equiv-congruence-on-x

    (defthm
          vl-description->origname-vl-description-equiv-congruence-on-x
      (implies (vl-description-equiv x x-equiv)
               (equal (vl-description->origname x)
                      (vl-description->origname x-equiv)))
      :rule-classes :congruence)