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

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

Research output: Contribution to conferencePaperScientific


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.
Original languageEnglish
Number of pages38
Publication statusPublished - 28 Apr 2017
MoE publication typeNot Eligible


  • weak memory model
  • portability
  • verification


Dive into the research topics of 'Portability Analysis for Axiomatic Memory Models. PORTHOS: One Tool for all Models'. Together they form a unique fingerprint.

Cite this