solidity/test/libyul/functionSideEffects/simple_functions.yul

15 lines
527 B
Plaintext
Raw Permalink Normal View History

2019-08-14 16:07:15 +00:00
{
function a() {}
function f() { mstore(0, 1) }
function g() { sstore(0, 1) }
function h() { let x := msize() }
function i() { let z := mload(0) }
}
// ----
2020-07-01 10:07:00 +00:00
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: movable, movable apart from effects, can be removed, can be removed if no msize
// f: writes memory
// g: writes storage
// h: can be removed, can be removed if no msize, reads memory
// i: movable apart from effects, can be removed if no msize, reads memory