Using dynamically inferred invariants to analyze program runtime complexity

Thanhvu Nguyen, Didier Ishimwe, Alexey V. Malyshev, Timos Antonopoulos, Quoc-Sang Phan
{"title":"Using dynamically inferred invariants to analyze program runtime complexity","authors":"Thanhvu Nguyen, Didier Ishimwe, Alexey V. Malyshev, Timos Antonopoulos, Quoc-Sang Phan","doi":"10.1145/3416507.3423189","DOIUrl":null,"url":null,"abstract":"Being able to detect program runtime complexity can help identify security vulnerabilities such as DoS attacks and side-channel information leakage. In prior work, we use dynamic invariant generation to infer nonlinear numerical relations to represent runtime complexity of imperative programs. In this work, we propose a new dynamic analysis approach for learning recurrence relations to capture complexity bounds for recursive programs. This approach allows us to efficiently infer simple linear recurrence relations that represent nontrivial, potentially nonlinear, complexity bounds. Preliminary results on several popular recursive programs show that we can learn precise recurrence relations capturing worst-case complexity bounds such as O(n log n) and O(cn).","PeriodicalId":398049,"journal":{"name":"Proceedings of the 3rd ACM SIGSOFT International Workshop on Software Security from Design to Deployment","volume":"47 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-11-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 3rd ACM SIGSOFT International Workshop on Software Security from Design to Deployment","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3416507.3423189","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Being able to detect program runtime complexity can help identify security vulnerabilities such as DoS attacks and side-channel information leakage. In prior work, we use dynamic invariant generation to infer nonlinear numerical relations to represent runtime complexity of imperative programs. In this work, we propose a new dynamic analysis approach for learning recurrence relations to capture complexity bounds for recursive programs. This approach allows us to efficiently infer simple linear recurrence relations that represent nontrivial, potentially nonlinear, complexity bounds. Preliminary results on several popular recursive programs show that we can learn precise recurrence relations capturing worst-case complexity bounds such as O(n log n) and O(cn).
使用动态推断的不变量来分析程序运行时的复杂性
能够检测程序运行时复杂性可以帮助识别安全漏洞,例如DoS攻击和侧通道信息泄漏。在之前的工作中,我们使用动态不变量生成来推断非线性数值关系来表示命令式程序的运行时复杂性。在这项工作中,我们提出了一种新的动态分析方法来学习递归关系,以捕获递归程序的复杂性界限。这种方法允许我们有效地推断简单的线性递归关系,表示非平凡的,潜在的非线性,复杂性界限。几个流行的递归程序的初步结果表明,我们可以学习精确的递归关系,以捕获最坏情况的复杂度界限,如O(n log n)和O(cn)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书