Browse Source

Added missing case for Power when converting to z3::expr

Former-commit-id: 4279fba636
tempestpy_adaptions
TimQu 8 years ago
parent
commit
d1ea675245
  1. 2
      src/adapters/Z3ExpressionAdapter.cpp

2
src/adapters/Z3ExpressionAdapter.cpp

@ -177,6 +177,8 @@ namespace storm {
return ite(leftResult <= rightResult, leftResult, rightResult);
case storm::expressions::BinaryNumericalFunctionExpression::OperatorType::Max:
return ite(leftResult >= rightResult, leftResult, rightResult);
case storm::expressions::BinaryNumericalFunctionExpression::OperatorType::Power:
return pw(leftResult,rightResult);
default:
STORM_LOG_THROW(false, storm::exceptions::ExpressionEvaluationException, "Cannot evaluate expression: unknown numerical binary operator '" << static_cast<int>(expression.getOperatorType()) << "' in expression " << expression << ".");
}

Loading…
Cancel
Save