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

Uses clauses are not printed to file #599

Closed
Dargones opened this issue Jul 12, 2022 · 2 comments
Closed

Uses clauses are not printed to file #599

Dargones opened this issue Jul 12, 2022 · 2 comments

Comments

@Dargones
Copy link
Contributor

Since #561 has been reverted, uses clauses are no longer printed to a file. Among other things, this means that it is not always possible to manually reproduce the verification result reported by Boogie as a library.

Here is a concrete example of the problem in the context of Boogie being used as a dependency by Dafny. This Dafny program verifies because Dafny uses pruning but tells Boogie not to prune the axiom that defines function f:

function f():int { 0 }

method m(i:int) requires i != f() {
    assert i != 0;
}

However, if one were to ask Boogie to print the file generated from the Dafny program above, the result would be this (simplified):

function f():int;
axiom f() == 0;

procedure m(i:int) 
  requires i != f(); {assert i != 0;}

If I use /prune on this .bpl file, Boogie fails to verify it (I also supply the arguments recommended here).

@keyboardDrummer
Copy link
Collaborator

This (unfinished) PR might help towards resolving this issue: #600, as an alternative to #561

@shazqadeer
Copy link
Contributor

I believe this issue has been fixed by PR #765 and #767 .

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

3 participants