Title :
Dynamic synthesis of program invariants using genetic programming
Author :
Cardamone, Luigi ; Mocci, Andrea ; Ghezzi, Carlo
Author_Institution :
Dipt. di Elettron., e Inf. Politec. di Milano, Milan, Italy
Abstract :
Symbolic program manipulation plays a key role in program comprehension and verification. Logic formulae are used to represent the program´ s state and transformation rules describe the effect of statement executions on the program´s state. A well-known problem arises in the case of loops, since the number of iterations is generally unknown. The effect of a loop is therefore abstracted into a loop invariant, whose derivation cannot in general be automated and requires human ingenuity. In this paper, we present a preliminary approach that in tegrates genetic programming into the synthesis of invariant formula that describes the behavior of a loop. We present a specific representation of formulae that works well with loops manipulating arrays. The technique has been validated with a set of relevant examples with increasing complexity. The preliminary results are promising and show the feasibility of our approach.
Keywords :
genetic algorithms; iterative methods; program verification; symbol manipulation; genetic programming; invariant formula; logic formulae; loop manipulating array; program comprehension; program in verification; statement execution; symbolic program manipulation; transformation rule; Arrays; Evolutionary computation; Genetic algorithms; Genetic programming; Logic arrays; Software engineering; Vegetation;
Conference_Titel :
Evolutionary Computation (CEC), 2011 IEEE Congress on
Conference_Location :
New Orleans, LA
Print_ISBN :
978-1-4244-7834-7
DOI :
10.1109/CEC.2011.5949677