• 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
            • Svex-xeval
            • Svex-mono-eval
            • Svex-eval
            • Svex-apply
            • Svex-env
              • Svex-env-p
              • Svex-env-reduce
              • Svex-envs-similar
              • Svex-envs-equivalent
              • Svex-env-fix
              • Svex-env-extract
              • Svex-env-lookup
              • Svex-env-acons
              • Svex-env-<<=
              • Svarlist-x-subst
              • Svex-env-equiv
              • Svex-env-boundp
              • Svarlist-x-env
              • Svex-env-fastlookup
              • Svex-alist-eval
              • Svar-boolmasks-lookup
              • Svex-s4eval
              • Svexlist-unquote
              • Svex-alist-eval-for-symbolic
              • Svexlist-eval
              • Svexlist-quotesp
              • Svar-boolmasks
              • Svexlist-s4eval
              • Svexlist-eval-for-symbolic
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svex-env

    Svex-env-fastlookup

    Fast lookup in a fast svex-env.

    Signature
    (svex-env-fastlookup var env) → *
    Arguments
    var — Guard (svar-p var).
    env — Must be a fast-alist.
        Guard (svex-env-p env).

    Definitions and Theorems

    Function: svex-env-fastlookup

    (defun svex-env-fastlookup (var env)
      (declare (xargs :guard (and (svar-p var) (svex-env-p env))))
      (let ((__function__ 'svex-env-fastlookup))
        (declare (ignorable __function__))
        (mbe :logic (svex-env-lookup var env)
             :exec
             (let ((look (hons-get var env)))
               (if look (cdr look) (4vec-x))))))