• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
          • Ps
          • Basic-printing
          • Verilog-printing
            • Vl-fmt
            • Vl-ppc-module
            • Vl-pp-expr
            • Vl-maybe-escape-identifier
            • Vl-print-ext-wirename
            • Vl-pp-module
            • Vl-print-wirename
            • Vl-print-loc
            • Vl-print-modname
            • Vl-pp-origexpr
            • Vl-pps-module
            • Vl-pps-expr
            • Vl-ppc-modulelist
            • Vl-ppcs-module
            • Vl-ps-update-show-atts
            • Vl-pps-origexpr
            • Vl-pps-modulelist
            • Vl-ppcs-modulelist
            • Vl-cw-obj
              • Vl-ps->show-atts-p
              • Vl-cw
            • Printing-locally
            • Formatted-printing
            • Accessing-printed-output
            • Vl-printedlist
            • Json-printing
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Verilog-printing

    Vl-cw-obj

    Similar to vl-cw, but the arguments are given as a list instead of as macro arguments.

    Signature
    (vl-cw-obj msg args &key (ps 'ps)) → ps
    Arguments
    msg — Guard (stringp msg).

    For example:

    (vl-cw "hello ~x0 ~x1 ~x2" 3 4 5)
      --->
    (vl-cw-obj "hello ~x0 ~x1 ~x2" (list 3 4 5))

    This can be useful for grouping up arguments into cons structures.

    BOZO I should probably implement something like ~@ and use msg instead.

    Definitions and Theorems

    Function: vl-cw-obj-fn

    (defun vl-cw-obj-fn (msg args ps)
     (declare (xargs :stobjs (ps)))
     (declare (xargs :guard (stringp msg)))
     (let ((__function__ 'vl-cw-obj))
      (declare (ignorable __function__))
      (cond
           ((<= (len args) 10)
            (vl-fmt msg
                    (pairlis$ '(#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)
                              (list-fix args))))
           (t (prog2$ (raise "vl-cw-obj is limited to 10 arguments.")
                      ps)))))

    Theorem: vl-cw-obj-fn-of-str-fix-msg

    (defthm vl-cw-obj-fn-of-str-fix-msg
      (equal (vl-cw-obj-fn (str-fix msg) args ps)
             (vl-cw-obj-fn msg args ps)))

    Theorem: vl-cw-obj-fn-streqv-congruence-on-msg

    (defthm vl-cw-obj-fn-streqv-congruence-on-msg
      (implies (streqv msg msg-equiv)
               (equal (vl-cw-obj-fn msg args ps)
                      (vl-cw-obj-fn msg-equiv args ps)))
      :rule-classes :congruence)