{"id":16132094,"url":"https://github.com/ekdohibs/polygen","last_synced_at":"2025-03-18T14:31:32.449Z","repository":{"id":38336659,"uuid":"141555605","full_name":"Ekdohibs/PolyGen","owner":"Ekdohibs","description":"PolyGen is a code generator for the polyhedral model, written and proved in Coq.","archived":false,"fork":false,"pushed_at":"2020-11-10T13:45:15.000Z","size":692,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T10:18:13.702Z","etag":null,"topics":["coq","polyhedral-model"],"latest_commit_sha":null,"homepage":"","language":"Coq","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ekdohibs.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":"2018-07-19T09:23:11.000Z","updated_at":"2024-10-15T15:00:51.000Z","dependencies_parsed_at":"2022-08-24T22:31:44.249Z","dependency_job_id":null,"html_url":"https://github.com/Ekdohibs/PolyGen","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/Ekdohibs%2FPolyGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekdohibs%2FPolyGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekdohibs%2FPolyGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekdohibs%2FPolyGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ekdohibs","download_url":"https://codeload.github.com/Ekdohibs/PolyGen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933428,"owners_count":20370986,"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":["coq","polyhedral-model"],"created_at":"2024-10-09T22:29:01.991Z","updated_at":"2025-03-18T14:31:32.161Z","avatar_url":"https://github.com/Ekdohibs.png","language":"Coq","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installing dependencies\n\nThe Coq development requires Coq version 8.7.2 and OCaml between 4.05.0 and 4.07.1 and may not work with newer versions of Coq and OCaml.\n\nYou will need the bundled version of the Verimag Polyhedra Library, which you can get with:\n```bash\ngit submodule init\ngit submodule update --recursive\n```\n\nSome additional C and OCaml libraries are required, as described below.\n\nWe recommend to use either OPAM (the OCaml package manager) or Nix (a Linux package manager).\n\n## With OPAM \n\nCreate a new OPAM switch: `opam switch create polygen 4.06.1+flambda`.\nInstall GMP, Debian/Ubuntu package libgmp-dev\nInstall GLPK, Debian/Ubuntu package libglpk-dev\nInstall [eigen](http://eigen.tuxfamily.org/), Debian/Ubuntu package libeigen3-dev.\nInstall the following ocaml packages: `opam install zarith glpk menhir coq=8.7.2`.\n\n## With Nix\n\nAnother way is to use `nix`. Type `nix-shell` to get a shell where all dependencies have been downloaded and installed.\nOne way to install `nix` is:\n```bash\ncurl https://nixos.org/nix/install | sh\n```\n\nNote that, if you use OPAM, the OPAM init scripts can add your current version of ocaml to your `$PATH`. In that case, it is advised to use\n`nix-shell --pure`, which will run a shell where all dependencies have been downloaded and installed, but no other programs will be available,\navoiding the conflicts with a preexisting OPAM installation.\n\n# Compiling\n\nThere are four steps for compiling the code:\n* Setup the VPL: `make vplsetup`.\n  This step compiles the bundled version of the Verimag Polyhedra Library that we use.\n* Compile the Coq files: `make`.\n* Extract the code generator to OCaml: `make extract`.\n* Compile the extracted code: `make ocaml`.\n\nThe executable running the code generator on different tests will be in `ocaml/test`.  Just run `./ocaml/test`, the results will be displayed on standard output.\n\nAlternatively, if using `nix`, you can just type `nix build`, and the executable will be available in `result/bin/test`.\n\nYou can build the documentation with `make documentation`, and it will be available in doc/index.html, or result/doc/index.html if you used `nix build`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekdohibs%2Fpolygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekdohibs%2Fpolygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekdohibs%2Fpolygen/lists"}