Please use this identifier to cite or link to this item: https://research.matf.bg.ac.rs/handle/123456789/3248
Title: Machine Learning-Driven Prediction of Optimal Control Flow Graph Traversal Strategy
Authors: Ristović, Ivan 
Čugurović, Milan 
Stanojević, Strahinja 
Spasić, Marko 
Marinković, Vesna 
Vujošević Janičić, Milena 
Affiliations: Informatics and Computer Science 
Informatics and Computer Science 
Informatics and Computer Science 
Informatics and Computer Science 
Informatics and Computer Science 
Informatics and Computer Science 
Keywords: Compilers;Control Flow Graphs;GraalVM;Graph Traversals;Machine Learning
Issue Date: 4-Dec-2025
Rank: M50
Journal: Serbian Journal of Electrical Engineering
Abstract: 
Control flow graphs model possible program execution paths and thus are essential for static program analysis. Compilers use control flow graphs as a basis for their intermediate representations, allowing them to apply optimizations. As each method is represented by its control flow graph, the number of control flow graphs that a compiler needs to generate and process depends on the program being compiled. For reference, modern programs that run on the JVM consist of hundreds of thousands of methods. Thus, efficient control flow graph traversal is crucial to provide fast compilation. Prior work has shown that breadth-first and depth-first search algorithms yield different results depending on the control flow graph structure; however, the relationship between control flow graph features and the optimal traversal algorithm in terms of traversal speed remains underexplored. In this work, we construct a dataset of over 200, 000 control flow graphs gathered from modern state-of-the-art JVM benchmark suites. Using this dataset, we train a set of ensemble-based machine learning models that predict optimal graph traversal algorithms for a given control flow graph using a set of lightweight graph features. Our models identify the key features that yield accurate predictions and demonstrate that the most informative features can be extracted efficiently during the graph construction process itself.
URI: https://research.matf.bg.ac.rs/handle/123456789/3248
ISSN: 14514869
DOI: 10.2298/SJEE250828003R
Appears in Collections:Research outputs

Show full item record

Google ScholarTM

Check

Altmetric

Altmetric


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.