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

Report AlwaysFalseConstraints as CF errors #341

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

d367wang
Copy link

@d367wang d367wang commented Jul 6, 2021

Currently CFI sets the CF flag -Awarns to turn the hard error to warning, so that the inference won't terminate when encountering any, as

But it's still necessary to report the error. In this way, we both point out the existing hard errors, and infer a solution (or prove UNSAT) for the user.

testdata/ostrusted-unsat-test/Unsat.java Outdated Show resolved Hide resolved
tests/checkers/inference/test/CFInferenceUnsatTest.java Outdated Show resolved Hide resolved
tests/checkers/inference/test/CFInferenceTest.java Outdated Show resolved Hide resolved
testdata/ostrusted-unsat-test/Unsat.java Outdated Show resolved Hide resolved
@d367wang d367wang changed the title Add UNSAT verification for unit tests Report AlwaysFalseConstraints as a CF error Apr 24, 2022
@d367wang d367wang changed the title Report AlwaysFalseConstraints as a CF error Report AlwaysFalseConstraints as CF errors Apr 24, 2022
@d367wang d367wang requested a review from wmdietl April 24, 2022 23:14
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.

2 participants