Skip to content

Feature request: more stable looping control flow #955

@ssyram

Description

@ssyram

Eurydice requires looping pattern matching to resugar the loops, e.g.,

let iter = ...::into_iter(&sth);
while true {
  let x = ...::next(&iter);
  match x {
    None -> break;
    Some ? -> ?
  }
}
?rest

However, there are cases when the ?rest things are put directly into the None case, this is correct wrt the control-flow, but it will escape from the resugaring patterns. Would it be possible to avoid such cases and have some more stable looping control flow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-control-flowIssue related to ullbc->llbc control-flow reconstruction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions