Published August 15, 2022 | Version v5
Conference paper Open

Automated Temporal Verification for Algebraic Effects

Creators

  • 1. National University of Singapore

Description

Although effect handlers offer a versatile abstraction for user-defined effects, they produce complex and less restricted execution traces due to the composable non-local control flow mechanisms. This paper is interested in the temporal behaviors of effect sequences, such as unhandled effects, termination of the communication, safety, fairness, etc. Specifically, we propose a novel effects logic ContEffs, to write precise and modular specifications for programs in the presence of user-defined effect handlers and primitive effects. As a second contribution, we devise a forward verifier together with a fixpoint calculator to infer the behaviors of such programs. Lastly, our automated verification framework provides a purely algebraic term-rewriting system (TRS) as the back-end solver, efficiently checking the entailments between ContEffs assertions. To demonstrate the feasibility of our proposals, we prototype a verification system where zero-shot, one-shot, and multi-shot continuations coexist; prove its correctness; present experimental results; and report on case studies.

Files

paper_aplas_no94.pdf

Files (1.4 GB)

Name Size Download all
md5:01e66f4aa2477d646ef475accc70668d
1.4 GB Download
md5:ea46df710dc3f2fb89d7fbf0874698a5
466.9 kB Preview Download
md5:ce4f7b752ab07a52135c4fcb91ad68a2
3.8 kB Preview Download
md5:459580e14441a294e57c37105b212bb4
7.0 MB Preview Download