Option Contracts

被引:2
|
作者
Dimoulas, Christos [1 ]
Findler, Robert Bruce [2 ]
Felleisen, Matthias [3 ]
机构
[1] Harvard Univ, Cambridge, MA 02138 USA
[2] Northwestern Univ, Evanston, IL 60208 USA
[3] Northeastern Univ, Boston, MA USA
关键词
programming language design; behavioral software contracts; random testing; probabilistic spot checking; CHECKING;
D O I
10.1145/2544173.2509548
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many languages support behavioral software contracts so that programmers can describe a component's obligations and promises via logical assertions in its interface. The contract system monitors program execution, checks whether the assertions hold, and, if not, blames the guilty component. Pinning down the violator gets the debugging process started in the right direction. Quality contracts impose a serious runtime cost, however, and programmers therefore compromise in many ways. Some turn off contracts for deployment, but then contracts and code quickly get out of sync during maintenance. Others test contracts randomly or probabilistically. In all cases, programmers have to cope with lack of blame information when the program eventually fails. In response, we propose option contracts as an addition to the contract tool box. Our key insight is that in ordinary contract systems, server components impose their contract on client components, giving them no choice whether to trust the server's promises or check them. With option contracts, server components may choose to tag a contract as an option and clients may choose to exercise the option or accept it, in which case they also shoulder some responsibility. We show that option contracts permit programmers to specify flexible checking policies, that their cost is reasonable, and that they satisfy a complete monitoring theorem.
引用
收藏
页码:475 / 494
页数:20
相关论文
共 50 条
  • [41] THE QUALITY DELIVERY OPTION IN TREASURY BOND FUTURES CONTRACTS
    HEMLER, ML
    JOURNAL OF FINANCE, 1990, 45 (05): : 1565 - 1586
  • [42] Supply Chain Coordination with Option Contracts in VMI System
    Wu, Jianzu
    Liu, Jin
    ADVANCED COMPOSITE MATERIALS, PTS 1-3, 2012, 482-484 : 2131 - 2141
  • [43] Supplier Competition with Option Contracts for Discrete Blocks of Capacity
    Anderson, Edward
    Chen, Bo
    Shao, Lusheng
    OPERATIONS RESEARCH, 2017, 65 (04) : 952 - 967
  • [44] Put Option Contracts in Newsvendor Model with Bankruptcy Risk
    Hedayatinia, Pooya
    Lemoine, David
    Massonnet, Guillaume
    Viviani, Jean-Laurent
    ADVANCES IN PRODUCTION MANAGEMENT SYSTEMS: ARTIFICIAL INTELLIGENCE FOR SUSTAINABLE AND RESILIENT PRODUCTION SYSTEMS (APMS 2021), PT III, 2021, 632 : 167 - 174
  • [45] Multiperiodic Procurement Problem with Option Contracts under Inflation
    Wan, Nana
    Chen, Xu
    MATHEMATICAL PROBLEMS IN ENGINEERING, 2016, 2016
  • [46] Option Pricing: A Flexible Tool to Disseminate Shared Savings Contracts
    Friedberg, Mark W.
    Buendia, Anthony M.
    Lauderdale, Katharine E.
    Hussey, Peter S.
    AMERICAN JOURNAL OF MANAGED CARE, 2013, 19 (08): : E285 - +
  • [47] Supply chain coordination with put option contracts and customer returns
    Wang, Chong
    Chen, Jing
    Wang, Lili
    Luo, Jiarong
    JOURNAL OF THE OPERATIONAL RESEARCH SOCIETY, 2020, 71 (06) : 1003 - 1019
  • [48] Impact of risk attitude on optimal decisions in supply contracts with option
    Zhang, J.-H. (zhangjihui@qdu.edu.cn), 1600, Northeast University (27):
  • [49] The limitations of buyer-option contracts in solving the holdup problem
    Wickelgren, Abraham L.
    JOURNAL OF LAW ECONOMICS & ORGANIZATION, 2007, 23 (01): : 127 - 140
  • [50] Valuation of the Extension Option in Time Charter Contracts in the LNG Market
    Lim, Sangseop
    Lee, Chang-hee
    Lee, Won-Ju
    Choi, Junghwan
    Jung, Dongho
    Jeon, Younghun
    ENERGIES, 2022, 15 (18)