• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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-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-make-edgetable

    Signature
    (vl-make-edgetable edges) → table
    Arguments
    edges — Guard (and (vl-evatomlist-p edges) (vl-evatomlist-all-have-edges-p edges) (vl-idexprlist-p (vl-evatomlist->exprs edges)) (not (member nil (vl-exprlist->finaltypes (vl-evatomlist->exprs edges)))) (all-equalp 1 (vl-exprlist->finalwidths (vl-evatomlist->exprs edges)))) .
    Returns
    table — Type (vl-edgetable-p table), given the guard.

    Definitions and Theorems

    Function: vl-make-edgetable

    (defun vl-make-edgetable (edges)
     (declare
      (xargs
       :guard
       (and
        (vl-evatomlist-p edges)
        (vl-evatomlist-all-have-edges-p edges)
        (vl-idexprlist-p (vl-evatomlist->exprs edges))
        (not
           (member
                nil
                (vl-exprlist->finaltypes (vl-evatomlist->exprs edges))))
        (all-equalp
             1
             (vl-exprlist->finalwidths (vl-evatomlist->exprs edges))))))
     (let ((__function__ 'vl-make-edgetable))
       (declare (ignorable __function__))
       (if (atom edges)
           nil
         (acons (vl-edgesynth-edge->name (car edges))
                (car edges)
                (vl-make-edgetable (cdr edges))))))

    Theorem: vl-edgetable-p-of-vl-make-edgetable

    (defthm vl-edgetable-p-of-vl-make-edgetable
     (implies
      (and
       (force (vl-evatomlist-p edges))
       (force (vl-evatomlist-all-have-edges-p edges))
       (force (vl-idexprlist-p (vl-evatomlist->exprs edges)))
       (force
        (not
         ((lambda (acl2::x acl2::l)
           (return-last
                'acl2::mbe1-raw
                (acl2::member-eql-exec acl2::x acl2::l)
                (return-last
                     'progn
                     (acl2::member-eql-exec$guard-check acl2::x acl2::l)
                     (member-equal acl2::x acl2::l))))
          'nil
          (vl-exprlist->finaltypes (vl-evatomlist->exprs edges)))))
       (force
         (all-equalp
              '1
              (vl-exprlist->finalwidths (vl-evatomlist->exprs edges)))))
      (b* ((table (vl-make-edgetable edges)))
        (vl-edgetable-p table)))
     :rule-classes :rewrite)