705b44f1ac5af0a7b65b044fc39311540693dbfb
[tatoo.git] / src / run.mli
1 (***********************************************************************)
2 (*                                                                     *)
3 (*                               TAToo                                 *)
4 (*                                                                     *)
5 (*                     Kim Nguyen, LRI UMR8623                         *)
6 (*                   Université Paris-Sud & CNRS                       *)
7 (*                                                                     *)
8 (*  Copyright 2010-2013 Université Paris-Sud and Centre National de la *)
9 (*  Recherche Scientifique. All rights reserved.  This file is         *)
10 (*  distributed under the terms of the GNU Lesser General Public       *)
11 (*  License, with the special exception on linking described in file   *)
12 (*  ../LICENSE.                                                        *)
13 (*                                                                     *)
14 (***********************************************************************)
15
16
17 type stats = private { mutable pass : int;
18                tree_size : int;
19                mutable fetch_trans_cache_access : int;
20                mutable fetch_trans_cache_miss : int;
21                mutable eval_trans_cache_access : int;
22                mutable eval_trans_cache_miss : int;
23                mutable nodes_per_run : int list;
24              }
25
26 module Make (T : Tree.S) (L : Deque.S with type elem = T.node) :
27   sig
28     val eval : Ata.t -> T.t -> L.t -> L.t
29     val full_eval : Ata.t -> T.t -> L.t -> (State.t * L.t) list
30     val stats : unit -> stats
31   end