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

Class ArrayInter2

src/test/resources/dataflow/constprop/alias/ArrayInter2.java:1–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class ArrayInter2 {
2
3 public static void main(String[] args) {
4 int[] a = new int[1];
5 set(a, 0, 777);
6 int x = get(a, 0);
7 }
8
9 static void set(int[] arr, int i, int v) {
10 arr[i] = v;
11 }
12
13 static int get(int[] arr, int i) {
14 return arr[i];
15 }
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected