{"id":21162639,"url":"https://github.com/appliedfm/coq-vsu-int_or_ptr","last_synced_at":"2026-01-27T23:03:56.401Z","repository":{"id":77583418,"uuid":"454975757","full_name":"appliedfm/coq-vsu-int_or_ptr","owner":"appliedfm","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-04T04:59:56.000Z","size":51,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T01:42:12.616Z","etag":null,"topics":[],"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/appliedfm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-03T00:00:17.000Z","updated_at":"2022-02-03T07:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4210286-a7bc-4e99-88b0-8baa8621c878","html_url":"https://github.com/appliedfm/coq-vsu-int_or_ptr","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/appliedfm%2Fcoq-vsu-int_or_ptr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appliedfm%2Fcoq-vsu-int_or_ptr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appliedfm%2Fcoq-vsu-int_or_ptr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appliedfm%2Fcoq-vsu-int_or_ptr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appliedfm","download_url":"https://codeload.github.com/appliedfm/coq-vsu-int_or_ptr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239828519,"owners_count":19703887,"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":[],"created_at":"2024-11-20T13:31:51.733Z","updated_at":"2026-01-27T23:03:51.380Z","avatar_url":"https://github.com/appliedfm.png","language":"Coq","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coq-vsu-int_or_ptr\n\n[![build](https://github.com/appliedfm/coq-vsu-int_or_ptr/actions/workflows/build.yml/badge.svg)](https://github.com/appliedfm/coq-vsu-int_or_ptr/actions/workflows/build.yml)\n\n![GitHub](https://img.shields.io/github/license/appliedfm/coq-vsu-int_or_ptr)\n\nA [Verified Software Unit](https://github.com/appliedfm/coq-vsu) for using aligned pointers as integers.\n\nImplemented in C, modeled in [Coq](https://coq.inria.fr), and proven correct using the [Verified Software Toolchain](https://vst.cs.princeton.edu/).\n\nCompatible with [CompCert](https://compcert.org/).\n\n\n## Verification status\n\nSpecifications are provided for the following targets:\n\n- [x] `x86_64-linux`\n- [x] `x86_32-linux`\n\nProofs are checked by our [CI infrastructure](https://github.com/appliedfm/coq-vsu-int_or_ptr/actions/workflows/build.yml).\n\n\n## Packages\n\n* `coq-vsu-int_or_ptr-src` - C source code\n* `coq-vsu-int_or_ptr-vst` - VST model, spec, \u0026 proof (`x86_64-linux`)\n* `coq-vsu-int_or_ptr-vst-32` - VST model, spec, \u0026 proof (`x86_32-linux`)\n\n\n## Installing\n\nInstallation is performed by `opam` with help by [coq-vsu](https://github.com/appliedfm/coq-vsu).\n\n```console\n$ opam pin -n -y .\n$ opam install coq-vsu-int_or_ptr-vst coq-vsu-int_or_ptr-vst-32\n```\n\n\n## Using the C library\n\nThe C library is installed to the path given by `vsu -I`. For example:\n\n```console\n$ tree `vsu -I`\n/home/tcarstens/.opam/coq-8.14/lib/coq-vsu/lib/include\n└── coq-vsu-int_or_ptr\n    ├── int_or_ptr.h\n    └── src\n        └── int_or_ptr.c\n\n2 directories, 2 files\n$\n```\n\n\n## Using the Coq library\n\nThe `coq-vsu-int_or_ptr-vst` and `coq-vsu-int_or_ptr-vst-32` are both target-specific. As such, they are sometimes installed into locations outside of Coq's search path. Fortunately, these libraries can be found by calling `vsu --show-coq-variant-path=PACKAGE`. For example:\n\n```console\n$ echo `vsu --show-coq-variant-path=coq-vsu-int_or_ptr-vst-32`\n/home/tcarstens/.opam/coq-8.14/lib/coq/../coq-variant/appliedfm/32/int_or_ptr\n$\n```\n\nThe `vsu` tool can also be used to supply Coq with the correct arguments for importing the target-specific libraries. For example:\n\n```\n$ tcarstens@pop-os:~/formal_methods/coq-vsu-int_or_ptr$ coqtop \\\n    `vsu -Q coq-vsu-int_or_ptr-vst-32` \\\n    `vsu -Q coq-compcert-32` \\\n    `vsu -Q coq-vst-32`\nWelcome to Coq 8.14.0\n\nCoq \u003c From VST Require Import floyd.proofauto.\n\nCoq \u003c From appliedfm Require Import int_or_ptr.vst.spec.spec.\n\nCoq \u003c Check int_or_ptr__is_int_spec.\nint_or_ptr__is_int_spec\n     : ident * funspec\n\nCoq \u003c \n```\n\n\n## Building without `opam`\n\nThe general pattern looks like this:\n\n```console\n$ make [verydeepclean|deepclean|clean]\n$ make BITSIZE={opam|64|32} [all|_CoqProject|clightgen|theories]\n```\n\n`BITSIZE` determines which `compcert` target to use. If unspecified, the default value is `opam`:\n\n* `opam` and `64` both use `x86_64-linux`\n* `32` uses `x86_32-linux`\n\n### Example: `x86_64-linux`\n\n```console\n$ make verydeepclean ; make\n```\n\n### Example: `x86_32-linux`\n\n```console\n$ make verydeepclean ; make BITSIZE=32\n```\n\n#\n\n[![Coq](https://img.shields.io/badge/-Coq-royalblue)](https://github.com/coq/coq)\n[![compcert](https://img.shields.io/badge/-compcert-pink)](https://compcert.org/)\n[![VST](https://img.shields.io/badge/-VST-palevioletred)](https://vst.cs.princeton.edu/)\n\n[![applied.fm](https://img.shields.io/badge/-applied.fm-orchid)](https://applied.fm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedfm%2Fcoq-vsu-int_or_ptr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappliedfm%2Fcoq-vsu-int_or_ptr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappliedfm%2Fcoq-vsu-int_or_ptr/lists"}