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