|
|
@ -78,15 +78,6 @@ TEST(DdJaniModelBuilderTest_Cudd, Dtmc) { |
|
|
|
|
|
|
|
// EXPECT_EQ(13ul, model->getNumberOfStates());
|
|
|
|
// EXPECT_EQ(20ul, model->getNumberOfTransitions());
|
|
|
|
|
|
|
|
// program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/brp-2-2.pm");
|
|
|
|
// janiModel = program.toJani();
|
|
|
|
//
|
|
|
|
// builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel);
|
|
|
|
// t1 = std::chrono::high_resolution_clock::now();
|
|
|
|
// builder.translate();
|
|
|
|
// t2 = std::chrono::high_resolution_clock::now();
|
|
|
|
// std::cout << "brp2: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl;
|
|
|
|
|
|
|
|
program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/brp-16-2.pm"); |
|
|
|
janiModel = program.toJani(); |
|
|
@ -95,38 +86,38 @@ TEST(DdJaniModelBuilderTest_Cudd, Dtmc) { |
|
|
|
model = builder.translate(); |
|
|
|
t2 = std::chrono::high_resolution_clock::now(); |
|
|
|
std::cout << "brp: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl; |
|
|
|
// // EXPECT_EQ(677ul, model->getNumberOfStates());
|
|
|
|
// // EXPECT_EQ(867ul, model->getNumberOfTransitions());
|
|
|
|
//
|
|
|
|
// program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/crowds-5-5.pm");
|
|
|
|
// janiModel = program.toJani();
|
|
|
|
// builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel);
|
|
|
|
// t1 = std::chrono::high_resolution_clock::now();
|
|
|
|
// model = builder.translate();
|
|
|
|
// t2 = std::chrono::high_resolution_clock::now();
|
|
|
|
// std::cout << "crowds: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl;
|
|
|
|
// // EXPECT_EQ(8607ul, model->getNumberOfStates());
|
|
|
|
// // EXPECT_EQ(15113ul, model->getNumberOfTransitions());
|
|
|
|
//
|
|
|
|
// program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/leader-3-5.pm");
|
|
|
|
// janiModel = program.toJani();
|
|
|
|
// builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel);
|
|
|
|
// t1 = std::chrono::high_resolution_clock::now();
|
|
|
|
// model = builder.translate();
|
|
|
|
// t2 = std::chrono::high_resolution_clock::now();
|
|
|
|
// std::cout << "lead: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl;
|
|
|
|
// // EXPECT_EQ(273ul, model->getNumberOfStates());
|
|
|
|
// // EXPECT_EQ(397ul, model->getNumberOfTransitions());
|
|
|
|
//
|
|
|
|
// program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/nand-5-2.pm");
|
|
|
|
// janiModel = program.toJani();
|
|
|
|
// builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel);
|
|
|
|
// t1 = std::chrono::high_resolution_clock::now();
|
|
|
|
// model = builder.translate();
|
|
|
|
// t2 = std::chrono::high_resolution_clock::now();
|
|
|
|
// std::cout << "nand: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl;
|
|
|
|
// // EXPECT_EQ(1728ul, model->getNumberOfStates());
|
|
|
|
// // EXPECT_EQ(2505ul, model->getNumberOfTransitions());
|
|
|
|
// EXPECT_EQ(677ul, model->getNumberOfStates());
|
|
|
|
// EXPECT_EQ(867ul, model->getNumberOfTransitions());
|
|
|
|
|
|
|
|
program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/crowds-5-5.pm"); |
|
|
|
janiModel = program.toJani(); |
|
|
|
builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel); |
|
|
|
t1 = std::chrono::high_resolution_clock::now(); |
|
|
|
model = builder.translate(); |
|
|
|
t2 = std::chrono::high_resolution_clock::now(); |
|
|
|
std::cout << "crowds: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl; |
|
|
|
// EXPECT_EQ(8607ul, model->getNumberOfStates());
|
|
|
|
// EXPECT_EQ(15113ul, model->getNumberOfTransitions());
|
|
|
|
|
|
|
|
program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/leader-3-5.pm"); |
|
|
|
janiModel = program.toJani(); |
|
|
|
builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel); |
|
|
|
t1 = std::chrono::high_resolution_clock::now(); |
|
|
|
model = builder.translate(); |
|
|
|
t2 = std::chrono::high_resolution_clock::now(); |
|
|
|
std::cout << "lead: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl; |
|
|
|
// EXPECT_EQ(273ul, model->getNumberOfStates());
|
|
|
|
// EXPECT_EQ(397ul, model->getNumberOfTransitions());
|
|
|
|
|
|
|
|
program = storm::parser::PrismParser::parse(STORM_CPP_TESTS_BASE_PATH "/functional/builder/nand-5-2.pm"); |
|
|
|
janiModel = program.toJani(); |
|
|
|
builder = storm::builder::DdJaniModelBuilder<storm::dd::DdType::CUDD, double>(janiModel); |
|
|
|
t1 = std::chrono::high_resolution_clock::now(); |
|
|
|
model = builder.translate(); |
|
|
|
t2 = std::chrono::high_resolution_clock::now(); |
|
|
|
std::cout << "nand: " << std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count() << std::endl; |
|
|
|
// EXPECT_EQ(1728ul, model->getNumberOfStates());
|
|
|
|
// EXPECT_EQ(2505ul, model->getNumberOfTransitions());
|
|
|
|
} |
|
|
|
|
|
|
|
//TEST(DdPrismModelBuilderTest_Cudd, Dtmc) {
|
|
|
|