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

Class NotDead

src/test/resources/deadcode/NotDead.java:1–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class NotDead {
2
3 void foo(int x, int y) {
4 int a;
5 if (x > y) {
6 a = 0;
7 } else {
8 a = 1;
9 }
10 use(a);
11 }
12
13 int bar() {
14 int x = 1;
15 int y = x;
16 int z = y;
17 return z;
18 }
19
20 void use(int n) {
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected