@Test public void testEvaluation() { Node n = new Add(IntConst.of(1), IntConst.of(2)); Node s = Simplifier.simplify(n); assertEquals(IntConst.of(3), s); }
public static Node simplify(Node node) { Rewriter rewriter = new Rewriter(); return rewriter.applyRules(node, simplificationRules); }
Simplifier { public static Node simplify(Node node) { Rewriter rewriter = new Rewriter(); return rewriter.applyRules(node, simplificationRules); } }
Simplifier { public static Node simplify(Node node) { Rewriter rewriter = new Rewriter(); return rewriter.applyRules(node, simplificationRules); }  }
Simplifier { public static Node simplify(Node node) { Rewriter rewriter = new Rewriter(); return rewriter.applyRules(node, simplificationRules); }  static Node simplify(Node node); }
Simplifier { public static Node simplify(Node node) { Rewriter rewriter = new Rewriter(); return rewriter.applyRules(node, simplificationRules); }  static Node simplify(Node node);  }