• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-java-class

    Process the :java-class input.

    Signature
    (atj-process-java-class java-class ctx state) 
      → 
    (mv erp java-class$ state)
    Arguments
    ctx — Guard (ctxp ctx).
    Returns
    java-class$ — Type (implies (not erp) (stringp java-class$)).

    Definitions and Theorems

    Function: atj-process-java-class

    (defun atj-process-java-class (java-class ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (ctxp ctx)))
     (let ((__function__ 'atj-process-java-class))
      (declare (ignorable __function__))
      (b*
       (((er &)
         (ensure-string-or-nil$ java-class
                                "The :JAVA-CLASS input" t nil))
        ((unless (or (null java-class)
                     (atj-string-ascii-java-identifier-p java-class)))
         (er-soft+
          ctx t nil
          "The :JAVA-CLASS input ~x0 is not ~
                       NIL or a valid Java class name ~
                       consisting of only ASCII characters."
          java-class))
        (name (or java-class *atj-default-java-class*)))
       (value name))))

    Theorem: return-type-of-atj-process-java-class.java-class$

    (defthm return-type-of-atj-process-java-class.java-class$
      (b* (((mv ?erp ?java-class$ acl2::?state)
            (atj-process-java-class java-class ctx state)))
        (implies (not erp)
                 (stringp java-class$)))
      :rule-classes :rewrite)