Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

DroidStar: Callback Typestates for Android Classes (1701.07842v3)

Published 26 Jan 2017 in cs.LO, cs.LG, and cs.PL

Abstract: Event-driven programming frameworks, such as Android, are based on components with asynchronous interfaces. The protocols for interacting with these components can often be described by finite-state machines we dub callback typestates. Callback typestates are akin to classical typestates, with the difference that their outputs (callbacks) are produced asynchronously. While useful, these specifications are not commonly available, because writing them is difficult and error-prone. Our goal is to make the task of producing callback typestates significantly easier. We present a callback typestate assistant tool, DroidStar, that requires only limited user interaction to produce a callback typestate. Our approach is based on an active learning algorithm, L*. We improved the scalability of equivalence queries (a key component of L*), thus making active learning tractable on the Android system. We use DroidStar to learn callback typestates for Android classes both for cases where one is already provided by the documentation, and for cases where the documentation is unclear. The results show that DroidStar learns callback typestates accurately and efficiently. Moreover, in several cases, the synthesized callback typestates uncovered surprising and undocumented behaviors.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Arjun Radhakrishna (23 papers)
  2. Nicholas V. Lewchenko (2 papers)
  3. Shawn Meier (4 papers)
  4. Sergio Mover (8 papers)
  5. Krishna Chaitanya Sripada (1 paper)
  6. Damien Zufferey (11 papers)
  7. Bor-Yuh Evan Chang (15 papers)
  8. Pavol Černý (8 papers)
Citations (3)

Summary

We haven't generated a summary for this paper yet.