• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • 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
        • Atj
          • Atj-implementation
            • Atj-types
            • Atj-java-primitive-array-model
            • Atj-java-abstract-syntax
            • Atj-input-processing
            • 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
        • 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
    • Atj-implementation

    Atj-fn

    Process the inputs and generate the Java file(s).

    Signature
    (atj-fn args ctx state) → (mv erp result state)
    Arguments
    args — Guard (true-listp args).
    ctx — Guard (ctxp ctx).
    Returns
    result — Always (value-triple :invisible).

    Since the result of this function is passed to make-event, this function must return an event form. By returning (value-triple :invisible), no return value is printed on the screen. A message of successful completion is printed, regardless of :verbose.

    Definitions and Theorems

    Function: atj-fn

    (defun atj-fn (args ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (true-listp args) (ctxp ctx))))
      (let ((__function__ 'atj-fn))
        (declare (ignorable __function__))
        (b* (((er (list fns-to-translate call-graph
                        pkgs deep$ guards$ no-aij-types$
                        java-package$ java-class$ output-subdir
                        output-file$ output-file-env$
                        output-file-test$ tests$ verbose$))
              (atj-process-inputs args ctx state))
             ((er &)
              (atj-gen-everything deep$
                                  guards$ no-aij-types$ java-package$
                                  java-class$ output-subdir output-file$
                                  output-file-env$ output-file-test$
                                  tests$ pkgs fns-to-translate
                                  call-graph verbose$ ctx state))
             (- (if output-file-test$
                    (cw "~%Generated Java files:~% ~s0~% ~s1~% ~s2~%"
                        output-file$
                        output-file-env$ output-file-test$)
                  (cw "~%Generated Java files:~% ~s0~% ~s1~%"
                      output-file$ output-file-env$))))
          (value '(value-triple :invisible)))))