Skip to content

Commit 441c468

Browse files
committed
Updated README.md and Makefile
1 parent ae5973f commit 441c468

File tree

134 files changed

+9
-17494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+9
-17494
lines changed

clang-fe/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ tests: bin/clang-fe
5656
@echo "The tests need to be manually verified. The json files are written into the same directory as the test cases."
5757
@echo "For information about the rewritten code, CFG and the Dominator Tree, run make test-debug."
5858
@cp tests/assert.h .
59-
./bin/clang-fe $(shell ls tests/*.c) 2>/dev/null
59+
./bin/clang-fe -ssa $(shell ls tests/*.c) 2>/dev/null
6060
@rm assert.h
6161

6262
test-debug: bin/clang-fe
6363
@echo "The tests need to be manually verified. The json files are written into the same directory as the test cases."
6464
@echo "For information about the rewritten code, CFG and the Dominator Tree, run make test-debug."
6565
@cp tests/assert.h .
66-
./bin/clang-fe $(shell ls tests/*.c)
66+
./bin/clang-fe -ssa $(shell ls tests/*.c)
6767
@rm assert.h
6868

6969
clean:

clang-fe/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# clang-fe
22

3-
A front end to code2inv responsible for transforming code into its SSA form using Clang.
3+
A front end to code2inv responsible for transforming code into its SSA form and also generating Verification Conditions using Clang.
44

55
## Installation
66

7-
Refer [INSTALL.md](INSTALL.md)
7+
Refer [INSTALL.md](INSTALL.md).
88

99
## Run the executable
1010

11-
To run any of the test codes inside the tests directory, cd into tests/ and run `../bin/ssa-transform filename.c`. This will produce a json file of the same name with the ssa graph in it. To run all tests, run `make tests` (for no debug output) or `make test-debug` for debug output (which includes the CFG, Dominator Tree and the SSA Graph).
11+
To run any of the test codes inside the tests directory, cd into tests/ and run `../bin/clang-fe -ssa filename.c`. This will produce a json file of the same name with the ssa graph in it. To run all tests, run `make tests` (for no debug output) or `make test-debug` for debug output (which includes the CFG, Dominator Tree and the SSA Graph).
12+
13+
To generate Verification Conditions, run `./bin/clang-fe -smt ../benchmarks/c/<filename>`. Only the files under benchmarks have been tested with VC Generation. To only store the SMT graph, run `./bin/clang-fe -smt ../benchmarks/c/<filename> > smtfile.smt 2>/dev/null`.
1214

1315
## Notes
14-
The renaming and phi function placement algorithms are taken from http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.100.6361&rep=rep1&type=pdf
16+
The renaming and phi function placement algorithms are taken from http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.100.6361&rep=rep1&type=pdf.
1517

16-
Clang-fe has only been tested on the programs under the tests directory, taken from https://github.com/sosy-lab/sv-benchmarks/tree/master/c/loop-invgen
18+
Clang-fe has only been tested on the programs under the tests directory taken from https://github.com/sosy-lab/sv-benchmarks/tree/master/c/loop-invgen and the benchmarks directory.
1719

1820
## Known Issues
1921
<ul>

code2inv-fe/.gitignore

Lines changed: 0 additions & 27 deletions
This file was deleted.

code2inv-fe/.merlin

Lines changed: 0 additions & 10 deletions
This file was deleted.

code2inv-fe/.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

code2inv-fe/LICENSE

Lines changed: 0 additions & 30 deletions
This file was deleted.

code2inv-fe/Makefile

Lines changed: 0 additions & 43 deletions
This file was deleted.

code2inv-fe/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

code2inv-fe/_oasis

Lines changed: 0 additions & 55 deletions
This file was deleted.

code2inv-fe/_tags

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)