• 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-warning-p
            • Vl-warning-fix
            • Make-vl-warning
            • Vl-warning-equiv
            • Change-vl-warning
              • Vl-warning->suppressedp
              • Vl-warning->type
              • Vl-warning->fatalp
              • Vl-warning->args
              • Vl-warning->msg
              • Vl-warning->fn
              • Vl-warning->context
            • Vl-warninglist-add-ctx
            • Vl-warninglist->types
            • Propagating-errors
            • Vl-reportcard
            • 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-warning

    Change-vl-warning

    Modifying constructor for vl-warning structures.

    Syntax
    (change-vl-warning x 
                       [:type <type>] 
                       [:msg <msg>] 
                       [:args <args>] 
                       [:fn <fn>] 
                       [:fatalp <fatalp>] 
                       [:suppressedp <suppressedp>] 
                       [:context <context>]) 
    

    This is an often useful alternative to make-vl-warning.

    We construct a new vl-warning structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by defprod.

    Macro: change-vl-warning

    (defmacro change-vl-warning (x &rest args)
      (std::change-aggregate 'vl-warning
                             x args
                             '((:type . vl-warning->type)
                               (:msg . vl-warning->msg)
                               (:args . vl-warning->args)
                               (:fn . vl-warning->fn)
                               (:fatalp . vl-warning->fatalp)
                               (:suppressedp . vl-warning->suppressedp)
                               (:context . vl-warning->context))
                             'change-vl-warning
                             'nil))