You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code2Inv only supports C files with one loop and no external function calls (refer to `benchmarks/C_instances/c/` for examples of supported C programs).
141
+
142
+
We refer to the file as `file.c`.
143
+
144
+
First, we need our input files which are the program graph json file and verification conditions SMT2 file. Follow the README in `clang-fe/` and build the front-end. Then perform the following while in the `clang-fe/` directory:
After the solution is found (if it is found), you will see the solution and its logs printed on the screen (the line begins with `Found a solution for 0...`). There will also be a file called file_inv.txt created with this information.
157
+
158
+
### Process for running Code2Inv with CHC clauses
159
+
160
+
Code2Inv has only been tested on the CHC constraints corresponding to single loop C files obtained from Seahorn (refer to `benchmarks/CHC_instances/sygus-constraints` for examples of supported CHC constraints).
161
+
162
+
We refer to our file as `file.chc`.
163
+
164
+
First, we need our input files which are the program graph json file and the verification conditions file. The CHC file itself will serve as our verification condition file, so we only need to extract a program graph from it:
165
+
```
166
+
$ cd chc-fe
167
+
$ python graph-gen.py file.chc > file.json
168
+
```
169
+
170
+
Our graph file is now `file.json` and verification condition file is `file.chc`. From the repository directory, do the following:
After the solution is found (if it is found), you will see the solution and its logs printed on the screen (the line begins with `Found a solution for 0...`). There will also be a file called file_inv.txt created with this information.
0 commit comments