|
|
@ -13,7 +13,7 @@ TEST(PrismProgramTest, FlattenModules) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(74ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -24,7 +24,7 @@ TEST(PrismProgramTest, FlattenModules_Wlan_Mathsat) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(179ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -35,7 +35,7 @@ TEST(PrismProgramTest, FlattenModules_Csma_Mathsat) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(70ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -46,7 +46,7 @@ TEST(PrismProgramTest, FlattenModules_Firewire_Mathsat) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(5024ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -57,7 +57,7 @@ TEST(PrismProgramTest, FlattenModules_Coin_Mathsat) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(13ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -68,7 +68,7 @@ TEST(PrismProgramTest, FlattenModules_Dice_Mathsat) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::MathsatSmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(16ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -81,7 +81,7 @@ TEST(PrismProgramTest, FlattenModules_Leader_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(74ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -92,7 +92,7 @@ TEST(PrismProgramTest, FlattenModules_Wlan_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(179ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -103,7 +103,7 @@ TEST(PrismProgramTest, FlattenModules_Csma_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(70ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -114,7 +114,7 @@ TEST(PrismProgramTest, FlattenModules_Firewire_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(5024ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -125,7 +125,7 @@ TEST(PrismProgramTest, FlattenModules_Coin_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(13ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
@ -136,7 +136,7 @@ TEST(PrismProgramTest, FlattenModules_Dice_Z3) { |
|
|
|
|
|
|
|
std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory = std::make_shared<storm::utility::solver::Z3SmtSolverFactory>(); |
|
|
|
|
|
|
|
ASSERT_NO_THROW(program = program.flattenModules(smtSolverFactory)); |
|
|
|
ASSERT_NO_THROW(program = program.substituteFormulas().flattenModules(smtSolverFactory)); |
|
|
|
EXPECT_EQ(1ull, program.getNumberOfModules()); |
|
|
|
EXPECT_EQ(16ull, program.getModule(0).getNumberOfCommands()); |
|
|
|
} |
|
|
|