• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
              • Svex-select-staticify-assignment
              • Svex-select-fix
              • Svex-select-case
              • Svex-select-split-static
              • Svex-select-p
              • Svex-selects-merge
              • Svex-select-replace-indices
              • Svex-select-vars
              • Svex-select-to-svex-with-substitution
              • Svex-select-equiv
              • Svex-select-part
              • Svex-select-count
              • Svex-select-var
                • Svex-select-var->width
                • Svex-select-var->name
                • Make-svex-select-var
                  • Change-svex-select-var
                • Svex-select-to-lhs
                • Svex-select-staticp
                • Svex-select-inner-var
                • Svex-select->indices
                • Svex-select-to-svex
                • Svex-select-inner-width
                • Svex-select->width
                • Svex-select-kind
              • Svex-alist
              • Svex-equiv
              • Svexlist
              • Svex-call
              • Fnsym
              • Svex-quote
              • Svex-var
              • Svcall-rw
              • Svcall
              • Svex-kind
              • Svcall*
              • Svex-fix
              • Svex-count
              • Svex-1z
              • Svex-1x
              • Svex-z
              • Svex-x
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svex-select-var

    Make-svex-select-var

    Basic constructor macro for svex-select-var structures.

    Syntax
    (make-svex-select-var [:name <name>] 
                          [:width <width>]) 
    

    This is the usual way to construct svex-select-var structures. It simply conses together a structure with the specified fields.

    This macro generates a new svex-select-var structure from scratch. See also change-svex-select-var, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svex-select-var

    (defmacro make-svex-select-var (&rest args)
      (std::make-aggregate 'svex-select-var
                           args '((:name) (:width))
                           'make-svex-select-var
                           nil))

    Function: svex-select-var

    (defun svex-select-var (name width)
      (declare (xargs :guard (and (svar-p name) (natp width))))
      (declare (xargs :guard t))
      (let ((__function__ 'svex-select-var))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (svar-fix name) :exec name))
             (width (mbe :logic (nfix width) :exec width)))
          (cons :var (std::prod-cons name width)))))