solidity/test/libyul/yulOptimizerTests/expressionInliner/double_calls.yul

16 lines
365 B
Plaintext
Raw Normal View History

2018-10-11 14:58:21 +00:00
{
function f(a) -> x { x := add(a, a) }
function g(b, c) -> y { y := mul(mload(c), f(b)) }
let y := g(calldatasize(), 7)
}
// ----
// step: expressionInliner
//
2018-10-11 14:58:21 +00:00
// {
// function f(a) -> x
// { x := add(a, a) }
2018-10-11 14:58:21 +00:00
// function g(b, c) -> y
// { y := mul(mload(c), add(b, b)) }
2018-10-11 14:58:21 +00:00
// let y_1 := mul(mload(7), add(calldatasize(), calldatasize()))
// }