Make dtmc model checker throw on unreachable condition when checking conditional probabilities. - #946
Open
lukovdm wants to merge 4 commits into
Open
Make dtmc model checker throw on unreachable condition when checking conditional probabilities.#946lukovdm wants to merge 4 commits into
lukovdm wants to merge 4 commits into
Conversation
volkm
approved these changes
Jul 1, 2026
volkm
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
Maybe use a different type of exception such as InvalidPropertyException?
Contributor
Author
|
I was being consistent the the conditional MDP case, but I agree it is a bit weird. I will change both the DTMC and the MDP one to |
tquatmann
reviewed
Jul 3, 2026
Resolve the conflict in SparseDtmcPrctlHelper::computeConditionalRewards: keep this branch's up-front reachability check on the condition (which replaces the `if (!conditionStates.empty())` guard), and take master's ExtendedSolutionType for the result and the reachability rewards vector. Adapt the new conditional tests to the extended-number representation introduced in stormchecker#1040: assert against positiveInfinity rather than infinity, which for rationals is now only a legacy placeholder value. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01218nYyRvf8TAGynDRXrtwa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Includes fix and added tests for this case.