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

Method choose

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

Source from the content-addressed store, hash-verified

1class Switch {
2 int choose(int x, int y) {
3 int a = 0;
4 switch (x) {
5 case 1:
6 a -= y;
7 break;
8 case 2:
9 a += y;
10 break;
11 case 3:
12 a *= y;
13 break;
14 case 4:
15 a /= y;
16 break;
17 default:
18 a = a - 1;
19 }
20 a = a + x;
21 return a;
22 }
23
24 int choose2(int x, int y) {
25 int a = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected