package ec.gp.syntactic.simplification;

import ec.Setup;
import ec.gp.GPNode;

public interface ISimplifier extends Setup {

	/**
	 * Simplifies the program tree given as an argument using a set of simplification rules. The resulting program is
	 * required to be semantically equivalent to the parent, however it is supposed to not be syntactically equivalent
	 * with the argument.
	 * 
	 * @param tree
	 *            The program (sub)tree to simplify.
	 */
	void simplify(GPNode tree);

	void reset();
}
