dot, hoa: enable "k" also for fair_kripke
* spot/twaalgos/dot.cc, spot/twaalgos/hoa.cc: Here.
This commit is contained in:
parent
2c67c68766
commit
35c8beaa3c
2 changed files with 4 additions and 4 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
#include <spot/twa/formula2bdd.hh>
|
#include <spot/twa/formula2bdd.hh>
|
||||||
#include <spot/twaalgos/copy.hh>
|
#include <spot/twaalgos/copy.hh>
|
||||||
#include <spot/twaalgos/sccinfo.hh>
|
#include <spot/twaalgos/sccinfo.hh>
|
||||||
#include <spot/kripke/kripke.hh>
|
#include <spot/kripke/fairkripke.hh>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
@ -665,7 +665,7 @@ namespace spot
|
||||||
{
|
{
|
||||||
dotty_output d(os, options);
|
dotty_output d(os, options);
|
||||||
// Enable automatic state labels for Kripke structure.
|
// Enable automatic state labels for Kripke structure.
|
||||||
if (std::dynamic_pointer_cast<const kripke>(g))
|
if (std::dynamic_pointer_cast<const fair_kripke>(g))
|
||||||
d.parse_opts("k");
|
d.parse_opts("k");
|
||||||
auto aut = std::dynamic_pointer_cast<const twa_graph>(g);
|
auto aut = std::dynamic_pointer_cast<const twa_graph>(g);
|
||||||
if (!aut || (d.max_states_given() && aut->num_states() >= d.max_states()))
|
if (!aut || (d.max_states_given() && aut->num_states() >= d.max_states()))
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
#include <spot/misc/minato.hh>
|
#include <spot/misc/minato.hh>
|
||||||
#include <spot/twa/formula2bdd.hh>
|
#include <spot/twa/formula2bdd.hh>
|
||||||
#include <spot/tl/formula.hh>
|
#include <spot/tl/formula.hh>
|
||||||
#include <spot/kripke/kripke.hh>
|
#include <spot/kripke/fairkripke.hh>
|
||||||
|
|
||||||
namespace spot
|
namespace spot
|
||||||
{
|
{
|
||||||
|
|
@ -586,7 +586,7 @@ namespace spot
|
||||||
|
|
||||||
// for Kripke structures, automatically append "k" to the options.
|
// for Kripke structures, automatically append "k" to the options.
|
||||||
char* tmpopt = nullptr;
|
char* tmpopt = nullptr;
|
||||||
if (std::dynamic_pointer_cast<const kripke>(aut))
|
if (std::dynamic_pointer_cast<const fair_kripke>(aut))
|
||||||
{
|
{
|
||||||
unsigned n = opt ? strlen(opt) : 0;
|
unsigned n = opt ? strlen(opt) : 0;
|
||||||
tmpopt = new char[n + 2];
|
tmpopt = new char[n + 2];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue