(***********************************************************************)
(*                                                                     *)
(*                                 GALAX                               *)
(*                            XML Query Engine                         *)
(*                                                                     *)
(*  Copyright 2000, Lucent Technologies.                               *)
(*  Distributed only by permission.                                    *)
(*                                                                     *)
(***********************************************************************)

(* $Id: optimgen.mli,v 1.2 2002/10/06 03:41:27 simeon Exp $ *)

(* Generic part of the optimizer *)

(* Note:
     This module contains the generic tree walker, recursive
     application of optimization rules, and fix-point.

   - Gargi and Jerome
 *)

val fix_point_simplify : Xatenv.tenv -> Optimrules.rule list -> Xquery_ast.cexpr -> Xquery_ast.cexpr
val main_simplify : Xatenv.tenv -> Xquery_ast.cexpr -> Xquery_ast.cexpr


