18GTEST_API_ AssertionResult
DoubleNearPredFormat(
const char* expr1,
const char* expr2,
const char* abs_error_expr, storm::RationalNumber val1,
19 storm::RationalNumber val2, storm::RationalNumber abs_error) {
21 if (diff <= abs_error) {
22 return AssertionSuccess();
24 return AssertionFailure() <<
"The difference between " << expr1 <<
" and " << expr2 <<
" is " << diff <<
" (approx. "
42 for (
int i = 1; i < *argc; ++i) {
43 if (std::string(argv[i]) ==
"--nogurobi") {
52#ifdef STORM_HAVE_GUROBI
59 }
catch (storm::exceptions::GurobiLicenseException
const&) {
70bool z3AtLeastVersion(
unsigned expectedMajor,
unsigned expectedMinor,
unsigned expectedBuildNumber) {
71 std::vector<unsigned> actual(4), expected({expectedMajor, expectedMinor, expectedBuildNumber, 0u});
72 Z3_get_version(&actual[0], &actual[1], &actual[2], &actual[3]);
73 for (uint64_t i = 0; i < 4; ++i) {
74 if (actual[i] > expected[i]) {
77 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(storm::Environment const &env, 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)