martin-neuhaeusser
b873c6b508
Simplify OCaml API
...
This patch simplifies the implementation of the OCaml bindings. For example,
the applyX wrapper functions have become unnecessary in the new OCaml API.
It also removes the internal ML2C structure that was used as an intermediate
layer between the C and the OCaml layer.
2016-04-06 12:10:59 +02:00
martin-neuhaeusser
71f991c5df
Avoid using physical equality checks in OCaml bindings (z3.ml)
...
This patch avoids the use of physical equality wherever possible
and improves some details of the OCaml implementation.
2016-04-05 12:51:03 +02:00
martin-neuhaeusser
f133f478c8
Translate correctly between OCaml option values and NULL pointers
...
This patch refactors the update_api script and the z3.ml implementation
to properly translate between OCaml options and NULL pointers. Some
unifications and simplifications (avoidance of unnecessary value allocation)
in the script that creates the native bindings.
2016-04-04 17:16:15 +02:00
martin-neuhaeusser
b85516c271
Fix reference counting in the C layer of the OCaml bindings
...
The Z3 context and its reference counters are stored in a structure which is allocated
by the C layer outside the OCaml heap, whenever a Z3 context is created. The structure
and its Z3 context are disposed, once the last reference counter reaches zero. Reference
counters are decremented by C-level finalizers.
The OCaml representations for a Z3 context wrap only a pointer to the corresponding structure.
2016-04-03 09:41:06 +02:00
Christoph M. Wintersteiger
61525b9f5e
style
2016-03-04 17:07:20 +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
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
d7dcd022b9
seq, API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-01-04 18:49:21 -08:00
Nikolaj Bjorner
386399472d
seq
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-23 11:02:34 -08:00
Nikolaj Bjorner
0b1e8ff912
removing tabs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 17:00:00 -08:00
Nikolaj Bjorner
5262e1986c
removing tabs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-22 16:58:26 -08:00
Christoph M. Wintersteiger
ced4a430d1
ML code simplification
2015-12-22 23:40:27 +00:00
Christoph M. Wintersteiger
0f656047c7
ML code simplification
2015-12-22 23:37:07 +00:00
Christoph M. Wintersteiger
ced6809cd8
Removed old, unnecessary file.
2015-12-14 14:43:28 +00:00
Christoph M. Wintersteiger
134b93b43e
ML API build fixes for Windows.
2015-12-14 14:41:19 +00:00
Christoph M. Wintersteiger
5a357097c0
ML API Windows build fixes
2015-12-12 20:01:52 +00:00
Christoph M. Wintersteiger
d5f79c1f17
build fix for ML API
2015-12-12 19:30:25 +00: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
2a0bbad524
Bugfix for ML API
2015-12-07 14:42:40 +00:00
Christoph M. Wintersteiger
689ed9fa12
Added Z3_mk_array_ext to ML API.
...
Relates to #292
2015-11-09 13:49:37 +00:00
Christoph M. Wintersteiger
cffff18373
-whitespace
2015-11-09 13:22:33 +00:00
Christoph M. Wintersteiger
6625f7a749
Added Z3_solver_translate to ML API.
2015-11-09 13:19:10 +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
18a0314f6b
Fix for ast_map in ML API
2015-10-02 15:52:33 +01:00
Christoph M. Wintersteiger
0a95df8960
removed automatically generated file
2015-10-02 15:11:53 +01:00
Christoph M. Wintersteiger
9ad065a538
Bugfixes for the optimization module in the ML API
2015-08-15 23:51:43 +01:00
Nikolaj Bjorner
76ca64b93b
add consistency per request from Gabriel R
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-09 18:56:42 +02: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
d469a16bb8
add more Copyright notes
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-10 11:59:21 -07:00
Christoph M. Wintersteiger
004bf1471f
Added conversion function for Goal to Expr conversion in .NET, Java, ML
2015-06-10 13:17:34 +01:00
Christoph M. Wintersteiger
98f2de3216
Added Z3_fpa_get_numeral_significand_uint64 to .NET, Java, and ML APIs.
2015-06-09 12:57:19 +01:00
Christoph M. Wintersteiger
d8f6d84217
Updates for the .NET, Java, and ML APIs for recently changed fixedpoint and interpolation functionality.
...
Fixes #103
2015-05-23 16:53:47 +01:00
Nikolaj Bjorner
52619b9dbb
pull unstable
...
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-04-01 14:57:11 -07:00
Christoph M. Wintersteiger
1c77ad00c3
Added accessors to enumeration sorts. Thanks to codeplex user steimann for suggesting this.
...
(http://z3.codeplex.com/workitem/195 )
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-03-24 21:42:05 +00:00
Christoph M. Wintersteiger
b96551a1a2
.NET/Java/ML: Moved toggle_warning_messages to Global, added en/disable_trace.
...
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-02-07 14:17:39 +00:00
Christoph M. Wintersteiger
b92bdaeebe
ML API readme fixes
...
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 18:51:47 +00:00
Christoph M. Wintersteiger
2f3ea1f39d
removed legacy ML API
...
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 18:48:51 +00:00
Christoph M. Wintersteiger
5c7d0380d3
Fixes in the OCaml FPA API and example
2015-01-24 18:29:52 +00:00
Christoph M. Wintersteiger
65ccc9a8ea
added FPA ML API
...
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-23 19:36:47 +00:00
Christoph M. Wintersteiger
e754aa1c11
Minor adjustments after rebasing ml-ng onto unstable.
...
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:17:58 +00:00
Christoph M. Wintersteiger
011b700c20
ML API: build fix
2015-01-19 17:17:13 +00:00
Christoph M. Wintersteiger
93a20d9074
ML API: build fixes
2015-01-19 17:17:10 +00:00