• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
          • Lint-warning-suppression
          • Warning-basics
          • Vl-warning
          • Vl-warninglist-add-ctx
          • Vl-warninglist->types
          • Propagating-errors
          • Vl-reportcard
            • Vl-reportcard-p
            • Vl-apply-reportcard
            • Vl-reportcard-fix
            • Vl-extend-reportcard-list
            • Vl-design-reportcard
            • Vl-design-origname-reportcard
            • Vl-extend-reportcard
            • Vl-reportcard-revive-invalid-warnings
            • Vl-clean-reportcard
            • Vl-remove-from-reportcard
            • Vl-reportcard-equiv
            • Vl-print-reportcard
            • Vl-keep-from-reportcard
            • Vl-reportcard-to-string
            • Vl-reportcard-types
            • Vl-reportcardkey-p
              • Vl-reportcardkey-fix
            • Vl-some-warning-fatalp
            • Clean-warnings
            • Lint-whole-file-suppression
            • Warn
            • Vl-warninglist
            • Vl-remove-warnings
            • Vl-keep-warnings
            • Flat-warnings
            • Vl-some-warning-of-type-p
            • Vl-msg
            • Vl-warning-add-ctx
            • Vl-print-warning
            • Vmsg-binary-concat
            • Ok
            • Vl-trace-warnings
            • Fatal
            • Vmsg
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • 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)))