• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
          • Defstv
          • Stv-compile
          • Symbolic-test-vector-format
          • Stv-implementation-details
          • Compiled-stv-p
          • Stv-run-for-all-dontcares
          • Stv-run
          • Stv-process
          • Stv-run-check-dontcares
          • Symbolic-test-vector-composition
          • Stv-expand
          • Stv-easy-bindings
          • Stv-debug
          • Stv-run-squash-dontcares
          • Stvdata-p
          • Stv-doc
            • Stv-to-xml
            • Stv-name-bits-to-xml
            • Stv-entry-to-xml
            • Stv-line-to-xml
              • Stv-entries-to-xml
              • Stv-lines-to-xml
              • Stv-name-to-xml
              • Stv-labels-to-xml
            • Stv2c
            • Stv-widen
            • Stv-out->width
            • Stv-in->width
            • Stv-number-of-phases
            • Stv->outs
            • Stv->ins
            • Stv-suffix-signals
            • Stv->vars
          • Esim-primitives
          • E-conversion
          • Esim-steps
          • Patterns
          • Mod-internal-paths
          • Defmodules
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stv-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 (true-listp 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)
                                  (true-listp 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)
                                      (cdr 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)