-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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][Compiler-v2][Prover] CALL_BORROWED_MUTABLE_REFERENCE_ERROR is raised when there is an inline spec #14762
Labels
Comments
rahxephon89
changed the title
[Bug][Compiler-v2]
[Bug][Compiler-v2][Prover] CALL_BORROWED_MUTABLE_REFERENCE_ERROR in jwks.move when adding spec block to the inline function vector::find
Sep 26, 2024
This is the minimal example and inline is actually not involved:
This is the file-format:
Note that instead of using
|
rahxephon89
changed the title
[Bug][Compiler-v2][Prover] CALL_BORROWED_MUTABLE_REFERENCE_ERROR in jwks.move when adding spec block to the inline function vector::find
[Bug][Compiler-v2][Prover] CALL_BORROWED_MUTABLE_REFERENCE_ERROR is raised when there is an inline spec
Oct 7, 2024
Another example with inline function used:
Unlike the previous example, there is no work around of writing this spec to avoid the error. |
22 tasks
github-project-automation
bot
moved this from Assigned
to ✅ Done
in Move Language and Runtime
Oct 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
When adding to the following spec block after the while loop in the inline function
vector::find
compiler v2 will generate the following error when compiling the aptos-framework code:
bug: bytecode verification failed with unexpected status code
CALL_BORROWED_MUTABLE_REFERENCE_ERROR
. This is a compiler bug, consider reporting it.┌─ /Users/tengzhang/aptos-core/aptos-move/framework/aptos-framework/sources/jwks.move:582:26
│
582 │ option::some(vector::remove(&mut jwks.entries, index))
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered: