openvm_stark_sdk/dummy_airs/fib_air/
trace.rsuse openvm_stark_backend::{p3_field::PrimeField32, p3_matrix::dense::RowMajorMatrix};
use super::columns::NUM_FIBONACCI_COLS;
pub fn generate_trace_rows<F: PrimeField32>(a: u32, b: u32, n: usize) -> RowMajorMatrix<F> {
assert!(n.is_power_of_two());
let mut rows = vec![vec![F::from_canonical_u32(a), F::from_canonical_u32(b)]];
for i in 1..n {
rows.push(vec![rows[i - 1][1], rows[i - 1][0] + rows[i - 1][1]]);
}
RowMajorMatrix::new(rows.concat(), NUM_FIBONACCI_COLS)
}