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 条
  • [21] Pricing option contracts on the strategic petroleum reserve
    Murphy, Frederic
    Oliveira, Fernando S.
    ENERGY ECONOMICS, 2013, 40 : 242 - 250
  • [22] Coordination of supply chains with bidirectional option contracts
    Zhao, Yingxue
    Ma, Lijun
    Xie, Gang
    Cheng, T. C. E.
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2013, 229 (02) : 375 - 381
  • [23] Coordinating Vulnerable Supply Chains with Option Contracts
    Liu, Zhongyi
    Hua, Shengya
    Wang, Guanying
    ASIA-PACIFIC JOURNAL OF OPERATIONAL RESEARCH, 2021, 38 (04)
  • [24] VALUATION OF OPTION CONTRACTS AND A TEST OF MARKET EFFICIENCY
    BLACK, F
    SCHOLES, M
    JOURNAL OF FINANCE, 1972, 27 (02): : 399 - 417
  • [25] REQUIREMENT OF A DEFINITE TIME PERIOD IN OPTION CONTRACTS
    SCOBEE, HE
    LOUISIANA LAW REVIEW, 1974, 34 (03): : 668 - 676
  • [26] NEGATIVE OPTION CONTRACTS AND CONSUMER SWITCHING COSTS
    PHILLIPS, OR
    SOUTHERN ECONOMIC JOURNAL, 1993, 60 (02) : 304 - 315
  • [27] TERMINATION OF WAR DEPARTMENT CONTRACTS AT THE OPTION OF THE GOVERNMENT
    Goldman, David A.
    MICHIGAN LAW REVIEW, 1944, 42 (05) : 733 - 788
  • [28] A generalized approach to optimal hedging with option contracts
    Bajo, Emanuele
    Barbi, Massimiliano
    Romagnoli, Silvia
    EUROPEAN JOURNAL OF FINANCE, 2015, 21 (09): : 714 - 733
  • [29] On the Effectiveness of Option Contracts under Supply Disruption
    Son, Joong Y.
    OPERATIONS AND SUPPLY CHAIN MANAGEMENT-AN INTERNATIONAL JOURNAL, 2023, 16 (03): : 378 - 388
  • [30] Grid Resource Allocation by Means of Option Contracts
    Bossenbroek, Anton
    Tirado-Ramos, Alfredo
    Sloot, Peter M. A.
    IEEE SYSTEMS JOURNAL, 2009, 3 (01): : 49 - 64