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

feat: add printing hints #1476

Merged
merged 15 commits into from
Nov 23, 2023
Merged

feat: add printing hints #1476

merged 15 commits into from
Nov 23, 2023

Conversation

greged93
Copy link
Contributor

@greged93 greged93 commented Nov 12, 2023

Debugging Hint

Description

The goal of this PR is to add debugging hints in the cairo vm behind a feature flag print.

Checklist

  • Linked to Github Issue feat: add debugging hints  #1475
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

vm/src/tests/cairo_run_test.rs Show resolved Hide resolved
vm/src/tests/cairo_run_test.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@pefontana pefontana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great @greged93 !!
I think that with adding the #[test] flag we will ge good to go

@greged93 greged93 changed the title feat: add printint hints feat: add printing hints Nov 16, 2023
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (397e699) 96.82% compared to head (90d733e) 96.81%.

Files Patch % Lines
...src/hint_processor/builtin_hint_processor/print.rs 91.42% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1476      +/-   ##
==========================================
- Coverage   96.82%   96.81%   -0.01%     
==========================================
  Files          95       96       +1     
  Lines       39451    39525      +74     
==========================================
+ Hits        38199    38267      +68     
- Misses       1252     1258       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@pefontana pefontana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one @greged93 !
I think we are having some errors with the no_Std compilation,
https://github.com/lambdaclass/cairo-vm/actions/runs/6895813983/job/18760636735?pr=1476
They should be easy to fix

@Oppen
Copy link
Contributor

Oppen commented Nov 16, 2023

Right, nostd can't use stdout. The features should be mutually exclusive.

@Oppen Oppen added this pull request to the merge queue Nov 23, 2023
Merged via the queue into lambdaclass:main with commit 4089b46 Nov 23, 2023
48 of 50 checks passed
kariy pushed a commit to dojoengine/cairo-rs that referenced this pull request Apr 5, 2024
* add print hints

* test

* remove u256 add felt

* change log

* fix based on comments

* add std feature for print

* Move Cairo Programs

* Update Makefile

* Use print tag  in test

* cargo fmt

* Update Makefile

* Update Makefile

---------

Co-authored-by: Pedro Fontana <fontana.pedro93@gmail.com>
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.

3 participants