You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following function fails to prove termination unless annotated with #[verifier::loop_isolation(false)]:
pub fn test(x: usize)
decreases x,
{
if x == 0 {
return;
}
for i in 0..1 {
test(x - 1);
}
}
Is this a reasonable default behavior? It seems the user can not express explicit termination-related conditions in the loop invariant, so loop_isolation(false) is the only solution.