Runtime verification and validation of functional reactive systems
- 26 August 2020
- journal article
- research article
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 30
Abstract
Many types of interactive applications, including reactive systems implemented in hardware, interactive physics simulations and games, raise particular challenges when it comes to testing and debugging. Reasons include de facto lack of reproducibility and difficulties of automatically generating suitable test data. This paper demonstrates that certain variants of functional reactive programming (FRP) implemented in pure functional languages can mitigate such difficulties by offering referential transparency at the level of whole programs. This opens up for a multi-pronged approach for assisting with testing and debugging that works across platforms, including assertions based on temporal logic, recording and replaying of runs (also from deployed code), and automated random testing using QuickCheck. When combined with extensible forms of FRP that allow for constrained side effects, it allows us to not only validate software simulations but to analyse the effect of faults in reactive systems, confirm the efficacy of fault tolerance mechanisms and perform software- and hardware-in-the-loop testing. The approach has been validated on non-trivial systems implemented in several existing FRP implementations, by means of careful debugging using a tool that allows the test or simulation under scrutiny to be controlled, moving along the execution time line, and pin-pointing of violations of assertions on personal computers as well as external devices.Keywords
This publication has 29 references indexed in Scilit:
- Bridging the GUI gap with reactive values and relations2015
- Functional reactive types2014
- Temporal logic with "Until", functional reactive programming with processes, and concrete process categories2013
- Towards a Common Categorical Semantics for Linear-Time Temporal Logic and Functional Reactive ProgrammingElectronic Notes in Theoretical Computer Science, 2012
- LTL types FRP2012
- The Yampa arcade2003
- Functional reactive programming, continued2002
- A new notation for arrowsACM SIGPLAN Notices, 2001
- Generalising monads to arrowsScience of Computer Programming, 2000
- What is software testing? And why is it so hard?IEEE Software, 2000