1
2
3
4
5
6
7
8
9
10
11
12
13
use std::collections::HashMap;

use cairo_lang_sierra::ids::FunctionId;
use cairo_lang_sierra::program::StatementIdx;

/// Ap change information for a Sierra program.
#[derive(Debug, Eq, PartialEq)]
pub struct ApChangeInfo {
    /// The values of variables at matching libfuncs at given statements indices.
    pub variable_values: HashMap<StatementIdx, usize>,
    /// The ap_change of calling the given function.
    pub function_ap_change: HashMap<FunctionId, usize>,
}