Commit c0bbabc4 authored by Alexandre Duret-Lutz's avatar 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
......@@ -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)
......
#!/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`"
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