• 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
          • Preprocessor
            • Vl-iframe-p
            • Preprocessor-ifdef-minutia
            • Vl-preprocess-loop
            • Vl-read-until-end-of-define
            • Vl-expand-define
            • Vl-read-include
            • Vl-process-ifdef
            • Vl-substitute-into-macro-text
            • Vl-preprocess
            • Vl-define
              • Vl-define-formallist->defaults
              • Vl-define-formallist->names
              • Vl-define-fix
              • Vl-define-formal
                • Vl-define-formal-fix
                • Vl-define-formal-equiv
                • Make-vl-define-formal
                • Vl-define-formal->default
                • Vl-define-formal->name
                  • Change-vl-define-formal
                  • Vl-define-formal-p
                • Vl-define-equiv
                • Make-vl-define
                • Vl-add-define
                • Vl-define->formals
                • Vl-define-p
                • Change-vl-define
                • Vl-define->name
                • Vl-define->loc
                • Vl-define->body
                • Vl-pp-define
                • Vl-define-formallist
              • Vl-process-define
              • Vl-process-undef
              • Preprocessor-include-minutia
              • Vl-split-define-text
              • Vl-read-timescale
              • Vl-line-up-define-formals-and-actuals
              • Vl-process-else
              • Vl-process-endif
              • Vl-istack-p
              • Vl-is-compiler-directive-p
              • Vl-check-remaining-formals-all-have-defaults
              • Vl-safe-previous-n
              • Vl-safe-next-n
              • Vl-defines
              • *vl-preprocess-clock*
            • Vl-loadconfig
            • Lexer
            • Vl-loadstate
            • Parser
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-define-formal

    Vl-define-formal->name

    Get the name field from a vl-define-formal.

    Signature
    (vl-define-formal->name x) → name
    Arguments
    x — Guard (vl-define-formal-p x).
    Returns
    name — Type (stringp name).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-define-formal->name$inline

    (defun vl-define-formal->name$inline (x)
      (declare (xargs :guard (vl-define-formal-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-define-formal->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (str-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: stringp-of-vl-define-formal->name

    (defthm stringp-of-vl-define-formal->name
      (b* ((name (vl-define-formal->name$inline x)))
        (stringp name))
      :rule-classes :type-prescription)

    Theorem: vl-define-formal->name$inline-of-vl-define-formal-fix-x

    (defthm vl-define-formal->name$inline-of-vl-define-formal-fix-x
      (equal (vl-define-formal->name$inline (vl-define-formal-fix x))
             (vl-define-formal->name$inline x)))

    Theorem: vl-define-formal->name$inline-vl-define-formal-equiv-congruence-on-x

    (defthm
     vl-define-formal->name$inline-vl-define-formal-equiv-congruence-on-x
     (implies (vl-define-formal-equiv x x-equiv)
              (equal (vl-define-formal->name$inline x)
                     (vl-define-formal->name$inline x-equiv)))
     :rule-classes :congruence)