1 // This tests that we can correctly infer that a local variable is only
2 // used as an integer even if its uses are not in the same basic block as
3 // where it is defined.
5 function foo(a, b, c) {
14 var bigNumber = 2147483647;
17 for (var i = 0; i < 500000; ++i)
18 result = (result + foo(i, bigNumber - i, i%2)) | 0;
20 if (result != 445698416)
21 throw "Bad result: " + result;