Taming the wrapping of integer arithmetic

被引:0
|
作者
Simon, Axel [1 ]
King, Andy [1 ]
机构
[1] Univ Kent, Comp Lab, Canterbury, Kent, England
来源
STATIC ANALYSIS, PROCEEDINGS | 2007年 / 4634卷
基金
英国工程与自然科学研究理事会;
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Variables in programs are usually confined to a fixed number of bits and results that require more bits are truncated. Due to the use of 32-bit and 64-bit variables, inadvertent overflows are rare. However, a sound static analysis must reason about overflowing calculations and conversions between unsigned and signed integers; the latter remaining a common source of subtle programming errors. Rather than polluting an analysis with the low-level details of modelling two's complement wrapping behaviour, this paper presents a computationally light-weight solution based on polyhedral analysis which eliminates the need to check for wrapping when evaluating most (particularly linear) assignments.
引用
收藏
页码:121 / +
页数:2
相关论文
共 50 条
  • [1] Widening integer arithmetic
    Redwine, K
    Ramsey, N
    COMPILER CONSTRUCTION, PROCEEDINGS, 2004, 2985 : 232 - 249
  • [2] Modular Integer Arithmetic
    Schwarzweller, Christoph
    FORMALIZED MATHEMATICS, 2008, 16 (03): : 247 - 252
  • [3] Zeckendorf integer arithmetic
    Fenwick, P
    FIBONACCI QUARTERLY, 2003, 41 (05): : 405 - 413
  • [4] Integer and rational arithmetic on MasPar
    Jebelean, T
    DESIGN AND IMPLEMENTATION OF SYMBOLIC COMPUTATION SYSTEMS, 1996, 1128 : 162 - 173
  • [5] Integer points on arithmetic surfaces
    Autissier, P
    JOURNAL FUR DIE REINE UND ANGEWANDTE MATHEMATIK, 2001, 531 : 201 - 235
  • [6] INTEGER POINTS IN ARITHMETIC SEQUENCES
    Tucker, Thomas J.
    BULLETIN OF THE INSTITUTE OF MATHEMATICS ACADEMIA SINICA NEW SERIES, 2014, 9 (04): : 633 - 639
  • [7] MICROPROCESSOR APPLICATIONS OF INTEGER ARITHMETIC
    RAAMOT, J
    PROCEEDINGS OF THE IEEE, 1978, 66 (02) : 238 - 244
  • [8] Linear Integer Arithmetic Revisited
    Bromberger, Martin
    Sturm, Thomas
    Weidenbach, Christoph
    AUTOMATED DEDUCTION - CADE-25, 2015, 9195 : 623 - 637
  • [9] An arithmetic topos for integer matrices
    Hemelaer, Jens
    JOURNAL OF NUMBER THEORY, 2019, 204 : 155 - 184
  • [10] SELECTIVE PERHYDROXYLATION OF SQUALENE - TAMING THE ARITHMETIC DEMON
    CRISPINO, GA
    HO, PT
    SHARPLESS, KB
    SCIENCE, 1993, 259 (5091) : 64 - 66