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

    Change-vl-warning

    Modifying constructor for vl-warning structures.

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

    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)
                               (:fatalp . vl-warning->fatalp)
                               (:msg . vl-warning->msg)
                               (:args . vl-warning->args)
                               (:fn . vl-warning->fn))
                             'change-vl-warning
                             'nil))