Merge pull request #10127 from ethereum/fixIceSmtBitwise

[SMTChecker] Fix ICE when using >>>
This commit is contained in:
Leonardo
2020-10-28 09:28:18 +00:00
committed by GitHub
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -1653,7 +1653,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.