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