CFG: improve handling of redo

This commit is contained in:
Arthur Baars
2020-12-07 16:20:42 +01:00
parent 003f7230b2
commit 9883d7124e

View File

@@ -460,7 +460,7 @@ private module Trees {
*
* ```rb
* for arg in args do
* puts arg
* puts arg
* end
* puts "done";
* ```
@@ -538,9 +538,9 @@ private module Trees {
succ = this and
c.continuesLoop()
or
last(this.getBody(), pred, any(RedoCompletion rc)) and
last(this.getBody(), pred, c) and
first(this.getBody(), succ) and
c instanceof SimpleCompletion
c instanceof RedoCompletion
}
}