Research Article
Path-Wise Test Data Generation Based on Heuristic Look-Ahead Methods
Algorithm 3
Dynamic variable ordering.
Input FV: the set of future variables | : the domain of ( FV) | () (): branches along the path | Output : a queue of FV | Begin | (1) quicksort ; | (2) for : | (3) if (, , ) | (4) break; | (5) else for () () | (6) if (rank()() = rank()()) | (7) ++; | (8) else permutate , by rank(, ); | (9) break; | (10) return ; | End |
|