aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-02 00:27:07 +0800
committerchriseth <chris@ethereum.org>2018-10-12 21:19:29 +0800
commitd60a2511fdc625928b5a2ee449e39ba78a3d1296 (patch)
treea885022f3f4d0c89608f161a10d8d668a8fc7e89 /test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul
parent1d312c8e4073e2e7ce9a23a721013942e1e5c727 (diff)
downloaddexon-solidity-d60a2511fdc625928b5a2ee449e39ba78a3d1296.tar.gz
dexon-solidity-d60a2511fdc625928b5a2ee449e39ba78a3d1296.tar.zst
dexon-solidity-d60a2511fdc625928b5a2ee449e39ba78a3d1296.zip
Expression joiner.
Diffstat (limited to 'test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul')
-rw-r--r--test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul b/test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul
new file mode 100644
index 00000000..3b433f78
--- /dev/null
+++ b/test/libjulia/yulOptimizerTests/expressionJoiner/single_wrong_order.yul
@@ -0,0 +1,13 @@
+{
+ let a := mload(3)
+ let b := sload(a)
+ let c := mload(7)
+ let d := add(b, c)
+ sstore(d, 0)
+}
+// ----
+// expressionJoiner
+// {
+// let b := sload(mload(3))
+// sstore(add(b, mload(7)), 0)
+// }