solidity/test/libyul/yulOptimizerTests/loadResolver/second_store.yul

20 lines
399 B
Plaintext
Raw Normal View History

2019-05-21 13:52:15 +00:00
{
let x := calldataload(1)
sstore(x, 7)
sstore(calldataload(0), 6)
// We cannot replace this because we do not know
// if the two slots are different.
mstore(0, sload(x))
}
// ====
2019-05-27 22:14:01 +00:00
// step: loadResolver
2019-05-21 13:52:15 +00:00
// ----
// {
// let x := calldataload(1)
// sstore(x, 7)
// let _3 := 6
// let _4 := 0
// sstore(calldataload(_4), _3)
// mstore(_4, sload(x))
// }