view graal/com.oracle.truffle.sl.test/tests/Arithmetic.sl @ 21234:4e5fe228f629

Add AbstractMergeNode#valuePhis.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 05 May 2015 13:07:06 +0200
parents b16ec83edc73
children
line wrap: on
line source

function main() {  
  println(3 + 4 - 2);  
  println(3 - 4 + 2);  
  println(3 - 4 - 2);  
  println(3 * 4 + 2);  
  println(3 + 4 * 2);  
  println(3 + (4 - 2));  
  println(3 - (4 + 2));  
  println(3 - (4 - 2));  
  println(3 * (4 + 2));  
  println(3 + (4 * 2));  
}