• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
          • Fgl-object-eval
          • Fgl-object-p
          • G-map
          • G-ite
          • G-cons
          • G-concrete
          • G-apply
            • Make-g-apply
              • G-apply->args
              • G-apply->fn
              • Change-g-apply
            • G-integer
            • Fgl-object-equiv
            • G-boolean
            • G-var
            • Fgl-bitvector
            • Fgl-object-kind
            • Summarize-fgl-object
            • Fgl-make-isomorphic
            • Fgl-object-alist
            • Fgl-objectlist
            • Fgl-object-fix
            • Fgl-object-count
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-counterexamples
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • G-apply

    Make-g-apply

    Basic constructor macro for g-apply structures.

    Syntax
    (make-g-apply [:fn <fn>] 
                  [:args <args>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-g-apply

    (defmacro make-g-apply (&rest args)
      (std::make-aggregate 'g-apply
                           args '((:fn) (:args))
                           'make-g-apply
                           nil))

    Function: g-apply

    (defun g-apply (fn args)
      (declare (xargs :guard (and (pseudo-fnsym-p fn)
                                  (fgl-objectlist-p args))))
      (declare (xargs :guard t))
      (let ((__function__ 'g-apply))
        (declare (ignorable __function__))
        (b* ((fn (mbe :logic (pseudo-fnsym-fix fn)
                      :exec fn))
             (args (mbe :logic (fgl-objectlist-fix args)
                        :exec args)))
          (cons :g-apply (cons fn args)))))