3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00
Commit graph

1014 commits

Author SHA1 Message Date
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
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
Christoph M. Wintersteiger 5e37cf9bbf Removed potentially unnecessary string decoding in Python API. 2015-11-23 18:41:31 +00: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 1d4b996765 merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-18 16:39:51 -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
Yan 4e9b76365d pass the correct context into And() when doing Tactic.as_expr() 2015-11-16 15:41:12 -08:00
Christoph M. Wintersteiger e8d37dba9c Added comments for quantifier constructors. Fixes #319. 2015-11-16 21:58:17 +01:00
Christoph M. Wintersteiger 706a037bf4 Python 3.x string decoding fix 2015-11-16 15:16:50 +01:00
Nikolaj Bjorner ab4033133f remove solver_old
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 18:46:49 -08:00
Nikolaj Bjorner bea68cd194 remove deprecated API functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 17:05:15 -08:00
Nikolaj Bjorner 0f602d652a remove deprecated API functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-14 13:47:41 -08:00
Christoph M. Wintersteiger 15c48eeaf9 Fix for timeout/rlimit in deprecated solver API.
Partially fixes #307.
2015-11-13 16:42:46 +00:00
Christoph M. Wintersteiger 954400cfa2 whitespace 2015-11-13 16:35:08 +00:00
Nikolaj Bjorner 84f935ae85 initialize solver prior to translate. fixes build break
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-09 06:38:06 -08:00
Christoph M. Wintersteiger 689ed9fa12 Added Z3_mk_array_ext to ML API.
Relates to #292
2015-11-09 13:49:37 +00:00
Christoph M. Wintersteiger cffff18373 -whitespace 2015-11-09 13:22:33 +00:00
Christoph M. Wintersteiger 6625f7a749 Added Z3_solver_translate to ML API. 2015-11-09 13:19:10 +00:00
Nikolaj Bjorner e9315af0d9 remove tabs from z3.py to fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-08 04:22:44 -08:00
Nikolaj Bjorner 4685a5f8ba add array-ext to externally exposed functions to enable interpolants with arrays to be usable in feedback loops with Z3. Addresses one issue raised in #292
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-07 16:42:13 -08:00
Nikolaj Bjorner 13b19eb351 add translate facility to Java/C# APIs, request #209
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-07 10:10:21 -08:00
Nikolaj Bjorner b4cb51cdb3 working on Forking/Serializing a z3 Solver #209
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-06 17:29:24 -08:00
Nikolaj Bjorner 63ea2c4d8f Merge pull request #295 from pazz/AstRef-hash
add __hash__ to AstRef
2015-11-05 16:20:10 -08:00
Patrick Totzke d4242e16c5 add __hash__ to AstRef
AstRef objects needs to be hashable in order
to be used as keys in python dictionaries
2015-11-05 16:28:02 +00:00
Christoph M. Wintersteiger 715050da0b Java API comments fix. 2015-11-04 13:34:50 +00:00
Nikolaj Bjorner b75780ce2b Merge pull request #280 from NikolajBjorner/master
Add PB operators to Python API
2015-10-30 14:15:24 -07:00
Nikolaj Bjorner d83f8d08f3 Merge pull request #276 from kenmcmil/issue260
issue #260 -- support timeout in Z3_compute_interpolant
2015-10-28 20:30:15 -07:00
Ken McMillan d4dff70f39 issue #260 -- support timeout in Z3_compute_interpolant 2015-10-28 18:02:14 -07:00
Nikolaj Bjorner 559f373588 adding PB operators to Python API. remove tabs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 17:13:24 -07:00
Nikolaj Bjorner 7f5495b134 adding PB operators to Python API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 17:09:42 -07:00
Christoph M. Wintersteiger 6a5da9e9c4 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-28 23:32:42 +00:00
Christoph M. Wintersteiger 118d597c22 removed byte order mark 2015-10-28 23:31:08 +00:00
Nikolaj Bjorner aab63dc126 Merge branch 'master' of https://github.com/Z3Prover/z3 2015-10-28 16:10:34 -07:00
Nikolaj Bjorner 3bc94e08b3 move friend definitions to inlined functions. Issue #241
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-28 13:24:13 -07:00
Christoph M. Wintersteiger cab42d2c66 Clarified documentation of par-or tactic.
Relates to #269.
2015-10-28 18:50:22 +00:00
Christoph M. Wintersteiger 15be8d424c Fixed Python 3.x issues. 2015-10-28 14:19:23 +00:00
Christoph M. Wintersteiger 97d97f4694 Fixed Python 3.x doctest problems 2015-10-27 16:39:07 +00:00
Christoph M. Wintersteiger 7324ef7c39 Fixed FP function names in Python API.
Fixes #264
2015-10-27 12:02:38 +00:00
Christoph M. Wintersteiger df1c84c182 fixed indentation (Python 3.x problem) 2015-10-26 16:08:55 +00:00
Paul Phillips 64a5247813 Changed references to help-tactics to help-tactic. 2015-10-25 11:45:46 -07:00
Christoph M. Wintersteiger e2f2708a9c Fixed array default operator 2015-10-19 21:12:43 +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 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 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
Christoph M. Wintersteiger ceb562a889 Merge branch 'pure' of https://github.com/Z3Prover/z3 2015-10-04 16:05:25 +01: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
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 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
Christoph M. Wintersteiger 79d69cd5f0 Added FP to_ieee_bv to fpa_rewriter to enable model evaluation. 2015-09-16 12:57:05 +01:00
Guang Chen cef7ec2157 fix implies(expr const &, expr const &) in z3++.h 2015-09-13 13:29:06 +08: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
Christoph M. Wintersteiger 9ad065a538 Bugfixes for the optimization module in the ML API 2015-08-15 23:51:43 +01: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 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
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
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 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
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
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
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
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
Nikolaj Bjorner ed806b67fb update unit tests for num allocs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-22 13:20:59 +02:00
Nikolaj Bjorner 564da787fb add count of memory allocations and way to limit allocations globally. Fix purification in nlsat_smt to fix regressions on QF_UFNRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-22 07:45:40 +02:00
Nikolaj Bjorner 3af545784b add missing copyright
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-17 12:48:16 -07:00
Nikolaj Bjorner 1657cdd8b4 add missing copyright
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-17 12:47:19 -07:00
Christoph M. Wintersteiger d3df473279 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-06-11 12:53:31 +01:00
Christoph M. Wintersteiger 5bd55420a4 C API parameter annotation fix 2015-06-11 12:53:22 +01:00
Nikolaj Bjorner d469a16bb8 add more Copyright notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-10 11:59:21 -07:00
Nikolaj Bjorner b08ccc7816 added missing Copyright forms
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-06-10 11:54:02 -07:00
Christoph M. Wintersteiger 004bf1471f Added conversion function for Goal to Expr conversion in .NET, Java, ML 2015-06-10 13:17:34 +01:00
Christoph M. Wintersteiger 98f2de3216 Added Z3_fpa_get_numeral_significand_uint64 to .NET, Java, and ML APIs. 2015-06-09 12:57:19 +01:00
Christoph M. Wintersteiger da3243fb07 FPA API bugfix 2015-06-09 12:29:05 +01:00
Christoph M. Wintersteiger eb3d499888 documentation fix 2015-06-09 12:28:52 +01:00
Christoph M. Wintersteiger d39969f0a0 Added extraction of uint64 significand bits from FP numerals. 2015-06-09 12:28:23 +01:00
Christoph M. Wintersteiger 624cc8a874 Bugfixes for FPA API. Thanks to Christian Dernehl for reporting these. 2015-06-09 11:53:43 +01:00
Nuno Lopes 0997d0d2b5 add new C API function: Z3_finalize_memory()
Useful to debug memory leaks in Z3 and in client applications

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-07 14:55:15 +01:00
Christoph M. Wintersteiger c7fd74e8ad Fixed FPA Python doctest 2015-06-02 12:45:55 +01:00
Christoph M. Wintersteiger d6398c4fdc Fixed FPA Python doctest 2015-06-02 11:59:55 +01:00
Nikolaj Bjorner 894d6cb11b fix build break to support new statistics items
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-29 13:38:54 -07:00
Nikolaj Bjorner ed7e0e11a8 n/a
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-28 20:55:13 -07:00
Nikolaj Bjorner 23a6138d81 initialize potentially unused variables. Fixes issue #112
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-28 14:55:37 -07:00
Nikolaj Bjorner 562ed61a24 add shorthands for creating uninterpreted sorts to context API
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:30:37 -07:00
Nikolaj Bjorner e483efd3f4 fixes to Euclidean solver, fixes #100
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:21:20 -07:00
Nikolaj Bjorner cb00555635 local changes
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-27 09:18:52 -07:00
Christoph M. Wintersteiger 91352369a9 Added conversion functions to ASTVectors in .NET and Java.
Fixes #108
2015-05-26 11:20:19 +01:00
John Grosen 64b46f2310 Fix the Python FPRef.__lt__ implementation 2015-05-25 00:31:04 -07:00
Christoph M. Wintersteiger d8f6d84217 Updates for the .NET, Java, and ML APIs for recently changed fixedpoint and interpolation functionality.
Fixes #103
2015-05-23 16:53:47 +01:00
Christoph M. Wintersteiger e33ff42766 Updates for the .NET, Java, and ML APIs for recently changed fixedpoint and interpolation functionality.
Fixes #103
2015-05-23 16:49:41 +01:00
Christoph M. Wintersteiger a361e4dcef typo 2015-05-23 16:40:43 +01:00
Nikolaj Bjorner 279ef05713 expose BoolExpr[] for ASTVector and merge common functionality
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-22 08:57:05 -07:00
Nikolaj Bjorner b4f72c8145 Revert "Change ASTVector to Expr[] in interpolation result" 2015-05-22 08:24:45 -07:00
Marcus Völker a229416a2b Change ASTVector to Expr[] in interpolation result 2015-05-22 15:55:09 +02:00
Nikolaj Bjorner 15e1c84592 update docuemntation for codeplex question 29927489/z3-proofs-are-hypothesis-and-lemma-rules-always-cleanly-nested
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-05-19 08:38:07 -07:00
Nuno Lopes 227c8870d6 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-05-19 13:48:59 +01:00
Nuno Lopes 8ff7735a20 python 3 fixes
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-19 13:47:43 +01:00
Christoph M. Wintersteiger a41a9c94dd Formatting 2015-05-19 12:43:25 +01:00
Christoph M. Wintersteiger f0b699f03a Added Optimize.cs to to Microsoft.Z3.csproj 2015-05-19 12:41:51 +01:00
Christoph M. Wintersteiger 7232877d92 tabs, indentation 2015-05-19 11:01:27 +01:00
Christoph M. Wintersteiger 32fb679066 tabs 2015-05-19 11:01:15 +01:00
Christoph M. Wintersteiger 1702a55018 Introduced return value classes for interpolation functions.
Fixes #82.
2015-05-15 13:50:55 +01:00
Nuno Lopes 1dc17db56a Fix concat() in c++ api
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-15 09:01:56 +01:00
Nikolaj Bjorner ab5022888c Merge branch 'opt' of https://github.com/Z3Prover/z3 into unstable 2015-05-14 12:11:17 +01:00
Nikolaj Bjorner 4a9d97bd02 add concat to z3++, codeplex request
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-08 21:29:48 -07:00
Nikolaj Bjorner 901d8a9f5b change exception test to take into account new coercion operation
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-08 00:38:26 -07:00
Nikolaj Bjorner ad39811dc0 allow coercion from Boolean to Int/Real, fixes #78
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:36:37 -07:00
Nikolaj Bjorner dc52ebd312 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-05-07 21:33:51 -07:00
Nikolaj Bjorner 45eda4bee7 allow coercion from Boolean to Int/Real, fixes #78
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:33:36 -07:00
Nikolaj Bjorner 99861ffc32 allow coercion from Boolean to Integers and reals
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-05-07 21:32:02 -07:00
Christoph M. Wintersteiger 7c36846d39 Fixed import problems in z3util.py.
Fixes #67
2015-05-04 14:09:38 +01:00
Nikolaj Bjorner 9377779e58 merge with unstable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-04-30 10:40:03 -07:00
Christoph M. Wintersteiger 1d49f61b9a Merge branch 'unstable' of https://github.com/Z3Prover/z3 into contrib
Conflicts:
	README
	src/api/ml/build-lib.sh
	src/api/ml/z3.ml
	src/api/ml/z3.mli
	src/api/ml/z3_stubs.c
2015-04-28 15:19:08 +01:00
Christoph M. Wintersteiger 8c3fc574d1 comments fix 2015-04-24 15:37:45 +01:00
Christoph M. Wintersteiger 7e6ab736c0 Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable 2015-04-17 16:10:13 +01:00
Christoph M. Wintersteiger f1a1267d4c Added missing notes on fpToIEEEBV in Python. 2015-04-17 16:08:53 +01:00
Ken McMillan af444beb2e re-indenting interp and duality 2015-04-15 12:22:50 -07:00
Christoph M. Wintersteiger e1303e1eab Python API: Fixed expression types for floating point conversion functions.
Partially fixes #39
2015-04-15 12:07:53 +01:00
Christoph M. Wintersteiger 2948e47240 Java API doc fix 2015-04-13 17:43:29 +01:00
Nikolaj Bjorner 3ba2e712b2 merge with unstable branch
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-04-12 15:54:52 -07:00
Christoph M. Wintersteiger b7bb53406f Turned Z3Exception into a RuntimeException such that throws declarations are not needed anymore. Thanks to codeplex user steimann for this suggestion. 2015-04-08 13:16:32 +01:00
Christoph M. Wintersteiger 2f4c923216 Bugfix; InterpolationContext deleted Z3_config objects (inconsistent with non-Interpolation mk_context).
Fixes #25
2015-04-08 13:09:27 +01:00
Daniel J. Hofmann 4e59ba922b Wc++11-extensions 2015-04-03 19:13:52 +02:00
Christoph M. Wintersteiger b47851d7da Made GetInterpolant and ComputeInterpolant public in Java and .NET.
Fixes Codeplex discussion #616450
2015-04-02 16:51:30 +01:00
Nikolaj Bjorner 52619b9dbb pull unstable
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-04-01 14:57:11 -07:00
Christoph M. Wintersteiger 1d9c9bcf7a Made the InterpolationContext public.
Fixes #20
2015-03-31 19:51:42 +02:00
Ivo Wever d4ba3a8864 Corrected typo: interger -> integer 2015-03-28 23:08:46 +01:00
Nikolaj Bjorner 39892aae10 cache datatype util in context to avoid performance bug, codeplex issue 195
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-03-25 11:46:17 -07:00
Nikolaj Bjorner 3c5897eea0 Merge branch 'unstable' of https://git01.codeplex.com/z3 into unstable 2015-03-25 11:25:12 -07:00
Nikolaj Bjorner 2aa91eee70 cache datatype util in context to avoid performance bug, codeplex issue 195
Signed-off-by: Nikolaj Bjorner <nbjorner@hotmail.com>
2015-03-25 11:24:47 -07:00
Christoph M. Wintersteiger a792790882 Fixed performance problems with enumeration sorts (Codeplex #190). 2015-03-25 18:08:56 +00:00
Christoph M. Wintersteiger 1c77ad00c3 Added accessors to enumeration sorts. Thanks to codeplex user steimann for suggesting this.
(http://z3.codeplex.com/workitem/195)

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-03-24 21:42:05 +00:00
nikolajbjorner 3ca3c948cf add bit-vector extract shortcuts to C++ API
Signed-off-by: nikolajbjorner <nbjorner@microsoft.com>
2015-02-27 11:08:49 -08:00
Nuno Lopes a106b4125a move definition of Z3_API to the right file
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
2015-02-22 11:57:40 +00:00
Nuno Lopes 1e30fd2c65 Hide non-exported symbols when compiling with gcc/clang.
I get a 17% reduction in the size of libz3.so on linux 32 bits, plus a 0.5-1% speedup when using the API.

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
2015-02-22 11:38:46 +00:00
nikolajbjorner aa40316268 rewrite terminology for policheck
Signed-off-by: nikolajbjorner <nbjorner@microsoft.com>
2015-02-19 19:09:12 -08:00
Nikolaj Bjorner 8141dadc89 break on small cores
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-02-08 10:22:06 +01:00
Christoph M. Wintersteiger b96551a1a2 .NET/Java/ML: Moved toggle_warning_messages to Global, added en/disable_trace.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-02-07 14:17:39 +00:00
Christoph M. Wintersteiger 4bed5183f8 Made DRQ objects public in Java and .NET APIs.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-30 21:58:43 -06:00
Christoph M. Wintersteiger d7a62baef4 Improved memory use of the Java API. Thanks to Joerg Pfaehler for reporting this issue!
+ formatting

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-30 21:10:22 -06:00
Christoph M. Wintersteiger 3b78509d0a Improved memory use of the .NET API
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-30 20:45:16 -06:00
unknown f020b7c7b8 Merge branch 'opt' of https://git01.codeplex.com/z3 into opt 2015-01-28 17:54:26 -08:00
Christoph M. Wintersteiger b92bdaeebe ML API readme fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 18:51:47 +00:00
Christoph M. Wintersteiger 2f3ea1f39d removed legacy ML API
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 18:48:51 +00:00
Christoph M. Wintersteiger 5c7d0380d3 Fixes in the OCaml FPA API and example 2015-01-24 18:29:52 +00:00
Christoph M. Wintersteiger 1c9051016a Merge branch 'unstable' of https://git01.codeplex.com/z3 into ml-ng
Conflicts:
	scripts/mk_util.py
2015-01-24 18:29:03 +00:00
Christoph M. Wintersteiger 9cb50c9f28 FPA API bugfixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 17:33:26 +00:00
Christoph M. Wintersteiger 5f527fa562 documentation fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-24 15:54:32 +00:00
Christoph M. Wintersteiger 65ccc9a8ea added FPA ML API
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-23 19:36:47 +00:00
Christoph M. Wintersteiger 145e025959 FPA API naming consistency
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-23 18:14:49 +00:00
Christoph M. Wintersteiger 89bfbd38c8 Merge branch 'unstable' of https://git01.codeplex.com/z3 into ml-ng 2015-01-23 17:11:57 +00:00
Christoph M. Wintersteiger 06051989be FPA API: Naming consistency
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-23 17:11:12 +00:00
Christoph M. Wintersteiger 3bf3de17e9 Merge branch 'unstable' of https://git01.codeplex.com/z3 into ml-ng 2015-01-23 17:04:18 +00:00
Christoph M. Wintersteiger 3d91510565 FPA API: naming consistency fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-23 17:03:56 +00:00
Christoph M. Wintersteiger 724e04174e Merge branch 'unstable' of https://git01.codeplex.com/z3 into ml-ng 2015-01-23 15:32:01 +00:00
Christoph M. Wintersteiger 8cd69acaca build fix 2015-01-23 11:34:08 +00:00
Christoph M. Wintersteiger ffd10675f4 Merge branch 'unstable' of https://git01.codeplex.com/z3 into ml-ng 2015-01-23 11:07:48 +00:00
Christoph M. Wintersteiger 0c2e2d78dd renamed function to avoid compilation issues
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-22 18:52:28 +00:00
Christoph M. Wintersteiger 034e4f469e Fixed memory leak 2015-01-22 18:43:23 +00:00
Christoph M. Wintersteiger c3ff342bea Bugfixes for the Python FPA API
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-22 18:31:30 +00:00
Christoph M. Wintersteiger 0ab54b9e0c bugfix for FPA numerals
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-21 19:43:26 +00:00
Christoph M. Wintersteiger 826d295981 build fixes and removed unused variables 2015-01-21 19:29:31 +00:00
Christoph M. Wintersteiger 84ed1c19a0 Bugfixes for the Java FPA API
Merge branch 'unstable' of https://git01.codeplex.com/z3 into unstable

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-21 19:20:43 +00:00
Christoph M. Wintersteiger bf28eb32c6 Merge branch 'fpa-api' of https://git01.codeplex.com/z3 into unstable 2015-01-21 19:09:48 +00:00
Christoph M. Wintersteiger b6a7d60043 Added FPA functions to Java API
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-21 19:09:22 +00:00
Christoph M. Wintersteiger 2cb84280d8 Final adjustments for the FP integration
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-21 17:58:31 +00:00
Christoph M. Wintersteiger 079204d1aa FPA Python API cosmetics
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-21 14:22:47 +00:00
Jens Steinhauser 7317ceb2c9 Use python3 compatible syntax.
Tuple parameter unpacking was removed from python3, see PEP 3113.
2015-01-21 01:28:22 +01:00
Jens Steinhauser e5b6b6d1d3 Replace tabs with spaces in python files. 2015-01-21 00:58:03 +01:00
Christoph M. Wintersteiger e754aa1c11 Minor adjustments after rebasing ml-ng onto unstable.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:17:58 +00:00
Christoph M. Wintersteiger 011b700c20 ML API: build fix 2015-01-19 17:17:13 +00:00
Christoph M. Wintersteiger 93a20d9074 ML API: build fixes 2015-01-19 17:17:10 +00:00
Christoph M. Wintersteiger 42f12ed752 ML API: added interpolation, bugfixes.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:16:37 +00:00
Christoph M. Wintersteiger 94a8c271d4 ML API bugfix for datatype module (Issue #120). Thanks to user Elarnon for reporting this!
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:14:05 +00:00
Christoph M. Wintersteiger 7ec8c81c33 ML API fix for datatype construction (Issue #121). Thanks to Elarnon for reporting this one!
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:14:03 +00:00
Christoph M. Wintersteiger a8f703e034 ML API bugfix. Thanks to Martin Neuhaeusser for reporting this one!
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:14:02 +00:00
Christoph M. Wintersteiger 5e2a7e06fd ML API: added constructors for ast_map and ast_vector
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:14:01 +00:00
Christoph M. Wintersteiger 9160925c28 ML API: added Expr.equal and Expr.compare
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:14:00 +00:00
Christoph M. Wintersteiger a73a66b79c ML API bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:13:59 +00:00
Christoph M. Wintersteiger e7345f5ea8 ML API bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:13:58 +00:00
Christoph M. Wintersteiger 83690a8fe3 ML API doc fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:13:57 +00:00
Christoph M. Wintersteiger cc40105919 ML API doc fix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:13:55 +00:00
Christoph M. Wintersteiger 409a40a562 ML API: Added get_bit_int and get_ratio
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:13:51 +00:00
Christoph M. Wintersteiger 3d9ad51aae ML API refactoring
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:11:18 +00:00
Christoph M. Wintersteiger eb72afabfb ML API or' is deprecated, changed to ||'
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:11:15 +00:00
Christoph M. Wintersteiger 9dc8021995 Added facilities for ocamlfind in the ML API build
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:11:15 +00:00
Christoph M. Wintersteiger ee22d40542 ML API bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:40 +00:00
Christoph M. Wintersteiger 54b7f8eec3 ML API bugfix (Codeplex issue 102)
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:39 +00:00
Christoph M. Wintersteiger 983a0fb16f ML bindings: list/array are now called z3array/z3list to avoid confusion.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:35 +00:00
Christoph M. Wintersteiger 544a74f034 ML API: bug and build fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:34 +00:00
Christoph M. Wintersteiger e40b69d97f ML API: removing rich layer for now.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:32 +00:00
Christoph M. Wintersteiger b81bae76b2 ML API: refactoring
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:32 +00:00
Christoph M. Wintersteiger aaa835484f Updates to ML API.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:09:31 +00:00
Christoph M. Wintersteiger c1e29dabe7 ML API: renamed assert_ to add
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:15 +00:00
Christoph M. Wintersteiger eea13a087f ML API savegame
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:14 +00:00
Christoph M. Wintersteiger d293b579f3 ML API: flat & rich layer in place.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:13 +00:00
Christoph M. Wintersteiger 79d0c32c91 ML API: replaced arrays with lists.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:12 +00:00
Christoph M. Wintersteiger 303b4e6735 ML API savepoint
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:11 +00:00
Christoph M. Wintersteiger dc03e2903f ML API: proper use of datatype API for list/enum/constructor.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:10 +00:00
Christoph M. Wintersteiger 6842acbea8 ML API: Cleanup
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:10 +00:00
Christoph M. Wintersteiger dcdcd7b140 ML API: Build system and error handling fixes.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:09 +00:00
Christoph M. Wintersteiger 9142901efe ML API: bugfixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:08 +00:00
Christoph M. Wintersteiger fd78e45a2a ML API: got rid of "extra" objects on types.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:07 +00:00
Christoph M. Wintersteiger 4e8d05dcf6 ML API: formatting.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:08:07 +00:00
Christoph M. Wintersteiger 7ec027dadb ML API: basic structure and interface
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:07:52 +00:00
Christoph M. Wintersteiger 7eedf15561 ML API: documentation fixes.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:50 +00:00
Christoph M. Wintersteiger 9845c8ee26 ML API: No more objects; type hierarchy exposed; clean separation into modules.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:49 +00:00
Christoph M. Wintersteiger 12afbfe6db Checkpoint.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:48 +00:00
Christoph M. Wintersteiger 313ccfbe8d Checkpoint.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:47 +00:00
Christoph M. Wintersteiger 3a0af6d15f ML API: Added Solver.assert_and_track
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:23 +00:00
Christoph M. Wintersteiger b895d4c826 ML API: added functions for global parameter management.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:22 +00:00
Christoph M. Wintersteiger 8d1413bcc8 ML API: Symbols are now normal types with visible hierarchy.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:19 +00:00
Christoph M. Wintersteiger 1b3e1d1a6c ML API: moved more objects into normal types.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:19 +00:00
Christoph M. Wintersteiger 3347d7ca8c ML API: moved more objects into normal types.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
2015-01-19 17:06:18 +00:00