• 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
            • Svar
              • Svar-p
              • Svar-fix
              • Make-svar
              • Svar-equiv
              • Svar->props
                • Svar->delay
                • Svar->bits
                • Change-svar
                • Svarlist
                • Svar->name
                • Svar-map
                • Svar-alist
              • 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
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svar

    Svar->props

    Get the props field from a svar.

    Signature
    (svar->props x) → props
    Arguments
    x — Guard (svar-p x).
    Returns
    props — Type (svar-proplist-p props).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: svar->props$inline

    (defun svar->props$inline (x)
     (declare (xargs :guard (svar-p x)))
     (declare (xargs :guard t))
     (let ((__function__ 'svar->props))
      (declare (ignorable __function__))
      (mbe
       :logic
       (b* ((x (and t x)))
         (svar-proplist-fix (if (atom x)
                                nil
                              (b* ((rest (cddr x))
                                   ((when (integerp rest)) nil)
                                   ((when (integerp (first rest))) nil))
                                (cddr rest)))))
       :exec
       (if (atom x)
           nil
         (b* ((rest (cddr x))
              ((when (integerp rest)) nil)
              ((when (integerp (first rest))) nil))
           (cddr rest))))))

    Theorem: svar-proplist-p-of-svar->props

    (defthm svar-proplist-p-of-svar->props
      (b* ((props (svar->props$inline x)))
        (svar-proplist-p props))
      :rule-classes :rewrite)

    Theorem: svar->props$inline-of-svar-fix-x

    (defthm svar->props$inline-of-svar-fix-x
      (equal (svar->props$inline (svar-fix x))
             (svar->props$inline x)))

    Theorem: svar->props$inline-svar-equiv-congruence-on-x

    (defthm svar->props$inline-svar-equiv-congruence-on-x
      (implies (svar-equiv x x-equiv)
               (equal (svar->props$inline x)
                      (svar->props$inline x-equiv)))
      :rule-classes :congruence)