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

First draft of itypes on prototypes #435

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

First draft of itypes on prototypes #435

wants to merge 2 commits into from

Conversation

aaronjeline
Copy link
Collaborator

This branch has the rewriter add I-Types to function prototypes that don't have a body

@aaronjeline
Copy link
Collaborator Author

aaronjeline commented Feb 17, 2021

Here's an example of a program it fails for, and the constraint graph generated.

#include <stddef.h>

extern _Unchecked char *strcpy(char * dest, const char * src : itype(_Nt_array_ptr<const char>));

void foo(void) {
        const char *test = "hello";
        char buf[10] = { 0 };
        strcpy(buf, test);
}

init

@mattmccutchen-cci
Copy link
Member

This PR looks like it may have been an attempt to fix #402, so I'm adding a reference.

@kyleheadley
Copy link
Member

How does this relate to #691? Is this PR still something we're pursuing?

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.

3 participants