runtimeverification / runtimeverification/kontrol

CSE: propagate immutable values to `program`/`code` cells

Open
#623 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cse engagement
Dominant language
Python
Stars
122
Forks
16
PR merge metrics
No merged PRs in 30d

Description

If a function we’re CSE-ing calls a function from a contract that has immutables, then the code we have to put into the account cell of that contract has to be the post-constructor-execution code, not the code with zeros where the immutables are.

One idea is to add a property similar to contract.has_immutables for a contract based on its AST, and then get the cell from the corresponding contract.init proof for it to be inserted into the <code> cell of the new account.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the CSE handling of account, program, and code cells, then inspect the contract.has_immutables logic and the corresponding contract.init proof. Confirm how the init proof exposes its output cell. Done means immutable values from post-constructor code are propagated into the new account's code cell instead of remaining zeroed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.