projrun: modernize
* src/tgbaalgos/emptiness.hh (step): Add constructors... * src/tgbaalgos/projrun.cc: ... to simplify this.
This commit is contained in:
parent
94577d6519
commit
3a70b57067
2 changed files with 20 additions and 19 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
// -*- coding: utf-8 -*-
|
// -*- coding: utf-8 -*-
|
||||||
// Copyright (C) 2011, 2013, 2014 Laboratoire de Recherche et
|
// Copyright (C) 2011, 2013, 2014, 2015 Laboratoire de Recherche et
|
||||||
// Developpement de l'Epita (LRDE).
|
// Developpement de l'Epita (LRDE).
|
||||||
// Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
|
// Copyright (C) 2004, 2005 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||||
|
|
@ -270,6 +270,14 @@ namespace spot
|
||||||
const state* s;
|
const state* s;
|
||||||
bdd label;
|
bdd label;
|
||||||
acc_cond::mark_t acc;
|
acc_cond::mark_t acc;
|
||||||
|
|
||||||
|
step(const state* s, bdd label, acc_cond::mark_t acc)
|
||||||
|
: s(s), label(label), acc(acc)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
step()
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::list<step> steps;
|
typedef std::list<step> steps;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
// Copyright (C) 2004, 2014 Laboratoire d'Informatique de Paris 6 (LIP6),
|
// -*- coding: utf-8 -*-
|
||||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
// Copyright (C) 2014, 2015 Laboratoire de Recherche et Développement
|
||||||
|
// de l'Epita (LRDE)
|
||||||
|
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||||
|
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||||
// et Marie Curie.
|
// et Marie Curie.
|
||||||
//
|
//
|
||||||
// This file is part of Spot, a model checking library.
|
// This file is part of Spot, a model checking library.
|
||||||
|
|
@ -30,22 +33,12 @@ namespace spot
|
||||||
const const_tgba_run_ptr& run)
|
const const_tgba_run_ptr& run)
|
||||||
{
|
{
|
||||||
auto res = std::make_shared<tgba_run>();
|
auto res = std::make_shared<tgba_run>();
|
||||||
for (tgba_run::steps::const_iterator i = run->prefix.begin();
|
for (auto& i: run->prefix)
|
||||||
i != run->prefix.end(); ++i)
|
res->prefix.emplace_back(a_run->project_state(i.s, a_proj),
|
||||||
{
|
i.label, i.acc);
|
||||||
tgba_run::step s = { a_run->project_state(i->s, a_proj),
|
for (auto& i: run->cycle)
|
||||||
i->label,
|
res->prefix.emplace_back(a_run->project_state(i.s, a_proj),
|
||||||
i->acc };
|
i.label, i.acc);
|
||||||
res->prefix.push_back(s);
|
|
||||||
}
|
|
||||||
for (tgba_run::steps::const_iterator i = run->cycle.begin();
|
|
||||||
i != run->cycle.end(); ++i)
|
|
||||||
{
|
|
||||||
tgba_run::step s = { a_run->project_state(i->s, a_proj),
|
|
||||||
i->label,
|
|
||||||
i->acc };
|
|
||||||
res->cycle.push_back(s);
|
|
||||||
}
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue