• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
          • Vl-warninglist->types
          • Vl-warning
          • Propagating-errors
          • Vl-reportcard
            • Vl-reportcard-p
            • Vl-apply-reportcard
            • Vl-reportcard-fix
            • Vl-extend-reportcard-list
            • Vl-design-origname-reportcard
            • Vl-design-reportcard
            • Vl-extend-reportcard
            • Vl-reportcard-revive-invalid-warnings
            • Vl-clean-reportcard
            • Vl-reportcard-equiv
            • Vl-print-reportcard
            • Vl-reportcard-to-string
            • Vl-keep-from-reportcard
            • Vl-reportcard-types
            • Vl-reportcardkey-p
              • Vl-reportcardkey-fix
            • Vl-warning-sort
            • Lint-warning-suppression
            • Clean-warnings
            • Warn
            • Vl-print-warnings-with-header
            • Vl-some-warning-fatalp
            • Vl-print-warnings-with-named-header
            • Flat-warnings
            • Vl-remove-warnings
            • Vl-keep-warnings
            • Vl-print-warnings
            • Vl-some-warning-of-type-p
            • Vl-clean-warnings
            • Vl-warnings-to-string
            • Vl-warninglist
            • Vl-print-warning
            • Ok
            • Vl-trace-warnings
            • Fatal
          • Primitives
          • Use-set
          • Syntax
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-reportcardkey-p

    Vl-reportcardkey-fix

    Signature
    (vl-reportcardkey-fix x) → key
    Arguments
    x — Guard (vl-reportcardkey-p x).
    Returns
    key — Type (vl-reportcardkey-p key).

    Definitions and Theorems

    Function: vl-reportcardkey-fix$inline

    (defun vl-reportcardkey-fix$inline (x)
      (declare (xargs :guard (vl-reportcardkey-p x)))
      (let ((__function__ 'vl-reportcardkey-fix))
        (declare (ignorable __function__))
        (mbe :logic (if (equal x :design) x (string-fix x))
             :exec x)))

    Theorem: vl-reportcardkey-p-of-vl-reportcardkey-fix

    (defthm vl-reportcardkey-p-of-vl-reportcardkey-fix
      (b* ((key (vl-reportcardkey-fix$inline x)))
        (vl-reportcardkey-p key))
      :rule-classes :rewrite)

    Theorem: vl-reportcardkey-fix-when-vl-reportcardkey-p

    (defthm vl-reportcardkey-fix-when-vl-reportcardkey-p
      (implies (vl-reportcardkey-p x)
               (equal (vl-reportcardkey-fix x) x)))