remove the incorrect project_twa_run()
It was bogus, and is better replaced by twa_run::project(). * NEWS, doc/org/upgrade2.org: Mention the removal. * spot/twaalgos/projrun.cc, spot/twaalgos/projrun.hh: Remove the files. * spot/twaalgos/Makefile.am: Adjust.
This commit is contained in:
parent
b13caea3d8
commit
d1aca565b5
5 changed files with 5 additions and 95 deletions
|
|
@ -59,7 +59,6 @@ twaalgos_HEADERS = \
|
|||
postproc.hh \
|
||||
powerset.hh \
|
||||
product.hh \
|
||||
projrun.hh \
|
||||
randomgraph.hh \
|
||||
randomize.hh \
|
||||
reachiter.hh \
|
||||
|
|
@ -115,7 +114,6 @@ libtwaalgos_la_SOURCES = \
|
|||
postproc.cc \
|
||||
powerset.cc \
|
||||
product.cc \
|
||||
projrun.cc \
|
||||
randomgraph.cc \
|
||||
randomize.cc \
|
||||
reachiter.cc \
|
||||
|
|
|
|||
|
|
@ -1,44 +0,0 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// 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.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
// Spot is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
// License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <spot/twaalgos/projrun.hh>
|
||||
#include <spot/twa/twa.hh>
|
||||
#include <spot/twaalgos/emptiness.hh>
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
||||
twa_run_ptr
|
||||
project_twa_run(const const_twa_ptr& a_run,
|
||||
const const_twa_ptr& a_proj,
|
||||
const const_twa_run_ptr& run)
|
||||
{
|
||||
auto res = std::make_shared<twa_run>(a_proj);
|
||||
for (auto& i: run->prefix)
|
||||
res->prefix.emplace_back(a_run->project_state(i.s, a_proj),
|
||||
i.label, i.acc);
|
||||
for (auto& i: run->cycle)
|
||||
res->prefix.emplace_back(a_run->project_state(i.s, a_proj),
|
||||
i.label, i.acc);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Developpement
|
||||
// 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.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
// Spot is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
// License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spot/misc/common.hh>
|
||||
#include <iosfwd>
|
||||
#include <spot/twa/fwd.hh>
|
||||
#include <spot/twaalgos/emptiness.hh>
|
||||
|
||||
namespace spot
|
||||
{
|
||||
struct twa_run;
|
||||
|
||||
/// \ingroup twa_run
|
||||
/// \brief Project a twa_run on a tgba.
|
||||
///
|
||||
/// If a twa_run has been generated on a product, or any other
|
||||
/// on-the-fly algorithm with tgba operands,
|
||||
///
|
||||
/// \param run the run to replay
|
||||
/// \param a_run the automata on which the run was generated
|
||||
/// \param a_proj the automata on which to project the run
|
||||
/// \return true iff the run could be completed
|
||||
SPOT_API twa_run_ptr
|
||||
project_twa_run(const const_twa_ptr& a_run,
|
||||
const const_twa_ptr& a_proj,
|
||||
const const_twa_run_ptr& run);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue