National Natural Science Foundation of China (No.61170022);Natural Science Research Project of Colleges and Universities in Jiangsu Province (No.15KJB520019);Funded by Six Talents Peaks in Jiangsu Province;Supported by Training Objects of Young Teachers in Blue Project in Jiangsu Province;A Project Funded by the Priority Academic Program Development of Jiangsu Higher Education Institutions
Energy is one important bottleneck to the development of intelligent portable device.With the wide use of embedded operation system
the energy bug caused by unsuitablely using the API of the operation system has become the important factor in the designment of the embedded application.According to the characteristics of the No-Sleeping energy bug
a symbolic execution based energy bug detecting method is proposed to reduce the energy bug.It first uses intraprocedural analysis technology to analyze one function independently to get the energy information of the function.Then
the interprocedural analysis technology is applied to get the globe analysis of the program by the information of intraprocedural analysis which can get more accuate information for energy bug detection.Meanwhile
constraint solver can be combined to obtain the counter-example for locating the position of the error.Example and experiment results verify that the method is feasible and effective in energy bug detection.