solidity/test/libyul/functionSideEffects/storage.yul
2020-08-18 14:53:59 +02:00

13 lines
452 B
Plaintext

{
function a() { sstore(0, 1) }
function f() { a() }
function g() { pop(callcode(100, 0x010, 10, 0x00, 32, 0x0100, 32))}
function h() { pop(sload(0))}
}
// ----
// : 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