Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/cairo-lang-sierra-to-casm/src/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum EnvironmentError {

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum ApTrackingBase {
/// The base is a statement that enabled ap tracking.
/// The base is a statement that enabled AP tracking.
Statement(StatementIdx),
/// The base is the beginning of the function.
FunctionStart,
Expand All @@ -33,17 +33,17 @@ pub enum ApTrackingBase {
pub enum ApTracking {
Disabled,
Enabled {
/// The ap change between `base` and the current statement.
/// The AP change between `base` and the current statement.
ap_change: usize,
/// The statement that enabled the ap tracking.
/// The statement that enabled the AP tracking.
base: ApTrackingBase,
},
}

/// Part of the program annotations that libfuncs may access as part of their run.
#[derive(Clone, Debug)]
pub struct Environment {
/// The ap tracking information of the current statement.
/// The AP tracking information of the current statement.
pub ap_tracking: ApTracking,
/// The size of the continuous known stack.
pub stack_size: usize,
Expand Down