OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // This program tripped dart2js. | |
6 main() { | |
7 var a = 1; | |
8 var b = 2; | |
9 var c = 3; | |
10 var d = 4; | |
11 var e = 5; | |
12 for (int i = 0; i < 2; i++) { | |
13 if (i == 1) { | |
14 Expect.equals(4, e); | |
15 Expect.equals(3, d); | |
16 Expect.equals(8, c); | |
17 Expect.equals(1, b); | |
18 Expect.equals(32, a); | |
19 } | |
20 int f; | |
21 int k; | |
22 if (i < 20) { | |
23 f = b & c | ~b & d; | |
24 k = 0x5A827999; | |
25 } else if (i < 40) { | |
26 f = b ^ c ^ d; | |
27 k = 0x6ED9EBA1; | |
28 } else if (i < 60) { | |
29 f = b & c | b & d | c & d; | |
30 k = 0x8F1BBCDC; | |
31 } else { | |
32 f = b ^ c ^ d; | |
33 k = 0xCA62C1D6; | |
34 } | |
35 | |
36 int temp = a << 5; | |
37 e = d; | |
38 d = c; | |
39 c = b << 2; | |
40 b = a; | |
41 a = temp; | |
42 } | |
43 } | |
44 | |
OLD | NEW |