Skip to content

Make dtmc model checker throw on unreachable condition when checking conditional probabilities. - #946

Open
lukovdm wants to merge 4 commits into
stormchecker:masterfrom
lukovdm:conditional-dtmc-fix
Open

Make dtmc model checker throw on unreachable condition when checking conditional probabilities.#946
lukovdm wants to merge 4 commits into
stormchecker:masterfrom
lukovdm:conditional-dtmc-fix

Conversation

@lukovdm

@lukovdm lukovdm commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Includes fix and added tests for this case.

@volkm volkm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Maybe use a different type of exception such as InvalidPropertyException?

@lukovdm

lukovdm commented Jul 1, 2026

Copy link
Copy Markdown
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 InvalidPropertyException.

Comment thread src/storm/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp Outdated
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants