Clamp anchorWidth output with `% (2**24)` before the uint24 cast so that large literal values (e.g. 1e18 from evolved constants) produce valid Solidity instead of a compile-time overflow error. Add test_transpiler_clamping.sh (Test 5) verifying that a Push3 program outputting 1e18 for anchorWidth generates `uint24(... % (2**24))` and not the raw overflowing literal. Update package.json to run both test suites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| inject.sh | ||
| optimizer_seed.push3 | ||
| optimizer_v3.push3 | ||
| package-lock.json | ||
| package.json | ||
| test_inject_extraction.sh | ||
| test_transpiler_clamping.sh | ||
| tsconfig.json | ||