• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
        • Esim-primitives
        • E-conversion
          • Vl-ealist-p
          • Modinsts-to-eoccs
          • Vl-module-make-esim
          • Exploding-vectors
          • Resolving-multiple-drivers
            • Vl-res-sigma-p
            • Vl-res-rewrite-occs
            • Vl-add-res-modules
            • Vl-make-res-occs
              • Vl-make-n-bit-res-module
              • Vl-make-res-sexpr
                • Vl-make-res-occ
            • Vl-modulelist-make-esims
            • Vl-module-check-e-ok
            • Vl-collect-design-wires
            • Adding-z-drivers
            • Vl-design-to-e
            • Vl-design-to-e-check-ports
            • Vl-design-to-e-main
            • Port-bit-checking
          • Esim-steps
          • Patterns
          • Mod-internal-paths
          • Defmodules
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-make-res-occs

    Vl-make-res-sexpr

    Generate a ACL2::4v-res expression to resolve a list of emodwires.

    (vl-make-res-sexpr args) generates a 4v-sexpr that joins together all of its arguments with ACL2::4v-res operations.

    Note that the RES operation is commutative and associative, so any nest of RES operations is equivalent. So, we just resolve the arguments in a straightforward, right-associative manner.

    Definitions and Theorems

    Function: vl-make-res-sexpr

    (defun vl-make-res-sexpr (args)
      (declare (xargs :guard (vl-emodwirelist-p args)))
      (cond ((atom args) acl2::*4vz-sexpr*)
            ((atom (cdr args)) (car args))
            (t (acl2::hons-list 'acl2::res
                                (car args)
                                (vl-make-res-sexpr (cdr args))))))

    Theorem: 4v-sexpr-vars-of-vl-make-res-sexpr

    (defthm 4v-sexpr-vars-of-vl-make-res-sexpr
      (implies (force (vl-emodwirelist-p args))
               (equal (acl2::4v-sexpr-vars (vl-make-res-sexpr args))
                      (mergesort args))))