• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-part->subexp
                • Svex-select-part->width
                • Make-svex-select-part
                  • Svex-select-part->lsb
                  • Change-svex-select-part
                • Svex-select-count
                • 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-part

    Make-svex-select-part

    Basic constructor macro for svex-select-part structures.

    Syntax
    (make-svex-select-part [:lsb <lsb>] 
                           [:width <width>] 
                           [:subexp <subexp>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svex-select-part

    (defmacro make-svex-select-part (&rest args)
      (std::make-aggregate 'svex-select-part
                           args '((:lsb) (:width) (:subexp))
                           'make-svex-select-part
                           nil))

    Function: svex-select-part

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