diff options
author | chriseth <chris@ethereum.org> | 2018-12-12 07:49:36 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-13 01:06:28 +0800 |
commit | 9557dd7e74a801ebafaf4777d60a591b0c484779 (patch) | |
tree | b55af218e8debaeb4a79670f932e1e66afb736b6 /test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul | |
parent | 5e0c312dad2daaae155486397bfbd26d6d172718 (diff) | |
download | dexon-solidity-9557dd7e74a801ebafaf4777d60a591b0c484779.tar.gz dexon-solidity-9557dd7e74a801ebafaf4777d60a591b0c484779.tar.zst dexon-solidity-9557dd7e74a801ebafaf4777d60a591b0c484779.zip |
Support unassigned variables in the SSA value tracker and the data flow analyzer.
Diffstat (limited to 'test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul')
-rw-r--r-- | test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul b/test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul index 8c1ad789..f260db0b 100644 --- a/test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul +++ b/test/libyul/yulOptimizerTests/expressionSimplifier/unassigend_vars_multi.yul @@ -1,5 +1,4 @@ -// c & d can't be optimized as expression simplifier doesn't handle default -// values yet +// Unassigned variables are assumed to be zero. { let c, d let y := add(d, add(c, 7)) @@ -8,5 +7,5 @@ // expressionSimplifier // { // let c, d -// let y := add(add(d, c), 7) +// let y := 7 // } |