19#if defined STORM_HAVE_MATHSAT && !defined STORM_DEFAULT_SMT_SOLVER_MATHSAT
20#define STORM_TEST_ALTERNATIVE_SMT_SOLVER "mathsat"
21#define STORM_TEST_ALTERNATIVE_SMT_SOLVER_TYPE storm::solver::SmtSolverType::Mathsat
22#elif defined STORM_HAVE_Z3 && !defined STORM_DEFAULT_SMT_SOLVER_Z3
23#define STORM_TEST_ALTERNATIVE_SMT_SOLVER "z3"
24#define STORM_TEST_ALTERNATIVE_SMT_SOLVER_TYPE storm::solver::SmtSolverType::Z3
35TEST(EnvironmentBuilderTest, TopLevelEnvironmentMatchesDefault) {
42TEST(EnvironmentBuilderTest, SolverEnvironmentMatchesDefault) {
143TEST(EnvironmentBuilderTest, ModelCheckerEnvironmentMatchesDefault) {
175TEST(EnvironmentBuilderTest, DdAndExplorationEnvironmentMatchDefault) {
194TEST(EnvironmentBuilderTest, BuildsEnvironmentFromSettings) {
207TEST(EnvironmentBuilderTest, SoundFlagIsResetByRestoreDefaults) {
213 EXPECT_FALSE(buildFromSettings().solver().isForceSoundness());
216#ifdef STORM_TEST_ALTERNATIVE_SMT_SOLVER
217TEST(EnvironmentBuilderTest, SmtSolverSelectionIsAppliedToTheBuiltEnvironment) {
bool isPrecisionSetFromDefault() const
bool isRelativePrecision() const
ConditionalAlgorithmSetting getAlgorithm() const
storm::RationalNumber getPrecision() const
uint64_t getMaximalMemory() const
Retrieves the maximal amount of memory (in megabytes) that CUDD can occupy.
bool isReorderingEnabled() const
double getConstantPrecision() const
Retrieves the precision up to which constants are considered to be different.
storm::dd::CuddReorderingTechnique getReorderingTechnique() const
CuddDdManagerEnvironment & cudd()
SylvanDdManagerEnvironment & sylvan()
storm::solver::EigenLinearEquationSolverMethod const & getMethod() const
uint64_t const & getMaximalNumberOfIterations() const
bool isMethodSetFromDefault() const
uint64_t const & getRestartThreshold() const
storm::RationalNumber const & getPrecision() const
storm::solver::EigenLinearEquationSolverPreconditioner const & getPreconditioner() const
bool const & isEliminateEntryStatesLastSet() const
uint64_t const & getMaximalSccSize() const
storm::solver::stateelimination::EliminationOrder const & getOrder() const
storm::solver::stateelimination::EliminationMethod const & getMethod() const
double modelTolerance() const
ExplorationEnvironment & exploration()
SolverEnvironment & solver()
ModelCheckerEnvironment & modelchecker()
storm::modelchecker::exploration_detail::NextStateHeuristic getNextStateHeuristic() const
storm::modelchecker::exploration_detail::PrecomputationType getPrecomputationType() const
std::optional< uint64_t > const & getSampledPathsUntilPrecomputation() const
double getPrecision() const
uint64_t getStepsUntilPrecomputation() const
storm::RationalNumber const & getPrecision() const
uint64_t const & getMaximalNumberOfIterations() const
bool const & isMethodSetFromDefault() const
bool const & getRelativeTerminationCriterion() const
storm::solver::GameMethod const & getMethod() const
bool isMILPPresolverEnabled() const
double getIntegerTolerance() const
storm::RationalNumber const & getPrecision() const
uint64_t const & getMaximalNumberOfIterations() const
storm::solver::GmmxxLinearEquationSolverMethod const & getMethod() const
uint64_t const & getRestartThreshold() const
storm::solver::GmmxxLinearEquationSolverPreconditioner const & getPreconditioner() const
double getIntegerTolerance() const
uint64_t getNumberOfConcurrentMipThreads() const
uint64_t getMIPFocus() const
uint64_t getNumberOfThreads() const
storm::solver::GurobiSolverMethod const & getMethod() const
storm::RationalNumber const & getAperiodicFactor() const
storm::solver::LraMethod const & getNondetLraMethod() const
bool isMaximalIterationCountSet() const
bool const & isDetLraMethodSetFromDefault() const
bool const & isNondetLraMethodSetFromDefault() const
storm::RationalNumber const & getPrecision() const
bool const & getRelativeTerminationCriterion() const
storm::solver::LraMethod const & getDetLraMethod() const
bool getUseEqualityForSingleActions() const
bool getUseNonTrivialBounds() const
bool getOptimizeOnlyForInitialState() const
uint64_t const & getMaximalNumberOfIterations() const
storm::solver::MultiplicationStyle const & getMultiplicationStyle() const
storm::RationalNumber const & getPrecision() const
bool const & isMethodSetFromDefault() const
storm::solver::MinMaxMethod const & getMethod() const
MinMaxLpSolverEnvironment & lp()
bool isForceRequireUnique() const
bool const & getRelativeTerminationCriterion() const
std::string const & getExportCdfDirectory() const
MultiObjectiveModelCheckerEnvironment & multi()
SteadyStateDistributionAlgorithm getSteadyStateDistributionAlgorithm() const
bool isExportCdfSet() const
bool isLtl2daToolSet() const
bool isFilterRewZeroSet() const
ConditionalModelCheckerEnvironment & conditional()
bool getUseIndicatorConstraints() const
EncodingType const & getEncodingType() const
storm::modelchecker::multiobjective::MultiObjectiveMethod const & getMethod() const
bool isExportPlotSet() const
bool isApproximationTradeoffSet() const
Configure approximation tradeoff between accuracy of weighted sum optimization vs.
bool getUseBsccOrderEncoding() const
bool isSchedulerRestrictionSet() const
bool isPrintResultsSet() const
storm::RationalNumber const & getPrecision() const
bool isMaxStepsSet() const
bool getUseRedundantBsccConstraints() const
PrecisionType const & getPrecisionType() const
bool const & isTypeSetFromDefault() const
storm::solver::MultiplierType const & getType() const
storm::RationalNumber const & getPrecision() const
bool isSymmetricUpdatesSet() const
uint64_t const & getMaximalNumberOfIterations() const
bool const & isMethodSetFromDefault() const
bool const & getRelativeTerminationCriterion() const
storm::solver::MultiplicationStyle const & getPowerMethodMultiplicationStyle() const
storm::solver::NativeLinearEquationSolverMethod const & getMethod() const
storm::RationalNumber const & getSorOmega() const
std::optional< storm::RationalNumber > const & getUpperBoundGuessingFactor() const
TopologicalSolverEnvironment & topological()
OviSolverEnvironment & ovi()
EigenSolverEnvironment & eigen()
MinMaxSolverEnvironment & minMax()
MultiplierEnvironment & multiplier()
storm::solver::EquationSolverType const & getLinearEquationSolverType() const
EliminationSolverEnvironment & elimination()
bool isLinearEquationSolverTypeSetFromDefaultValue() const
GlpkSolverEnvironment & glpk()
bool isLpSolverTypeSetFromDefaultValue() const
uint64_t getShowProgressDelay() const
GameSolverEnvironment & game()
bool isForceExact() const
TimeBoundedSolverEnvironment & timeBounded()
storm::solver::LpSolverType const & getLpSolverType() const
bool isSmtSolverTypeSetFromDefaultValue() const
NativeSolverEnvironment & native()
GurobiSolverEnvironment & gurobi()
GmmxxSolverEnvironment & gmmxx()
LongRunAverageSolverEnvironment & lra()
storm::solver::SmtSolverType const & getSmtSolverType() const
Retrieves the SMT solver that is currently selected.
bool isForceSoundness() const
bool isVerboseSet() const
uint64_t getMaximalMemory() const
Retrieves the maximal amount of memory (in megabytes) that Sylvan can occupy.
uint64_t getNumberOfThreads() const
Retrieves the number of threads used by Sylvan.
bool const & getRelativeTerminationCriterion() const
bool const & isMaMethodSetFromDefault() const
storm::RationalNumber const & getPrecision() const
storm::RationalNumber const & getUnifPlusKappa() const
storm::solver::MaBoundedReachabilityMethod const & getMaMethod() const
storm::solver::MinMaxMethod const & getUnderlyingMinMaxMethod() const
storm::solver::EquationSolverType const & getUnderlyingEquationSolverType() const
bool const & isUnderlyingMinMaxMethodSetFromDefault() const
bool isExtendRelevantValues() const
bool const & isUnderlyingEquationSolverTypeSetFromDefault() const
static storm::Environment buildEnvironment()
void setFromExplodedString(std::vector< std::string > const &commandLineArguments)
This function parses the given command line arguments (represented by several strings) and sets all r...
modules::ModuleSettings const & getModule(std::string const &moduleName) const
Retrieves the settings of the module with the given name.
static const std::string moduleName
static const std::string moduleName
void restoreDefaults()
Restores the default values for all arguments of all options and marks all options as not set.
SettingsType const & getModule()
Get module.
SettingsManager & mutableManager()
Retrieves the settings manager.
TEST(EnvironmentBuilderTest, MissingModulesKeepDefaults)