diff --git a/src/tgbaalgos/dtgbacomp.cc b/src/tgbaalgos/dtgbacomp.cc index 2cfbd3523..a0b6e49de 100644 --- a/src/tgbaalgos/dtgbacomp.cc +++ b/src/tgbaalgos/dtgbacomp.cc @@ -1,6 +1,6 @@ // -*- 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); diff --git a/src/tgbaalgos/dtgbacomp.hh b/src/tgbaalgos/dtgbacomp.hh index 6cad13e54..964a76d31 100644 --- a/src/tgbaalgos/dtgbacomp.hh +++ b/src/tgbaalgos/dtgbacomp.hh @@ -1,5 +1,5 @@ // -*- 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 diff --git a/src/tgbatest/ltl2tgba.cc b/src/tgbatest/ltl2tgba.cc index 1ec323794..1c8fc23bf 100644 --- a/src/tgbatest/ltl2tgba.cc +++ b/src/tgbatest/ltl2tgba.cc @@ -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"); }