* src/tgba/statebdd.hh (state_bdd::as_bdd): Add non-const variant.

* src/tgba/tgbabddtranslateproxy.cc,
src/tgba/tgbabddtranslateproxy.hh: New files.
* src/tgba/Makefile.am (libtgba_la_SOURCES): Add them.
This commit is contained in:
Alexandre Duret-Lutz 2003-06-02 11:39:55 +00:00
parent 331738d644
commit 1e6dbe40d6
7 changed files with 339 additions and 11 deletions

View file

@ -29,4 +29,30 @@ namespace spot
}
return os;
}
bool
tgba_bdd_dict::contains(const tgba_bdd_dict& other) const
{
fv_map::const_iterator i;
for (i = other.var_map.begin(); i != other.var_map.end(); ++i)
{
fv_map::const_iterator i2 = var_map.find(i->first);
if (i2 == var_map.end() || i->second != i2->second)
return false;
}
for (i = other.now_map.begin(); i != other.now_map.end(); ++i)
{
fv_map::const_iterator i2 = now_map.find(i->first);
if (i2 == now_map.end() || i->second != i2->second)
return false;
}
for (i = other.prom_map.begin(); i != other.prom_map.end(); ++i)
{
fv_map::const_iterator i2 = prom_map.find(i->first);
if (i2 == prom_map.end() || i->second != i2->second)
return false;
}
return true;
}
}