Kartik Singhal
1dcbd2d86c
Correct capitalization of package ( #5569 )
...
See https://stackoverflow.com/a/50004273/1167061
2021-09-25 09:04:06 -07:00
Nikolaj Bjorner
55285b2193
make it easier to iterate over arguments of an application
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2021-09-02 09:51:59 -07: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
Kiwamu Okabe
81b8f397b3
Need -thread
option to compile OCaml example ( #5440 )
...
I can compile the OCaml example with `-thread` option at Linux.
```
$ ocaml --version
The OCaml toplevel, version 4.05.0
```
2021-07-28 16:57:26 -07:00
Nikolaj Bjorner
a1b036a4fa
Update README.md
2021-04-25 17:02:34 -07:00
Nikolaj Bjorner
3ff5d4226a
Update README.md
2021-04-25 16:59:53 -07:00
Tias Guns
a52b485d9c
marco: immediately shrink to core if not subset ( #5203 )
...
Small improvement, found while translating it in another system
2021-04-20 12:29:52 -07:00
Rolf Eike Beer
7f8e2a9f75
clean up CMake code ( #5182 )
...
* CMake: simplify FindGMP.cmake
Remove printing of all the different variables, and let FPHSA output the library
name. Add an imported target, which bundles the library and the include
directories for easier usage.
* fix build: vector::c_ptr() now is vector::data()
* CMake: use Threads::Threads imported module
Otherwise the setting of THREADS_PREFER_PTHREAD_FLAG has no effect.
* CMake: remove needless policy setting
The minimum required version is CMake 3.4, where these policies are already set
to new because they were introduced earlier.
* CMake: remove needless variable expansion
2021-04-14 10:29:15 -07:00
Nikolaj Bjorner
4a6083836a
call it data instead of c_ptr for approaching C++11 std::vector convention.
2021-04-13 18:17:35 -07:00
Nikolaj Bjorner
7fab0f5923
updated experiment
2021-03-26 14:58:23 -07:00
Alexander Kreuzer
dc5fa89de3
Mixing Integers and Rational in the new Java API #5085 ( #5098 )
...
* Added covariance to arithmetic operations
* Added distillSort
* Update JavaGenericExample.java
Co-authored-by: Alexander Kreuzer <alexander.kreuzer@sap.com>
Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2021-03-16 05:24:23 -07:00
Nikolaj Bjorner
7eceeff349
move branch of unit variable
2021-03-08 10:09:04 -08:00
Nikolaj Bjorner
3c26a965e1
updated script, add comment to mk_eq_empty
2021-03-07 06:59:58 -08:00
Nikolaj Bjorner
8de96009cd
na
2021-03-06 12:36:19 -08:00
Nikolaj Bjorner
8d54e83567
updated hitting set sample
2021-03-06 10:18:52 -08:00
Nikolaj Bjorner
022a1fd3dd
fix #5080 assertion is violated on legal input, add an example
2021-03-05 15:01:39 -08:00
Nuno Lopes
1bb9a02160
travis timeouts
2021-02-21 13:13:19 +00:00
Matteo Nicoli
785fab74f4
Create bubble_sort.py ( #4976 )
2021-01-26 09:42:17 -08:00
Addison Crump
3bca1fbcd8
Java type generics ( #4832 )
...
* Generify, needs some testing and review
* Remove unnecessary change
* Whoops, ? capture that type
* Misread the docs, whoops
* More permissible arithmetic operations
* Implement believed Optimize generics
* Missed a few generics
* More permissible expr for arrays in parameters
* More permissible expr for bitvecs in parameters
* More permissible expr for bools in parameters
* More permissible expr for fps in parameters
* More permissible expr for fprms in parameters
* More permissible expr for ints in parameters
* More permissible expr for reals in parameters
* Undo breaking name conflict due to type erasure; see notes
* Whoops, fix typing of ReExpr
* Sort corrections for Re, Seq
* More permissible expr for regular expressions in parameters
* Fix name conflict between sequences and regular expressions; see notes
* Minor typo, big implications!
* Make Constructor consistent, associate captured types with other unknown capture types for datatype consistency
* More expressive; outputs of multiple datatype definitions are only known to be sort, not capture, and Constructor.of should make a capture
* Be less dumb and just type it a little differently
* Update examples, make sure to type Expr and FuncDecl sort returns
* General fixups
* Downgrade java version, make it only for the generic support, remove var and Expr[]::new construction
* Turns out Java 8 hadn't figured out how to do stream generics yet. Didn't even show up in my IDE, weird
2020-11-30 10:04:54 -08:00
Nikolaj Bjorner
5c2f07df09
max lex less chatty
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-11-29 19:47:17 -08:00
Nikolaj Bjorner
eacef5f3f9
deal with warnings over unused variables and procedures
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-11-29 19:45:35 -08:00
Nuno Lopes
9c08b60b5a
c++ example: call Z3_finalize_memory() so that the buildbot leak checker doesnt complain about reachable memory
2020-10-24 15:35:56 +01:00
Nikolaj Bjorner
85b4fc1865
void
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-08-23 10:47:39 -07:00
Andrew V. Jones
bb9cd5dd49
Ensure that the 'OUTPUT' locations in CMake for Python examples is accurate ( #4499 )
...
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
2020-06-04 15:04:01 -07:00
Nikolaj Bjorner
59e388ece1
handle bind proof constructor and print lambda
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-06-04 11:59:59 -07:00
Nikolaj Bjorner
773b27296f
translate optimize from c++ API #2859
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-15 04:24:51 -08:00
Nikolaj Bjorner
8973c18856
require c++11 on TPTP #2738
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-11-25 09:54:23 -08:00
Nikolaj Bjorner
c7248a65e4
rename additional build options #2709
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-11-18 22:31:45 -08:00
Nikolaj Bjorner
31a6788859
comment
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-10-11 12:39:57 -07:00
Nikolaj Bjorner
a990e7f02e
add visitor example, fix double conversion
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-10-11 12:37:26 -07:00
Nikolaj Bjorner
3eac4a4aa1
clean up examples for unused variables
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-09-22 10:24:05 -07:00
Bruce Mitchener
0edd587e5a
Fix typos in examples.
2019-08-14 22:00:50 -07:00
Bruce Mitchener
0eafeb9342
Fix confusing tabs mixed in with spaces in C examples.
2019-08-13 09:26:44 -07:00
Richard Bradley
04e0b767c3
Fix sudoku Java example
2019-07-31 23:32:38 +01:00
Nikolaj Bjorner
2d4e9a0f67
update managed APIs for lambda-based array models #2400
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-07-13 16:20:36 -04:00
Nikolaj Bjorner
807095a344
fix #2375
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-07-03 10:04:00 +07:00
Nikolaj Bjorner
e5dffeace4
fix #2365
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-30 08:40:41 +03:00
Nikolaj Bjorner
b4bbe12ca1
set kernel to 3
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-11 10:41:51 -07:00
Nikolaj Bjorner
7bfb730fee
fix traffic jam
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-10 17:45:55 -07:00
Nikolaj Bjorner
b4daf8dcd8
adding advanced port
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-10 12:33:20 -07:00
Nikolaj Bjorner
9f426443ca
saving strategies tutorial from notebooks.azure.com
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-10 10:30:11 -07:00
Nikolaj Bjorner
6cd7169665
readme and link
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-09 11:10:35 -07:00
Nikolaj Bjorner
2861b10d58
update
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-08 09:26:15 -07:00
Nikolaj Bjorner
08528b3526
ported guide
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-08 09:20:55 -07:00
Nikolaj Bjorner
36e03db0f3
png
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-07 19:29:14 -07:00
Nikolaj Bjorner
e0a49dd556
html pages for z3 python tutorial
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-07 19:14:54 -07:00
Nikolaj Bjorner
cb6d3d2458
increase minimal requirement to 3.4
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-07 17:05:12 -07:00
Nikolaj Bjorner
25c93410b1
add #2298 to regression/example
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-05-29 07:24:42 -07:00
Nikolaj Bjorner
082a0f4df4
add get_lstring per #2286
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-05-22 18:32:57 +04:00
Charlie Barto
167f968fa8
Change from BINARY_DIR to PROJECT_BINARY_DIR
2019-05-15 11:25:40 -07:00
Nikolaj Bjorner
56ac3f86a5
fix justification for implied equalities in special relations
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-04-03 17:08:10 -07:00
Nikolaj Bjorner
886c62ef41
add example from #2138
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-02-16 10:30:44 -08:00
Nikolaj Bjorner
785fe2f6f7
add main remaining updates from #1815
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-01-20 12:43:05 -08:00
Nikolaj Bjorner
cabe0ee447
integrating additional changes from @yatli pull request #1815
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-01-20 10:51:44 -08:00
Nikolaj Bjorner
37d9e6d811
incrementally adding files from dotnet core pull request from @yatli
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-01-20 10:40:11 -08:00
Titus Barik
2f0d2ec385
PYTHON_PATH should say PYTHONPATH.
2019-01-18 16:18:16 -08:00
Nikolaj Bjorner
038971c029
Revert "api: dotnet: switch to multi-targeting project and modern cmake-dotnet integration."
2019-01-16 10:21:56 -08:00
Yatao Li
43ee345f01
dotnet deps hack for test
2019-01-15 03:06:36 +09:00
Yatao Li
209ebecb86
cmake: dotnet: example: dotnet.csproj is NETCOREAPP
2019-01-14 00:51:44 +08:00
Yatao Li
f0f9a16f85
cmake: dotnet: example: program -> Program
2019-01-14 00:22:51 +08:00
Yatao Li
08adc1bf97
...
2019-01-13 23:15:40 +08:00
Yatao Li
8ebde41f35
dotnet: example: copy to binary dir before build
2019-01-13 22:45:05 +08:00
Yatao Li
5e79dba3d6
dotnet: move example project build to cmake
2019-01-13 00:03:37 +08:00
Yatao Li
17596fcc17
Merge remote-tracking branch 'upstream/master'
2019-01-12 15:01:28 +08:00
Huanyi Chen
19471f9fa3
Implement mini_quip
2019-01-04 18:30:02 -05:00
Huanyi Chen
83e3a79bd1
Remove testcase that takes long time to finish
2019-01-04 17:31:47 -05:00
Yatao Li
f5b874e0a3
Merge branch 'master' of https://github.com/Z3Prover/z3
2018-12-29 16:27:00 +08:00
Huanyi Chen
4b29b208ad
Add few more testcases
2018-12-28 13:28:15 -05:00
Huanyi Chen
300e99b67a
Make sure init is included when generalize
2018-12-28 13:21:40 -05:00
Huanyi Chen
b083c7546e
Substitue Vars in queries
...
Replace Vars that are representing primary inputs as "i#" when query
solvers.
2018-12-28 13:21:35 -05:00
Bruce Mitchener
44bc00f13d
Fix typos.
2018-12-23 21:58:57 -05:00
Nikolaj Bjorner
f591e0948a
fix #1841
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-22 15:28:33 -08:00
Nikolaj Bjorner
498fa87993
seq rewriting fixes
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-22 10:48:49 -08:00
Nikolaj Bjorner
2cc654081c
Merge pull request #1955 from waywardmonkeys/Z3_bool_to_bool
...
Switch from using Z3_bool to using bool.
2018-11-20 20:29:28 -08:00
Nikolaj Bjorner
37ef3cbeb2
add rc2 sample
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-20 14:32:01 -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
Bruce Mitchener
56bbed173e
Remove usages of Z3_TRUE / Z3_FALSE.
...
Now that this is all using stdbool.h, we can just use true/false.
For now, we leave the aliases in place in z3_api.h.
2018-11-20 00:25:37 +07:00
Nikolaj Bjorner
a85a612bae
use old-fashined C for test_capi
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-11-15 10:03:43 -08:00
Nikolaj Bjorner
51a0022450
add recfun to API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-27 11:41:18 -05:00
Nikolaj Bjorner
c802a0ac96
fix crash exposed by examples/dotnet/Program.cs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-20 14:32:59 -07:00
Nikolaj Bjorner
3ba2aa2672
regressions in examples/dotnet/Program.cs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-20 14:01:43 -07:00
Florian Pigorsch
326bf401b9
Fix some spelling errors (mostly in comments).
2018-10-20 17:07:41 +02:00
Nikolaj Bjorner
7cc6d84e6f
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-19 21:02:15 -07: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
Bruce Mitchener
372cab2c5b
Fix some typos.
2018-10-17 22:49:39 +07:00
Bruce Mitchener
a76397d3b8
Refer to macOS rather than Mac OS / OSX.
2018-10-02 17:38:09 +07:00
Nikolaj Bjorner
2b35f1a924
quip
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-09-16 13:14:41 -07:00
Nikolaj Bjorner
98dfd82765
adding quipie
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-09-15 21:55:49 -07:00
Nikolaj Bjorner
0232383191
mini IC3 sample
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-09-15 16:59:06 -07:00
Yatao Li
aae28bd0eb
CI: update dotnet example to coreclr 2.0
2018-09-12 14:26:21 +08:00
Nikolaj Bjorner
94ffa3963e
fix #1800 by converting large integers to strings
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-24 16:54:22 +02:00
rainoftime
bb534f6103
Add example of using z3's model construction C++ API
2018-07-10 11:16:20 +08:00
Nikolaj Bjorner
adb9a1c797
fix c
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-04 17:31:26 -07:00
Nikolaj Bjorner
03ed33ac02
merge with master
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-02 15:31:26 -07:00
Nikolaj Bjorner
648a531950
update java example to bypass bit-rot
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-02 09:50:29 -07:00
Nikolaj Bjorner
46ea054784
merge get_value and get_ivalue that produced different results
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-02 03:55:40 -07:00
Nikolaj Bjorner
9f3da32a77
remove interpolation from test_capi
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-05-24 16:28:23 -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
Joran Honig
e32dfad81e
Add comments
2018-05-19 11:16:20 +02:00
Joran Honig
7d51353b8b
Implement parallel python example
2018-05-19 11:13:53 +02:00