#!/bin/sh
# Verify the recompiled binary against the original, per function (reccmp).
# Build first with: cmake --build build
# Usage: tools/verify [extra reccmp args, e.g. --html report.html -v 0x4015c0]
set -e
cd "$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
export PATH="$PWD/tools:$PATH"   # wine/winepath shims: reccmp expects wine for cvdump, we redirect to wibo
exec uv run python tools/reccmp_patched.py --target LEGOLAND "$@"
