Browse Source

Z3Adapter: Fixing translation of XOR operators - expression's operator^ is supposed to be power, not xor.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
46462d6556
  1. 2
      src/storm/adapters/Z3ExpressionAdapter.cpp

2
src/storm/adapters/Z3ExpressionAdapter.cpp

@ -115,7 +115,7 @@ namespace storm {
case Z3_OP_IFF: case Z3_OP_IFF:
return storm::expressions::iff(this->translateExpression(expr.arg(0)), this->translateExpression(expr.arg(1))); return storm::expressions::iff(this->translateExpression(expr.arg(0)), this->translateExpression(expr.arg(1)));
case Z3_OP_XOR: case Z3_OP_XOR:
return this->translateExpression(expr.arg(0)) ^ this->translateExpression(expr.arg(1));
return storm::expressions::xclusiveor(this->translateExpression(expr.arg(0)), this->translateExpression(expr.arg(1)));
case Z3_OP_NOT: case Z3_OP_NOT:
return !this->translateExpression(expr.arg(0)); return !this->translateExpression(expr.arg(0));
case Z3_OP_IMPLIES: case Z3_OP_IMPLIES:

Loading…
Cancel
Save