• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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-nth-extraction-alist
              • Stv-expand-input-lines
              • Stv-expand-input-entries
              • Stv-expand-output-entries
              • Stv-expand-output-lines
              • Stv-expand-internal-lines
              • Stv-expand-internal-line
              • Stv-forge-state-bit
              • Stv-gensyms
              • 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-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
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stv-extraction-alists

    Stv-nth-extraction-alist

    Add the bindings for name to entryN to the NTH-ALIST-ACC

    Signature
    (stv-nth-extraction-alist n lines nth-alist-acc) → *
    Arguments
    n — Guard (natp n).
    lines — A list of (name entry1 ... entryK).
        Guard (true-list-listp lines).
    nth-alist-acc — Guard (alistp nth-alist-acc).

    Definitions and Theorems

    Function: stv-nth-extraction-alist

    (defun stv-nth-extraction-alist (n lines nth-alist-acc)
      (declare (xargs :guard (and (natp n)
                                  (true-list-listp lines)
                                  (alistp nth-alist-acc))))
      (let ((__function__ 'stv-nth-extraction-alist))
        (declare (ignorable __function__))
        (b* (((when (atom lines)) nth-alist-acc)
             (line1 (car lines))
             ((cons name entries) line1)
             (entry (nth n entries))
             ((when (eq entry '_))
              (stv-nth-extraction-alist n (cdr lines)
                                        nth-alist-acc))
             (nth-alist-acc
                  (safe-pairlis-onto-acc name entry nth-alist-acc)))
          (stv-nth-extraction-alist n (cdr lines)
                                    nth-alist-acc))))