solidity/test/libyul/yulOptimizerTests/fullSuite/name_cleaner_reserved.yul

35 lines
717 B
Plaintext
Raw Normal View History

2020-08-06 19:44:50 +00:00
{
// This function name can be shortened, the other cannot.
function nonmstore_(x) {
2021-10-25 14:54:29 +00:00
if calldataload(0) { nonmstore_(x) }
2020-08-06 19:44:50 +00:00
sstore(10, calldataload(2))
}
function mstore_(x) -> y {
2021-10-25 14:54:29 +00:00
if calldataload(0) { let t3_3_ := mstore_(x) }
2020-08-06 19:44:50 +00:00
y := 8
sstore(y, calldataload(y))
}
let t2_ := mstore_(7)
nonmstore_(70)
}
// ----
// step: fullSuite
//
// {
// {
// pop(mstore_(7))
// nonmstore(70)
// }
// function nonmstore(x)
// {
2021-10-25 14:54:29 +00:00
// if calldataload(0) { nonmstore(x) }
2020-08-06 19:44:50 +00:00
// sstore(10, calldataload(2))
// }
// function mstore_(x) -> y
// {
2021-10-25 14:54:29 +00:00
// if calldataload(0) { pop(mstore_(x)) }
2020-08-06 19:44:50 +00:00
// y := 8
// sstore(y, calldataload(y))
// }
// }