Formal callability and its relevance and application to interprocedural data-flow analysis

J. Knoop
{"title":"Formal callability and its relevance and application to interprocedural data-flow analysis","authors":"J. Knoop","doi":"10.1109/ICCL.1998.674175","DOIUrl":null,"url":null,"abstract":"Formal callability is the problem of determining for every formal procedure call of a program the set of procedures it may call at run-time. This information is the key for constructing the procedure call graph of a program, a common prerequisite of static analyses of programs with procedures. Moreover, under specific side-conditions it reduces in interprocedural data-flow analysis the analysis of programs with formal procedure calls to the analyses of programs without formal calls by treating formal calls as higher-order branch statements. The author demonstrates that formal callability yields as a by-product the solution of the well-known formal reachability problem. This directly implies that formal callability is in general not decidable. However, the author shows that formal callability is decidable for programs, where formal procedure parameters do not occur in procedures, which are local to the procedure of their declaration (usually known as programs without global (formal) procedure parameters), but within a time bound which is exponential in the program size. Thus, the author complements the new decidability result by introducing in addition a safe approximation of formal callability called potential passability, which can efficiently be computed. Moreover, for programs of mode depth 2 (i.e., formal procedures do not have procedures as parameters) without global procedure parameters, formal callability and potential passability coincide.","PeriodicalId":279009,"journal":{"name":"Proceedings of the 1998 International Conference on Computer Languages (Cat. No.98CB36225)","volume":"593 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1998-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 1998 International Conference on Computer Languages (Cat. No.98CB36225)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCL.1998.674175","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Formal callability is the problem of determining for every formal procedure call of a program the set of procedures it may call at run-time. This information is the key for constructing the procedure call graph of a program, a common prerequisite of static analyses of programs with procedures. Moreover, under specific side-conditions it reduces in interprocedural data-flow analysis the analysis of programs with formal procedure calls to the analyses of programs without formal calls by treating formal calls as higher-order branch statements. The author demonstrates that formal callability yields as a by-product the solution of the well-known formal reachability problem. This directly implies that formal callability is in general not decidable. However, the author shows that formal callability is decidable for programs, where formal procedure parameters do not occur in procedures, which are local to the procedure of their declaration (usually known as programs without global (formal) procedure parameters), but within a time bound which is exponential in the program size. Thus, the author complements the new decidability result by introducing in addition a safe approximation of formal callability called potential passability, which can efficiently be computed. Moreover, for programs of mode depth 2 (i.e., formal procedures do not have procedures as parameters) without global procedure parameters, formal callability and potential passability coincide.
形式可调用性及其在过程间数据流分析中的相关性和应用
正式可调用性是确定程序的每个正式过程调用在运行时可以调用的过程集的问题。这些信息是构造程序的过程调用图的关键,是对带有过程的程序进行静态分析的共同前提。此外,在特定的侧条件下,它通过将正式调用视为高阶分支语句,将过程间数据流分析中对具有正式过程调用的程序的分析减少到对没有正式调用的程序的分析。作者证明了形式可调用性作为副产品产生了众所周知的形式可达性问题的解决方案。这直接意味着形式可调用性通常是不可确定的。然而,作者证明了程序的形式可调用性是可决定的,其中形式过程参数不出现在过程中,这些过程局部于其声明的过程(通常称为没有全局(形式)过程参数的程序),但在程序大小的指数范围内。因此,作者通过引入另一个可调用性的安全近似,即潜在可通过性,对新的可判定性结果进行了补充。此外,对于模式深度为2的程序(即形式过程没有过程作为参数),如果没有全局过程参数,则形式可调用性和潜在可通过性是一致的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书