aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-16 23:21:14 +0800
committerchriseth <chris@ethereum.org>2018-10-16 23:32:21 +0800
commit2ab6430303406b03191cb7e14ecd1384104b12fa (patch)
treec506bc291f598afe9fd12bbcc3e76dfe01be9261 /test/libyul
parenta435a14e135a4e31ce3cd2bacd32544b2b342074 (diff)
downloaddexon-solidity-2ab6430303406b03191cb7e14ecd1384104b12fa.tar.gz
dexon-solidity-2ab6430303406b03191cb7e14ecd1384104b12fa.tar.zst
dexon-solidity-2ab6430303406b03191cb7e14ecd1384104b12fa.zip
Inline each function separately.
Diffstat (limited to 'test/libyul')
-rw-r--r--test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul5
-rw-r--r--test/libyul/yulOptimizerTests/fullInliner/multi_fun_callback.yul52
2 files changed, 16 insertions, 41 deletions
diff --git a/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul b/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul
index 40397a43..c704944d 100644
--- a/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul
+++ b/test/libyul/yulOptimizerTests/fullInliner/multi_fun.yul
@@ -14,10 +14,7 @@
// let g_b := f_x
// let g_c := _1
// let g_y
-// 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)
+// g_y := mul(mload(g_c), f(g_b))
// let y_1 := g_y
// }
// function f(a) -> x
diff --git a/test/libyul/yulOptimizerTests/fullInliner/multi_fun_callback.yul b/test/libyul/yulOptimizerTests/fullInliner/multi_fun_callback.yul
index 7588094f..bcdba8e0 100644
--- a/test/libyul/yulOptimizerTests/fullInliner/multi_fun_callback.yul
+++ b/test/libyul/yulOptimizerTests/fullInliner/multi_fun_callback.yul
@@ -27,23 +27,11 @@
// {
// {
// {
-// let f_x_1 := 100
-// mstore(0, f_x_1)
-// let f_h_t
-// f_h_t := 2
-// mstore(7, f_h_t)
-// let f__5 := 10
-// let f_g_x_1 := f__5
-// let f_g_f_x := 1
-// let
-// mstore()
-// let f_g_f_ := h()
-// let
-// mstore()
-// let
-// g(f__5)
-// mstore(1, f_g_f_x)
-// mstore(1, f_x_1)
+// let f_x := 100
+// mstore(0, f_x)
+// mstore(7, h())
+// g(10)
+// mstore(1, f_x)
// }
// }
// function f(x)
@@ -52,30 +40,20 @@
// let h_t
// h_t := 2
// mstore(7, h_t)
-// let _5 := 10
-// let g_x_1 := _5
-// let g_f_x := 1
-// let
-// mstore()
-// let g_f_ := h()
-// let
-// mstore()
-// let
-// g(_5)
-// mstore(1, g_f_x)
+// let g_x_1 := 10
+// f(1)
// mstore(1, x)
// }
// function g(x_1)
// {
-// let f_x := 1
-// let
-// mstore()
-// let f_ := h()
-// let
-// mstore()
-// let
-// g(_5)
-// mstore(1, f_x)
+// let f_x_1 := 1
+// mstore(0, f_x_1)
+// let f_h_t
+// f_h_t := 2
+// mstore(7, f_h_t)
+// let f_g_x_1 := 10
+// f(1)
+// mstore(1, f_x_1)
// }
// function h() -> t
// {