mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-04 09:38:16 +00:00
ac10ac0e5f
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>
8 lines
280 B
Python
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"
|