Make it easier to debug reference counts in LTL nodes.
* src/ltlast/automatop.cc, src/ltlast/automatop.hh, src/ltlast/binop.cc, src/ltlast/binop.hh, src/ltlast/multop.cc, src/ltlast/multop.hh, src/ltlast/unop.cc, src/ltlast/unop.hh: Add a dump_instance() static method to all class. * src/ltltest/readltl.cc: Add option -r to dump all instances with their reference count, after parsing and after deletion.
This commit is contained in:
parent
3488bf45e0
commit
631f4b5bea
10 changed files with 133 additions and 19 deletions
|
|
@ -24,6 +24,7 @@
|
|||
# define SPOT_LTLAST_AUTOMATOP_HH
|
||||
|
||||
# include <vector>
|
||||
# include <iosfwd>
|
||||
# include <map>
|
||||
# include "nfa.hh"
|
||||
# include "refformula.hh"
|
||||
|
|
@ -72,6 +73,10 @@ namespace spot
|
|||
/// Number of instantiated multop operators. For debugging.
|
||||
static unsigned instance_count();
|
||||
|
||||
/// Dump all instances. For debugging.
|
||||
static std::ostream& dump_instances(std::ostream& os);
|
||||
|
||||
|
||||
protected:
|
||||
typedef std::pair<std::pair<nfa::ptr, bool>, vec*> triplet;
|
||||
/// Comparison functor used internally by ltl::automatop.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue