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

Method foo

src/test/resources/dataflow/AvailExp.java:6–24  ·  view source on GitHub ↗
(int a, int b, int c)

Source from the content-addressed store, hash-verified

4class AvailExp {
5
6 int foo(int a, int b, int c) {
7 int p = a, q = b, r;
8 long l;
9 if (a > 0) {
10 l = (long) a;
11 p = a + b;
12 q = b - c;
13 r = q;
14 } else {
15 l = (long) a;
16 q = a + b;
17 r = b - c;
18 c = r;
19 }
20 r = p;
21 use(a, b, c);
22 use((int) l, r, q);
23 return r + q;
24 }
25
26 void use(int i1, int i2, int i3) {
27 }

Callers

nothing calls this directly

Calls 1

useMethod · 0.95

Tested by

no test coverage detected