A Modular Static Analysis Approach to Affine Loop Invariants Detection

被引:27
|
作者
Ancourt, Corinne [1 ]
Coelho, Fabien [1 ]
Irigoin, Francois [1 ]
机构
[1] MINES ParisTech, Maths & Syst, CRI, 35 Rue St Honor, F-77300 Fontainebleau, France
关键词
Abstract interpretation; fixed point computation; loop invariant;
D O I
10.1016/j.entcs.2010.09.002
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 postconditions 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.
引用
收藏
页码:3 / 16
页数:14
相关论文
共 50 条
  • [1] Modular Invariants of Finite Affine Linear Groups
    Yin Chen
    Bulletin of the Brazilian Mathematical Society, New Series, 2018, 49 : 57 - 72
  • [2] Modular Invariants of Finite Affine Linear Groups
    Chen, Yin
    BULLETIN OF THE BRAZILIAN MATHEMATICAL SOCIETY, 2018, 49 (01): : 57 - 72
  • [3] Modular verification of static class invariants
    Leino, KRM
    Müller, P
    FM 2005: FORMAL METHODS, PROCEEDINGS, 2005, 3582 : 26 - 42
  • [4] Inferring Loop Invariants by Mutation, Dynamic Analysis, and Static Checking
    Galeotti, Juan P.
    Furia, Carlo A.
    May, Eva
    Fraser, Gordon
    Zeller, Andreas
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (10) : 1019 - 1037
  • [5] Analysis of affine invariants as approximate perspective invariants
    Cheng, Y
    COMPUTER VISION AND IMAGE UNDERSTANDING, 1996, 63 (02) : 197 - 207
  • [6] MODULAR INVARIANTS FOR AFFINE SU(3) THEORIES AT PRIME HEIGHTS
    RUELLE, P
    THIRAN, E
    WEYERS, J
    COMMUNICATIONS IN MATHEMATICAL PHYSICS, 1990, 133 (02) : 305 - 322
  • [7] Higher Coxeter graphs associated with affine su(3) modular invariants
    Hammaoui, D
    Schieber, G
    Tahri, EH
    JOURNAL OF PHYSICS A-MATHEMATICAL AND GENERAL, 2005, 38 (38): : 8259 - 8286
  • [8] A Data Driven Approach for Algebraic Loop Invariants
    Sharma, Rahul
    Gupta, Saurabh
    Hariharan, Bharath
    Aiken, Alex
    Liang, Percy
    Nori, Aditya V.
    PROGRAMMING LANGUAGES AND SYSTEMS, 2013, 7792 : 574 - 592
  • [9] AUTOMORPHISMS OF THE EXTENDED AFFINE ROOT-SYSTEM AND MODULAR PROPERTY FOR THE FLAT THETA INVARIANTS
    SATAKE, I
    PUBLICATIONS OF THE RESEARCH INSTITUTE FOR MATHEMATICAL SCIENCES, 1995, 31 (01) : 1 - 32
  • [10] Loop Invariants: Analysis, Classification, and Examples
    Furia, Carlo A.
    Meyer, Bertrand
    Velder, Sergey
    ACM COMPUTING SURVEYS, 2014, 46 (03)