• 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-internal-line

    Signature
    (stv-expand-internal-line line usersyms mod) 
      → 
    (mv new-line usersyms)
    Arguments
    line — Guard (true-listp line).
    mod — Guard (good-esim-modulep mod).
    Returns
    new-line — Type (true-listp new-line).

    Definitions and Theorems

    Function: stv-expand-internal-line

    (defun
     stv-expand-internal-line
     (line usersyms mod)
     (declare (xargs :guard (and (true-listp line)
                                 (good-esim-modulep mod))))
     (let
      ((__function__ 'stv-expand-internal-line))
      (declare (ignorable __function__))
      (b*
       (((cons name entries) line)
        ((unless (and (consp name) (true-listp name)))
         (raise
          "Expected :internal line names to be already expanded to ~
                    non-empty lists of E paths, but found ~x0."
          name)
         (mv nil usersyms))
        ((mv okp new-name)
         (fast-canonicalize-paths name mod))
        ((unless okp)
         (raise "Failed to canonicalize all the paths for ~x0."
                name)
         (mv nil usersyms))
        ((mv new-entries usersyms)
         (stv-expand-output-entries new-name (len new-name)
                                    0 entries usersyms))
        (new-line (cons new-name new-entries)))
       (mv new-line usersyms))))

    Theorem: true-listp-of-stv-expand-internal-line.new-line

    (defthm true-listp-of-stv-expand-internal-line.new-line
            (b* (((mv ?new-line ?usersyms)
                  (stv-expand-internal-line line usersyms mod)))
                (true-listp new-line))
            :rule-classes :type-prescription)