aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-17 03:38:23 +0800
committerchriseth <chris@ethereum.org>2018-10-18 20:54:23 +0800
commitc34fa43d5ba9aa2a9b52d3cc06e4150545fd0b35 (patch)
treeb4e0d1c39c7010103579e2b9cc19b37ed3c55bdd
parent7609e2871e77b623d4c6187b7ebed693ce74cd0e (diff)
downloaddexon-solidity-c34fa43d5ba9aa2a9b52d3cc06e4150545fd0b35.tar.gz
dexon-solidity-c34fa43d5ba9aa2a9b52d3cc06e4150545fd0b35.tar.zst
dexon-solidity-c34fa43d5ba9aa2a9b52d3cc06e4150545fd0b35.zip
Test case that shows a CSE bug related to scopes.
-rw-r--r--test/libyul/yulOptimizerTests/commonSubexpressionEliminator/scopes.yul25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/libyul/yulOptimizerTests/commonSubexpressionEliminator/scopes.yul b/test/libyul/yulOptimizerTests/commonSubexpressionEliminator/scopes.yul
new file mode 100644
index 00000000..35270d87
--- /dev/null
+++ b/test/libyul/yulOptimizerTests/commonSubexpressionEliminator/scopes.yul
@@ -0,0 +1,25 @@
+{
+ let a := 10
+ let x := 20
+ {
+ let b := calldataload(0)
+ let d := calldataload(1)
+ x := d
+ }
+ // We had a bug where "calldataload(0)" was incorrectly replaced by "b"
+ mstore(0, calldataload(0))
+ mstore(0, x)
+}
+// ----
+// commonSubexpressionEliminator
+// {
+// let a := 10
+// let x := 20
+// {
+// let b := calldataload(0)
+// let d := calldataload(1)
+// x := d
+// }
+// mstore(0, b)
+// mstore(0, x)
+// }
cgit/cgit.cgi/freebsd-ports/commit/www?h=dependabot/npm_and_yarn/devel/electron4/files/mixin-deep-1.3.2&id=b028b113ef13fa7972bb45d681d7a0abe47c40a6'>www/netrik
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-07-23 17:36:51 +0800
committerrafan <rafan@FreeBSD.org>2007-07-23 17:36:51 +0800
commitb028b113ef13fa7972bb45d681d7a0abe47c40a6 (patch)
treea76a27ca09341f754b493c264ee71c912a553d89 /www/netrik
parent855b1df39bc3a6f03abf878d9c99b5ba0838ba35 (diff)
downloadfreebsd-ports-b028b113ef13fa7972bb45d681d7a0abe47c40a6.tar.gz
freebsd-ports-b028b113ef13fa7972bb45d681d7a0abe47c40a6.tar.zst
freebsd-ports-b028b113ef13fa7972bb45d681d7a0abe47c40a6.zip
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in do-configure target and set the shell variable _LATE_CONFIGURE_ARGS which is then passed to CONFIGURE_ARGS. - Remove --mandir and --infodir in ports' Makefile where applicable Few ports use REINPLACE_CMD to achieve the same effect, remove them too. - Correct some manual pages location from PREFIX/man to MANPREFIX/man - Define INFO_PATH where necessary - Document that .info files are installed in a subdirectory relative to PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection. PR: ports/111470 Approved by: portmgr Discussed with: stas (Mk/*), gerald (info related stuffs) Tested by: pointyhat exp run
Diffstat (limited to 'www/netrik')