-
-
Notifications
You must be signed in to change notification settings - Fork 467
/
mcallinternal.zep
80 lines (66 loc) · 1.03 KB
/
mcallinternal.zep
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
71
72
73
74
75
76
77
78
79
80
/**
* Method calls
*/
namespace Stub;
class McallInternal
{
internal function a()
{
return strlen("hello");
}
internal function b(a, b)
{
}
internal function c(long a, long b)
{
return a + b;
}
public function e()
{
return strlen("hello");
}
public function d()
{
int a = 0; int i;
for i in range(0, 1000000) {
let a += (int) this->a();
}
return a;
}
public function f()
{
int a = 0; int i;
for i in range(0, 1000000) {
let a += (int) this->e();
}
return a;
}
public function g()
{
int a = 0; long i;
for i in range(0, 1000) {
let a += (long) this->c(i, i);
}
return a;
}
internal function other(long a, long b) -> double
{
return a / b;
}
public function callFibonacci() -> double
{
double $p = 0; long $i = 0;
for i in range(0, 10000000) {
let $p += (double) $this->other($i, $i + 1);
}
return $p;
}
internal function test1956() -> <McallInternal>
{
return this;
}
public function issue1956() -> <McallInternal>
{
return this->test1956();
}
}