Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2309.01261

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Programming Languages

arXiv:2309.01261 (cs)
[Submitted on 3 Sep 2023 (v1), last revised 21 Dec 2024 (this version, v4)]

Title:Worst-Case Input Generation for Concurrent Programs under Non-Monotone Resource Metrics

Authors:Long Pham, Jan Hoffmann
View a PDF of the paper titled Worst-Case Input Generation for Concurrent Programs under Non-Monotone Resource Metrics, by Long Pham and 1 other authors
View PDF HTML (experimental)
Abstract:Worst-case input generation aims to automatically generate inputs that exhibit the worst-case performance of programs. It has several applications, and can, for example, detect vulnerabilities to denial-of-service (DoS) attacks. However, it is non-trivial to generate worst-case inputs for concurrent programs, particularly for resources like memory where the peak cost depends on how processes are scheduled. This article presents the first sound worst-case input generation algorithm for concurrent programs under non-monotone resource metrics like memory. The key insight is to leverage resource-annotated session types and symbolic execution. Session types describe communication protocols on channels in process calculi. Equipped with resource annotations, resource-annotated session types not only encode cost bounds but also indicate how many resources can be reused and transferred between processes. This information is critical for identifying a worst-case execution path during symbolic execution. The algorithm is sound: if it returns any input, it is guaranteed to be a valid worst-case input. The algorithm is also relatively complete: as long as resource-annotated session types are sufficiently expressive and the background theory for SMT solving is decidable, a worst-case input is guaranteed to be returned. A simple case study of a web server's memory usage demonstrates the utility of the worst-case input generation algorithm.
Subjects: Programming Languages (cs.PL); Distributed, Parallel, and Cluster Computing (cs.DC); Logic in Computer Science (cs.LO)
Cite as: arXiv:2309.01261 [cs.PL]
  (or arXiv:2309.01261v4 [cs.PL] for this version)
  https://doi.org/10.48550/arXiv.2309.01261
arXiv-issued DOI via DataCite
Journal reference: Logical Methods in Computer Science, Volume 20, Issue 4 (December 24, 2024) lmcs:12242
Related DOI: https://doi.org/10.46298/lmcs-20%284%3A26%292024
DOI(s) linking to related resources

Submission history

From: Long Pham [view email] [via LMCS proxy]
[v1] Sun, 3 Sep 2023 19:54:14 UTC (322 KB)
[v2] Wed, 24 Jul 2024 03:10:07 UTC (334 KB)
[v3] Mon, 2 Dec 2024 16:55:26 UTC (334 KB)
[v4] Sat, 21 Dec 2024 09:38:39 UTC (335 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Worst-Case Input Generation for Concurrent Programs under Non-Monotone Resource Metrics, by Long Pham and 1 other authors
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
license icon view license
Current browse context:
cs.PL
< prev   |   next >
new | recent | 2023-09
Change to browse by:
cs
cs.DC
cs.LO

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack