Armada: Low-Effort Verification of High-Performance Concurrent Programs

  • Yixuan Chen
  • Manos Kapritsos
  • Bryan Parno
  • Shaz Qadeer
  • Upamanyu Sharma
  • James R. Wilcox
  • Xueyuan Zhao

International Conference on Programming Language Design and Implementation (PLDI) |

Published by ACM

Distinguished Paper Award

Related File | Related File | Related File | Presentation (ppt)

Safely writing high-performance concurrent programs is notoriously difficult. To aid developers, we introduce Armada, a language and tool designed to formally verify such programs with relatively little effort. Via a C-like language and a small-step, state-machine-based semantics, Armada gives developers the flexibility to choose arbitrary memory layout and synchronization primitives so they are never constrained in their pursuit of performance. To reduce developer effort, Armada leverages SMT-powered automation and a library of powerful reasoning techniques, including rely-guarantee, TSO elimination, reduction, and alias analysis. All these techniques are proven sound, and Armada can be soundly extended with additional strategies over time. Using Armada, we verify four concurrent case studies and show that we can achieve performance equivalent to that of unverified code.