-
Notifications
You must be signed in to change notification settings - Fork 13
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
epic: investigate and design a tracing API for the cairo vm ts #41
Comments
@Eikix can you give more context ? or we close this? |
Ah yes, I wonder how we can replicate the concept of Cairo trace for Cairo VM TS The fact that you get a precise error trace when hitting a CairoVM error in Python. Moreover, I wonder if it can come directly decoded |
Are you talking about what the But if we're talking about where it failed on the Cairo program, such as cairo_programs/cairo_0/bad_programs/bad_range_check_builtin.cairo:4:5: Error at pc=0:2:
Value 3618502788666131213697322783095070105623107215331596699973092056135872020480, in range check builtin 0, is out of range [0, 340282366920938463463374607431768211456).
assert [range_check_ptr] = -1;
^****************************^
Assuming the Cairo file is available in the context of execution, adding a "2": {
"accessible_scopes": [
"__main__",
"__main__.main"
],
"flow_tracking_data": {
"ap_tracking": {
"group": 0,
"offset": 1
},
"reference_ids": {
"__main__.main.__temp0": 1,
"__main__.main.range_check_ptr": 0
}
},
"hints": [],
"inst": {
"end_col": 35,
"end_line": 4,
"input_file": {
"filename": "cairo_programs/cairo_0/bad_programs/bad_range_check_builtin.cairo"
},
"start_col": 5,
"start_line": 4
}
}, |
This is not linked to the VM trace (prover mode)
The text was updated successfully, but these errors were encountered: