Gamification of Loop-Invariant Discovery from Code

Authors

  • Andrew T. Walter Northeastern University
  • Benjamin Boskin Northeastern University
  • Seth Cooper Northeastern University
  • Panagiotis Manolios Northeastern University

Abstract

Software verification addresses the important societal problem of software correctness by using tools to mechanically prove that software is free of errors. Since the software verification problem is undecidable, automated tools have limited capabilities; hence, to verify non-trivial software, engineers use human-in-the-loop theorem provers that depend on human-provided insights such as loop invariants. The effective use of modern theorem provers requires significant expertise and recent work has explored the possibility of creating human computation games that enable non-experts to find useful loop invariants. A common feature of these games is that they do not show the code to be verified. We present and evaluate a game which does show players code. Showing code poses a number of design challenges, such as avoiding cognitive overload, but, as our experimental evaluation confirms, also provides an opportunity for richer human-computer interactions that lead to more effective human-in-the-loop systems which augment the ability of programmers who are not verification experts to find loop invariants.

Downloads

Published

2019-10-28

How to Cite

Walter, A. T., Boskin, B., Cooper, S., & Manolios, P. (2019). Gamification of Loop-Invariant Discovery from Code. Proceedings of the AAAI Conference on Human Computation and Crowdsourcing, 7(1), 188-196. Retrieved from https://ojs.aaai.org/index.php/HCOMP/article/view/5277