首页> 外国专利> Detecting Errors for Function Calls with an Implicit Receiver Object

Detecting Errors for Function Calls with an Implicit Receiver Object

机译:使用隐式接收器对象检测函数调用的错误

摘要

A code testing system identifies possible code errors that may generate unexpected application behaviors. The code testing system identifies function calls in the system by identifying function call sites that do not specify a receiver object but may invoke a function that uses a receiver object. To identify these call sites, the code testing system analyzes function operation to determine receiver functions that use a receiver object, and may exclude functions that use the receiver object in a pro forma way or that does not rely on or affect properties of the object. A callgraph is generated for the functions in the code to identify possible functions called from a call site. When a call site, based on the callgraph, may invoke a receiver function, the call site is analyzed to determine whether it specifies a receiver object for the called function and identifies an error when the call site does not specify a receiver object.
机译:代码测试系统识别可能会产生意外应用程序行为的可能的代码错误。代码测试系统通过识别未指定接收方对象但可以调用使用接收方对象的功能的功能调用站点来识别系统中的功能调用。为了识别这些呼叫站点,代码测试系统分析功能操作以确定使用接收方对象的接收方功能,并可以排除以形式方式使用接收方对象或不依赖或不影响对象属性的功能。为代码中的功能生成一个调用图,以标识从调用站点调用的可能功能。当基于该调用图的呼叫站点可以调用接收方函数时,将分析该呼叫站点以确定它是否为该被调用函数指定了接收方对象,并且在该呼叫站点未指定接收方对象时标识了错误。

著录项

  • 公开/公告号US2017255543A1

    专利类型

  • 公开/公告日2017-09-07

    原文格式PDF

  • 申请/专利权人 SYNOPSYS INC.;

    申请/专利号US201715449851

  • 申请日2017-03-03

  • 分类号G06F11/36;

  • 国家 US

  • 入库时间 2022-08-21 13:48:01

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号