首页> 外文会议>International Seminar on Software Visualization, May 20-25, 2001, Dagstuhl Castle, Germany >Algorithm Explanation: Visualizing Abstract States and Invariants
【24h】

Algorithm Explanation: Visualizing Abstract States and Invariants

机译:算法说明:可视化抽象状态和不变量

获取原文
获取原文并翻译 | 示例

摘要

Software visualization provides methods to facilitate the understanding of algorithms and programs. Practically all existing visualization systems actually execute the code to be visualized on sample input data. In this paper, we propose a novel approach to algorithm explanation based on static program analysis, specifically shape analysis. Shape analysis of a program operating on heap-based data structures analyzes the program to find out relevant properties of its heap contents. The shape analysis we are using is parameterized with sets of observation properties, which are relevant properties of heap elements. Shape analysis associates sets of shape graphs with program points. These graphs describe both structural properties and non-structural properties such as sortedness. By summarizing sets of undistinguishable heap cells shape analysis supports focusing on active parts of the data structure. By computing the program's invariants it provides the basis for their visualization. After the application of the shape analysis the program is visually abstractly executed, i.e., traversed with a strategy corresponding to a meaningful explanation. Showing a sequence of shape graphs produced along a program path demonstrates how invariants are temporarily violated and then restored.
机译:软件可视化提供了有助于理解算法和程序的方法。实际上,所有现有的可视化系统实际上都执行要在样本输入数据上可视化的代码。在本文中,我们提出了一种基于静态程序分析(尤其是形状分析)的新颖的算法解释方法。对基于堆的数据结构进行操作的程序的形状分析会对该程序进行分析,以找出其堆内容的相关属性。我们使用的形状分析通过观察属性集进行参数化,这些属性是堆元素的相关属性。形状分析将形状图集与程序点相关联。这些图描述了结构特性和非结构特性(例如分类)。通过汇总不可区分的堆单元集,形状分析支持将重点放在数据结构的活动部分上。通过计算程序的不变量,它为可视化提供了基础。在应用形状分析之后,以视觉上抽象的方式执行该程序,即,以与有意义的解释相对应的策略来遍历该程序。显示沿程序路径生成的一系列形状图可以说明如何暂时违反不变式,然后将其恢复。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号