TY - GEN
T1 - Computing preconditions and postconditions of while loops
AU - Mraihi, Olfa
AU - Ghardallou, Wided
AU - Louhichi, Asma
AU - Labed Jilani, Lamia
AU - Bsaies, Khaled
AU - Mili, Ali
PY - 2011
Y1 - 2011
N2 - Weakest preconditions were introduced by Dijkstra as a tool to define the semantics of programming constructs, and thereby as a means to prove the correctness of programs; the dual concept of strongest postcondition was introduced subsequently as an alternative means for the same ends. In this paper, we present and discuss a method to compute weakest preconditions and strongest postconditions of while loops in a C-like programming language; to this effect, we use the concept of invariant relation. Whereas the task of computing weakest preconditions and strongest postconditions of while loops is usually approached by limiting the number of iterations and applying successive sequential compositions, invariant relations afford us a crisper, closed form solution.
AB - Weakest preconditions were introduced by Dijkstra as a tool to define the semantics of programming constructs, and thereby as a means to prove the correctness of programs; the dual concept of strongest postcondition was introduced subsequently as an alternative means for the same ends. In this paper, we present and discuss a method to compute weakest preconditions and strongest postconditions of while loops in a C-like programming language; to this effect, we use the concept of invariant relation. Whereas the task of computing weakest preconditions and strongest postconditions of while loops is usually approached by limiting the number of iterations and applying successive sequential compositions, invariant relations afford us a crisper, closed form solution.
KW - invariant relation
KW - program correctness
KW - programming language semantics
KW - relational calculus
KW - strongest postcondition
KW - weakest precondition
KW - while loop
UR - http://www.scopus.com/inward/record.url?scp=80052726204&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=80052726204&partnerID=8YFLogxK
U2 - 10.1007/978-3-642-23283-1_13
DO - 10.1007/978-3-642-23283-1_13
M3 - Conference contribution
AN - SCOPUS:80052726204
SN - 9783642232824
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 173
EP - 193
BT - Theoretical Aspects of Computing, ICTAC 2011 - 8th International Colloquium, Proceedings
T2 - 8th International Colloquium on Theoretical Aspects of Computing, ICTAC 2011
Y2 - 31 August 2011 through 2 September 2011
ER -