- Title
- Learning to prioritize test programs for compiler testing
- Creator
- Chen, Junjie; Bai, Yanwei; Hao, Dan; Xiong, Yingfei; Zhang, Hongyu; Xie, Bing
- Relation
- 39th International Conference on Software Engineering. Proceedings: 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE 2017) (Buenos Aires, Argentina 20-28 May, 2017) p. 700-711
- Publisher Link
- http://dx.doi.org/10.1109/ICSE.2017.70
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Resource Type
- conference paper
- Date
- 2017
- Description
- Compiler testing is a crucial way of guaranteeing the reliability of compilers (and software systems in general). Many techniques have been proposed to facilitate automated compiler testing. These techniques rely on a large number of test programs (which are test inputs of compilers) generated by some test-generation tools (e.g., CSmith). However, these compiler testing techniques have serious efficiency problems as they usually take a long period of time to find compiler bugs. To accelerate compiler testing, it is desirable to prioritize the generated test programs so that the test programs that are more likely to trigger compiler bugs are executed earlier. In this paper, we propose the idea of learning to test, which learns the characteristics of bug-revealing test programs from previous test programs that triggered bugs. Based on the idea of learning to test, we propose LET, an approach to prioritizing test programs for compiler testing acceleration. LET consists of a learning process and a scheduling process. In the learning process, LET identifies a set of features of test programs, trains a capability model to predict the probability of a new test program for triggering compiler bugs and a time model to predict the execution time of a test program. In the scheduling process, LET prioritizes new test programs according to their bug-revealing probabilities in unit time, which is calculated based on the two trained models. Our extensive experiments show that LET significantly accelerates compiler testing. In particular, LET reduces more than 50% of the testing time in 24.64% of the cases, and reduces between 25% and 50% of the testing time in 36.23% of the cases.
- Subject
- computer bugs; testing; program processors; life estimation; feature extraction; training; predictive models
- Identifier
- http://hdl.handle.net/1959.13/1387851
- Identifier
- uon:32674
- Identifier
- ISBN:9781538638682
- Language
- eng
- Reviewed
- Hits: 3494
- Visitors: 3468
- Downloads: 0
Thumbnail | File | Description | Size | Format |
---|