diff options
author | chriseth <chris@ethereum.org> | 2018-10-02 16:46:59 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-16 23:16:03 +0800 |
commit | e2e4a9fe81656724111c444cbf253d39bbb2b67b (patch) | |
tree | bf6b303303ac1c3ab106caeaee476e9c973a9df0 /test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul | |
parent | 72b1bb00bd86ea3c647b3f327c416ab8f3421166 (diff) | |
download | dexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.tar.gz dexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.tar.zst dexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.zip |
New full inliner.
Diffstat (limited to 'test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul')
-rw-r--r-- | test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul b/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul index 94bbe5dc..40397a43 100644 --- a/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul +++ b/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul @@ -7,21 +7,17 @@ // fullInliner // { // { -// let g_c := 7 -// let f_a_1 := 3 -// let f_x_1 -// { -// f_x_1 := add(f_a_1, f_a_1) -// } +// 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 // let g_y -// { -// let g_f_a := f_x_1 -// let g_f_x -// { -// g_f_x := add(g_f_a, g_f_a) -// } -// g_y := mul(mload(g_c), g_f_x) -// } +// 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) // let y_1 := g_y // } // function f(a) -> x @@ -30,11 +26,9 @@ // } // function g(b, c) -> y // { -// let f_a := b -// let f_x -// { -// f_x := add(f_a, f_a) -// } -// y := mul(mload(c), f_x) +// 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) // } // } |