Open AdityaSenthilvel opened 4 weeks ago
@rhit-csse-projects/t17-2425
Here is an example RESOLVE loop:
6 While ( 1 <= Length(Q) )
7 changing Q, T, E;
8 maintaining #Q = T o <E> o Q;
9 decreasing |Q|;
10 do
11 Enqueue(E,T);
12 Dequeue(E,Q);
13 end;
Inclusion (or not) of the changing clause by the developer:
How to know if X is changed in the loop body:
Including a changing clause for a loop but listing only a subset of changing variables is an error.