From 7ab2a84c0f68dbd22dced0ac0275c0cda86c3649 Mon Sep 17 00:00:00 2001 From: PBerger Date: Thu, 5 Jun 2014 00:30:28 +0200 Subject: [PATCH] Small beauty fixes to the Cudd Interface Former-commit-id: 631d5a20bdc0d7dc0c45f9f2952e61353e1fde7d --- src/storage/dd/CuddDd.cpp | 2 +- src/storage/dd/CuddDdForwardIterator.cpp | 2 +- src/storage/dd/CuddDdManager.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/dd/CuddDd.cpp b/src/storage/dd/CuddDd.cpp index 6c9077184..f02e0d7a1 100644 --- a/src/storage/dd/CuddDd.cpp +++ b/src/storage/dd/CuddDd.cpp @@ -507,7 +507,7 @@ namespace storm { int* cube; double value; DdGen* generator = this->getCuddAdd().FirstCube(&cube, &value); - return DdForwardIterator(this->getDdManager(), generator, cube, value, static_cast(Cudd_IsGenEmpty(generator)), &this->getContainedMetaVariableNames(), enumerateDontCareMetaVariables); + return DdForwardIterator(this->getDdManager(), generator, cube, value, (Cudd_IsGenEmpty(generator) != 0), &this->getContainedMetaVariableNames(), enumerateDontCareMetaVariables); } DdForwardIterator Dd::end(bool enumerateDontCareMetaVariables) const { diff --git a/src/storage/dd/CuddDdForwardIterator.cpp b/src/storage/dd/CuddDdForwardIterator.cpp index 4eda09907..4a990746e 100644 --- a/src/storage/dd/CuddDdForwardIterator.cpp +++ b/src/storage/dd/CuddDdForwardIterator.cpp @@ -70,7 +70,7 @@ namespace storm { if (this->relevantDontCareDdVariables.empty() || this->cubeCounter >= std::pow(2, this->relevantDontCareDdVariables.size()) - 1) { // Get the next cube and check for emptiness. ABDD::NextCube(generator, &cube, &value); - this->isAtEnd = static_cast(Cudd_IsGenEmpty(generator)); + this->isAtEnd = (Cudd_IsGenEmpty(generator) != 0); // In case we are not done yet, we get ready to treat the next cube. if (!this->isAtEnd) { diff --git a/src/storage/dd/CuddDdManager.cpp b/src/storage/dd/CuddDdManager.cpp index f23734ad2..3f0a2abed 100644 --- a/src/storage/dd/CuddDdManager.cpp +++ b/src/storage/dd/CuddDdManager.cpp @@ -33,7 +33,7 @@ bool CuddOptionsRegistered = storm::settings::Settings::registerNewModule([] (st namespace storm { namespace dd { DdManager::DdManager() : metaVariableMap(), cuddManager() { - this->cuddManager.SetMaxMemory(storm::settings::Settings::getInstance()->getOptionByLongName("cuddmaxmem").getArgument(0).getValueAsUnsignedInteger() * 1024 * 1024); + this->cuddManager.SetMaxMemory(static_cast(storm::settings::Settings::getInstance()->getOptionByLongName("cuddmaxmem").getArgument(0).getValueAsUnsignedInteger() * 1024ul * 1024ul)); this->cuddManager.SetEpsilon(storm::settings::Settings::getInstance()->getOptionByLongName("cuddprec").getArgument(0).getValueAsDouble()); }