• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science

Previous Articles     Next Articles

An abstract domain based on
two-interval octagonal constraints

DING Ze-wen1,GUO Hong-chang2,KAN Shuang-long1,ZHANG Chi1   

  1. (1.School of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 210016;
    2.The Eastern Theater Air Equipment Department,Nanjing 210018,China)
  • Received:2016-12-13 Revised:2017-02-15 Online:2017-04-25 Published:2017-04-25

Abstract:

Static program analysis with abstract interpretation has been successfully applied to industry in order to avoid runtime errors and ensure the correctness of the software. Abstract domain is one of the important aspects in abstract interpretation theory. However, most of the existing numerical abstract domains cannot express non-convex properties. These limitations often affect the precision of numerical analysis and even lead to more false alarms.We propose a numerical abstract domain based on two-interval octagonal constraints. This abstract domain allows us to represent invariants of the form x±y∈[a,b]∪[c,d], where x  and y are variable values and a,b,c,d∈R. Domain elements in this abstract domain are represented by two-interval octagonal constraints, so the new abstract domain can express certain non-convex properties and is more expressive than the octagon abstract domain, with only a small overhead in the computational complexity of domain operation.

Key words: abstract interpretation, octagon abstract domain, two-interval, transfer function