Proceedings of the ACM on Programming Languages · 2021 · 12 citations · 32 references
ComputingComputer EngineeringComputer ScienceContractsProgramming LanguagesSoftware EngineeringControl-flow AnalysisDeductive VerificationDesign For TestabilitySoftware ConstructionSoftware DesignSoftware TestingAutomated Contract SynthesisAutomated Test GenerationExecutable ContractsObject-oriented ArchitectureProgram SynthesisSafety Verification Of Generated CodeTest GenerationTesting
We present an approach to learn contracts for object-oriented programs where guarantees of correctness of the contracts are made with respect to a test generator. Our contract synthesis approach is based on a novel notion of tight contracts and an online learning algorithm that works in tandem with a test generator to synthesize tight contracts. We implement our approach in a tool called Precis and evaluate it on a suite of programs written in C#, studying the safety and strength of the synthesized contracts, and compare them to those synthesized by Daikon.
32
An axiomatic basis for computer programming
C. A. R. Hoare · Communications of the ACM · 1969 · 3.9K citations · Full text
Object-oriented software construction
Pierre America · Science of Computer Programming · 1989 · 2K citations
An axiomatic basis for computer programming
C. A. R. Hoare · Communications of the ACM · 1983 · 1.5K citations
Gary T. Leavens, Albert L. Baker, Clyde Ruby · ACM SIGSOFT Software Engineering Notes · 2006 · 787 citations