1 | Presentation |
---|
2 | -------------- |
---|
3 | |
---|
4 | This is a Frama-C plug-in and a wrapper for Lustre that makes the synthesis of |
---|
5 | the results of the CerCo compiler. |
---|
6 | |
---|
7 | Requirements |
---|
8 | -------------- |
---|
9 | |
---|
10 | - Frama-C Carbon |
---|
11 | - CerCo |
---|
12 | - Lustre compiler (for Lustre files only) |
---|
13 | - Jessie plug-in and simplify (for verification only) |
---|
14 | |
---|
15 | Compilation |
---|
16 | ------------- |
---|
17 | |
---|
18 | You can compile the plug-in and the wrapper using the following command: |
---|
19 | |
---|
20 | % make |
---|
21 | |
---|
22 | (assuming that you are located at the root of the source tree) |
---|
23 | |
---|
24 | Installation |
---|
25 | -------------- |
---|
26 | |
---|
27 | You can install the plug-in and the wrapper using the following command: |
---|
28 | |
---|
29 | % make install |
---|
30 | |
---|
31 | You may need administrative rights. |
---|
32 | |
---|
33 | Note: both the plug-in and the wrapper can be installed seperately. See their |
---|
34 | README in their respective source folders ("plugin" for the plug-in and |
---|
35 | "wrapper" for the Lustre wrapper). Also note that the wrapper uses the plug-in. |
---|
36 | |
---|
37 | Usage |
---|
38 | ------- |
---|
39 | |
---|
40 | - Plug-in: |
---|
41 | |
---|
42 | You can run the plug-in on a C file "file.c" using the following command: |
---|
43 | |
---|
44 | % frama-c -cost file.c |
---|
45 | |
---|
46 | The result will be in file "file-annotated.c" in the same directory if the |
---|
47 | name is fresh. Otherwise an integer suffix will be added to the base name of |
---|
48 | the output file. |
---|
49 | |
---|
50 | For a complete description of the options, use the command: |
---|
51 | |
---|
52 | % frama-c -cost-help |
---|
53 | |
---|
54 | - Lustre wrapper: |
---|
55 | |
---|
56 | You can run the wrapper for Lustre on a node "node" of a Lustre file |
---|
57 | "file.lus" using the following command: |
---|
58 | |
---|
59 | % frama-c_lustre file.lus node |
---|
60 | |
---|
61 | The result will be in file "file-annotated.c" in the same directory if the |
---|
62 | name is fresh. Otherwise an integer suffix will be added to the base name of |
---|
63 | the output file. |
---|
64 | |
---|
65 | For a complete description of the options, use the command: |
---|
66 | |
---|
67 | % frama-c_lustre -help |
---|
68 | |
---|
69 | - Jessie script |
---|
70 | |
---|
71 | For verification through a graphical user interface, a script that calls the |
---|
72 | Jessie plug-in of Frama-C with specific options is also provided. It can be |
---|
73 | ran using the following command on an annotated C file (obtained with the |
---|
74 | Cost plug-in for instance): |
---|
75 | |
---|
76 | % frama-c_jessie annotated-file.c |
---|