Denotational Abstract Interpretation of Logic Programs. Marriott, K., Søndergaard, H., & Jones, N. D. ACM Transactions on Programming Languages and Systems, 16(3):607–648, 1994.
doi  abstract   bibtex   
Logic programming languages are based on a principle of separation of ``logic'' and ``control.'' This means that they can be given simple model-theoretic semantics without regard to any particular execution mechanism (or proof procedure, viewing execution as theorem proving). While the separation is desirable from a semantical point of view, it does, however, make sound, efficient implementation of logic programming languages difficult. The lack of ``control information'' in programs calls for complex dataflow analysis techniques to guide execution. Since dataflow analysis furthermore finds extensive use in error-finding and transformation tools, there is a need for a simple and powerful theory of dataflow analysis of logic programs. The present paper offers such a theory, based on F. Nielson's extension of P. and R. Cousot's abstract interpretation. We present a denotational definition of the semantics of definite logic programs. This definition is of interest in its own right because of its compactness. Stepwise we develop the definition into a generic dataflow analysis which encompasses a large class of dataflow analyses based on the SLD execution model. We exemplify one instance of the definition by developing a provably correct groundness analysis to predict how variables may be bound to ground terms during execution. We also discuss implementation issues and related work.
@Article{Mar-Son-Jon_TOPLAS94,
  author    = {Kim Marriott and
		Harald S{\o}ndergaard and 
		Neil D. Jones},
  title     = {Denotational Abstract Interpretation of Logic Programs},
  journal   = {ACM Transactions on Programming Languages and Systems},
  volume    = {16},
  number    = {3},
  pages     = {607--648},
  year      = {1994},
  doi       = {10.1145/177492.177650},
  abstract  = {Logic programming languages are based on a principle of 
		separation of ``logic'' and ``control.'' This means that they
		can be given simple model-theoretic semantics without regard to
		any particular execution mechanism (or proof procedure, viewing
		execution as theorem proving). While the separation is desirable
		from a semantical point of view, it does, however, make sound, 
		efficient implementation of logic programming languages 
		difficult. The lack of ``control information'' in programs 
		calls for complex dataflow analysis techniques to guide 
		execution. Since dataflow analysis furthermore finds extensive 
		use in error-finding and transformation tools, there is a need 
		for a simple and powerful theory of dataflow analysis of logic 
		programs. The present paper offers such a theory, based on 
		F. Nielson's extension of P. and R. Cousot's abstract 
		interpretation. We present a denotational definition of the 
		semantics of definite logic programs. This definition is of 
		interest in its own right because of its compactness.
		Stepwise we develop the definition into a generic dataflow 
		analysis which encompasses a large class of dataflow analyses
		based on the SLD execution model. We exemplify one instance of
		the definition by developing a provably correct groundness 
		analysis to predict how variables may be bound to ground terms 
		during execution. We also discuss implementation issues and 
		related work.},
  keywords  = {Abstract interpretation, Abstract domains, Groundness analysis, Logic programming},
}

Downloads: 0