(**************************************************************************)
(*  This file is part of BINSEC.                                          *)
(*                                                                        *)
(*  Copyright (C) 2016-2019                                               *)
(*    VERIMAG                                                             *)
(*                                                                        *)
(*  you can redistribute it and/or modify it under the terms of the GNU   *)
(*  Lesser General Public License as published by the Free Software       *)
(*  Foundation, version 2.1.                                              *)
(*                                                                        *)
(*  It is distributed in the hope that it will be useful,                 *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *)
(*  GNU Lesser General Public License for more details.                   *)
(*                                                                        *)
(*  See the GNU Lesser General Public License version 2.1                 *)
(*  for more details (enclosed in the file licenses/LGPLv2.1).            *)
(**************************************************************************)

open TypeTraceDSE
open TypeHistoryDSE

module type S = sig
  type conf_criteria
  type trace_t
  type child_t
  type history_t

  val init_criteria : conf_criteria -> unit
  val verdict       : trace_t -> bool
  val stop_criteria : history_t -> child_t list -> bool
end

module type TypeCriteriaDSE =
  functor (TraceDSE_v:TypeTraceDSE) -> functor (HistoryDSE_v:TypeHistoryDSE) ->
    S with type conf_criteria = string
       and type trace_t = TraceDSE_v.trace_t
       and type child_t = TraceDSE_v.child_t
       and type history_t  = HistoryDSE_v(TraceDSE_v).history_t
