Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion charon/src/transform/control_flow/ullbc_to_llbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ impl ExitInfo {
}
})
.collect();
let num_possible_candidates = loop_exits.len();
let num_possible_candidates = possible_candidates.len();

// If there is exactly one one best candidate, it is easy.
// Otherwise we need to split further.
Expand Down
3 changes: 2 additions & 1 deletion charon/tests/ui/control-flow/loops.out
Original file line number Diff line number Diff line change
Expand Up @@ -2079,10 +2079,11 @@ where
return
},
_ => {
panic(core::panicking::panic)
break 0
},
}
}
panic(core::panicking::panic)
}

// Full name: test_crate::loop_break_1
Expand Down
3 changes: 2 additions & 1 deletion charon/tests/ui/demo.out
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,11 @@ where
return
},
_ => {
panic(core::panicking::panic)
break 0
},
}
}
panic(core::panicking::panic)
}

// Full name: test_crate::i32_id
Expand Down