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

Smtlib2 #721

Merged
merged 32 commits into from
Sep 6, 2024
Merged

Smtlib2 #721

merged 32 commits into from
Sep 6, 2024

Conversation

hernanponcedeleon
Copy link
Owner

This PR creates a wrapper around the ProverEnvironment which allows to dump the encoding to an smtlib2 file.
Attached are the encodings of ticketlock both with eager and lazy methods, and this is the output of z3

> z3 output/ticketlock-eager.smt2 
unsat
unsat
> z3 output/ticketlock-lazy.smt2 
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
sat
unsat
unsat

output.zip

@hernanponcedeleon
Copy link
Owner Author

I have no clue why the diff from the browser shows changes related to PRs recently merged to development. I double checked that my rebase did not miss some of the changes, e.g., the Location class removed in #725 is not in this branch https://github.com/hernanponcedeleon/Dat3M/tree/smtlib2/dartagnan/src/main/java/com/dat3m/dartagnan/program/memory

I don't get those locally. Attached if the diff I get locally wrt development.

smtlib.patch

Copy link
Collaborator

@ThomasHaas ThomasHaas left a comment

Choose a reason for hiding this comment

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

LGTM

@hernanponcedeleon hernanponcedeleon merged commit 3e6f247 into development Sep 6, 2024
1 check passed
@hernanponcedeleon hernanponcedeleon deleted the smtlib2 branch September 6, 2024 05:43
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.

4 participants