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

25 lines
512 B
Plaintext
Raw Normal View History

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