mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
41 lines
2.8 KiB
Plaintext
41 lines
2.8 KiB
Plaintext
{
|
|
sstore(0, exp(0, 1))
|
|
sstore(1, exp(1, not(0)))
|
|
sstore(2, exp(0, 0))
|
|
sstore(3, exp(1, 2))
|
|
sstore(4, exp(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe, 1))
|
|
sstore(5, exp(
|
|
0x8000000000000000000000000000000000000000000000000000000000000000, 1
|
|
))
|
|
sstore(6, exp(not(0), 1))
|
|
sstore(7, exp(0xffffffffffffffffffffffffffffffff, 2))
|
|
sstore(8, exp(0xffffffffffffffff, 2))
|
|
sstore(9, exp(0xffffffffffffffffffffffffffffffff0000000000000000, 2))
|
|
sstore(10, exp(0xffffffffffffffffffffffffffffffffffffffffffffffff, 3))
|
|
sstore(11, exp(0xffffffffffffffffffffffffffffffff, 3))
|
|
sstore(12, exp(0xffffffffffffffff, 3))
|
|
sstore(13, exp(0xffffffffffffffffffffffffffffffff0000000000000000, 3))
|
|
sstore(14, exp(2, 256))
|
|
sstore(15, exp(2, 255))
|
|
}
|
|
// ----
|
|
// Trace:
|
|
// Memory dump:
|
|
// 0: 000000000000000000000000000000000000000000000000000000000000000f
|
|
// 20: 8000000000000000000000000000000000000000000000000000000000000000
|
|
// Storage dump:
|
|
// 0000000000000000000000000000000000000000000000000000000000000001: 0000000000000000000000000000000000000000000000000000000000000001
|
|
// 0000000000000000000000000000000000000000000000000000000000000002: 0000000000000000000000000000000000000000000000000000000000000001
|
|
// 0000000000000000000000000000000000000000000000000000000000000003: 0000000000000000000000000000000000000000000000000000000000000001
|
|
// 0000000000000000000000000000000000000000000000000000000000000004: fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe
|
|
// 0000000000000000000000000000000000000000000000000000000000000005: 8000000000000000000000000000000000000000000000000000000000000000
|
|
// 0000000000000000000000000000000000000000000000000000000000000006: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
|
// 0000000000000000000000000000000000000000000000000000000000000007: fffffffffffffffffffffffffffffffe00000000000000000000000000000001
|
|
// 0000000000000000000000000000000000000000000000000000000000000008: 00000000000000000000000000000000fffffffffffffffe0000000000000001
|
|
// 0000000000000000000000000000000000000000000000000000000000000009: 0000000000000000000000000000000100000000000000000000000000000000
|
|
// 000000000000000000000000000000000000000000000000000000000000000a: 0000000000000002ffffffffffffffffffffffffffffffffffffffffffffffff
|
|
// 000000000000000000000000000000000000000000000000000000000000000b: 00000000000000000000000000000002ffffffffffffffffffffffffffffffff
|
|
// 000000000000000000000000000000000000000000000000000000000000000c: 0000000000000000fffffffffffffffd0000000000000002ffffffffffffffff
|
|
// 000000000000000000000000000000000000000000000000000000000000000d: ffffffffffffffff000000000000000000000000000000000000000000000000
|
|
// 000000000000000000000000000000000000000000000000000000000000000f: 8000000000000000000000000000000000000000000000000000000000000000
|