• 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
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stv-doc

    Stv-name-to-xml

    Encode the name of an STV line.

    Signature
    (stv-name-to-xml name acc) → acc
    Returns
    acc — Type (character-listp acc), given (character-listp acc).

    Definitions and Theorems

    Function: stv-name-to-xml

    (defun stv-name-to-xml (name acc)
     (declare (xargs :guard t))
     (let ((__function__ 'stv-name-to-xml))
      (declare (ignorable __function__))
      (cond
          ((stringp name)
           (b* (((mv ?col acc)
                 (vl2014::vl-html-encode-string-aux name 0 (length name)
                                                    0 8 acc)))
             acc))
          ((true-listp name)
           (b* ((acc (cons #\{ acc))
                (acc (stv-name-bits-to-xml name 1 acc))
                (acc (cons #\} acc)))
             acc))
          (t (raise "Bad name for stv line: ~x0." name)))))

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

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