fix constness of twa::get_init_state() and twa_succ_iterator::dst()
Fixes #125. * src/kripke/kripkegraph.hh, src/ta/ta.cc, src/ta/ta.hh, src/ta/taexplicit.cc, src/ta/taexplicit.hh, src/ta/taproduct.cc, src/ta/taproduct.hh, src/ta/tgtaproduct.cc, src/ta/tgtaproduct.hh, src/taalgos/dot.cc, src/taalgos/emptinessta.cc, src/taalgos/emptinessta.hh, src/taalgos/minimize.cc, src/taalgos/reachiter.cc, src/taalgos/tgba2ta.cc, src/twa/twa.hh, src/twa/twagraph.hh, src/twa/twaproduct.cc, src/twa/twaproduct.hh, src/twaalgos/compsusp.cc, src/twaalgos/gtec/gtec.cc, src/twaalgos/ltl2tgba_fm.cc, src/twaalgos/reachiter.cc, src/twaalgos/stutter.cc: Adjust.
This commit is contained in:
parent
afbaa54d92
commit
06b176991e
24 changed files with 144 additions and 178 deletions
|
|
@ -178,7 +178,7 @@ namespace spot
|
|||
pair_queue todo;
|
||||
|
||||
state_pair p(left->get_init_state(), nullptr);
|
||||
state* ris = right->get_init_state();
|
||||
const state* ris = right->get_init_state();
|
||||
p.second = ris;
|
||||
unsigned i = res->new_state();
|
||||
seen[p] = i;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ namespace spot
|
|||
{
|
||||
inc_transitions();
|
||||
|
||||
state* s = i->dst();
|
||||
const state* s = i->dst();
|
||||
auto j = ecs_->h.find(s);
|
||||
assert(j != ecs_->h.end());
|
||||
s->destroy();
|
||||
|
|
@ -158,7 +158,7 @@ namespace spot
|
|||
|
||||
// Setup depth-first search from the initial state.
|
||||
{
|
||||
state* init = ecs_->aut->get_init_state();
|
||||
const state* init = ecs_->aut->get_init_state();
|
||||
ecs_->h[init] = 1;
|
||||
ecs_->root.push(1);
|
||||
arc.push(0U);
|
||||
|
|
|
|||
|
|
@ -1235,7 +1235,7 @@ namespace spot
|
|||
for (auto i: aut->succ(st))
|
||||
{
|
||||
bdd label = i->cond();
|
||||
state* s = i->dst();
|
||||
const state* s = i->dst();
|
||||
formula dest =
|
||||
namer->get_name(aut->state_number(s));
|
||||
|
||||
|
|
@ -1280,7 +1280,7 @@ namespace spot
|
|||
for (auto i: aut->succ(st))
|
||||
{
|
||||
bdd label = i->cond();
|
||||
state* s = i->dst();
|
||||
const state* s = i->dst();
|
||||
formula dest = namer->get_name(aut->state_number(s));
|
||||
|
||||
missing -= label;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ namespace spot
|
|||
{
|
||||
int n = 0;
|
||||
start();
|
||||
state* i = aut_->get_init_state();
|
||||
const state* i = aut_->get_init_state();
|
||||
if (want_state(i))
|
||||
add_state(i);
|
||||
seen[i] = ++n;
|
||||
|
|
@ -188,7 +188,7 @@ namespace spot
|
|||
{
|
||||
int n = 1;
|
||||
start();
|
||||
state* i = aut_->get_init_state();
|
||||
const state* i = aut_->get_init_state();
|
||||
if (want_state(i))
|
||||
push(i, n);
|
||||
seen[i] = n++;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ namespace spot
|
|||
class state_tgbasl: public state
|
||||
{
|
||||
public:
|
||||
state_tgbasl(state* s, bdd cond) : s_(s), cond_(cond)
|
||||
state_tgbasl(const state* s, bdd cond) : s_(s), cond_(cond)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ namespace spot
|
|||
return new state_tgbasl(*this);
|
||||
}
|
||||
|
||||
state*
|
||||
const state*
|
||||
real_state() const
|
||||
{
|
||||
return s_;
|
||||
|
|
@ -90,7 +90,7 @@ namespace spot
|
|||
}
|
||||
|
||||
private:
|
||||
state* s_;
|
||||
const state* s_;
|
||||
bdd cond_;
|
||||
};
|
||||
|
||||
|
|
@ -220,7 +220,7 @@ namespace spot
|
|||
get_dict()->unregister_all_my_variables(this);
|
||||
}
|
||||
|
||||
virtual state* get_init_state() const override
|
||||
virtual const state* get_init_state() const override
|
||||
{
|
||||
return new state_tgbasl(a_->get_init_state(), bddfalse);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue