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

Method whileLoop

src/test/resources/controlflow/CFG.java:27–35  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

25 }
26
27 int whileLoop(int n) {
28 int i = 0;
29 int j = 0;
30 while (i < n) {
31 j = j + i;
32 ++i;
33 }
34 return j;
35 }
36
37 int breakLoop(int n) {
38 int x = n * n;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected