mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
{
|
|
{
|
|
mstore(0x40, memoryguard(128))
|
|
sstore(g(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31), 0)
|
|
}
|
|
function g(b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31) -> v {
|
|
sstore(0, b14)
|
|
sstore(1, b15)
|
|
sstore(2, b16)
|
|
sstore(3, b17)
|
|
sstore(4, b18)
|
|
sstore(5, b19)
|
|
sstore(6, b29)
|
|
sstore(7, b30)
|
|
sstore(8, b31)
|
|
v := add(b1,b31)
|
|
}
|
|
|
|
}
|
|
// ----
|
|
// step: stackLimitEvader
|
|
//
|
|
// {
|
|
// {
|
|
// mstore(0x40, memoryguard(0x0340))
|
|
// sstore(g(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31), 0)
|
|
// }
|
|
// function g(b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31) -> v
|
|
// {
|
|
// mstore(0x0320, b1)
|
|
// mstore(0x0300, b2)
|
|
// mstore(0x02e0, b3)
|
|
// mstore(0x02c0, b4)
|
|
// mstore(0x02a0, b5)
|
|
// mstore(0x0280, b6)
|
|
// mstore(0x0260, b7)
|
|
// mstore(0x0240, b8)
|
|
// mstore(0x0220, b9)
|
|
// mstore(0x0200, b10)
|
|
// mstore(0x01e0, b11)
|
|
// mstore(0x01c0, b12)
|
|
// mstore(0x01a0, b13)
|
|
// mstore(0x0180, b14)
|
|
// mstore(0x0160, b15)
|
|
// mstore(0x0140, b16)
|
|
// mstore(0xc0, b17)
|
|
// mstore(0xa0, b18)
|
|
// mstore(0x80, b19)
|
|
// mstore(0xe0, b29)
|
|
// mstore(0x0120, b30)
|
|
// mstore(0x0100, b31)
|
|
// sstore(0, mload(0x0180))
|
|
// sstore(1, mload(0x0160))
|
|
// sstore(2, mload(0x0140))
|
|
// sstore(3, mload(0xc0))
|
|
// sstore(4, mload(0xa0))
|
|
// sstore(5, mload(0x80))
|
|
// sstore(6, mload(0xe0))
|
|
// sstore(7, mload(0x0120))
|
|
// sstore(8, mload(0x0100))
|
|
// v := add(mload(0x0320), mload(0x0100))
|
|
// }
|
|
// }
|