Lune

CAV2024Top-tier venue

Predictive Monitoring with Strong Trace Prefixes

Zhendong Ang, Umang Mathur

Abstract

Abstract Runtime predictive analyses enhance coverage of traditional dynamic analyses based bug detection techniques by identifying a space of feasible reorderings of the observed execution and determining if any reordering in this space witnesses the violation of some desired safety property. The most popular approach for modelling the space of feasible reorderings is through Mazurkiewicz’s trace equivalence. The simplicity of the framework also gives rise to efficient predictive analyses, and has been the de facto means for obtaining space and time efficient algorithms for monitoring concurrent programs. In this work, we investigate how to enhance the predictive power of trace-based reasoning, while still retaining the algorithmic benefits it offers. Towards this, we extend trace theory by naturally embedding a class of prefixes, which we call strong trace prefixes. We formally characterize strong trace prefixes using an enhanced dependence relation, study its predictive power and establish a tight connection to the previously proposed notion of synchronization-preserving correct reorderings developed in the context of data race and deadlock prediction. We then show that despite the enhanced predictive power, strong trace prefixes continue to enjoy the algorithmic benefits of Mazurkiewicz traces in the context of prediction against co-safety properties, and derive new algorithms for synchronization-preserving data races and deadlocks with better asymptotic space and time usage. We also show that strong trace prefixes can capture more violations of pattern languages. We implement our proposed algorithms and our evaluation confirms the practical utility of reasoning based on strong prefix traces.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Complexity of Dynamic Data Race Prediction cites Fast, sound, and effectively complete dynamic race prediction
  • Efficient Timestamping for Sampling-Based Race Detection cites The Complexity of Dynamic Data Race Prediction
  • Efficient Timestamping for Sampling-Based Race Detection cites Fast, sound, and effectively complete dynamic race prediction
  • Efficient Timestamping for Sampling-Based Race Detection cites Atomicity Checking in Linear Time using Vector Clocks
  • Efficient Timestamping for Sampling-Based Race Detection cites Optimal prediction of synchronization-preserving races
  • Sound and efficient concurrency bug prediction cites Fast, sound, and effectively complete dynamic race prediction
  • Sound and efficient concurrency bug prediction cites Optimal prediction of synchronization-preserving races
  • Optimal prediction of synchronization-preserving races cites The Complexity of Dynamic Data Race Prediction
  • Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
  • Optimal prediction of synchronization-preserving races cites Atomicity Checking in Linear Time using Vector Clocks
  • The Complexity of Testing Message-Passing Concurrency cites The Complexity of Dynamic Data Race Prediction
  • The Complexity of Testing Message-Passing Concurrency cites Fast, sound, and effectively complete dynamic race prediction
  • The Complexity of Testing Message-Passing Concurrency cites Atomicity Checking in Linear Time using Vector Clocks
  • The Complexity of Testing Message-Passing Concurrency cites Optimal prediction of synchronization-preserving races
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 citations
  2. Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur et al.PLDI 2025 · 1 citation

Builds on9

  1. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
  2. Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations
  3. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao et al.FSE 2021 · 29 citations
  4. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
  5. Atomicity Checking in Linear Time using Vector ClocksUmang Mathur, Mahesh ViswanathanASPLOS 2020 · 27 citations

Related papers

  1. Sound Dynamic Deadlock Prediction in Linear TimeHünkar Can Tunç, Umang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPLDI 2023 · 15 citations
  2. Efficient Predictive Monitoring of Message Passing Interface ProgramsJiaqiang Yao, Haocheng Geng, Zhenbang ChenISSTA 2026
  3. Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 citations
  4. Predictive Monitoring against Pattern Regular LanguagesZhendong Ang, Umang MathurPOPL 2024 · 12 citations
  5. Soundness of Predictive Concurrency AnalysesShuyang Liu, Doug Lea, Jens PalsbergOOPSLA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines