微型机与应用
微型機與應用
미형궤여응용
MICROCOMPUTER & ITS APPLICATIONS
2011年
16期
9-11
,共3页
张志天%陈意云%刘刚
張誌天%陳意雲%劉剛
장지천%진의운%류강
Hoare逻辑%形状图逻辑%程序分析%分离逻辑
Hoare邏輯%形狀圖邏輯%程序分析%分離邏輯
Hoare라집%형상도라집%정서분석%분리라집
Hoare logic%shape graph logic%program analysis%separation logic
利用形状图逻辑和形状系统来解决指针程序的分析和验证中的困难。该方法要求程序员声明各种递归结构体类型参与构建的数据结构的形状,并声明指针变量所指向的形状,以便程序分析工具能建立各程序点的形状图,并以此来支持程序验证。探讨了在指针相等关系静态可确定的情况下,避免在Hoare逻辑上做复杂扩展的指针程序验证方法。
利用形狀圖邏輯和形狀繫統來解決指針程序的分析和驗證中的睏難。該方法要求程序員聲明各種遞歸結構體類型參與構建的數據結構的形狀,併聲明指針變量所指嚮的形狀,以便程序分析工具能建立各程序點的形狀圖,併以此來支持程序驗證。探討瞭在指針相等關繫靜態可確定的情況下,避免在Hoare邏輯上做複雜擴展的指針程序驗證方法。
이용형상도라집화형상계통래해결지침정서적분석화험증중적곤난。해방법요구정서원성명각충체귀결구체류형삼여구건적수거결구적형상,병성명지침변량소지향적형상,이편정서분석공구능건립각정서점적형상도,병이차래지지정서험증。탐토료재지침상등관계정태가학정적정황하,피면재Hoare라집상주복잡확전적지침정서험증방법。
Analysis and verification of programs dealing with pointers are still difficult problems so far. This paper uses a shape graph logic and a shape system to solve these problems. Using our method, programmers must declare the shapes that the recursive data structuresintend to build, and the shapes that pointer variables point to. Thus shape graphs can be constructed using an analysis tool and used tosupport the program verification. This paper presents a method for pointer program verification avoiding to make complicated extensions to Hoare logic in the situation that equalities over pointers can be decided statically.