permit multiline comments and strings in macros
[bpt/coccinelle.git] / ctl / wrapper_ctl.mli
CommitLineData
f537ebc4 1(*
17ba0788
C
2 * Copyright 2012, INRIA
3 * Julia Lawall, Gilles Muller
4 * Copyright 2010-2011, INRIA, University of Copenhagen
f537ebc4
C
5 * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix
6 * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
7 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
8 * This file is part of Coccinelle.
9 *
10 * Coccinelle is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, according to version 2 of the License.
13 *
14 * Coccinelle is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
21 *
22 * The authors reserve the right to distribute this or future versions of
23 * Coccinelle under other licenses.
24 *)
25
26
feec80c3 27# 0 "./wrapper_ctl.mli"
34e49164
C
28type info = int
29
ae4735db 30type ('pred, 'mvar) wrapped_ctl =
34e49164
C
31 ('pred * 'mvar Ast_ctl.modif, 'mvar, info) Ast_ctl.generic_ctl
32
33type ('a, 'b) wrapped_binding =
34 ClassicVal of 'a
35 | PredVal of 'b Ast_ctl.modif
36
37type ('pred,'state,'mvar,'value) labelfunc =
ae4735db 38 'pred ->
34e49164
C
39 ('state * ('pred * ('mvar, 'value) Ast_ctl.generic_substitution)) list
40
41module CTL_ENGINE_BIS :
42 functor (SUB : Ctl_engine.SUBST) ->
43 functor (G : Ctl_engine.GRAPH) ->
44 functor(P : Ctl_engine.PREDICATE) ->
45 sig
46
47 type predicate = P.t
48 module WRAPPER_ENV :
49 sig
50 type mvar = SUB.mvar
51 type value = (SUB.value, predicate) wrapped_binding
52 end
53 module WRAPPER_PRED :
54 sig
55 type t = P.t * SUB.mvar Ast_ctl.modif
56 end
57 module WRAPPER_ENGINE :
58 sig
59 type substitution =
60 (WRAPPER_ENV.mvar, WRAPPER_ENV.value) Ast_ctl.generic_subst list
61 type ('a, 'b) witness =
62 (G.node, substitution,
63 ('a, WRAPPER_ENV.mvar, 'b) Ast_ctl.generic_ctl list)
64 Ast_ctl.generic_witnesstree
65 type ('a, 'b) triples =
66 (G.node * substitution * ('a, 'b) witness list) list
67 end
68
69
70 val satbis_noclean :
71 G.cfg *
72 (predicate, G.node, WRAPPER_ENV.mvar, SUB.value) labelfunc *
73 G.node list ->
74 ((WRAPPER_PRED.t, WRAPPER_ENV.mvar, int) Ast_ctl.generic_ctl *
75 (WRAPPER_PRED.t list list)) ->
76 (WRAPPER_PRED.t, 'a) WRAPPER_ENGINE.triples
77
78 val satbis :
79 G.cfg *
80 (predicate,G.node,SUB.mvar,SUB.value) labelfunc *
ae4735db 81 G.node list ->
34e49164
C
82 ((predicate,SUB.mvar) wrapped_ctl *
83 (WRAPPER_PRED.t list list)) ->
84 (WRAPPER_ENV.mvar list * (SUB.mvar * SUB.value) list) ->
85 ((WRAPPER_PRED.t, 'a) WRAPPER_ENGINE.triples *
86 ((G.node * (SUB.mvar * SUB.value) list * predicate)
87 list list *
88 bool *
89 (WRAPPER_ENV.mvar * SUB.value) list list))
90
91 val print_bench : unit -> unit
92end