• 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-java-pretty-printer
              • Atj-code-generation
              • Atj-java-primitives
              • Atj-java-primitive-arrays
              • Atj-type-macros
              • Atj-java-syntax-operations
                • Jstatems+jblocks-count-ifs
                • Negate-boolean-jexpr
                • Unmake-right-assoc-condand
                • Jstatems+jblocks-methods
                • Mergesort-jmethods
                • Mergesort-jfields
                • Make-right-assoc-condand
                • Merge-jmethods
                • Merge-jfields
                • Jexpr-vars
                  • Jexpr-list-vars
                • Jexpr-methods
              • 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-java-syntax-operations

Jexpr-vars

Variables in a Java expression.

Signature
(jexpr-vars expr) → vars
Arguments
expr — Guard (jexprp expr).
Returns
vars — Type (string-listp vars).

We return all the names in expression names. The list is without duplicates but in no particular order.

Theorem: return-type-of-jexpr-vars.vars

(defthm return-type-of-jexpr-vars.vars
  (b* ((?vars (jexpr-vars expr)))
    (string-listp vars))
  :rule-classes :rewrite)

Theorem: return-type-of-jexpr-list-vars.vars

(defthm return-type-of-jexpr-list-vars.vars
  (b* ((?vars (jexpr-list-vars exprs)))
    (string-listp vars))
  :rule-classes :rewrite)

Subtopics

Jexpr-list-vars