Sanitizers are a relatively recent trend in software engineering. They aim at automatically finding bugs in programs, and they are now commonly available to programmers as part of compiler toolchains. For example, the LLVM project includes out-of-the-box sanitizers to detect thread safety (tsan), memory (asan,msan,lsan), or undefined behaviour (ubsan) bugs. In this article, we present nsan, a new sanitizer for locating and debugging floating-point numerical issues, implemented inside the LLVM sanitizer framework. nsan puts emphasis on practicality. It aims at providing precise, and actionable feedback, in a timely manner. nsan uses compile-time instrumentation to augment each floating-point computation in the program with a higher-precision shadow which is checked for consistency during program execution. This makes nsan between 1 and 4 orders of magnitude faster than existing approaches, which allows running it routinely as part of unit tests, or detecting issues in large production applications.


翻译:清洁剂是软件工程中较近期的趋势。 它们的目标是自动发现程序中的错误, 现在程序员通常可以使用它们作为编译工具链的一部分。 例如, LLVM 项目包括了箱外消毒剂以检测线条安全( 桑)、 内存( san, msan, lsan) 或未定义的行为( ubsan) 错误。 在文章中, 我们展示了 Nsan, 用于定位和调试浮点数字问题的新清洁剂, 在 LLLVM 防污剂框架内实施。 nsan 强调了实用性。 它旨在及时提供准确和可操作的反馈。 nsan 使用编译时间仪器来增强程序中的每个浮点计算, 其光谱阴影在程序执行过程中要检查是否一致。 这使得 nsan 1 至 4 级的量级比现有方法更快, 从而可以作为单位测试的一部分例行运行, 或者在大型生产应用程序中探测问题 。

0
下载
关闭预览

相关内容

医学人工智能AIM(Artificial Intelligence in Medicine)杂志发表了多学科领域的原创文章,涉及医学中的人工智能理论和实践,以医学为导向的人类生物学和卫生保健。医学中的人工智能可以被描述为与研究、项目和应用相关的科学学科,旨在通过基于知识或数据密集型的计算机解决方案支持基于决策的医疗任务,最终支持和改善人类护理提供者的性能。 官网地址:http://dblp.uni-trier.de/db/journals/artmed/
必须收藏!MIT-Gilbert老爷子《矩阵图解》,一张图看透矩阵
专知会员服务
30+阅读 · 2020年11月4日
【2020新书】数据科学与机器学习导论,220页pdf
专知会员服务
81+阅读 · 2020年9月14日
强化学习最新教程,17页pdf
专知会员服务
181+阅读 · 2019年10月11日
【新书】Python编程基础,669页pdf
专知会员服务
196+阅读 · 2019年10月10日
机器学习入门的经验与建议
专知会员服务
94+阅读 · 2019年10月10日
TensorFlow 2.0 学习资源汇总
专知会员服务
67+阅读 · 2019年10月9日
已删除
将门创投
4+阅读 · 2018年6月12日
Arxiv
0+阅读 · 2021年4月19日
VIP会员
相关VIP内容
必须收藏!MIT-Gilbert老爷子《矩阵图解》,一张图看透矩阵
专知会员服务
30+阅读 · 2020年11月4日
【2020新书】数据科学与机器学习导论,220页pdf
专知会员服务
81+阅读 · 2020年9月14日
强化学习最新教程,17页pdf
专知会员服务
181+阅读 · 2019年10月11日
【新书】Python编程基础,669页pdf
专知会员服务
196+阅读 · 2019年10月10日
机器学习入门的经验与建议
专知会员服务
94+阅读 · 2019年10月10日
TensorFlow 2.0 学习资源汇总
专知会员服务
67+阅读 · 2019年10月9日
相关资讯
已删除
将门创投
4+阅读 · 2018年6月12日
Top
微信扫码咨询专知VIP会员