Nikolaj Bjorner
f525f43e43
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-30 09:30:43 -07:00
Nikolaj Bjorner
3b78bdc8e5
shorthands in enode to access args and partents
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-06 14:01:09 -07:00
Nikolaj Bjorner
5ba939ad5e
add tuple shortcut and example to C++ API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-03 12:40:18 -07:00
Nikolaj Bjorner
32c9af5e5a
fix use of Z3_bool -> Z3_lbool
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-27 16:16:25 -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
0ce2001449
fix build
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-10 11:39:22 -08:00
Bruce Mitchener
73b3da37d8
Typo fixes.
2018-01-02 22:48:06 +07:00
Nikolaj Bjorner
6b258578f9
fix uninitialized variable m_gc_burst in config, have cuber accept and receive optional vector of variables indicating splits and global autarky as output
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-12-14 02:38:45 -08:00
Dan Liew
92059942e6
[CMake] Use C++11 when building C++ API example.
...
This is a change requested by @NikolajBjorner (
5f8c97532c (commitcomment-26049417)
).
2017-12-07 10:56:44 +00:00
Nikolaj Bjorner
60af4a5820
deal with ambiguity
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-12-04 19:12:51 +05:30
Nikolaj Bjorner
0bfea99cff
fix issues found in parsing examples
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-12-01 14:43:52 -08:00
Nikolaj Bjorner
a9ebda105c
remove assertion that gets violated on exception path (declaration of datatypes are not getting removed)
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-12-01 08:59:36 -08:00
Nikolaj Bjorner
c18d60a9c5
fix java
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 20:56:36 -08:00
Nikolaj Bjorner
ab58723ffc
fix dotnet example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 20:52:19 -08:00
Nikolaj Bjorner
9f567a6215
fix example file to be smt2 format
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 19:38:47 -08:00
Nikolaj Bjorner
0a67f6ee9b
fix maxsat compilation for maxsat example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 09:00:37 -08:00
Nikolaj Bjorner
09dc773658
fix maxsat compilation for maxsat example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 08:50:35 -08:00
Nikolaj Bjorner
2749e547cf
fix c example, remove more smtlib1 printing
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-28 18:14:24 -08: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
Nikolaj Bjorner
fc73271b83
more C fixes to model example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-25 11:20:56 -07:00
Nikolaj Bjorner
7ed32f4315
re-add model example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-25 10:48:53 -07:00
Nikolaj Bjorner
2c27056283
disable model example pending C compliance or C99 or whatever adjustment
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-25 10:24:49 -07:00
Dan Liew
de3700e1fd
[CMake] Try to unbreak the C example build with older GCC versions
...
by forcing the language version to be C99.
2017-10-25 11:13:25 +01:00
Dan Liew
f27ac24fa0
Add example of using Z3's new model construction C API. This API
...
was requested in #1223 .
This example uses the new `Z3_mk_model()`, `Z3_add_const_interp()`
, `Z3_add_func_interp()`, and `Z3_mk_as_array()` API calls.
2017-10-24 17:34:47 +01:00
Nikolaj Bjorner
f63439603d
streamlining proof generation (initial step of removing ast-manager dependency). Detect error in model creation when declaring constant with non-zero arity. See #1223
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-23 21:16:46 -07:00
Dan Liew
157c8064e8
[CMake] When building C/C++ API examples use the same build type
...
as Z3 if doing a single configuration build.
2017-10-16 08:56:17 +01:00
Dan Liew
a9fcfc531b
[TravisCI][CMake] Add Z3_C_EXAMPLES_FORCE_CXX_LINKER
CMake option
...
and propagate its value into the C API examples.
This flag forces the C API examples to use the C++ compiler as the
linker rather than the C compiler. This a workaround to avoid linking
errors when building with UBSan.
2017-10-16 08:56:17 +01:00
Nikolaj Bjorner
1a6f8c2fad
working on parallel solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-10 16:35:05 -07:00
Nikolaj Bjorner
09ea370ea3
update C-example that fails to not use longjumps. Issue #1297
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-10-10 12:06:19 -07:00
Nikolaj Bjorner
392334f779
add ability to create and manipulate model objects
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-08-22 10:44:32 -07:00
Nikolaj Bjorner
b482dbd589
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-27 17:02:27 -07:00
Christoph M. Wintersteiger
1f29cebd4d
Fixed backwards compatibility problem in maxsat example
2017-06-28 14:44:41 +00:00
Nikolaj Bjorner
7db1847f51
fix bitrot in maxsat example reference management #1116
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-06-26 09:36:53 -07:00
Nikolaj Bjorner
404db5759a
Merge pull request #1115 from delcypher/cmake_maxsat_example
...
[CMake] Teach CMake to build the `maxsat` example
2017-06-26 08:19:51 -07:00
Dan Liew
4d6cbd3788
[CMake] Teach CMake to build the maxsat
example as an external
...
project. The project can be built by building the new `c_maxsat_example`
target.
2017-06-26 11:58:51 +01:00
Dan Liew
896aae5606
Fix Python API examples so they work with Python 3 as well as Python 2.
2017-06-26 11:31:08 +01:00
Dan Liew
849eb389e6
[CMake] Add missing python example files.
...
We have to flatten the hierarchy when copying across so that all
Python examples have the `z3` directory in their directory.
2017-06-26 11:30:59 +01:00
Christoph M. Wintersteiger
d8a02bc040
Fixed AST translation functions in .NET and Java APIs. Fixes #1073 .
2017-06-14 13:24:54 +01:00
Dan Liew
4b517b96df
[CMake] Move CMake files into their intended location so the
...
`contrib/cmake/bootstrap.py` script no longer needs to be executed.
The previous location of the CMake files was a compromise proposed
by @agurfinkel in #461 . While this has served us well (allowing progress
to be made) over time limitations of this approach have appeared.
The main problem is that doing many git operations (e.g. pull, rebase)
means the CMake files don't get updated unless the user remembers to
run the script. This can lead to broken and confusing build system
behaviour.
This commit only does the file moving and necessary changes to
`.gitignore`. Other changes will be done in subsequent commits.
2017-06-12 11:59:00 +01:00
Nikolaj Bjorner
0ac80fc042
have parser produce ast-vector instead of single ast
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-06-01 21:21:05 -07:00
Christoph M. Wintersteiger
a334020f2c
Added .NET 3.5 solution/project files
2017-01-18 12:32:02 +00:00
Christoph M. Wintersteiger
7f923c6a33
Include Python API files in distributions.
2016-11-07 22:00:28 +00:00
Nikolaj Bjorner
f609ee6298
add documentation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 20:44:25 -07:00
Nikolaj Bjorner
ec5d4f1119
add example to exercise at-most-1 constraints
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 20:35:20 -07:00
Nikolaj Bjorner
5d9820f3e2
add example of parsing with external declarations
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-07 12:57:07 -07:00
Mathieu Roger
9245e61775
Update socrates.py
2016-09-14 21:36:39 +02:00
Nikolaj Bjorner
e7f36a2d35
remove special characters
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-14 10:32:17 -07:00
Mathieu Roger
a7e3a9df5a
Create socrates.py
...
Classical syllogism in Z3.
Many samples talks about integer, reals. Not much sample available on non integer things.
2016-09-14 19:10:49 +02:00
Nikolaj Bjorner
f2b5c11d1c
add option for prettier proof printing, Issue #706
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-20 03:52:45 -07:00
Nikolaj Bjorner
2263be1b4d
adding consequence examples
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-29 17:24:14 -07:00