From 7ded2a90e6271758804422f417138fb42292d993 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 19 Mar 2018 11:55:18 -0700 Subject: [PATCH] remove unreachable from vector Signed-off-by: Nikolaj Bjorner --- scripts/vsts.cmd | 15 +++++++++++++-- src/util/vector.h | 1 - 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/vsts.cmd b/scripts/vsts.cmd index 4f0b3a9b5..0257fd929 100644 --- a/scripts/vsts.cmd +++ b/scripts/vsts.cmd @@ -2,13 +2,24 @@ rem Build md build cd build 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 -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 test-z3.exe -a + cd .. rem Run regression tests rem git pull https://github.com/z3prover/z3test z3test diff --git a/src/util/vector.h b/src/util/vector.h index d2beacfb4..bdde50f83 100644 --- a/src/util/vector.h +++ b/src/util/vector.h @@ -73,7 +73,6 @@ class vector { SZ new_capacity = (3 * old_capacity + 1) >> 1; SZ new_capacity_T = sizeof(T) * new_capacity + sizeof(SZ) * 2; if (new_capacity <= old_capacity || new_capacity_T <= old_capacity_T) { - UNREACHABLE(); throw default_exception("Overflow encountered when expanding vector"); } SZ *mem, *old_mem = reinterpret_cast(m_data) - 2;