• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • 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
        • Vwsim
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-doc

    Stv-labels-to-xml

    Signature
    (stv-labels-to-xml labels acc) → acc
    Arguments
    labels — Guard (symbol-listp labels).
    Returns
    acc — Type (character-listp acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv-labels-to-xml

    (defun stv-labels-to-xml (labels acc)
      (declare (xargs :guard (symbol-listp labels)))
      (let ((__function__ 'stv-labels-to-xml))
        (declare (ignorable __function__))
        (b* (((when (atom labels)) acc)
             (acc (str::revappend-chars "<stv_label>" acc))
             (acc (if (car labels)
                      (str::revappend-chars (symbol-name (car labels))
                                            acc)
                    acc))
             (acc (str::revappend-chars "</stv_label>" acc)))
          (stv-labels-to-xml (cdr labels) acc))))

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

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