• 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-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-msg-p
            • Vl-msg-fix
            • Vl-msg-equiv
            • Make-vl-msg
              • Vl-msg->args
              • Change-vl-msg
              • Vl-msg->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-msg

    Make-vl-msg

    Basic constructor macro for vl-msg structures.

    Syntax
    (make-vl-msg [:msg <msg>] 
                 [:args <args>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-msg

    (defmacro make-vl-msg (&rest args)
      (std::make-aggregate 'vl-msg
                           args '((:msg) (:args))
                           'make-vl-msg
                           nil))

    Function: vl-msg

    (defun vl-msg (msg args)
      (declare (xargs :guard (and (stringp msg) (true-listp args))))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-msg))
        (declare (ignorable __function__))
        (b* ((msg (mbe :logic (str-fix msg) :exec msg))
             (args (mbe :logic (list-fix args)
                        :exec args)))
          (if args (cons msg args) msg))))