• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
        • Soft-future-work
        • Soft-macros
        • Updates-to-workshop-material
        • Soft-implementation
        • Soft-notions
          • Second-order-functions
            • Defsoft
              • Defsoft-implementation
                • Defsoft-fn
                • Ensure-defun-sk-rule-same-funvars
                • Ensure-wfrel-o<
                • Defsoft-macro-definition
              • Defun2
              • Defun-sk2
              • Defchoose2
              • Define-sk2
              • Defund-sk2
              • Define2
              • Defund2
            • Second-order-function-instances
            • Function-variable-instantiation
            • Second-order-theorems
            • Function-variable-dependency
            • Function-variables
            • Second-order-theorem-instances
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • Std/util
            • Defdata
            • Defrstobj
            • Seq
            • Match-tree
            • Defrstobj
            • With-supporters
            • Def-partial-measure
            • Template-subst
            • Soft
              • Soft-future-work
              • Soft-macros
              • Updates-to-workshop-material
              • Soft-implementation
              • Soft-notions
                • Second-order-functions
                  • Defsoft
                    • Defsoft-implementation
                      • Defsoft-fn
                      • Ensure-defun-sk-rule-same-funvars
                      • Ensure-wfrel-o<
                      • Defsoft-macro-definition
                    • Defun2
                    • Defun-sk2
                    • Defchoose2
                    • Define-sk2
                    • Defund-sk2
                    • Define2
                    • Defund2
                  • Second-order-function-instances
                  • Function-variable-instantiation
                  • Second-order-theorems
                  • Function-variable-dependency
                  • Function-variables
                  • Second-order-theorem-instances
              • Defthm-domain
              • Event-macros
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Defsoft-implementation

      Defsoft-macro-definition

      Definition of the defsoft macro.

      Macro: defsoft

      (defmacro defsoft (fn)
       (cons
        'with-output
        (cons
         ':gag-mode
         (cons
          'nil
          (cons
           ':off
           (cons
            (set-difference-eq acl2::*valid-output-names*
                               '(error observation))
            (cons
             ':stack
             (cons
              ':push
              (cons
               (cons
                'make-event
                (cons
                 (cons
                  'defsoft-fn
                  (cons
                      (cons 'quote (cons fn 'nil))
                      (cons (cons 'cons
                                  (cons ''defsoft
                                        (cons (cons 'quote (cons fn 'nil))
                                              'nil)))
                            '(state))))
                 '(:on-behalf-of :quiet!)))
               'nil)))))))))

      Macro: defsoft

      (defmacro acl2::defsoft (&rest args)
        (cons 'defsoft args))