首页    期刊浏览 2025年06月26日 星期四
登录注册

文章基本信息

  • 标题:Bagatelle in C arranged for VDM SoLo"
  • 本地全文:下载
  • 作者:J. N. Oliveira
  • 期刊名称:Journal of Universal Computer Science
  • 印刷版ISSN:0948-6968
  • 出版年度:2001
  • 卷号:7
  • 期号:8
  • DOI:10.3217/jucs-007-08-0754
  • 出版社:Graz University of Technology and Know-Center
  • 摘要:

    This paper sketches a reverse engineering discipline which combines formal and semi-formal methods. Central to the former is denotational semantics, expressed in the ISO/IEC 13817-1 standard specification language (VDMSL). This is strengthened with algebra of programming , which is applied in "reverse order" so as to reconstruct formal specifications from legacy code. The latter include code slicing , a "shortcut" which trims down the complexity of handling the formal semantics of all program variables at the same time.

    A key point of the approach is its constructive style. Reverse calculations go as far as absorbing auxiliary variables, introducing mutual recursion (if applicable) and reversing semantic denotations into standard generic programming schemata such as cata/paramorphisms.

    The approach is illustrated for a small piece of code already studied in the code-slicing literature: Kernighan and Richtie's word count C programming "bagatelle

  • 关键词:algebra of programming, denotational semantics, reverse engineering, slicing
国家哲学社会科学文献中心版权所有