2020-09-24 17:24:33 +00:00
|
|
|
contract C {
|
|
|
|
function f(bytes calldata b) external pure {
|
|
|
|
require(b.length == 30);
|
|
|
|
require(b[10] == 0xff);
|
|
|
|
require(b[b.length - 1] == 0xaa);
|
2022-05-05 09:38:16 +00:00
|
|
|
assert(bytes(b[10:]).length == 20); // should hold
|
|
|
|
// Disabled because of Spacer's nondeterminism.
|
|
|
|
//assert(bytes(b[10:])[0] == 0xff); // should hold
|
2020-10-27 08:24:32 +00:00
|
|
|
//assert(bytes(b[10:])[5] == 0xff); // Removed because of Spacer's nondeterminism
|
2020-10-08 09:07:31 +00:00
|
|
|
//assert(bytes(b[10:])[19] == 0xaa); // Removed because of Spacer nondeterminism
|
2020-09-24 17:24:33 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-09-24 17:24:33 +00:00
|
|
|
// ----
|