3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 11:55:51 +00:00
Commit graph

225 commits

Author SHA1 Message Date
Nikolaj Bjorner
c996a66da0 separate pre-processing, add callback parameter to push/pop in python API 2022-04-11 17:05:59 +02:00
Nikolaj Bjorner
fd1f5cdd0f fix callback type declarations for propagators 2022-03-19 12:24:46 -07:00
Nikolaj Bjorner
5ec7a66a45 change class name, add comment 2022-01-04 22:02:14 -08:00
Nikolaj Bjorner
964a5cd761 lump java together
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2022-01-04 20:48:05 -08:00
Nikolaj Bjorner
ef3dd32364 some cleanup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2022-01-04 20:21:53 -08:00
Nuno Lopes
9b5ec6d004 logging cleanup
move everything out-of-line as common path doesn't log
fix some race conditions on file ptr vs enable_logging vars
2021-08-29 12:24:19 +01:00
Nuno Lopes
1f4a7c5101 logging: don't call the returned function twice (one for log, one for return)
Z3_simplify() does RETURN_Z3(simplify(...)), hence the function was being called twice
it turns out simplify is not idempotent, so calling it twice can result in different results
thus breaking the log.
2021-08-29 11:06:19 +01:00
Karlheinz Friedberger
764e033bf4
Specify and document value for environment variable for loading native library in Java bindings (#5477)
* limit range of environment variable for loading the native library in Java to "true".

This change specifies the range of values that are allowed to set the environment
variable "z3.skipLibraryLoad".
Only the value "true" (in upper-, lower-, and mixed-case is accepted as valid value.
Other values, such as "false", "0", "1", "foo", an empty or a missing value are
evaluated to "false" and cause the default loading of the native library.

* adding documentation about environment variable for (not) loading the native library in Java.

This is a follow-up commit for #4667 to provide a publicly visible documentation.
2021-08-13 14:54:02 -07:00
Nikolaj Bjorner
34885562e0 try without #!/bin/env python #5397 2021-07-10 15:20:56 +02:00
Nikolaj Bjorner
16448104eb add new model event handler for incremental optimization 2021-02-05 17:11:04 -08:00
Nikolaj Bjorner
d2abc9ed0f remove comment #4956
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2021-01-21 22:18:24 -08:00
pcarbonn
0eb04df834
fix #4956 (#4958) 2021-01-21 22:16:49 -08:00
Nikita Leshenko
d8eba2d72f
scripts/update_api: Replace Z3_LIBRARY_DIRS with Z3_LIB_DIRS (#4915)
The error message that is printed when libz3.so can't be loaded contains
incorrect instruction to set `Z3_LIBRARY_DIRS` builtin. The correct variable
name is `Z3_LIB_DIRS`.

Signed-off-by: Nikita Leshenko <nikita@leshenko.net>
2020-12-26 12:27:10 -08:00
Sergey Vladimirov
7f0b5bc129
Allow to skip System.loadLibrary() calls from Java Native class (#4667) 2020-08-28 07:30:26 -07:00
Nikolaj Bjorner
96f10b8c1c user propagator
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-08-22 19:01:04 -07:00
Nikolaj Bjorner
2d5b749745 extend solver callbacks with methods
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-08-21 19:24:59 -07:00
Nikolaj Bjorner
080be7a2af merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-08-21 12:14:28 -07:00
Nikolaj Bjorner
4857d60c99 user propagator over the API 2020-08-18 21:53:02 -07:00
Lev Nachmanson
d3c00ca2c3 change mode to executable to some py files
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-05-16 14:12:16 -07:00
Lev Nachmanson
08940cff8f comment out the call to nra_solver
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
2020-05-15 11:26:40 -07:00
Phillip Schanely
a20d4fa362 Use the latin-1 codec instead of ascii in Python bindings.
The latin-1 codec maps byte values 0-255 to unicode codepoints 0-255.
The ascii codec only maps the lower half of that range.
2020-03-05 21:52:22 -08:00
Nikolaj Bjorner
80c98dfb1f avoid const in ml
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-02-27 10:40:10 -08:00
Nikolaj Bjorner
a65efb682b avoid const in ml
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-02-27 10:40:10 -08:00
jeff
6330bf7d25 fix z3 library search order 2020-02-26 20:56:51 -08:00
Nikolaj Bjorner
833b54a12c fix dotnet build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-02-26 09:44:21 -08:00
Nikolaj Bjorner
f0689546f3 return non-escaped string value for Python #3080
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-02-26 09:16:23 -08:00
Nikolaj Bjorner
f70696d8e7 reduce contention #2842
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-06 20:10:11 -08:00
Nikolaj Bjorner
7e174f50c1 use Z3_char_ptr
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-10-08 09:14:10 -07:00
Nikolaj Bjorner
f4b803de95 expose mk_divides over API. Corresponds to a = b (mod m), #723
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-10-08 08:46:49 -07:00
Nikolaj Bjorner
79d4502771 atomics for #2565
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-09-25 20:22:35 -07:00
Nikolaj Bjorner
df2f0416e2 undo atomic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-09-17 21:56:28 -04:00
Nikolaj Bjorner
c68cfe878e #2565 use atomic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-09-17 18:15:19 -07:00
Nikolaj Bjorner
74631265b9 remove stale assertions due to lambda #2446
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-07-30 14:32:06 +08:00
Audrey Dutcher
c2cb2c9fad python bindings: add core functions with _bytes suffix that do not decode strings 2019-02-18 23:59:27 -07:00
Audrey Dutcher
591abead4b Revert "Don't delete the reference to the native library in the python bindings"
This reverts commit 3339be6d22.
2019-02-18 23:51:11 -07:00
Audrey Dutcher
3339be6d22 Don't delete the reference to the native library in the python bindings 2019-02-10 14:05:45 -08:00
Bruce Mitchener
51a947b73d Change how 64 bit builds are detected.
Instead of doing this at configure time, we look at the actual
compile time status. This also avoids hardcoding checks based on
what CPU architecture is present, which doesn't work when Z3 is
being built on non-x86_64 platforms.
2018-12-09 16:16:20 +07:00
Nikolaj Bjorner
eea9b79035
Merge pull request #1975 from Bronsa/null_wrapped
Guard against null wrapped functions in OCaml API
2018-11-27 10:44:20 -08:00
Nicola Mometto
ad49c3269a Guard against null wrapped functions in OCaml API 2018-11-27 18:11:29 +00:00
Nicola Mometto
21158d87e3 override n_mk_config in ml bindings to catch exception path 2018-11-27 12:31:00 +00:00
Bruce Mitchener
edf8ba44d1 Switch from using Z3_bool to using bool.
This is a continuation of the work started by using stdbool and
continued by switching from Z3_TRUE|FALSE to true|false.
2018-11-20 11:27:09 +07:00
Nikolaj Bjorner
1bf934e53a
Merge pull request #1918 from c-cube/ocaml-release-gc
feat(api/ml): release runtime lock on some long-running functions
2018-11-06 15:03:30 -08:00
Simon Cruanes
9121c74c9f feat(api/ml): release runtime lock on some long-running functions 2018-11-06 16:23:18 -06:00
Nikolaj Bjorner
52801db3fd more dotnet core prepration
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 16:28:01 -07:00
Nikolaj Bjorner
c247abfc65 prepare js output
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-03 22:13:25 -07:00
Nikolaj Bjorner
fed977b492 fix #1782
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-02 10:08:16 -07:00
Nikolaj Bjorner
1cb3f7c792 fixing #1520
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-28 18:03:13 -07:00
Nikolaj Bjorner
0d4b4b30b1 change storage layout of .Net binding Z3_bool to byte to deal with uninitialized memory reads on larger allocation sizes. Bug introduced when switching from defining Z3_bool as int to the bool type from stdbool
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-02 02:58:06 -07:00
Nikolaj Bjorner
f1d27cd487 workaround non-deterministic behavior of is_irrational_numeral test
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-06-29 18:16:32 -07:00
yxliang01
f7bcf0fd58 Z3 now will also try to find libz3 in PYTHONPATH 2018-04-24 08:17:20 -07:00