A Modular Static Analysis Approach to Affine Loop Invariants Detection - Mines Paris Accéder directement au contenu
Communication Dans Un Congrès Année : 2010

A Modular Static Analysis Approach to Affine Loop Invariants Detection

Corinne Ancourt
Fabien Coelho
François Irigoin

Résumé

Modular static analyzers use procedure abstractions, a.k.a. summarizations, to ensure that their execution time increases linearly with the size of analyzed programs. A similar abstraction mechanism is also used within a procedure to perform a bottom-up analysis. For instance, a sequence of instructions is abstracted by combining the abstractions of its components, or a loop is abstracted using the abstraction of its loop body: fixed point iterations for a loop can be replaced by a direct computation of the transitive closure of the loop body abstraction. More specifically, our abstraction mechanism uses affine constraints, i.e. polyhedra, to specify pre- and post-conditions as well as state transformers. We present an algorithm to compute the transitive closure of such a state transformer, and we illustrate its performance on various examples. Our algorithm is simple, based on discrete differentiation and integration: it is very different from the usual abstract interpretation fixed point computation based on widening. Experiments are carried out using previously published examples. We obtain the same results directly, without using any heuristic.

Dates et versions

hal-00586338 , version 1 (15-04-2011)

Identifiants

Citer

Corinne Ancourt, Fabien Coelho, François Irigoin. A Modular Static Analysis Approach to Affine Loop Invariants Detection. The Second International Workshop on Numerical and Symbolic Abstract Domains, Sep 2010, Perpignan, France. pp.3-16, ⟨10.1016/j.entcs.2010.09.002⟩. ⟨hal-00586338⟩
69 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More