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
c0bbabc4
Commit
c0bbabc4
authored
Apr 28, 2015
by
Alexandre Duret-Lutz
Browse files
autfilt: -uc should count the number of non-isomorphic automata
* src/bin/autfilt.cc: Fix it. * src/tests/isomorph.test: Test it.
parent
5bfed246
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/autfilt.cc
View file @
c0bbabc4
...
...
@@ -533,8 +533,6 @@ namespace
if
(
matched
==
opt_invert
)
return
0
;
++
match_count
;
// Postprocessing.
if
(
opt_mask_acc
)
...
...
@@ -583,6 +581,8 @@ namespace
return
0
;
}
++
match_count
;
printer
.
print
(
aut
,
nullptr
,
filename
,
-
1
,
conversion_time
,
haut
);
if
(
opt_max_count
>=
0
&&
match_count
>=
opt_max_count
)
...
...
src/tests/isomorph.test
View file @
c0bbabc4
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2014 Laboratoire de Recherche et Développement de
# Copyright (C) 2014
, 2015
Laboratoire de Recherche et Développement de
# l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
...
...
@@ -106,3 +106,6 @@ EOF
run
0
..
/../
bin
/
autfilt
aut1
--
are
-
isomorphic
aut2
run
0
..
/../
bin
/
autfilt
aut3
--
are
-
isomorphic
aut4
run
0
..
/../
bin
/
autfilt
-
u
aut1
aut2
aut2
aut3
-
c
>
out
test
2
=
"`cat out`"
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