• 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-alist
            • Svex-equiv
            • Svexlist
            • Svex-call
              • Make-svex-call
              • Svex-call->args
              • Svex-call->fn
                • Change-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-call

    Svex-call->fn

    Get the fn field from a svex-call.

    Signature
    (svex-call->fn x) → fn
    Arguments
    x — Guard (svex-p x).
    Returns
    fn — Type (fnsym-p fn).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: svex-call->fn$inline

    (defun svex-call->fn$inline (x)
      (declare (xargs :guard (svex-p x)))
      (declare (xargs :guard (equal (svex-kind x) :call)))
      (let ((__function__ 'svex-call->fn))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (svex-kind x) :call) x)))
               (fnsym-fix (car x)))
             :exec (car x))))

    Theorem: fnsym-p-of-svex-call->fn

    (defthm fnsym-p-of-svex-call->fn
      (b* ((fn (svex-call->fn$inline x)))
        (fnsym-p fn))
      :rule-classes :rewrite)

    Theorem: svex-call->fn$inline-of-svex-fix-x

    (defthm svex-call->fn$inline-of-svex-fix-x
      (equal (svex-call->fn$inline (svex-fix x))
             (svex-call->fn$inline x)))

    Theorem: svex-call->fn$inline-svex-equiv-congruence-on-x

    (defthm svex-call->fn$inline-svex-equiv-congruence-on-x
      (implies (svex-equiv x x-equiv)
               (equal (svex-call->fn$inline x)
                      (svex-call->fn$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: svex-call->fn-when-wrong-kind

    (defthm svex-call->fn-when-wrong-kind
      (implies (not (equal (svex-kind x) :call))
               (equal (svex-call->fn x)
                      (fnsym-fix nil))))