{"id":14966286,"url":"https://github.com/sigurdschneider/lvc","last_synced_at":"2026-03-05T04:31:42.264Z","repository":{"id":15022409,"uuid":"17748132","full_name":"sigurdschneider/lvc","owner":"sigurdschneider","description":"LVC verified compiler","archived":false,"fork":false,"pushed_at":"2018-11-01T09:23:57.000Z","size":5913,"stargazers_count":57,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-31T07:51:29.575Z","etag":null,"topics":["compiler","compiler-design","constant-propagation","coq","coq-formalization","lvc","lvc-compiler","register-allocation","register-assignment","spilling","ssa-construction","verification","verified-compiler"],"latest_commit_sha":null,"homepage":null,"language":"Coq","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigurdschneider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-14T14:07:49.000Z","updated_at":"2024-07-06T16:49:10.000Z","dependencies_parsed_at":"2022-09-23T02:50:39.578Z","dependency_job_id":null,"html_url":"https://github.com/sigurdschneider/lvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigurdschneider%2Flvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigurdschneider%2Flvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigurdschneider%2Flvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigurdschneider%2Flvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigurdschneider","download_url":"https://codeload.github.com/sigurdschneider/lvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238174128,"owners_count":19428630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","compiler-design","constant-propagation","coq","coq-formalization","lvc","lvc-compiler","register-allocation","register-assignment","spilling","ssa-construction","verification","verified-compiler"],"created_at":"2024-09-24T13:36:09.617Z","updated_at":"2025-10-25T16:30:47.877Z","avatar_url":"https://github.com/sigurdschneider.png","language":"Coq","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LVC Compiler Project\nLVC stands for Linear Verified Compiler. The compiler is based on the linear first-order language IL [1,2]. The goal of the project is to show that functional SSA, i.e. using a functional style lexical variable binding provides for a viable semantic foundation for static single assignment (SSA).\n\n- CoqDoc documentation is available [here](https://sigurdschneider.github.io/lvc).\n\n## Dependencies\n\n- **Coq**\n\n    Sources compile with Coq version 8.7.2 (March 2018). Other versions might work.\n\n- **OCaml** (including ocamlbuild)\n\n    Sources compile with ocaml version 4.04.2, other versions might work.\n    OCaml should include ocamlbuild.\n\n- **menhir**\n\n    A parser generator mostly compatible with ocamlyacc (but better at explaining conflicts):\n    http://gallium.inria.fr/~fpottier/menhir/\n    Sources compile with version 20171013. Other versions might work.\n\n- **ruby** [optional]\n\n    If you want build times to be output, you need ruby.\n\n## Building LVC\n\nGet the source code via \n\n\tgit clone https://github.com/sigurdschneider/lvc\n\tgit submodule update --init --recursive\n\nAfter installing the dependencies, you *can* (but if you did not change anthring, you do not have to) use\n\n\t./configure.sh\n\nto generate `_CoqProject` from the sources. This step is strictly optional, as we also provide a `_CoqProject`\nin this distribution. Then build LVC using\n\n\tmake\n\tmake extraction\n\nThis will generate a OCaml bytecode, and the following symbolic link will point to it\n\n\textraction/lvcc.byte\n\nThere are some example files in extraction/examples. Run one by issuing the following command:\n\n\tcd extraction\n\t./lvcc.byte examples/dve.il\n\t./lvcc.byte examples/dve+dce.il\n\nThe output after different compilation phases will be in files `example/dve.il.$PHASE` where $PHASE is the \ncompilation phase.\n\n## Disclaimer\n\nThe sources incorporate ideas and code from various sources.\n\n- The subdir `Containers` contains a copy of the [Containers library](http://www.lix.polytechnique.fr/coq/pylons/contribs/view/Containers/v8.4) which is available on [github](https://github.com/coq-contribs/containers/) was [slightly](https://github.com/sigurdschneider/containers) adapted for the needs of the project.\n- The subdir `paco` contains a copy of the [Paco Library](http://plv.mpi-sws.org/paco/).\n- The subdir TransVal/ contains work based on Heiko Becker's Bachelor's Thesis: [Verified SMT-based Translation Validation](http://compilers.cs.uni-saarland.de/publications/theses/becker_bsc.pdf).\n- The file `Lattice.v` was inspired by the [Lattice development from Daniel W.H. James and Ralf Hinze](http://www.cs.ox.ac.uk/people/daniel.james/lattice.html).\n- The file `Infra/SizeInduction.v` contains the type-class based size-induction from [AutoSubst](https://www.ps.uni-saarland.de/autosubst/).\n- Parts of the spilling infrastructure in directory `Spilling` were done by [Julian Rosemann](https://www.ps.uni-saarland.de/~rosemann/bachelor.php) and published at ITP 2017[3].\n\n## References\n\n[1] Sigurd Schneider: Semantics of an Intermediate Language for Program Transformation. Master's Thesis. Saarland University, 2013.\n[2] Sigurd Schneider, Gert Smolka, Sebastian Hack: A Linear First-Order Functional Intermediate Language for Verified Compilers. ITP 2015\n[3] Julian Rosemann, Sigurd Schneider, Sebastian Hack: Verified Spilling and Translation Validation with Repair. ITP 2017\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigurdschneider%2Flvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigurdschneider%2Flvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigurdschneider%2Flvc/lists"}