cairo_lang_sierra_ap_change::compute

Function calc_ap_changes

source
pub fn calc_ap_changes<TokenUsages: Fn(StatementIdx, CostTokenType) -> usize>(
    program: &Program,
    token_usages: TokenUsages,
) -> Result<ApChangeInfo, ApChangeError>
Expand description

Calculates ap change information for a given program.