• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • 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
              • Vl-edgesynth-stmt-p
              • Vl-edgetable-p
              • Vl-always-edgesynth
              • Vl-edgesynth-merge-data-ifs
              • Vl-assignstmtlist->controls
              • Vl-assignstmtlist->lhses
              • Vl-assignstmtlist->rhses
              • Vl-edgesynth-flatten-data-ifs
              • Vl-edgesynth-pattern-match
              • Nedgeflop
              • Vl-edgesynth-make-data-inputs
              • Vl-edgesynth-make-clock-inputs
              • Vl-edgesynth-stmt-clklift
              • Vl-edgesynth-blockelim
              • Vl-alwayslist-edgesynth
                • Vl-edgesynth-create
                • Vl-edgesynth-classify-iftest
                • Vl-module-edgesynth
                • Vl-edgesynth-normalize-ifs
                • Vl-edgesynth-delays-okp
                • Vl-edgesynth-stmt-assigns
                • Vl-make-edgetable
                • Vl-edgesynth-sort-edges
                • Vl-modulelist-edgesynth
                • Vl-modulelist-edgesynth-aux
                • Vl-assignstmtlist-p
                • Vl-edgesynth-edgelist-p
                • Vl-assigncontrols-p
                • Vl-edgesynth-stmt-conditions
                • Vl-edgesynth-edge-p
                • Vl-design-edgesynth
                • Vl-edgesynth-get-delay
                • Vl-edgesynth-iftype-p
                • Edge-tables
              • 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
              • 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
    • Edgesynth

    Vl-alwayslist-edgesynth

    Extends vl-always-edgesynth to a list of always blocks.

    Signature
    (vl-alwayslist-edgesynth x scary-regs vars cvtregs delta &key vecp) 
      → 
    (mv new-x cvtregs delta)
    Arguments
    x — Guard (vl-alwayslist-p x).
    scary-regs — Guard (string-listp scary-regs).
    vars — Guard (vl-vardecllist-p vars).
    cvtregs — Guard (string-listp cvtregs).
    delta — Guard (vl-delta-p delta).
    Returns
    new-x — Type (vl-alwayslist-p new-x), given the guard.
    cvtregs — Type (string-listp cvtregs), given the guard.
    delta — Type (vl-delta-p delta), given the guard.

    Definitions and Theorems

    Function: vl-alwayslist-edgesynth-fn

    (defun vl-alwayslist-edgesynth-fn
           (x scary-regs vars cvtregs delta vecp)
      (declare (xargs :guard (and (vl-alwayslist-p x)
                                  (string-listp scary-regs)
                                  (vl-vardecllist-p vars)
                                  (string-listp cvtregs)
                                  (vl-delta-p delta))))
      (let ((__function__ 'vl-alwayslist-edgesynth))
        (declare (ignorable __function__))
        (b* (((when (atom x)) (mv nil cvtregs delta))
             ((mv new-car? cvtregs delta)
              (vl-always-edgesynth (car x)
                                   scary-regs vars cvtregs delta
                                   :vecp vecp))
             ((mv new-cdr cvtregs delta)
              (vl-alwayslist-edgesynth (cdr x)
                                       scary-regs vars cvtregs delta
                                       :vecp vecp))
             (new-x (if new-car? (cons new-car? new-cdr)
                      new-cdr)))
          (mv new-x cvtregs delta))))

    Theorem: vl-alwayslist-p-of-vl-alwayslist-edgesynth.new-x

    (defthm vl-alwayslist-p-of-vl-alwayslist-edgesynth.new-x
      (implies (and (force (vl-alwayslist-p x))
                    (force (string-listp scary-regs))
                    (force (vl-vardecllist-p vars))
                    (force (string-listp cvtregs))
                    (force (vl-delta-p delta)))
               (b* (((mv ?new-x ?cvtregs ?delta)
                     (vl-alwayslist-edgesynth-fn
                          x scary-regs vars cvtregs delta vecp)))
                 (vl-alwayslist-p new-x)))
      :rule-classes :rewrite)

    Theorem: string-listp-of-vl-alwayslist-edgesynth.cvtregs

    (defthm string-listp-of-vl-alwayslist-edgesynth.cvtregs
      (implies (and (force (vl-alwayslist-p x))
                    (force (string-listp scary-regs))
                    (force (vl-vardecllist-p vars))
                    (force (string-listp cvtregs))
                    (force (vl-delta-p delta)))
               (b* (((mv ?new-x ?cvtregs ?delta)
                     (vl-alwayslist-edgesynth-fn
                          x scary-regs vars cvtregs delta vecp)))
                 (string-listp cvtregs)))
      :rule-classes :rewrite)

    Theorem: vl-delta-p-of-vl-alwayslist-edgesynth.delta

    (defthm vl-delta-p-of-vl-alwayslist-edgesynth.delta
      (implies (and (force (vl-alwayslist-p x))
                    (force (string-listp scary-regs))
                    (force (vl-vardecllist-p vars))
                    (force (string-listp cvtregs))
                    (force (vl-delta-p delta)))
               (b* (((mv ?new-x ?cvtregs ?delta)
                     (vl-alwayslist-edgesynth-fn
                          x scary-regs vars cvtregs delta vecp)))
                 (vl-delta-p delta)))
      :rule-classes :rewrite)