3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-24 05:19:13 +00:00
Commit graph

1438 commits

Author SHA1 Message Date
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
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
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
Lev Nachmanson
28d0b471ff following the review comments 2025-06-27 19:48:51 -07:00
Lev Nachmanson
d717dae3ac remove the parameter for throttling nla lemmas 2025-06-26 16:33:16 -07:00
Lev Nachmanson
2b6c73af82 add stats for throttling 2025-06-26 16:33:16 -07:00
Lev Nachmanson
899677e626 fix a warning
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-06-26 16:33:16 -07:00
Lev Nachmanson
9e52a38580 add throttling to generate_plane1/2 2025-06-26 16:33:16 -07:00
Lev Nachmanson
ac34dbd030 consolidate throttling 2025-06-26 16:33:16 -07:00
Lev Nachmanson
727dfd2d8d use the new throttle in order lemmas 2025-06-26 16:33:16 -07:00
Lev Nachmanson
832cfb3c41 consolidate throttling 2025-06-26 16:33:16 -07:00
Lev Nachmanson
f32066762c remove debug_location parameter 2025-06-26 16:33:16 -07:00
Lev Nachmanson
5caa7f1a29 throttle lemmas in nla_solver untested 2025-06-26 16:33:16 -07:00
Lev Nachmanson
46319156b8 a version of key
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-06-26 16:33:16 -07:00
Lev Nachmanson
20fb830682 filter out empty lemmas from nla_solver on consumption
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-06-26 16:33:16 -07:00
Lev Nachmanson
4e33b44d27 add lemma.is_empty()
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-06-26 16:33:16 -07:00
Lev Nachmanson
5bda42e104 rename new_lemma to lemma_builder
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-06-26 16:33:16 -07:00
Nikolaj Bjorner
5ad1647061 missing ; 2025-06-22 21:32:32 -07:00
Nikolaj Bjorner
95ffad80c6 dealloc m_imp
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-06-22 21:32:32 -07:00
Copilot
218379aaca
[WIP] Leaks (#7691)
* Initial plan for issue

* Initial analysis of memory leak issue

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

* Fix memory leak in lar_solver by adding var_register cleanup

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

* Complete memory leak fix: add dealloc(m_imp) to lar_solver destructor

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

* Delete leak.smt2

* Update lar_solver.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-06-20 20:26:43 -07:00
Nikolaj Bjorner
8d1e954709 introduce notion of auxiliary constraints created by nla_solver lemmas
notes: auxiliary constraints could extend to Gomory and B&B.
2025-06-12 20:37:51 -07:00
Nikolaj Bjorner
bba10c7a88 dampen order lemmas 2025-06-12 11:31:55 -07:00
Nikolaj Bjorner
c387b20ac6 move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
Nikolaj Bjorner
16452fec43 pretty printing for lp 2025-06-06 11:34:28 +02:00
Nikolaj Bjorner
ef284cca5d for Arie 2025-06-04 14:24:01 +02:00
Nikolaj Bjorner
7f5427b839 disable assertion that checks nl lemmas if using nra core 2025-05-30 14:47:31 +01:00
LeeYoungJoon
0a93ff515d
Centralize and document TRACE tags using X-macros (#7657)
* Introduce X-macro-based trace tag definition
- Created trace_tags.def to centralize TRACE tag definitions
- Each tag includes a symbolic name and description
- Set up enum class TraceTag for type-safe usage in TRACE macros

* Add script to generate Markdown documentation from trace_tags.def
- Python script parses trace_tags.def and outputs trace_tags.md

* Refactor TRACE_NEW to prepend TraceTag and pass enum to is_trace_enabled

* trace: improve trace tag handling system with hierarchical tagging

- Introduce hierarchical tag-class structure: enabling a tag class activates all child tags
- Unify TRACE, STRACE, SCTRACE, and CTRACE under enum TraceTag
- Implement initial version of trace_tag.def using X(tag, tag_class, description)
  (class names and descriptions to be refined in a future update)

* trace: replace all string-based TRACE tags with enum TraceTag
- Migrated all TRACE, STRACE, SCTRACE, and CTRACE macros to use enum TraceTag values instead of raw string literals

* trace : add cstring header

* trace : Add Markdown documentation generation from trace_tags.def via mk_api_doc.py

* trace : rename macro parameter 'class' to 'tag_class' and remove Unicode comment in trace_tags.h.

* trace : Add TODO comment for future implementation of tag_class activation

* trace : Disable code related to tag_class until implementation is ready (#7663).
2025-05-28 14:31:25 +01:00
Lev Nachmanson
f680242620 adjust the frequency of dio calls
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-05-14 08:17:39 -07:00
Lev Nachmanson
15a3818fce cleanup in dioph_eq.cpp
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-05-13 14:57:21 -07:00
Lev Nachmanson
6b32aaed10 remove slack heuristic
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-05-12 14:02:17 -07:00