The same compiled cairo file seems to be generating different memory files depending on the VM used.
The comparisons are made between the original python vm, lambdaclass rust vm and our go vm. I'm using shasum to check if the files match. The steps to reproduce this is at the end of the issue. I'm not sure if I'm testing something wrong or if there is indeed a bug.
Examples:
rust vm and nethermind vm match but python vm is different:
from starkware.cairo.common.alloc import alloc
from starkware.cairo.common.uint256 import Uint256
from starkware.cairo.common.cairo_blake2s.blake2s import blake2s_add_uint256
func main{range_check_ptr: felt}() {
let high = 10633823966279317261796329637309054975;
let low = 340282366920938463463374607431768211424;
let (data_new) = alloc();
blake2s_add_uint256{data=data_new}(Uint256(low=low, high=high));
return ();
The same compiled cairo file seems to be generating different memory files depending on the VM used.
The comparisons are made between the original python vm, lambdaclass rust vm and our go vm. I'm using shasum to check if the files match. The steps to reproduce this is at the end of the issue. I'm not sure if I'm testing something wrong or if there is indeed a bug.
Examples:
func main() { alloc_locals;
let (local p) = alloc();
ret; }
func main{output_ptr: felt*}() { return (); }
from starkware.cairo.common.alloc import alloc from starkware.cairo.common.uint256 import Uint256 from starkware.cairo.common.cairo_blake2s.blake2s import blake2s_add_uint256
func main{range_check_ptr: felt}() {
}
Steps to reproduce:
Compiling
Python VM
Rust VM
Nethermind VM
Comparing memory files