同一引擎,多种齿轮:在不同粒度下并行化固定点迭代
Same Engine, Multiple Gears: Parallelizing Fixpoint Iteration at Different Granularities (Extended Version)
AI总结:
本文提出了一种可灵活调整粒度的固定点引擎并行化方法,通过两种不同哲学实现,提升了静态分析效率。
摘要:
固定点迭代是静态分析器的算法核心。并行化固定点引擎可以显著减少分析时间。先前的方法通常在前期固定任务的粒度,例如在程序线程或过程的层面——导致引擎永久停留在一种齿轮上。相反,我们提出了一种并行化通用固定点引擎的方法,该方法以任务粒度为参数——意味着我们的引擎可以在不同齿轮下运行。我们基于自顶向下的求解器TD,扩展了对混合流敏感性的支持,并实现了两种竞争性的并行化哲学,两者都基于一个任务池,该池将任务调度到固定数量的工作者上。两种哲学的任务性质不同。在直接方法中,所有任务访问一个线程安全的哈希表来维护求解器状态;而在独立方法中,每个任务都有自己的状态,并通过发布/订阅数据结构与其他任务交换数据。我们已经为静态分析框架Goblint的固定点引擎实现了这两种哲学的实现,并报告了在大型真实世界程序上的结果。
英文摘要:
Fixpoint iteration constitutes the algorithmic core of static analyzers. Parallelizing the fixpoint engine can significantly reduce analysis times. Previous approaches typically fix the granularity of tasks upfront, e.g., at the level of program threads or procedures - yielding an engine permanently stuck in one gear. Instead, we propose to parallelize a generic fixpoint engine in a way that is parametric in the task granularity - meaning that our engine can be run in different gears. We build on the top-down solver TD, extended with support for mixed-flow sensitivity, and realize two competing philosophies for parallelization, both building on a task pool that schedules tasks to a fixed number of workers. The nature of tasks differs between the philosophies. In the immediate approach, all tasks access a single thread-safe hash table maintaining solver state, while in the independent approach, each task has its own state and exchanges data with other tasks via a publish/subscribe data structure. We have equipped the fixpoint engine of the static analysis framework Goblint with implementations following both philosophies and report on our results for large real-world programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。