A theory of retractable and speculative contracts

Franco Barbanera 1 Ivan Lanese 2 Ugo De'Liguoro 3
2 FOCUS - Foundations of Component-based Ubiquitous Systems
CRISAM - Inria Sophia Antipolis - Méditerranée , DISI - Dipartimento di Informatica - Scienza e Ingegneria [Bologna]
Abstract : Behavioral contracts are abstract descriptions of expected communication patterns followed by either clients or servers during their interaction. Behavioral contracts come naturally equipped with a notion of compliance: when a client and a server follow compliant contracts, their interaction is guaranteed to progress or successfully complete. We study two extensions of behavioral contracts, retractable contracts dealing with backtracking and speculative contracts dealing with speculative execution. We show that the two extensions give rise to the same notion of compliance. As a consequence, they also give rise to the same subcontract relation, which determines when one server can be replaced by another preserving compliance. Moreover, compliance and subcontract relation are both decidable in quadratic time. Finally, we study the relationship between retractable contracts and calculi for reversible computing.
Complete list of metadatas

Cited literature [47 references]  Display  Hide  Download

https://hal.inria.fr/hal-01912858
Contributor : Ivan Lanese <>
Submitted on : Tuesday, November 6, 2018 - 10:32:57 PM
Last modification on : Wednesday, November 7, 2018 - 8:58:04 AM
Long-term archiving on : Friday, February 8, 2019 - 1:06:19 AM

File

SCP-Main.pdf
Files produced by the author(s)

Identifiers

Collections

Citation

Franco Barbanera, Ivan Lanese, Ugo De'Liguoro. A theory of retractable and speculative contracts. Science of Computer Programming, Elsevier, 2018, 167, pp.25 - 50. ⟨10.1016/j.scico.2018.06.005⟩. ⟨hal-01912858⟩

Share

Metrics

Record views

67

Files downloads

107