Nikolaj Bjorner
52e0f3b539
add string accessors to managed APIs #1051
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-06-01 09:10:49 -07:00
KangJing Huang (Chaserhkj)
8092dd5aa3
Fix Expr.update in java API returning superclass
2017-05-29 20:51:42 -04:00
Nikolaj Bjorner
8b5627e361
additional API per #977
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-16 12:13:30 +09:00
Nikolaj Bjorner
9933c36050
replace long by int
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-15 17:06:03 +08:00
Nikolaj Bjorner
ab6abe901f
replace long by int
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-15 15:57:30 +08:00
Nikolaj Bjorner
87c3b5ee51
replace uint by long
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-15 15:29:02 +08:00
Nikolaj Bjorner
e4b9080165
include timeout/rlimit parameters in optmize
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-15 15:04:13 +08:00
Nikolaj Bjorner
7bb5e72e07
add missing string/re operations #977 and adding Pseudo-Boolean operations to Java API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-04-15 09:09:30 +07:00
George Karpenkov
be1e9918f0
Class Optimize#Handle should be static,
...
as it already includes an explicit reference to the Optimize class.
2017-02-27 18:49:02 +01:00
George Karpenkov
b3be83e7c5
Sane indentation + removing extra spaces for Optimize.java
2017-02-27 18:48:44 +01:00
George Karpenkov
d6c79facc7
Java API for getting the objective value as a triple
...
See #911 for the motivation,
and e02160c674
for the relevant change
in C API.
2017-02-27 18:42:44 +01:00
Christoph M. Wintersteiger
f1a704484b
Re-added context creation locks in the Java API. Relates to #819 .
2016-12-01 23:16:15 +00:00
Christoph M. Wintersteiger
95d7b33ebb
Added is_numeral_negative to .NET and Java APIs
2016-10-27 15:07:10 +01:00
Christoph M. Wintersteiger
935c523ef8
Added FPA numeral predicates to Java API
2016-10-26 18:44:35 +01:00
Christoph M. Wintersteiger
abcb6040d4
Refactored FPA numeral accessors.
2016-10-24 12:53:57 +01:00
Christoph M. Wintersteiger
6b474adc8a
Added accessors to extract sign/exponent/significand BV numerals from FP numerals.
2016-10-24 12:50:05 +01:00
Christoph M. Wintersteiger
3587baaf24
Added full version strings and associated API functions.
2016-07-28 18:06:02 +01:00
George Karpenkov
cb87991d5f
Java bindings: Force cleaning the queue on context closing.
2016-06-29 13:09:05 +02:00
Christoph M. Wintersteiger
e9eb88e1b3
fixed java build issues. Relates to #648 .
2016-06-24 15:08:56 +01:00
George Karpenkov
b086aac45f
Use constructors instead of static methods for Context.java.
2016-06-16 18:21:55 +02:00
George Karpenkov
b65d83aacf
Java API: explain the phantom references mechanics in Javadoc.
2016-06-13 12:22:32 +02:00
George Karpenkov
a914822346
JavaAPI: DecRefQueue -- do not use move_limit for now.
2016-06-13 12:18:31 +02:00
George Karpenkov
26d6c99aac
Typo in Javadoc.
2016-06-13 12:11:03 +02:00
George Karpenkov
27aa37946e
Do not lock on context creation and deletion.
2016-06-13 12:09:34 +02:00
George Karpenkov
22ffd65d1e
Java API: split incRef into incRef and addToReferenceQueue
...
One method should do one thing only, it's easy to mix things up
otherwise.
2016-06-12 21:01:58 +02:00
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