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
b178420797
Merge branch 'master' of https://github.com/Z3Prover/z3 into new-ml-api
2016-03-31 18:11:30 +01:00
Christoph M. Wintersteiger
bf92e53688
Annotation fix for pattern/quantifier probes
2016-03-30 18:35:49 +01:00
Christoph M. Wintersteiger
1724811e1b
qffp tactic cleaned up to be in line with the default behavior of other tactics.
2016-03-30 15:23:46 +01:00
Christoph M. Wintersteiger
cb2bf48254
Added has_quantifier probe
2016-03-30 15:22:53 +01:00
Christoph M. Wintersteiger
d746b410cf
whitespace
2016-03-30 15:22:21 +01:00
Mikolas Janota
217c0419a1
Avoiding adding a superfluous unary AND in lackr.
2016-03-29 19:34:30 +01:00
Mikolas Janota
363f57a2f4
Silently bailing out on quantifiers in lackr.
2016-03-29 19:19:07 +01:00
Christoph M. Wintersteiger
6be24b3201
Bugfix for FPA in solver.to_smt2
...
Fixes #541
2016-03-29 16:37:24 +01:00
Christoph M. Wintersteiger
19e73fb2ad
whitespace
2016-03-29 16:13:31 +01:00
Nikolaj Bjorner
7eec68c954
add handling for distinct to bit-blaster
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-28 11:22:54 -07:00
Nikolaj Bjorner
0870b4a5a0
add length coherence check for length = 0
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-25 17:17:34 -07:00
Nikolaj Bjorner
f34a54fea0
fix stats collection over exceptions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 17:08:13 -07:00
Nikolaj Bjorner
808855ce6b
add internalization for auxiliary division functions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 16:20:42 -07:00
Nikolaj Bjorner
709a5d9524
fix bug: & -> &&
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 16:09:12 -07:00
Nikolaj Bjorner
b30b8008b2
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-24 08:48:52 -07:00
Nikolaj Bjorner
29845d037b
fix build break on seq evaluation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 08:48:42 -07:00
Nuno Lopes
83e34638e6
add support to build with MSVC /Gr (fastcall mode for x86)
...
not enabled by default nor exposed at the moment
2016-03-24 15:39:18 +00:00
Nikolaj Bjorner
89fad8913f
fix issue #535
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 08:16:54 -07:00
Nikolaj Bjorner
05a784fa9e
fix issue #535
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-24 08:16:19 -07:00
Nikolaj Bjorner
fe4f3e7772
fix regressions exposed in QF_LIA: manager got initialized early and Euclidean solver is not safe even with some throttle
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-23 20:38:18 -07:00
Nikolaj Bjorner
87989dd93e
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-23 17:25:23 -07:00
Nikolaj Bjorner
45fdb95f53
fix performance for model construction, recognize concats of values as a value for pre-processing
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-23 17:23:57 -07:00
Arie Gurfinkel
4e7b6b6586
proposed fix to compare
2016-03-23 19:20:57 -04:00
Arie Gurfinkel
ee125b4fe3
extend model with the value of a fresh variable
2016-03-23 19:07:50 -04:00
Nikolaj Bjorner
ec681d7565
some of Arie's fixes
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-23 10:19:16 -07:00
Nikolaj Bjorner
fd6fe87c5d
enable qe-lite for UFNIA benchmarks
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-22 15:41:21 -07:00
Nikolaj Bjorner
72ec6dc8e1
remove debug code
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-21 16:58:48 -07:00
Nikolaj Bjorner
5e737641b7
remove qe-lite pass in quant_tatics
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-21 16:57:30 -07:00
Nikolaj Bjorner
701f32471e
hardening model checker code against cancellations'
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-21 15:04:20 -07:00
Nikolaj Bjorner
3dc2028925
adding min/max
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-21 09:20:57 -07:00
Nikolaj Bjorner
680c28d083
remove nnf conversion which breaks NRA property
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-20 16:34:04 -07:00
Nikolaj Bjorner
1a5449c3d4
enable new NRA solver for nra benchmarks
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-20 12:35:29 -07:00
Nikolaj Bjorner
73e29c6ee6
fix regression warning on invalid case split strategy
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-20 10:20:43 -07:00
Nikolaj Bjorner
92b5aac12a
adjusting new tactics
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-20 10:13:23 -07:00
Dan Liew
971fd59fbb
Fix gcc build broken by f175f864ec
.
...
C++ enums (unless they are class enums) don't define their own
namespace.
2016-03-20 10:18:59 +00:00
Nikolaj Bjorner
f0bdcbb3db
expose qsat tactic to default tactics
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 18:40:59 -07:00
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
d614fedde2
more merges with qsat
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 12:41:41 -07:00
Nikolaj Bjorner
76d637626a
include more qsat features
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 12:30:24 -07:00
Nikolaj Bjorner
c4472ce717
include more qsat features
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-19 12:29:23 -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
f951372f03
fix regression in internalizing bit-vectors, reported by Mikolas Janota
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-18 13:54:42 -07:00
Nikolaj Bjorner
b0f65335ab
update copyright year
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-03-17 13:07:40 -07:00
Nikolaj Bjorner
ab82fee398
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-17 13:06:21 -07:00
Christoph M. Wintersteiger
94054593a4
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-03-17 17:52:32 +00:00
Christoph M. Wintersteiger
cc04fdbd70
Added eager ackermannization to QF_FP, so that small numbers of unspecified operators are eliminated upfront.
2016-03-17 17:52:26 +00:00
Nuno Lopes
f5c4800eec
reduce-args: last fix for may_be_unique to support quantified variables in arbitrary exprs
2016-03-17 15:29:48 +00:00
Nuno Lopes
facb421398
reduce-args: fix unsoundness 2: f(v + 2), where b is quantified
2016-03-17 13:27:07 +00:00