YulOpt: Remove empty cases

This commit is contained in:
Mathias Baumann
2019-03-06 19:02:23 +01:00
committed by chriseth
parent be52aa3181
commit 21322dae29
6 changed files with 32 additions and 6 deletions
@@ -0,0 +1,19 @@
{
let y := 200
switch add(y, 4)
case 0 { }
case 1 { }
default { }
switch 4
case 0 { }
case 1 { }
default { }
}
// ----
// structuralSimplifier
// {
// let y := 200
// pop(add(y, 4))
// pop(4)
// }
@@ -8,8 +8,8 @@
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// if eq(1, y)
// {
// y := 9
// }
// }
@@ -9,8 +9,8 @@
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// if eq(1, y)
// {
// y := 9
// }
// }
@@ -8,8 +8,8 @@
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// if eq(1, y)
// {
// y := 9
// }
// }