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

Method main

src/test/resources/dataflow/constprop/alias/ArrayInter.java:3–13  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1class ArrayInter {
2
3 public static void main(String[] args) {
4 int[] a = new int[3];
5 set0(a, 123);
6 set1(a, 666);
7 set2(a, 987);
8 int[] b = a;
9 set2(b, 555);
10 int x = a[0];
11 int y = a[1];
12 int z = a[2];
13 }
14
15 static void set0(int[] arr, int v) {
16 arr[0] = v;

Callers

nothing calls this directly

Calls 3

set0Method · 0.95
set1Method · 0.95
set2Method · 0.95

Tested by

no test coverage detected