Run-time Complexity Bounds Using Squeezers

被引:1
|
作者
Ish-Shalom, Oren [1 ]
Itzhaky, Shachar [2 ]
Rinetzky, Noam [1 ]
Shoham, Sharon [1 ]
机构
[1] Tel Aviv Univ, Tel Aviv, Israel
[2] Technion, Haifa, Israel
基金
欧洲研究理事会;
关键词
RESOURCE ANALYSIS; COST; PROGRAMS; INFERENCE;
D O I
10.1007/978-3-030-72019-3_12
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Determining upper bounds on the time complexity of a program is a fundamental problem with a variety of applications, such as performance debugging, resource certification, and compile-time optimizations. Automated techniques for cost analysis excel at bounding the resource complexity of programs that use integer values and linear arithmetic. Unfortunately, they fall short when execution traces become more involved, esp. when data dependencies may affect the termination conditions of loops. In such cases, state-of-the-art analyzers have shown to produce loose bounds, or even no bound at all. We propose a novel technique that generalizes the common notion of recurrence relations based on ranking functions. Existing methods usually unfold one loop iteration, and examine the resulting relations between variables. These relations assist in establishing a recurrence that bounds the number of loop iterations. We propose a different approach, where we derive recurrences by comparing whole traces with whole traces of a lower rank, avoiding the need to analyze the complexity of intermediate states. We offer a set of global properties, defined with respect to whole traces, that facilitate such a comparison, and show that these properties can be checked efficiently using a handful of local conditions. To this end, we adapt state squeezers, an induction mechanism previously used for verifying safety properties. We demonstrate that this technique encompasses the reasoning power of bounded unfolding, and more. We present some seemingly innocuous, yet intricate, examples where previous tools based on cost relations and control flow analysis fail to solve, and that our squeezer-powered approach succeeds.
引用
收藏
页码:320 / 347
页数:28
相关论文
共 50 条
  • [21] Run-time reconfiguration at Xilinx
    Guccione, SA
    [J]. PARALLEL AND DISTRIBUTED PROCESSING, PROCEEDINGS, 2000, 1800 : 873 - 873
  • [22] Run-Time Verification of Coboxes
    de Boer, Frank S.
    de Gouw, Stijn
    Wong, Peter Y. H.
    [J]. SOFTWARE ENGINEERING AND FORMAL METHODS, SEFM 2013, 2013, 8137 : 259 - 273
  • [23] DYNAMIC RUN-TIME STRUCTURES
    KING, T
    [J]. DR DOBBS JOURNAL, 1988, 13 (11): : 50 - &
  • [24] Run-time Resolution of Uncertainty
    Welsh, Kristopher
    Sawyer, Pete
    Bencomo, Nelly
    [J]. 2011 19TH IEEE INTERNATIONAL REQUIREMENTS ENGINEERING CONFERENCE (RE), 2011, : 355 - +
  • [25] Run-time adaptation in River
    Arpaci-Dusseau, RH
    [J]. ACM TRANSACTIONS ON COMPUTER SYSTEMS, 2003, 21 (01): : 36 - 86
  • [26] On run-time enforcement of policies
    Shah, Harshit
    Shyamasundar, R. K.
    [J]. ADVANCES IN COMPUTER SCIENCE - ASIAN 2007: COMPUTER AND NETWORK SECURITY, PROCEEDINGS, 2007, 4846 : 268 - +
  • [27] GENERATION OF RUN-TIME ENVIRONMENTS
    KAISER, GE
    [J]. SIGPLAN NOTICES, 1986, 21 (07): : 51 - 57
  • [28] Run-time cache bypassing
    Johnson, TL
    Connors, DA
    Merten, MC
    Hwu, WMW
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1999, 48 (12) : 1338 - 1354
  • [29] RUN-TIME PRINT VALUES
    FINKEL, R
    [J]. SIGPLAN NOTICES, 1983, 18 (02): : 62 - 64
  • [30] A run-time system for WCL
    Rowstron, A
    Wray, S
    [J]. INTERNET PROGRAMMING LANGUAGES, PROCEEDINGS, 1999, 1686 : 78 - 96