aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-02 16:46:59 +0800
committerchriseth <chris@ethereum.org>2018-10-16 23:16:03 +0800
commite2e4a9fe81656724111c444cbf253d39bbb2b67b (patch)
treebf6b303303ac1c3ab106caeaee476e9c973a9df0 /test/libyul/yulOptimizerTests/fullInliner/pop_result.yul
parent72b1bb00bd86ea3c647b3f327c416ab8f3421166 (diff)
downloaddexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.tar.gz
dexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.tar.zst
dexon-solidity-e2e4a9fe81656724111c444cbf253d39bbb2b67b.zip
New full inliner.
Diffstat (limited to 'test/libyul/yulOptimizerTests/fullInliner/pop_result.yul')
-rw-r--r--test/libyul/yulOptimizerTests/fullInliner/pop_result.yul13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul b/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul
index 3883c67c..cd9e2746 100644
--- a/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul
+++ b/test/libyul/yulOptimizerTests/fullInliner/pop_result.yul
@@ -1,4 +1,6 @@
-// This tests that `pop(r)` is removed.
+// An earlier version of the inliner produced
+// pop(...) statements and explicitly removed them.
+// This used to test that they are removed.
{
function f(a) -> x {
let r := mul(a, a)
@@ -13,12 +15,9 @@
// let _1 := 2
// let f_a := 7
// let f_x
-// {
-// let f_r := mul(f_a, f_a)
-// f_x := add(f_r, f_r)
-// }
-// {
-// }
+// let f_r := mul(f_a, f_a)
+// f_x := add(f_r, f_r)
+// pop(add(f_x, _1))
// }
// function f(a) -> x
// {