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

Method ifStmt

src/test/resources/controlflow/CFG.java:6–17  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

4 }
5
6 int ifStmt(int x) {
7 int a = x * x;
8 int b = 0;
9 if (a > 100) {
10 b = a / x;
11 } else if (a < 10) {
12 b = a + x;
13 } else {
14 b = a - x;
15 }
16 return b;
17 }
18
19 int forLoop(int n) {
20 int[] a = new int[n];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected