17436ddef0ff7a6762546195749e341eecf9035f
2 * Copyright 2010, INRIA, University of Copenhagen
3 * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix
4 * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
5 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
6 * This file is part of Coccinelle.
8 * Coccinelle is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, according to version 2 of the License.
12 * Coccinelle is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
20 * The authors reserve the right to distribute this or future versions of
21 * Coccinelle under other licenses.
27 type ('pred
, 'mvar
) wrapped_ctl
=
28 ('pred
* 'mvar
Ast_ctl.modif
, 'mvar
, info
) Ast_ctl.generic_ctl
30 type ('a
, 'b
) wrapped_binding
=
32 | PredVal
of 'b
Ast_ctl.modif
34 type ('pred
,'state
,'mvar
,'
value) labelfunc
=
36 ('state
* ('pred
* ('mvar
, '
value) Ast_ctl.generic_substitution
)) list
38 module CTL_ENGINE_BIS
:
39 functor (SUB
: Ctl_engine.SUBST
) ->
40 functor (G
: Ctl_engine.GRAPH
) ->
41 functor(P
: Ctl_engine.PREDICATE
) ->
48 type value = (SUB.value, predicate
) wrapped_binding
52 type t
= P.t
* SUB.mvar
Ast_ctl.modif
54 module WRAPPER_ENGINE
:
57 (WRAPPER_ENV.mvar
, WRAPPER_ENV.value) Ast_ctl.generic_subst list
58 type ('a
, 'b
) witness
=
59 (G.node
, substitution
,
60 ('a
, WRAPPER_ENV.mvar
, 'b
) Ast_ctl.generic_ctl list
)
61 Ast_ctl.generic_witnesstree
62 type ('a
, 'b
) triples
=
63 (G.node
* substitution
* ('a
, 'b
) witness list
) list
69 (predicate
, G.node
, WRAPPER_ENV.mvar
, SUB.value) labelfunc
*
71 ((WRAPPER_PRED.t
, WRAPPER_ENV.mvar
, int) Ast_ctl.generic_ctl
*
72 (WRAPPER_PRED.t list list
)) ->
73 (WRAPPER_PRED.t
, 'a
) WRAPPER_ENGINE.triples
77 (predicate
,G.node
,SUB.mvar
,SUB.value) labelfunc
*
79 ((predicate
,SUB.mvar
) wrapped_ctl
*
80 (WRAPPER_PRED.t list list
)) ->
81 (WRAPPER_ENV.mvar list
* (SUB.mvar
* SUB.value) list
) ->
82 ((WRAPPER_PRED.t
, 'a
) WRAPPER_ENGINE.triples
*
83 ((G.node
* (SUB.mvar
* SUB.value) list
* predicate
)
86 (WRAPPER_ENV.mvar
* SUB.value) list list
))
88 val print_bench
: unit -> unit