arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.11319cs.LO
收藏

一种更简单的堆分离指向逻辑

A Stricter Heap Separating Points-To Logic

René Haberland, Kirill Krinkin

摘要:

动态内存问题很难定位,可能会花费开发项目的大量精力,并且在之后由不同的人独立地重复报告类似的问题。验证作为一种形式化方法可以证明给定程序的堆与指定的动态行为相匹配。动态(或堆)内存,是主内存中的区域,在程序执行期间由程序语句操作,如alloc,free和指针操作。通常,堆内存是为那些在执行前内存使用量未知的问题分配的。堆内的区域可能“以某种方式”彼此相关,通常但不总是通过包含相关堆单元的绝对地址的指针。由所有有效指针变量描述的数据结构表明堆图。堆图是动态内存中的一个有向连通简单图,其中每个顶点代表一个唯一的内存地址,每条边连接两个堆顶点。堆图必须由来自本地堆栈的至少一个变量或最终由至少一个堆栈变量指向的其他堆图链指向。堆顶点不能重叠。堆公式表示动态内存上的断言,可以是heaplet,也可以是递归定义的堆空间或逻辑公式。

英文摘要:

Dynamic memory issues are hard to locate and may cost much of a development project's efforts and was repeatedly reported similarly afterwards independently by different persons. Verification as one formal method may proof a given program's heap matches a specified dynamic behaviour. Dynamic (or heap) memory, is the region within main memory that is manipulated by program statements like alloc, free and pointer manipulation during program execution. Usually, heap memory is allocated for problems where the amount of used memory is unknown prior to execution. Regions within the heap may be related "somehow" with each other, often, but not always, by pointers containing absolute addresses of related heap cells. The data structure described by all valid pointer variables manifests heap graphs. A heap graph is a directed connected simple graph within the dynamic memory which may contain cycles, and where each vertex represents an unique memory address and every edge links two heap vertices. The heap graph must be pointed by at least one variable from the local stack or a chain of other heap graphs which is finally pointed by at least one stacked variable. Heap vertices may not overlap. A heap formula expresses the assertion on dynamic memory and can either be a heaplet, or a recursively defined heap-spatial or logical formula.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑