|
@ -12,8 +12,8 @@ |
|
|
|
|
|
|
|
|
#include <bitset>
|
|
|
#include <bitset>
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
|
//#define ASSERT_BITVECTOR
|
|
|
|
|
|
|
|
|
#ifdef STORM_DEV
|
|
|
|
|
|
#define ASSERT_BITVECTOR
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
namespace storm { |
|
|
namespace storm { |
|
@ -725,11 +725,11 @@ namespace storm { |
|
|
if (result.get(i) != get(start + i)) { |
|
|
if (result.get(i) != get(start + i)) { |
|
|
STORM_LOG_ERROR("Getting of bits not correct for index " << i); |
|
|
STORM_LOG_ERROR("Getting of bits not correct for index " << i); |
|
|
STORM_LOG_ERROR("Getting from " << start << " with length " << length); |
|
|
STORM_LOG_ERROR("Getting from " << start << " with length " << length); |
|
|
stringstream stream; |
|
|
|
|
|
|
|
|
std::stringstream stream; |
|
|
printBits(stream); |
|
|
printBits(stream); |
|
|
stream << std::endl; |
|
|
stream << std::endl; |
|
|
result.printBits(stream); |
|
|
result.printBits(stream); |
|
|
STORM_LOG_ERROR(stream); |
|
|
|
|
|
|
|
|
STORM_LOG_ERROR(stream.str()); |
|
|
STORM_LOG_ASSERT(false, "Getting of bits not correct."); |
|
|
STORM_LOG_ASSERT(false, "Getting of bits not correct."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -738,11 +738,11 @@ namespace storm { |
|
|
if (original.get(i) != get(i)) { |
|
|
if (original.get(i) != get(i)) { |
|
|
STORM_LOG_ERROR("Getting did change bitvector at index " << i); |
|
|
STORM_LOG_ERROR("Getting did change bitvector at index " << i); |
|
|
STORM_LOG_ERROR("Getting from " << start << " with length " << length); |
|
|
STORM_LOG_ERROR("Getting from " << start << " with length " << length); |
|
|
stringstream stream; |
|
|
|
|
|
|
|
|
std::stringstream stream; |
|
|
printBits(stream); |
|
|
printBits(stream); |
|
|
stream << std::endl; |
|
|
stream << std::endl; |
|
|
original.printBits(stream); |
|
|
original.printBits(stream); |
|
|
STORM_LOG_ERROR(stream); |
|
|
|
|
|
|
|
|
STORM_LOG_ERROR(stream.str()); |
|
|
STORM_LOG_ASSERT(false, "Getting of bits not correct."); |
|
|
STORM_LOG_ASSERT(false, "Getting of bits not correct."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -818,11 +818,11 @@ namespace storm { |
|
|
if (other.get(i) != get(start + i)) { |
|
|
if (other.get(i) != get(start + i)) { |
|
|
STORM_LOG_ERROR("Setting of bits not correct for index " << i); |
|
|
STORM_LOG_ERROR("Setting of bits not correct for index " << i); |
|
|
STORM_LOG_ERROR("Setting from " << start << " with length " << other.bitCount); |
|
|
STORM_LOG_ERROR("Setting from " << start << " with length " << other.bitCount); |
|
|
stringstream stream; |
|
|
|
|
|
|
|
|
std::stringstream stream; |
|
|
printBits(stream); |
|
|
printBits(stream); |
|
|
stream << std::endl; |
|
|
stream << std::endl; |
|
|
other.printBits(stream); |
|
|
other.printBits(stream); |
|
|
STORM_LOG_ERROR(stream); |
|
|
|
|
|
|
|
|
STORM_LOG_ERROR(stream.str()); |
|
|
STORM_LOG_ASSERT(false, "Setting of bits not correct."); |
|
|
STORM_LOG_ASSERT(false, "Setting of bits not correct."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -831,11 +831,11 @@ namespace storm { |
|
|
if (original.get(i) != get(i)) { |
|
|
if (original.get(i) != get(i)) { |
|
|
STORM_LOG_ERROR("Setting did change bitvector at index " << i); |
|
|
STORM_LOG_ERROR("Setting did change bitvector at index " << i); |
|
|
STORM_LOG_ERROR("Setting from " << start << " with length " << other.bitCount); |
|
|
STORM_LOG_ERROR("Setting from " << start << " with length " << other.bitCount); |
|
|
stringstream stream; |
|
|
|
|
|
|
|
|
std::stringstream stream; |
|
|
printBits(stream); |
|
|
printBits(stream); |
|
|
stream << std::endl; |
|
|
stream << std::endl; |
|
|
original.printBits(stream); |
|
|
original.printBits(stream); |
|
|
STORM_LOG_ERROR(stream); |
|
|
|
|
|
|
|
|
STORM_LOG_ERROR(stream.str()); |
|
|
STORM_LOG_ASSERT(false, "Setting of bits not correct."); |
|
|
STORM_LOG_ASSERT(false, "Setting of bits not correct."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|