• 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
            • 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

    Make-svex-call

    Basic constructor macro for svex-call structures.

    Syntax
    (make-svex-call [:fn <fn>] 
                    [:args <args>]) 
    

    This is the usual way to construct svex-call structures. It simply conses together a structure with the specified fields.

    This macro generates a new svex-call structure from scratch. See also change-svex-call, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-svex-call

    (defmacro make-svex-call (&rest args)
      (std::make-aggregate 'svex-call
                           args '((:fn) (:args))
                           'make-svex-call
                           nil))

    Function: svex-call

    (defun svex-call (fn args)
      (declare (xargs :guard (and (fnsym-p fn) (svexlist-p args))))
      (declare (xargs :guard t))
      (let ((__function__ 'svex-call))
        (declare (ignorable __function__))
        (b* ((fn (mbe :logic (fnsym-fix fn) :exec fn))
             (args (mbe :logic (svexlist-fix args)
                        :exec args)))
          (hons fn args))))