|
@ -35,7 +35,7 @@ namespace storm { |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
|
|
|
|
|
|
auto& schedulerChoice = schedulerChoices[memoryState][modelState]; |
|
|
auto& schedulerChoice = schedulerChoices[memoryState][modelState]; |
|
|
if (!dontCareStates[memoryState].get(modelState)) { |
|
|
|
|
|
|
|
|
|
|
|
if (schedulerChoice.isDefined()) { |
|
|
if (schedulerChoice.isDefined()) { |
|
|
if (!choice.isDefined()) { |
|
|
if (!choice.isDefined()) { |
|
|
++numOfUndefinedChoices; |
|
|
++numOfUndefinedChoices; |
|
@ -56,7 +56,6 @@ namespace storm { |
|
|
++numOfDeterministicChoices; |
|
|
++numOfDeterministicChoices; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
schedulerChoice = choice; |
|
|
schedulerChoice = choice; |
|
|
} |
|
|
} |
|
@ -87,13 +86,13 @@ namespace storm { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template <typename ValueType> |
|
|
template <typename ValueType> |
|
|
void Scheduler<ValueType>::setDontCare(uint_fast64_t modelState, uint_fast64_t memoryState) { |
|
|
|
|
|
|
|
|
void Scheduler<ValueType>::setDontCare(uint_fast64_t modelState, uint_fast64_t memoryState, bool setArbitraryChoice) { |
|
|
STORM_LOG_ASSERT(memoryState < getNumberOfMemoryStates(), "Illegal memory state index"); |
|
|
STORM_LOG_ASSERT(memoryState < getNumberOfMemoryStates(), "Illegal memory state index"); |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
|
|
|
|
|
|
if (!dontCareStates[memoryState].get(modelState)) { |
|
|
if (!dontCareStates[memoryState].get(modelState)) { |
|
|
auto& schedulerChoice = schedulerChoices[memoryState][modelState]; |
|
|
auto& schedulerChoice = schedulerChoices[memoryState][modelState]; |
|
|
if (!schedulerChoice.isDefined()) { |
|
|
|
|
|
|
|
|
if (!schedulerChoice.isDefined() && setArbitraryChoice) { |
|
|
// Set an arbitrary choice
|
|
|
// Set an arbitrary choice
|
|
|
this->setChoice(0, modelState, memoryState); |
|
|
this->setChoice(0, modelState, memoryState); |
|
|
} |
|
|
} |
|
@ -108,13 +107,8 @@ namespace storm { |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
STORM_LOG_ASSERT(modelState < schedulerChoices[memoryState].size(), "Illegal model state index"); |
|
|
|
|
|
|
|
|
if (dontCareStates[memoryState].get(modelState)) { |
|
|
if (dontCareStates[memoryState].get(modelState)) { |
|
|
auto& schedulerChoice = schedulerChoices[memoryState][modelState]; |
|
|
|
|
|
if (!schedulerChoice.isDefined()) { |
|
|
|
|
|
++numOfUndefinedChoices; |
|
|
|
|
|
} |
|
|
|
|
|
dontCareStates[memoryState].set(modelState, false); |
|
|
dontCareStates[memoryState].set(modelState, false); |
|
|
--numOfDontCareStates; |
|
|
--numOfDontCareStates; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|