• 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-entries-to-xml

    Encode all the values from an STV line.

    Signature
    (stv-entries-to-xml entries expansions acc) → acc
    Arguments
    entries — The original entries for this line.
    expansions — The expanded entries for this line.
        Guard (svtv-entrylist-p expansions).
    Returns
    acc — Type (character-listp acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv-entries-to-xml

    (defun stv-entries-to-xml (entries expansions acc)
      (declare (xargs :guard (svtv-entrylist-p expansions)))
      (let ((__function__ 'stv-entries-to-xml))
        (declare (ignorable __function__))
        (b* (((when (atom entries)) acc)
             (acc (str::revappend-chars "<stv_entry>" acc))
             (acc (stv-entry-to-xml (car entries)
                                    (and (consp expansions)
                                         (car expansions))
                                    acc))
             (acc (str::revappend-chars "</stv_entry>" acc)))
          (stv-entries-to-xml (cdr entries)
                              (and (consp expansions)
                                   (cdr expansions))
                              acc))))

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

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