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

192 commits

Author SHA1 Message Date
George Karpenkov
2a347f04bf Java API: FuncInterp.Entry should be an inner static class
...as it does not use any fields of the outer FuncInterp object.
2016-06-12 21:00:51 +02:00
George Karpenkov
5657399d55 Bugfix for incorrect order of operations. 2016-06-12 20:39:54 +02:00
George Karpenkov
495ef0f055 Java bindings with no finalizers
Replacing finalizers with PhantomReferences, required quite a lot of
changes to the codebase.
2016-06-12 20:27:01 +02:00
George Karpenkov
dfc80d3b69 Do not needlessly catch exceptions in Java bindings
A lot of existing code in Java bindings catches exceptions just to
silence them later.

This is:
a) Unnecessary: it is OK for a function to throw a RuntimeException
without declaring it.
b) Highly unidiomatic and not recommended by Java experts (see Effective
Java and others)
c) Confusing as has the potential to hide the existing bugs and have
them resurface at the most inconvenient/unexpected moment.
2016-06-12 14:14:11 +02:00
Christoph M. Wintersteiger
6319861e26 Merge branch 'master' of https://github.com/Z3Prover/z3 2016-02-12 18:32:46 +00:00
Christoph M. Wintersteiger
f399fe5e1d resolved conflicts 2016-02-12 18:29:46 +00:00
Nikolaj Bjorner
8d61d36c3f add documentation methods to param_descrs, add C++ API and example for param_descrs. Issue #443
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-12 11:45:00 +00:00
Christoph M. Wintersteiger
7e2783c6a2 Fixed javadoc links in comments.
Relates to #401.
2016-02-08 15:25:53 +00:00
George Karpenkov
f93c41b1be Since classes are non-final "instanceof" check is better in #equals 2016-01-06 11:27:58 +01:00
George Karpenkov
529b9d6833 The locking field should be final. 2016-01-06 11:19:38 +01:00
George Karpenkov
8bb0010dc3 Javadoc and indentation fixes
- A proper way to refer to the function in the same class is "#funcName"

- There is no point in "@param p" declaration if no description follows
it.
2016-01-06 11:19:26 +01:00
George Karpenkov
54e5bf2422 Remove redundant cast 2016-01-06 11:18:22 +01:00
George Karpenkov
93ad8d32b9 Remove redundant "throw" statement which has no effect. 2016-01-06 11:17:32 +01:00
George Karpenkov
d0d7a5b712 Consistent Sort#equals 2016-01-06 11:16:45 +01:00
George Karpenkov
a816b4895c Logic simplifications
There is no point in writing "boolean ? true : false" instead of
"boolean"
2016-01-06 11:16:30 +01:00
George Karpenkov
52fdf73178 IDisposable is effectively an abstract class. 2016-01-06 11:15:11 +01:00
George Karpenkov
c435bc379b Added braces
Lack of braces on multi-line statements is considered very scary in
Java.
2016-01-06 11:14:53 +01:00
George Karpenkov
ccd88a63a5 No need to call "new String()" 2016-01-06 11:12:33 +01:00
George Karpenkov
27c684f743 AST#hashCode bugfix
Previous implementation always returned zero.
I can only assume that it wanted to cache it as well,
but I haven't implemented that to keep the changes light.
2016-01-06 11:11:01 +01:00
George Karpenkov
4d3675cb4e Consistent #equals() implementation
Also dropped #hashCode(), as it just calls the parent class
implementation.
2016-01-06 11:10:03 +01:00
George Karpenkov
1dcaddbec7 Adding @Override declarations
They are important, as they prevent miss-spelling the parent method  and
/or arguments name.
2016-01-06 11:07:48 +01:00
George Karpenkov
a3a8ba40e7 "static final" does not do anything 2016-01-06 10:25:52 +01:00
George Karpenkov
56db1867ef Proper idiomatic isEquals implementation. 2016-01-06 10:24:00 +01:00
George Karpenkov
92bb984305 catch/throw is redundant. 2016-01-06 10:19:44 +01:00
Nikolaj Bjorner
752a973e53 missing files?
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 08:32:48 -08:00
Nikolaj Bjorner
d7dcd022b9 seq, API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 18:49:21 -08:00
Nikolaj Bjorner
c1ebf6b4fc seq + API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 18:01:48 -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
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
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
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
Christoph M. Wintersteiger
9e756fb6db Warning fix for Comparable<T> in Java API 2015-12-02 14:42:36 +00:00
Christoph M. Wintersteiger
e8d37dba9c Added comments for quantifier constructors. Fixes #319. 2015-11-16 21:58:17 +01: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
Christoph M. Wintersteiger
715050da0b Java API comments fix. 2015-11-04 13:34:50 +00:00
Christoph M. Wintersteiger
cab42d2c66 Clarified documentation of par-or tactic.
Relates to #269.
2015-10-28 18:50:22 +00:00
Paul Phillips
64a5247813 Changed references to help-tactics to help-tactic. 2015-10-25 11:45:46 -07: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
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
318ee3a86d fix issue #176
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-28 22:31:41 -03:00