Function contains_cycle

Source
fn contains_cycle(stack: &[ActionKind]) -> bool