cairo-native 0.9.0-rc.5

A compiler to convert Cairo's IR Sierra code to MLIR and execute it.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use core::dict::Felt252Dict;

fn run_test() {
    let mut dict: Felt252Dict<u64> = Default::default();

    for number in 0..50_u64 {
        let snapshot = @dict;

        let key = number.try_into().unwrap();
        dict.insert(key, number);

        drop(snapshot)
    }
}
#[inline(never)]
// Force T to stay alive until after the end of the scope.
fn drop<T,+Drop<T>>(_x: T) {
}