solidity/test/libyul/functionSideEffects/storage.yul

13 lines
452 B
Plaintext
Raw Normal View History

2020-08-14 15:15:35 +00:00
{
function a() { sstore(0, 1) }
function f() { a() }
function g() { pop(callcode(100, 0x010, 10, 0x00, 32, 0x0100, 32))}
function h() { pop(sload(0))}
}
// ----
2020-07-01 10:07:00 +00:00
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: writes storage
// f: writes storage
// g: writes other state, writes storage, writes memory
// h: movable apart from effects, can be removed, can be removed if no msize, reads storage