Optimality in goal-dependent analysis of sharing

  • Authors:
  • Gianluca Amato;Francesca Scozzari

  • Affiliations:
  • Dipartimento di scienze, università di chieti–pescara, pescara, italy (e-mail: amato@sci.unich.it, scozzari@sci.unich.it);Dipartimento di scienze, università di chieti–pescara, pescara, italy (e-mail: amato@sci.unich.it, scozzari@sci.unich.it)

  • Venue:
  • Theory and Practice of Logic Programming
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We face the problems of correctness, optimality, and precision for the static analysis of logic programs, using the theory of abstract interpretation. We propose a framework with a denotational, goal-dependent semantics equipped with two unification operators for forward unification (calling a procedure) and backward unification (returning from a procedure). The latter is implemented through a matching operation. Our proposal clarifies and unifies many different frameworks and ideas on static analysis of logic programming in a single, formal setting. On the abstract side, we focus on the domain sharing by Jacobs and Langen (The Journal of Logic Programming, 1992, vol. 13, nos. 2–3, pp. 291–314) and provide the best correct approximation of all the primitive semantic operators, namely, projection, renaming, and forward and backward unifications. We show that the abstract unification operators are strictly more precise than those in the literature defined over the same abstract domain. In some cases, our operators are more precise than those developed for more complex domains involving linearity and freeness.