3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-23 06:01:26 +00:00
Commit graph

20156 commits

Author SHA1 Message Date
Nikolaj Bjorner
711572e73c fix crash on arie branch
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-16 16:58:33 -08:00
Nikolaj Bjorner
b835bd4c92 self-contained tracking of values
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-16 12:55:58 -08:00
Nikolaj Bjorner
f347c24e04 fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-15 13:09:25 -08:00
Nikolaj Bjorner
072f1deccc update
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-14 16:37:00 -08:00
Nikolaj Bjorner
d081321384 add substitution and division
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-14 16:26:10 -08:00
Nikolaj Bjorner
f55bdd923a remove mul saturate
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-13 15:43:44 -08:00
Nikolaj Bjorner
5ea25dcf60 v2 running
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-13 13:59:12 -08:00
Nikolaj Bjorner
c7084e9998 revamp stellensatz to use polynomals
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-12 20:21:42 -08:00
Nikolaj Bjorner
21b36868b5 revamping stellensatz
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-12 10:13:09 -08:00
Nikolaj Bjorner
b8f5e1d646 small rewrite update
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-10 15:01:30 -08:00
Nikolaj Bjorner
9f848847c7 remove debug out from euf-completion 2025-11-07 08:06:13 -08:00
Nikolaj Bjorner
f4c5e14b6b add fold-unfold simplification
this substitutes solve-eqs by including fold-unfold reductions.
2025-11-07 08:04:41 -08:00
Nikolaj Bjorner
5d36f53cd3 add rewrite to eliminate quot-rem tautologies 2025-11-07 08:04:03 -08:00
Nikolaj Bjorner
a3ec6a0f1b add delayed diseq check 2025-11-07 08:03:37 -08:00
Nikolaj Bjorner
daf66e63c6 add more pre-processing for band
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-04 09:45:40 -08:00
Nikolaj Bjorner
4828ed97be tweak bound propagation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-03 12:41:33 -08:00
Nikolaj Bjorner
88269edd4b fixup bv operators
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-03 07:56:42 -08:00
Nikolaj Bjorner
919ac515bc fix crash
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-11-02 16:05:09 -08:00
Nikolaj Bjorner
ceb424dc64 update clang format 2025-10-31 08:43:50 -07:00
Nikolaj Bjorner
1b48ec27e0 update format
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:43:50 -07:00
Nikolaj Bjorner
e3ef97e24d propagate value initialization to atoms 2025-10-31 08:43:50 -07:00
Nikolaj Bjorner
e709885e72 gcd reduce and use c().val for sign constraints 2025-10-31 08:43:46 -07:00
Nikolaj Bjorner
018cb3c734 generate more proper proof format
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:41:14 -07:00
Nikolaj Bjorner
fdac93fff3 v0.1 of nla saturation 2025-10-31 08:36:15 -07:00
Nikolaj Bjorner
3e9afb30af disable nuget
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:33 -07:00
Nikolaj Bjorner
7c28d936fb bump version for release
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:33 -07:00
Nikolaj Bjorner
a75602b7e5 update release notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
Nikolaj Bjorner
bc28de931b fix C++ example and add polymorphic interface for C++
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
Nikolaj Bjorner
67dcb8bcc1 renemable Centos AMD nightly
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
Nikolaj Bjorner
d8862f8f6a fix build break introduced when adding support for polymorphic datatypes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
dependabot[bot]
cf6a1ceb0e Bump actions/upload-artifact from 4 to 5 (#7998)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-31 08:32:32 -07:00
dependabot[bot]
df8bca4db6 Bump actions/download-artifact from 5 to 6 (#7999)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-31 08:32:32 -07:00
Copilot
0ebc1070da Add missing mkLastIndexOf method and CharSort case to Java API (#8002)
* Initial plan

* Add mkLastIndexOf method and CharSort support to Java API

- Added mkLastIndexOf method to Context.java for extracting last index of sub-string
- Added Z3_CHAR_SORT case to Sort.java's create() method switch statement
- Added test file to verify both fixes work correctly

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

* Fix author field in test file

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

* Delete examples/java/TestJavaAPICompleteness.java

---------

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-31 08:32:32 -07:00
Nikolaj Bjorner
4a8a2adbb1 update centos version
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
Nikolaj Bjorner
20235af97b disable centos build until resolved
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:32 -07:00
Lev Nachmanson
bfd896cd35 enable always add all coeffs in nlsat
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-31 08:32:31 -07:00
Lev Nachmanson
bb005a9ccf throttle grobner method more actively
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-31 08:32:31 -07:00
Lev Nachmanson
b21d48ee23 try exponential delay in grobner
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-31 08:32:31 -07:00
hwisungi
1e476b411f Enabling Control Flow Guard (CFG) by default for MSVC on Windows, with options to disable CFG. (#7988)
* Enabling Control Flow Guard by default for MSVC on Windows, with options to disable it.

* Fix configuration error for non-MSVC compilers.

* Reviewed and updated configuration for Python build and added comment for CFG.
2025-10-31 08:32:31 -07:00
dependabot[bot]
1ed90c19e2 Bump actions/setup-node from 5 to 6 (#7994)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-31 08:32:31 -07:00
Nelson Elhage
4717e61012 Add a fast-path to _coerce_exprs. (#7995)
When the inputs are already the same sort, we can skip most of the
coercion logic and just return.

Currently, `_coerce_exprs` is by far the most expensive part of
building up many common Z3 ASTs, so this fast-path is a substantial
speedup for many use-cases.
2025-10-31 08:32:31 -07:00
Lev Nachmanson
aad55de04b add the "noexcept" keyword to value_score=(value_score&&) declaration 2025-10-31 08:32:31 -07:00
Nikolaj Bjorner
76c4287e50 disable manylinux until segfault is resolved
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:30 -07:00
Nikolaj Bjorner
3d9da872c8 build fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:30 -07:00
Nikolaj Bjorner
061934b648 add explicit constructors for nightly mac build failure
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2025-10-31 08:32:30 -07:00
Nikolaj Bjorner
c9f1576319 Update arith_rewriter.cpp
fix memory leak introduced by update to ensure determinism
2025-10-31 08:32:30 -07:00
Nikolaj Bjorner
85de57c448 Revert "Add finite_set_value_factory for creating finite set values in model …" (#7985)
This reverts commit 05ffc0a77b.
2025-10-31 08:32:30 -07:00
Copilot
4fd7087e04 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-31 08:32:30 -07:00
Lev Nachmanson
321ac8fe57 restore the method behavior
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-31 08:32:30 -07:00
Lev Nachmanson
6673cbf133 restore single cell
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2025-10-31 08:32:30 -07:00