• 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
            • Processed-stv-p
            • Stv-fully-general-simulation-run
            • Stv-fully-general-in-alists
            • Stv-run-esim-debug
            • Stv-extract-relevant-signals
            • Stv-fully-general-st-alist
              • Stv-run-esim
            • 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-process

    Stv-fully-general-st-alist

    Create the sexpr-alist to use as the initial state for fully general simulations of a module.

    Signature
    (stv-fully-general-st-alist mod) → state-alist
    Arguments
    mod — The esim module.
    Returns
    state-alist — Alist binding every state bit |foo| to |foo.INIT|.

    These names (obviously) can't clash with each other, or with those produced by stv-fully-general-in-alists.

    We memoize this to ensure we'll get the same initial state alist across different STVs that target the same module.

    Definitions and Theorems

    Function: stv-fully-general-st-alist

    (defun
     stv-fully-general-st-alist (mod)
     (declare (xargs :guard t))
     (let
      ((__function__ 'stv-fully-general-st-alist))
      (declare (ignorable __function__))
      (b*
        ((sts (mod-state mod))
         (flat-sts (pat-flatten sts nil))
         ((unless (symbol-listp flat-sts))
          (raise
               "Expected mod-state to produce a symbol pattern for ~x0."
               (gpl :n mod))))
        (pairlis$ flat-sts
                  (stv-suffix-signals flat-sts ".INIT")))))