从低级指针到高级容器
From Low-Level Pointers to High-Level Containers
摘要:
我们提出了一种方法,将一个C程序操纵容器使用低级别的指针语句到一个等效的程序中,容器通过调用标准的高级别容器操作,如push_back或pop_front。我们的方法的输入是一个C程序注释的一种特殊形式的形状不变量,它可以从当前的自动形状分析器后,稍加修改。将低级指针语句总结为高级容器操作的结果程序更易于理解,并且(除了其他可能的好处之外)更适合于程序分析。我们已经实现了我们的方法,并成功地测试了它通过一些实验与基于列表的容器,包括实验简化程序分析分离形状分析数据相关的属性。
英文摘要:
We propose a method that transforms a C program manipulating containers using low-level pointer statements into an equivalent program where the containers are manipulated via calls of standard high-level container operations like push_back or pop_front. The input of our method is a C program annotated by a special form of shape invariants which can be obtained from current automatic shape analysers after a slight modification. The resulting program where the low-level pointer statements are summarized into high-level container operations is more understandable and (among other possible benefits) better suitable for program analysis. We have implemented our approach and successfully tested it through a number of experiments with list-based containers, including experiments with simplification of program analysis by separating shape analysis from analysing data-related properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。