• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
          • Lint-warning-suppression
          • Warning-basics
          • Vl-warning
          • Vl-warninglist-add-ctx
          • Vl-warninglist->types
          • Propagating-errors
          • Vl-reportcard
          • Vl-some-warning-fatalp
          • Clean-warnings
          • Lint-whole-file-suppression
          • Vl-keep-warnings
          • Warn
          • Vl-warninglist
          • Vl-remove-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
      • Testing-utilities
      • Math
    • Warnings

    Ok

    A convenient shorthand for calling vl-warninglist-fix.

    (ok) is just syntactic sugar for:

    (vl-warninglist-fix warnings)

    This is often useful as a base case in functions that sometimes create warnings. The name of the warnings accumulator to fix can also be specified, e.g.,:

    (ok acc) == (vl-warninglist-fix acc)

    Macro: ok

    (defmacro ok (&optional (warnings 'warnings))
              (cons 'vl-warninglist-fix
                    (cons warnings 'nil)))

    Definitions and Theorems

    Theorem: ok-correct

    (defthm ok-correct
            (and (equal (ok x) (vl-warninglist-fix x))
                 (equal (ok)
                        (vl-warninglist-fix warnings)))
            :rule-classes nil)