• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
            • Svtv-to-xml
            • Stv-entry-to-xml
              • Stv-line-to-xml
              • Stv-entries-to-xml
              • Stv-lines-to-xml
              • 4vec-to-bitwise-chars
              • Stv-repeat-last-entry
              • Stv-repeat-last-entries
              • 4vec-to-hex-chars
              • 4vec-to-hex-char
              • Stv-name-to-xml
              • Stv-labels-to-xml
              • 4vec-to-xml-chars
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svtv-doc

    Stv-entry-to-xml

    Encode a single value from an STV line.

    Signature
    (stv-entry-to-xml entry expansion acc) → acc
    Arguments
    entry — The value that the user gave, originally.
    expansion — Its expanded out value, a sexpr list.
        Guard (or (not expansion) (svtv-entry-p expansion)).
    Returns
    acc — Type (character-listp acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv-entry-to-xml

    (defun stv-entry-to-xml (entry expansion acc)
     (declare (xargs :guard (or (not expansion)
                                (svtv-entry-p expansion))))
     (let ((__function__ 'stv-entry-to-xml))
      (declare (ignorable __function__))
      (cond
        ((4vec-p expansion)
         (revappend (4vec-to-xml-chars expansion)
                    acc))
        ((svtv-dontcare-p entry) acc)
        ((symbolp entry)
         (b*
           ((acc (str::revappend-chars "<b>" acc))
            ((mv ?col acc)
             (str::html-encode-string-aux (symbol-name entry)
                                          0 (length (symbol-name entry))
                                          0 8 acc))
            (acc (str::revappend-chars "</b>" acc)))
           acc))
        ((svtv-condoverride-p entry)
         (b* (((svtv-condoverride entry))
              ((unless (and (symbolp entry.value)
                            (symbolp entry.test)))
               acc)
              (acc (str::revappend-chars "<b>" acc))
              ((mv ?col acc)
               (str::html-encode-string-aux
                    (symbol-name entry.value)
                    0 (length (symbol-name entry.value))
                    0 8 acc))
              (acc (str::revappend-chars "</b>" acc)))
           acc))
        (t (raise "Bad entry in stv line: ~x0." entry)))))

    Theorem: character-listp-of-stv-entry-to-xml

    (defthm character-listp-of-stv-entry-to-xml
      (implies (character-listp acc)
               (b* ((acc (stv-entry-to-xml entry expansion acc)))
                 (character-listp acc)))
      :rule-classes :rewrite)