Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LFYSec/MScan
/ sum
Method
sum
src/test/resources/dataflow/livevar/Array.java:3–9 ·
view source on GitHub ↗
(int arr[])
Source
from the content-addressed store, hash-verified
1
class
Array {
2
3
int
sum(
int
arr[]) {
4
int
result = 0;
5
for
(
int
i = 0; i < arr.length; i++) {
6
result += arr[i];
7
}
8
return
result;
9
}
10
11
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected