Commit 5d310940 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

dtgba_complement: take a tgba_digraph_ptr as input

* src/tgbaalgos/dtgbacomp.cc, src/tgbaalgos/dtgbacomp.hh: Here.
* src/tgbatest/ltl2tgba.cc: Adjust.
parent afc8773d
// -*- coding: utf-8 -*-
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
// de l'Epita.
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
// Développement de l'Epita.
//
// This file is part of Spot, a model checking library.
//
......@@ -22,7 +22,7 @@
namespace spot
{
tgba_digraph_ptr dtgba_complement_nonweak(const const_tgba_ptr& aut)
tgba_digraph_ptr dtgba_complement_nonweak(const const_tgba_digraph_ptr& aut)
{
// Clone the original automaton.
auto res = make_tgba_digraph(aut,
......@@ -110,7 +110,7 @@ namespace spot
return res;
}
tgba_digraph_ptr dtgba_complement_weak(const const_tgba_ptr& aut)
tgba_digraph_ptr dtgba_complement_weak(const const_tgba_digraph_ptr& aut)
{
// Clone the original automaton.
auto res = make_tgba_digraph(aut,
......@@ -158,7 +158,7 @@ namespace spot
return res;
}
tgba_digraph_ptr dtgba_complement(const const_tgba_ptr& aut)
tgba_digraph_ptr dtgba_complement(const const_tgba_digraph_ptr& aut)
{
if (aut->is_inherently_weak())
return dtgba_complement_weak(aut);
......
// -*- coding: utf-8 -*-
// Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
// Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et Développement
// de l'Epita.
//
// This file is part of Spot, a model checking library.
......@@ -32,7 +32,7 @@ namespace spot
/// which case the output will also be weak and deterministic) the
/// resulting automaton is very unlikely to be deterministic.
SPOT_API tgba_digraph_ptr
dtgba_complement(const const_tgba_ptr& aut);
dtgba_complement(const const_tgba_digraph_ptr& aut);
}
#endif // SPOT_TGBAALGOS_DTGBACOMP_HH
......@@ -1279,7 +1279,7 @@ checked_main(int argc, char** argv)
if (opt_dtgbacomp)
{
tm.start("DTGBA complement");
a = dtgba_complement(a);
a = dtgba_complement(ensure_digraph(a));
tm.stop("DTGBA complement");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment