Handling Non-linear Operations in the Value Analysis of COSTA

被引:4
作者
Alonso, Diego [1 ]
Arenas, Puri [1 ]
Genaim, Samir [1 ]
机构
[1] Complutense Univ Madrid UCM, DSIC, Madrid, Spain
关键词
Resource usage analysis; value analysis; non-linear operations; bit arithmetic operations;
D O I
10.1016/j.entcs.2011.11.002
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Inferring precise relations between (the values of) program variables at different program points is essential for termination and resource usage analysis. In both cases, this information is used to synthesize ranking functions that imply the program's termination and bound the number of iterations of its loops. For efficiency, it is common to base value analysis on non-disjunctive abstract domains such as Polyhedra, Octagon, etc. While these domains are efficient and able to infer complex relations for a wide class of programs, they are often not sufficient for modeling the effect of non-linear and bit arithmetic operations. Modeling such operations precisely can be done by using more sophisticated abstract domains, at the price of performance overhead. In this paper we report on the value analysis of COSTA that is based on the idea of encoding the disjunctive nature of non-linear operations into the (abstract) program itself, instead of using more sophisticated abstract domains. Our experiments demonstrate that COSTA is able to prove termination and infer bounds on resource consumption for programs that could not be handled before.
引用
收藏
页码:3 / 17
页数:15
相关论文
共 23 条
[1]  
Albert E, 2008, APPLIED COMPUTING 2008, VOLS 1-3, P368
[2]  
Albert E, 2008, LECT NOTES COMPUT SC, V5382, P113, DOI 10.1007/978-3-540-92188-2_5
[3]  
Albert E, 2008, LECT NOTES COMPUT SC, V5051, P2, DOI 10.1007/978-3-540-68863-1_2
[4]   Closed-Form Upper Bounds in Static Cost Analysis [J].
Albert, Elvira ;
Arenas, Puri ;
Genaim, Samir ;
Puebla, German .
JOURNAL OF AUTOMATED REASONING, 2011, 46 (02) :161-203
[5]   SSA is functional programming [J].
Appel, AW .
ACM SIGPLAN NOTICES, 1998, 33 (04) :17-20
[6]  
Bagnara R., 2006, QUADERNO U PARMA, V457
[7]   Efficient goal directed bottom-up evaluation of logic programs [J].
Codish, M .
JOURNAL OF LOGIC PROGRAMMING, 1999, 38 (03) :355-370
[8]  
Cook B, 2006, ACM SIGPLAN NOTICES, V41, P415, DOI 10.1145/1133981.1134029
[9]  
Cook B, 2010, LECT NOTES COMPUT SC, V6015, P236, DOI 10.1007/978-3-642-12002-2_19
[10]  
Cousot P., 1978, ACM S PRINC PROGR LA