Browse Source

Hotfix for DD abstraction layer: copy and paste mistake in operator !\= is now fixed.

Former-commit-id: b815b7d7e8
tempestpy_adaptions
dehnert 11 years ago
parent
commit
eb2b2fed30
  1. 2
      src/storage/dd/CuddDd.cpp
  2. 3
      test/functional/storage/CuddDdTest.cpp

2
src/storage/dd/CuddDd.cpp

@ -16,7 +16,7 @@ namespace storm {
}
bool Dd<DdType::CUDD>::operator!=(Dd<DdType::CUDD> const& other) const {
return this->cuddAdd == other.getCuddAdd();
return this->cuddAdd != other.getCuddAdd();
}
Dd<DdType::CUDD> Dd<DdType::CUDD>::operator+(Dd<DdType::CUDD> const& other) const {

3
test/functional/storage/CuddDdTest.cpp

@ -118,6 +118,9 @@ TEST(CuddDd, OperatorTest) {
manager->addMetaVariable("x", 1, 9);
EXPECT_TRUE(manager->getZero() == manager->getZero());
EXPECT_FALSE(manager->getZero() == manager->getOne());
EXPECT_FALSE(manager->getZero() != manager->getZero());
EXPECT_TRUE(manager->getZero() != manager->getOne());
storm::dd::Dd<storm::dd::DdType::CUDD> dd1 = manager->getOne();
storm::dd::Dd<storm::dd::DdType::CUDD> dd2 = manager->getOne();

Loading…
Cancel
Save