acccompl: Speed up.

* src/misc/acccompl.cc: Simplify both directions of the conversion.
* src/misc/acccompl.hh: Pass bdds by reference.
This commit is contained in:
Alexandre Duret-Lutz 2012-12-20 17:16:56 +01:00
parent ce21af6323
commit a3b49f1108
2 changed files with 16 additions and 44 deletions

View file

@ -35,19 +35,19 @@ namespace spot
class acc_compl
{
public:
acc_compl(bdd all, bdd neg)
acc_compl(const bdd& all, const bdd& neg)
: all_(all),
neg_(neg)
{
}
bdd complement(const bdd acc);
bdd reverse_complement(const bdd acc);
bdd complement(const bdd& acc);
bdd reverse_complement(const bdd& acc);
protected:
bdd all_;
bdd neg_;
const bdd all_;
const bdd neg_;
typedef Sgi::hash_map<bdd, bdd, bdd_hash> bdd_cache_t;
bdd_cache_t cache_;
};