Affiliation:
1. University of Pennsylvania, Philadelphia, PA
Abstract
While a typical software component has a clearly specified (static) interface in terms of the methods and the input/output types they support, information about the correct sequencing of method calls the client must invoke is usually undocumented. In this paper, we propose a novel solution for automatically extracting such temporal specifications for Java classes. Given a Java class, and a safety property such as "the exception
E
should not be raised", the corresponding
(dynamic) interface
is the most general way of invoking the methods in the class so that the safety property is not violated. Our synthesis method first constructs a symbolic representation of the finite state-transition system obtained from the class using
predicate abstraction
. Constructing the interface then corresponds to solving a
partial-information two-player game
on this symbolic graph. We present a sound approach to solve this computationally-hard problem approximately using algorithms for learning finite automata and symbolic model checking for branching-time logics. We describe an implementation of the proposed techniques in the tool
JIST
--- Java Interface Synthesis Tool---and demonstrate that the tool can construct interfaces accurately and efficiently for sample Java2SDK library classes.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
123 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. AutoModel: Automatic Synthesis of Models From Communication Traces of SoC Designs;IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems;2024-07
2. Perception Contracts for Safety of ML-Enabled Systems;Proceedings of the ACM on Programming Languages;2023-10-16
3. Program synthesis algorithm based on context consistency heuristic;International Journal of Machine Learning and Cybernetics;2023-08-01
4. Learning residual alternating automata;Information and Computation;2022-11
5. Learning of behavioural models and dependency graphs for communicating systems with CkTailv2;International Journal on Software Tools for Technology Transfer;2022-03-15