From 46462d65568fccd64cbd4046d1952f5c34332916 Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Wed, 17 Feb 2021 20:55:04 +0100 Subject: [PATCH] Z3Adapter: Fixing translation of XOR operators - expression's operator^ is supposed to be power, not xor. --- src/storm/adapters/Z3ExpressionAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/adapters/Z3ExpressionAdapter.cpp b/src/storm/adapters/Z3ExpressionAdapter.cpp index b84c9ba08..b2c2434e1 100644 --- a/src/storm/adapters/Z3ExpressionAdapter.cpp +++ b/src/storm/adapters/Z3ExpressionAdapter.cpp @@ -115,7 +115,7 @@ namespace storm { case Z3_OP_IFF: return storm::expressions::iff(this->translateExpression(expr.arg(0)), this->translateExpression(expr.arg(1))); 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: return !this->translateExpression(expr.arg(0)); case Z3_OP_IMPLIES: