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

[Bug][prover][compiler-v2] Using receiver syntax in specs causes boogie to crash #15969

Open
gregnazario opened this issue Feb 18, 2025 · 0 comments · May be fixed by #15992
Open

[Bug][prover][compiler-v2] Using receiver syntax in specs causes boogie to crash #15969

gregnazario opened this issue Feb 18, 2025 · 0 comments · May be fixed by #15992
Assignees
Labels
bug Something isn't working compiler-v2 move-prover

Comments

@gregnazario
Copy link
Contributor

🐛 Bug

Proving doesn't work properly with receiver style syntax. Without it, works perfectly fine.

To reproduce

Code snippet to reproduce

    spec fun spec_is_none<Element>(self: Option<Element>): bool {
        self.vec.is_empty()
    }

Stack trace/error message

{
  "Error": "Move Prover failed: [internal] boogie exited with compilation errors:\n/Users/greg/git/aptos-core/aptos-move/framework/move-stdlib/boogie.bpl(8760,1): error: invalid UnaryExpression\n1 parse errors detected in /Users/greg/git/aptos-core/aptos-move/framework/move-stdlib/boogie.bpl\n"
}

Expected Behavior

A clear and concise description of what you expected to happen.

System information

Please complete the following information:

  • Aptos Core Version
  • Rust Version
  • Computer OS

Additional context

Add any other context about the problem here.

@gregnazario gregnazario added the bug Something isn't working label Feb 18, 2025
@rahxephon89 rahxephon89 self-assigned this Feb 18, 2025
@rahxephon89 rahxephon89 changed the title [Bug] Using receiver syntax in specs causes boogie to crash [Bug][prover][compiler-v2] Using receiver syntax in specs causes boogie to crash Feb 18, 2025
@vineethk vineethk moved this from 🆕 New to Assigned in Move Language and Runtime Feb 20, 2025
@rahxephon89 rahxephon89 linked a pull request Feb 21, 2025 that will close this issue
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler-v2 move-prover
Projects
Status: Assigned
Development

Successfully merging a pull request may close this issue.

2 participants