|
|
@ -16,7 +16,7 @@ |
|
|
|
#include "src/settings/SettingMemento.h"
|
|
|
|
#include "src/parser/AutoParser.h"
|
|
|
|
|
|
|
|
TEST(SparseDtmcPrctlModelCheckerTest, Die) { |
|
|
|
TEST(NativeDtmcPrctlModelCheckerTest, Die) { |
|
|
|
std::shared_ptr<storm::models::sparse::Model<double>> abstractModel = storm::parser::AutoParser<>::parseModel(STORM_CPP_BASE_PATH "/examples/dtmc/die/die.tra", STORM_CPP_BASE_PATH "/examples/dtmc/die/die.lab", "", STORM_CPP_BASE_PATH "/examples/dtmc/die/die.coin_flips.trans.rew"); |
|
|
|
|
|
|
|
// A parser that we use for conveniently constructing the formulas.
|
|
|
@ -60,7 +60,7 @@ TEST(SparseDtmcPrctlModelCheckerTest, Die) { |
|
|
|
EXPECT_NEAR(3.6666650772094727, quantitativeResult4[0], storm::settings::getModule<storm::settings::modules::NativeEquationSolverSettings>().getPrecision()); |
|
|
|
} |
|
|
|
|
|
|
|
TEST(SparseDtmcPrctlModelCheckerTest, Crowds) { |
|
|
|
TEST(NativeDtmcPrctlModelCheckerTest, Crowds) { |
|
|
|
std::shared_ptr<storm::models::sparse::Model<double>> abstractModel = storm::parser::AutoParser<>::parseModel(STORM_CPP_BASE_PATH "/examples/dtmc/crowds/crowds5_5.tra", STORM_CPP_BASE_PATH "/examples/dtmc/crowds/crowds5_5.lab", "", ""); |
|
|
|
|
|
|
|
ASSERT_EQ(abstractModel->getType(), storm::models::ModelType::Dtmc); |
|
|
@ -97,7 +97,7 @@ TEST(SparseDtmcPrctlModelCheckerTest, Crowds) { |
|
|
|
EXPECT_NEAR(0.32153900158185761, quantitativeResult3[0], storm::settings::getModule<storm::settings::modules::NativeEquationSolverSettings>().getPrecision()); |
|
|
|
} |
|
|
|
|
|
|
|
TEST(SparseDtmcPrctlModelCheckerTest, SynchronousLeader) { |
|
|
|
TEST(NativeDtmcPrctlModelCheckerTest, SynchronousLeader) { |
|
|
|
std::shared_ptr<storm::models::sparse::Model<double>> abstractModel = storm::parser::AutoParser<>::parseModel(STORM_CPP_BASE_PATH "/examples/dtmc/synchronous_leader/leader4_8.tra", STORM_CPP_BASE_PATH "/examples/dtmc/synchronous_leader/leader4_8.lab", "", STORM_CPP_BASE_PATH "/examples/dtmc/synchronous_leader/leader4_8.pick.trans.rew"); |
|
|
|
|
|
|
|
ASSERT_EQ(abstractModel->getType(), storm::models::ModelType::Dtmc); |
|
|
@ -134,7 +134,7 @@ TEST(SparseDtmcPrctlModelCheckerTest, SynchronousLeader) { |
|
|
|
EXPECT_NEAR(1.0448979589010925, quantitativeResult3[0], storm::settings::getModule<storm::settings::modules::NativeEquationSolverSettings>().getPrecision()); |
|
|
|
} |
|
|
|
|
|
|
|
TEST(SparseDtmcPrctlModelCheckerTest, LRASingleBscc) { |
|
|
|
TEST(NativeDtmcPrctlModelCheckerTest, LRASingleBscc) { |
|
|
|
storm::storage::SparseMatrixBuilder<double> matrixBuilder; |
|
|
|
std::shared_ptr<storm::models::sparse::Dtmc<double>> dtmc; |
|
|
|
|
|
|
@ -214,7 +214,7 @@ TEST(SparseDtmcPrctlModelCheckerTest, LRASingleBscc) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
TEST(SparseDtmcPrctlModelCheckerTest, LRA) { |
|
|
|
TEST(NativeDtmcPrctlModelCheckerTest, LRA) { |
|
|
|
storm::storage::SparseMatrixBuilder<double> matrixBuilder; |
|
|
|
std::shared_ptr<storm::models::sparse::Dtmc<double>> mdp; |
|
|
|
|
|
|
|