3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-08 17:01:55 +00:00
Commit graph

19839 commits

Author SHA1 Message Date
Lev Nachmanson
6cbc6f4f84 create polynomials with integer coefficients, use the hook to create new monomials
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-06 11:53:06 -07:00
Nikolaj Bjorner
f8942dfdee simplify
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 20:17:29 -07:00
Nikolaj Bjorner
85869b575b updated clang format
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 20:15:40 -07:00
Lev Nachmanson
84a9b38ec8 debug the setup, still not working
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-02 17:25:48 -07:00
Nikolaj Bjorner
874e8b3cfa call setup_assignment_solver instead of setup_solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 08:58:15 -07:00
Nikolaj Bjorner
ba378ed341 fixup backtranslation to not use roots
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 08:55:27 -07:00
Nikolaj Bjorner
fe8f721600 add internalization routine that uses macro-expanded polynomial representation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 08:37:14 -07:00
Nikolaj Bjorner
3e47d1099d add internalization routine that uses macro-expanded polynomial representation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-02 08:36:39 -07:00
Lev Nachmanson
1adfa94823 add a hook to add new multiplication definitions in nla_core 2025-09-30 16:47:49 -07:00
Lev Nachmanson
d79d43355f remove a comment
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-09-29 13:23:20 -07:00
Lev Nachmanson
5de0b8a87f do not set use_nra_model to true
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-09-29 13:20:46 -07:00
Lev Nachmanson
cc957011f2 remove the too early return
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-09-29 13:12:15 -07:00
Nikolaj Bjorner
1582e4616e detangle mess
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-09-23 12:45:46 +03:00
Lev Nachmanson
3c38ee2690 t
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-09-19 17:28:10 -07:00
Lev Nachmanson
444a9b1c4f t
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-09-19 17:24:00 -07:00
Nikolaj Bjorner
cf53f2c866
Simplify no effect checks in nla_core.cpp
Move up linear nlsat call to replace bounded nlsat.
2025-09-12 13:56:13 -07:00
ValentinPromies
4fec287107
clean up (#7844) 2025-09-03 09:52:51 -07:00
ValentinPromies
187f013224
Nl2lin (#7827)
* fix linear projection

* fix linear projection

* use an explicit cell description in check_assignment
2025-08-28 08:17:37 -07:00
Lev Nachmanson
6ef8a0b7bb debug nl2lin
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-08-20 15:59:11 -07:00
Nikolaj Bjorner
5d08ebdffd fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-08-20 08:02:31 -07:00
Nikolaj Bjorner
d15c0e396e updates
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-08-20 07:53:43 -07:00
Nikolaj Bjorner
964dd2a71a fixup loop
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-08-20 07:46:53 -07:00
ValentinPromies
4b4e8cbc6e
Nl2lin (#7795)
* add linearized projection in nlsat

* implement nlsat check for given assignment

* add some comments
2025-08-20 07:36:35 -07:00
Nikolaj Bjorner
a38af61d77 add call to check-assignment
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-08-20 07:32:50 -07:00
Nikolaj Bjorner
d2ada6a772 tidy
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 22:40:55 +02:00
Nikolaj Bjorner
10cb358f9f add marshaling from nlsat lemmas into core solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 22:29:33 +02:00
Nikolaj Bjorner
c3488fcfa9 add material in nra-solver to interface
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 20:02:28 +02:00
Nikolaj Bjorner
5f25eb5aa2 remove confusing construction
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 19:18:35 +02:00
Nikolaj Bjorner
6bcee13158 outline of interface contract
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 18:44:41 +02:00
Nikolaj Bjorner
46284c434a outline of signature for assignment based conflict generation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-07-11 18:36:28 +02:00
Nikolaj Bjorner
0995928f6e wip - throttle AC completion, enable congruences over bound bodies
- AC completion which is exposed as an option to the new congruence closure core used roots of E-Graph which gets ordering of monomials out of sync.
- Added injective function handling to AC completion
- Move to model where all equations, also unit to unit are in completion
- throw in first level bound bodies into the E-graph to enable canonization on them.
2025-07-11 12:48:27 +02:00
Nikolaj Bjorner
35b1d09425 working on ho-matcher 2025-07-08 04:50:43 +02:00
Nikolaj Bjorner
195f3c9110 update build dependencies 2025-07-07 16:50:35 +02:00
Nikolaj Bjorner
0c5b0c3724 turn on ho-matcher for completion 2025-07-07 14:08:51 +02:00
Nikolaj Bjorner
1b3c3c2716 initial pattern abstraction and move matching to src 2025-07-06 00:53:46 -07:00
Nikolaj Bjorner
2d1a42d53f fixes to ho-matcher 2025-07-05 16:24:45 -07:00
Nikolaj Bjorner
3ccf7a695b make concurrent collect_statistics in a timeout thread safe 2025-07-04 18:58:29 -07:00
Nikolaj Bjorner
951554e883 ho matcher draft
Draft implementation of higher-order matcher.
No specific tuning at this point.
2025-07-04 18:01:47 -07:00
Nikolaj Bjorner
0ee1ee54bd Update azure-pipelines.yml for Azure Pipelines
remove build steps for python packaging
2025-07-04 14:25:53 -07:00
Lev Nachmanson
d2990e2f68 use usize to suppress the data loss warnings
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-07-02 14:42:55 -07:00
Nikolaj Bjorner
f544dd4ab2 deal with warnings
@levnach - there are some additional warnings.
You could revert the change to std_vector or use usize() that I added to vector.h. Look at build logs from the pipelines or actions or figure out how to add a continuous AI script to fixup build warnings (I tried a few times earlier on but the features available to do this were not for laymen).
2025-07-02 10:59:56 -07:00
Nikolaj Bjorner
bb100a40d5 c is non-null 2025-07-02 10:57:54 -07:00
Copilot
75678fc2c2
Fix O(n²) performance issue in CLI datatype declaration processing (#7712)
* Initial plan

* Implement batch initialization fix for O(n²) datatype performance issue

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

* Fix the real O(n²) bottleneck with lazy hash table for constructor name lookups

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

* Optimize get_constructor_by_name: use func_decl* parameter, add linear search optimization for small datatypes, and ensure non-null postcondition

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

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
2025-07-02 09:54:36 -07:00
LeeYoungJoon
53c48f7226
trace : Sort and reorder trace tags by tag_class and tag_name (#7714) 2025-07-02 09:53:35 -07:00
Nikolaj Bjorner
0218fb75a2 fixup pipleline to support testing packaging 2025-07-02 07:59:23 -07:00
LeeYoungJoon
0928a1fdf0
trace : Classify tag_names unique to smt_internalize.cpp (#7713) 2025-07-01 21:30:07 -07:00
Nikolaj Bjorner
8de80e666b #7710
partial fix
2025-07-01 14:23:23 -07:00
Nikolaj Bjorner
97193b4a1d call into collect_statistics in case of -T interrupt 2025-07-01 14:15:15 -07:00
Nikolaj Bjorner
a28f55a3bc log scope level of lemma 2025-07-01 14:14:30 -07:00
Nikolaj Bjorner
bfed237a6c expose scope level 2025-07-01 14:14:16 -07:00