• 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
          • 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-expand-name
            • Stv-hid-parse
            • Stv-wirename-parse
            • Stv-hid-to-paths
            • Stv-maybe-match-select
            • 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-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-expand

    Stv-expand-hids-in-lines

    (stv-expand-hids-in-lines lines mod) expands all of the HIDs in a list of STV internal lines into lists of esim paths.

    Signature
    (stv-expand-hids-in-lines lines mod) → new-lines
    Arguments
    lines — Guard (true-list-listp lines).
    Returns
    new-lines — Copy of lines except with expanded names.

    Definitions and Theorems

    Function: stv-expand-hids-in-lines

    (defun stv-expand-hids-in-lines (lines mod)
      (declare (xargs :guard (true-list-listp lines)))
      (let ((__function__ 'stv-expand-hids-in-lines))
        (declare (ignorable __function__))
        (b* (((when (atom lines)) nil)
             (line1 (car lines))
             ((cons name phases) line1)
             (lsb-paths (stv-expand-hid name mod)))
          (cons (cons lsb-paths phases)
                (stv-expand-hids-in-lines (cdr lines)
                                          mod)))))

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

    (defthm alistp-of-stv-expand-hids-in-lines
      (alistp (stv-expand-hids-in-lines lines mod)))

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

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