blob: 5bbfa51999ea99c5e61cde0c6666afad114fa50b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.deterministic;
public class TestClass {
// This will be inlined, causing some of the calls below to go away providing more
// inlining opportunities.
public static boolean alwaysFalse() {
return false;
}
public static int a0() {
return b0();
}
public static int b0() {
if (alwaysFalse()) {
a0();
return 0;
}
return 1;
}
public static int a1() {
return b1();
}
public static int b1() {
if (alwaysFalse()) {
a1();
return 0;
}
return 1;
}
public static int a2() {
return b2();
}
public static int b2() {
return c2();
}
public static int c2() {
if (alwaysFalse()) {
a2();
return 0;
}
return 1;
}
public static int a3() {
return b3();
}
public static int b3() {
return c3();
}
public static int c3() {
if (alwaysFalse()) {
a3();
return 0;
}
return 1;
}
}
|