Add test.

This commit is contained in:
chriseth 2021-04-22 17:23:24 +02:00
parent 074f22f22c
commit a6a3af58a0
2 changed files with 21 additions and 1 deletions

View File

@ -25,7 +25,7 @@
#include <libyul/optimiser/DataFlowAnalyzer.h> #include <libyul/optimiser/DataFlowAnalyzer.h>
#include <libyul/optimiser/OptimiserStep.h> #include <libyul/optimiser/OptimiserStep.h>
#include <stack> #include <set>
namespace solidity::yul namespace solidity::yul
{ {

View File

@ -0,0 +1,20 @@
{
function f() -> x {
let t := 0
x := 1
let a := 0
let b := 1
}
}
// ----
// step: commonSubexpressionEliminator
//
// {
// function f() -> x
// {
// let t := 0
// x := 1
// let a := t
// let b := x
// }
// }