solidity/test/libyul/functionSideEffects/multi_calls.yul

23 lines
481 B
Plaintext
Raw Normal View History

2019-08-14 16:07:15 +00:00
{
function a() {
b()
}
function b() {
sstore(0, 1)
b()
}
function c() {
mstore(0, 1)
a()
d()
}
function d() {
}
}
// ----
2020-07-01 10:07:00 +00:00
// : movable, movable apart from effects, can be removed, can be removed if no msize
// a: can loop, writes storage
// b: can loop, writes storage
// c: can loop, writes storage, writes memory
// d: movable, movable apart from effects, can be removed, can be removed if no msize