fn field_to_int<F: PrimeField32>(x: F) -> i32 {
    let modulus = BabyBear::ORDER_U64;
    let val = x.as_canonical_u64();
    if val > modulus / 2 {
        val as i32 - modulus as i32
    } else {
        val as i32
    }
}
Display field elements as signed integers on the range `[-modulus/2, modulus/2]`.

This presentation is useful when debugging interactions as it makes it clear which interactions
are `send` and which are `receive`.
crates/stark/src/lookup/debug.rs