From aaae25ee76fee09a5cb04bf7b213594454db9ac0 Mon Sep 17 00:00:00 2001 From: Jip Spel Date: Thu, 20 Sep 2018 09:28:43 +0200 Subject: [PATCH] Update AssumptionCheckerTest --- src/test/storm-pars/analysis/AssumptionCheckerTest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/storm-pars/analysis/AssumptionCheckerTest.cpp b/src/test/storm-pars/analysis/AssumptionCheckerTest.cpp index 2847c9a43..86a992c9e 100644 --- a/src/test/storm-pars/analysis/AssumptionCheckerTest.cpp +++ b/src/test/storm-pars/analysis/AssumptionCheckerTest.cpp @@ -27,10 +27,10 @@ #include "storm-parsers/api/storm-parsers.h" -// TODO: extend +// TODO: extend for cases in which checkOnSamples and validateAssumption return true TEST(AssumptionCheckerTest, Brp) { std::string programFile = STORM_TEST_RESOURCES_DIR "/pdtmc/brp16_2.pm"; - std::string formulaAsString = "P<=0.84 [F s=5 ]"; + std::string formulaAsString = "P=? [F s=4 & i=N ]"; std::string constantsAsString = ""; //e.g. pL=0.9,TOACK=0.5 // Program and formula @@ -40,8 +40,7 @@ TEST(AssumptionCheckerTest, Brp) { std::shared_ptr> model = storm::api::buildSparseModel(program, formulas)->as>(); std::shared_ptr> dtmc = model->as>(); auto simplifier = storm::transformer::SparseParametricDtmcSimplifier>(*dtmc); - - ASSERT_TRUE(simplifier.simplify(*(formulas[0]))); // TODO: verwacht path formula? + ASSERT_TRUE(simplifier.simplify(*(formulas[0]))); model = simplifier.getSimplifiedModel(); dtmc = model->as>(); @@ -61,7 +60,7 @@ TEST(AssumptionCheckerTest, Brp) { expressionManager->getVariable("7").getExpression().getBaseExpressionPointer(), expressionManager->getVariable("5").getExpression().getBaseExpressionPointer(), storm::expressions::BinaryRelationExpression::RelationType::GreaterOrEqual)); - EXPECT_FALSE(checker.checkOnSamples(assumption)); + EXPECT_TRUE(checker.checkOnSamples(assumption)); auto emptyLattice = new storm::analysis::Lattice(storm::storage::BitVector(8), storm::storage::BitVector(8), 8); // Validate assumptions