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

Generate specific statement #141

Open
jordiae opened this issue Oct 13, 2021 · 0 comments
Open

Generate specific statement #141

jordiae opened this issue Oct 13, 2021 · 0 comments

Comments

@jordiae
Copy link

jordiae commented Oct 13, 2021

Hi, many thanks for your work. My use case is as follows: I need to generate random C code (ideally just one statement or expression) such that I can get a return value with a given type signature. My goal is to generate random function definitions given their signature.

For instance, from int f(int x); obtain int f(int x) { return 5;}. Is it possible to use C-Smith for this purpose?

Many thanks in advance.

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

No branches or pull requests

1 participant