Portability Analysis for Axiomatic Memory Models. PORTHOS: One Tool for all Models

Tutkimustuotos: Artikkeli kirjassa/konferenssijulkaisussaKonferenssiesitys

Tutkijat

  • Hernán Ponce-de-León
  • Florian Furbach
  • Keijo Heljanko
  • Roland Meyer

Organisaatiot

  • Fortiss GmbH
  • Technische Universität Kaiserlautern
  • Technische Universität Braunschweig

Kuvaus

We present Porthos, the first tool that discovers porting bugs in performance-critical code. Porthos takes as input a program and the memory models of the source architecture for which the program has been developed and the target model to which it is ported. If the code is not portable, Porthos finds a bug in the form of an unexpected execution - an execution that is consistent with the target but inconsistent with the source memory model. Technically, Porthos implements a bounded model checking method that reduces the portability analysis problem to satisfiability modulo theories (SMT). There are two main problems in the reduction that we present novel and efficient solutions for. First, the formulation of the portability problem contains a quantifier alternation (consistent + inconsistent). We introduce a formula that encodes both in a single existential query. Second, the supported memory models (e.g., Power) contain recursive definitions. We compute the required least fixed point semantics for recursion (a problem that was left open in [47]) efficiently in SMT. Finally we present the first experimental analysis of portability from TSO to Power.

Yksityiskohdat

AlkuperäiskieliEnglanti
Sivumäärä38
TilaJulkaistu - 28 huhtikuuta 2017
OKM-julkaisutyyppiEi oikeutettu

ID: 16859937