Persisted specifications of method pre-and post-conditions for static checking
    2.
    发明授权
    Persisted specifications of method pre-and post-conditions for static checking 有权
    用于静态检查的方法前后条件的固定规范

    公开(公告)号:US07421680B2

    公开(公告)日:2008-09-02

    申请号:US10667542

    申请日:2003-09-22

    IPC分类号: G06F9/44

    CPC分类号: G06F8/433

    摘要: A system and method employing pre- and/or post-condition(s) specified at a source code level and persisted (e.g., in associated object code and/or a specification repository) facilitating static checking of the object code is provided. The system and method are based, at least in part, upon a framework that employs rules for using an interface to be recorded as declarative specifications in an existing language. The system can employ a range of annotations that allow a developer to specify interface rule(s) with varying precision. At the simplest end of the range, a specifier can mark those methods that allocate and release resource(s). A specifier can also limit the order in which an object's methods may be called to the transitions of a finite state machine. At the more complex end of the range, a specifier can give a method a plug-in pre- and post condition, which is arbitrary code that examines an object's current state and a static approximation of the method's actuals, decides whether the call is legal and returns the object's state after the call.

    摘要翻译: 提供了一种系统和方法,该系统和方法采用在源代码级指定的并保持状态(例如,在相关联的目标代码和/或规范库中)来促进目标代码的静态检查。 系统和方法至少部分地基于使用将接口用于以现有语言记录为声明性规范的规则的框架。 系统可以使用一系列注释,允许开发人员以不同的精度指定接口规则。 在范围的最简单的末尾,说明符可以标记分配和释放资源的方法。 说明符也可以限制对象的方法可能被调用到有限状态机的转换的顺序。 在范围更复杂的一端,一个指示符可以给出一个插件前后条件的方法,它是检查对象的当前状态的任意代码和方法实际的静态近似,决定呼叫是否合法 并在调用后返回对象的状态。

    Plug-in pre- and postconditions for static program analysis
    3.
    发明授权
    Plug-in pre- and postconditions for static program analysis 有权
    用于静态程序分析的插件前置和后置条件

    公开(公告)号:US07526755B2

    公开(公告)日:2009-04-28

    申请号:US10681759

    申请日:2003-10-08

    IPC分类号: G06F9/44

    CPC分类号: G06F11/3604

    摘要: A system and method employing pre- and/or post-condition(s) specified at a source code level and persisted (e.g., in associated object code and/or a specification repository) facilitating static checking of the object code is provided. The system and method are based, at least in part, upon a framework that employs rules for using an interface to be recorded as declarative specifications in an existing language.A specifier can give a method a plug-in pre- and postcondition, which is arbitrary code that examines an object's current state and a static approximation of the method's actuals, decides whether the call is legal and returns the object's state after the call.

    摘要翻译: 提供了一种系统和方法,该系统和方法采用在源代码级指定的并保持状态(例如,在相关联的目标代码和/或规范库中)来促进目标代码的静态检查。 系统和方法至少部分地基于使用将接口用于以现有语言记录为声明性规范的规则的框架。 一个说明符可以给出一个插件前置和后置条件的方法,它是检查对象的当前状态的任意代码和方法实际的静态近似,决定调用是否合法,并在调用后返回对象的状态。