• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
          • Bit-blasting
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
          • Values
            • 4vec
            • 4vec-<<=
            • 3vec
            • 2vec
              • 2vec-p
              • If-2vec-p
              • 2vec->val
              • 2vecx
              • 2vecnatx
              • 4vec-x
              • 4vec-1x
              • 4vec-1z
              • 4vec-z
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • 2vec

    2vec->val

    Extract the upper/lower value (both the same) from a 2vec.

    Signature
    (2vec->val x) → *
    Arguments
    x — Guard (and (4vec-p x) (2vec-p x)).

    Definitions and Theorems

    Function: 2vec->val$inline

    (defun 2vec->val$inline (x)
      (declare (xargs :guard (and (4vec-p x) (2vec-p x))))
      (let ((__function__ '2vec->val))
        (declare (ignorable __function__))
        (mbe :logic (4vec->upper x) :exec x)))