• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • 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-simple-delays->amounts
                • Vl-edgesynth-simple-delays-p
                • Vl-edgesynth-simple-delay->amount
                • Vl-edgesynth-simple-delay-p
              • 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-edgesynth-delays-okp

Check that internal delays on assignments are simple enough to process and compatible with one another.

Signature
(vl-edgesynth-delays-okp x) → okp
Arguments
x — Guard (vl-assigncontrols-p x).
Returns
okp — Type (booleanp okp).

Definitions and Theorems

Function: vl-edgesynth-delays-okp

(defun vl-edgesynth-delays-okp (x)
 (declare (xargs :guard (vl-assigncontrols-p x)))
 (let ((__function__ 'vl-edgesynth-delays-okp))
  (declare (ignorable __function__))
  (and
      (consp x)
      (vl-edgesynth-simple-delays-p x)
      (all-equalp (vl-edgesynth-simple-delay->amount (first x))
                  (vl-edgesynth-simple-delays->amounts (rest x))))))

Theorem: booleanp-of-vl-edgesynth-delays-okp

(defthm booleanp-of-vl-edgesynth-delays-okp
  (b* ((okp (vl-edgesynth-delays-okp x)))
    (booleanp okp))
  :rule-classes :type-prescription)

Theorem: vl-edgesynth-simple-delays-p-when-vl-edgesynth-delays-okp

(defthm vl-edgesynth-simple-delays-p-when-vl-edgesynth-delays-okp
  (implies (vl-edgesynth-delays-okp x)
           (vl-edgesynth-simple-delays-p x)))

Theorem: consp-when-vl-edgesynth-delays-okp

(defthm consp-when-vl-edgesynth-delays-okp
  (implies (vl-edgesynth-delays-okp x)
           (consp x))
  :rule-classes :compound-recognizer)

Subtopics

Vl-edgesynth-simple-delays->amounts
(vl-edgesynth-simple-delays->amounts x) maps vl-edgesynth-simple-delay->amount across a list.
Vl-edgesynth-simple-delays-p
(vl-edgesynth-simple-delays-p x) recognizes lists where every element satisfies vl-edgesynth-simple-delay-p.
Vl-edgesynth-simple-delay->amount
Extract the delay amount from a simple enough delay, if any.
Vl-edgesynth-simple-delay-p
Recognizer for empty delays and simple integer delays like #5.