mirror of
https://github.com/Z3Prover/z3
synced 2025-08-10 05:00:51 +00:00
ensure that assertions within the unit tests are exercised in all build modes, remove special handling of SASSERT for release mode #1163
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3f8b63f5a8
commit
b1298d7bde
67 changed files with 1277 additions and 1285 deletions
|
@ -25,7 +25,7 @@ static expr_ref parse_fml(ast_manager& m, char const* str) {
|
|||
<< "(assert " << str << ")\n";
|
||||
std::istringstream is(buffer.str());
|
||||
VERIFY(parse_smt2_commands(ctx, is));
|
||||
SASSERT(ctx.begin_assertions() != ctx.end_assertions());
|
||||
ENSURE(ctx.begin_assertions() != ctx.end_assertions());
|
||||
result = *ctx.begin_assertions();
|
||||
return result;
|
||||
}
|
||||
|
@ -125,8 +125,8 @@ private:
|
|||
else if (m_arith.is_numeral(f, r)) {
|
||||
factors[i] = factors.back();
|
||||
factors.pop_back();
|
||||
SASSERT(coefficient.is_zero());
|
||||
SASSERT(!r.is_zero());
|
||||
ENSURE(coefficient.is_zero());
|
||||
ENSURE(!r.is_zero());
|
||||
coefficient = r;
|
||||
--i; // repeat examining 'i'
|
||||
}
|
||||
|
@ -205,8 +205,8 @@ static void nf(expr_ref& term) {
|
|||
else if (arith.is_numeral(f, r)) {
|
||||
factors[i] = factors.back();
|
||||
factors.pop_back();
|
||||
SASSERT(coefficient.is_zero());
|
||||
SASSERT(!r.is_zero());
|
||||
ENSURE(coefficient.is_zero());
|
||||
ENSURE(!r.is_zero());
|
||||
coefficient = r;
|
||||
--i; // repeat examining 'i'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue