A slicing-based approach for locating type errors

Author:

Tip F.1,Dinesh T. B.2

Affiliation:

1. IBM T. J. Watson Research Center, Yorktown Heights, NY

2. Pagelets, Inc., Palo Alto, CA

Abstract

The effectiveness of a type-checking tool strongly depends on the accuracy of the positional information that is associated with type errors. We present an approach where the location associated with an error message e is defined as a slice P e of the program P being type-checked. We show that this approach yields highly accurate positional information: P e is a program that contains precisely those program constructs in P that caused error e . Semantically, we have the interesting property that type-checking P e is guaranteed to produce the same error e . Our approach is completely language-independent and has been implemented for a significant subset of Pascal. We also report on experiments with object-oriented type systems, and with a subset of ML.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference52 articles.

1. Cosy compiler phase embedding with the CoSy compiler model

2. Conditional rewrite rules: Confluence and termination

3. BERGSTRA J. A. 1989. Algebraic Specification. ACM Press Frontier Series. ACM Press New York NY.]] BERGSTRA J. A. 1989. Algebraic Specification. ACM Press Frontier Series. ACM Press New York NY.]]

4. BERNSTEIN K. L. AND STARK E. W. 1995. Debugging type errors. State University of New York at Stony Brook Stony Brook NY.]] BERNSTEIN K. L. AND STARK E. W. 1995. Debugging type errors. State University of New York at Stony Brook Stony Brook NY.]]

Cited by 46 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Total Type Error Localization and Recovery with Holes;Proceedings of the ACM on Programming Languages;2024-01-05

2. Slicing‐Based Techniques for Software Fault Localization;Handbook of Software Fault Localization;2023-04-20

3. Software Fault Localization: an Overview of Research, Techniques, and Tools;Handbook of Software Fault Localization;2023-04-20

4. Detecting false-passing products and mitigating their impact on variability fault localization in software product lines;Information and Software Technology;2023-01

5. Detecting Coincidental Correctness and Mitigating Its Impacts on Localizing Variability Faults;2022 14th International Conference on Knowledge and Systems Engineering (KSE);2022-10-19

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3