Files
Matt Graham ac10ac0e5f tools: tools.diff compares oracle and recomp checkpoint traces
Reports the first register or memory divergence for a bounded guest case.
The Unicorn oracle is an optional, lazily imported dependency.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 22:47:38 +00:00

8 lines
280 B
Python

from .compare import first_divergence
def test_first_divergence():
result = first_divergence([{"eip": 1, "eax": 2}, {"eip": 3, "cf": 1}],
[{"eip": 1, "eax": 2}, {"eip": 3, "cf": 0}])
assert result.index == 1
assert result.reason == "cf"