Lune

OOPSLA2025顶会

Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests

Kevin Guan, Marcelo d'Amorim, Owolabi Legunsen

摘要

Runtime verification (RV) monitors program executions for conformance with formal specifications (specs). This paper concerns Monitoring-Oriented Programming (MOP), the only RV approach shown to scale to thousands of open-source GitHub projects when simultaneously monitoring passing unit tests against dozens of specs. Explicitly storing traces-sequences of spec-related program events-can make it easier to debug spec violations or to monitor tests against hyperproperties, which requires reasoning about sets of traces. But, most online MOP algorithms are implicit trace, i.e. they work event by event to avoid the time and space costs of storing traces. Yet, TraceMOP, the only explicit-trace online MOP algorithm, is often too slow and often fails.

We propose LazyMOP, a faster explicit-trace online MOP algorithm for RV of tests that is enabled by three simple optimizations. First, whereas all existing online MOP algorithms eagerly monitor all events as they occur, LazyMOP lazily stores only unique traces at runtime and monitors them just before the test run ends. Lazy monitoring is inspired by a recent finding: 99.87% of traces during RV of tests are duplicates. Second, to speed up trace storage, LazyMOP encodes events and their locations as integers, and amortizes the cost of looking up locations across events. Lastly, LazyMOP only synchronizes accesses to its trace store after detecting multi-threading, unlike TraceMOP's eager and wasteful synchronization of all accesses.

On 179 Java open-source projects, LazyMOP is up to 4.9x faster and uses 4.8x less memory than TraceMOP, finding the same traces (modulo test non-determinism) and violations. We show LazyMOP's usefulness in the context of software evolution, where tests are re-run after each code change. LazyMOP 𝑒 optimizes LazyMOP in this context by generating fewer duplicate traces. Using unique traces from one code version, LazyMOP 𝑒 finds all pairs of method 𝑚 and spec 𝑠, where all traces for 𝑠 in 𝑚 are identical. Then, in a future version, LazyMOP 𝑒 generates and monitors only one trace of 𝑠 in 𝑚. LazyMOP 𝑒 is up to 3.9x faster than LazyMOP and it speeds up two recent techniques that speed up RV during evolution by up to 4.6x with no loss in violations.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Hybrid Regression Test Selection by Integrating File and Method Dependences
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • An In-Depth Study of Runtime Verification Overheads during Software Testing 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • Hybrid Regression Test Selection by Integrating File and Method Dependences 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • Instrumentation-Driven Evolution-Aware Runtime Verification 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Instrumentation-Driven Evolution-Aware Runtime Verification 引用了 IronSpec: Increasing the Reliability of Formal Specifications
  • Instrumentation-Driven Evolution-Aware Runtime Verification 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
  • A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) 引用了 Fine-Grained Analyses for Evolution-Aware Runtime Verification
  • A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) 引用了 Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. Faster Runtime Verification during Testing via Feedback-Guided Selective MonitoringShinhae Kim, Saikat Dutta, Owolabi LegunsenASE 2025 · 3 次引用
  2. Fine-Grained Analyses for Evolution-Aware Runtime VerificationPengyue Jiang, Kevin Guan, Mahdi Khosravi, Moustafa Ismail 等ICSE 2026 · 1 次引用
  3. A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper)Shinhae Kim, Saikat Dutta, Owolabi LegunsenISSTA 2026

它引用的 Paper5

  1. More Precise Regression Test Selection via Reasoning about Semantics-Modifying ChangesYu Liu, Jiyang Zhang, Pengyu Nie, Milos Gligoric 等ISSTA 2023 · 19 次引用
  2. An In-Depth Study of Runtime Verification Overheads during Software TestingKevin Guan, Owolabi LegunsenISSTA 2024 · 7 次引用
  3. Instrumentation-Driven Evolution-Aware Runtime VerificationKevin Guan, Owolabi LegunsenICSE 2025 · 4 次引用
  4. IronSpec: Increasing the Reliability of Formal SpecificationsEli Goldweber, Weixin Yu, Seyed Armin Vakil-Ghahani, Manos KapritsosOSDI 2024 · 4 次引用
  5. Hybrid Regression Test Selection by Integrating File and Method DependencesGuofeng Zhang, Luyao Liu, Zhenbang Chen, Ji WangASE 2024 · 2 次引用

相关 Paper

  1. Quantitative and Approximate MonitoringThomas A. Henzinger, N. Ege SaraçLICS 2021 · 15 次引用
  2. Predictive Monitoring against Pattern Regular LanguagesZhendong Ang, Umang MathurPOPL 2024 · 12 次引用
  3. Finding Specification Blind Spots via Fuzz TestingRu Ji, Meng XuS&P 2023
  4. When threads meet events: efficient and precise static race detection with originsBozhen Liu, Peiming Liu, Yanze Li, Chia-Che Tsai 等PLDI 2021 · 17 次引用
  5. Zeror: Speed Up Fuzzing with Coverage-sensitive Tracing and SchedulingChijin Zhou, Mingzhe Wang, Jie Liang, Zhe Liu 等ASE 2020 · 35 次引用
黄昏的海面,两侧是细线勾勒的悬崖