• DocumentCode
    1297390
  • Title

    Proving loop programs

  • Author

    Basu, Sanat K. ; Misra, Jayadev

  • Author_Institution
    Univ. Texas, Austin, TX, USA
  • Issue
    1
  • fYear
    1975
  • fDate
    3/1/1975 12:00:00 AM
  • Firstpage
    76
  • Lastpage
    86
  • Abstract
    Given a `DO WHILE´ program P and a function F on a domain D, the authors investigate the problem of proving (or disproving) if P computes F over D. It is shown that if P satisfies certain natural constraints (well behaved), then there is a loop assertion independent of the structure of the loop body, that is both necessary and sufficient for proving the hypothesis. These results are extended to classes of loop programs which are not well behaved and to FOR loops. The sufficiency of Hoare´s DO WHILE axiom for well-behaved loop programs is shown. Applications of these ideas to the problem of mechanical generation of assertions is discussed.
  • Keywords
    program debugging; programming; theorem proving; DO WHILE axiom; FOR loops; loop assertion; loop invariant; loop program; proving loop programs; Computer science; Context; Erbium; Humans; Indexes; Input variables; Radio frequency; Assertion; DO WHILE axiom; equivalence; loop invariant; loop program; proof;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.1975.6312822
  • Filename
    6312822