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
#[feature("bounded-int-utils")]
use core::internal::bounded_int::{self, BoundedInt};
use core::internal::OptionRev;

fn main() -> BoundedInt<-32767, 32767> {
    let num = match bounded_int::trim_min::<i16>(-0x8000) {
        OptionRev::Some(n) => n,
        OptionRev::None => 0,
    };

    num
}