arithmetic_expression_a_optimized.gravity 195 B

12345678910
  1. #unittest {
  2. name: "Arithmetic expression (+,-) with multiple subnodes, testing optimizer operator execution order.";
  3. error: NONE;
  4. result: 5;
  5. };
  6. func main() {
  7. var a = 5 - 2 + 2;
  8. return a;
  9. }