• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
          • Defstv
          • Stv-compile
            • Stv-expand-input-entry
            • Stv-expand-output-entry
            • Stv-restrict-alist
            • Stv-extraction-alists
            • Stv-expand-input-lines
            • Stv-expand-input-entries
            • Stv-expand-output-entries
            • Stv-expand-internal-lines
            • Stv-expand-output-lines
              • Stv-expand-internal-line
              • Stv-gensyms
              • Stv-forge-state-bit
              • Safe-pairlis-onto-acc
            • 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
            • 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
        • Vwsim
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-compile

    Stv-expand-output-lines

    Extend stv-expand-output-entry across a list of lines.

    Signature
    (stv-expand-output-lines lines usersyms) 
      → 
    (mv new-lines usersyms)
    Arguments
    lines — Guard (true-list-listp lines).
    Returns
    new-lines — Type (true-list-listp new-lines).

    Definitions and Theorems

    Function: stv-expand-output-lines

    (defun
     stv-expand-output-lines (lines usersyms)
     (declare (xargs :guard (true-list-listp lines)))
     (let
      ((__function__ 'stv-expand-output-lines))
      (declare (ignorable __function__))
      (b*
       (((when (atom lines)) (mv nil usersyms))
        (line1 (car lines))
        ((cons name1 entries1) line1)
        ((unless (and (consp name1) (atom-listp name1)))
         (raise
          "Expected :output line names to be already expanded to ~
                    non-empty lists of E bits, but found ~x0."
          name1)
         (mv nil usersyms))
        ((mv new-entries1 usersyms)
         (stv-expand-output-entries name1 (len name1)
                                    0 entries1 usersyms))
        (new-car (cons name1 new-entries1))
        ((mv new-cdr usersyms)
         (stv-expand-output-lines (cdr lines)
                                  usersyms)))
       (mv (cons new-car new-cdr) usersyms))))

    Theorem: true-list-listp-of-stv-expand-output-lines.new-lines

    (defthm true-list-listp-of-stv-expand-output-lines.new-lines
            (b* (((mv ?new-lines ?usersyms)
                  (stv-expand-output-lines lines usersyms)))
                (true-list-listp new-lines))
            :rule-classes :rewrite)