Lines Matching refs:a
72 static public void doit1(int[] a) { in doit1() argument
76 if (a == null) in doit1()
78 for (int i = 0; i < a.length; i++) { in doit1()
79 a[i] = 1; in doit1()
102 static public void doit2(int[] a) { in doit2() argument
106 if (a == null) in doit2()
108 for (int i = 0; i < a.length; i++) { in doit2()
109 a[i] = 2; in doit2()
134 static public void doit3(int[] a) { in doit3() argument
138 checkNotNullDirect(a, par); in doit3()
139 for (int i = 0; i < a.length; i++) { in doit3()
140 a[i] = 3; in doit3()
163 static public void doit4(int[] a) { in doit4() argument
167 checkNotNullSplit(a, par); // resembles Kotlin runtime lib in doit4()
169 for (int i = 0; i < a.length; i++) { in doit4()
170 a[i] = 4; in doit4()
175 static public int doit5(int[] a) { in doit5() argument
180 if (a == null) { in doit5()
185 for (int i = 0; i < a.length; i++) { in doit5()
186 a[i] = 5; in doit5()
217 static public int deleteNullCheck(int[] a) { in deleteNullCheck() argument
218 checkNotNullSplit(a, "stringUnlikelyToBeInBootImage"); in deleteNullCheck()
219 return a[0]; in deleteNullCheck()
227 static public int deleteNullCheckAlt(int[] a) { in deleteNullCheckAlt() argument
228 checkNotNullSplitAlt(a, "stringUnlikeltyToBeInBootImage"); in deleteNullCheckAlt()
229 return a[0]; in deleteNullCheckAlt()
239 static public int deleteNullChecks3(int[] a, int[] b, int[] c) { in deleteNullChecks3() argument
240 checkNotNullSplit(a, "stringUnlikelytoBeInBootImage1"); in deleteNullChecks3()
243 return a[0] + b[0] + c[0]; in deleteNullChecks3()
251 int[] a = new int[100]; in main() local
253 a[i] = 0; in main()
260 doit1(a); in main()
263 expectEquals(1, a[i]); in main()
270 doit2(a); in main()
273 expectEquals(2, a[i]); in main()
280 doit3(a); in main()
283 expectEquals(3, a[i]); in main()
290 doit4(a); in main()
293 expectEquals(4, a[i]); in main()
300 expectEquals(1000, doit5(a)); in main()
303 expectEquals(5, a[i]); in main()