Nikolaj Bjorner
69853ba6fc
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-05 08:18:59 +00:00
Nikolaj Bjorner
caf0a1e80d
fix breaking change to theory-seq
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-05 07:22:27 +00:00
Christoph M. Wintersteiger
b1f7c6ac97
eliminated unnecessary variable
2016-11-04 22:08:49 +00:00
Christoph M. Wintersteiger
696bbc7708
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-04 21:27:16 +00:00
Christoph M. Wintersteiger
ac7e1b145c
Whitespace, typo
2016-11-04 21:27:10 +00:00
Christoph M. Wintersteiger
81fce55d78
Updated optimization ML API. Addresses #776 .
2016-11-04 21:22:01 +00:00
Nikolaj Bjorner
152321bce6
fix crash in poly normalizer exposed by qe. Issue #775
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-04 20:29:12 +00:00
Nikolaj Bjorner
856cf7d4f9
fix generation of fresh constants for uninterpreted sort in EPR, Issue #649
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-04 15:51:35 +00:00
Nikolaj Bjorner
e700460645
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-04 15:19:19 +00:00
Nikolaj Bjorner
51a4085910
check for logic in solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-04 15:19:11 +00:00
Christoph M. Wintersteiger
824ba14977
Disabled some ITE rewrite rules that were applied by default, but too expensive. Added re-computation of subterm occurrences in ctx_simplify_tactic. (Performance fixes for QF_LIA benchmarks).
2016-11-04 13:39:53 +00:00
Christoph M. Wintersteiger
a3e915fbea
Whitespace
2016-11-04 13:37:14 +00:00
Nikolaj Bjorner
c0fb2eafe5
remove recursive expansion of else-case
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-02 23:08:10 +00:00
Nikolaj Bjorner
be9d5c7088
fix evaluator for array store expressions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-02 21:33:24 +00:00
Nikolaj Bjorner
46a4bc6030
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-02 14:15:05 +00:00
Nikolaj Bjorner
f61600d1d8
fixing unsat core extraction for tactics
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-02 14:14:55 +00:00
Christoph M. Wintersteiger
c8689ed796
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-02 13:36:38 +00:00
Christoph M. Wintersteiger
c81ee05098
Fixes for .NET Core build
2016-11-02 13:36:29 +00:00
Nikolaj Bjorner
46c4fdaae5
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-11-01 18:39:00 +01:00
Nikolaj Bjorner
305e080239
enable unsat core extraction in nlsat_tactic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-01 17:57:28 +01:00
Christoph M. Wintersteiger
026309a325
bugfix for disequality propagation in smt_context
2016-11-01 14:21:06 +00:00
Christoph M. Wintersteiger
ed5137ffd2
build fix
2016-11-01 11:23:42 +00:00
Nikolaj Bjorner
84172302a2
fix bug in mutex extraction, reported by Patrick Trentin
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-11-01 00:16:16 +01:00
Nikolaj Bjorner
ba942af5a8
disable sat solver when proofs are turned on. Fixes issue #768
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-31 23:27:39 +01:00
Nikolaj Bjorner
fa1a0aa7ba
remove buggy and unused equivalence relation plugin. Github issue #770
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-31 22:59:56 +01:00
Nikolaj Bjorner
ff75f88c4f
fix memory abuse in internalization in inc-sat-solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-31 22:25:58 +01:00
Nikolaj Bjorner
596f07e548
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-28 08:27:21 -07:00
Nikolaj Bjorner
3714e520be
fix performance bottlnecks: gc of literals walk through potentially huge watch-lists, avoid user-push/pop around calls to solver2tactic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-28 08:27:11 -07:00
Nikolaj Bjorner
7764148dd3
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-28 07:42:27 -07:00
Nikolaj Bjorner
2475f3bff5
ensure that variables passed to consequence finding have bound constraints, if applicable. Even if those variables do not occur in the constraints
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-28 07:41:27 -07:00
Nikolaj Bjorner
4d078dc0a9
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-28 07:17:49 -07:00
Christoph M. Wintersteiger
f1412d3f32
Bugfix for bouned_int2bv_solver
2016-10-28 14:23:01 +01:00
Christoph M. Wintersteiger
02e1bae9cb
whitespace
2016-10-28 14:22:27 +01:00
Christoph M. Wintersteiger
9c16d16bc8
removed debug output
2016-10-28 12:22:28 +01:00
Nikolaj Bjorner
ca309341c3
fixing cancellation code paths for inc_sat_solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-27 22:07:46 -07:00
Nikolaj Bjorner
b1d673e3eb
catch cancellation exceptions, return undef
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-27 16:34:26 -07:00
Nikolaj Bjorner
7d7e03e377
rewind qhead to ensure re-propagation after cancellation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-27 16:23:33 -07:00
Nikolaj Bjorner
41deae52c6
fix enum2bv to handle singleton enumeration types, differentiate disequality conflicts for theories that handle disequalities vs. theories that don't
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-27 13:35:53 -07:00
Nikolaj Bjorner
24fc19ed58
speed up consequence finding by avoiding local search whenver assumption level is reached during the initial phase
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-27 08:15:39 -07:00
Christoph M. Wintersteiger
253cfeb0af
Added FPA numeral accessors/predicates to Python API
2016-10-27 15:07:34 +01:00
Christoph M. Wintersteiger
95d7b33ebb
Added is_numeral_negative to .NET and Java APIs
2016-10-27 15:07:10 +01:00
Christoph M. Wintersteiger
e4f7ff9881
Added Z3_fpa_is_numeral_negative to FPA API
2016-10-27 15:06:24 +01:00
Nikolaj Bjorner
485372ec2a
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-26 19:15:11 -07:00
Nikolaj Bjorner
4bd83724dd
remove conflict on false disequality, introduced regression
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-26 19:15:05 -07:00
Christoph M. Wintersteiger
23c58a1ef6
Added FPA numeral predicates to ML API
2016-10-26 18:53:20 +01:00
Christoph M. Wintersteiger
903d962a3c
Merge branch 'fpa_numeral_accessors' of https://github.com/wintersteiger/z3 into fpa_numeral_accessors
2016-10-26 18:44:49 +01:00
Christoph M. Wintersteiger
935c523ef8
Added FPA numeral predicates to Java API
2016-10-26 18:44:35 +01:00
Christoph M. Wintersteiger
c573a7446b
Added FPA numeral predicates to .NET API
2016-10-26 18:44:25 +01:00
Christoph M. Wintersteiger
bea7bc5e30
Bugfix for bv2fpa_converter. Fixes #767 .
2016-10-26 16:32:44 +01:00
Christoph M. Wintersteiger
cf93e39666
Fixed FPA unbiased exponent accessors
2016-10-26 15:54:33 +01:00
Christoph M. Wintersteiger
e381cef92c
Marked .NET Z3Exception as serializable
2016-10-26 15:12:10 +01:00
Christoph M. Wintersteiger
ead970b477
Bugfix for Python API.
...
Thanks to John D. Ramsdell for reporting this issue (http://stackoverflow.com/questions/39584779/why-is-the-sort-of-a-bound-variable-forced-not-to-be-a-finite-domain-sort ).
2016-10-26 14:08:33 +01:00
Nikolaj Bjorner
da4289fadc
fix unit tests for pb
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-25 20:47:48 -07:00
Nikolaj Bjorner
d0c5b86a2a
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-25 20:32:20 -07:00
Nikolaj Bjorner
461e88e34c
additional robustness check for incremental sat solver core when it recieves interpreted constants, added PB equality to interface and special handling of equalities to adddress performance gap documented in #755
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-25 20:32:13 -07:00
Christoph M. Wintersteiger
c7fddf80c2
fixed unhandled case warning in test/qe_arith.cpp
2016-10-25 14:34:00 +01:00
Christoph M. Wintersteiger
8c5c564d6c
fixed initialization order warning in pb2bv_rewriter
2016-10-25 14:31:29 +01:00
Christoph M. Wintersteiger
963dfad10e
fix for biased flag on get_numeral_exponent_string
2016-10-25 14:17:23 +01:00
Christoph M. Wintersteiger
dc78a04135
removed debug output
2016-10-25 12:20:45 +01:00
Nikolaj Bjorner
fefd00aa49
fix sign of constant in pb constraint
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 20:28:56 -07:00
Nikolaj Bjorner
b82b53dc34
add handling of pseudo-boolean inequalities that use if-expressions over Booleans and arihmetic instead of built-in PB predicates
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 17:41:52 -07:00
Nikolaj Bjorner
e4d2c5867a
remove dead (and incorrect) code
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 15:52:47 -07:00
Nikolaj Bjorner
a880e5f49b
fix incorrection assertion when checking signs of literals, exposed by miTLS regressions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 13:12:36 -07:00
Nikolaj Bjorner
c68c56b0e7
fix incorrect assertion when checking signs of literals, exposed by mitls regressions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 13:09:27 -07:00
Nikolaj Bjorner
33e7dccd42
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 09:11:02 -07:00
Nikolaj Bjorner
0439b795b4
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-24 09:10:40 -07:00
Nikolaj Bjorner
99002aeffb
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-24 08:25:19 -07:00
Nikolaj Bjorner
6cf54a226e
a more efficient encoding for pseudo-Boolean inequality constraints into bit-vectors
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-24 08:25:02 -07:00
Christoph M. Wintersteiger
79f1d7b4d4
fixed GCC build issue in tests
2016-10-24 15:27:47 +01:00
Christoph M. Wintersteiger
5fee1ea3c0
removed unused variables
2016-10-24 14:08:33 +01:00
Christoph M. Wintersteiger
7517cf485e
ML API bugfixes for FPA numeral accessors
2016-10-24 13:32:37 +01:00
Christoph M. Wintersteiger
df2a569d25
Replaced antiquated header with modern equivalent.
2016-10-24 13:29:17 +01:00
Christoph M. Wintersteiger
abcb6040d4
Refactored FPA numeral accessors.
2016-10-24 12:53:57 +01:00
Christoph M. Wintersteiger
0a11e8f3c0
Resolved rebase conflicts
2016-10-24 12:53:57 +01:00
Christoph M. Wintersteiger
8926b3311d
Fixed FP numeral special value sig/exp extraction functions.
2016-10-24 12:52:07 +01:00
Christoph M. Wintersteiger
89d38385db
Added functions to test FP numerals for special values.
2016-10-24 12:50:05 +01:00
Christoph M. Wintersteiger
6b474adc8a
Added accessors to extract sign/exponent/significand BV numerals from FP numerals.
2016-10-24 12:50:05 +01:00
Christoph M. Wintersteiger
5716eaafed
whitespace
2016-10-24 12:50:05 +01:00
Nikolaj Bjorner
4f3f21bff1
disable local optimization in presence of non-linear constraints, addresses issue #758
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 21:45:35 -07:00
Nikolaj Bjorner
a1b7e41d7f
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-23 20:53:14 -07:00
Nikolaj Bjorner
b92bd89a45
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 20:53:10 -07:00
Nikolaj Bjorner
b476784f23
add missing file
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 20:52:44 -07:00
Nikolaj Bjorner
3778048eb4
add bounded-int and pb2bv solvers to fd_solver, use sorting networks for pb2bv rewriter when applicable, hoist to pb2bv_rewriter module and remove it from the pb2bv_tactic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-23 20:31:59 -07:00
Nikolaj Bjorner
6d3430c689
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-22 21:51:11 -07:00
Nikolaj Bjorner
e32e0d460d
fix at-most-1 constraint compiler bug
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-22 21:50:45 -07:00
Nikolaj Bjorner
23b9d3ef55
fix at-most-1 constraint compiler bug
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-22 18:50:16 -07:00
Christoph M. Wintersteiger
5bd00d3f83
Bugfixes for the FPA API
2016-10-21 15:39:02 +01:00
Nikolaj Bjorner
bb6d826908
use index j to avoid superficial, but typically flagged, name clash with internal index i
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-20 22:17:11 -07:00
Nikolaj Bjorner
9cd7b9b4f6
fix mutex finding for smt-core: it was returning mutexes for negations of literals
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-20 22:13:23 -07:00
Nikolaj Bjorner
ef9486913b
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-19 08:57:16 -07:00
Nikolaj Bjorner
527980e440
local
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-19 08:57:10 -07:00
Christoph M. Wintersteiger
f97ffce479
Silenced GCC warning about empty loop body.
2016-10-19 12:31:35 +01:00
Christoph M. Wintersteiger
f9bd8f674d
whitespace
2016-10-19 12:31:06 +01:00
Christoph M. Wintersteiger
948bf9540f
Fix for previous commit.
2016-10-19 12:07:33 +01:00
Christoph M. Wintersteiger
11997afb5d
Fixed potential problems with invalidated iterators.
2016-10-19 12:00:34 +01:00
Nikolaj Bjorner
881e82e3fa
remove legacy interface to dt2bv tactic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-18 23:04:17 -04:00
Nikolaj Bjorner
3aa7eab3e2
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-18 22:37:08 -04:00
Nikolaj Bjorner
d060359f01
add fd solver for finite domain queries
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-18 22:34:34 -04:00
Christoph M. Wintersteiger
4546915238
Fixed iterator invalidation bug in theory_arith_nl.
...
Indirectly relates to #740
2016-10-18 17:17:19 +01:00
Christoph M. Wintersteiger
9fef51553c
Whitespace
2016-10-18 17:15:43 +01:00
Nikolaj Bjorner
948a1e600e
undo breaking commit
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-18 10:27:47 -04:00
Christoph M. Wintersteiger
5ac3bb04ee
Tabs
2016-10-18 13:18:59 +01:00
Nikolaj Bjorner
edaec81aa2
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-17 14:53:13 -04:00
Nikolaj Bjorner
9e4450228e
adding unit test for enumeration types
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-17 14:52:37 -04:00
Christoph M. Wintersteiger
2f6ef0f3be
Removed unnecessary variables.
2016-10-17 16:33:09 +01:00
Christoph M. Wintersteiger
707dbd4173
Bugfix for bv2fpa (model) conversion.
...
Relates to #740
2016-10-17 16:19:27 +01:00
Nikolaj Bjorner
4cae91b096
spacing, unit test
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-17 08:07:23 -04:00
Nikolaj Bjorner
fe14a22baa
adding enumeration tests
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-16 22:19:59 -04:00
Nikolaj Bjorner
4fda2adec8
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-16 15:46:50 -04:00
Nikolaj Bjorner
58198d7cb6
add consequence finding to inc-sat-solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-16 15:45:39 -04:00
Nikolaj Bjorner
aec59e4ff7
add consequence finding to inc-sat-solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-16 15:43:28 -04:00
Christoph M. Wintersteiger
009af4455d
Refactored and fixed model conversion for fpa2bv conversion of unspecified values via theory_fpa.
2016-10-15 18:35:39 +02:00
Christoph M. Wintersteiger
ab4bb8194e
Added unregister_decl to model_core
2016-10-15 18:35:39 +02:00
Christoph M. Wintersteiger
58af4cae14
More consistent fp.* operators.
2016-10-15 18:35:39 +02:00
Christoph M. Wintersteiger
7e705a2d32
Bug fixes for underspecified FP operations.
2016-10-15 18:35:39 +02:00
Christoph M. Wintersteiger
bc257211d6
Whitespace
2016-10-15 18:35:39 +02:00
Nikolaj Bjorner
d8ea3023fc
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-10 23:49:59 -07:00
Nikolaj Bjorner
487f15f90a
better encodings for at-most-1, #755
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-10 23:49:45 -07:00
Nikolaj Bjorner
8d2b70a5e2
better encodings for at-most-1, #755
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-10 23:46:03 -07:00
Andrew Dutcher
bd80f7b4d5
fix some issues with the windows build
2016-10-10 15:38:08 -07:00
Andrew Dutcher
67a7889188
Update metadata for new distribution
2016-10-10 15:38:02 -07:00
Nikolaj Bjorner
5d9820f3e2
add example of parsing with external declarations
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-07 12:57:07 -07:00
Nikolaj Bjorner
37f7c30e23
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-07 12:42:13 -07:00
Nikolaj Bjorner
619cce0a52
add mutex preprocessing to maxsat, add parsing functions to C++ API
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-07 12:42:08 -07:00
Christoph M. Wintersteiger
9548b88e71
Added dummy code contracts for .NET Core/CoreCLR builds.
2016-10-06 16:24:49 +01:00
Christoph M. Wintersteiger
4956f6ef5b
Test fix for python3
2016-10-05 16:11:07 +01:00
Christoph M. Wintersteiger
56e874e991
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-05 15:34:07 +01:00
Christoph M. Wintersteiger
d495b08639
Build/test fix for python3
2016-10-05 15:34:02 +01:00
Nikolaj Bjorner
f452895f5f
add mutex pass
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-04 14:45:23 -07:00
Dionna Amalie Glaze
f4fd721741
Z3_query_constructor documentation clarification
...
Hit a segfault when I assumed the API would allocate these _out parameters for me.
2016-10-04 13:02:31 -05:00
Christoph M. Wintersteiger
acdaeca826
Bugfix for ITEs over FP rounding modes.
...
Fixes #751 .
2016-10-04 18:04:56 +01:00
Christoph M. Wintersteiger
0bd06930ae
whitespace
2016-10-04 18:04:00 +01:00
Nikolaj Bjorner
e3f0aff318
address ubuntu warning and add shortcuts for maxsat
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-03 16:22:13 -07:00
Nikolaj Bjorner
186afe7d10
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-10-02 10:22:23 -07:00
Nikolaj Bjorner
b2db2f1eb6
allow negative weights for weighted maxsat
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-02 10:21:58 -07:00
Nikolaj Bjorner
57ebf7bd38
accepting floats
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-10-02 10:08:23 -07:00
Nikolaj Bjorner
136f724445
update python API with facilities for Pseudo-Booleans and += shorthand for adding constraints
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-30 14:18:34 -07:00
Nikolaj Bjorner
279621c1d7
duplicating private member from z3 to avoid build regressions under some environments
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-30 07:21:39 -07:00
Nikolaj Bjorner
ab3b36269e
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-28 16:42:14 -07:00
Nikolaj Bjorner
476b06fa14
fix compiler warnings, gcc
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-28 16:42:07 -07:00
Nikolaj Bjorner
9fa7cd48e9
Merge pull request #747 from LocutusOfBorg/patch-2
...
fix build with new gcc and clang compilers
2016-09-27 18:07:57 -07:00
Gianfranco Costamagna
4817b87b7d
fix build with new gcc and clang compilers
2016-09-26 08:06:38 +02:00
Gianfranco Costamagna
9c48fbba2e
Update mpff.cpp to fix build with clang and new gcc
2016-09-26 08:05:15 +02:00
Nikolaj Bjorner
8cf356224e
fix python for 3.x
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-22 22:24:43 -07:00
Nikolaj Bjorner
b758a7a508
disable smt-lib success printing when locally parsing database of common pattern rules. Issue #743
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-22 19:53:48 -07:00
Andrew Dutcher
4801a27c2d
Fix up z3test to a) exist and b) work
2016-09-21 17:18:10 -07:00
Nikolaj Bjorner
14668b4d44
Merge pull request #735 from angr/new-build
...
New packaging for and ability to distribute python bindings
2016-09-21 15:55:22 -07:00
Nikolaj Bjorner
516dba52ce
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-21 12:24:34 -07:00
Nikolaj Bjorner
527c5191a6
Add C++ functions for set operations per stackoverflow post, set relevancy = 2 for quantified maxsmt per example from Aaron Gember, fix conversion of default weights based on bug report from Patrick Trentin on maxsat. Annotating soft constraints with weight=0 caused the weight to be adjusted to 1 and therefore produce wrong results
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-21 12:24:24 -07:00
Nikolaj Bjorner
e8f4dd76c2
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-17 17:29:33 -07:00
Nikolaj Bjorner
77b245b3d8
fix proof production to avoid crash. Issue #733
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-17 17:29:19 -07:00
Nikolaj Bjorner
cda967ead2
guard verbose output by verbosity level for datalog command-line tool
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-16 15:36:40 -07:00
Nikolaj Bjorner
7f29674842
add option to bypass compression of unbound tails, issue #738
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-16 14:56:10 -07:00
Christoph M. Wintersteiger
7a3308110c
Merge pull request #722 from wintersteiger/i715
...
x64 clause allocator bug fix
2016-09-16 19:53:08 +01:00
Mikolas Janota
147c0f8152
Removing an unused method from bv_rewriter.
2016-09-16 19:44:37 +01:00
Mikolas Janota
ec47a1df50
Adding bv preprocessing techniques.
2016-09-16 19:44:37 +01:00
Christoph M. Wintersteiger
27ea7d8e9d
style/formatting
2016-09-16 19:34:48 +01:00
Christoph M. Wintersteiger
b70cc47a9d
x64 clause allocator fix for del_clause
2016-09-16 19:25:41 +01:00
Christoph M. Wintersteiger
5b1cb49973
x64 clause allocator bug fix
2016-09-16 19:25:41 +01:00
Andrew Dutcher
02217d048b
replace all non-portable filepath slashes with os.path.join
2016-09-14 14:19:10 -07:00
Andrew Dutcher
02783d0bfb
Minor tweaks to make things more reliable/less obnoxious
2016-09-14 01:49:37 -07:00
Andrew Dutcher
704105306c
FINISH IT
2016-09-14 01:40:01 -07:00
Andrew Dutcher
0bbd172af3
First steps to a sane python build
2016-09-14 01:37:04 -07:00
Andrew Dutcher
fa6cc19184
Moved python bindings into package
2016-09-14 01:33:07 -07:00
Nikolaj Bjorner
9f77759cd6
ensure that status is displayed in SMT-LIB2 compliant way. Issue #734
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-13 10:34:34 -07:00
Nikolaj Bjorner
5a86815f34
fix regression in seq-replace rewriting
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-11 05:43:16 -07:00
Nikolaj Bjorner
1450594fc6
add patch to deal with bug exposed in issue #721
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-10 12:15:49 -07:00
Nikolaj Bjorner
0b57829bdd
fix heisenbug, unintialized variable, issue #720
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-10 11:04:29 -07:00
Nikolaj Bjorner
cb140011bc
add missing rewrite rule. Issue #731
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-10 09:42:36 -07:00
Nikolaj Bjorner
2f67665c7e
ensure stoi axiom even when no value is present for argument. Issue #731
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-10 09:40:21 -07:00
Nikolaj Bjorner
d74e618565
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-08 13:59:22 -07:00
Nikolaj Bjorner
e485d1889c
update replace semantics
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-08 13:59:13 -07:00
Nikolaj Bjorner
76cf28d48b
move from uint_set to hashtable over unsigned to save memory overhead in consequence generation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-08 13:34:59 -07:00
Nikolaj Bjorner
94b67412ec
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-07 11:59:06 -07:00
Nikolaj Bjorner
c5dd441947
fixes to consequence generation and cancellation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-07 11:50:26 -07:00
Nikolaj Bjorner
2d9dced1c7
fix spacing, cast to Bool
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-06 20:18:31 -07:00
cttghc
758266b952
Fix omission of Z3_model_has_interp in z3++.h
2016-09-06 18:32:41 -05:00
Nikolaj Bjorner
0e9758a211
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-06 14:39:19 -07:00
Nikolaj Bjorner
3b70dd6678
tuning by using get_consequences2
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-06 14:29:40 +08:00
AlexVonB
c6b0fc444c
Fix VisualStudio 2010 compiler warning C4100
...
When compiling with Visual Studio 2010 the buildlog warns of the following: `z3++.h: warning C4100: 'e' : unreferenced formal parameter` and `z3++.h: warning C4100: 'c' : unreferenced formal parameter`. This merge request removes this warning.
2016-09-05 16:22:00 +02:00
Nikolaj Bjorner
424a8c69bd
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-09-02 03:05:23 -07:00
Nikolaj Bjorner
dc48008d46
fixestoconsequences
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-02 11:00:40 +08:00
Nikolaj Bjorner
c746d46d80
add validation code, fix bugs in consequence finder
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-09-01 16:21:23 +08:00
Nikolaj Bjorner
4d9aadde35
updated consequence finder to fix bug in processing enumeration types
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-31 16:15:36 +08:00
Nikolaj Bjorner
237fde1f76
fix crash during shutdown. Issue #719
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-31 09:57:46 +08:00
Nikolaj Bjorner
310c0f31a1
use type constrsaints for co-variant subtying to enable .net 3.5
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-30 12:07:06 +08:00
Nikolaj Bjorner
d4539b8887
fix dt2bv transformation to only work with constants, issue #725
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-30 11:42:14 +08:00
Nikolaj Bjorner
882c3bd0cd
fix unused variable warnings
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-23 18:18:11 -03:00
Nikolaj Bjorner
510231df42
fix to #717 . The bottom-up COI filter can only use positive facts for filtering
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-23 12:26:38 -03:00
Nikolaj Bjorner
b5c521e4b2
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-08-23 11:44:48 -03:00
Nikolaj Bjorner
0a09d5ff52
check for non-nullness when handling optional info fields for marking. Fixes issue #719
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-23 11:33:40 -03:00
Christoph M. Wintersteiger
b03dc0af3b
fixed memory leaks
2016-08-20 17:57:00 -04:00
Christoph M. Wintersteiger
47e95f8676
Fixed binding substitution in macro_util
2016-08-20 17:56:52 -04:00
Nikolaj Bjorner
879f792125
fix axiomatization of str.replace. Fixes issue #703
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-20 06:13:52 -07:00
Nikolaj Bjorner
2d8325ed43
fix axiomatization of str.replace. Fixes issue #703
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-20 06:05:13 -07:00
Nikolaj Bjorner
439e8e6b04
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-08-20 03:53:55 -07:00
Nikolaj Bjorner
f2b5c11d1c
add option for prettier proof printing, Issue #706
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-20 03:52:45 -07:00
Nikolaj Bjorner
5069da62a3
safe sat clause_offset in debug mode
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-19 08:45:06 -07:00
Nikolaj Bjorner
e132c5eae8
safe sat clause_offset in debug mode
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-19 08:42:40 -07:00
Nikolaj Bjorner
b2383a481a
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-08-18 18:02:22 -07:00
Nikolaj Bjorner
665fccf07a
addressing max-segment issue for AMD64 + Debug
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-18 18:01:29 -07:00
Christoph M. Wintersteiger
e8141aaa84
debug fixes
2016-08-12 19:52:59 +01:00
Christoph M. Wintersteiger
244c641234
debug check fix
2016-08-12 13:19:12 +01:00
Christoph M. Wintersteiger
b74bff7fb7
logic detection fix
2016-08-10 11:39:47 +01:00
Christoph M. Wintersteiger
f54a7db108
Added debug traces.
2016-08-09 16:36:49 +01:00
Christoph M. Wintersteiger
ff3c630207
.NET API: Added MkMul from IEnumerable.
2016-08-09 16:36:32 +01:00
Christoph M. Wintersteiger
03aa6914a3
Fixed sub-logic detection for the ALL logic.
2016-08-09 13:20:45 +01:00
Nikolaj Bjorner
aee6a7fe4c
Merge pull request #708 from dstaple/master
...
Removed complete() from handling of y.is_zero() in process_power
2016-08-06 09:06:34 -07:00
Nikolaj Bjorner
14e8126f16
wrapping interruptable with solver consequence call
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-05 11:32:12 -07:00
Douglas B. Staple
87b7674245
Removed complete() from handling of y.is_zero() in process_power
2016-08-05 14:11:51 -03:00
Nikolaj Bjorner
f3ef59b095
fix scanner bug at EOF
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-04 13:17:37 -07:00
Nikolaj Bjorner
6582330cc4
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-03 14:25:57 -07:00
Nikolaj Bjorner
bbfe02b25a
modulating data-type solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-03 11:16:29 -07:00
Nikolaj Bjorner
491b3b34aa
tune consequence finding. Factor solver pretty-printing as SMT-LIB into top-level
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-08-03 11:14:29 -07:00
Nikolaj Bjorner
cb2d8d2107
add detection of non-fixed variables to consequence finding
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-30 19:12:41 -07:00
Nikolaj Bjorner
7562efbe84
add consequence command
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-30 12:59:29 -07:00
Nikolaj Bjorner
7346098895
fix unsat core extraction code in smt_context
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-30 11:22:34 -07:00
Nikolaj Bjorner
d32019f4c9
fix consequence tracking for negated assumptions
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-30 10:49:06 -07:00
Nikolaj Bjorner
7d545d902d
switch to specialized consequence generator in combined_solver
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-29 17:36:11 -07:00
Nikolaj Bjorner
2263be1b4d
adding consequence examples
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-29 17:24:14 -07:00
Nikolaj Bjorner
82d0310d94
remove repeated default argument, remove tabs
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 21:13:12 -07:00
Nikolaj Bjorner
5c99405db3
finish consequence fast path code
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 20:15:47 -07:00
Nikolaj Bjorner
4958edeb42
fix build
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 19:40:49 -07:00
Nikolaj Bjorner
fa48703445
fix build for non C++11
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 17:04:47 -07:00
Nikolaj Bjorner
0055254f4c
fix build for non C++11
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 17:04:06 -07:00
Christoph M. Wintersteiger
2e362aa6c0
build fix
2016-07-29 01:02:48 +01:00
Nikolaj Bjorner
46c911a92f
Merge pull request #700 from lorisdanto/master
...
added symbolic automata complement for sequences
2016-07-28 17:00:23 -07:00
Nikolaj Bjorner
8221a09659
fast path for antecedent extraction in smt_context
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 16:49:19 -07:00
Loris D'Antoni
73bd4acfc5
added symbolic automata complement for sequences
2016-07-28 13:50:05 -07:00
Nikolaj Bjorner
074f1ad778
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-07-28 11:20:23 -07:00
Nikolaj Bjorner
14f29e7265
add basic built-in consequence finding
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-28 11:20:17 -07:00
Christoph M. Wintersteiger
6f874c5c1d
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-07-28 18:07:48 +01:00
Christoph M. Wintersteiger
7fefe40f21
Added/improved facilities for strong name signing of the .NET assembly.
2016-07-28 18:07:34 +01:00
Christoph M. Wintersteiger
0d83f99d8d
Fixed comment
2016-07-28 18:06:26 +01:00
Christoph M. Wintersteiger
3587baaf24
Added full version strings and associated API functions.
2016-07-28 18:06:02 +01:00
Nikolaj Bjorner
b7de813c63
set solver on simplify command
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-27 15:35:44 -07:00
Nikolaj Bjorner
0997eba700
adding hash/eq to uint_set
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-27 13:41:41 -07:00
Nikolaj Bjorner
5f5ef8b38d
adding support for distinct for dt2bv, re-entry harness for ~Context
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-27 09:02:56 -07:00
Christoph M. Wintersteiger
8fa29f6970
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-07-26 19:21:57 +01:00
Christoph M. Wintersteiger
eec68cfa2d
Added 32/64 bit indication and githash to output of -version.
2016-07-26 19:21:50 +01:00
Nikolaj Bjorner
67c6f9be91
have the classifier revert to full arithmetic on non-difference logic, reported on http://stackoverflow.com/questions/38594208/changing-order-of-z3-fixepoint-queries-changes-the-result/38596187#3
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-26 10:32:54 -07:00
Nikolaj Bjorner
56c78753f0
updating default solver selection. Add dt2bv transformation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-24 18:16:32 -07:00
Nikolaj Bjorner
a85c5f0fac
add handling of recognizers to enumeration types
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-24 17:29:17 -07:00
Nikolaj Bjorner
6bf446dfc2
add tactic to eliminate enumeration sorts in favor of bit-vectors
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-23 14:13:40 -07:00
Nikolaj Bjorner
083939ab0e
add tactic to eliminate enumeration sorts in favor of bit-vectors
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-23 14:11:21 -07:00
Nikolaj Bjorner
3581f6de42
remove stale SLS option
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-21 18:18:42 -07:00
Nikolaj Bjorner
f522d995d1
apply 'to-real' coercion only on integers. bug reported by Geoff
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-20 19:03:25 -07:00
Nikolaj Bjorner
b56837e09b
fix build break: throw only on invalid model
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-20 13:11:22 -07:00
Nikolaj Bjorner
a59ed0fc2f
Merge branch 'master' of https://github.com/Z3Prover/z3
2016-07-20 12:18:16 -07:00
Nikolaj Bjorner
60711bb0cd
deal with model construction, issue #684 . fix model construction for ite #678 . WIth this version, issue #686 does not repro
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-20 12:18:07 -07:00