• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Std/util
      • Apt
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
        • Evmac-input-hints-p
        • Function-definedness
        • Event-macro-input-processing
        • Event-macro-screen-printing
        • Evmac-input-print-p
        • Make-event-terse
        • Event-macro-applicability-conditions
        • Event-macro-results
        • Template-generators
          • Template-fn-params
          • Template-fn-nonrecursive
          • Gen-template-fn-nonrecursive
          • Event-macro-event-generators
          • Event-macro-proof-preparation
          • Try-event
          • Restore-output?
          • Restore-output
          • Fail-event
          • Cw-event
          • Event-macro-xdoc-constructors
          • Event-macro-intro-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Template-generators

    Gen-template-fn-nonrecursive

    Generate a schematic non-recursive function definition.

    Macro: gen-template-fn-nonrecursive

    (defmacro
     gen-template-fn-nonrecursive
     (fn body &key (arity '1) (logic 't))
     (cons
      'make-event
      (cons
           (cons 'template-fn-nonrecursive
                 (cons (cons 'quote (cons fn 'nil))
                       (cons (cons 'quote (cons body 'nil))
                             (cons (cons 'quote (cons arity 'nil))
                                   (cons (cons 'quote (cons logic 'nil))
                                         'nil)))))
           'nil)))