YulOpt: Remove empty cases

This commit is contained in:
Mathias Baumann
2019-03-06 18:39:44 +01:00
committed by chriseth
parent 433175b19e
commit 3ce7069766
5 changed files with 87 additions and 2 deletions
@@ -0,0 +1,21 @@
{
let y := 200
switch y
case 0 { }
case 1 { y := 9 }
default { y := 100 }
}
// ----
// structuralSimplifier
// {
// let y := 200
// switch y
// case 0 {
// }
// case 1 {
// y := 9
// }
// default {
// y := 100
// }
// }
@@ -0,0 +1,15 @@
{
let y := 200
switch y
case 0 { }
case 1 { y := 9 }
}
// ----
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// y := 9
// }
// }
@@ -0,0 +1,16 @@
{
let y := 200
switch y
case 0 { }
case 1 { y := 9 }
default { }
}
// ----
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// y := 9
// }
// }
@@ -0,0 +1,15 @@
{
let y := 200
switch y
case 1 { y := 9 }
default { }
}
// ----
// structuralSimplifier
// {
// let y := 200
// switch y
// case 1 {
// y := 9
// }
// }