• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Isodata
          • Isodata-implementation
            • Isodata-event-generation
            • Isodata-fn
            • Isodata-input-processing
              • Isodata-symbol-isomap-alistp
              • Isodata-isomapp
              • Isodata-pos-isomap-alistp
              • Isodata-process-iso
              • Isodata-process-inputs
                • Isodata-process-arg/res-list-iso
                • Isodata-process-isomaps
                • Isodata-fresh-defiso-thm-names
                • Isodata-process-arg/res-list
                • Isodata-process-arg/res-list-iso-list
                • Isodata-process-res
                • Isodata-process-old
                • Isodata-fresh-defiso-name-with-*s-suffix
                • Isodata-process-newp-of-new-name
                • Isodata-process-undefined
                • Isodata-isomap-listp
              • Isodata-macro-definition
          • Simplify-defun
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Std/util
        • 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
              • Isodata
                • Isodata-implementation
                  • Isodata-event-generation
                  • Isodata-fn
                  • Isodata-input-processing
                    • Isodata-symbol-isomap-alistp
                    • Isodata-isomapp
                    • Isodata-pos-isomap-alistp
                    • Isodata-process-iso
                    • Isodata-process-inputs
                      • Isodata-process-arg/res-list-iso
                      • Isodata-process-isomaps
                      • Isodata-fresh-defiso-thm-names
                      • Isodata-process-arg/res-list
                      • Isodata-process-arg/res-list-iso-list
                      • Isodata-process-res
                      • Isodata-process-old
                      • Isodata-fresh-defiso-name-with-*s-suffix
                      • Isodata-process-newp-of-new-name
                      • Isodata-process-undefined
                      • Isodata-isomap-listp
                    • Isodata-macro-definition
                • Simplify-defun
                • Tailrec
                • Schemalg
                • Restrict
                • Expdata
                • Casesplit
                • Simplify-term
                • Simplify-defun-sk
                • Parteval
                • Solve
                • Wrap-output
                • Propagate-iso
                • Simplify
                • Finite-difference
                • Drop-irrelevant-params
                • Copy-function
                • Lift-iso
                • Rename-params
                • Utilities
                • Simplify-term-programmatic
                • Simplify-defun-sk-programmatic
                • Simplify-defun-programmatic
                • Simplify-defun+
                • Common-options
                • Common-concepts
              • Std/util
              • 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
      • Isodata-input-processing

      Isodata-process-inputs

      Process all the inputs.

      Signature
      (isodata-process-inputs old isomaps predicate undefined 
                              new-name new-enable old-to-new-name 
                              old-to-new-name-suppliedp 
                              old-to-new-enable 
                              old-to-new-enable-suppliedp 
                              new-to-old-name 
                              new-to-old-name-suppliedp 
                              new-to-old-enable 
                              new-to-old-enable-suppliedp 
                              newp-of-new-name 
                              newp-of-new-name-suppliedp 
                              newp-of-new-enable 
                              newp-of-new-enable-suppliedp 
                              verify-guards untranslate 
                              hints print show-only ctx state) 
       
        → 
      (mv erp result state)
      Arguments
      old-to-new-name-suppliedp — Guard (booleanp old-to-new-name-suppliedp).
      old-to-new-enable-suppliedp — Guard (booleanp old-to-new-enable-suppliedp).
      new-to-old-name-suppliedp — Guard (booleanp new-to-old-name-suppliedp).
      new-to-old-enable-suppliedp — Guard (booleanp new-to-old-enable-suppliedp).
      newp-of-new-name-suppliedp — Guard (booleanp newp-of-new-name-suppliedp).
      newp-of-new-enable-suppliedp — Guard (booleanp newp-of-new-enable-suppliedp).
      Returns
      result — A tuple (old$ arg-isomaps res-isomaps xform-stobjs-p undefined$ new$ new-enable$ old-to-new$ old-to-new-enable$ new-to-old$ new-to-old-enable$ newp-of-new$ newp-of-new-enable$ verify-guards$ hints$ names-to-avoid) satisfying (typed-tuplep symbolp isodata-symbol-isomap-alistp isodata-pos-isomap-alistp booleanp pseudo-termp symbolp booleanp symbolp booleanp symbolp booleanp symbolp booleanp booleanp evmac-input-hints-p symbol-listp result).

      Definitions and Theorems

      Function: isodata-process-inputs

      (defun isodata-process-inputs
             (old isomaps predicate undefined
                  new-name new-enable old-to-new-name
                  old-to-new-name-suppliedp
                  old-to-new-enable
                  old-to-new-enable-suppliedp
                  new-to-old-name
                  new-to-old-name-suppliedp
                  new-to-old-enable
                  new-to-old-enable-suppliedp
                  newp-of-new-name
                  newp-of-new-name-suppliedp
                  newp-of-new-enable
                  newp-of-new-enable-suppliedp
                  verify-guards untranslate
                  hints print show-only ctx state)
       (declare (xargs :stobjs (state)))
       (declare
            (xargs :guard (and (booleanp old-to-new-name-suppliedp)
                               (booleanp old-to-new-enable-suppliedp)
                               (booleanp new-to-old-name-suppliedp)
                               (booleanp new-to-old-enable-suppliedp)
                               (booleanp newp-of-new-name-suppliedp)
                               (booleanp newp-of-new-enable-suppliedp))))
       (let ((__function__ 'isodata-process-inputs))
        (declare (ignorable __function__))
        (b*
         (((er old$)
           (isodata-process-old old predicate verify-guards ctx state))
          ((er undefined$)
           (isodata-process-undefined undefined old$ ctx state))
          ((er (list new$ names-to-avoid))
           (process-input-new-name new-name old$ nil ctx state))
          ((er (list old-to-new$ names-to-avoid))
           (process-input-old-to-new-name
                old-to-new-name
                old-to-new-name-suppliedp
                old$ new$ names-to-avoid ctx state))
          ((er (list new-to-old$ names-to-avoid))
           (process-input-new-to-old-name
                new-to-old-name
                new-to-old-name-suppliedp
                old$ new$ names-to-avoid ctx state))
          ((er (list newp-of-new$ names-to-avoid))
           (isodata-process-newp-of-new-name
                newp-of-new-name
                new$ names-to-avoid ctx state))
          ((er verify-guards$)
           (process-input-verify-guards verify-guards old$ ctx state))
          ((er (list arg-isomaps res-isomaps
                     xform-stobjs-p names-to-avoid))
           (isodata-process-isomaps isomaps old$ verify-guards$
                                    names-to-avoid ctx state))
          ((er &)
           (ensure-value-is-boolean$
                predicate "The :PREDICATE input" t nil))
          ((er new-enable$)
           (process-input-new-enable new-enable old$ ctx state))
          ((er old-to-new-enable$)
           (process-input-old-to-new-enable
                old-to-new-enable
                old-to-new-enable-suppliedp ctx state))
          ((er new-to-old-enable$)
           (process-input-new-to-old-enable
                new-to-old-enable
                new-to-old-enable-suppliedp ctx state))
          ((when (and old-to-new-enable$ new-to-old-enable$))
           (er-soft+
            ctx t nil
            (if old-to-new-enable-suppliedp
             (if new-to-old-enable-suppliedp
              "The :OLD-TO-NEW-ENABLE input ~
                                 and the :NEW-TO-OLD-ENABLE inputs ~
                                 cannot be both T."
              "Since the default :NEW-TO-OLD-ENABLE input is T, ~
                               the :OLD-TO-NEW-ENABLE input cannot be T.")
             (if new-to-old-enable-suppliedp
              "Since the default :OLD-TO-NEW-ENABLE input is T, ~
                               the :NEW-TO-OLD-ENABLE input cannot be T."
              "Internal error: ~
                             the default :OLD-TO-NEW-ENABLE and :NEW-TO-OLD-ENABLE ~
                             are both T."))))
          ((er &)
           (ensure-value-is-boolean$
                newp-of-new-enable
                "The :NEWP-OF-NEW-ENABLE input" t nil))
          ((when (and newp-of-new-name-suppliedp
                      (not res-isomaps)))
           (er-soft+
            ctx t nil
            "Since no results are being transformed, ~
                         it is an error to supply the :NEWP-OF-NEW-NAME input."))
          ((when (and newp-of-new-enable-suppliedp
                      (not res-isomaps)))
           (er-soft+
            ctx t nil
            "Since no results are being transformed, ~
                         it is an error to supply the :NEWP-OF-NEW-ENABLE input."))
          ((er &)
           (ensure-is-untranslate-specifier$
                untranslate
                "The :UNTRANSLATE input" t nil))
          ((er hints$)
           (evmac-process-input-hints hints ctx state))
          ((er &)
           (evmac-process-input-print print ctx state))
          ((er &)
           (evmac-process-input-show-only show-only ctx state)))
         (value (list old$
                      arg-isomaps res-isomaps xform-stobjs-p
                      undefined$ new$ new-enable$ old-to-new$
                      old-to-new-enable$ new-to-old$
                      new-to-old-enable$ newp-of-new$
                      newp-of-new-enable verify-guards$
                      hints$ names-to-avoid)))))