LambdaS5
LambdaS5 copied to clipboard
Code duplication in desugaring of switch statements
The code in cases after the default case is duplicated, which can lead to exponential blowup. For example, in this code:
switch(1) {
default:
case 1:
switch(1) {
default:
case 1:
x = 1
}
}
The x = 1 statement is replicated four times in the desugared code.