In the following two sentences, there is -ing
after while:
While exploring the paths of program, we established a natural partitioning of paths on-the-fly based on program dependencies - such that only one path in a partition is explored.
Any method which covers various possible behaviours of a given program while avoiding path enumeration, can be extremely useful for software testing.
Can someone help to elaborate why the use of -ing
after while is correct (in term of grammar rule)?
Answer
These are examples of reduced adverbial clauses,in which the subject and BE are deleted.
While
we wereexploring the paths of the program, we established ...
Any method which covers ... whileit isavoiding path enumeration ...
This reduction is only permitted under two conditions:
The verb of the clause must be in a progressive form, or rewritable as a progressive form.
✲While explored the paths of the program ...
✲... while avoids path enumeration ...The subject of the clause must be the same as that of the main clause which it modifies, or a pronoun which refers to it.
✲While exploring the paths of the program, a natural partitioning was established ...
This implies that it was the partitioning which was exploring. The technical term is dangling modifier—‘dangling’ because the clause ‘hangs loose’, not firmly attached to an appropriate subject. Note that the unreduced clause is OK, because the differing subjects are distinguished:
OKWhile we were exploring ..., a natural partition was established ...
✲ marks an utterance as unacceptable
No comments:
Post a Comment