Gobra: Modular Specification and Verification of Go Programs (extended version)

Felix A. Wolf, Linard Arquint, Martin Clochard, Wytse Oortwijn, João C. Pereira +1 more
5/28/2021
cs.PL

Official code: viperproject/gobra (240 stars, Scala, last commit 2026-11-19).

Abstract

Go is an increasingly-popular systems programming language targeting, especially, concurrent and distributed systems. Go differentiates itself from other imperative languages by offering structural subtyping and lightweight concurrency through goroutines with message-passing communication.

Show full abstract

This combination of features poses interesting challenges for static verification, most prominently the combination of a mutable heap and advanced concurrency primitives. We present Gobra, a modular, deductive program verifier for Go that proves memory safety, crash safety, data-race freedom, and user-provided specifications. Gobra is based on separation logic and supports a large subset of Go. Its implementation translates an annotated Go program into the Viper intermediate verification language and uses an existing SMT-based verification backend to compute and discharge proof obligations.

View on arXivView PDF

Code Implementations(1)

viperproject/gobraOfficial100%

Gobra is an automated, modular verifier for Go programs, based on the Viper verification infrastructure.

24045Scala, ANTLRSep 16, 20201 weeks agoNOASSERTION
gogolangverification

Similar Papers

Cite this paper

@article{wolf2021gobra,
  title  = {Gobra: Modular Specification and Verification of Go Programs (extended version)},
  author = {Felix A. Wolf and Linard Arquint and Martin Clochard and Wytse Oortwijn and João C. Pereira and Peter Müller},
  year   = {2021},
  eprint = {2105.13840},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13840}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.13840.svg)](https://codeofpaper.com/paper/2105.13840)

Discussion