---
title: Fast and Generalized Polynomial Time Memory Consistency Verification
url: https://www.emergentmind.com/papers/0605039
type: paper
arxiv_id: '0605039'
arxiv_url: https://arxiv.org/abs/0605039
published: '2006-05-09'
categories:
- cs.AR
- cs.LO
- cs.PF
---

# Fast and Generalized Polynomial Time Memory Consistency Verification

## Abstract

The problem of verifying multi-threaded execution against the memory consistency model of a processor is known to be an NP hard problem. However polynomial time algorithms exist that detect almost all failures in such execution. These are often used in practice for microprocessor verification. We present a low complexity and fully parallelized algorithm to check program execution against the processor consistency model. In addition our algorithm is general enough to support a number of consistency models without any degradation in performance. An implementation of this algorithm is currently used in practice to verify processors in the post silicon stage for multiple architectures.