3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-15 17:49:59 +00:00
z3/examples
Angelica Moreira b8e15f2121
Add missing AST query methods to Java API (#8977)
* add Expr.isGround() to Java API

Expose Z3_is_ground as a public method on Expr. Returns true when the
expression contains no free variables.

* add Expr.isLambda() to Java API

Expose Z3_is_lambda as a public method on Expr. Returns true when the
expression is a lambda quantifier.

* add AST.getDepth() to Java API

Expose Z3_get_depth as a public method on AST. Returns the maximum
number of nodes on any path from root to leaf.

* add ArraySort.getArity() to Java API

Expose Z3_get_array_arity as a public method on ArraySort. Returns
the number of dimensions of a multi-dimensional array sort.

* add DatatypeSort.isRecursive() to Java API

Expose Z3_is_recursive_datatype_sort as a public method on
DatatypeSort. Returns true when the datatype refers to itself.

* add FPExpr.isNumeral() to Java API

Expose Z3_fpa_is_numeral as a public method on FPExpr. Returns true
when the expression is a concrete floating-point value.

* add isGroundExample test to JavaExample

Test Expr.isGround() on constants, variables, and compound
expressions.

* add astDepthExample test to JavaExample

Test AST.getDepth() on leaf nodes and nested expressions to verify
the depth computation.

* add arrayArityExample test to JavaExample

Test ArraySort.getArity() on single-domain and multi-domain array
sorts.

* add recursiveDatatypeExample test to JavaExample

Test DatatypeSort.isRecursive() on a recursive list datatype and a
non-recursive pair datatype.

* add fpNumeralExample test to JavaExample

Test FPExpr.isNumeral() on a floating point constant and a symbolic
variable.

* add isLambdaExample test to JavaExample

Test Expr.isLambda() on a lambda expression and a plain variable.
2026-03-14 10:13:42 -07:00
..
c Remove vestiges of old ml api (#7597) 2025-03-27 16:41:31 -07:00
c++ removing file to deal with build issue 2026-01-13 09:15:14 -08:00
dotnet remove RCF example 2026-01-14 17:07:25 -08:00
go Fix variable naming: tmpFile -> tempFile for Go conventions 2026-02-16 21:48:51 +00:00
java Add missing AST query methods to Java API (#8977) 2026-03-14 10:13:42 -07:00
maxsat fix grouping for latest doxygen (#5626) 2021-10-27 23:46:31 +02:00
ml Add Z3_get_estimated_alloc_size to OCaml API (#7068) 2023-12-21 12:54:30 -08:00
python Fix some typos. (#7115) 2024-02-07 23:06:43 -08:00
SMT-LIB2/bounded model checking Fix some typos. (#7115) 2024-02-07 23:06:43 -08:00
tptp move to readme-cmake 2025-05-13 14:36:20 -07:00
userPropagator userPropagator: Compile as C++20. 2022-08-05 07:41:14 +03:00
CMakeLists.txt cmake: Remove ExternalProject BUILD_ALWAYS workaround. 2022-08-02 09:27:11 +03:00