You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception: /Users/clementwalter/Documents/sayajin-labs/keth/.venv/lib/python3.10/site-packages/starkware/cairo/common/modulo.cairo:98:5: Error at pc=0:41:
E Got an exception while executing a hint: Unknown memory cell at address 4:4
E %{
Address 4:4 is actually mul_mod_ptr:values_ptr which is empty since no mul is to be performed.
Updating the above snippet to do only mul and no add will raise the same error but in segment 3:4:
Describe the bug
This simple cairo code
will raise
Address
4:4
is actuallymul_mod_ptr:values_ptr
which is empty since no mul is to be performed.Updating the above snippet to do only
mul
and noadd
will raise the same error but in segment3:4
:Putting both
add
andmul
worksIt's worth noticing that the test program at
cairo-vm/cairo_programs/mod_builtin_feature/common/modulo.cairo
Lines 93 to 124 in df12864
slightly differs from the
run_mod_p_circuit
from the core lib because theassert
are not being aif
, see https://github.com/starkware-libs/cairo-lang/blob/8276ac35830148a397e1143389f23253c8b80e93/src/starkware/cairo/common/modulo.cairo#L12-L47The text was updated successfully, but these errors were encountered: