2019-12-17 20:37:05 +00:00
|
|
|
{
|
|
|
|
sstore(0, smod(0, 1))
|
|
|
|
sstore(1, smod(1, not(0)))
|
|
|
|
sstore(2, smod(0, 0))
|
|
|
|
sstore(3, smod(1, 2))
|
|
|
|
sstore(4, smod(not(0), 1))
|
|
|
|
sstore(5, smod(
|
|
|
|
0x8000000000000000000000000000000000000000000000000000000000000000, 1
|
|
|
|
))
|
|
|
|
sstore(6, smod(not(0), 1))
|
|
|
|
sstore(7, smod(0xffffffffffffffffffffffffffffffff, 1))
|
|
|
|
sstore(8, smod(0xffffffffffffffffffffffffffffffffffffffffffffffff, 0xfffffffffffffffffffffffffffffffe))
|
|
|
|
sstore(9, smod(0xffffffffffffffffffffffffffffffffffffffffffffffff, 5))
|
|
|
|
sstore(10, smod(0xffffffffffffffffffffffffffffffffffffffffffffffff, 4))
|
|
|
|
sstore(11, smod(0xffffffffffffffffffffffffffffffff, 3))
|
|
|
|
sstore(12, smod(0xffffffffffffffff, 3))
|
|
|
|
sstore(13, smod(0xffffffffffffffffffffffffffffffff0000000000000000, 0xffffffffffffffff43342553000))
|
|
|
|
sstore(14, smod(
|
|
|
|
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd,
|
|
|
|
0xffffffffffffffff43342553000
|
|
|
|
))
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Trace:
|
|
|
|
// Memory dump:
|
2020-01-28 12:32:43 +00:00
|
|
|
// 0: 000000000000000000000000000000000000000000000000000000000000000e
|
|
|
|
// 20: fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
|
2019-12-17 20:37:05 +00:00
|
|
|
// Storage dump:
|
2020-01-28 12:32:43 +00:00
|
|
|
// 0000000000000000000000000000000000000000000000000000000000000003: 0000000000000000000000000000000000000000000000000000000000000001
|
|
|
|
// 0000000000000000000000000000000000000000000000000000000000000008: 000000000000000000000000000000000000000000000001ffffffffffffffff
|
|
|
|
// 000000000000000000000000000000000000000000000000000000000000000a: 0000000000000000000000000000000000000000000000000000000000000003
|
|
|
|
// 000000000000000000000000000000000000000000000000000000000000000d: 0000000000000000000000000000000000000aacffffffff8b3c03a314db9000
|
|
|
|
// 000000000000000000000000000000000000000000000000000000000000000e: fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
|