1. 05 Jan, 2011 6 commits
    • Alexandre Duret-Lutz's avatar
      Fix bugs in minimize(). · 7d8a5310
      Alexandre Duret-Lutz authored
      * src/tgbaalgos/minimize.cc (init_sets, minimize): Fix memory
      leaks and a usage of the wrong automaton.
      * src/tgbatest/wdba.test: Try using -Rm with -R3 or -R3b, and with
      valgrind.  This caught all the bugs fixed above.
      7d8a5310
    • Alexandre Duret-Lutz's avatar
      Fix bugs in minimize(), caught by spotlbtt.test. · 72139fd7
      Alexandre Duret-Lutz authored
      * src/tgbaalgos/minimize.cc (minimize): Don't add acceptance
      conditions if the final set is empty.
      * src/tgbaalgos/powerset.cc (tgba_powerset): Add the initial state
      to acc_list if it is accepting.  Also do not compute an SCC build
      map if we don't have to build acc_list.
      72139fd7
    • Alexandre Duret-Lutz's avatar
      Better resource handling in minimization. · f9e84ac2
      Alexandre Duret-Lutz authored
      * src/tgbatest/ltl2tgba.cc (main): Delete the minimized automaton.
      * src/tgbaalgos/minimize.cc (minimize): Remove the call to
      unregister_variable() at the end.  It was both
      wrong (unregistering only the first variable) and useless ("delete
      del_a" will unregister all these variables).  Use a map and a set
      to keep track of free BDD variable and reuse them, otherwise the
      algorithm would sometimes use more variables than allocated.
      f9e84ac2
    • Felix Abecassis's avatar
      99c1b607
    • Felix Abecassis's avatar
      Small fixes. · 52090e48
      Felix Abecassis authored and Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz committed
      * src/tgbatest/minimize.cc: Delete useless includes.
      * src/tgbaalgos/minimize.cc: Delete useless includes,
      fixed acceptance conditions.
      * src/tgbatest/ltl2tgba.cc: Add -Rm option for minimization.
      * src/tgba/tgbaexplicit.cc: Fixed typo.
      52090e48
    • Felix Abecassis's avatar
      * src/tgbaalgos/minimize.cc, src/tgbaalgos/minimize.hh: · 03e6dc47
      Felix Abecassis authored and Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz committed
      New files.  Algorithm to minimize an automaton using first the powerset
      construction to determinize the input automaton, the automaton is then
      minimized using the standard algorithm, using BDDs to check if states
      are equivalent.
      03e6dc47