mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix ICE when using >>>
This commit is contained in:
parent
07e3f60ffc
commit
9cc37c3fa4
@ -1627,7 +1627,8 @@ smtutil::Expression SMTEncoder::bitwiseOperation(
|
||||
result = bvLeft << bvRight;
|
||||
break;
|
||||
case Token::SHR:
|
||||
solAssert(false, "");
|
||||
result = bvLeft >> bvRight;
|
||||
break;
|
||||
case Token::SAR:
|
||||
result = isSigned ?
|
||||
smtutil::Expression::ashr(bvLeft, bvRight) :
|
||||
|
@ -0,0 +1,10 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f() public pure {
|
||||
fixed x;
|
||||
assert(x >>> 6 == 0);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// UnimplementedFeatureError: Not yet implemented - FixedPointType.
|
Loading…
Reference in New Issue
Block a user