Fix ICE when bitwise operator on fixed bytes

This commit is contained in:
Leonardo Alt
2020-07-15 19:32:15 +02:00
parent bd6cd027a3
commit 46653b2d43
6 changed files with 40 additions and 11 deletions
@@ -0,0 +1,8 @@
pragma experimental SMTChecker;
contract C {
function f() public pure returns (byte) {
return (byte("") & (""));
}
}
// ----
// Warning 5084: (101-109): Type conversion is not yet fully supported and might yield false positives.
@@ -0,0 +1,9 @@
pragma experimental SMTChecker;
contract Simp {
function f3() public pure returns (byte) {
bytes memory y = "def";
return y[0] ^ "e";
}
}
// ----
// Warning 1093: (142-152): Assertion checker does not yet implement this bitwise operator.