• 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-hid-parse
            • Stv-expand-name
            • Stv-wirename-parse
            • Stv-maybe-match-select
            • Stv-hid-to-paths
            • Stv-hid-split
            • Stv-expand-hids-in-lines
            • Stv-expand-names-in-lines
              • Stv-expand-hid
              • Stv-check-noncanonical-paths
            • Stv-easy-bindings
            • Stv-debug
            • Stv-run-squash-dontcares
            • Stvdata-p
            • Stv-doc
            • Stv2c
            • Stv-widen
            • Stv-out->width
            • Stv-in->width
            • Stv->outs
            • Stv-number-of-phases
            • 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
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-expand

    Stv-expand-names-in-lines

    Expands all of the names in a list of STV :input or :output lines.

    Signature
    (stv-expand-names-in-lines lines type mod) → new-lines
    Arguments
    lines — Guard (true-list-listp lines).
    type — Guard (or (eq type :i) (eq type :o)).

    Definitions and Theorems

    Function: stv-expand-names-in-lines

    (defun stv-expand-names-in-lines
           (lines type mod)
           (declare (xargs :guard (and (true-list-listp lines)
                                       (or (eq type :i) (eq type :o)))))
           (let ((__function__ 'stv-expand-names-in-lines))
                (declare (ignorable __function__))
                (b* (((when (atom lines)) nil)
                     (line1 (car lines))
                     ((cons name phases) line1)
                     (new-name (stv-expand-name name type mod)))
                    (cons (cons new-name phases)
                          (stv-expand-names-in-lines (cdr lines)
                                                     type mod)))))

    Theorem: alistp-of-stv-expand-names-in-lines

    (defthm alistp-of-stv-expand-names-in-lines
            (alistp (stv-expand-names-in-lines lines type mod)))

    Theorem: true-list-listp-of-stv-expand-names-in-lines

    (defthm
     true-list-listp-of-stv-expand-names-in-lines
     (implies
          (true-list-listp lines)
          (true-list-listp (stv-expand-names-in-lines lines type mod))))