view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 13938:aa8fb1cb16d1

Make graph builder more extensible
author Christian Wimmer <christian.wimmer@oracle.com>
date Wed, 12 Feb 2014 10:23:41 -0800
parents ff3136ecb5a7
children
line wrap: on
line source

function main() {  
  i = 0;  
  sum = 0;  
  while (i <= 10000) {  
    sum = sum + i;  
    i = i + 1;  
  }  
  return sum;  
}