• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
        • Defenum
        • Add-io-pairs
        • Defalist
        • Defmapappend
        • Returns-specifiers
        • Defarbrec
          • Defarbrec-implementation
            • Defarbrec-event-generation
            • Defarbrec-input-processing
              • Defarbrec-process-terminates-name
              • Defarbrec-process-body
              • Defarbrec-process-inputs
              • Defarbrec-process-update-names
              • Defarbrec-process-measure-name
              • Defarbrec-default-update-names
              • Defarbrec-process-nonterminating
                • Defarbrec-process-x1...xn
                • Defarbrec-process-print
                • Defarbrec-process-fn
                • Defarbrec-process-show-only
                • Defarbrec-printp
              • Defarbrec-check-redundancy
              • Defarbrec-fn
              • Defarbrec-table
              • Defarbrec-macro-definition
          • Defines
          • Define-sk
          • 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
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • 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
              • Defprojection
              • Deflist
              • Defaggregate
              • Define
              • Defmapping
              • Defenum
              • Add-io-pairs
              • Defalist
              • Defmapappend
              • Returns-specifiers
              • Defarbrec
                • Defarbrec-implementation
                  • Defarbrec-event-generation
                  • Defarbrec-input-processing
                    • Defarbrec-process-terminates-name
                    • Defarbrec-process-body
                    • Defarbrec-process-inputs
                    • Defarbrec-process-update-names
                    • Defarbrec-process-measure-name
                    • Defarbrec-default-update-names
                    • Defarbrec-process-nonterminating
                      • Defarbrec-process-x1...xn
                      • Defarbrec-process-print
                      • Defarbrec-process-fn
                      • Defarbrec-process-show-only
                      • Defarbrec-printp
                    • Defarbrec-check-redundancy
                    • Defarbrec-fn
                    • Defarbrec-table
                    • Defarbrec-macro-definition
                • Defines
                • Define-sk
                • 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
              • Defdata
              • Defrstobj
              • Seq
              • Match-tree
              • Defrstobj
              • With-supporters
              • Def-partial-measure
              • Template-subst
              • Soft
              • 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
      • Defarbrec-input-processing

      Defarbrec-process-nonterminating

      Process the :nonterminating input.

      Signature
      (defarbrec-process-nonterminating nonterminating x1...xn$ ctx state) 
        → 
      (mv erp nonterminating$ state)
      Arguments
      x1...xn$ — Guard (symbol-listp x1...xn$).
      Returns
      nonterminating$ — A pseudo-termp.

      Return the translated form of the term.

      Note that the check that the term calls only logic-mode functions ensures that the term does not call the program-mode function fn.

      Definitions and Theorems

      Function: defarbrec-process-nonterminating

      (defun defarbrec-process-nonterminating
             (nonterminating x1...xn$ ctx state)
       (declare (xargs :stobjs (state)))
       (declare (xargs :guard (symbol-listp x1...xn$)))
       (let ((__function__ 'defarbrec-process-nonterminating))
         (declare (ignorable __function__))
         (b*
           (((er (list term stobjs-out))
             (ensure-value-is-untranslated-term$
                  nonterminating
                  "The :NONTERMINATING input" t nil))
            (description
                 (msg "The term ~x0 supplied as the :NONTERMINATING input"
                      nonterminating))
            ((er &)
             (ensure-term-free-vars-subset$
                  term x1...xn$ description t nil))
            ((er &)
             (ensure-term-logic-mode$ term description t nil))
            ((er &)
             (ensure-function/lambda/term-number-of-results$
                  stobjs-out 1 description t nil))
            ((er &)
             (ensure-term-no-stobjs$ stobjs-out description t nil)))
           (value term))))