You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copyright (C) 1997 - 2020 Raja Vallee-Rai and others
8
+
* %%
9
+
* This program is free software: you can redistribute it and/or modify
10
+
* it under the terms of the GNU Lesser General Public License as
11
+
* published by the Free Software Foundation, either version 2.1 of the
12
+
* License, or (at your option) any later version.
13
+
*
14
+
* This program is distributed in the hope that it will be useful,
15
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+
* GNU General Lesser Public License for more details.
18
+
*
19
+
* You should have received a copy of the GNU General Lesser Public
20
+
* License along with this program. If not, see
21
+
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
22
+
* #L%
23
+
*/
24
+
25
+
importorg.junit.Test;
26
+
importsoot.*;
27
+
importsoot.jimple.IntConstant;
28
+
importsoot.jimple.Jimple;
29
+
importsoot.jimple.JimpleBody;
30
+
importsoot.jimple.LookupSwitchStmt;
31
+
importsoot.jimple.internal.JGotoStmt;
32
+
importsoot.util.Chain;
33
+
34
+
importjava.util.ArrayList;
35
+
importjava.util.Collections;
36
+
importjava.util.Iterator;
37
+
38
+
importstaticorg.junit.Assert.assertEquals;
39
+
importstaticorg.junit.Assert.assertTrue;
40
+
41
+
publicclassEmptySwitchEliminatorTest {
42
+
43
+
/**
44
+
* The test is ported from https://github.com/soot-oss/SootUp/blob/develop/sootup.java.bytecode/src/test/java/sootup/java/bytecode/interceptors/EmptySwitchEliminatorTest.java
0 commit comments