1. 06 Apr, 2011 1 commit
  2. 05 Apr, 2011 1 commit
    • Alexandre Duret-Lutz's avatar
      [buddy] · 5fdfe286
      Alexandre Duret-Lutz authored
      Tag functions with attributes pure, const, or noreturn.
      
      * src/bdd.h (__purefn, __constfn, __noreturnfn): Define
      new macros.
      * src/bdd.h, src/bddio.c, src/bvec.h, src/imatrix.h: Use them
      to tag many functions as suggested by -Wsuggest-attribute=pure,
      -Wsuggest-attribute=const, -Wsuggest-attribute=noreturn.
      5fdfe286
  3. 04 Apr, 2011 2 commits
  4. 03 Apr, 2011 7 commits
  5. 31 Mar, 2011 3 commits
    • Alexandre Duret-Lutz's avatar
      Introduct a down_cast macro. · 9f63bb66
      Alexandre Duret-Lutz authored
      * src/misc/casts.hh: New file.
      * src/misc/Makefile.am: Add it.
      * iface/dve2/dve2.cc, iface/gspn/gspn.cc, iface/gspn/ssp.cc,
      src/evtgba/explicit.cc, src/evtgba/product.cc, src/misc/casts.hh,
      src/tgba/state.hh, src/tgba/statebdd.cc, src/tgba/taatgba.cc,
      src/tgba/taatgba.hh, src/tgba/tgbabddconcrete.cc,
      src/tgba/tgbaexplicit.cc, src/tgba/tgbaexplicit.hh,
      src/tgba/tgbakvcomplement.cc, src/tgba/tgbaproduct.cc,
      src/tgba/tgbasafracomplement.cc, src/tgba/tgbasgba.cc,
      src/tgba/tgbatba.cc, src/tgba/tgbaunion.cc, src/tgba/wdbacomp.cc,
      src/tgbaalgos/ndfs_result.hxx, src/tgbaalgos/reductgba_sim.cc,
      src/tgbaalgos/reductgba_sim_del.cc: Use down_cast when
      appropriate.
      9f63bb66
    • Alexandre Duret-Lutz's avatar
      Cosmetics. · 12783ff7
      Alexandre Duret-Lutz authored
      * src/sanity/style.test: Catch some binary operators not
      delimited with spaces.
      * src/tgbaalgos/bfssteps.cc, src/tgbaalgos/magic.cc,
      src/tgbaalgos/reducerun.cc, src/tgbaalgos/se05.cc,
      src/tgbaalgos/tau03.cc, src/tgbaalgos/tau03opt.cc: Fix these.
      12783ff7
    • Alexandre Duret-Lutz's avatar
      Make state_explicit instances persistent objects. · 36f7c648
      Alexandre Duret-Lutz authored
      * src/tgba/tgbaexplicit.cc, src/tgba/tgbaexplicit.hh: Merge
      state_explicit and tgba_explicit::state.  In the past,
      state_explicit was a small object encapsulating a pointer to the
      persistent tgba_explicit::state; and we used to clone() and
      destroy() a lot of state_explicit instance.  Now state_explicit is
      persistent, and clone() and destroy() have no effects.
      * src/tgba/tgbareduce.cc: Adjust, since this inherits from
      tgbaexplicit and uses the internals of state_explicit.
      * src/tgbatest/reductgba.cc: Fix deletion order for automata.
      * src/tgba/tgba.hh (last_support_conditions_input_,
      last_support_variables_input_): Make these protected, so
      they can be zeroed by tgba_explicit.
      36f7c648
  6. 30 Mar, 2011 5 commits
  7. 29 Mar, 2011 1 commit
    • Alexandre Duret-Lutz's avatar
      Include <cstddef> in python modules to workaround Swig bug. · 35a01937
      Alexandre Duret-Lutz authored
      * wrap/python/spot.i, wrap/python/buddy.i: Include <cstddef>
      because Swig 2.0.2 uses ptrdiff_t and does not do the include
      itself.  In g++ most libstdc++ standard headers have been changed
      to no longer include <cstddef> as an implementation detail, so
      the difference shows.
      35a01937
  8. 21 Mar, 2011 2 commits
  9. 17 Mar, 2011 1 commit
    • Alexandre Duret-Lutz's avatar
      Improve a reduction rule for "a M b". · 1878bfd0
      Alexandre Duret-Lutz authored
      * src/ltlvisit/reduce.cc (reduce_visitor): Always reduce "a M b"
      to "a & b" if "a" is a pure eventual formula, remove the
      constraint on "b".
      * src/ltltest/reduccmp.test: Add two tests.
      1878bfd0
  10. 11 Mar, 2011 1 commit
  11. 10 Mar, 2011 2 commits
    • Alexandre Duret-Lutz's avatar
      Add support for finite behaviors in the DVE interface. · cb83e855
      Alexandre Duret-Lutz authored
      * iface/dve2/dve2.hh (load_dve2): Take a "dead" argument.
      * iface/dve2/dve2.cc (callback_context): Add a destructor
      to simplify...
      (dve2_succ_iterator::~dve2_succ_iterator) ... this one.
      (convert_aps): Skip the dead proposition.
      (dve2_kripke::dve2_kripke): Take a dead argument, and
      setup alive_prop and dead_prop.
      (compute_state_condition, get_succ): Use a cache for the
      conditions and successor of the last state, to share
      some work between these two function.  Add loops on dead
      states.
      (load_dve2): Pass dead to dve2_kripke and convert_aps.
      * iface/dve2/dve2check.cc: Add a -dDEAD option.
      * iface/dve2/finite.test, iface/dve2/finite.dve: New file.
      * iface/dve2/Makefile.am: Declare them.
      cb83e855
    • Alexandre Duret-Lutz's avatar
      * iface/dve2/dve2.cc (convert_aps): Fix two typos while · ef976c93
      Alexandre Duret-Lutz authored
      parsing >= and >, mistakenly registered as <= and <.
      ef976c93
  12. 07 Mar, 2011 9 commits
  13. 06 Mar, 2011 4 commits
    • Alexandre Duret-Lutz's avatar
      Teach the DVE2 interface about enumerated types. · 7b5879d2
      Alexandre Duret-Lutz authored
      * iface/dve2/dve2.cc (convert_aps): Add support for
      enumerated types.  E.g. an atomic proposition such
      as "P_0.CS" really means "P_0 == CS".
      7b5879d2
    • Alexandre Duret-Lutz's avatar
      Teach the DVE2 interface about atomic propositions such as "a <= · 8136bd41
      Alexandre Duret-Lutz authored
      10" or "b != 3".  This only work for integer variables presently.
      
      * iface/dve2/dve2.hh (load_dve2): Take an atomic_prop_set
      argument to indicate the AP to observe.
      * iface/dve2/dve2.cc (convert_aps): New function.  Parse the
      atomic propositions in format them in a prop_set structure that
      will allow fast generation of the state condition.
      (load_dve2): Call convert_aps, and pass the resulting prop_set
      structure to the kripke object.
      (dve2_kripke::dve2_kripke): Store the prop_set structure.
      (dve2_kripke::~dve2_kripke): Release the prop_set, and unregister
      the bdd_variable associated to it.
      (compute_state_condition): New method that uses the prop_set.
      (succ_iter, state_condition): Call compute_state_condition().
      * iface/dve2/dve2check.cc: Adjust the call to load_dve2 to
      pass it atomic propositions read from the command line.
      8136bd41
    • Alexandre Duret-Lutz's avatar
      Display states variables in the state label. · 5a76a7bb
      Alexandre Duret-Lutz authored
      * iface/dve2/dve2.cc (dve2_kripke::dve2_kripke): Retrieve
      the name of all the state variables.
      (dve2_kripke::format_state): Use them to format the name
      of the state.
      5a76a7bb
    • Alexandre Duret-Lutz's avatar
      We can now explore a divine2 compiled model, but the atomic · 16b4c288
      Alexandre Duret-Lutz authored
      properties are still missing.
      
      * iface/dve2/dve2.cc, iface/dve2/dve2.hh: Add
      classes for presenting the DiVinE2 model as a kripke object.
      (load_dve2): Load the *.dve2C file using libltdl.
      * iface/dve2/Makefile.am: Add a dve2check program.
      * iface/dve2/dve2check.cc: New file.  Currently it just
      outputs the reachability graph using dotty.
      16b4c288
  14. 05 Mar, 2011 1 commit