Rewrite all std::map<const formula*, ...> as
Sgi::hash_map<const formula*, ...>. * src/misc/hash.hh: New file. * src/misc/Makefile.am (misc_HEADERS): Add it. * src/ltlvisit/dotty.cc (dotty_visitor::map): Use a hash_map instead of a map. * src/tgba/bdddict.hh (bdd_dict::fv_map, bdd_dict::vf_map, bdd_dict::ref_set, bdd_dict::var_map): Define as hash_map or hash_set. * src/tgbaalgos/ltl2tgba_fm.cc (translate_dict::fv_map, translate_dict::vf_map): Likewise. * src/tgba/tgbabddconcretefactory.hh (tgba_bdd_concrete_factory::acc_map_): Likewise. * src/tgba/tgbatba.hh, src/tgbaalgos/reachiter.hh: Include <map>.
This commit is contained in:
parent
51094329d8
commit
1955150999
9 changed files with 76 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include "misc/hash.hh"
|
||||
#include "misc/bddalloc.hh"
|
||||
#include "ltlast/visitor.hh"
|
||||
#include "ltlast/allnodes.hh"
|
||||
|
|
@ -48,9 +49,10 @@ namespace spot
|
|||
}
|
||||
|
||||
/// Formula-to-BDD-variable maps.
|
||||
typedef std::map<const ltl::formula*, int> fv_map;
|
||||
typedef Sgi::hash_map<const ltl::formula*, int,
|
||||
ptr_hash<ltl::formula> > fv_map;
|
||||
/// BDD-variable-to-formula maps.
|
||||
typedef std::map<int, const ltl::formula*> vf_map;
|
||||
typedef Sgi::hash_map<int, const ltl::formula*> vf_map;
|
||||
|
||||
fv_map a_map; ///< Maps formulae to "a" BDD variables
|
||||
vf_map a_formula_map; ///< Maps "a" BDD variables to formulae
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef SPOT_TGBAALGOS_REACHITER_HH
|
||||
# define SPOT_TGBAALGOS_REACHITER_HH
|
||||
|
||||
#include <map>
|
||||
#include "tgba/tgba.hh"
|
||||
#include <stack>
|
||||
#include <deque>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue