• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • 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
              • Vl-warning->type
              • Change-vl-warning
              • Vl-warning->msg
              • Vl-warning->fatalp
              • Vl-warning->args
              • Vl-warning->fn
            • Propagating-errors
            • Vl-reportcard
            • Vl-warning-sort
            • Lint-warning-suppression
            • Clean-warnings
            • Warn
            • Vl-some-warning-fatalp
            • Vl-print-warnings-with-header
            • Vl-print-warnings-with-named-header
            • Flat-warnings
            • Vl-keep-warnings
            • Vl-remove-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
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Vl-warning

    Make-vl-warning

    Basic constructor macro for vl-warning structures.

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

    This is the usual way to construct vl-warning structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-warning structure from scratch. See also change-vl-warning, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-warning

    (defmacro
         make-vl-warning (&rest args)
         (std::make-aggregate 'vl-warning
                              args
                              '((:type) (:fatalp) (:msg) (:args) (:fn))
                              'make-vl-warning
                              nil))

    Function: vl-warning

    (defun vl-warning (type fatalp msg args fn)
           (declare (xargs :guard (and (symbolp type)
                                       (booleanp fatalp)
                                       (stringp msg)
                                       (true-listp args)
                                       (symbolp fn))))
           (declare (xargs :guard t))
           (let ((__function__ 'vl-warning))
                (declare (ignorable __function__))
                (b* ((type (mbe :logic (acl2::symbol-fix type)
                                :exec type))
                     (fatalp (mbe :logic (acl2::bool-fix fatalp)
                                  :exec fatalp))
                     (msg (mbe :logic (str-fix msg) :exec msg))
                     (args (mbe :logic (list-fix args) :exec args))
                     (fn (mbe :logic (acl2::symbol-fix fn)
                              :exec fn)))
                    (cons :vl-warning (list (cons 'type type)
                                            (cons 'fatalp fatalp)
                                            (cons 'msg msg)
                                            (cons 'args args)
                                            (cons 'fn fn))))))