Analysis of dynamic elements in bounded time

    公开(公告)号:US08533669B2

    公开(公告)日:2013-09-10

    申请号:US12426972

    申请日:2009-04-21

    IPC分类号: G06F9/44

    CPC分类号: G06F8/41 G06F8/43

    摘要: A code analysis system is described herein that provides code completion for programming languages that include elements that are not statically discoverable and that provides results in a predictable period that is acceptable for an interactive user interface. The system compiles each file into an intermediate state that can be stored and cached to speed later analysis of files. In addition, when executing a particular file, the system monitors a time-based threshold and/or a recursion depth so that if the compilation time is exceeding the threshold or a function is exceeding the recursion depth the system can stop the execution and use the intermediate results obtained up to that point to provide as much information as possible within a bounded execution time. When dynamic analysis fails, the system falls back to static analysis.

    ANALYSIS OF DYNAMIC ELEMENTS IN BOUNDED TIME
    2.
    发明申请
    ANALYSIS OF DYNAMIC ELEMENTS IN BOUNDED TIME 有权
    有限时间动态要素的分析

    公开(公告)号:US20100269095A1

    公开(公告)日:2010-10-21

    申请号:US12426972

    申请日:2009-04-21

    IPC分类号: G06F9/44 G06F9/45

    CPC分类号: G06F8/41 G06F8/43

    摘要: A code analysis system is described herein that provides code completion for programming languages that include elements that are not statically discoverable and that provides results in a predictable period that is acceptable for an interactive user interface. The system compiles each file into an intermediate state that can be stored and cached to speed later analysis of files. In addition, when executing a particular file, the system monitors a time-based threshold and/or a recursion depth so that if the compilation time is exceeding the threshold or a function is exceeding the recursion depth the system can stop the execution and use the intermediate results obtained up to that point to provide as much information as possible within a bounded execution time. When dynamic analysis fails, the system falls back to static analysis.

    摘要翻译: 本文描述了代码分析系统,其为包括不是静态可发现的元件的编程语言提供代码完成,并且在交互式用户界面可接受的可预测时段内提供结果。 系统将每个文件编译成可以存储和缓存的中间状态,以加快对文件的后续分析。 另外,当执行特定文件时,系统监视基于时间的阈值和/或递归深度,使得如果编译时间超过阈值或函数超过递归深度,则系统可以停止执行并使用 获得的中间结果直到此为止,在有限的执行时间内提供尽可能多的信息。 当动态分析失败时,系统回归到静态分析。