Verifying spatial properties of array computations
Verifying spatial properties of array computations
复制标题
验证数组计算的空间属性
DOI:
10.1145/3133899
复制
发表时间:
2017
影响因子:
--
通讯作者:
Orchard D
中科院分区:
文献类型:
--
作者:
Orchard D
Arrays computations are at the core of numerical modelling and computational science applications. However, low-level manipulation of array indices is a source of program error. Many practitioners are aware of the need to ensure program correctness, yet very few of the techniques from the programming research community are applied by scientists. We aim to change that by providing targetted lightweight verification techniques for scientific code. We focus on the all too common mistake of array offset errors as a generalisation of off-by-one errors. Firstly, we report on a code analysis study on eleven real-world computational science code base, identifying common idioms of array usage and their spatial properties. This provides much needed data on array programming idioms common in scientific code. From this data, we designed a lightweight declarative specification language capturing the majority of array access patterns via a small set of combinators. We detail a semantic model, and the design and implementation of a verification tool for our specification language, which both checks and infers specifications. We evaluate our tool on our corpus of scientific code. Using the inference mode, we found roughly 87,000 targets for specification across roughly 1.1 million lines of code, showing that the vast majority of array computations read from arrays in a pattern with a simple, regular, static shape. We also studied the commit logs of one of our corpus packages, finding past bug fixes for which our specification system distinguishes the change and thus could have been applied to detect such bugs.
登录
查看更多内容
DOI:
--
发表时间:
1997-12
期刊:
--
影响因子:
--
作者:
M. Griebel;T. Dornseifer;T. Neunhoeffer
通讯作者:
M. Griebel;T. Dornseifer;T. Neunhoeffer
DOI:
--
发表时间:
1997-09
期刊:
--
影响因子:
--
作者:
Tao Pang
通讯作者:
Tao Pang
DOI:
10.1016/j.scico.2014.03.013
发表时间:
2013
期刊:
Sci. Comput. Program.
影响因子:
--
作者:
S. Blom;M. Huisman;M. Mihelčić
通讯作者:
M. Mihelčić
DOI:
10.17863/cam.4599
发表时间:
2016
期刊:
--
影响因子:
--
作者:
Contrastin MOJP
通讯作者:
Contrastin MOJP
DOI:
--
发表时间:
2017
期刊:
影响因子:
--
作者:
Dominic A. Orchard;Mistral Contrastin;Matthew Danish;A. Rice
通讯作者:
A. Rice