Temporal Higher-Order Contracts

被引:3
|
作者
Disney, Tim [1 ]
Flanagan, Cormac [1 ]
McCarthy, Jay [2 ]
机构
[1] Univ Calif Santa Cruz, Santa Cruz, CA 95064 USA
[2] Brigham Young Univ, Provo, UT 84602 USA
基金
美国国家科学基金会;
关键词
Languages; Reliability; Security; Verification; Higher-order Programming; Temporal Contracts; DERIVATIVES;
D O I
10.1145/2034574.2034800
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Behavioral contracts are embraced by software engineers because they document module interfaces, detect interface violations, and help identify faulty modules (packages, classes, functions, etc). This paper extends prior higher-order contract systems to also express and enforce temporal properties, which are common in software systems with imperative state, but which are mostly left implicit or are at best informally specified. The paper presents both a programmatic contract API as well as a temporal contract language, and reports on experience and performance results from implementing these contracts in Racket. Our development formalizes module behavior as a trace of events such as function calls and returns. Our contract system provides both non-interference (where contracts cannot influence correct executions) and also a notion of completeness (where contracts can enforce any decidable, prefix-closed predicate on event traces).
引用
收藏
页码:176 / 188
页数:13
相关论文
共 50 条
  • [41] A Higher-Order Temporal H-Index for Evolving Networks
    Oettershagen, Lutz
    Kriege, Nils M.
    Mutzel, Petra
    [J]. PROCEEDINGS OF THE 29TH ACM SIGKDD CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, KDD 2023, 2023, : 1770 - 1782
  • [42] Higher-order temporal network effects through triplet evolution
    Yao, Qing
    Chen, Bingsheng
    Evans, Tim S.
    Christensen, Kim
    [J]. SCIENTIFIC REPORTS, 2021, 11 (01)
  • [43] Mixed finite element methods and higher-order temporal approximations
    Farthing, MW
    Kees, CE
    Miller, CT
    [J]. ADVANCES IN WATER RESOURCES, 2002, 25 (01) : 85 - 101
  • [45] HIGHER-ORDER CONSERVATION-LAWS AND A HIGHER-ORDER NOETHERS THEOREM
    CHEUNG, WS
    [J]. ADVANCES IN APPLIED MATHEMATICS, 1987, 8 (04) : 446 - 485
  • [46] Higher-Order Lagrangian Equations of Higher-Order Motive Mechanical System
    ZHAO Hong-Xia MA Shan-Jun SHI Yong College of Physics and Communication Electronics
    [J]. Communications in Theoretical Physics, 2008, 49 (02) : 479 - 481
  • [47] Calculation of higher-order moments by higher-order tensor renormalization group
    Morita, Satoshi
    Kawashima, Naoki
    [J]. COMPUTER PHYSICS COMMUNICATIONS, 2019, 236 : 65 - 71
  • [48] Higher-order Lagrangian equations of higher-order motive mechanical system
    Zhao Hong-Xia
    Ma Shan-Jun
    Shi Yong
    [J]. COMMUNICATIONS IN THEORETICAL PHYSICS, 2008, 49 (02) : 479 - 481
  • [49] Types and Higher-Order Recursion Schemes for Verification of Higher-Order Programs
    Kobayashi, Naoki
    [J]. ACM SIGPLAN NOTICES, 2009, 44 (01) : 416 - 428
  • [50] Higher-Order Components Dictate Higher-Order Contagion Dynamics in Hypergraphs
    Kim, Jung -Ho
    Goh, K. -, I
    [J]. PHYSICAL REVIEW LETTERS, 2024, 132 (08)