mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Support shifts
This commit is contained in:
@@ -189,6 +189,12 @@ z3::expr Z3Interface::toZ3Expr(Expression const& _expr)
|
||||
return arguments[0] | arguments[1];
|
||||
else if (n == "bvxor")
|
||||
return arguments[0] ^ arguments[1];
|
||||
else if (n == "bvshl")
|
||||
return z3::shl(arguments[0], arguments[1]);
|
||||
else if (n == "bvlshr")
|
||||
return z3::lshr(arguments[0], arguments[1]);
|
||||
else if (n == "bvashr")
|
||||
return z3::ashr(arguments[0], arguments[1]);
|
||||
else if (n == "int2bv")
|
||||
{
|
||||
size_t size = std::stoul(_expr.arguments[1].name);
|
||||
|
||||
Reference in New Issue
Block a user