• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
        • Simplify-defun
        • 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-fresh-defiso-name-with-*s-suffix
                • Isodata-process-newp-of-new-name
                • Isodata-process-isomaps-ress
                • Isodata-process-isomaps-args
                • Isodata-process-arg/res-list-iso-add-ress
                • Isodata-process-arg/res-list-iso-add-args
                • Isodata-process-old
                • Isodata-process-undefined
                • Isodata-process-arg/res-list-aux
                • Isodata-isomap-listp
                • Isodata-fresh-defiso-name-with-*s-suffix-aux
              • Isodata-macro-definition
          • 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
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • 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 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 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 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
                    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)))))