A Resource-Based Logic for Termination and Non-termination Proofs

  • Ton Chanh Le
  • Cristian Gherghina
  • Aquinas Hobor
  • Wei-Ngan Chin
Conference paper

DOI: 10.1007/978-3-319-11737-9_18

Part of the Lecture Notes in Computer Science book series (LNCS, volume 8829)
Cite this paper as:
Le T.C., Gherghina C., Hobor A., Chin WN. (2014) A Resource-Based Logic for Termination and Non-termination Proofs. In: Merz S., Pang J. (eds) Formal Methods and Software Engineering. ICFEM 2014. Lecture Notes in Computer Science, vol 8829. Springer, Cham

Abstract

We propose a unified logical framework for specifying and proving both termination and non-termination of various programs. Our framework is based on a resource logic which captures both upper and lower bounds on resources used by the programs. By an abstraction, we evolve this resource logic for execution length into a temporal logic with three predicates to reason about termination, non-termination or unknown. We introduce a new logical entailment system for temporal constraints and show how Hoare logic can be seamlessly used to prove termination and non-termination in our unified framework. Though this paper’s focus is on the formal foundations for a new unified framework, we also report on the usability and practicality of our approach by specifying and verifying both termination and non-termination properties for about 300 programs, collected from a variety of sources. This adds a modest 5-10% verification overhead when compared to underlying partial-correctness verification system.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Ton Chanh Le
    • 1
  • Cristian Gherghina
    • 2
  • Aquinas Hobor
    • 1
  • Wei-Ngan Chin
    • 1
  1. 1.Department of Computer ScienceNational University of SingaporeSingapore
  2. 2.Singapore University of Technology and DesignSingapore

Personalised recommendations