1# Copyright 2013 the V8 project authors. All rights reserved.
2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1.  Redistributions of source code must retain the above copyright
8#     notice, this list of conditions and the following disclaimer.
9# 2.  Redistributions in binary form must reproduce the above copyright
10#     notice, this list of conditions and the following disclaimer in the
11#     documentation and/or other materials provided with the distribution.
12#
13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24Tests that if we have a tower of large numerical constants being added to each other, the DFG knows that a sufficiently large tower may produce a large enough value that overflow check elimination must be careful.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS bar(1, 2) is 0
30PASS bar(1, 2) is 0
31PASS bar(1, 2) is 0
32PASS bar(1, 2) is 0
33PASS bar(1, 2) is 0
34PASS bar(1, 2) is 0
35PASS bar(1, 2) is 0
36PASS bar(1, 2) is 0
37PASS bar(1, 2) is 0
38PASS bar(1, 2) is 0
39PASS bar(1, 2) is 0
40PASS bar(1, 2) is 0
41PASS bar(1, 2) is 0
42PASS bar(1, 2) is 0
43PASS bar(1, 2) is 0
44PASS bar(1, 2) is 0
45PASS bar(1, 2) is 0
46PASS bar(1, 2) is 0
47PASS bar(1, 2) is 0
48PASS bar(1, 2) is 0
49PASS bar(1, 2) is 0
50PASS bar(1, 2) is 0
51PASS bar(1, 2) is 0
52PASS bar(1, 2) is 0
53PASS bar(1, 2) is 0
54PASS bar(1, 2) is 0
55PASS bar(1, 2) is 0
56PASS bar(1, 2) is 0
57PASS bar(1, 2) is 0
58PASS bar(1, 2) is 0
59PASS bar(1, 2) is 0
60PASS bar(1, 2) is 0
61PASS bar(1, 2) is 0
62PASS bar(1, 2) is 0
63PASS bar(1, 2) is 0
64PASS bar(1, 2) is 0
65PASS bar(1, 2) is 0
66PASS bar(1, 2) is 0
67PASS bar(1, 2) is 0
68PASS bar(1, 2) is 0
69PASS bar(1, 2) is 0
70PASS bar(1, 2) is 0
71PASS bar(1, 2) is 0
72PASS bar(1, 2) is 0
73PASS bar(1, 2) is 0
74PASS bar(1, 2) is 0
75PASS bar(1, 2) is 0
76PASS bar(1, 2) is 0
77PASS bar(1, 2) is 0
78PASS bar(1, 2) is 0
79PASS bar(1, 2) is 0
80PASS bar(1, 2) is 0
81PASS bar(1, 2) is 0
82PASS bar(1, 2) is 0
83PASS bar(1, 2) is 0
84PASS bar(1, 2) is 0
85PASS bar(1, 2) is 0
86PASS bar(1, 2) is 0
87PASS bar(1, 2) is 0
88PASS bar(1, 2) is 0
89PASS bar(1, 2) is 0
90PASS bar(1, 2) is 0
91PASS bar(1, 2) is 0
92PASS bar(1, 2) is 0
93PASS bar(1, 2) is 0
94PASS bar(1, 2) is 0
95PASS bar(1, 2) is 0
96PASS bar(1, 2) is 0
97PASS bar(1, 2) is 0
98PASS bar(1, 2) is 0
99PASS bar(1, 2) is 0
100PASS bar(1, 2) is 0
101PASS bar(1, 2) is 0
102PASS bar(1, 2) is 0
103PASS bar(1, 2) is 0
104PASS bar(1, 2) is 0
105PASS bar(1, 2) is 0
106PASS bar(1, 2) is 0
107PASS bar(1, 2) is 0
108PASS bar(1, 2) is 0
109PASS bar(1, 2) is 0
110PASS bar(1, 2) is 0
111PASS bar(1, 2) is 0
112PASS bar(1, 2) is 0
113PASS bar(1, 2) is 0
114PASS bar(1, 2) is 0
115PASS bar(1, 2) is 0
116PASS bar(1, 2) is 0
117PASS bar(1, 2) is 0
118PASS bar(1, 2) is 0
119PASS bar(1, 2) is 0
120PASS bar(1, 2) is 0
121PASS bar(1, 2) is 0
122PASS bar(1, 2) is 0
123PASS bar(1, 2) is 0
124PASS bar(1, 2) is 0
125PASS bar(1, 2) is 0
126PASS bar(1, 2) is 0
127PASS bar(1, 2) is 0
128PASS bar(1, 2) is 0
129PASS bar(1, 2) is 0
130PASS bar(1, 2) is 0
131PASS bar(1, 2) is 0
132PASS bar(1, 2) is 0
133PASS bar(1, 2) is 0
134PASS bar(1, 2) is 0
135PASS bar(1, 2) is 0
136PASS bar(1, 2) is 0
137PASS bar(1, 2) is 0
138PASS bar(1, 2) is 0
139PASS bar(1, 2) is 0
140PASS bar(1, 2) is 0
141PASS bar(1, 2) is 0
142PASS bar(1, 2) is 0
143PASS bar(1, 2) is 0
144PASS bar(1, 2) is 0
145PASS bar(1, 2) is 0
146PASS bar(1, 2) is 0
147PASS bar(1, 2) is 0
148PASS bar(1, 2) is 0
149PASS bar(1, 2) is 0
150PASS bar(1, 2) is 0
151PASS bar(1, 2) is 0
152PASS bar(1, 2) is 0
153PASS bar(1, 2) is 0
154PASS bar(1, 2) is 0
155PASS bar(1, 2) is 0
156PASS bar(1, 2) is 0
157PASS bar(1, 2) is 0
158PASS bar(1, 2) is 0
159PASS bar(1, 2) is 0
160PASS bar(1, 2) is 0
161PASS bar(1, 2) is 0
162PASS bar(1, 2) is 0
163PASS bar(1, 2) is 0
164PASS bar(1, 2) is 0
165PASS bar(1, 2) is 0
166PASS bar(1, 2) is 0
167PASS bar(1, 2) is 0
168PASS bar(1, 2) is 0
169PASS bar(1, 2) is 0
170PASS bar(1, 2) is 0
171PASS bar(1, 2) is 0
172PASS bar(1, 2) is 0
173PASS bar(1, 2) is 0
174PASS bar(1, 2) is 0
175PASS bar(1, 2) is 0
176PASS bar(1, 2) is 0
177PASS bar(1, 2) is 0
178PASS bar(1, 2) is 0
179PASS bar(1, 2) is 0
180PASS bar(1, 2) is 0
181PASS bar(1, 2) is 0
182PASS bar(1, 2) is 0
183PASS bar(1, 2) is 0
184PASS bar(1, 2) is 0
185PASS bar(1, 2) is 0
186PASS bar(1, 2) is 0
187PASS bar(1, 2) is 0
188PASS bar(1, 2) is 0
189PASS bar(1, 2) is 0
190PASS bar(1, 2) is 0
191PASS bar(1, 2) is 0
192PASS bar(1, 2) is 0
193PASS bar(1, 2) is 0
194PASS bar(1, 2) is 0
195PASS bar(1, 2) is 0
196PASS bar(1, 2) is 0
197PASS bar(1, 2) is 0
198PASS bar(1, 2) is 0
199PASS bar(1, 2) is 0
200PASS bar(1, 2) is 0
201PASS bar(1, 2) is 0
202PASS bar(1, 2) is 0
203PASS bar(1, 2) is 0
204PASS bar(1, 2) is 0
205PASS bar(1, 2) is 0
206PASS bar(1, 2) is 0
207PASS bar(1, 2) is 0
208PASS bar(1, 2) is 0
209PASS bar(1, 2) is 0
210PASS bar(1, 2) is 0
211PASS bar(1, 2) is 0
212PASS bar(1, 2) is 0
213PASS bar(1, 2) is 0
214PASS bar(1, 2) is 0
215PASS bar(1, 2) is 0
216PASS bar(1, 2) is 0
217PASS bar(1, 2) is 0
218PASS bar(1, 2) is 0
219PASS bar(1, 2) is 0
220PASS bar(1, 2) is 0
221PASS bar(1, 2) is 0
222PASS bar(1, 2) is 0
223PASS bar(1, 2) is 0
224PASS bar(1, 2) is 0
225PASS bar(1, 2) is 0
226PASS bar(1, 2) is 0
227PASS bar(1, 2) is 0
228PASS bar(1, 2) is 0
229PASS bar(2147483645, 2147483644) is -10
230PASS successfullyParsed is true
231
232TEST COMPLETE
233
234