Browse Source

Performance tests now run fine (and take about 3 minutes).

tempestpy_adaptions
dehnert 12 years ago
parent
commit
2fcd6c95fb
  1. 4
      test/performance/modelchecker/GmmxxDtmcPrctModelCheckerTest.cpp
  2. 18
      test/performance/modelchecker/GmmxxMdpPrctModelCheckerTest.cpp

4
test/performance/modelchecker/GmmxxDtmcPrctModelCheckerTest.cpp

@ -95,7 +95,7 @@ TEST(GmmxxDtmcPrctModelCheckerTest, SynchronousLeader) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0.9999996339), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[0] - 0.999394979327824395376467), s->get<double>("precision"));
delete probFormula;
delete result;
@ -108,7 +108,7 @@ TEST(GmmxxDtmcPrctModelCheckerTest, SynchronousLeader) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 1.025217446), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[0] - 1.02521744572240791626427), s->get<double>("precision"));
delete rewardFormula;
delete result;

18
test/performance/modelchecker/GmmxxMdpPrctModelCheckerTest.cpp

@ -116,7 +116,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 1), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 1), s->get<double>("precision"));
delete probFormula;
delete result;
@ -131,7 +131,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0.4370098592), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 0.4370098591707694546393), s->get<double>("precision"));
delete probFormula;
delete result;
@ -146,7 +146,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0.4370098592), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 0.5282872761373342829216), s->get<double>("precision"));
delete probFormula;
delete result;
@ -156,13 +156,13 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
storm::property::prctl::Not<double>* notFormula = new storm::property::prctl::Not<double>(apFormula2);
andFormula = new storm::property::prctl::And<double>(apFormula, notFormula);
eventuallyFormula = new storm::property::prctl::Eventually<double>(andFormula);
probFormula = new storm::property::prctl::ProbabilisticNoBoundOperator<double>(eventuallyFormula, true);
probFormula = new storm::property::prctl::ProbabilisticNoBoundOperator<double>(eventuallyFormula, false);
result = mc.checkNoBoundOperator(*probFormula);
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0.1034345104), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 0.10343451035775527713), s->get<double>("precision"));
delete probFormula;
delete result;
@ -175,7 +175,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 0), s->get<double>("precision"));
delete probFormula;
delete result;
@ -188,7 +188,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 0), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 0), s->get<double>("precision"));
delete probFormula;
delete result;
@ -199,7 +199,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
result = mc.checkNoBoundOperator(*rewardFormula);
ASSERT_LT(std::abs((*result)[0] - 1725.593313), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 1725.5933133943854045), s->get<double>("precision"));
delete rewardFormula;
delete result;
@ -212,7 +212,7 @@ TEST(GmmxxMdpPrctModelCheckerTest, Consensus) {
ASSERT_NE(nullptr, result);
ASSERT_LT(std::abs((*result)[0] - 2179.014847), s->get<double>("precision"));
ASSERT_LT(std::abs((*result)[31168] - 2179.014847073392047605011), s->get<double>("precision"));
delete rewardFormula;
delete result;

Loading…
Cancel
Save