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

Method deadAssign3

src/test/resources/deadcode/DeadAssignment2.java:19–29  ·  view source on GitHub ↗
(int p, int q)

Source from the content-addressed store, hash-verified

17 }
18
19 void deadAssign3(int p, int q) {
20 int x, y;
21 if (p > q) {
22 x = 1;
23 y = 10; // dead assignment
24 } else {
25 x = 0;
26 }
27 y = 200; // dead assignment
28 use(x);
29 }
30
31 int deadAssign4() {
32 int x;

Callers

nothing calls this directly

Calls 1

useMethod · 0.95

Tested by

no test coverage detected