3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-30 19:22:28 +00:00
z3/src
Copilot 85e1a39c09 Add finite_set_value_factory for creating finite set values in model generation (#7981)
* Initial plan

* Add finite_set_value_factory implementation

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Remove unused dl_decl_plugin variable and include

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Update copyright and add TODOs in finite_set_value_factory

Updated copyright information and added TODO comments for handling in finite_set_value_factory methods.

* Update copyright information in finite_set_value_factory.h

Updated copyright year from 2006 to 2025.

* Implement finite_set_value_factory using array_util to create singleton sets

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Simplify empty set creation in finite_set_value_factory

Refactor finite_set_value_factory to simplify empty set handling and remove array-specific logic.

* Change family ID for finite_set_value_factory

* Fix build error by restoring array_decl_plugin include and implementation

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Update finite_set_value_factory.h

* Add SASSERT for finite set check in factory

Added assertion to check if the sort is a finite set.

* Rename member variable from m_util to u

* Refactor finite_set_value_factory for value handling

* Use register_value instead of direct set insertion

Replaced direct insertion into set with register_value calls.

* Update finite_set_value_factory.cpp

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-26 15:34:09 +01:00
..
ackermannization Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
api Update Z3_mk_datatype_sort API to accept array of sort parameters and add Z3_mk_polymorphic_datatype (#7966) 2025-10-26 15:32:21 +01:00
ast Update Z3_mk_datatype_sort API to accept array of sort parameters and add Z3_mk_polymorphic_datatype (#7966) 2025-10-26 15:32:21 +01:00
cmd_context patch definitions, add pretty print support 2025-10-13 22:39:32 +02:00
math fix #7948 2025-09-28 12:52:20 +03:00
model Add finite_set_value_factory for creating finite set values in model generation (#7981) 2025-10-26 15:34:09 +01:00
muz fix #7952 - make auto-selector detect large bit-vectors so it does't use the datalog engine for hopelessly large tables 2025-09-30 15:58:48 -07:00
nlsat restore the method behavior 2025-10-26 15:32:21 +01:00
opt add user propagators to opt_solver 2025-10-02 19:44:22 -07:00
params update defaults for new grobner featuers 2025-09-05 14:34:03 -07:00
parsers patch definitions, add pretty print support 2025-10-13 22:39:32 +02:00
qe move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
sat remove a few useless dynamic casts 2025-09-13 21:06:55 +01:00
shell move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
smt base implementation for cardinality constraints 2025-10-26 10:35:37 +01:00
solver Add commands for forcing preferences during search 2025-10-02 10:47:10 -07:00
tactic remove model converter operator on expr_ref& 2025-09-07 16:42:20 -07:00
test trim parametric datatype test 2025-10-26 15:32:21 +01:00
util revise axiom instantiation scheme for finite-sets 2025-10-18 12:08:39 +02:00
CMakeLists.txt port improvements from ilana branch to master regarding nla 2025-09-19 12:28:31 -07:00