A static Big-O analysis tool base on Big-O AST.
- C with C99 standard
- Java
Please read this before you use!
git clone --recurse-submodules https://github.com/ncu-psl/BigO-Calc.git --depth=1
cd BigO-Calc
pip3 install -r requirements.txt
# python3 bigo_calc.py target_code Language(optional)
python3 bigo_calc.py examples/ForTest.c
-
See Dependency graph or requirements.txt in detail.
-
C AST is generated from pycparser
-
Java AST is generated from javalang,
javaparser
-
- 何東穎, 莊永裕, 使用AST進行靜態程式碼分析函式時間複雜度, Taiwan Academic Network Conference (TANET 2018), Nov. 2018
-
AST version (Current Version)
-
CST version (This Version is no longer maintained)