-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Currently there are no mutability specifiers on locals, often this means trying to figure out from context, or the json artifact, or the KMIR proof state what the mutability is. Sometimes this information is not close together and it takes time to track down.
^^^ Local 3 must have been mutable, since Local 5 has a mutable reference to it.
Much like rust, probably the best representation is omitting information if it is immutable, and adding mut prefixed if it is mutable.
So the example in the image above, it would be clearer if it printed in the LOCALS:
3 = mut std::array::IntoIter<i32, 1>
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers