Murphy Berzish
e010e7c0d6
add trace message to indicate which free variables are giving us trouble
...
I think I'm onto the issue though
2015-12-02 23:35:26 -05:00
Murphy Berzish
f5e94af784
check that both simplified expressions are concats in simplify_concat_equality()
...
this seems to fix all the crashes but the solver takes forever to solve a really simple instance
with easy model generation, so I think something is still wrong
probably next I will go through and change std::map to obj_map, etc.
2015-12-02 22:15:04 -05:00
Nikolaj Bjorner
5d61c871b0
add some of the SMT2.5 features
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-02 19:14:47 -08:00
Murphy Berzish
1a15b3937d
in_same_eqc() now checks to ensure both terms are internalized before doing anything else
2015-12-02 22:09:30 -05:00
Murphy Berzish
23150d3b5e
never ever ever reuse constants in mk_string(). this gets us MUCH farther
2015-12-02 22:03:12 -05:00
Nikolaj Bjorner
e9a2b7f9f0
Merge branch 'master' of https://github.com/Z3Prover/z3
2015-12-02 18:41:22 -08:00
Nikolaj Bjorner
e2565d8d82
add some of the SMT2.5 features
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-02 18:41:10 -08:00
Murphy Berzish
953a4c5437
add temporary variables to m_trail
2015-12-02 20:48:15 -05:00
Christoph M. Wintersteiger
d23dce4f7b
Bugfix for finite domains in Python API.
2015-12-02 22:34:09 +00:00
Christoph M. Wintersteiger
b77f20fb0c
Merge branch 'master' of https://github.com/Z3Prover/z3
2015-12-02 17:06:42 +00:00
Christoph M. Wintersteiger
2f86ab98a8
Added finite-domain expressions to the Python pretty printer
2015-12-02 17:04:06 +00:00
Christoph M. Wintersteiger
5510e0ddef
Added finite-domain constant to Z3_decl_kind
2015-12-02 17:03:37 +00:00
Christoph M. Wintersteiger
5a43d8a469
Whitespace
2015-12-02 17:02:39 +00:00
Christoph M. Wintersteiger
cbda38ee80
Added finite domain expressions and numerals to the .NET, Java, and Python APIs.
...
Relates to #318
2015-12-02 17:01:52 +00:00
Nikolaj Bjorner
6580f1daf3
expose main interpolation routines in C++ API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-02 07:40:06 -08:00
Christoph M. Wintersteiger
9e756fb6db
Warning fix for Comparable<T> in Java API
2015-12-02 14:42:36 +00:00
Christoph M. Wintersteiger
00ce124db3
Bugfix for Z3_is_numeral for finite-domain numerals.
...
Relates to #318
2015-12-02 14:41:46 +00:00
Christoph M. Wintersteiger
52bbd67cd3
Whitespace
2015-12-02 14:40:47 +00:00
Nikolaj Bjorner
485ac9c39d
add macro for converting std::vectors to pointers (leaking abstraction)
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-01 16:35:03 -08:00
Murphy Berzish
52f0277c99
attempt to clean up out-of-scope variables more, still crashing
2015-12-01 19:19:00 -05:00
Nikolaj Bjorner
b3e8020c88
bind variables in queries generated from Horn tactic to enforce that rule formulas don't contain free variables. Issue #328
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-01 14:47:33 -08:00
Nikolaj Bjorner
aa777bd5c6
Fix for #343 . Optimizations introduced on 8-10-2015 were too agressive. Remove unreferened variable
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-01 13:43:47 -08:00
Nikolaj Bjorner
9fa4bf2f8f
Fix for #343 . Optimizations introduced on 8-10-2015 were too agressive
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-01 13:41:57 -08:00
Murphy Berzish
c44d49b625
keep track of search level ourselves
2015-12-01 14:41:11 -05:00
Murphy Berzish
dd0bc13be7
attempt to track popped variables, still segfaults, WIP
2015-11-30 19:22:01 -05:00
Dan Liew
b0bc50a75c
Fixed stray UTF-8 Byte order mark in `InterpolationContext.cs
`.
...
Old versions of the mono compiler don't like it.
2015-11-30 15:02:02 +00:00
Nuno Lopes
5d289a8da5
fix leak in asserted_formulas::propagate_values() for proof generation mode
...
continuation of issue #342
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-29 10:49:52 +00:00
Murphy Berzish
07626a1e03
remove expr_ref stuff, start tracking variables more closely
2015-11-28 23:56:30 -05:00
Nuno Lopes
d175c99542
fix ast leak in asserted_formulas::propagate_values()
...
Fixes issue #342
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-27 20:09:17 +00:00
Christoph M. Wintersteiger
db2f973e3e
Fixed initialization order in bvarray2uf_tactic
2015-11-27 15:34:06 +00:00
Nuno Lopes
2739930900
fix build with clang
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-27 12:13:44 +00:00
Christoph M. Wintersteiger
8eea6fd775
Bugfix for FPA float to float conversion.
...
Fixes #337
2015-11-24 17:21:40 +00:00
Christoph M. Wintersteiger
5e37cf9bbf
Removed potentially unnecessary string decoding in Python API.
2015-11-23 18:41:31 +00:00
Christoph M. Wintersteiger
6aa5ec9f77
Eliminated unused variables
2015-11-23 13:12:05 +00:00
Christoph M. Wintersteiger
59c1944f92
Bugfix for FP casts (float to float conversion).
...
Fixes #331 .
2015-11-22 14:49:04 +00:00
Nuno Lopes
d9bafc3fba
rewrite scoped_timer for linux
...
The previous version was racy and could lead to crashes.
The timer could be deleted before the callback was called, making it execute on already freed memory
This new version is similar to Mac's. It spawns its own thread and uses pthread_cond_wait.
Care is taken for small timeouts to avoid races in the thread creation and timer destruction.
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-22 11:40:52 +00:00
Nuno Lopes
b26735a887
fix build with gcc
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-22 11:24:30 +00:00
Nikolaj Bjorner
c1a6163bda
disable aig tactic in inc_sat_solver (it can blow up the size of formulas significantly without sharing) and fix configuration update bug for optimization context exposed in example by Corina
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-20 14:34:31 -08:00
Murphy Berzish
9010a5c4cf
honest-to-goodness working model gen, i.e. it didn't crash. more testing needed
2015-11-20 16:05:43 -05:00
Murphy Berzish
24148bafa3
fixed several AST bugs; need to load charSet now
2015-11-20 15:48:06 -05:00
Murphy Berzish
bf27d41b08
use TRACE instead of STRACE...
2015-11-20 12:27:29 -05:00
Murphy Berzish
b34fc06fe9
fix all compilation errors, now to test it
2015-11-20 12:24:23 -05:00
Nikolaj Bjorner
665af3d8b9
remove deprecated user-theory plugins and other unused functionality from API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-20 08:43:27 -08:00
Nikolaj Bjorner
fd8fd40669
fix tests
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-20 08:00:01 -08:00
Nikolaj Bjorner
0592e76574
Enhancement for Valentin #332
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-19 10:26:01 -08:00
Nikolaj Bjorner
9eb051593d
Merge pull request #329 from NikolajBjorner/master
...
Remove deprecated API functionality.
2015-11-19 08:25:22 -08:00
Nikolaj Bjorner
5948013b1b
clear label buffer
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 18:56:54 -08:00
Nikolaj Bjorner
1d4b996765
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 16:39:51 -08:00
Nikolaj Bjorner
c58e640563
extract labels for optimal model. Fix to #325
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 14:53:08 -08:00
Nikolaj Bjorner
9cba63c31f
remove deprecated iz3 example. Remove deprecated process control
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 12:32:15 -08:00