• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-fixpoint-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Moddb
        • Svex-compilation
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
            • 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
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Svex

    Svex-kind

    Get the kind (tag) of a svex structure.

    Signature
    (svex-kind x) → kind
    Arguments
    x — Guard (svex-p x).

    Definitions and Theorems

    Function: svex-kind$inline

    (defun svex-kind$inline (x)
           (declare (xargs :guard (svex-p x)))
           (let ((__function__ 'svex-kind))
                (declare (ignorable __function__))
                (cond ((if (atom x)
                           (or (stringp x) (and x (symbolp x)))
                           (eq (car x) :var))
                       :var)
                      ((or (atom x) (integerp (car x)))
                       :quote)
                      (t :call))))

    Theorem: svex-kind-possibilities

    (defthm
     svex-kind-possibilities
     (or (equal (svex-kind x) :var)
         (equal (svex-kind x) :quote)
         (equal (svex-kind x) :call))
     :rule-classes ((:forward-chaining :trigger-terms ((svex-kind x)))))