fix warnings when compiling without assertions
* spot/twa/acc.hh, spot/twaalgos/alternation.cc, spot/twaalgos/determinize.cc, spot/twaalgos/ndfs_result.hxx, spot/twaalgos/tau03.cc, spot/ltsmin/ltsmin.cc, tests/core/parity.cc: here
This commit is contained in:
parent
e886609269
commit
a9293f329e
7 changed files with 34 additions and 31 deletions
|
|
@ -234,7 +234,7 @@ namespace spot
|
|||
fixed_size_pool* p = static_cast<fixed_size_pool*>(ctx->pool);
|
||||
spins_state* out =
|
||||
new(p->allocate()) spins_state(ctx->state_size, p);
|
||||
assert(out != nullptr);
|
||||
SPOT_ASSUME(out != nullptr);
|
||||
memcpy(out->vars, dst, ctx->state_size * sizeof(int));
|
||||
out->compute_hash();
|
||||
ctx->transitions.emplace_back(out);
|
||||
|
|
@ -252,7 +252,7 @@ namespace spot
|
|||
- sizeof(spins_compressed_state::vars)
|
||||
+ sizeof(int) * csize);
|
||||
spins_compressed_state* out = new(mem) spins_compressed_state(csize, p);
|
||||
assert(out != nullptr);
|
||||
SPOT_ASSUME(out != nullptr);
|
||||
memcpy(out->vars, ctx->compressed, csize * sizeof(int));
|
||||
out->compute_hash();
|
||||
ctx->transitions.emplace_back(out);
|
||||
|
|
@ -713,7 +713,7 @@ namespace spot
|
|||
+ sizeof(int) * csize);
|
||||
spins_compressed_state* res = new(mem)
|
||||
spins_compressed_state(csize, p);
|
||||
assert(res != nullptr);
|
||||
SPOT_ASSUME(res != nullptr);
|
||||
memcpy(res->vars, compressed_, csize * sizeof(int));
|
||||
res->compute_hash();
|
||||
return res;
|
||||
|
|
@ -722,7 +722,7 @@ namespace spot
|
|||
{
|
||||
fixed_size_pool* p = const_cast<fixed_size_pool*>(&statepool_);
|
||||
spins_state* res = new(p->allocate()) spins_state(state_size_, p);
|
||||
assert(res != nullptr);
|
||||
SPOT_ASSUME(res != nullptr);
|
||||
d_->get_initial_state(res->vars);
|
||||
res->compute_hash();
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue