ltl: get rid of formula_ptr_hash
* src/ltlast/formula.hh: Specialize std::hash<>. * src/ltlvisit/contain.hh, src/ltlvisit/relabel.cc, src/tgba/taatgba.hh, src/tgbaalgos/ltl2tgba_fm.cc: Do not pass formula_ptr_hash to unordered_map.
This commit is contained in:
parent
3d9ffaec83
commit
c189875daf
5 changed files with 33 additions and 50 deletions
|
|
@ -41,8 +41,7 @@ namespace spot
|
|||
typedef std::map<const record_*, bool> incomp_map;
|
||||
incomp_map incompatible;
|
||||
};
|
||||
typedef std::unordered_map<const formula*,
|
||||
record_, formula_ptr_hash> trans_map;
|
||||
typedef std::unordered_map<const formula*, record_> trans_map;
|
||||
public:
|
||||
/// This class uses spot::ltl_to_tgba_fm to translate LTL
|
||||
/// formulae. See that function for the meaning of these options.
|
||||
|
|
|
|||
|
|
@ -92,8 +92,7 @@ namespace spot
|
|||
class relabeler: public clone_visitor
|
||||
{
|
||||
public:
|
||||
typedef std::unordered_map<const formula*, const formula*,
|
||||
ptr_hash<formula> > map;
|
||||
typedef std::unordered_map<const formula*, const formula*> map;
|
||||
map newname;
|
||||
ap_generator* gen;
|
||||
relabeling_map* oldnames;
|
||||
|
|
@ -358,8 +357,7 @@ namespace spot
|
|||
{
|
||||
}
|
||||
};
|
||||
typedef std::unordered_map<const formula*, data_entry,
|
||||
const formula_ptr_hash> fmap_t;
|
||||
typedef std::unordered_map<const formula*, data_entry> fmap_t;
|
||||
struct stack_entry
|
||||
{
|
||||
const formula* grand_parent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue