Research Article
Detecting Floating-Point Expression Errors Based Improved PSO Algorithm
Algorithm 2
Generating large error intervals based on outlier peaks.
Require: peak_list, error_list | Ensure: | 1: ifthen | 2: fordo | 3: ifthen | 4: break | 5: else | 6: left, right peak_list[i] | 7: whiledo | 8: left left-0x1 | 9: end while | 10: whiledo | 11: right right + 0x1 | 12: end while | 13: [index] [left, right] | 14: end if | 15: index index + 1 | 16: end for | 17: merge_intervals() | 18: else | 19: float_distribution(a, b) | 20: end if | 21: ifthen | 22: | 23: else | 24: | 25: end if | 26: |
|