• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
      • Std/lists
      • Omaps
      • Std/alists
      • Obags
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
          • Defsurj
          • Defmapping-implementation
            • Defmapping-event-generation
            • Defmapping-check-redundancy
            • Defmapping-table
              • Defmapping-infop
              • Defmapping-lookup
              • Defmapping-filter-call
                • Maybe-defmapping-infop
                • *defmapping-table-name*
              • Defmapping-fn
              • Defmapping-input-processing
              • Defmapping-macro-definition
            • Defiso
            • Definj
          • Defenum
          • Add-io-pairs
          • Defalist
          • Defmapappend
          • Returns-specifiers
          • Defarbrec
          • Define-sk
          • Defines
          • Error-value-tuples
          • Defmax-nat
          • Defmin-int
          • Deftutorial
          • Extended-formals
          • Defrule
          • Defval
          • Defsurj
          • Defiso
          • Defconstrained-recognizer
          • Deffixer
          • Defmvtypes
          • Defconsts
          • Defthm-unsigned-byte-p
          • Support
          • Defthm-signed-byte-p
          • Defthm-natp
          • Defund-sk
          • Defmacro+
          • Defsum
          • Defthm-commutative
          • Definj
          • Defirrelevant
          • Defredundant
        • Std/strings
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defmapping-table

    Defmapping-filter-call

    Remove any :print and :show-only inputs from a call of defmapping or its wrappers.

    Signature
    (defmapping-filter-call call) → call$
    Arguments
    call — Guard (pseudo-event-formp call).
    Returns
    call$ — A pseudo-event-formp.

    As explained in the documentation, these two options are ignored when checking redundancy.

    Definitions and Theorems

    Function: defmapping-filter-call

    (defun defmapping-filter-call (call)
     (declare (xargs :guard (pseudo-event-formp call)))
     (declare
      (xargs
          :guard (and (>= (len call) 6)
                      (member-eq (car call)
                                 '(defmapping defiso defsurj definj)))))
     (let ((__function__ 'defmapping-filter-call))
      (declare (ignorable __function__))
      (b*
       ((number-of-required-args 5)
        (number-of-elements-before-options (1+ number-of-required-args))
        (options (nthcdr number-of-elements-before-options call))
        (options (remove-keyword :print options))
        (options (remove-keyword :show-only options))
        (call$ (append (take number-of-elements-before-options call)
                       options)))
       call$)))