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

[Not merge] Statistics script #397

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

[Not merge] Statistics script #397

wants to merge 30 commits into from

Conversation

HermanObst
Copy link
Collaborator

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Breaking changes?

  • yes
  • no

HermanObst and others added 28 commits September 10, 2024 13:13
Problem: there is a bug in this function causing us to miss some edge
bottom nodes, resulting in "Edge not found in preimage" bugs.

Solution: the bitmask needs to clear all the bits corresponding to the
edge, which can only be achieved with an `& 0x0` type of operation (and
not `& ~mask`. Additionally, the height was inverted compared to the
rest of the OS (0 is supposed to be the height of leaf nodes, not the
height of the root), this PR fixes this.
Problem: there is a bug in cairo-vm that causes the `dest_ptr` variable
in `segment_arena.cairo` to be set to 0 (felt) instead of a relocatable.

Solution: add a workaround that computes the correct value instead of
getting it from the Cairo code.
* fix: handle contract commitments for contract without data items

Problem: reexecution panics when a contract doesnt have data items

Solution: handle the edge case to prevent panics

* fix: only one commitment return
@HermanObst HermanObst changed the title Ho/run statistics Statistics script Oct 8, 2024
@HermanObst HermanObst changed the title Statistics script [Not merge] Statistics script Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants