VEIL: Reading Control Flow Graphs Like Code

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Schaad, Philipp, Ben-Nun, Tal, Hoefler, Torsten
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918190430289920
author Schaad, Philipp
Ben-Nun, Tal
Hoefler, Torsten
author_facet Schaad, Philipp
Ben-Nun, Tal
Hoefler, Torsten
contents Control flow graphs (CFGs) are essential tools for understanding program behavior, yet the size of real-world CFGs makes them difficult to interpret. With thousands of nodes and edges, sophisticated graph drawing algorithms are required to present them on screens in ways that make them readable and understandable. However, being designed for general graphs, these algorithms frequently break the natural flow of execution, placing later instructions before earlier ones and obscuring critical program structures. In this paper, we introduce a set of criteria specifically tailored for CFG visualization, focusing on preserving execution order and making complex structures easier to follow. Building on these criteria, we present VEIL, a new layout algorithm that uses dominator analysis to produce clearer, more intuitive CFG layouts. Through a study of CFGs from real-world applications, we show how our method improves readability and provides improved layout performance compared to state of the art graph drawing techniques.
format Preprint
id arxiv_https___arxiv_org_abs_2511_05066
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle VEIL: Reading Control Flow Graphs Like Code
Schaad, Philipp
Ben-Nun, Tal
Hoefler, Torsten
Human-Computer Interaction
Graphics
Control flow graphs (CFGs) are essential tools for understanding program behavior, yet the size of real-world CFGs makes them difficult to interpret. With thousands of nodes and edges, sophisticated graph drawing algorithms are required to present them on screens in ways that make them readable and understandable. However, being designed for general graphs, these algorithms frequently break the natural flow of execution, placing later instructions before earlier ones and obscuring critical program structures. In this paper, we introduce a set of criteria specifically tailored for CFG visualization, focusing on preserving execution order and making complex structures easier to follow. Building on these criteria, we present VEIL, a new layout algorithm that uses dominator analysis to produce clearer, more intuitive CFG layouts. Through a study of CFGs from real-world applications, we show how our method improves readability and provides improved layout performance compared to state of the art graph drawing techniques.
title VEIL: Reading Control Flow Graphs Like Code
topic Human-Computer Interaction
Graphics
url https://arxiv.org/abs/2511.05066