3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00
Commit graph

1184 commits

Author SHA1 Message Date
Nikolaj Bjorner 6604aab1a2 remove dotnet as a build option
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-05-29 17:08:45 -07:00
Nikolaj Bjorner 30411b319a update build scripts
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-05-29 17:02:45 -07:00
Louis Gesbert 5c0ad963c1 Fix z3 static link options 2019-05-23 09:49:32 +02:00
Nikolaj Bjorner 112e13eeea
Merge pull request #2292 from AltGr/ocaml-static-linking
Fix and enable OCaml static linking by default when --staticlib is specified
2019-05-22 17:26:00 +04:00
Louis Gesbert 9bb0c882fa OCaml API build: provide static linking options by default
when --staticlib is enabled, the linker will still choose to
dynamically link upon encountering `-lz3` when generating an
executable through OCaml.

The interaction between the underlying C linker and OCaml make it very
hard to choose the static version instead. The present patch works
around this issue by copying `libz3.a` to `libz3-static.a`, and using
`-lz3-static` instead: the static version is chosen since no dynamic
one is found.

One can get back to dynamically linking by compiling without
`--staticlib`, or switching back to `-lz3`, but will in the latter
case run into the same problem with specifying the option; if that
needs to be made easier, we could provide two versions of the `cm(x)a`
which differ only by their linking options.

One last solution would be to remove `lz3` altogether from the linking
options included in the cm(x)a, requiring either `-lz3` or
`-lz3-static` to be specified at link time. Simpler and most flexible,
but requires an update of all users that link with the Z3 ml api...
2019-05-21 17:45:19 +02:00
Louis Gesbert 8d5466e781 OCaml / static: fix linking options 2019-05-21 16:09:18 +02:00
Kate 7d43a4bca5 Fix Makefile generation for the OCaml api 2019-04-10 15:18:03 +01:00
Nikolaj Bjorner 7e7cdf3635 update dependencies in legacy build system
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-04-01 12:13:50 -07:00
Nikolaj Bjorner 433064dee9 Merge branch 'master' of https://github.com/z3prover/z3 2019-03-16 11:53:02 -07:00
Nikolaj Bjorner 869cb66736 step 1 in aligning version tweaks for #2184
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-16 11:52:55 -07:00
Andrew Helwer a492eb0209 Fixed missed renamed variable 2019-03-15 15:23:33 -07:00
Andrew Helwer f0aebb1600 Fixed nuget package spec generation code 2019-03-15 15:20:32 -07:00
Nikolaj Bjorner e19c119496 copyright
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-14 15:41:52 -07:00
Nikolaj Bjorner 001c120169 x64
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-14 15:35:33 -07:00
Nikolaj Bjorner 038f992ff4 remove platformtarget for dotnetcore spec
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-14 12:48:27 -07:00
Nikolaj Bjorner d642ed5591 adding targets
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-13 18:03:18 -07:00
Nuno Lopes 70ada9919e cmake: fix windows build with long absolute directory names 2019-03-07 11:09:25 +00:00
Nuno Lopes deb2deb4ad fix linking of .so on old build system 2019-03-07 10:04:06 +00:00
Nuno Lopes c0f7afacc4 bump cmake minimum version to 3.4 as it was released 3+ years ago
some misc compiler flags cleanup
2019-03-07 09:58:36 +00:00
Nuno Lopes 7ad4ced12f librt no longer needed(?) 2019-03-06 12:16:48 +00:00
Nikolaj Bjorner a2dcf87e10 add ESRP signing of nuget packages
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-02-27 14:43:39 -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
Nikolaj Bjorner 9dd41ba554 remove offending assert, disable assembly-info for dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-01-20 11:13:03 -08:00
Nikolaj Bjorner 4caadc6519 add note about libgomp dependency
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-01-18 10:13:04 -08:00
Carsten Varming e1a9154555 Specify UTF-8 encoding in python build scripts 2019-01-05 13:48:15 -05:00
Mathias Soeken 878f297dac Make Ubuntu package more generic. 2019-01-01 17:20:33 +01:00
Nikolaj Bjorner e1dc553228 inc version
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-12-20 13:15:50 -08:00
Nikolaj Bjorner c5ada288c2 updated script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-12-12 12:46:28 -08:00
Nikolaj Bjorner 8d23ad2f7e fix generation of assembly-sign-input to take escape sequences and absolute paths
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-12-12 10:14:38 -08:00
Nikolaj Bjorner db3e5ce070
Merge pull request #1997 from waywardmonkeys/change-64-bit-configuration-strategy
Change how 64 bit builds are detected.
2018-12-12 09:55:13 -08:00
Nikolaj Bjorner 02f01fcef1 adding esrp feature
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-12-11 17:31:09 -08:00
Nikolaj Bjorner 93c59ffbd9 update script to sign assembly
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-12-11 15:48:33 -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
Mathias Soeken 9a0a1dd818 Changes to NuGet release script. 2018-12-06 16:19:03 +01:00
Travis Nielsen dad58073d3
Fix typo 2018-12-01 16:47:19 -06: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
Nikolaj Bjorner f5455ce2ac fix exception handling for #1959
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-22 15:40:08 -08: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 a076e33037 tweaks to mk_nuget_release
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-19 15:35:49 -08:00
Nikolaj Bjorner 76d0a5a6ed tweaks to mk_nuget_release
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-19 15:35:42 -08:00
Nikolaj Bjorner e83e9b02df increment version number to 4.8.4
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-19 15:17:55 -08:00
Nikolaj Bjorner 5188f4d82e update dist scripts
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-18 10:55:59 -08:00
Nikolaj Bjorner e438de4f8a Merge branch 'master' of https://github.com/z3prover/z3 2018-11-18 10:48:50 -08:00
Nikolaj Bjorner ddf6d48b3e update unix-dist
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-18 10:48:45 -08:00
Nikolaj Bjorner fb1287155e fix windows build_dist setting
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-18 08:59:27 -08:00
Nikolaj Bjorner e98da4320b make dotnet core optional for mk_win_dist
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-17 15:08:52 -08:00
Nikolaj Bjorner ee7781e602 merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-17 15:05:02 -08:00
Nikolaj Bjorner 9ec59fdb93 fix #1934
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-17 15:04:25 -08:00
Nikolaj Bjorner 1a5be0f25e make dotnet core dist optional
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-16 15:14:43 -08:00
Nikolaj Bjorner cfb14c879a make dotnet core dist optional
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-16 13:59:00 -08:00
Nikolaj Bjorner 5ebe342da1 add support for keyfiles
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-16 13:27:58 -08:00
Nikolaj Bjorner f4ced3c164 use netstandard1.4
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 16:40:35 -08:00
Nikolaj Bjorner 4509caf102 build generated files outside of src
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 16:17:04 -08:00
Nikolaj Bjorner 60d7444c96 build generated files outside of src
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 16:16:38 -08:00
Nikolaj Bjorner becf5de872 with Mathias on nuget package generation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 16:16:15 -08:00
Nikolaj Bjorner bb5837791a clean up dotnet core component
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 11:02:49 -08:00
Nikolaj Bjorner 8bfeca063d update example build for dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 10:36:27 -08:00
Nikolaj Bjorner 6a9c8a8999 remove spurious string
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 19:40:56 -08:00
Nikolaj Bjorner c6c4dc4563 start script on assembling platform binaries to wrap with nuget install
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 16:57:47 -08:00
Nikolaj Bjorner 4f4463b2b7 update for nuget/core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 15:06:24 -08:00
Nikolaj Bjorner 13d1ccfeaf update for nuget/core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 14:59:53 -08:00
Nikolaj Bjorner c372500018 update for nuget/core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 14:51:58 -08:00
Nikolaj Bjorner 84baddf87c Merge branch 'master' of https://github.com/z3prover/z3 2018-11-14 14:07:16 -08:00
Nikolaj Bjorner 1cc2cc0143 add TBD marker
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 14:07:14 -08:00
Nikolaj Bjorner 74db2f2509
Merge pull request #1939 from msoeken/dotnetcore-fix
Choose runtime for .NET core DLL.
2018-11-14 14:06:43 -08:00
Mathias Soeken 690bd8502a Choose runtime for .NET core DLL. 2018-11-14 13:47:46 -08:00
Nikolaj Bjorner 2501a875ef update script to generate file directly instead of from makefile
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 13:44:40 -08:00
Nikolaj Bjorner c49d71ba66 Merge branch 'master' of https://github.com/z3prover/z3 2018-11-14 11:43:44 -08:00
Nikolaj Bjorner 139d8b85f0 core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-14 11:43:41 -08:00
Mathias Soeken 33363aeb58 Fix problem in mk_echo. 2018-11-14 11:27:55 -08:00
Mathias Soeken e39907c481 Fix some problems in mk_echo. 2018-11-14 11:25:18 -08:00
Mathias Soeken d4567a1255 Fix echo command for Windows. 2018-11-14 11:11:25 -08:00
Mathias Soeken 2fbaad15d7 Build example for dotnetcore. 2018-11-14 09:57:47 -08:00
Nikolaj Bjorner ccf6ca310e more dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-13 19:59:46 -08:00
Nikolaj Bjorner 37ec933c66 more dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-13 19:58:42 -08:00
Nikolaj Bjorner dbd5ef4526 more dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-13 19:58:09 -08:00
Nikolaj Bjorner bd78558826 adding dotnetcore handling
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-13 19:51:57 -08:00
Nikolaj Bjorner 225fb82d96 add TBD for dotnet example
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-13 15:54:37 -08:00
Nikolaj Bjorner 4d0bc8c8b3 ignore propagation on units
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-11 15:10:44 -08:00
Nikolaj Bjorner a000747605 fixing mk-win-dist to include redist #1924
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-10 14:13:43 -08:00
Nikolaj Bjorner cea15c8780 use h_file not fullname in error message
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-10 10:13:05 -08:00
Nikolaj Bjorner 82e60ab17a add exception handler for debugging #1925
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-10 10:07:42 -08:00
Nikolaj Bjorner 2c8d942568 add error if library is not included #1924
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-09 18:05:40 -08:00
Nikolaj Bjorner b02c698284 align variable names with dimacs input
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-08 16:52:10 -08: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 0f0287d129 prepare release notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-28 17:42:16 -05: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 540922766d more dotnetcore preparation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 12:15:54 -07:00
Nikolaj Bjorner 4616ddf103 more prep for dotnet core
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 11:50:07 -07:00
Nikolaj Bjorner 7c043dee7d more prep for dotnetcore
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 11:07:17 -07:00
Nikolaj Bjorner 163e1e3e55 avoid name clash
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 11:03:41 -07:00
Nikolaj Bjorner 8a93f34b4a Merge branch 'master' of https://github.com/z3prover/z3 2018-10-22 11:00:07 -07:00
Nikolaj Bjorner 81a92edb61 prepare to retool
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-22 10:59:51 -07:00
Florian Pigorsch 326bf401b9 Fix some spelling errors (mostly in comments). 2018-10-20 17:07:41 +02:00
Nikolaj Bjorner 694a6a26c9 bump version, add double access
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-19 20:20:08 -07:00
Nikolaj Bjorner 016872a5e0 increment patch
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-15 12:44:19 -07:00
nabice 13183b7c7c Ignore current dir when searching for jni 2018-10-10 17:12:16 +08:00
Andrew Helwer 7941074fd1 Added packaging directions, removed linkresource flag 2018-10-06 18:22:55 -07:00
Nikolaj Bjorner 0c4754d94b rename version.h to z3_version.h to differentiate name in install include directory. Add support for z3_version.h in python build system. #1833
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-09-21 20:13:58 -07:00
Nikolaj Bjorner e041ebbe80 bmc improvements, move fd_solver to self-contained directory
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-05 10:00:49 -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
Nuno Lopes 8791f61aa7 reduce mem allocation in tactic API 2018-07-02 13:41:44 +01: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
Nikolaj Bjorner b6c43f6143 move files for build script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-06-15 15:13:55 -07:00
Nikolaj Bjorner 6e27ad42c8 remove pdr reference from legacy build script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-06-15 15:02:50 -07:00
Nikolaj Bjorner b37a5b1679 clean up python build files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-25 10:27:12 -07:00
Nikolaj Bjorner 753b9dd734 fix #1650 fix #1648
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-25 08:56:13 -07:00
Philipp Wendler 3e0506a71b Set the SONAME field of libz3.so to libz3.so.
This fixes a problem when loading libz3java from Java,
where the dependency on libz3 is not detected as fulfilled
if the latter does not have SONAME set.
2018-05-25 15:01:07 +02:00
Nikolaj Bjorner f5775f265a fix python build script dependencies
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-23 09:21:33 -07:00
Nikolaj Bjorner c963f6f2df merge with master
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-23 08:02:16 -07:00
Nikolaj Bjorner 50c93d1ad4 merge with 4.7.1
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-22 17:10:36 -07:00
Nikolaj Bjorner 3b1b82bef0 bumping version number by 1 for release tagging
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-22 10:19:38 -07:00
Sapan Bhatia c198b12743 Big_int is no longer a part of OCaml's standard library and must be
included via the num package: https://github.com/ocaml/num
2018-05-15 04:55:57 +05:30
Nikolaj Bjorner 888699548d
Revert "Specify encoding of source files in mk_util.py" 2018-05-03 11:59:49 -07:00
Nikolaj Bjorner c293d325a9
Merge pull request #1610 from varming/cv/encoding
Specify encoding of source files in mk_util.py
2018-05-03 11:51:37 -07:00
Carsten Varming c279fd9f2e Specify encoding of source files in mk_util.py 2018-05-02 23:27:33 -04:00
Nikolaj Bjorner 78b9f0686a merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-01 07:43:29 -07:00
Nikolaj Bjorner f525f43e43 merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-30 09:30:43 -07:00
Nikolaj Bjorner 859c68c2ac merge with opt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-30 08:27:54 -07:00
yxliang01 f7bcf0fd58 Z3 now will also try to find libz3 in PYTHONPATH 2018-04-24 08:17:20 -07:00
Nikolaj Bjorner 2dc92e2b94 merge with pull request #1557
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-07 17:22:49 -07:00
Nikolaj Bjorner 21a3b9c8e2 increment version number due to ABI/API breaking change #1556
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-31 05:20:47 -07:00
Bruce Mitchener 16a2ad9afd Use stdint.h for int64_t / uint64_t in API.
Now that we can use stdint.h, we can use it to portably define
64 bit integer types for use in the API.
2018-03-30 23:06:24 +07:00
Nikolaj Bjorner 76dec85c93 use stdbool #1526 instead of int
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-27 15:41:53 -07:00
Nikolaj Bjorner 7063ad81cc updates
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-25 19:42:06 -07:00
Nikolaj Bjorner a9f2ffd928 Merge branch 'opt' of https://github.com/nikolajbjorner/z3 into opt 2018-03-25 14:57:14 -07:00
Nikolaj Bjorner c513f3ca09 merge with master
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-25 14:57:01 -07:00
Nikolaj Bjorner a79400a01b fix bugs in scc_tr
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-25 14:55:42 -07:00
Nikolaj Bjorner 3765bde5e9 updated OSX build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-22 20:19:08 -07:00
Nikolaj Bjorner bfc0b214ab update script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 14:49:36 -07:00
Nikolaj Bjorner 12f147403c update script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 14:13:27 -07:00
Nikolaj Bjorner 5d68a09233 update script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 11:25:38 -07:00
Nikolaj Bjorner 1470dbf517 back to path
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 10:57:40 -07:00
Nikolaj Bjorner ba30365e2d updated script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 10:26:09 -07:00
Nikolaj Bjorner 9765a6d0d3 updated script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-21 09:23:01 -07:00
Nikolaj Bjorner ff2924e83b fix mac build error
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 17:19:40 -07:00
Nikolaj Bjorner 6304578111 mac
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 17:08:26 -07:00
Nikolaj Bjorner 16d2c2c506 mac
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 17:06:54 -07:00
Nikolaj Bjorner 116f0e0c70 cd below
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 17:05:12 -07:00
Nikolaj Bjorner 971f83997c add ls
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 17:02:19 -07:00
Nikolaj Bjorner 76eae5fa5c add mac build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 16:57:01 -07:00
Nikolaj Bjorner 4529ad933a add vstsmac
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 15:19:05 -07:00
Nikolaj Bjorner 931dbd5933 remove python doc test
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 13:37:04 -07:00
Nikolaj Bjorner 8c4ea7983f use vc path in 2013
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 12:59:42 -07:00
Nikolaj Bjorner 6ee4efe93a remove python tests from x86 build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 12:48:21 -07:00
Nikolaj Bjorner f7dfc39984 add vstsvs2013 outline
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 12:20:40 -07:00
Nikolaj Bjorner db7844bef7 adding build definition
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 09:33:23 -07:00
Nikolaj Bjorner 0d13a2812e add error checking and command argument
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 09:26:39 -07:00
Nikolaj Bjorner eb6bbd390a vsts script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-20 08:33:09 -07:00
Nikolaj Bjorner dc01266354 fixing after clone
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 20:50:24 -07:00
Nikolaj Bjorner d5bd7878b3 fix example test
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 20:03:47 -07:00
Nikolaj Bjorner d5811a13eb add test-benchmarks
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 19:18:05 -07:00
Nikolaj Bjorner b727a3463d update vsts
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 18:21:34 -07:00
Nikolaj Bjorner ac2fe879ae update script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 15:55:00 -07:00
Nikolaj Bjorner ba2e28fa0e update build script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 14:55:38 -07:00
Nikolaj Bjorner 7ded2a90e6 remove unreachable from vector
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 11:55:18 -07:00
Nikolaj Bjorner 7a64c82d99 comment out pull
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 11:15:49 -07:00
Nikolaj Bjorner a873cc41bf update vsts script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 10:43:59 -07:00
Nikolaj Bjorner 8602c52bc9 fix test build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-19 10:41:42 -07:00
Nikolaj Bjorner afb12fe6c3 move script
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-18 17:22:58 -07:00
Pierre Pronchery 5f7bd993de Add support for NetBSD
Originally from David Holland <dholland@NetBSD.org>.
2018-03-13 21:59:35 +01:00
Nikolaj Bjorner 3d9139f6ef bump revision
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-10 12:07:55 -08:00
Nikolaj Bjorner 0ce2001449 fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-10 11:39:22 -08:00
Bruce Mitchener 878a6ca14f Fix typos. 2018-03-09 14:30:43 +07:00
Christoph M. Wintersteiger 0ef33a98c4
Revert "Fix encoding error" 2018-02-13 14:08:55 +00:00
Nikolaj Bjorner ad92bfb1a1 fix python build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-02-01 20:19:24 -08:00
Virgile ROBLES fddc4e311f
Fix encoding error
The encode/decode is not needed and fails if any non-ASCII character is returned by g++ or clang++
2018-01-26 00:30:59 +01:00
Nikolaj Bjorner 1992749e78 to ascii or not to ascii #1447
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-01-07 18:52:00 -08:00
Christoph M. Wintersteiger 63951b815d Bumped version number. 2017-12-18 18:58:21 +00:00
Ivan Gotovchits 49678065bd fixes compilation flags for OCaml plugins
The `-linkall` option is needed for a plugin to be standalone,
otherwise it will miss those dependencies that are not used.
2017-12-13 14:45:06 -05:00
Nikolaj Bjorner b96dacfff2 set version, fix build of test files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-30 08:42:01 -08:00
Nikolaj Bjorner 161b6a9983 increase minor version, update java/.net apis
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-28 11:51:37 -08:00
Nikolaj Bjorner 89971e2a98 remove smtlib1 dependencies
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-28 10:37:30 -08:00
Nikolaj Bjorner 61d149a724 fix java build problem with bool arrays
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-15 16:18:18 -08:00
Nikolaj Bjorner 795e0c641a add method to create bit-vectors directly from an array of Booleans
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-15 14:44:59 -08:00
Christoph M. Wintersteiger 7c63a5cc1d Fixed MSYS/MinGW build. Fixes #1335. 2017-11-11 16:38:53 +00:00
Christoph M. Wintersteiger 45975bec65 Improved support for MSYS/MINGW. Fixes #969. 2017-11-11 15:11:54 +00:00
Christoph M. Wintersteiger 19f43713c9 Fixed Windows build of C example. 2017-11-08 21:16:03 +00:00
Christoph M. Wintersteiger 17bcb37cf1 Fixed error handlers in Python API. 2017-11-08 20:09:18 +00:00
Christoph M. Wintersteiger bec6c3f9e2 Fixed C example build. 2017-11-08 18:22:17 +00:00
Christoph M. Wintersteiger a8b52419f5 Fixed C example build. 2017-11-08 18:14:42 +00:00
Christoph M. Wintersteiger bf563bbd5f Fixed default library path order in Python API. 2017-11-08 17:29:40 +00:00
Christoph M. Wintersteiger ef800d7b93 Fixed library path order in Python API. 2017-11-08 17:20:25 +00:00
Christoph M. Wintersteiger d2c5e0e76a Fixed problems arising from unfortunate object destruction order in the Python API. Fixes #989. 2017-11-08 16:36:47 +00:00
Nikolaj Bjorner fd49a0c89c added facility to persist model transformations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-02 00:05:52 -05:00
Paul Ehrlich 2a459c5ff6 MSYS offers a MINGW shell as well. (uses different os.uname()) 2017-11-01 12:02:48 +01:00
Christoph M. Wintersteiger e50470f2c4 Added support for MSYS2 2017-10-30 18:24:38 +00:00
Nikolaj Bjorner 60b970b9ba add proofs dependency to solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-28 16:23:13 -07:00
Nikolaj Bjorner db65cc007a move more proof utils
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-24 10:27:48 -07:00
Nikolaj Bjorner d67f3c1466 create proofs folder, move proof-post-order utility to proofs directory, fix regression with proofs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-24 03:08:56 -07:00
Nikolaj Bjorner c1b243a8e3 merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-07 19:24:30 +01:00
Nikolaj Bjorner a625301a41 expose incremental cubing over API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-09-28 15:05:10 -07:00
Christoph M. Wintersteiger 9a464dded4 Removed -std=c++11 from OCaml stubs build command. Fixes #1263. 2017-09-27 14:22:59 +01:00
Nikolaj Bjorner 597f77cd77 initial sketch for dominator based simplifiation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-28 20:03:31 -07:00
Nicolas Braud-Santoni 4cb7f72509 First version of the inj. tactic 2017-08-22 17:10:20 +00:00
Nikolaj Bjorner e1d08e9526 remove reinterpret cast occurrences that require disabling strict alias analysis #987 #1210
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-17 20:41:29 -07:00
Dan Liew a2d7b43554 Update header includes to be relative to src/ directory. 2017-08-17 18:26:53 +01:00
Nuno Lopes 4b00bc636b revert the patch to remove no-strict-aliasing
VS 2012 doesnt support C++11 unions..
2017-08-14 23:00:59 +01:00
Nikolaj Bjorner dc4dbdf51e Merge branch 'master' of https://github.com/z3prover/z3 2017-08-14 12:52:41 -07:00
Nikolaj Bjorner 086ea7867e another stab at #989
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-14 12:52:25 -07:00
Nuno Lopes 2473c69679 Drop no-strict-aliasing and fix 2 places where it was violated 2017-08-14 20:09:49 +01:00
Nikolaj Bjorner 5fdea2cb18 use rfind instead of index to avoid prefix clashes #534
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-03 10:19:07 -07:00
Nikolaj Bjorner 8844112418 update header include generation to use relative paths #534
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-03 08:50:04 -07:00
Nikolaj Bjorner 2b82fd5d0c updated include directives
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-01 10:51:47 -07:00
Christoph M. Wintersteiger 6bc5209e26 Fixed build problems with .vcxproj 2017-08-01 15:53:55 +01:00
Nikolaj Bjorner 0eb2915e83 Merge pull request #1182 from agurfinkel/spacer-z3
Spacer
2017-07-31 17:10:09 -07:00
Nikolaj Bjorner 8fdf3177da add initialization to unused parameters
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-31 14:06:29 -07:00
Arie Gurfinkel 5b9bf74787 Spacer engine for HORN logic
The algorithms implemented in the engine are described in the following papers

Anvesh Komuravelli, Nikolaj Bjørner, Arie Gurfinkel, Kenneth L. McMillan:
Compositional Verification of Procedural Programs using Horn Clauses over Integers and Arrays. FMCAD 2015: 89-96

Nikolaj Bjørner, Arie Gurfinkel:
Property Directed Polyhedral Abstraction. VMCAI 2015: 263-281

Anvesh Komuravelli, Arie Gurfinkel, Sagar Chaki:
SMT-Based Model Checking for Recursive Programs. CAV 2014: 17-34
2017-07-31 17:02:29 -04:00
Nikolaj Bjorner b19f94ae5b make include paths uniformly use path relative to src. #534
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-31 13:24:11 -07:00
Nikolaj Bjorner 45e31b0db3 add dummy initialization to unused variables to avoid compiler warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-28 10:17:46 -07:00
Nikolaj Bjorner ca67274519 another round of fix for #989 to avoid problems with doxygen generation (TravisCI build failure)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-27 12:59:34 -07:00
Nikolaj Bjorner af47aa0120 updated suspenders for #989
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-27 12:32:44 -07:00
Nikolaj Bjorner b902018373 add suspenders for #989
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-27 11:56:01 -07:00
Nikolaj Bjorner 2e3a5a2060 attempt at addressing #989 by referencing _lib directly instead of over lib() in function calls
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-27 11:03:18 -07:00
Daniel Perelman d57494395c Add --guardcf flag to mk_make.py to optionally enable Control Flow Guard. 2017-07-06 16:59:20 -07:00
Dan Liew d00892c9a6 [CMake] Fix dependencies for generating mem_initializer.cpp.
Previously CMake was not aware of which headers files the generation
of `mem_initializer.cpp` depended on. Consequently this could result
in broken incremental builds if

* Existing headers that declare memory initializers/finalizers change.
* New headers are added that declare memory initializers/finalizer.

Now the `z3_add_component()` CMake function has been modifed so that
it now takes an optional `MEMORY_INIT_FINALIZER_HEADERS` argument
which allows the headers that declare memory initializers/finalizers
to be explicitly listed.

With this information CMake will now regenerate `mem_initializer.cpp`
correctly.

This required the `mk_mem_initializer_cpp_internal()` function to be
changed to take a list of header files rather than a list of component
source directories. The two consumers (CMake and Python/Makefile build
systems) of this function have been modified to work with this change.

This partially fixes #1030.
2017-06-21 23:56:53 +01:00
Dan Liew 6f48a145aa [CMake] Fix dependencies for generating gparams_register_modules.cpp.
Previously CMake was not aware of which headers files the generation
of `gparams_register_modules.cpp` depended on. Consequently this could result
in broken incremental builds if

* Existing headers that declared module description/parameters change.
* New headers are added that declare module description/parameters.
* `.pyg` files that generate header files that declare module
  description/parameters change

Now the `z3_add_component()` CMake function has been modifed so that

* All header files that are generated from `.pyg` files are added as
dependencies and are scanned from module description/parameter
declarations. This implicit dependency of `gparams_register_modules.cpp`
depending on other generated header files seems unnecessary complex. We
should revisit this design decision once the Python/Makefile build
system is deprecated.

* The function now takes an optional `EXTRA_REGISTER_MODULE_HEADERS`
argument which allows the headers that declare module
description/paramters to be explicitly listed.

With this information CMake will now regenerate `gparams_register_modules.cpp`
correctly.

This required the `mk_gparams_register_modules_internal()` function to be
changed to take a list of header files rather than a list of component
source directories. The two consumers (CMake and Python/Makefile build
systems) of this function have been modified to work with this change.

This partially fixes #1030.
2017-06-21 23:56:46 +01:00
Dan Liew 229fd3dc3e [CMake] Fix dependencies for generating install_tactic.cpp.
Previously CMake was not aware of which headers files the generation
of `install_tactic.cpp` depended on. Consequently this could result
in broken incremental builds if

* Existing headers that declared tactics/probes changed.
* New tactics/probes were added to new header files.

Now the `z3_add_component()` CMake function has been modifed to take an
optional `TACTIC_HEADERS` argument which allows the headers that declare
tactics/probes to be explicitly listed. The necessary component
declarations have been modified to declare their tactic/probe header
files.

With this information CMake will now regenerate `install_tactic.cpp`
correctly.

This required the `mk_install_tactic_cpp_internal()` function to be
changed to take a list of header files rather than a list of component
source directories. The two consumers (CMake and Python/Makefile build
systems) of this function have been modified to work with this change.

This partially fixes #1030.
2017-06-21 23:03:48 +01:00
Nikolaj Bjorner 691788f449 remove stale references to foci
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-05-19 20:21:08 -07:00
Christoph M. Wintersteiger a258236229 Disabled debug output 2017-05-19 18:51:52 +01:00
Christoph M. Wintersteiger 46791047fa Fixed VS 2017 platform toolset version in .vcxproj 2017-05-12 14:28:55 +01:00
Nikolaj Bjorner a64a73255e make source directory relative to build directory
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-05-09 15:46:24 -07:00
Nikolaj Bjorner 7731163d11 use forward slash on src include
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-05-09 14:42:43 -07:00
Nikolaj Bjorner 911b24784a merge LRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-05-09 10:46:11 -07:00
Christoph M. Wintersteiger 79dcf03a42 Enabled C++11 in GCC and Clang 2017-05-05 15:01:10 +01:00
Christoph M. Wintersteiger 0ebce66c57 Fixed bug with .NET keyfile path containing spaces. Fixes #1003. 2017-05-05 14:22:40 +01:00
Christoph M. Wintersteiger 3bbe5eceeb fix for --get-describe 2017-03-24 15:53:46 +00:00
Christoph M. Wintersteiger 075a56ef02 Merge pull request #924 from cheshire/fix_jni_string_leak
Free allocated char arrays in JNI API
2017-03-01 18:32:54 +00:00
George Karpenkov dbdb0307db Free allocated char arrays in JNI API
Fixes #886
2017-03-01 15:22:15 +01:00
Michael Lowell Roberts 3415672f31 fixed bug where mk_make.py --build=... would fail to handle absolute paths correctly. 2017-02-28 08:24:35 -08:00
Christoph M. Wintersteiger 59db0bc9c4 Merge pull request #829 from legendtang/fix_utf8_conf
Fixed utf-8 version string handling for python2. Resolved #787
2017-02-04 20:38:51 +00:00
martin-neuhaeusser 0e966f21ff Fix off-by-one bug in array indexing in the OCaml bindings
This patch fixes an off-by-one bug that occurred in the construction of output arrays
in the OCaml bindings.
2017-01-30 17:28:24 +01:00
Nikolaj Bjorner a0a81fc2d7 add format #879
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-26 08:37:37 -08:00
Christoph M. Wintersteiger 43d083bafb Windows build fix. 2017-01-19 11:19:29 +00:00
Christoph M. Wintersteiger b9bfd4ddf5 Merge pull request #854 from angr/fix/fpic-arm
Add -fpic to armv7/armv8 build
2017-01-18 21:55:52 +00:00
Christoph M. Wintersteiger 0fae048e3e Windows build fix. 2017-01-17 12:58:32 +00:00
Christoph M. Wintersteiger 6fe1682378 Merge branch 'master' of https://github.com/Z3Prover/z3 2017-01-16 14:08:26 +00:00
Christoph M. Wintersteiger 24e4f19d76 build fix 2017-01-16 14:08:21 +00:00
Nikolaj Bjorner dd0d3d4510 use stirngs for env variables
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-15 11:59:09 -08:00
Christoph M. Wintersteiger 340ba7780e Added MAKEJOBS env var to mk_unix_dist.py 2017-01-14 18:57:10 +00:00
Christoph M. Wintersteiger b30f3a6dbd Separated win32/64 builds 2017-01-14 14:56:25 +00:00
Daniel Perelman f7ebe16046 Omit '.dll' from library name for DllImport. 2017-01-11 16:56:28 -08:00