mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
remove unreachable from vector
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7a64c82d99
commit
7ded2a90e6
|
@ -2,13 +2,24 @@ rem Build
|
||||||
md build
|
md build
|
||||||
cd build
|
cd build
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
cmake -G "NMake Makefiles" ../
|
cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -DBUILD_PYTHON_BINDINGS=True -G "NMake Makefiles" ../
|
||||||
nmake
|
nmake
|
||||||
|
|
||||||
rem Run unit tests
|
rem test python bindings
|
||||||
|
pushd python
|
||||||
|
python z3test.py z3
|
||||||
|
python z3test.py z3num
|
||||||
|
popd
|
||||||
|
|
||||||
|
rem Build and run examples
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
rem Build and run unit tests
|
||||||
nmake test-z3
|
nmake test-z3
|
||||||
test-z3.exe -a
|
test-z3.exe -a
|
||||||
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rem Run regression tests
|
rem Run regression tests
|
||||||
rem git pull https://github.com/z3prover/z3test z3test
|
rem git pull https://github.com/z3prover/z3test z3test
|
||||||
|
|
|
@ -73,7 +73,6 @@ class vector {
|
||||||
SZ new_capacity = (3 * old_capacity + 1) >> 1;
|
SZ new_capacity = (3 * old_capacity + 1) >> 1;
|
||||||
SZ new_capacity_T = sizeof(T) * new_capacity + sizeof(SZ) * 2;
|
SZ new_capacity_T = sizeof(T) * new_capacity + sizeof(SZ) * 2;
|
||||||
if (new_capacity <= old_capacity || new_capacity_T <= old_capacity_T) {
|
if (new_capacity <= old_capacity || new_capacity_T <= old_capacity_T) {
|
||||||
UNREACHABLE();
|
|
||||||
throw default_exception("Overflow encountered when expanding vector");
|
throw default_exception("Overflow encountered when expanding vector");
|
||||||
}
|
}
|
||||||
SZ *mem, *old_mem = reinterpret_cast<SZ*>(m_data) - 2;
|
SZ *mem, *old_mem = reinterpret_cast<SZ*>(m_data) - 2;
|
||||||
|
|
Loading…
Reference in a new issue