Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
DftEnvironmentTest.cpp
Go to the documentation of this file.
1#include "storm-config.h"
2#include "test/storm_gtest.h"
3
9
10namespace {
11
12TEST(DftEnvironmentTest, Defaults) {
14
15 // Analysis environment
16 EXPECT_FALSE(env.analysis().isUseModularisation());
17 EXPECT_FALSE(env.analysis().isSolveWithSMT());
18 EXPECT_EQ(env.analysis().getChunksize(), 1ul);
19 EXPECT_FALSE(env.analysis().isApproximationErrorSet());
21
22 // Model builder environment
23 EXPECT_TRUE(env.modelBuilder().isUseSymmetryReduction());
24 EXPECT_FALSE(env.modelBuilder().isAllowDCForRelevantEvents());
25 EXPECT_FALSE(env.modelBuilder().isAddLabelsClaiming());
26 EXPECT_FALSE(env.modelBuilder().isMaxDepthSet());
27 EXPECT_FALSE(env.modelBuilder().isTakeFirstDependency());
28 EXPECT_FALSE(env.modelBuilder().isUniqueFailedBE());
29
30 // Transformation environment
31 EXPECT_FALSE(env.transformation().isUseBisimulation());
32 EXPECT_FALSE(env.transformation().isEliminateChains());
34}
35
36TEST(DftEnvironmentTest, GetSet) {
45
46 EXPECT_FALSE(env.modelBuilder().isUseSymmetryReduction());
47 EXPECT_TRUE(env.modelBuilder().isMaxDepthSet());
48 EXPECT_EQ(env.modelBuilder().getMaxDepth(), 3ul);
49 EXPECT_TRUE(env.analysis().isUseModularisation());
50 EXPECT_TRUE(env.analysis().isApproximationErrorSet());
51 EXPECT_EQ(env.analysis().getApproximationError(), 0.5);
52 EXPECT_TRUE(env.transformation().isUseBisimulation());
53 EXPECT_TRUE(env.transformation().isEliminateChains());
55
57 EXPECT_FALSE(env.modelBuilder().isMaxDepthSet());
59 EXPECT_FALSE(env.analysis().isApproximationErrorSet());
60}
61
62TEST(DftEnvironmentTest, CopyIsIndependent) {
66
68 copy.analysis().setUseModularisation(false);
70
71 EXPECT_TRUE(env.analysis().isUseModularisation());
72 EXPECT_FALSE(copy.analysis().isUseModularisation());
73 EXPECT_TRUE(env.transformation().isUseBisimulation());
74 EXPECT_FALSE(copy.transformation().isUseBisimulation());
75}
76
77} // namespace
TEST(RegionConstraintCheckerTest, AffineConstraintHoldsThroughout)
storm::dft::builder::ApproximationHeuristic getApproximationHeuristic() const
Environment for storm-dft.
AnalysisEnvironment & analysis()
ModelBuilderEnvironment & modelBuilder()
TransformationEnvironment & transformation()
storm::transformer::EliminationLabelBehavior getLabelBehavior() const
void setLabelBehavior(storm::transformer::EliminationLabelBehavior value)