Murphy Berzish
5f854c6689
experimental linear search theory case split in theory_str
2017-01-09 15:11:56 -05:00
Murphy Berzish
6f5c1942f0
theory_str length propagation
2017-01-08 20:15:45 -05:00
Nikolaj Bjorner
c69a86e647
fix bug in antecedent collection for consequence finding: once an antecedent is set, it should not be cleared
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-06 19:34:50 -05:00
Nikolaj Bjorner
e9edcdc6e6
moderate exception behavior for issue #861
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-05 16:09:16 -05:00
Nikolaj Bjorner
f443bfed87
Merge branch 'master' of https://github.com/Z3Prover/z3
2017-01-04 19:05:52 -08:00
Nikolaj Bjorner
ddf4bc548f
allow disabling exceptions from C++. Issue #861
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-04 19:04:43 -08:00
Murphy Berzish
c190d45859
fix binary search string length axiom
2017-01-04 15:56:16 -05:00
Nikolaj Bjorner
ae9a3bfc24
add operator for issue #860
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-04 09:14:09 -08:00
Murphy Berzish
f9d7981c1e
add theory case split to theory_str binary search
2017-01-03 15:45:04 -05:00
Christoph M. Wintersteiger
cb75a55095
Fixed initialization order warning.
2017-01-03 13:41:08 +00:00
Nikolaj Bjorner
74d3de01b3
enable incremental consequence finding with restart timeout
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-02 10:07:02 -08:00
Murphy Berzish
f3e064cb07
theory_str binary search crash avoidance when a negative length is reached
2016-12-31 13:28:32 -05:00
Nikolaj Bjorner
a4d5c4a00a
make get_consequence call skip check-sat if a model is already there
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-30 18:05:19 -08:00
Nikolaj Bjorner
8dde60f634
initialize watch in assign_eh
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-26 10:18:55 -08:00
Nikolaj Bjorner
aaf6e67ec8
add restart.max parameter to control cancellation based on restart count
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-25 17:43:47 -08:00
Nikolaj Bjorner
2bd29548da
improve parser error message over API, streamline names of statistics for arithmetic solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-25 17:27:56 -08:00
Nikolaj Bjorner
c44dd01292
fix missing else reported in #855
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-22 20:56:14 -08:00
Nikolaj Bjorner
46df31babf
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-12-22 20:54:14 -08:00
Nikolaj Bjorner
1787fa8296
remove redundant disjunction in compilation of at-most-1 constraints, log mutexes
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-22 20:54:09 -08:00
Nikolaj Bjorner
a444a33c30
updated encodings
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-22 17:45:21 -08:00
Murphy Berzish
0a6c23148f
fix empty vector edge case in binary search
2016-12-22 19:33:38 -05:00
Murphy Berzish
2dc9b486d3
theory_str binary search heuristic WIP
2016-12-22 19:17:42 -05:00
Nikolaj Bjorner
f52baf1e17
fix build again
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-21 10:48:43 -08:00
Nikolaj Bjorner
4bcf1bf2f6
fix debug build, unused variable warnings
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-21 10:44:49 -08:00
Nikolaj Bjorner
df492e200f
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-21 10:04:02 -08:00
Nikolaj Bjorner
8d18fd075e
remove sources for unused variable warnings
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-21 09:54:45 -08:00
Murphy Berzish
df63b62763
fix vector manip bug in theory case split
2016-12-20 17:32:51 -05:00
Murphy Berzish
ab0fcc42f9
theory case split heuristic
2016-12-20 16:21:07 -05:00
Murphy Berzish
a04bc9974b
theory case split WIP
2016-12-20 11:14:42 -05:00
Dan Liew
b5aa6d5eb5
Fix issue with bd1f07f864
pointed out by
...
@nunolopes .
If `pthread_cond_signal()` is called while `m_mutex` is held then the
timing thread might be woken up twice due to waking up from
`pthread_cond_timeout()` (due to being signaled) but then being forced
to sleep again because the thread calling `~imp()` is still holding
`m_mutex` (which the timing thread needs to acquire).
2016-12-19 22:36:42 +00:00
Nikolaj Bjorner
0c6c104f9a
Merge pull request #841 from delcypher/scope_timer_spurious_wakes
...
Make `scoped_timer` robust to spurious wakes under Linux.
2016-12-19 08:22:03 -08:00
Murphy Berzish
94762d276d
add string constant cache to theory_str and associated param
2016-12-18 18:47:38 -05:00
Nikolaj Bjorner
189d449cff
fix generation of wcnf
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-18 14:49:45 -08:00
Murphy Berzish
e5d3e425f1
theory_str caching of all string constants
2016-12-18 15:23:05 -05:00
Nikolaj Bjorner
5083b1adee
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-12-17 16:03:02 -08:00
Nikolaj Bjorner
5cb21924ad
ensure that FD logic understands pb from command context
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-17 16:02:54 -08:00
Murphy Berzish
e85f9d33c4
add "legacy" support for theory case splits
...
this replicates what was done in theory_str to add axioms excluding each
pair of literals from being assigned True at the same time;
no new heuristics are being used in smt_context (yet)
2016-12-16 15:50:03 -05:00
Christoph M. Wintersteiger
6ce903b1d6
Style, whitespace.
2016-12-16 20:04:29 +00:00
Murphy Berzish
dd8cd8199b
theory_str refcount debug messages and beginning theory case split
2016-12-16 14:37:34 -05:00
Murphy Berzish
67e7307777
add cut var debug info, wip
2016-12-14 15:00:17 -05:00
Murphy Berzish
27a2c20c1c
add more parameters for theory_str
2016-12-13 19:38:40 -05:00
Murphy Berzish
bced5828f7
theory_str parameters
2016-12-13 17:20:58 -05:00
Murphy Berzish
f5bc17b864
theory_str params module, WIP
2016-12-13 16:12:57 -05:00
Nikolaj Bjorner
c1480b4389
handle model generation from issue #748 . Deal with warnings from #836
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-12 00:40:52 +01:00
Dan Liew
bd1f07f864
Fix implementation of scoped_timer
under Linux where it was
...
incorrectly assumed that `pthread_cond_timedwait()` would exit
due to a condition variable being signaled or a timeout occuring.
According to the documentation `pthread_cond_timedwait()` might
spuriously wake so we introduce a new variable `m_signal_sent` (that is
guarded by an existing mutex) that is used as the variable to check that
the thread wake was not spurious.
This is intended to partially fix #839 .
2016-12-11 23:12:36 +00:00
Nikolaj Bjorner
7cc093eee0
Add rewrite rule for property encoded in #812
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-11 11:05:12 +01:00
Nikolaj Bjorner
2307a7ffa7
fix bug in handling of repeated soft constraints. #815
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-11 10:19:57 +01:00
Nikolaj Bjorner
0765eea486
add suggestions from #835
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-11 05:45:40 +01:00
Nikolaj Bjorner
70bb92d016
remove nested booleans during pre-processing. issue #837
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-11 05:16:31 +01:00
Nikolaj Bjorner
ff46a925a2
bail out on failure to properly project. issue #837
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-12-11 04:25:05 +01:00