runtimeverification / runtimeverification/mir-semantics
Simplify K code for writing `Moved` values
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 52
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
As a follow-up to TypedValue -> Value PR #625 , writing Moved could be simpler, within #setLocalValue
- currently
#setLocalValueis never called withMovedvalues - would fail to write if the local is immutable
- could be fixed with a dedicated rule for
Movedor anorBoolin the requires clause (which anyway has to change to avoid duplicate rule application) #writeMovedand#forceSetLocalwould be obsolete
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at #setLocalValue and trace how Moved values are handled, then inspect #writeMoved and #forceSetLocal in the codebase. Review PR #625 for context. Done means Moved values write correctly, including for immutable locals, without duplicate rule application, and the obsolete helpers are removed.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100