• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-reportcard-p
            • Vl-apply-reportcard
            • Vl-reportcard-fix
            • Vl-extend-reportcard-list
            • Vl-design-reportcard
            • Vl-design-origname-reportcard
            • Vl-extend-reportcard
            • Vl-reportcard-revive-invalid-warnings
            • Vl-clean-reportcard
            • Vl-remove-from-reportcard
            • Vl-reportcard-equiv
            • Vl-print-reportcard
            • Vl-keep-from-reportcard
            • Vl-reportcard-to-string
              • Vl-reportcard-types
              • Vl-reportcardkey-p
            • 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-reportcard

    Vl-reportcard-to-string

    Pretty-print a vl-reportcard-p into a string.

    Signature
    (vl-reportcard-to-string x &key (elide '3)) → str
    Arguments
    x — Guard (vl-reportcard-p x).
    elide — Guard (maybe-natp elide).
    Returns
    str — Type (stringp str).

    See also vl-print-reportcard.

    Definitions and Theorems

    Function: vl-reportcard-to-string-fn

    (defun vl-reportcard-to-string-fn (x elide)
      (declare (xargs :guard (and (vl-reportcard-p x)
                                  (maybe-natp elide))))
      (let ((__function__ 'vl-reportcard-to-string))
        (declare (ignorable __function__))
        (with-local-ps (vl-print-reportcard x :elide elide))))

    Theorem: stringp-of-vl-reportcard-to-string

    (defthm stringp-of-vl-reportcard-to-string
      (b* ((str (vl-reportcard-to-string-fn x elide)))
        (stringp str))
      :rule-classes :type-prescription)

    Theorem: vl-reportcard-to-string-fn-of-vl-reportcard-fix-x

    (defthm vl-reportcard-to-string-fn-of-vl-reportcard-fix-x
      (equal (vl-reportcard-to-string-fn (vl-reportcard-fix x)
                                         elide)
             (vl-reportcard-to-string-fn x elide)))

    Theorem: vl-reportcard-to-string-fn-vl-reportcard-equiv-congruence-on-x

    (defthm
         vl-reportcard-to-string-fn-vl-reportcard-equiv-congruence-on-x
      (implies (vl-reportcard-equiv x x-equiv)
               (equal (vl-reportcard-to-string-fn x elide)
                      (vl-reportcard-to-string-fn x-equiv elide)))
      :rule-classes :congruence)

    Theorem: vl-reportcard-to-string-fn-of-maybe-natp-fix-elide

    (defthm vl-reportcard-to-string-fn-of-maybe-natp-fix-elide
      (equal (vl-reportcard-to-string-fn x (maybe-natp-fix elide))
             (vl-reportcard-to-string-fn x elide)))

    Theorem: vl-reportcard-to-string-fn-maybe-nat-equiv-congruence-on-elide

    (defthm
         vl-reportcard-to-string-fn-maybe-nat-equiv-congruence-on-elide
      (implies (acl2::maybe-nat-equiv elide elide-equiv)
               (equal (vl-reportcard-to-string-fn x elide)
                      (vl-reportcard-to-string-fn x elide-equiv)))
      :rule-classes :congruence)