PsycheC is a Hindley/Milner unification-based type inference engine for C. You can try it online here.
- C++14 compiler
- Haskell Stack
Installing and running
cmake CMakeLists.txt make cd solver stack setup stack build cd .. python Reconstruct.py path/to/file.c
How it works
The science behind our type inference is explained in the following paper:
- Inference of Static Semantics for Incomplete C Programs
This is a research project. While we strive to keep the code clean and to make the tool easily accessible, this is an academic effort. Neverless, feel free to provide feedback or to report bugs.
For a wrapper around PsycheC that integrates with your host C compiler, check Cnippet.