Skip to main content

A Practical Approach for Logic Program Analysis and Transformation

  • Conference paper
  • 715 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 1793))

Abstract

In this work we define a schematic language to concisely describe classes of logic programs. We show how our proposed formalism can be profitably employed to represent opportunities for program optimisation: we schematically specify commonly occurring inefficient portions of code and how these can be altered to improve the performance of programs. We have defined a fully automated approach to exploit these opportunities for the analysis and transformation of logic programs.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aït-Kaci, H.: Warren’s Abstract Machine. MIT Press, USA (1991)

    Google Scholar 

  2. Krzysztof, R.: Apt. From Logic Programming to Prolog. Prentice-Hall, U.K. (1997)

    Google Scholar 

  3. Chasseur, E., Deville, Y.: Logic Program Schemas, Constraints and Semi- Unification. In: Fuchs, N.E. (ed.) LOPSTR 1997. LNCS, vol. 1463, p. 69. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  4. Fuchs, N.E., Fromherz, M.P.J.: Schema-Based Transformations of Logic Programs. In: Proc. of LoPSTr 1991, Springer, Heidelberg (1992)

    Google Scholar 

  5. Huet, G., Lang, B.: Proving and Applying Program Transformations Expressed with Second-Order Patterns. Acta Informatica 11, 31–55 (1978)

    Article  MATH  MathSciNet  Google Scholar 

  6. Nielson, F.: Perspectives on Program Analysis. ACM Comp. Surv. 28(4es) (1996)

    Google Scholar 

  7. Paige, R.: Future Directions in Program Transformation. ACM Comp. Surv. 28(4es) (1996)

    Google Scholar 

  8. Proietti, M., Pettorossi, A.: Transformations of Logic Programs: Foundations and Techniques. J. Logic Progr. 19(20), 261–320 (1994)

    MathSciNet  Google Scholar 

  9. Richardson, J.D.C., Fuchs, N.E.: Development of correct transformation schemata for prolog programs. In: Fuchs, N.E. (ed.) LOPSTR 1997. LNCS, vol. 1463, p. 263. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  10. Sterling, L., Shapiro, E.: The Art of Prolog. MIT Press, Cambridge (1986)

    MATH  Google Scholar 

  11. Vasconcelos, W.W., Aragão, M.A., Fuchs, N.E.: Automatic Bottom-Up Analysis and Transformation of Logic Programs. In: Borges, D.L., Kaestner, C.A.A. (eds.) SBIA 1996. LNCS (LNAI), vol. 1159, Springer, Heidelberg (1996)

    Google Scholar 

  12. Vasconcelos, W.W., Aragão, M.A.T.: Automatic Extraction of Logic Program Transformations from Examples. Tech. Rep., Available upon request (1999)

    Google Scholar 

  13. Vasconcelos, W.W., Fuchs, N.E.: An Opportunistic Approach for Logic Program Analysis and Optimisation using Enhanced Schema-Based Transformations. In: Proietti, M. (ed.) LOPSTR 1995. LNCS, vol. 1048. Springer, Heidelberg (1996)

    Google Scholar 

  14. Zanutto, J.: Term Rewriting Systems: Theory and an Application. MSc Diss., IME. São Paulo Univ., Brazil(May 1999) (in Portuguese)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Weber-Vasconcelos, W., Xavier Meneses, E. (2000). A Practical Approach for Logic Program Analysis and Transformation. In: Cairó, O., Sucar, L.E., Cantu, F.J. (eds) MICAI 2000: Advances in Artificial Intelligence. MICAI 2000. Lecture Notes in Computer Science(), vol 1793. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10720076_8

Download citation

  • DOI: https://doi.org/10.1007/10720076_8

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-67354-5

  • Online ISBN: 978-3-540-45562-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics