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

[DNM] Execution trace dumping with contract support. #775

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Commits on Aug 28, 2024

  1. Add stuff.

    azteca1998 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    89789c6 View commit details
    Browse the repository at this point in the history
  2. Fix bug.

    azteca1998 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    1aaaea8 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    5347c55 View commit details
    Browse the repository at this point in the history
  2. Fix stuff.

    azteca1998 committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    12e3d8e View commit details
    Browse the repository at this point in the history
  3. Add trace dump contracts 2 (#783)

    * Impl ClassHash and SegmentArena
    
    * Add trace dump support to compiler
    
    * Reset workflows
    
    * Update lock
    
    * Implement BoundedInt
    
    * Fix Enum trace dump
    
    * Make gas_metadata public
    
    * Update deps
    
    * Fix bug
    
    * Move deps to optional (trace dump featire)
    JulianGCalderon authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    dd2258e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    52ef1d8 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    10ecaa2 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    b2935f0 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Fix error.

    azteca1998 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    57b39dc View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    1361621 View commit details
    Browse the repository at this point in the history
  2. Fix compile error.

    azteca1998 committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    30d7a98 View commit details
    Browse the repository at this point in the history
  3. Fix more errors.

    azteca1998 committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    e1ba709 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Add trace dump contracts 2 (#838)

    * Add logs
    
    * Implement Felt252Dict trace dump
    
    * Implement nullabel for trace dump
    
    * Print type id
    
    * Remove print
    
    * add convertion for Sints
    
    * fix mispelled types
    
    * forgot to add feature
    
    * change Sints value to correspond to sierra-emu
    
    * Readd feature
    
    * Add is_infinity field to secp256 point struct (#828)
    
    * add is_infinity to secp point
    
    * clean
    
    * fix
    
    * use same deps as blockifier
    
    * fix
    
    * fix layout
    
    * fix test
    
    * remove some brittle asserts due to random initial data when adding and muling points at infinity
    
    * fix
    
    * remove unused dep
    
    * fixes, missed the value entry/output
    
    * Reset src
    
    * Fix warnings
    
    * Make library public
    
    * Use debug runtime for trace dump
    
    * fix storage's values truncations (#839)
    
    * fix storage's values truncations
    
    * change implementation for i8 i16 i32 i64 too
    
    * format
    
    * Add ptr check to felt dict entry
    
    * Add malloc tracing and fix more memory leaks. (#833)
    
    * Add memory tracing.
    
    * Partial memory fixes.
    
    * Fix arrays.
    
    * Simplify dictionaries. Fix false positive memory leak in dictionary drops.
    
    * Fix zero-sized allocation. Fix warnings. More mem tracing checks.
    
    * Fix mem tracing.
    
    * Fix memory leak in `print` libfunc.
    
    * Fix array slice libfunc.
    
    * Fix starknet memory leaks.
    
    * Fix keccak syscall.
    
    * Fix dict get double free bug.
    
    * Lots of memory fixes.
    
    * More fixes.
    
    * Fix CI.
    
    * Remove old TODOs.
    
    * Fix CI (again).
    
    * Remove TODOs.
    
    * Fix test.
    
    * Maybe fix
    
    * Maybe fix
    
    * Maybe fix
    
    * Dont panic when building circuit partial outputs
    
    * trace dump for Sha256StateHandler
    
    * Builtin costs rework (#837)
    
    * Update to 2.8.4, release docs, alpha
    
    This PR updates cairo to 2.8.4, adds some release docs and updates the
    version to alpha.3 to prepare for another release.
    
    * try fix
    
    * cleanup ci, remove panic in link
    
    * rename from jit to from ptr, etc
    
    * crates.io badge
    
    * progress
    
    * progress
    
    * fmt2
    
    * progress
    
    * progress
    
    * fix
    
    * fix bench
    
    * use struct
    
    * Fix felt252 and enum deserialization bugs. (#844)
    
    * Fix felt252 and enum deserialization bugs.
    
    * Fix formatting.
    
    * Also fix the runtime.
    
    * Fix errors.
    
    * try to fix ci
    
    * remove unused deps
    
    ---------
    
    Co-authored-by: Edgar Luque <[email protected]>
    
    * Fix trace dump type conv
    
    * fix aot contract executor not passing builtinstats (#849)
    
    * Fix felt252 and enum deserialization bugs.
    
    * Fix formatting.
    
    * Also fix the runtime.
    
    * Fix errors.
    
    * try to fix ci
    
    * remove unused deps
    
    * fix aot contract executor not passing builtinstats
    
    ---------
    
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    
    * Fix bug (#851)
    
    * Also fix felt bits in starknet syscall wrappers (#853)
    
    * Also fix felt bits in starknet syscall wrappers
    
    * style
    
    * missed
    
    * fix aot contract executor not passing builtinstats (#849)
    
    * Fix felt252 and enum deserialization bugs.
    
    * Fix formatting.
    
    * Also fix the runtime.
    
    * Fix errors.
    
    * try to fix ci
    
    * remove unused deps
    
    * fix aot contract executor not passing builtinstats
    
    ---------
    
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    
    * Fix bug (#851)
    
    * Also fix felt bits in starknet syscall wrappers (#853)
    
    * Also fix felt bits in starknet syscall wrappers
    
    * style
    
    * missed
    
    * update version to alpha 4 (#854)
    
    * bytes31
    
    * Better function attributes and re-enable >O1 opt (#843)
    
    * Fix felt252 and enum deserialization bugs.
    
    * Fix formatting.
    
    * Also fix the runtime.
    
    * Fix errors.
    
    * try to fix ci
    
    * remove unused deps
    
    * proper function attributes
    
    * add proper function attrs to optimize better, add some passes, run tests with atleast some opts
    
    * dont use remi
    
    * oops
    
    * maybe with opt level 3 now it works
    
    * test
    
    * works
    
    * readd deleted bench
    
    * remove dbg
    
    * Update bench-hyperfine.sh
    
    * fixci
    
    * comment
    
    * Update src/ffi.rs
    
    Co-authored-by: MrAzteca <[email protected]>
    
    ---------
    
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: MrAzteca <[email protected]>
    
    * Resolve `CAIRO_NATIVE_RUNTIME_LIBRARY` relative path (#841)
    
    * feat(ffi): resolve runtime relative path using current dir
    
    * chore: remove mentions to old runtime variable
    
    * fix: typo
    
    ---------
    
    Co-authored-by: Bohdan Ohorodnii <[email protected]>
    
    * Implement secp
    
    * Fix bytes31
    
    * try to fix ci (#858)
    
    * update implementing libfuncs doc (#856)
    
    * Fix bytes31 bug
    
    * Remove unused dep
    
    ---------
    
    Co-authored-by: FrancoGiachetta <[email protected]>
    Co-authored-by: Edgar <[email protected]>
    Co-authored-by: MrAzteca <[email protected]>
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: Esteve Soler Arderiu <[email protected]>
    Co-authored-by: Rodrigo <[email protected]>
    Co-authored-by: Bohdan Ohorodnii <[email protected]>
    8 people authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    c989b31 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    d5a0271 View commit details
    Browse the repository at this point in the history
  2. Cargo.lock

    FrancoGiachetta committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    11c3714 View commit details
    Browse the repository at this point in the history
  3. enum 0 tag

    FrancoGiachetta committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    339534f View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. revert builtin costs

    FrancoGiachetta committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    da47a0f View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Configuration menu
    Copy the full SHA
    567c7a1 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Configuration menu
    Copy the full SHA
    99accfb View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. Configuration menu
    Copy the full SHA
    7f37246 View commit details
    Browse the repository at this point in the history
  2. gas u64

    FrancoGiachetta committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    85ce88b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76663d2 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. Configuration menu
    Copy the full SHA
    bb890c3 View commit details
    Browse the repository at this point in the history