Nuno Lopes
4b0f2cae0d
fix compiler warning in scoped_timer.cpp on linux
...
2 secs in nanosec representation still fit in 31 bits, so no need for ULL
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-12-08 17:03:18 +00:00
Nikolaj Bjorner
485ac9c39d
add macro for converting std::vectors to pointers (leaking abstraction)
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-01 16:35:03 -08:00
Nuno Lopes
2739930900
fix build with clang
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-27 12:13:44 +00:00
Nuno Lopes
d9bafc3fba
rewrite scoped_timer for linux
...
The previous version was racy and could lead to crashes.
The timer could be deleted before the callback was called, making it execute on already freed memory
This new version is similar to Mac's. It spawns its own thread and uses pthread_cond_wait.
Care is taken for small timeouts to avoid races in the thread creation and timer destruction.
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-11-22 11:40:52 +00:00
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
Nikolaj Bjorner
fc592fc856
fix for #291 . The root issue is that the set of antecedents is recycled as a fixed object between routines. Antecedents that were already allocated for a Gomory cut got reset by the internalizer. This causes unsound bounds axioms to be created
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-11-05 15:08:42 -08:00
Nikolaj Bjorner
ac3edbbaaa
add line/position information to unsupported command reports per zeph pull request
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-10-30 19:23:31 -07: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
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
b60f30c802
Merge pull request #236 from wintersteiger/i68
...
Fixes for issue #68
2015-10-07 20:56:35 +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
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
Christoph M. Wintersteiger
f11502e0ac
reinterpret_cast fixes for the Windows compiler.
2015-10-04 16:41:28 +01:00
Christoph M. Wintersteiger
4626196907
Eliminated reinterpret_casts. Partially fixes #24 , #229 .
2015-10-04 15:52:20 +01: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
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
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
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
f3441c6a9b
tabs and indentation
2015-09-17 13:25:22 +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
79d69cd5f0
Added FP to_ieee_bv to fpa_rewriter to enable model evaluation.
2015-09-16 12:57:05 +01:00
Christoph M. Wintersteiger
d6e2fa6a60
Bugfix for MPF fma.
2015-09-14 14:07:11 +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
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
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
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
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
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
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
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
158a5dd2db
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-24 17:06:12 +01:00
Christoph M. Wintersteiger
9a62d989e6
Revert "Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable"
...
This reverts commit d3db21ccde
, reversing
changes made to e463d5d899
.
2015-06-24 17:06:04 +01:00
Christoph M. Wintersteiger
3a49223076
Merge branch 'unstable' of https://github.com/wintersteiger/z3 into unstable
2015-06-14 19:00:09 -07:00
Christoph M. Wintersteiger
0caf3bd18c
Bugfix for mpf.is_regular
2015-06-14 18:59:46 -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
Nuno Lopes
6217804ed5
fix another UB in bit_vector
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-06-07 12:07:24 +01:00
Christoph M. Wintersteiger
49a4df0de1
MPF min/max -+0.0 special cases changed to +0.0 instead of second argument.
...
Another piece of fix #68
2015-05-28 12:54:57 +01:00
Christoph M. Wintersteiger
f1cc1842e1
Merge branch 'unstable' of https://github.com/Z3Prover/z3 into unstable
2015-05-23 13:25:00 +01:00
Christoph M. Wintersteiger
98f33c3f8b
Bug/build fix for hwf::fma
2015-05-23 13:10:07 +01:00
Nuno Lopes
08b5635327
fix unaligned load in hash_string()
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-23 12:13:39 +01:00
Christoph M. Wintersteiger
d5c39798ea
Bugfix for hwf
2015-05-23 12:02:53 +01:00
Nuno Lopes
c577ab361b
fix assorted undefined behaviors caught by clang
...
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-05-23 11:45:12 +01:00
Christoph M. Wintersteiger
6f6cd61817
Bugfix for float-to-float conversion.
...
Fixes #77
2015-05-22 20:30:12 +01:00
Christoph M. Wintersteiger
891073d3fe
typo
2015-05-22 12:01:10 +01:00