17GTEST_API_ AssertionResult
DoubleNearPredFormat(
const char* expr1,
const char* expr2,
const char* abs_error_expr, storm::RationalNumber val1,
18 storm::RationalNumber val2, storm::RationalNumber abs_error) {
20 if (diff <= abs_error)
21 return AssertionSuccess();
22 return AssertionFailure() <<
"The difference between " << expr1 <<
" and " << expr2 <<
" is " << diff <<
" (approx. "
40 for (
int i = 1; i < *argc; ++i) {
41 if (std::string(argv[i]) ==
"--nogurobi") {
50#ifdef STORM_HAVE_GUROBI
56 }
catch (storm::exceptions::GurobiLicenseException
const&) {
67bool z3AtLeastVersion(
unsigned expectedMajor,
unsigned expectedMinor,
unsigned expectedBuildNumber) {
68 std::vector<unsigned> actual(4), expected({expectedMajor, expectedMinor, expectedBuildNumber, 0u});
69 Z3_get_version(&actual[0], &actual[1], &actual[2], &actual[3]);
70 for (uint64_t i = 0; i < 4; ++i) {
71 if (actual[i] > expected[i]) {
74 if (actual[i] < expected[i]) {
#define STORM_LOG_WARN(message)
bool hasModule()
Returns true if the given module is registered.
void initialize(int *argc, char **argv)
std::unique_ptr< storm::solver::LpSolver< ValueType > > getLpSolver(std::string const &name, storm::solver::LpSolverTypeSelection solvType)
void initializeLogger()
Initializes the logging framework and sets up logging to console.
ValueType abs(ValueType const &number)
void setLogLevel(l3pp::LogLevel level)
Set the global log level.
TargetType convertNumber(SourceType const &number)
GTEST_API_ AssertionResult DoubleNearPredFormat(const char *expr1, const char *expr2, const char *abs_error_expr, storm::RationalNumber val1, storm::RationalNumber val2, storm::RationalNumber abs_error)