• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
                • Atj-collect-fns-in-term
                • Atj-worklist-iterate
                • Atj-process-test
                • Atj-process-inputs
                • Atj-process-test-input-jprim-value
                • Atj-process-output-subdir
                • Atj-process-test-input
                • Atj-process-output-dir
                • Atj-process-test-input-jprim-values
                • Atj-fns-to-translate
                • Atj-process-test-inputs
                • Atj-process-tests
                • Atj-process-targets
                  • Atj-process-no-aij-types
                  • Atj-pkgs-to-translate
                  • Atj-process-java-class
                  • Atj-process-java-package
                  • *atj-default-java-class*
                  • *atj-allowed-options*
                • Atj-java-pretty-printer
                • Atj-code-generation
                • Atj-java-primitives
                • Atj-java-primitive-arrays
                • Atj-type-macros
                • Atj-java-syntax-operations
                • Atj-fn
                • Atj-library-extensions
                • Atj-java-input-types
                • Atj-test-structures
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atj-input-processing

    Atj-process-targets

    Process the fn1, ..., fnp inputs.

    Signature
    (atj-process-targets targets deep guards ctx state) 
      → 
    (mv erp result state)
    Arguments
    targets — Guard (true-listp targets).
    ctx — Guard (ctxp ctx).
    Returns
    result — Type (null result).

    Here we only check fn1, ..., fnp themselves. We collect and check the called functions after checking the remaining inputs; see atj-process-inputs.

    Definitions and Theorems

    Function: atj-process-targets

    (defun atj-process-targets (targets deep guards ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (true-listp targets) (ctxp ctx))))
     (let ((__function__ 'atj-process-targets))
      (declare (ignorable __function__))
      (b*
       (((er &)
         (case (len targets)
          (0
            (er-soft+ ctx t nil
                      "At least one target function must be supplied."))
          (1 (ensure-value-is-function-name$
                  (car targets)
                  (msg "The target function input ~x0"
                       (car targets))
                  t nil))
          (t
           (ensure-list-functions$ targets
                                   (msg "The target function inputs ~&0"
                                        targets)
                                   t nil))))
        ((er &)
         (ensure-list-has-no-duplicates$
              targets
              (msg "The target functions ~&0" targets)
              t nil))
        ((when (or deep (not guards)))
         (value nil))
        (target-prims
             (intersection-eq
                  targets
                  (union-eq *atj-jprim-fns* *atj-jprimarr-fns*)))
        ((when (null target-prims))
         (value nil)))
       (er-soft+
        ctx t nil
        "Since the :DEEP input is (perhaps by default) NIL ~
                   and the :GUARDS input is (perhaps by default) T, ~
                   ~@0."
        (if (= (len target-prims) 1)
            (msg "the function ~x0 cannot be specified as target"
                 (car target-prims))
          (msg "the functions ~&0 cannot be specified as targets"))))))

    Theorem: null-of-atj-process-targets.result

    (defthm null-of-atj-process-targets.result
      (b* (((mv ?erp ?result acl2::?state)
            (atj-process-targets targets deep guards ctx state)))
        (null result))
      :rule-classes :rewrite)