Computer Science ›› 2009, Vol. 36 ›› Issue (9): 115-121.

Previous Articles     Next Articles

Framework for Integrated Testing and Debugging of Logic Programs Based on Computed Answers Semantics

ZHAO Ling-zhong, LIAO Wei-zhi, QIAN Jun-yan, GU Tian-long   

  • Online:2018-11-16 Published:2018-11-16

Abstract: Debugging logic program is a time-consuming process that usually contains considerable manual interaction.Reducing unnecessary calls to a debugging procedure can improve the efficiency of software development. Samcerror-source symptoms obtained in program testing is a source of unnecessary calls to a debugging procedure. This paper proposed an integrated testing and debugging framework, in which the generation of test cases, discovering symptoms and the debugging (including the diagnosis and correction) of the program under consideration (PUC) arc interleaved in such a way that only one of the symptoms with same-error-source relation between each other will lead to the execution of a debugging procedure. In this way unnecessary calls to the procedure arc effectively avoided. With a constraint based fixpoint semantics for Prolog, the framework is instantiated to a novel testing and debugging algorithm, whose applicability and effectiveness are shown by an example in this paper.

Key words: Testing,Debugging,Logic programs,Computed answers semantics

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!