diff --git a/src/storm.cpp b/src/storm.cpp index d75982d34..f2b34cdbd 100644 --- a/src/storm.cpp +++ b/src/storm.cpp @@ -220,6 +220,14 @@ void testCheckingDice(storm::models::Mdp& mdp) { mc->check(*probFormula); delete probFormula; + storm::formula::Ap* doneFormula = new storm::formula::Ap("done"); + //storm::formula::ReachabilityReward* reachabilityRewardFormula = new storm::formula::ReachabilityReward(doneFormula); + storm::formula::InstantaneousReward* reachabilityRewardFormula = new storm::formula::InstantaneousReward(8); + storm::formula::RewardNoBoundOperator* rewardFormula = new storm::formula::RewardNoBoundOperator(reachabilityRewardFormula, true); + + mc->check(*rewardFormula); + delete rewardFormula; + delete mc; } @@ -271,8 +279,7 @@ void testChecking() { // testCheckingDie(*dtmc); // testCheckingCrowds(*dtmc); // testCheckingSynchronousLeader(*dtmc, 4); - } - else if (parser.getType() == storm::models::MDP) { + } else if (parser.getType() == storm::models::MDP) { std::shared_ptr> mdp = parser.getModel>(); mdp->printModelInformationToStream(std::cout);