Automatic binding-related error diagnosis in logic programs

  • Authors:
  • Paweł Pietrzak;Manuel V. Hermenegildo

  • Affiliations:
  • School of Computer Science, Technical University of Madrid, UPM;School of Computer Science, Technical University of Madrid, UPM and Depts. of CS and ECE, University of New Mexico

  • Venue:
  • ICLP'07 Proceedings of the 23rd international conference on Logic programming
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper proposes a diagnosis algorithm for locating a certain kind of errors in logic programs: variable binding errors that result in abstract symptoms during compile-time checking of assertions based on abstract interpretation. The diagnoser analyzes the graph generated by the abstract interpreter, which is a provably safe approximation of the program semantics. The proposed algorithm traverses this graph to find the point where the actual error originates (a reason of the symptom), leading to the point the error has been reported (the symptom). The procedure is fully automatic, not requiring any interaction with the user. A prototype diagnoser has been implemented and preliminary results are encouraging.