Nikolaj Bjorner
20bbdfe31a
moving remaining qsat functionality over
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 15:35:26 -07:00
Nikolaj Bjorner
f175f864ec
merge useful utilities from qsat
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 12:01:44 -07:00
Nikolaj Bjorner
22cae143b1
Merge pull request #517 from yaqwsx/expr_values_to_int
...
Add methods for obtaining numeral values in C++ API
2016-03-16 20:43:39 -04:00
Andres Nötzli
34da0a32b9
[Z3py] Fix error in FPRef.__neg__()
...
`FPRef.__neg__()` did not work previously because it tried to construct an FPRef from an FPRef (`fpNeg()` already returns an FPRef).
2016-03-16 17:12:45 -07:00
Christoph M. Wintersteiger
778c7fcc64
Bugfix for model evaluator and internal, uninterpreted FPA functions.
...
Fixes #518
2016-03-16 16:17:08 +00:00
Christoph M. Wintersteiger
cdc8e1303a
Bugfix for fp.to_*_unspecified.
...
Fixes #507
2016-03-16 16:16:29 +00:00
Jan Mrázek
57265f6eb1
Add methods for obtaining numeral values in C++ API
2016-03-16 00:18:49 +01:00
Christoph M. Wintersteiger
027331aef2
resolved merge conflicts
2016-03-07 14:20:10 +00:00
Andres Nötzli
d6ece7e8a5
[Z3py] Add examples for fpToFP
2016-03-07 00:21:26 -08:00
Christoph M. Wintersteiger
a2ecb19d03
Added hash-consing remarks to mk_context and mk_context_rc.
...
Fixes #452
2016-03-05 17:58:32 +00:00
Christoph M. Wintersteiger
8abedbf389
whitespace
2016-03-05 17:55:27 +00:00
Christoph M. Wintersteiger
61525b9f5e
style
2016-03-04 17:07:20 +00:00
Christoph M. Wintersteiger
bfd836e911
Merge branch 'master' of https://github.com/Z3Prover/z3 into new-ml-api
2016-03-04 14:49:41 +00:00
Christoph M. Wintersteiger
8cc3ba5a8b
fixed FP Python doctest examples
2016-03-04 13:09:42 +00:00
Christoph M. Wintersteiger
b27977ea90
Merge branch 'master' of https://github.com/Z3Prover/z3 into new-ml-api
2016-03-02 15:14:12 +00:00
Andres Nötzli
18b9cd1948
[Z3py] Fix documentation in FPSortRef
2016-03-01 18:56:20 -08:00
Christoph M. Wintersteiger
1e86175c03
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-01 21:21:32 +00:00
Christoph M. Wintersteiger
59e695f2be
Bugfixes for FP numerals in Python
...
Relates to #464 , #470
2016-03-01 21:21:25 +00:00
Nikolaj Bjorner
9b6963d112
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-01 09:48:53 -08:00
Nikolaj Bjorner
67397bf71e
enable logic parameter update to configure SMTLIB logic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-01 09:48:24 -08:00
Christoph M. Wintersteiger
0cb8193cdd
logic fix
2016-03-01 17:42:33 +00:00
Nikolaj Bjorner
7f51ecab37
enable logic parameter update to configure SMTLIB logic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-01 09:26:14 -08:00
Christoph M. Wintersteiger
c171170bed
Fixed FP string input conversions.
...
Fixes #464
2016-03-01 15:31:33 +00:00
Andres Notzli
91d6b2cbbb
[Z3py] Consistent behavior of eq and ne for FP
...
Before, x == y and x != y were returning inconsistent expressions (i.e.
`Not(x == y)` was not the same as `x != y`):
>>> x = FP('x', Float32())
>>> y = FP('y', Float32())
>>> (x == y).sexpr()
'(= x y)'
>>> (x != y).sexpr()
'(not (fp.eq x y))'
`=` does not have the same semantics as `fp.eq` (e.g. `fp.eq` of +0.0
and -0.0 is true while it is false for `=`).
This patch removes the __ne__ method from FPRef, so `x == y` and `x !=
y` use the inherited operations while fpEQ and fpNEQ can be used to
refer to `fp.eq(..)`/`Not(fp.eq(..))`.
2016-03-01 00:21:10 -08:00
Andres Nötzli
c9269c1983
Fix documentation for floating-point comparisons
2016-02-29 19:12:14 -08:00
Nikolaj Bjorner
c6c84dd59a
update documentation help to be inline with fpLT. Issue #465
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-29 17:04:26 -08:00
Nuno Lopes
d642d5fe4c
API: add smt.logic parameter to enable setting the logic through the API
...
currently only Z3_solver_set_params() is supported
logic has to be set before solver first usage or before solver reset
2016-02-25 09:47:51 +00:00
Christoph M. Wintersteiger
0254b1f7ff
ML API bug fixes
2016-02-15 13:28:22 +00:00
Christoph M. Wintersteiger
0dc85620aa
ML API bug fix
2016-02-15 13:01:00 +00:00
Christoph M. Wintersteiger
62cae4186b
ML API bug fixes
2016-02-15 12:54:05 +00:00
Christoph M. Wintersteiger
b99fcb9c8a
More new OCaml API
2016-02-14 19:56:22 +00:00
Christoph M. Wintersteiger
824169da0a
New OCaml API
2016-02-13 22:09:45 +00: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
Christoph M. Wintersteiger
9dbb8057ca
Merge pull request #449 from kenmcmil/issue243
...
fixed logging on return of Z3_compute_interpolant...
2016-02-12 12:40:01 +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
Ken McMillan
8b90bc9e91
fixed logginf on return of Z3_compute_interpolant and added interpolation example to test_capi.c
2016-02-11 16:09:54 -08:00
Nikolaj Bjorner
a6e1c70eab
fix documentation/default bug. #445
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-10 15:02:22 +00:00
Nikolaj Bjorner
535fb39313
add documentation comments as raised in #443
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-10 12:02:40 +00:00
Nikolaj Bjorner
5285a795ac
handle configuration passed in as null, deal with crash in logs attached to issue #243
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-10 01:20:16 +00:00
Christoph M. Wintersteiger
3df9fea54c
removed unused variables
2016-02-09 16:38:35 +00:00
Christoph M. Wintersteiger
7e2783c6a2
Fixed javadoc links in comments.
...
Relates to #401 .
2016-02-08 15:25:53 +00:00
Nikolaj Bjorner
3ef6d91038
fix #434 : repeat documentation remarks about reference counting for disambiguation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-02-07 14:46:53 +00:00
Nuno Lopes
16a69e750a
fix break in configure
2016-02-01 17:38:14 +00:00
Nuno Lopes
ea55bd495f
add new API function Z3_get_estimated_alloc_size() that returns *estimated* allocated memory size by Z3
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2016-02-01 17:19:55 +00:00
Nikolaj Bjorner
87228b6a9d
add a little more verbiage to description of simplify. Issue #424
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-27 14:47:15 -08:00
Nuno Lopes
23cc8258fe
remove m_ast_lim from API context since that one isn't used either
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2016-01-19 15:37:58 +00:00
Nuno Lopes
1f872e720d
remove m_replay_stack from API context since it's never used
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2016-01-19 15:19:00 +00:00
Nikolaj Bjorner
14c19fe928
add parameter validation to sequence expressions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-15 10:39:21 +05:30
Christoph M. Wintersteiger
357ec9e7d1
Changed FP significand/exponent functions to return non-normalized results. Clarified function remarks. Relates to #383 .
2016-01-13 16:32:32 +00:00
Nikolaj Bjorner
22fbed18cc
fix regressions exposed by build
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 11:18:52 -08:00
Nikolaj Bjorner
db746e0c2f
fix more unused variable warning messages
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-12 09:52:16 -08:00
Nikolaj Bjorner
0df4931c4b
dealing with issue #402
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-09 15:43:47 -08:00
Nikolaj Bjorner
20cfbcd66b
dealing with issues #402 #399 #258
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-09 13:29:44 -08:00
Nikolaj Bjorner
03cef7b03c
add some conveniences for expressing string constraints
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 16:19:32 -08:00
Nikolaj Bjorner
9fb3d36961
pin expressions during substitution. Issue #367
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-08 13:39:23 -08:00
Nikolaj Bjorner
98f750f90d
ml build failure, issue #403
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:37:47 -08:00
Nikolaj Bjorner
183d3821ce
ml build failure, issue #403
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:14:43 -08:00
Nikolaj Bjorner
17a32a4e5f
ml build failure
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:14:16 -08:00
Nikolaj Bjorner
023c564839
Issue #406
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-07 20:10:54 -08: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
Christoph M. Wintersteiger
de3cb7e5dc
More FPA exponent/siginficand order consistency
2016-01-05 18:05:21 +00:00
Christoph M. Wintersteiger
d176c8714a
Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4
2016-01-05 16:38:12 +00:00
Nikolaj Bjorner
752a973e53
missing files?
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-05 08:32:48 -08:00
Christoph M. Wintersteiger
13cbd19411
FPA Python API cleanup.
2016-01-05 14:48:42 +00:00
Christoph M. Wintersteiger
097552768f
Merged Python API changes.
2016-01-05 11:51:28 +00:00
Christoph M. Wintersteiger
bd8a5982ad
Added new items to .NET project file
2016-01-05 11:37:34 +00:00
Christoph M. Wintersteiger
8b47a84598
Merge branch 'master' of https://github.com/Z3Prover/z3 into jan4
2016-01-05 11:34:35 +00:00
Christoph M. Wintersteiger
a06f754683
tabs
2016-01-05 03:31:21 -08:00
Nikolaj Bjorner
c008c2c274
fix indentation error
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:36:50 -08:00
Nikolaj Bjorner
2f9fda45c3
fix tabs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 22:14:45 -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
Christoph M. Wintersteiger
05b29df2cb
Bugfix for FP API
2016-01-04 21:01:01 +00:00
Christoph M. Wintersteiger
677ff221f8
Internal consistency: FP exponents are always passed before significands.
2016-01-04 18:57:15 +00:00
Nikolaj Bjorner
68a532d066
seq, API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 20:53:06 -08:00
Nikolaj Bjorner
a3c4972c85
seq API, tuning
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 17:16:13 -08:00
Nikolaj Bjorner
0c03a87c82
merge with master
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 14:08:29 -08:00
Nikolaj Bjorner
532ec6f8dc
seq API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-03 14:07:34 -08:00
Nikolaj Bjorner
b5969326bc
seq API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 23:31:36 -08:00
Nikolaj Bjorner
1147037a99
seq API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 22:54:49 -08:00
Nikolaj Bjorner
e10ecad5dc
seq API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-02 22:52:28 -08:00
Christoph M. Wintersteiger
4286eb571f
Bugfix for FP numeral construction and extraction.
...
Fixes #382 .
2015-12-31 16:40:45 +00:00
Christoph M. Wintersteiger
2f08040403
typo
2015-12-29 16:00:07 +00:00
Christoph M. Wintersteiger
b0781a14cd
Fix for FP numeral construction in the Python API. Fixes #386 .
2015-12-29 15:59:14 +00:00