codegen plugin for Coq
This software provides Coq commands to generate C source code from Gallina definitions.
Home page
https://github.com/akr/codegen
Requiements
- Coq 8.8 (Coq 8.7 doesn't work)
- OCaml 4.06
How to build and install
make
make install
Examples
power function:
coqc sample/pow.v # generates sample/pow_proved.c
gcc -g -Wall sample/pow.c -o sample/pow
sample/pow
rank algorithm of succinct data structure:
coqc sample/rank.v # generates sample/rank_proved.c
gcc -g -Wall sample/rank.c -o sample/rank
sample/rank rand
Authors
- Tanaka Akira
- Reynald Affeldt
- Jacques Garrigue
Acknowledgment
This work is supported by JSPS KAKENHI Grant Number 15K12013.
Copyright
Copyright (C) 2016- National Institute of Advanced Industrial Science and Technology (AIST) "monomorphization plugin for Coq" AIST program registration number: H29PRO-2090
License
GNU Lesser General Public License Version 2.1 or later