• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • 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
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-compile

    Stv-forge-state-bit

    Generate the name for a state bit, like foo!bar!baz!inst!S, given a list of instance names and the name of the state bit.

    Signature
    (stv-forge-state-bit instnames st-name) → full-name
    Arguments
    instnames — List of instance names.
    st-name — Guard (atom st-name).
    Returns
    full-name — Type (atom full-name), given the guard.

    Definitions and Theorems

    Function: stv-forge-state-bit

    (defun stv-forge-state-bit (instnames st-name)
           (declare (xargs :guard (atom st-name)))
           (let ((__function__ 'stv-forge-state-bit))
                (declare (ignorable __function__))
                (if (atom instnames)
                    st-name
                    (prefix-atom (stringify (car instnames))
                                 "!"
                                 (stv-forge-state-bit (cdr instnames)
                                                      st-name)))))

    Theorem: atom-of-stv-forge-state-bit

    (defthm
      atom-of-stv-forge-state-bit
      (implies (and (atom st-name))
               (b* ((full-name (stv-forge-state-bit instnames st-name)))
                   (atom full-name)))
      :rule-classes :rewrite)