Precise Detection of Atomicity Violations