1. 03 Jan, 2015 1 commit
    • Alexandre Duret-Lutz's avatar
      dotty: switch to horizontal output and add options · 0f178288
      Alexandre Duret-Lutz authored
      * src/tgbaalgos/dotty.cc, src/tgbaalgos/dotty.hh: Add an options
      parameter.
      * src/bin/randaut.cc, src/bin/autfilt.cc, src/bin/dstar2tgba.cc,
      src/bin/ltl2tgba.cc, wrap/python/ajax/spot.in: Use it.
      * src/tgbatest/det.test, src/tgbatest/dstar.test,
      src/tgbatest/ltl2tgba.cc, src/tgbatest/monitor.test,
      src/tgbatest/neverclaimread.test, src/tgbatest/tgbaread.test,
      src/graphtest/tgbagraph.test: Adjust
      because automata are now output horizontally.
      * NEWS: Mention the change.
      0f178288
  2. 17 Dec, 2014 7 commits
    • Alexandre Duret-Lutz's avatar
    • Thibaud Michaud's avatar
      option --uniq in autfilt and randaut · a989d41b
      Thibaud Michaud authored
      * src/bin/autfilt.cc: add option --uniq.
      * src/bin/randaut.cc: add option --uniq.
      * src/tgbatest/uniq.test: Test it.
      a989d41b
    • Thibaud Michaud's avatar
      Wrap are_isomorphic inside a class and optimize when deterministic · 17687855
      Thibaud Michaud authored
      * src/bin/autfilt.cc: Use isomorphism_checker.
      * src/tgbaalgos/are_isomorphic.cc, src/tgbaalgos/are_isomorphic.hh: Wrap
      are_isomorphic inside a class to keep the canonic version of the first
      automaton between two calls, and use a more efficient algorithm in case
      both automata are deterministic.
      * src/tgbatest/isomorph.test: Add tests for deterministic automata.
      17687855
    • Thibaud Michaud's avatar
      Adding function to canonicalize an automaton. · 1995602d
      Thibaud Michaud authored
      * src/tgbaalgos/are_isomorphic.cc, src/tgbaalgos/are_isomorphic.hh,
      src/bin/autfilt.cc: are_isomorphic now uses canonicalize. It returns a
      bool, because the mapping cannot be deduced easily from the
      canonicalized automaton.
      * src/graph/graph.hh: Add equality operator to trans_storage_t
      for easy comparison of transition vectors.
      * src/tgba/tgbagraph.hh: Add equality operator to tgba_graph_trans_data
      and to tgba_digraph.
      * src/tgbaalgos/canonicalize.cc, src/tgbaalgos/canonicalize.hh:
      New files.
      * src/tgbaalgos/Makefile.am: Add them.
      * src/tgbatest/isomorph.test: Test them.
      1995602d
    • Alexandre Duret-Lutz's avatar
      autfilt: %w shows an accepting word · b83d6d7f
      Alexandre Duret-Lutz authored
      * src/bin/autfilt.cc: Support %w.
      * src/tgbatest/readsave.test: Test it.
      b83d6d7f
    • Alexandre Duret-Lutz's avatar
      autfilt: --instut, --destut, --is-empty · a626a32d
      Alexandre Duret-Lutz authored
      * src/bin/autfilt.cc: Add these new options.
      * src/tgbaalgos/stutterize.cc, src/tgbaalgos/stutterize.hh: Make it
      possible to call sl() and sl2() without passing the set of atomic
      propositions.
      * src/tgbatest/stutter.test: New file.
      * src/tgbatest/Makefile.am: Add it.
      a626a32d
    • Alexandre Duret-Lutz's avatar
      merge transitions: also merge transitions with same conditions · 8e9c4317
      Alexandre Duret-Lutz authored
      * src/tgba/tgbagraph.cc (merge_transition): Do it.
      * src/tgbatest/readsave.test: Test it.
      * src/bin/autfilt.cc: Fix statistics about the original
      automaton when using --stats or --name.
      8e9c4317
  3. 16 Dec, 2014 3 commits
  4. 15 Dec, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      autfilt: --count · 0d710f96
      Alexandre Duret-Lutz authored
      * src/bin/autfilt.cc: Add a --count option.
      * src/tgbatest/randaut.test: Test autfilt's --count and --states.
      0d710f96
  5. 11 Dec, 2014 4 commits
  6. 10 Dec, 2014 6 commits
    • Alexandre Duret-Lutz's avatar
      hoaparse: also accept LBTT input · 6eb2b06f
      Alexandre Duret-Lutz authored
      This is probably the worse grammar I wrote: the LBTT format is designed
      to be scanned with scanf, and very inconvenient to parse with
      bison/flex.  Here the scanner basically has to emulate a parser to
      classify the different INTs as tokens with different types.
      
      * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll: Add rules for LBTT.
      * src/hoaparse/parsedecl.hh: Add a way to reset the parser between each
      automata.
      * src/tgbatest/hoaparse.test, src/tgbatest/lbttparse.test: Add more
      tests.
      6eb2b06f
    • Alexandre Duret-Lutz's avatar
      tgbaparse, lbttparse: do not pass an environment for acceptance sets · e4158c21
      Alexandre Duret-Lutz authored
      * src/priv/accmap.hh, src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh,
      src/tgbaparse/public.hh, src/tgbaparse/tgbaparse.yy,
      src/tgbatest/ltl2tgba.cc, src/tgbatest/tgbaread.cc: Do not pass any
      environment parameter to parse acceptance sets.  This is not used
      anymore since we moved to int-labeled acceptance sets.
      e4158c21
    • Alexandre Duret-Lutz's avatar
      autfilt: some cleanup around --are-isomorphic · ff4dca48
      Alexandre Duret-Lutz authored
      * src/bin/autfilt.cc: Do not use -I for --are-isomorphic.
      Fix --help.
      * src/tgbatest/isomorph.test: Adjust to use --are-isomorphic, and speed
      it up 5-fold.
      ff4dca48
    • Thibaud Michaud's avatar
      autfilt: return with exit code 1 if there is no match · b54fe4c0
      Thibaud Michaud authored and Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz committed
      * src/bin/autfilt.cc: Return with exit code 1 if no match found.
      * src/tgbaalgos/are_isomorphic.cc,src/tgbatest/degenlskip.test
      src/tgbatest/explpro2.test,src/tgbatest/explpro3.test
      src/tgbatest/explpro4.test,src/tgbatest/explprod.test
      src/tgbatest/neverclaimread.test, src/tgbatest/readsave.test
      src/tgbatest/tripprod.test: Use exit status to check for output
      emptiness instead of 'test -n'.
      * src/tgbatest/isomorph.test: Simplify test.
      b54fe4c0
    • Thibaud Michaud's avatar
      Use autfilt --isomorph instead of a diff in some tests · 68adcc70
      Thibaud Michaud authored and Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz committed
      * src/tgbatest/degenlskip.test, src/tgbatest/explpro2.test
      src/tgbatest/explpro3.test, src/tgbatest/explpro4.test
      src/tgbatest/explprod.test, src/tgbatest/neverclaimread.test
      src/tgbatest/tripprod.test, src/tgbatest/readsave.test: Here.
      68adcc70
    • Thibaud Michaud's avatar
      Adding function to test if two büchi automata are isomorphic. · 97fdea9d
      Thibaud Michaud authored and Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz committed
      And add the corresponding --isomorphic=FILENAME option to autfilt.
      
      * src/tgbaalgos/are_isomorphic.cc, src/tgbaalgos/are_isomorphic.hh:
      New.
      * src/tgbaalgos/Makefile.am: Add it.
      * src/bin/autfilt.cc: Add --isomorphic option.
      * src/tgbatest/isomorph.test: Test it.
      * src/tgbatest/Makefile.am: Add it.
      97fdea9d
  7. 09 Dec, 2014 1 commit
  8. 08 Dec, 2014 1 commit
  9. 07 Dec, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      autfilt: add a --product option · 8014833a
      Alexandre Duret-Lutz authored
      * src/bin/autfilt.cc: Implement the --product option.
      * src/tgbatest/explprod.cc, src/tgbatest/tripprod.cc: Delete.
      * src/tgbatest/Makefile.am: Adjust.
      * src/tgbatest/explpro2.test, src/tgbatest/explpro3.test,
      src/tgbatest/explpro4.test, src/tgbatest/explprod.test,
      src/tgbatest/tripprod.test: Rewrite using autfilt --product.
      8014833a
  10. 05 Dec, 2014 2 commits
  11. 04 Dec, 2014 4 commits
    • Alexandre Duret-Lutz's avatar
      how: fix multi-line incomplete strings · ad771454
      Alexandre Duret-Lutz authored
      Location tracking was incorrect for multi-line
      strings/comments/parentheses.  This also fixes and tests recovery on
      inclosed strings/comments/parentheses.
      
      * src/hoaparse/hoaparse.yy: Abort on expected EOF.
      * src/hoaparse/hoascan.ll: Track newlines inside strings and comments.
      Do not use unput() to close incomplete parentheses.
      * src/tgbatest/neverclaimread.test, src/tgbatest/hoaparse.test: Add
      more tests.
      ad771454
    • Alexandre Duret-Lutz's avatar
      neverclaim: fix reporting of parse_boolean() errors · ebc3d649
      Alexandre Duret-Lutz authored
      * src/hoaparse/hoaparse.yy: Correctly adjust the
      location of error messagges.
      * src/tgbatest/neverclaimread.test: Add test case.
      ebc3d649
    • Alexandre Duret-Lutz's avatar
      neverclaim: fix parsing of aliased states · d0525871
      Alexandre Duret-Lutz authored
      * src/graph/ngraph.hh (alias_states): Deal with the case
      of aliasing two existing states.
      * src/hoaparse/hoaparse.yy: Fix handling of aliased states.
      * src/tgbatest/neverclaimread.test: Augment test case.
      d0525871
    • Alexandre Duret-Lutz's avatar
      hoa: swallow the neverclaim parser · e1bba500
      Alexandre Duret-Lutz authored
      This way we can easily parse a stream of HOAs intermixed with
      neverclaims.
      
      * src/hoaparse/hoaparse.yy, src/hoaparse/hoascan.ll: Add rules
      for neverclaims, adjusted from src/neverparse/neverclaimparse.yy
      and src/neverparse/neverclaimparse.ll.
      * src/hoaparse/public.hh, NEWS: Update documentation.
      * src/neverparse/: Remove this directory.
      * README, configure.ac, src/Makefile.am: Adjust accordingly.
      * src/tgbatest/ltl2tgba.cc, src/bin/ltlcross.cc: Use HOA
      parser to read neverclaims.
      * src/tgbatest/hoaparse.test, src/tgbatest/neverclaimread.test: Adjust.
      e1bba500
  12. 03 Dec, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      randomize: new function · c0e98912
      Alexandre Duret-Lutz authored
      * src/tgbaalgos/randomize.cc, src/tgbaalgos/randomize.hh: New files.
      * src/tgbaalgos/Makefile.am: Add them.
      * src/graph/graph.hh (rename_states_): New method.
      * src/bin/autfilt.cc: Add options --randomize and --seed.
      * src/tgbatest/randomize.test: Test them.
      * src/tgbatest/Makefile.am: Add randomize.test.
      * NEWS: Mention randomize().
      c0e98912
  13. 02 Dec, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      graph: store the source indices in the transition vector · 0db0eca1
      Alexandre Duret-Lutz authored
      ... and use it to sort transitions.
      
      * src/graph/graph.hh: Adjust storage of source index.  Provide
      remove_dead_transitions_(), sort_transitions_() and
      chain_transitions_() methods.
      * src/tgba/tgbagraph.cc (merge_transitions): Rewrite using
      above methods.
      * src/tgba/tgbagraph.hh: Add a comparison operator for
      transitions.
      * src/tgbatest/degenlskip.test, src/tgbatest/det.test,
      src/tgbatest/ltl2ta.test, src/tgbatest/neverclaimread.test,
      src/tgbatest/readsave.test: Adjust expected transition order in test
      cases.
      0db0eca1
  14. 30 Nov, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      defaultenv: simplify usage · 4f1535c8
      Alexandre Duret-Lutz authored
      * src/ltlenv/defaultenv.hh, src/ltlenv/defaultenv.cc (require): Return
      an atomic_prop*, not a formula*.
      * src/bin/randaut.cc, src/bin/randltl.cc, src/ltlvisit/apcollect.cc,
      src/tgbatest/ltl2tgba.cc, src/tgbatest/randtgba.cc: Do not cast
      the return of require().
      4f1535c8
  15. 29 Nov, 2014 1 commit
    • Alexandre Duret-Lutz's avatar
      randaut: new binary · c5842c3a
      Alexandre Duret-Lutz authored
      * src/bin/randaut.cc, src/bin/man/randaut.x: New files.
      * src/bin/Makefile.am, src/bin/man/Makefile.am: Adjust.
      * src/tgbaalgos/randomgraph.hh, src/tgbaalgos/randomgraph.cc:
      Add an option to output state-based acceptance, and update
      the TGBA properties.
      * src/tgbatest/randaut.test: New test.
      * src/tgbatest/Makefile.am: Add it.
      c5842c3a
  16. 25 Nov, 2014 5 commits