solidity/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul

35 lines
740 B
Plaintext
Raw Normal View History

2018-10-11 15:14:59 +00:00
{
function f(a) -> x { x := add(a, a) }
function g(b, c) -> y { y := mul(mload(c), f(b)) }
let y := g(f(3), 7)
}
// ----
// fullInliner
// {
// {
2018-10-02 08:46:59 +00:00
// let _1 := 7
// let f_a := 3
// let f_x
// f_x := add(f_a, f_a)
// let g_b := f_x
// let g_c := _1
2018-10-11 15:14:59 +00:00
// let g_y
2018-10-02 08:46:59 +00:00
// let g_f_a_1 := g_b
// let g_f_x_1
// g_f_x_1 := add(g_f_a_1, g_f_a_1)
// g_y := mul(mload(g_c), g_f_x_1)
2018-10-11 15:14:59 +00:00
// let y_1 := g_y
// }
// function f(a) -> x
// {
// x := add(a, a)
// }
// function g(b, c) -> y
// {
2018-10-02 08:46:59 +00:00
// let f_a_1 := b
// let f_x_1
// f_x_1 := add(f_a_1, f_a_1)
// y := mul(mload(c), f_x_1)
2018-10-11 15:14:59 +00:00
// }
// }