共 7 条
Dynamic Transitive Closure-based Static Analysis through the Lens of Quantum Search
被引:0
|作者:
Ren, Jiawei
[1
]
Sui, Yulei
[1
]
Cheng, Xiao
[1
]
Feng, Yuan
[2
]
Zhao, Jianjun
[3
]
机构:
[1] Univ New South Wales, Sydney, NSW 2052, Australia
[2] Univ Technol Sydney, 15 Broadway, Sydney, NSW 2007, Australia
[3] Kyushu Univ, 744 Motooka,Nishi Ku, Fukuoka 8190395, Japan
基金:
澳大利亚研究理事会;
关键词:
CFL-reachability;
set constraint-based analysis;
grover's search;
GRAPH;
ALGORITHMS;
COMPLEXITY;
TIME;
D O I:
10.1145/3644389
中图分类号:
TP31 [计算机软件];
学科分类号:
081202 ;
0835 ;
摘要:
Many existing static analysis algorithms suffer from cubic bottlenecks because of the need to compute a dynamic transitive closure (DTC). For the first time, this article studies the quantum speedups on searching subtasks in DTC-based static analysis algorithms using quantum search (e.g., Grover's algorithm). We first introduce our oracle implementation in Grover's algorithm for DTC-based static analysis and illustrate our quantum search subroutine. Then, we take two typical DTC-based analysis algorithms: context-free-language reachability and set constraint-based analysis, and show that our quantum approach can reduce the time complexity of these two algorithms to truly subcubic (O(N-2 root Npolylog(N))), yielding better results than the upper bound (O(N-3/log N)) of existing classical algorithms. Finally, we conducted a classical simulation of Grover's search to validate our theoretical approach, due to the current quantum hardware limitation of lacking a practical, large-scale, noise-free quantum machine. We evaluated the correctness and efficiency of our approach using IBM Qiskit on nine open-source projects and randomly generated edge-labeled graphs/constraints. The results demonstrate the effectiveness of our approach and shed light on the promising direction of applying quantum algorithms to address the general challenges in static analysis.
引用
收藏
页数:29
相关论文