Skip to content

test for function pointer removal #1385

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

Closed
wants to merge 1 commit into from
Closed

Conversation

kroening
Copy link
Member

This tests the interplay between the analysis in get_called_functions and remove_function_pointers.

@martin-cs
Copy link
Collaborator

@thk123 You know how you're a bit of an expert on function pointer removal, right...

Copy link
Contributor

@thk123 thk123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know what this is testing.

Not clear to me why my_f assigns my_ptr to itself, or why there is an asm instruction, is it relevant to the test?

Perhaps a more descriptive name or comment in test.desc would help?

Also, depending on what this is supposed to test, it might be trivially true as my_f is not referenced by anything from main. See regression/goto-analyzer/precise-const-fp-const-fp/main.c for how I have ensured the functions aren't eliminated by simple reachable analysis.

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently fails: https://travis-ci.org/diffblue/cbmc/jobs/275407122#L2337
Set to KNOWNBUG if fixed in a separated PR

@NlightNFotis
Copy link
Contributor

I am closing this PR, as it appears to be in a stale state, with CI failing and concerns about the value added.

Please, feel free to reopen the PR if you believe this is adding value and would like to rebase it on develop and get it merged.

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.

5 participants