3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00
Commit graph

1014 commits

Author SHA1 Message Date
Nikolaj Bjorner 386399472d seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-23 11:02:34 -08:00
Nikolaj Bjorner 7a9bd72e2e merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:48:47 -08:00
Nikolaj Bjorner 0b1e8ff912 removing tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:00:00 -08:00
Nikolaj Bjorner 5262e1986c removing tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 16:58:26 -08:00
Christoph M. Wintersteiger ced4a430d1 ML code simplification 2015-12-22 23:40:27 +00:00
Christoph M. Wintersteiger 0f656047c7 ML code simplification 2015-12-22 23:37:07 +00:00
Nikolaj Bjorner 4cf41c44f3 support else values that are null from models
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 11:09:48 -08:00
Nikolaj Bjorner 995d66c6f2 remove print statements
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 10:46:33 -08:00
Nikolaj Bjorner 9c6271dded add debugging facilities for github issues #384 #367
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 10:43:18 -08:00
Nikolaj Bjorner 8e26c97782 tuning bit-vector operations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-21 13:09:03 +02:00
Christoph M. Wintersteiger ed1e8b73ed formatting 2015-12-17 17:39:23 +00:00
Christoph M. Wintersteiger fc5b9156cf Merge pull request #363 from delcypher/dotnet_configure_assembly_info
Refactor ``mk_all_assembly_infos()`` to use the ``configure_file()`` and misc fixes for dotnet bindings
2015-12-15 11:35:14 +00:00
Christoph M. Wintersteiger c33a8794a4 Merge branch 'master' of https://github.com/Z3Prover/z3 into new_ocaml_install 2015-12-14 16:32:48 +00:00
Christoph M. Wintersteiger e652b7d2c7 Follow-up fix for #377. 2015-12-14 16:31:10 +00:00
Christoph M. Wintersteiger 4f5a2e432d For for Python 3.x __eq__/__hash__.
Fixes #377.
2015-12-14 16:27:39 +00:00
Christoph M. Wintersteiger ced6809cd8 Removed old, unnecessary file. 2015-12-14 14:43:28 +00:00
Christoph M. Wintersteiger 134b93b43e ML API build fixes for Windows. 2015-12-14 14:41:19 +00:00
Christoph M. Wintersteiger 1f0b5cd0bc Merge branch 'master' of https://github.com/Z3Prover/z3 into new_ocaml_install 2015-12-14 13:02:49 +00:00
Dan Liew 28eb21442e Bump the copyright year in `AssemblyInfo.cs.in`. Perhaps we should
automatically generate this year during the configure step with a
``@COPYRIGHT_END_YEAR@`` substitution instead?
2015-12-14 09:51:45 +00:00
Dan Liew 288fb3b7c1 Remove some trailing spaces in `AssemblyInfo.cs.in` 2015-12-14 09:51:45 +00:00
Dan Liew 81c98cf3ee Refactor `mk_all_assembly_infos() to use the configure_file()`
function. The old implementation was buggy under Python 3.5 and
unsafe (not using with statements on calls to ``open()``).
2015-12-14 09:51:45 +00:00
Nikolaj Bjorner 72883df134 fix build, add seq features
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-13 16:02:17 -08:00
Christoph M. Wintersteiger 5a357097c0 ML API Windows build fixes 2015-12-12 20:01:52 +00:00
Christoph M. Wintersteiger d5f79c1f17 build fix for ML API 2015-12-12 19:30:25 +00:00
Nikolaj Bjorner d4a90d7ec3 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:24 +00:00
Nikolaj Bjorner 9769322690 reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner e08bfb62f8 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner 589626b738 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:23 +00:00
Nikolaj Bjorner f2f9578c0a cleanup cancelation logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-12 19:30:22 +00:00
Nikolaj Bjorner 9c597e9eea Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-11 17:47:03 -08:00
Nikolaj Bjorner 1aea9722cb moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 16:56:23 -08:00
Nikolaj Bjorner baee4225a7 reworking cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 16:21:24 -08:00
Nikolaj Bjorner 981f8226fe moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 13:36:47 -08:00
Nikolaj Bjorner 32b6b2da44 moving to resource managed cancellation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 13:13:11 -08:00
Nikolaj Bjorner 61dbb6168e cleanup cancelation logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 12:35:35 -08:00
Christoph M. Wintersteiger 12ee1d342c Improved argument validation in FP API.
Fixes #372
2015-12-11 17:48:40 +00:00
Christoph M. Wintersteiger b25f517a89 Bugfix for C++ API.
Fixes #371.
2015-12-11 14:03:41 +00:00
Christoph M. Wintersteiger cc8e685f45 whitespace 2015-12-11 14:03:24 +00:00
Christoph M. Wintersteiger 383d06b225 Bugfix for Expr.isInt in .NET, Java, ML.
Fixes #370
2015-12-10 15:13:55 +00:00
Christoph M. Wintersteiger 3626d9f69f Bugfix for floating-point API.
Fixes #358.
2015-12-07 19:24:09 +00:00
Christoph M. Wintersteiger 2a0bbad524 Bugfix for ML API 2015-12-07 14:42:40 +00:00
Christoph M. Wintersteiger cfc25b5094 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-07 13:14:00 +00:00
Nikolaj Bjorner 4550b7ed91 Merge branch 'master' of https://github.com/NikolajBjorner/z3 2015-12-07 03:27:04 +00:00
Andres Notzli ced9ba17e9 Fix misc issues in Python API docstrings 2015-12-06 19:00:17 -08:00
Nikolaj Bjorner b5fcbd7099 Merge branch 'mono_dotnet_bindings' of https://github.com/delcypher/z3-1 2015-12-06 13:51:43 -08:00
Dan Liew c8a2b6645a Teach the build system to generate and install a pkg-config file for the
".NET" bindings. This file is required for Monodevelop to find the
bindings because Monodevelop uses pkg-config to find packages
(it doesn't use the GAC).

For lack of a better name the GAC (and pkg-config) package name is now
``Microsoft.Z3.Sharp``. I don't want to call it ``Microsoft.Z3`` because
someone may want to create a ``Microsoft.Z3.pc`` file in the future for
the native Z3 library (i.e. C++ or C bindings).

In addition there is a new utility function ``configure_file()``
which reads a template file, applies some substitutions and writes
the result to another file. This very similar to what CMake does.

There is a new environment variable ``Z3_INSTALL_PKGCONFIG_DIR``
which allows pkgconfig directory to be controlled for the install.
2015-12-05 07:52:31 +00:00
Dan Liew 61d1cd524e Teach the build system to build and install the ".NET bindings"
under non Windows systems (i.e. Using mono).

Building these bindings is unfortunately on by default because
I didn't want to change the command line interface (i.e. ``--nodotnet``)
which people might be relying on. This should really be changed to
match the other binding flags (e.g. ``--java``) but I will leave
this for now.

To perform the build a C# compiler and the GAC utility are required.
The script will try to automatically detect them but the user can
override this by setting the ``CSC`` and ``GACUTIL`` environment
variables.

In order for the ".NET bindings" to be installed the assembly
(``Microsoft.Z3.dll``) needs to have a strong name which means
we need a Strong name key file which is what the
``Microsoft.Z3.mono.snk`` is for. This is the public and private
key so this key **must never** be used for checking integrity. Instead its
only purpose is to avoid any name clashes in the GAC.

It is also worth noting that slightly different flags needs to
be passed to the C# compiler on non Windows platforms. I don't
understand why some of the flags are being used on Windows but I left
a comment there that hopefully someone can fix...
2015-12-05 07:52:31 +00:00
Christoph M. Wintersteiger 36a4828526 Whitespace 2015-12-03 17:55:31 +00:00
Christoph M. Wintersteiger 00271e5531 C API cleanup. Mainly removal of ML-specific macros that are not used anymore and inline documentation fixes. 2015-12-03 17:33:25 +00:00
Christoph M. Wintersteiger d23dce4f7b Bugfix for finite domains in Python API. 2015-12-02 22:34:09 +00:00
Christoph M. Wintersteiger b77f20fb0c Merge branch 'master' of https://github.com/Z3Prover/z3 2015-12-02 17:06:42 +00:00
Christoph M. Wintersteiger 2f86ab98a8 Added finite-domain expressions to the Python pretty printer 2015-12-02 17:04:06 +00:00
Christoph M. Wintersteiger 5510e0ddef Added finite-domain constant to Z3_decl_kind 2015-12-02 17:03:37 +00:00
Christoph M. Wintersteiger 5a43d8a469 Whitespace 2015-12-02 17:02:39 +00:00
Christoph M. Wintersteiger cbda38ee80 Added finite domain expressions and numerals to the .NET, Java, and Python APIs.
Relates to #318
2015-12-02 17:01:52 +00:00
Nikolaj Bjorner 6580f1daf3 expose main interpolation routines in C++ API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-02 07:40:06 -08:00
Christoph M. Wintersteiger 9e756fb6db Warning fix for Comparable<T> in Java API 2015-12-02 14:42:36 +00:00
Christoph M. Wintersteiger 00ce124db3 Bugfix for Z3_is_numeral for finite-domain numerals.
Relates to #318
2015-12-02 14:41:46 +00:00
Christoph M. Wintersteiger 52bbd67cd3 Whitespace 2015-12-02 14:40:47 +00:00
Dan Liew b0bc50a75c Fixed stray UTF-8 Byte order mark in `InterpolationContext.cs`.
Old versions of the mono compiler don't like it.
2015-11-30 15:02:02 +00:00
Christoph M. Wintersteiger 5e37cf9bbf Removed potentially unnecessary string decoding in Python API. 2015-11-23 18:41:31 +00:00
Nikolaj Bjorner 665af3d8b9 remove deprecated user-theory plugins and other unused functionality from API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-20 08:43:27 -08:00
Nikolaj Bjorner fd8fd40669 fix tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-20 08:00:01 -08:00
Nikolaj Bjorner 1d4b996765 merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 16:39:51 -08:00
Nikolaj Bjorner 9cba63c31f remove deprecated iz3 example. Remove deprecated process control
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 12:32:15 -08:00
Yan 4e9b76365d pass the correct context into And() when doing Tactic.as_expr() 2015-11-16 15:41:12 -08:00
Christoph M. Wintersteiger e8d37dba9c Added comments for quantifier constructors. Fixes #319. 2015-11-16 21:58:17 +01:00
Christoph M. Wintersteiger 706a037bf4 Python 3.x string decoding fix 2015-11-16 15:16:50 +01:00
Nikolaj Bjorner ab4033133f remove solver_old
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 18:46:49 -08:00
Nikolaj Bjorner bea68cd194 remove deprecated API functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 17:05:15 -08:00
Nikolaj Bjorner 0f602d652a remove deprecated API functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 13:47:41 -08:00
Christoph M. Wintersteiger 15c48eeaf9 Fix for timeout/rlimit in deprecated solver API.
Partially fixes #307.
2015-11-13 16:42:46 +00:00
Christoph M. Wintersteiger 954400cfa2 whitespace 2015-11-13 16:35:08 +00:00
Nikolaj Bjorner 84f935ae85 initialize solver prior to translate. fixes build break
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-09 06:38:06 -08:00
Christoph M. Wintersteiger 689ed9fa12 Added Z3_mk_array_ext to ML API.
Relates to #292
2015-11-09 13:49:37 +00:00
Christoph M. Wintersteiger cffff18373 -whitespace 2015-11-09 13:22:33 +00:00
Christoph M. Wintersteiger 6625f7a749 Added Z3_solver_translate to ML API. 2015-11-09 13:19:10 +00:00
Nikolaj Bjorner e9315af0d9 remove tabs from z3.py to fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-08 04:22:44 -08:00
Nikolaj Bjorner 4685a5f8ba add array-ext to externally exposed functions to enable interpolants with arrays to be usable in feedback loops with Z3. Addresses one issue raised in #292
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-07 16:42:13 -08:00
Nikolaj Bjorner 13b19eb351 add translate facility to Java/C# APIs, request #209
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-07 10:10:21 -08:00
Nikolaj Bjorner b4cb51cdb3 working on Forking/Serializing a z3 Solver #209
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-06 17:29:24 -08:00
Nikolaj Bjorner 63ea2c4d8f Merge pull request #295 from pazz/AstRef-hash
add __hash__ to AstRef
2015-11-05 16:20:10 -08:00
Patrick Totzke d4242e16c5 add __hash__ to AstRef
AstRef objects needs to be hashable in order
to be used as keys in python dictionaries
2015-11-05 16:28:02 +00:00
Christoph M. Wintersteiger 715050da0b Java API comments fix. 2015-11-04 13:34:50 +00:00
Nikolaj Bjorner b75780ce2b Merge pull request #280 from NikolajBjorner/master
Add PB operators to Python API
2015-10-30 14:15:24 -07:00
Nikolaj Bjorner d83f8d08f3 Merge pull request #276 from kenmcmil/issue260
issue #260 -- support timeout in Z3_compute_interpolant
2015-10-28 20:30:15 -07:00
Ken McMillan d4dff70f39 issue #260 -- support timeout in Z3_compute_interpolant 2015-10-28 18:02:14 -07:00
Nikolaj Bjorner 559f373588 adding PB operators to Python API. remove tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 17:13:24 -07:00
Nikolaj Bjorner 7f5495b134 adding PB operators to Python API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 17:09:42 -07:00
Christoph M. Wintersteiger 6a5da9e9c4 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-28 23:32:42 +00:00
Christoph M. Wintersteiger 118d597c22 removed byte order mark 2015-10-28 23:31:08 +00:00
Nikolaj Bjorner aab63dc126 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-28 16:10:34 -07:00
Nikolaj Bjorner 3bc94e08b3 move friend definitions to inlined functions. Issue #241
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 13:24:13 -07:00
Christoph M. Wintersteiger cab42d2c66 Clarified documentation of par-or tactic.
Relates to #269.
2015-10-28 18:50:22 +00:00
Christoph M. Wintersteiger 15be8d424c Fixed Python 3.x issues. 2015-10-28 14:19:23 +00:00
Christoph M. Wintersteiger 97d97f4694 Fixed Python 3.x doctest problems 2015-10-27 16:39:07 +00:00
Christoph M. Wintersteiger 7324ef7c39 Fixed FP function names in Python API.
Fixes #264
2015-10-27 12:02:38 +00:00
Christoph M. Wintersteiger df1c84c182 fixed indentation (Python 3.x problem) 2015-10-26 16:08:55 +00:00
Paul Phillips 64a5247813 Changed references to help-tactics to help-tactic. 2015-10-25 11:45:46 -07:00
Christoph M. Wintersteiger e2f2708a9c Fixed array default operator 2015-10-19 21:12:43 +01:00
Christoph M. Wintersteiger 6749c19ab1 Merge branch 'static_analysis' of https://github.com/daniel-j-h/z3
# Conflicts:
#	src/ast/ast.h
#	src/interp/iz3foci.cpp
#	src/muz/duality/duality_dl_interface.cpp
#	src/util/hwf.h
2015-10-19 15:14:45 +01:00
Christoph M. Wintersteiger 954a629296 Merge branch 'zkincaid-uint' 2015-10-19 15:01:07 +01:00
Christoph M. Wintersteiger 059c58e6d8 Merge branch 'uint' of https://github.com/zkincaid/z3 into zkincaid-uint 2015-10-19 15:00:43 +01:00
Christoph M. Wintersteiger 0c774e59c3 Merge branch 'Dmitriy403-WpedanticFix' 2015-10-19 14:57:49 +01:00
Christoph M. Wintersteiger 57db321daf Merge branch 'WpedanticFix' of https://github.com/Dmitriy403/z3 into Dmitriy403-WpedanticFix 2015-10-19 14:57:34 +01:00
Christoph M. Wintersteiger 9d505ec7ff Merge branch 'unstable' of https://github.com/jmgrosen/z3 into jmgrosen 2015-10-19 14:53:06 +01:00
Christoph M. Wintersteiger 1364f39f61 Merge pull request #218 from cgcgbcbc/fix/implies
fix implies(expr const &, expr const &) in z3++.h
2015-10-19 14:29:07 +01:00
Christoph M. Wintersteiger bd3775e878 Merge branch 'master' of https://github.com/npricci/z3 into npricci-master
# Conflicts:
#	src/api/python/z3.py
2015-10-19 14:22:56 +01:00
Christoph M. Wintersteiger b9f66c545a Merge pull request #11 from Confusion/patch-1
Corrected typo: interger -> integer
2015-10-19 14:07:02 +01:00
Christoph M. Wintersteiger ef80645a71 Java API context deletion concurrency fix.
Relates to #205 #245
2015-10-14 22:13:43 +01:00
Christoph M. Wintersteiger a71a333722 Minor Java API fix. 2015-10-14 21:33:30 +01:00
Christoph M. Wintersteiger 2d3c12716a Bugfix for Java memory leaks.
Relates to #205 #245
2015-10-14 21:19:59 +01:00
Christoph M. Wintersteiger 58d3329190 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-14 13:59:20 +01:00
Christoph M. Wintersteiger 24532474a0 Bugfix for concurrent Context creation in Java and .NET.
Relates to #205 #245
2015-10-14 13:58:51 +01:00
Christoph M. Wintersteiger b66f34f0d2 Removed unnecessary debug output. 2015-10-14 12:53:18 +01:00
Christoph M. Wintersteiger bae3a76c8a Removed unnecessary debug output. 2015-10-14 12:52:16 +01:00
Christoph M. Wintersteiger e312b47be6 Bugfix for object finalization in Java API.
Relates to #205 and #245
2015-10-14 12:43:09 +01:00
Christoph M. Wintersteiger 6263252bf5 Bugfix for concurrent garbage collection in Java API.
Relates to #205 and #245
2015-10-14 12:42:27 +01:00
Christoph M. Wintersteiger ceb562a889 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-04 16:05:25 +01:00
Nikolaj Bjorner 89f1541d83 put break statement in else branh. Issue #230 (broken loop)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-03 17:15:45 -07:00
Christoph M. Wintersteiger 95dea3922d Merge branch 'pure' of https://github.com/Z3Prover/z3
Conflicts:
	src/api/ml/z3.ml
	src/api/ml/z3.mli
	src/api/python/z3util.py
2015-10-02 19:47:24 +01:00
Christoph M. Wintersteiger 18a0314f6b Fix for ast_map in ML API 2015-10-02 15:52:33 +01:00
Christoph M. Wintersteiger 0a95df8960 removed automatically generated file 2015-10-02 15:11:53 +01:00
Nikolaj Bjorner 1f9d5249a3 fix build break regarind z3test.py and added rlimit
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 14:05:57 -07:00
Nikolaj Bjorner 9b3e242990 adding rlimit resource limit facility to provide platform and architecture independent method for canceling activities
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 13:37:59 -07:00
Christoph M. Wintersteiger 79d69cd5f0 Added FP to_ieee_bv to fpa_rewriter to enable model evaluation. 2015-09-16 12:57:05 +01:00
Guang Chen cef7ec2157 fix implies(expr const &, expr const &) in z3++.h 2015-09-13 13:29:06 +08:00
Nuno Lopes 980a0e97f8 Python 3 compat for z3.py; patch by Sarah Winkler
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-09-10 09:32:45 +01:00
Christoph M. Wintersteiger 9ad065a538 Bugfixes for the optimization module in the ML API 2015-08-15 23:51:43 +01:00
Nikolaj Bjorner 76ca64b93b add consistency per request from Gabriel R
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-09 18:56:42 +02:00
Nikolaj Bjorner eb5af100bd adding optimize bindings for ML, adding get_reason_unknown to optimize, mentioned in pull request issue #188, second edition
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-09 17:49:20 +02:00
Nikolaj Bjorner a0894ac7bf add basic example of using optimizaiton context to Java as raised in issue #179
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-30 11:32:14 -03:00
Nikolaj Bjorner 0e886cfe5e add default constructor and tester to python API, fixes issue #168
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-28 22:54:37 -03:00
Nikolaj Bjorner 318ee3a86d fix issue #176
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-28 22:31:41 -03:00
Zachary Kincaid 6214ba900b Z3_lbool should be signed in API 2015-07-26 21:17:59 -04:00
Dmitriy Trubenkov ab88708f9a Remove extra semicolons in C++ headers. Useful for projects builded with -Wpedantic 2015-07-25 23:46:01 +03:00
vhalros 68c086c589 Added default operator to array interface. 2015-07-24 15:24:23 -04:00
Nikolaj Bjorner 5718c23632 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-16 18:01:16 -07:00
Nikolaj Bjorner 7d5c144dfe add java Optimize context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-16 18:00:45 -07:00
Nikolaj Bjorner 92f731e51c add java Optimize context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-16 18:00:26 -07:00
Nuno Lopes f62a192357 remove __in/__out SAL annotations.
They break the build with recent glibc versions and apparently noone is using them.

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-07-15 13:46:32 +01:00
Christoph M. Wintersteiger 1bad614646 Fixed .equals for AST, FuncDecl, and Sort, and AST.compareTo in Java
Fixes #143
2015-07-14 13:09:00 -07:00
Christoph M. Wintersteiger 5f755a5bd8 Adjusted return types of set functions to ArrayExprs in Java and .NET
Fixes #137
2015-07-14 13:07:16 -07:00
Nikolaj Bjorner 21201371ed add reference equality to Symbols for .NET
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-11 00:53:13 -07:00
Nikolaj Bjorner ade9b2830a various partial fixes for issue #143
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-10 08:16:57 -07:00
Nikolaj Bjorner a9a5a69b73 remove double underscores
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-09 13:31:22 -07:00
Nikolaj Bjorner 4bc044c982 update header guards to be C++ style. Fixes issue #9
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-08 23:18:40 -07:00
Nuno Lopes 3104d2954c don't crash in Z3_model_eval API if not given a valid expression
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-26 18:33:13 +01:00
Nikolaj Bjorner e81dc5a0a0 fixes issue #143 and memory leak on theory plugin setup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-26 09:03:56 +02:00
Nikolaj Bjorner ed806b67fb update unit tests for num allocs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-22 13:20:59 +02:00
Nikolaj Bjorner 564da787fb add count of memory allocations and way to limit allocations globally. Fix purification in nlsat_smt to fix regressions on QF_UFNRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-22 07:45:40 +02:00
Nikolaj Bjorner 3af545784b add missing copyright
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-17 12:48:16 -07:00
Nikolaj Bjorner 1657cdd8b4 add missing copyright
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-17 12:47:19 -07:00
Christoph M. Wintersteiger d3df473279 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-06-11 12:53:31 +01:00
Christoph M. Wintersteiger 5bd55420a4 C API parameter annotation fix 2015-06-11 12:53:22 +01:00
Nikolaj Bjorner d469a16bb8 add more Copyright notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-10 11:59:21 -07:00
Nikolaj Bjorner b08ccc7816 added missing Copyright forms
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-10 11:54:02 -07:00
Christoph M. Wintersteiger 004bf1471f Added conversion function for Goal to Expr conversion in .NET, Java, ML 2015-06-10 13:17:34 +01:00
Christoph M. Wintersteiger 98f2de3216 Added Z3_fpa_get_numeral_significand_uint64 to .NET, Java, and ML APIs. 2015-06-09 12:57:19 +01:00
Christoph M. Wintersteiger da3243fb07 FPA API bugfix 2015-06-09 12:29:05 +01:00
Christoph M. Wintersteiger eb3d499888 documentation fix 2015-06-09 12:28:52 +01:00
Christoph M. Wintersteiger d39969f0a0 Added extraction of uint64 significand bits from FP numerals. 2015-06-09 12:28:23 +01:00
Christoph M. Wintersteiger 624cc8a874 Bugfixes for FPA API. Thanks to Christian Dernehl for reporting these. 2015-06-09 11:53:43 +01:00
Nuno Lopes 0997d0d2b5 add new C API function: Z3_finalize_memory()
Useful to debug memory leaks in Z3 and in client applications

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-07 14:55:15 +01:00
Christoph M. Wintersteiger c7fd74e8ad Fixed FPA Python doctest 2015-06-02 12:45:55 +01:00
Christoph M. Wintersteiger d6398c4fdc Fixed FPA Python doctest 2015-06-02 11:59:55 +01:00
Nikolaj Bjorner 894d6cb11b fix build break to support new statistics items
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-29 13:38:54 -07:00
Nikolaj Bjorner ed7e0e11a8 n/a
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-28 20:55:13 -07:00
Nikolaj Bjorner 23a6138d81 initialize potentially unused variables. Fixes issue #112
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-28 14:55:37 -07:00
Nikolaj Bjorner 562ed61a24 add shorthands for creating uninterpreted sorts to context API
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:30:37 -07:00
Nikolaj Bjorner e483efd3f4 fixes to Euclidean solver, fixes #100
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:21:20 -07:00
Nikolaj Bjorner cb00555635 local changes
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:18:52 -07:00
Christoph M. Wintersteiger 91352369a9 Added conversion functions to ASTVectors in .NET and Java.
Fixes #108
2015-05-26 11:20:19 +01:00
John Grosen 64b46f2310 Fix the Python FPRef.__lt__ implementation 2015-05-25 00:31:04 -07:00
Christoph M. Wintersteiger d8f6d84217 Updates for the .NET, Java, and ML APIs for recently changed fixedpoint and interpolation functionality.
Fixes #103
2015-05-23 16:53:47 +01:00
Christoph M. Wintersteiger e33ff42766 Updates for the .NET, Java, and ML APIs for recently changed fixedpoint and interpolation functionality.
Fixes #103
2015-05-23 16:49:41 +01:00
Christoph M. Wintersteiger a361e4dcef typo 2015-05-23 16:40:43 +01:00
Nikolaj Bjorner 279ef05713 expose BoolExpr[] for ASTVector and merge common functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-22 08:57:05 -07:00
Nikolaj Bjorner b4f72c8145 Revert "Change ASTVector to Expr[] in interpolation result" 2015-05-22 08:24:45 -07:00
Marcus Völker a229416a2b Change ASTVector to Expr[] in interpolation result 2015-05-22 15:55:09 +02:00
Nikolaj Bjorner 15e1c84592 update docuemntation for codeplex question 29927489/z3-proofs-are-hypothesis-and-lemma-rules-always-cleanly-nested
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-19 08:38:07 -07:00
Nuno Lopes 227c8870d6 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-05-19 13:48:59 +01:00
Nuno Lopes 8ff7735a20 python 3 fixes
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-19 13:47:43 +01:00
Christoph M. Wintersteiger a41a9c94dd Formatting 2015-05-19 12:43:25 +01:00
Christoph M. Wintersteiger f0b699f03a Added Optimize.cs to to Microsoft.Z3.csproj 2015-05-19 12:41:51 +01:00
Christoph M. Wintersteiger 7232877d92 tabs, indentation 2015-05-19 11:01:27 +01:00
Christoph M. Wintersteiger 32fb679066 tabs 2015-05-19 11:01:15 +01:00
Christoph M. Wintersteiger 1702a55018 Introduced return value classes for interpolation functions.
Fixes #82.
2015-05-15 13:50:55 +01:00
Nuno Lopes 1dc17db56a Fix concat() in c++ api
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-15 09:01:56 +01:00
Nikolaj Bjorner ab5022888c Merge branch 'opt' of https://github.com/Z3Prover/z3 into unstable 2015-05-14 12:11:17 +01:00
Nikolaj Bjorner 4a9d97bd02 add concat to z3++, codeplex request
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-08 21:29:48 -07:00
Nikolaj Bjorner 901d8a9f5b change exception test to take into account new coercion operation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-08 00:38:26 -07:00
Nikolaj Bjorner ad39811dc0 allow coercion from Boolean to Int/Real, fixes #78
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:36:37 -07:00
Nikolaj Bjorner dc52ebd312 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-05-07 21:33:51 -07:00
Nikolaj Bjorner 45eda4bee7 allow coercion from Boolean to Int/Real, fixes #78
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:33:36 -07:00
Nikolaj Bjorner 99861ffc32 allow coercion from Boolean to Integers and reals
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:32:02 -07:00
Christoph M. Wintersteiger 7c36846d39 Fixed import problems in z3util.py.
Fixes #67
2015-05-04 14:09:38 +01:00
Nikolaj Bjorner 9377779e58 merge with unstable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-04-30 10:40:03 -07:00
Christoph M. Wintersteiger 1d49f61b9a Merge branch 'unstable' of https://github.com/Z3Prover/z3 into contrib
Conflicts:
	README
	src/api/ml/build-lib.sh
	src/api/ml/z3.ml
	src/api/ml/z3.mli
	src/api/ml/z3_stubs.c
2015-04-28 15:19:08 +01:00
Christoph M. Wintersteiger 8c3fc574d1 comments fix 2015-04-24 15:37:45 +01:00