Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CN VIP: Add support for memcpy & proxy #694

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

dc-mak
Copy link
Contributor

@dc-mak dc-mak commented Nov 5, 2024

This commit hooks into an existing place for assigning function types to proxy functions. It assumes that memcpy's type is expressible in CN, which is true-ish for now, but may not remain so if we want to support round-trip for pointers without provenance in byte values, and thus need a "special type" or more arbitrary set of operations on the typing context to support.

backend/cn/lib/check.ml Outdated Show resolved Hide resolved
backend/cn/lib/sctypes.ml Outdated Show resolved Hide resolved
backend/cn/lib/typeErrors.ml Outdated Show resolved Hide resolved
backend/cn/lib/typeErrors.ml Outdated Show resolved Hide resolved
tests/cn_vip_testsuite/cn_lemmas.h Outdated Show resolved Hide resolved
tests/cn_vip_testsuite/pointer_copy_memcpy.c Outdated Show resolved Hide resolved
@dc-mak dc-mak force-pushed the cn-vip-memcpy branch 5 times, most recently from 54514c6 to 67acca3 Compare November 6, 2024 12:37
This commit hooks into an existing place for assigning function types to
proxy functions. It assumes that memcpy's type is expressible in CN,
which is true-ish for now, but may not remain so if we want to support
round-trip for pointers without provenance in byte values, and thus need
a "special type" or more arbitrary set of operations on the typing
context to support.

It also removes some legacy/mostly unused code around partial
evaluation.
@dc-mak dc-mak marked this pull request as ready for review November 6, 2024 20:10
@dc-mak dc-mak merged commit bddba22 into rems-project:master Nov 6, 2024
4 checks passed
@dc-mak dc-mak deleted the cn-vip-memcpy branch November 6, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant