Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
35c8beaa
Commit
35c8beaa
authored
Feb 03, 2016
by
Alexandre Duret-Lutz
Browse files
dot, hoa: enable "k" also for fair_kripke
* spot/twaalgos/dot.cc, spot/twaalgos/hoa.cc: Here.
parent
2c67c687
Changes
2
Hide whitespace changes
Inline
Side-by-side
spot/twaalgos/dot.cc
View file @
35c8beaa
...
...
@@ -31,7 +31,7 @@
#include
<spot/twa/formula2bdd.hh>
#include
<spot/twaalgos/copy.hh>
#include
<spot/twaalgos/sccinfo.hh>
#include
<spot/kripke/kripke.hh>
#include
<spot/kripke/
fair
kripke.hh>
#include
<cstdlib>
#include
<cstring>
#include
<algorithm>
...
...
@@ -665,7 +665,7 @@ namespace spot
{
dotty_output
d
(
os
,
options
);
// 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"
);
auto
aut
=
std
::
dynamic_pointer_cast
<
const
twa_graph
>
(
g
);
if
(
!
aut
||
(
d
.
max_states_given
()
&&
aut
->
num_states
()
>=
d
.
max_states
()))
...
...
spot/twaalgos/hoa.cc
View file @
35c8beaa
...
...
@@ -33,7 +33,7 @@
#include
<spot/misc/minato.hh>
#include
<spot/twa/formula2bdd.hh>
#include
<spot/tl/formula.hh>
#include
<spot/kripke/kripke.hh>
#include
<spot/kripke/
fair
kripke.hh>
namespace
spot
{
...
...
@@ -586,7 +586,7 @@ namespace spot
// for Kripke structures, automatically append "k" to the options.
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
;
tmpopt
=
new
char
[
n
+
2
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment