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

    Encode one full line from the STV into XML for XDOC.

    Signature
    (stv-line-to-xml line expansion acc) → acc
    Arguments
    line — Original line, with name, given by the user.
        Guard (true-listp line).
    expansion — Fully expanded line, with name, after STV processing.
        Guard (or (not expansion) (svtv-line-p expansion)).
    Returns
    acc — Type (character-listp acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv-line-to-xml

    (defun stv-line-to-xml (line expansion acc)
     (declare (xargs :guard (and (true-listp line)
                                 (or (not expansion)
                                     (svtv-line-p expansion)))))
     (let ((__function__ 'stv-line-to-xml))
      (declare (ignorable __function__))
      (b* ((acc (str::revappend-chars "<stv_line>" acc))
           (acc (str::revappend-chars "<stv_name>" acc))
           (acc (stv-name-to-xml (car line) acc))
           (acc (str::revappend-chars "</stv_name>" acc))
           (acc (stv-entries-to-xml (cdr line)
                                    (and expansion
                                         (svtv-line->entries expansion))
                                    acc))
           (acc (str::revappend-chars "</stv_line>" acc))
           (acc (cons #\Newline acc)))
        acc)))

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

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