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

21 lines
475 B
Plaintext
Raw Normal View History

2019-05-27 22:14:01 +00:00
{
mstore(calldataload(0), calldataload(10))
if calldataload(1) {
mstore(add(calldataload(0), 0x20), 1)
}
let t := mload(add(calldataload(0), 0x20))
let q := mload(calldataload(0))
sstore(t, q)
}
// ----
// step: loadResolver
//
2019-05-27 22:14:01 +00:00
// {
// let _2 := calldataload(10)
// let _4 := calldataload(0)
// mstore(_4, _2)
// let _5 := 1
// if calldataload(_5) { mstore(add(_4, 0x20), _5) }
// sstore(mload(add(_4, 0x20)), _2)
// }