Horn Clauses As an Intermediate Representation for Program Analysis and Transformation. Gange, G., Navas, J., Schachte, P., Søndergaard, H., & Stuckey, P. J. Theory and Practice of Logic Programming, 15(4–5):526–542, 2015.
doi  abstract   bibtex   
Many recent analyses for conventional imperative programs begin by transforming programs into logic programs, capitalising on existing LP analyses and simple LP semantics. We propose using logic programs as an intermediate program representation throughout the compilation process. With restrictions ensuring determinism and single-modedness, a logic program can easily be transformed to machine language or other low-level language, while maintaining the simple semantics that makes it suitable as a language for program analysis and transformation. We present a simple LP language that enforces determinism and single-modedness, and show that it makes a convenient program representation for analysis and transformation.
@article{Gan-Nav-Sch-Son-Stu_TPLP15,
  author    = {Graeme Gange and 
		Jorge Navas and 
		Peter Schachte and
                Harald S{\o}ndergaard and 
		Peter J. Stuckey},
  title     = {Horn Clauses As an Intermediate Representation for 
                Program Analysis and Transformation},
  journal   = {Theory and Practice of Logic Programming},
  volume    = {15},
  number    = {4--5},
  pages     = {526--542},
  year      = {2015},
  doi       = {http://dx.doi.org/10.1017/S1471068415000204},
  abstract  = {Many recent analyses for conventional imperative programs 
		begin by transforming programs into logic programs, 
		capitalising on existing LP analyses and simple LP 
		semantics.  We propose using logic programs as an 
		intermediate program representation throughout the 
		compilation process.  With restrictions ensuring 
		determinism and single-modedness, a logic program can 
		easily be transformed to machine language or other 
		low-level language, while maintaining the simple semantics
  		that makes it suitable as a language for program analysis
		and transformation.  We present a simple LP language that
		enforces determinism and single-modedness, and show that
		it makes a convenient program representation for analysis
		and transformation.},
  keywords  = {Static analysis, Intermediate representations, Horn clauses, Logic programming},
}

Downloads: 0