• 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
            • Stmtrewrite
            • Cblock
            • Vl-always-convert-regports
            • Vl-always-convert-regs
            • Stmttemps
            • Edgesplit
            • Vl-always-check-reg
            • Vl-convert-regs
            • Latchsynth
              • Vl-module-latchsynth
              • Vl-modulelist-latchsynth-aux
                • Vl-modulelist-latchsynth
                • Vl-design-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
    • Latchsynth

    Vl-modulelist-latchsynth-aux

    Signature
    (vl-modulelist-latchsynth-aux x careful-p vecp) 
      → 
    (mv new-x addmods)
    Arguments
    x — Guard (vl-modulelist-p x).
    careful-p — Guard (booleanp careful-p).
    Returns
    new-x — Type (vl-modulelist-p new-x), given the guard.
    addmods — Type (vl-modulelist-p addmods), given the guard.

    Definitions and Theorems

    Function: vl-modulelist-latchsynth-aux

    (defun vl-modulelist-latchsynth-aux (x careful-p vecp)
      (declare (xargs :guard (and (vl-modulelist-p x)
                                  (booleanp careful-p))))
      (let ((__function__ 'vl-modulelist-latchsynth-aux))
        (declare (ignorable __function__))
        (b* (((when (atom x)) (mv nil nil))
             ((mv car addmods1)
              (vl-module-latchsynth (car x)
                                    careful-p vecp))
             ((mv cdr addmods2)
              (vl-modulelist-latchsynth-aux (cdr x)
                                            careful-p vecp)))
          (mv (cons car cdr)
              (append-without-guard addmods1 addmods2)))))

    Theorem: vl-modulelist-p-of-vl-modulelist-latchsynth-aux.new-x

    (defthm vl-modulelist-p-of-vl-modulelist-latchsynth-aux.new-x
      (implies (and (force (vl-modulelist-p x))
                    (force (booleanp careful-p)))
               (b* (((mv ?new-x ?addmods)
                     (vl-modulelist-latchsynth-aux x careful-p vecp)))
                 (vl-modulelist-p new-x)))
      :rule-classes :rewrite)

    Theorem: vl-modulelist-p-of-vl-modulelist-latchsynth-aux.addmods

    (defthm vl-modulelist-p-of-vl-modulelist-latchsynth-aux.addmods
      (implies (and (force (vl-modulelist-p x))
                    (force (booleanp careful-p)))
               (b* (((mv ?new-x ?addmods)
                     (vl-modulelist-latchsynth-aux x careful-p vecp)))
                 (vl-modulelist-p addmods)))
      :rule-classes :rewrite)