|
|
@ -106,11 +106,15 @@ public class SequentialBlock extends StructuredBlock { |
|
|
|
subBlocks[0].used.unionExact(used); |
|
|
|
subBlocks[0].used.unionExact(used); |
|
|
|
subBlocks[0].makeDeclaration(done); |
|
|
|
subBlocks[0].makeDeclaration(done); |
|
|
|
|
|
|
|
|
|
|
|
/* Now add the variables used in the first block to the done |
|
|
|
VariableSet doneFirst; |
|
|
|
* set of the second block, since the first sub block has |
|
|
|
if (subBlocks[0] instanceof InstructionBlock) { |
|
|
|
* declared them. */ |
|
|
|
/* Now add the variables used in the first block to the done |
|
|
|
VariableSet doneFirst = (VariableSet) done.clone(); |
|
|
|
* set of the second block, since the first sub block has |
|
|
|
doneFirst.unionExact(subBlocks[0].used); |
|
|
|
* declared them. */ |
|
|
|
|
|
|
|
doneFirst = (VariableSet) done.clone(); |
|
|
|
|
|
|
|
doneFirst.unionExact(subBlocks[0].used); |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
doneFirst = done; |
|
|
|
subBlocks[1].makeDeclaration(doneFirst); |
|
|
|
subBlocks[1].makeDeclaration(doneFirst); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|