• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
          • Expr-simp
          • Trunc
          • Always-top
            • Edgesynth
            • Stmtrewrite
            • Cblock
            • Vl-always-convert-regports
            • Vl-always-convert-regs
            • Stmttemps
            • Edgesplit
            • Vl-always-check-reg
            • Vl-convert-regs
            • Latchsynth
            • Vl-always-check-regs
            • Vl-match-always-at-some-edges
            • Unelse
            • Vl-always-convert-reg
            • Vl-design-always-backend
            • Vl-stmt-guts
            • Vl-always-convert-regport
            • Vl-always-scary-regs
              • Vl-always-scary-regs-aux
            • Eliminitial
            • Ifmerge
            • Vl-edge-control-p
            • Elimalways
          • Gatesplit
          • Gate-elim
          • Expression-optimization
          • Elim-supplies
          • Wildelim
          • Drop-blankports
          • Clean-warnings
          • Addinstnames
          • Custom-transform-hooks
          • Annotate
          • Latchcode
          • Elim-unused-vars
          • Problem-modules
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Always-top

Vl-always-scary-regs

Determine which lvalues are assigned to in multiple always blocks.

Signature
(vl-always-scary-regs x) → names
Arguments
x — Guard (vl-alwayslist-p x).
Returns
names — Type (and (string-listp names) (setp names)).

These registers are generally too complicated to do anything sensible with.

Definitions and Theorems

Function: vl-always-scary-regs

(defun vl-always-scary-regs (x)
  (declare (xargs :guard (vl-alwayslist-p x)))
  (let ((__function__ 'vl-always-scary-regs))
    (declare (ignorable __function__))
    (redundant-mergesort
         (duplicated-members (vl-always-scary-regs-aux x)))))

Theorem: return-type-of-vl-always-scary-regs

(defthm return-type-of-vl-always-scary-regs
  (b* ((names (vl-always-scary-regs x)))
    (and (string-listp names) (setp names)))
  :rule-classes :rewrite)

Theorem: vl-always-scary-regs-of-vl-alwayslist-fix-x

(defthm vl-always-scary-regs-of-vl-alwayslist-fix-x
  (equal (vl-always-scary-regs (vl-alwayslist-fix x))
         (vl-always-scary-regs x)))

Theorem: vl-always-scary-regs-vl-alwayslist-equiv-congruence-on-x

(defthm vl-always-scary-regs-vl-alwayslist-equiv-congruence-on-x
  (implies (vl-alwayslist-equiv x x-equiv)
           (equal (vl-always-scary-regs x)
                  (vl-always-scary-regs x-equiv)))
  :rule-classes :congruence)

Subtopics

Vl-always-scary-regs-aux
Returns a list where reg names are repeated N times if they are repeated in N different always blocks.