MCPcopy Create free account
hub / github.com/LFYSec/MScan / choose2

Method choose2

src/test/resources/dataflow/livevar/Switch.java:24–42  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

22 }
23
24 int choose2(int x, int y) {
25 int a = 0;
26 switch (x) {
27 case 1:
28 a -= y;
29 break;
30 case 2:
31 a += y;
32 case 3:
33 a *= y;
34 case 4:
35 a /= y;
36 break;
37 default:
38 a = a - 1;
39 }
40 a = a + x;
41 return a;
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected