Research Article

A Hybrid Intelligent Search Algorithm for Automatic Test Data Generation

Algorithm 4

Initial domain calculation.
Input   = [min, max]: the domain of before selecting its initial value
  : a map used to store the path tendency of each variable
Output   : the domain of in which its initial value is selected
Begin
(1) Path Tendency() retrieval of Path-Tendency;
(2) if  (Path Tendency() = positive)
(3)   [(min + max)/2, max];
(4) else  if  (Path Tendency()) =  negative)
(5)     [min, (min + max)/2];
(6) return   ;
End