Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
storm::test Namespace Reference

Namespaces

namespace  bisimulation
 Shared helpers for the bisimulation tests, cf.

Classes

struct  IsExtendedNumber
struct  IsExtendedNumber< storm::utility::ExtendedNumber< T > >
struct  FiniteValueTypeOf
 The value type underlying a possibly extended one. More...
struct  FiniteValueTypeOf< storm::utility::ExtendedNumber< T > >

Functions

std::vector< storm::solver::SmtSolverType > smtSolversUnderTest ()
std::shared_ptr< storm::utility::solver::SmtSolverFactory > smtSolverFactory (storm::solver::SmtSolverType type)
std::string smtSolverName (testing::TestParamInfo< storm::solver::SmtSolverType > const &info)
storm::expressions::Expression pigeonholeFormula (storm::expressions::ExpressionManager &manager, uint64_t holes)
 Create the (unsatisfiable) pigeonhole formula for the given number of holes and one more pigeon.
void checkSmtSolverTimeout (storm::solver::SmtSolver &solver, storm::expressions::ExpressionManager &manager)
 Checks that the given solver aborts a hard query once the timeout is exceeded and remains usable afterwards.
void initialize (int *argc, char **argv)
bool testGurobiLicense ()
template<typename T>
bool isInfiniteValue (storm::utility::ExtendedNumber< T > const &value)
template<typename T>
requires (!IsExtendedNumber<T>::value)
bool isInfiniteValue (T const &)
template<typename T>
T const & finiteValue (storm::utility::ExtendedNumber< T > const &value)
template<typename T>
requires (!IsExtendedNumber<T>::value)
T const & finiteValue (T const &value)
void enableErrorOutput ()
void disableOutput ()

Variables

bool noGurobi = false

Function Documentation

◆ checkSmtSolverTimeout()

void storm::test::checkSmtSolverTimeout ( storm::solver::SmtSolver & solver,
storm::expressions::ExpressionManager & manager )
inline

Checks that the given solver aborts a hard query once the timeout is exceeded and remains usable afterwards.

Definition at line 49 of file SmtSolverTimeoutTestUtils.h.

◆ disableOutput()

void storm::test::disableOutput ( )
inline

Definition at line 125 of file storm_gtest.h.

◆ enableErrorOutput()

void storm::test::enableErrorOutput ( )
inline

Definition at line 118 of file storm_gtest.h.

◆ finiteValue() [1/2]

template<typename T>
T const & storm::test::finiteValue ( storm::utility::ExtendedNumber< T > const & value)

Definition at line 72 of file storm_gtest.h.

◆ finiteValue() [2/2]

template<typename T>
requires (!IsExtendedNumber<T>::value)
T const & storm::test::finiteValue ( T const & value)

Definition at line 78 of file storm_gtest.h.

◆ initialize()

void storm::test::initialize ( int * argc,
char ** argv )

Definition at line 36 of file storm_gtest.cpp.

◆ isInfiniteValue() [1/2]

template<typename T>
bool storm::test::isInfiniteValue ( storm::utility::ExtendedNumber< T > const & value)

Definition at line 61 of file storm_gtest.h.

◆ isInfiniteValue() [2/2]

template<typename T>
requires (!IsExtendedNumber<T>::value)
bool storm::test::isInfiniteValue ( T const & )

Definition at line 67 of file storm_gtest.h.

◆ pigeonholeFormula()

storm::expressions::Expression storm::test::pigeonholeFormula ( storm::expressions::ExpressionManager & manager,
uint64_t holes )
inline

Create the (unsatisfiable) pigeonhole formula for the given number of holes and one more pigeon.

Proving its unsatisfiability takes solvers a very long time, which makes it suitable for testing timeouts.

Definition at line 18 of file SmtSolverTimeoutTestUtils.h.

◆ smtSolverFactory()

std::shared_ptr< storm::utility::solver::SmtSolverFactory > storm::test::smtSolverFactory ( storm::solver::SmtSolverType type)
inline

Definition at line 30 of file SmtSolverTestUtils.h.

◆ smtSolverName()

std::string storm::test::smtSolverName ( testing::TestParamInfo< storm::solver::SmtSolverType > const & info)
inline

Definition at line 42 of file SmtSolverTestUtils.h.

◆ smtSolversUnderTest()

std::vector< storm::solver::SmtSolverType > storm::test::smtSolversUnderTest ( )
inline

Definition at line 15 of file SmtSolverTestUtils.h.

◆ testGurobiLicense()

bool storm::test::testGurobiLicense ( )

Definition at line 51 of file storm_gtest.cpp.

Variable Documentation

◆ noGurobi

bool storm::test::noGurobi = false

Definition at line 34 of file storm_gtest.cpp.