3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 22:05:36 +00:00
Commit graph

3555 commits

Author SHA1 Message Date
Christoph M. Wintersteiger 099775947e Partial fix for fp,min/fp.max models 2015-10-25 13:10:40 +00:00
Christoph M. Wintersteiger e3ed0159a8 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-25 13:09:59 +00:00
Christoph M. Wintersteiger 21ad1fb623 Bugfix for proof production in asserted_formulas::propagate_values()
Fixes #259
2015-10-25 13:09:18 +00:00
Nikolaj Bjorner 05c6ed1698 fixing issue #254
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-22 09:54:05 -07:00
Nikolaj Bjorner ac902dad1a fix another regression and missing detection of bounds, Issue #254
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-22 08:53:12 -07:00
Nikolaj Bjorner ffa78b95ab fix unbounded, issue #252
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-21 14:38:47 -07:00
Christoph M. Wintersteiger e2f2708a9c Fixed array default operator 2015-10-19 21:12:43 +01:00
Christoph M. Wintersteiger d14a471cfd Merge branch 'ag-iz3_exception' of https://github.com/agriggio/z3 into agriggio-ag-iz3_exception 2015-10-19 15:20:50 +01:00
Christoph M. Wintersteiger 6749c19ab1 Merge branch 'static_analysis' of https://github.com/daniel-j-h/z3
# Conflicts:
#	src/ast/ast.h
#	src/interp/iz3foci.cpp
#	src/muz/duality/duality_dl_interface.cpp
#	src/util/hwf.h
2015-10-19 15:14:45 +01:00
Christoph M. Wintersteiger 954a629296 Merge branch 'zkincaid-uint' 2015-10-19 15:01:07 +01:00
Christoph M. Wintersteiger 059c58e6d8 Merge branch 'uint' of https://github.com/zkincaid/z3 into zkincaid-uint 2015-10-19 15:00:43 +01:00
Christoph M. Wintersteiger 0c774e59c3 Merge branch 'Dmitriy403-WpedanticFix' 2015-10-19 14:57:49 +01:00
Christoph M. Wintersteiger 57db321daf Merge branch 'WpedanticFix' of https://github.com/Dmitriy403/z3 into Dmitriy403-WpedanticFix 2015-10-19 14:57:34 +01:00
Christoph M. Wintersteiger 9d505ec7ff Merge branch 'unstable' of https://github.com/jmgrosen/z3 into jmgrosen 2015-10-19 14:53:06 +01:00
Christoph M. Wintersteiger 1364f39f61 Merge pull request #218 from cgcgbcbc/fix/implies
fix implies(expr const &, expr const &) in z3++.h
2015-10-19 14:29:07 +01:00
Christoph M. Wintersteiger d4e0de8f84 Merge pull request #234 from martin-neuhaeusser/master
Fixed typo that accidentally prints warning message if a Z3 context i…
2015-10-19 14:24:35 +01:00
Christoph M. Wintersteiger bd3775e878 Merge branch 'master' of https://github.com/npricci/z3 into npricci-master
# Conflicts:
#	src/api/python/z3.py
2015-10-19 14:22:56 +01:00
Christoph M. Wintersteiger b9f66c545a Merge pull request #11 from Confusion/patch-1
Corrected typo: interger -> integer
2015-10-19 14:07:02 +01:00
Christoph M. Wintersteiger ef80645a71 Java API context deletion concurrency fix.
Relates to #205 #245
2015-10-14 22:13:43 +01:00
Christoph M. Wintersteiger a71a333722 Minor Java API fix. 2015-10-14 21:33:30 +01:00
Christoph M. Wintersteiger 2d3c12716a Bugfix for Java memory leaks.
Relates to #205 #245
2015-10-14 21:19:59 +01:00
Christoph M. Wintersteiger 58d3329190 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-14 13:59:20 +01:00
Christoph M. Wintersteiger 24532474a0 Bugfix for concurrent Context creation in Java and .NET.
Relates to #205 #245
2015-10-14 13:58:51 +01:00
Christoph M. Wintersteiger b66f34f0d2 Removed unnecessary debug output. 2015-10-14 12:53:18 +01:00
Christoph M. Wintersteiger bae3a76c8a Removed unnecessary debug output. 2015-10-14 12:52:16 +01:00
Christoph M. Wintersteiger 5e0470f5a3 Merge branch 'master' of https://github.com/Z3Prover/z3 into java_fix 2015-10-14 12:43:49 +01:00
Christoph M. Wintersteiger e312b47be6 Bugfix for object finalization in Java API.
Relates to #205 and #245
2015-10-14 12:43:09 +01:00
Christoph M. Wintersteiger 6263252bf5 Bugfix for concurrent garbage collection in Java API.
Relates to #205 and #245
2015-10-14 12:42:27 +01:00
Nikolaj Bjorner f4954e9d7f fix for fixed size rational difference logic
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-13 09:24:02 -07:00
Ken McMillan b343dcb341 better recovery from incompleteness and interp failure in duality 2015-10-09 14:21:05 -07:00
Nuno Lopes 0e387b2abe use Z3_fallthrough instead of __falthrough directly to avoid messing with reserved identifiers
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-10-09 18:06:49 +01:00
Christoph M. Wintersteiger a951ff0769 Fix for FP UFs and conversion functions. 2015-10-08 16:04:17 +01:00
Christoph M. Wintersteiger 883514c195 Bugfix for FPA UFs 2015-10-08 14:14:39 +01:00
Christoph M. Wintersteiger c787ea1a3b Bugfix for FP UFs. 2015-10-08 12:45:26 +01:00
Christoph M. Wintersteiger a2503af585 Bugfixes for UFs and conversion functions in theory_fpa 2015-10-08 11:54:35 +01:00
Christoph M. Wintersteiger b60f30c802 Merge pull request #236 from wintersteiger/i68
Fixes for issue #68
2015-10-07 20:56:35 +01:00
Christoph M. Wintersteiger de39173f6f Corrected unspecified behavior of fp.min/fp.max corner cases in fpa2bv_converter and in theory_fpa.
Fixes #68
2015-10-07 20:44:08 +01:00
Christoph M. Wintersteiger 8a026c355f Corrected unspecified behavior of corner cases in fp.min/fp.max.
Partially addresses #68.
2015-10-07 20:39:36 +01:00
Christoph M. Wintersteiger fcf036695e Bugfix for mpf to_ieee_bv 2015-10-07 20:37:12 +01:00
martin-neuhaeusser 99e4b321bd Fixed typo that accidentally prints warning message if a Z3 context is created with the 'timeout' parameter 2015-10-07 17:27:05 +02:00
Nikolaj Bjorner 6e852762ba patch for issue #232
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-06 19:07:47 -07:00
Christoph M. Wintersteiger 95c9ccb295 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-05 13:07:19 +01:00
Nikolaj Bjorner 7b95d6894a comment out unit test that depends on hard-wired path
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-04 16:34:23 -07:00
Christoph M. Wintersteiger 8e2ec55af4 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-04 23:37:18 +01:00
Nikolaj Bjorner 1bb9864d0f comment out diverging portion of unit test. Issue #210
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-04 11:24:22 -07:00
Nikolaj Bjorner 2912c355e2 remove reinterpret_cast. Issue #229, issue #24
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-04 10:54:19 -07:00
Nikolaj Bjorner 67ddbe4a05 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-10-04 10:35:57 -07:00
Nikolaj Bjorner 7768aa5487 compiler warning by daniel j h
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-04 10:35:48 -07:00
Christoph M. Wintersteiger 19c22fde50 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-04 16:42:07 +01:00
Christoph M. Wintersteiger f11502e0ac reinterpret_cast fixes for the Windows compiler. 2015-10-04 16:41:28 +01:00
Christoph M. Wintersteiger ceb562a889 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-04 16:05:25 +01:00
Christoph M. Wintersteiger 4626196907 Eliminated reinterpret_casts. Partially fixes #24, #229. 2015-10-04 15:52:20 +01:00
Christoph M. Wintersteiger c636c87e4d Eliminated unused variable 2015-10-04 15:51:27 +01:00
Christoph M. Wintersteiger 32194b3f36 Eliminated unused variables. 2015-10-04 15:22:10 +01:00
Christoph M. Wintersteiger b20224bc98 Removed or commented unused functions and variables. 2015-10-04 15:21:17 +01:00
Christoph M. Wintersteiger fbac183e32 eliminated unused variable 2015-10-04 15:16:41 +01:00
Christoph M. Wintersteiger 4857de6c81 fixed buggy if condition 2015-10-04 15:16:03 +01:00
Nikolaj Bjorner 459e456f66 disable memory finalization after quant_solve unit test. Related to issue #210
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-03 17:37:33 -07:00
Nikolaj Bjorner 62a4737d77 disable code in dl_query that depends on hard-wired file path
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-03 17:30:12 -07:00
Nikolaj Bjorner 50993582ec put break statement in else branh. Issue #230 (broken loop)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-03 17:15:54 -07:00
Nikolaj Bjorner 89f1541d83 put break statement in else branh. Issue #230 (broken loop)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-03 17:15:45 -07:00
Christoph M. Wintersteiger 95dea3922d Merge branch 'pure' of https://github.com/Z3Prover/z3
Conflicts:
	src/api/ml/z3.ml
	src/api/ml/z3.mli
	src/api/python/z3util.py
2015-10-02 19:47:24 +01: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 1294a2ac15 Fixed a memory leak 2015-10-01 13:31:37 +01:00
Nikolaj Bjorner 5d71190468 add catch for cancellation intermixed with return value l_true. To address regressions in QF_LIA tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-29 16:50:59 -07:00
Nikolaj Bjorner 77c423b9aa annotate enode hash as signed character to address issue #210
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-29 14:14:29 -07:00
Nikolaj Bjorner 074ff58739 include rlimit in nlsat, include dedicated error message, for issue #216
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-29 09:27:34 -07:00
Nikolaj Bjorner d9b6623400 include rlimit in nlsat, include dedicated error message, for issue #216
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-29 09:16:46 -07:00
Christoph M. Wintersteiger 0cf18ab18e Propagated rlimit changes to sat::solver into sat_user_scope tests 2015-09-29 11:50:10 +01:00
Nikolaj Bjorner 1f9d5249a3 fix build break regarind z3test.py and added rlimit
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 14:05:57 -07:00
Nikolaj Bjorner f3b8fe130a adding rlimit resource limit facility to provide platform and architecture independent method for canceling activities. This is to address issue #216
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 13:40:54 -07:00
Nikolaj Bjorner 9b3e242990 adding rlimit resource limit facility to provide platform and architecture independent method for canceling activities
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 13:37:59 -07:00
Nikolaj Bjorner ad16cc0ce2 fix unit test for datalog parser, fixes issue #224
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 11:16:55 -07:00
Christoph M. Wintersteiger ac7e8b352f Improved support for UFs in FPA theory 2015-09-28 18:20:45 +01:00
Christoph M. Wintersteiger de3ead9ff1 build fix 2015-09-28 18:20:22 +01:00
Christoph M. Wintersteiger 076e680433 Improved UF suppport in fpa2bv_converter. 2015-09-25 17:28:31 +01:00
Christoph M. Wintersteiger 2744d80642 Fixed reference counting in fpa2bv converter. 2015-09-23 14:22:02 +01:00
Christoph M. Wintersteiger 04266fccc9 Bugfix for mpf sqrt.
Fixes #222.
2015-09-21 20:56:07 +01:00
Christoph M. Wintersteiger 0b15fc9402 Bugfix for mpf sqrt.
Fixes #222.
2015-09-21 19:44:53 +01:00
Christoph M. Wintersteiger d4b66538f9 Bug/assertion fix for power monomials in nlsat.
Previously triggered an assertion on regressions/smt2/fp-to_real-1.smt2, but only on OSX and FreeBSD
2015-09-17 16:31:51 +01:00
Christoph M. Wintersteiger 05d9e188f8 Reactivated smt.max_conflicts option.
Partially fixes #216.
2015-09-17 14:08:04 +01:00
Christoph M. Wintersteiger f3441c6a9b tabs and indentation 2015-09-17 13:25:22 +01:00
Christoph M. Wintersteiger d2c9b69eb3 fixed memory leak (`mem' remained allocated upon exception thrown in check_args). 2015-09-17 13:20:24 +01:00
Christoph M. Wintersteiger 2e071e89b0 tabs 2015-09-17 13:16:35 +01:00
Christoph M. Wintersteiger 4d39108808 Bugfix for fp.to_sbv
Fixes #162
2015-09-17 12:21:59 +01:00
Christoph M. Wintersteiger e9565d6a7f Fixed warning message 2015-09-17 12:18:44 +01:00
Christoph M. Wintersteiger 2115ea8bb8 Bugfix for fp.sqrt.
Fixes #220.
2015-09-17 12:13:04 +01:00
Christoph M. Wintersteiger 52df2224e9 Disabled FP debug variables. 2015-09-16 18:04:26 +01:00
Christoph M. Wintersteiger 27f8ad288c Bugfix for fp.to_ubv.
Fixes #162.,
2015-09-16 14:26:53 +01:00
Christoph M. Wintersteiger 79d69cd5f0 Added FP to_ieee_bv to fpa_rewriter to enable model evaluation. 2015-09-16 12:57:05 +01:00
Christoph M. Wintersteiger 46e24e094c fixed warning message 2015-09-16 12:08:56 +01:00
Christoph M. Wintersteiger 869cd6074d Bugfix for fp.to_sbv and fp.to_ubv.
Fixes #162.
2015-09-15 19:03:31 +01:00
Christoph M. Wintersteiger a1073206f9 Bugfix for FP rewriter. 2015-09-15 16:23:24 +01:00
Nikolaj Bjorner 406cd00b3a Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-15 10:54:17 +02:00
Nikolaj Bjorner f94152c857 fix build warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-15 10:54:01 +02:00
Christoph M. Wintersteiger d6e2fa6a60 Bugfix for MPF fma. 2015-09-14 14:07:11 +01:00
Christoph M. Wintersteiger d0fa4e992f Bugfix for fp.to_sbv.
Fixes #162
2015-09-14 14:04:31 +01:00
Nikolaj Bjorner b25e8e2288 tune lexicographic products, avoid push/pop and ensure correction sets are not used for multiple objectives
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-13 16:00:45 +02:00
Guang Chen cef7ec2157 fix implies(expr const &, expr const &) in z3++.h 2015-09-13 13:29:06 +08:00
Nikolaj Bjorner e3840a7fc6 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-12 14:47:49 +02:00
Nikolaj Bjorner a8b47b4fb2 enable coercions when interpolation creates MILP constraints. Issue #217
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-12 14:47:35 +02:00
Christoph M. Wintersteiger 646dcfb6e6 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-10 11:37:18 +01:00
Christoph M. Wintersteiger 25f75b60fe Bugfix for fp.mul and fp.fma for small numbers of e/s bits.
Fixes #215.
2015-09-10 11:37:06 +01:00
Nuno Lopes 980a0e97f8 Python 3 compat for z3.py; patch by Sarah Winkler
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-09-10 09:32:45 +01:00
Nuno Lopes 45cfb80d14 tentatively fix another issue with char signedness as reported in issue #210
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-09-10 09:01:44 +01:00
Nikolaj Bjorner 44105b7aeb reduce verbosity level of error message when equivalence checking fails
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-09 08:32:57 -07:00
Nikolaj Bjorner d7da64f946 fix crash with incorrect bound computation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-08 16:27:57 -07:00
Nikolaj Bjorner 73a8f9960f fix regressions exposed in Internal
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-07 20:17:46 -07:00
Nikolaj Bjorner d121d031e9 fix unintialized memory read exposed by nightly build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-06 14:15:08 -07:00
Nikolaj Bjorner 4be3926daa use signed character type declarations for cross platform compilation. Fixes issue #210
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-05 16:30:58 -07:00
Nikolaj Bjorner 87396bd648 fix issue #212 - don't use SAT solver core when division semantics is disabled
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-05 11:03:35 -07:00
Nikolaj Bjorner 09980a496c Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-02 16:12:33 -07:00
Nikolaj Bjorner b4d0e6076e change behavior on allocation excess to process exit to avoid memory smashes on exception unsafe code blocks. Fixes issue #175
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-02 16:12:19 -07:00
Nikolaj Bjorner 1257d1d990 fix issue #196 related to resetting qe-sat tactic state over multiple calls
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-01 12:36:45 -07:00
Nikolaj Bjorner fdef17683a Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-01 10:35:34 -07:00
Nikolaj Bjorner 2bff98ca5d enable incremental bit-vector solving
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-01 09:52:48 -07:00
Christoph M. Wintersteiger 5b8d0617d4 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-09-01 17:52:30 +01:00
Christoph M. Wintersteiger 336fa6ae83 Bugfix for FP to BV conversion of UFs 2015-09-01 17:52:19 +01:00
Nikolaj Bjorner cc5d719d9e enable incremental bit-vector solving
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-01 09:48:35 -07:00
Nikolaj Bjorner 963981b3a6 fix memory alias bug and non-termination bug exposed by issue #184
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-31 14:45:10 -07:00
Nikolaj Bjorner 0ed38ed59b add option for using corr set and use partial cores
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-30 14:48:24 -07:00
Nikolaj Bjorner 7f219e84de check cancellation flag in min/max. Fixes issue #206
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-29 15:51:58 -07:00
Nikolaj Bjorner dd01f6be46 fix blockers for pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-29 15:42:19 -07:00
Nikolaj Bjorner e4ce6b6d74 update pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-29 14:23:32 -07:00
Nikolaj Bjorner 0bc45ca250 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-28 20:25:40 -07:00
Nikolaj Bjorner 2fe0c05556 tuning pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-28 20:25:25 -07:00
Christoph M. Wintersteiger 8feed01034 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-28 15:41:16 +01:00
Christoph M. Wintersteiger f4c8463619 Bugfix for FP theory
Fixes #207
2015-08-28 15:41:03 +01:00
Nikolaj Bjorner f073f49ec2 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-27 15:43:49 -07:00
Nikolaj Bjorner 78313c614d updateing pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-27 15:43:35 -07:00
Christoph M. Wintersteiger 81eecafa66 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-27 18:17:38 +01:00
Christoph M. Wintersteiger 081ba9093a Bugfix for FP theory; handling of UFs and interpreted functions from other theories. 2015-08-27 18:17:26 +01:00
Nikolaj Bjorner 8622356375 working on pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-27 08:09:46 -07:00
Nikolaj Bjorner 7c47809973 reworking pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-26 16:33:53 -07:00
Nikolaj Bjorner af9143b64a tune initial propagation for pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-25 17:15:31 -07:00
Nikolaj Bjorner d00d6a3506 enable Boolean propagation in AUFBV to fix inefficiency (bit-blasting destroys simplifications that are possible by simple Boolean propagation). Fixes issue #194
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-25 13:21:33 -07:00
Nikolaj Bjorner 68b441770e Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-25 11:09:35 -07:00
Nikolaj Bjorner 7639eff29b retain default configuration between calls to SMT tactic so that values are not overwritten between calls to smt-setup. Fixes bug #196
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-25 11:09:10 -07:00
Nikolaj Bjorner b2ebd095cb fix for unintialized variable m_conflict_lvl
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-24 17:01:46 -07:00
Nikolaj Bjorner ef7915858b add filter to detect circumventing the default semantics of bit-vector division with the use of the sat-based bit-vector solver. Provides a way to fix issue #190
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-24 16:27:07 -07:00
Nikolaj Bjorner ee5f1ad6b6 fix issue #203: domain range was one too large
Signed-off-by: unknown <nbjorner@nikolaj-z.redmond.corp.microsoft.com>
2015-08-24 15:55:40 -07:00
unknown 4ce80f1aed Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-24 09:33:37 -07:00
Christoph M. Wintersteiger 8c11299be6 Bugfix for theory_fpa, when datatypes contain floats.
Fixes #201.
2015-08-24 15:09:02 +01:00
unknown 3c4b5e22b8 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-23 14:25:24 -07:00
Nikolaj Bjorner 46e0ff486b fix wcnf front-end and unsat case in pd
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-23 14:25:11 -07:00
Nikolaj Bjorner 149549dd52 fix wcnf front-end and unsat case in pd
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-23 14:24:51 -07:00
unknown 42c7277ea8 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-23 12:09:51 -07:00
Nikolaj Bjorner ee458fa601 revising pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-23 12:09:07 -07:00
Nikolaj Bjorner 76c9abada2 remove dbg pp
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-23 11:00:19 -07:00
unknown b06c4d985e Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-23 10:58:28 -07:00
unknown 2b48092541 local sat solver change
Signed-off-by: unknown <nbjorner@nikolaj-z.redmond.corp.microsoft.com>
2015-08-23 10:58:12 -07:00
Nikolaj Bjorner 546a9b8f03 revising pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-23 10:53:39 -07:00
Nikolaj Bjorner da0c12cdba move display method to before first SAT call
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-21 18:29:36 -07:00
Nikolaj Bjorner a78fc031bc adding facility to dump wcnf benchmarks
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-21 07:26:49 -07:00
Nikolaj Bjorner 954e612188 redoing pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-20 18:09:43 -07:00
Nikolaj Bjorner a9807878ea reworking pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-20 12:20:30 -07:00
Nikolaj Bjorner e3cb0e2d8b reworking pd-maxres
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-20 12:06:27 -07:00
Nikolaj Bjorner 980e74b4ff add tactic to recognize small discrete domains and convert them into bit-vectors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-20 06:39:11 -07:00
Nikolaj Bjorner 7c87096237 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-18 19:10:44 -07:00
Christoph M. Wintersteiger 9ad065a538 Bugfixes for the optimization module in the ML API 2015-08-15 23:51:43 +01:00
Nikolaj Bjorner 655b44c07b make :weight understand both decimal and integral values, remove dweight, remove deprecated commands for optimization
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-15 00:48:22 +02:00
Nikolaj Bjorner 94d83b7be9 n/a
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-14 14:12:14 +02:00
Nikolaj Bjorner cd838e5cf4 fix bug reported in issue #193: MBQI needs to avoid instantiating data-types that contain model values in nested positions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-13 14:29:48 +02:00
Nikolaj Bjorner 702af71a2d Check more frequently for cancelation flags to address grep0095.stp.smt2 in issue #178. Z3 spends time in pre-processing simplification, which indicates there is some opportunity to tune this portion of the code
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-11 23:14:34 +02:00
Nikolaj Bjorner 424f34d3d9 enable smt tactic to be used even if cores are enabled, as long as no cores are tracked, fixes issue #189
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-11 11:16:41 +02:00
Nikolaj Bjorner af23f226bf take 'iff' into account in assertion on transitivity
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-11 09:07:18 +02:00
Nikolaj Bjorner 40eb7c9c84 fix 0-1 translation bug reported by Klaus Becker
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-10 16:21:02 +02:00
Nikolaj Bjorner e532657d77 .. adding core validation debug option to ease diagnose issue #158
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-10 11:01:46 +02:00
Nikolaj Bjorner db24cb8087 add core validation option to directly validate cores using the context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-10 10:56:07 +02: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 7c9dd6b8a8 fix exception unsafety leading to double free, issues #184 and issue #175. Location and fix strategy suggested by Nuno
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-09 00:34:59 +02:00
Nikolaj Bjorner ff24375550 have opt_frontend display results by default
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-08 14:19:05 +02:00
Nikolaj Bjorner aa431bb67f ensure pb on lex > 1 constraints
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-08 14:10:11 +02:00
Nikolaj Bjorner 8505ca843b recognize more pb patterns
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-08 13:39:39 +02:00
Nikolaj Bjorner c7649088e7 have solver pretty print declarations, include also datatype declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-07 08:54:03 +02:00
Nikolaj Bjorner 052ac51ed7 have solver pretty print declarations, include also datatype declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-07 08:52:27 +02:00
Nikolaj Bjorner 7f517c625f have solver pretty print declarations, include also datatype declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-07 08:48:24 +02:00
Nikolaj Bjorner a3c43c34fb change default behavior of solver pretty printer to include declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-06 18:57:11 +02:00
Nikolaj Bjorner 6780784bcf filter instantiations for model values to fix issue #183
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-06 14:43:08 +02:00
Nikolaj Bjorner f96c0b6963 fixes #186, remove ite-lifting from opt_context to detect weighted maxsat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-06 11:52:59 +02:00
Nikolaj Bjorner e59ec5fefd fixes issue #185
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-08-06 11:04:37 +02:00
Nikolaj Bjorner b8e6a0d0dc Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-08-05 11:13:05 +02:00
Christoph M. Wintersteiger 5e0aaee2c7 Made num_clauses in sat_solver public 2015-08-04 15:26:03 +01:00
Christoph M. Wintersteiger ca4a7ca74e style 2015-08-01 14:29:45 +01:00
Christoph M. Wintersteiger bea8744f7d Disabled superfluous wellformedness check and fixed type checking in basic_decl_plugin::join 2015-07-31 11:20:01 +01:00
Nikolaj Bjorner ef945fbf77 add joinability type checking
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-30 15:15:55 -03:00
Nikolaj Bjorner d94e12104d Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-30 11:32:29 -03:00
Nikolaj Bjorner a0894ac7bf add basic example of using optimizaiton context to Java as raised in issue #179
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-30 11:32:14 -03:00
Christoph M. Wintersteiger 9d31b64273 Enforced well_sorted_check/type_check by default (to match default parameter settings and to produce better error messages).
Fixes #180

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-07-30 09:32:14 +01:00
Christoph M. Wintersteiger 0cd406ca0b Fixed initialization order and unused variable warnings.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-07-30 09:09:13 +01:00
Christoph M. Wintersteiger 7c282d3719 bugfix for smt::model_finder::set_cancel
follow-up to fixed #178
2015-07-29 17:18:15 +01:00
Christoph M. Wintersteiger b9e273800c Made quantifier-related parts of smt::model_finder and smt::model_checker interruptable.
Fixes #178
2015-07-29 16:55:45 +01:00
Nikolaj Bjorner 0e886cfe5e add default constructor and tester to python API, fixes issue #168
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-28 22:54:37 -03:00
Nikolaj Bjorner 318ee3a86d fix issue #176
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-28 22:31:41 -03:00
Ken McMillan 52de96fcfc merge with unstable 2015-07-27 11:24:17 -07:00
Ken McMillan 5aa74644fc fix for issue #171 (interpolation crash) 2015-07-27 11:15:33 -07:00
Zachary Kincaid 6214ba900b Z3_lbool should be signed in API 2015-07-26 21:17:59 -04:00
Dmitriy Trubenkov ab88708f9a Remove extra semicolons in C++ headers. Useful for projects builded with -Wpedantic 2015-07-25 23:46:01 +03:00
vhalros 68c086c589 Added default operator to array interface. 2015-07-24 15:24:23 -04:00
Nikolaj Bjorner fc3e1af4a9 add dump_models option per suggestion from Pankaj Chauhan
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-24 09:45:17 -07:00
Henning Guenther 5fdc104f82 Improve filter_rules performance
Perform lookup and insert in one operation to avoid duplicate work.
2015-07-23 16:08:09 +01:00
Nikolaj Bjorner 5718c23632 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-16 18:01:16 -07:00
Nikolaj Bjorner 7d5c144dfe add java Optimize context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-16 18:00:45 -07:00
Nikolaj Bjorner 92f731e51c add java Optimize context
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-16 18:00:26 -07:00
Nuno Lopes f62a192357 remove __in/__out SAL annotations.
They break the build with recent glibc versions and apparently noone is using them.

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-07-15 13:46:32 +01:00
Nikolaj Bjorner d7b3aaffbd Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-14 13:18:16 -07:00
Christoph M. Wintersteiger 1bad614646 Fixed .equals for AST, FuncDecl, and Sort, and AST.compareTo in Java
Fixes #143
2015-07-14 13:09:00 -07:00
Christoph M. Wintersteiger 5f755a5bd8 Adjusted return types of set functions to ArrayExprs in Java and .NET
Fixes #137
2015-07-14 13:07:16 -07:00
Christoph M. Wintersteiger 31eb738db5 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-14 12:08:34 -07:00
Christoph M. Wintersteiger f9e2ad76fa Bugfix for fp.to_sbv
Fixes #114.
2015-07-14 12:05:45 -07:00
Nikolaj Bjorner 6e22250d1a fixup model construction on undef results for arithmetic. Fixes issue #161
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-13 12:44:55 -07:00
Nikolaj Bjorner 96c8b1e7ff fixup model construction on undef results for arithmetic. Fixes issue #161
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-13 12:44:07 -07:00
Nikolaj Bjorner e13bf2424e fix type checking for non-associative basic operations, fixes issue #160
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-13 08:29:24 -07:00
Nikolaj Bjorner 6fbc8fa06c break stack abuse in relevancy propagation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-12 14:52:43 -07:00
Nikolaj Bjorner 21201371ed add reference equality to Symbols for .NET
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-11 00:53:13 -07:00
Ken McMillan e6516f549d fail gracefully on interpolation errors 2015-07-10 14:39:11 -07:00
Ken McMillan 1cf24f7cdc issue #48 disabled rounding for strict real inequalities 2015-07-10 11:00:13 -07:00
Nikolaj Bjorner ade9b2830a various partial fixes for issue #143
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-10 08:16:57 -07:00
Nikolaj Bjorner a9a5a69b73 remove double underscores
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-09 13:31:22 -07:00
Nikolaj Bjorner 4bc044c982 update header guards to be C++ style. Fixes issue #9
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-08 23:18:40 -07:00
Nikolaj Bjorner f145ceecb4 remove default failure on proof mode fixes #121
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-08 22:12:41 -07:00
Nuno Lopes 5703abd3f1 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-08 13:39:26 +01:00
Nuno Lopes 8edd551f20 remove uneeded calls to datalog_context::get_rules(), since it can be expensive.
thanks to Henning Guenther for finding this.

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-07-08 13:39:15 +01:00
Nikolaj Bjorner 57c51493ef Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-07-07 16:01:57 -07:00
Nikolaj Bjorner d815cf9b7b fix bug in optimization where a variable is updated twice
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-07 16:01:48 -07:00
Nikolaj Bjorner e2adcc19ec fix unit test for default exception
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-06 22:52:44 -07:00
Nikolaj Bjorner 940fed16e1 enforce stringstream formatting to avoid default format routine. fixes issue #149
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-06 09:11:52 -07:00
Nikolaj Bjorner 3fd5d0eaba handle variables and quantifiers, fixes issue #150
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-06 08:34:54 -07:00
Nuno Lopes eeef4d29d6 remove the optimization for 0-byte allocations
I wasn't able to trigger with any SMT or API benchmark
Removing it ensures the function never returns null and enables further optimizations.
I get an amazing avg speedup of 0.9%

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-07-01 14:38:33 +01:00
Nuno Lopes 1f619fd960 cleanup warnings from new dataflow engine
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-30 08:47:37 +01:00
Nikolaj Bjorner 769127d531 add dummy file to fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-29 15:10:38 -07:00
Henning Guenther c7e96d897a Replace cone-of-influence filter with generalized dataflow-engine
Signed-off-by: Henning Guenther <t-hennig@microsoft.com>
2015-06-29 10:50:51 +01:00
Nuno Lopes 3104d2954c don't crash in Z3_model_eval API if not given a valid expression
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-26 18:33:13 +01:00
Nikolaj Bjorner e81dc5a0a0 fixes issue #143 and memory leak on theory plugin setup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-26 09:03:56 +02:00
Nuno Lopes f29d82858f make check_relation::check_equiv() exit only when solver return SAT (ie, avoid false-positives with unknowns)
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-24 17:13:24 +01:00
Nuno Lopes 30eb461e01 disable debug output from check_relation
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-24 17:06:22 +01:00
Nuno Lopes 5cc8c8bde6 udoc: micro optimization for compiler_guard
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-24 17:06:21 +01:00
Nikolaj Bjorner 6bf87083ef fix build break
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:20 +01:00
Nikolaj Bjorner 1544105bd5 set undo trail after set-watches to avoid crash during exception handling (the relevancy trail is scoped so ends up traversing the trail if allocating the watch throws an exception). Fixes crash.smt in issue #56
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:20 +01:00
Nikolaj Bjorner 03034e7b33 disable bottom-up COI on rules with negated predicates. Fixes issue #140
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:19 +01:00
Nikolaj Bjorner cd05edf833 add model on unknown, to address issue #139
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:18 +01:00
Nikolaj Bjorner 3de2a70a48 move functionality from qe_util to ast_util
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:17 +01:00
Nikolaj Bjorner 7b918e83c3 fix distribute forall, fixes issue #138
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:16 +01:00
Nikolaj Bjorner 020620aadd disable qf-ufnra tactic from default for testing
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:16 +01:00
Nikolaj Bjorner 8df919b6bb fix mixed integer/real bugs for maximization exposed by non-termination in slow.smt. partially fixes issue #56
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:15 +01:00
Nikolaj Bjorner aa4b9e68d7 exposing facility to extract dependent clauses
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:14 +01:00
Nikolaj Bjorner 38113e8434 include statistics from sub-modules for QF_UFNRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:13 +01:00
Nikolaj Bjorner 238e38eaa2 update unit tests for num allocs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-24 17:06:12 +01:00