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

SMTLIB output validation suite #1741

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

SMTLIB output validation suite #1741

wants to merge 2 commits into from

Conversation

rafaelsamenezes
Copy link
Contributor

This allow us to check whether the SMTLIB output is producing valid formulas by checking the produced formulas against Z3. I also removed the --array-flattener flag from the default flags as it was causing some error in ESBMC (I will open an issue later for those).

--modes ${modes}
--file=${test}
--smt_test
--smt_solver=z3
Copy link
Member

Choose a reason for hiding this comment

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

This assumes that the executable z3 is installed on the UNIX AND NOT APPLE system. For my PC that's true, but can we expect that for everyone running ctest?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I am going to do a proper add_executable call here.

Comment on lines +219 to -197
# NOTE: We can't check for RC as some CORE test cases results in PARSING ERRORS :)
if TestCase.RUN_ONLY:
if rc != 0:
self.fail(f"Wrong output for process. Bombed out with exit code {rc}")
Copy link
Member

Choose a reason for hiding this comment

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

What's the problem with the PARSING ERROR tests here? They did exist before, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem, I am just not sure what we are verifying at this point. Are we verifying for a successful execution? It can be verification successful, SMTLIB, verification failed, parsing error. We could try to validate every one of them individually, but then we don't know what the original test case wanted.

Thats why I was annoyed that the PARSING ERROR for a limitation is in core. That being said, we could also consider testing whether the frontend can find issues correctly.

So, I preferred to just disable it. RUN_ONLY should check some byproduct of the run, not the run itself.

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.

None yet

3 participants