harb/tools/push3-transpiler
openhands 1e75285579 fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900)
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>
2026-03-17 06:40:30 +00:00
..
src fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900) 2026-03-17 06:40:30 +00:00
inject.sh fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
optimizer_seed.push3 fix: Push3 optimizer: dyadic rational input interface (8 slots) + 4-output redesign (#548) 2026-03-11 15:23:36 +00:00
optimizer_v3.push3 fix: Push3 optimizer: dyadic rational input interface (8 slots) + 4-output redesign (#548) 2026-03-11 15:23:36 +00:00
package-lock.json feat: Push3 → Solidity transpiler + OptimizerV3 port 2026-02-23 14:47:38 +00:00
package.json fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900) 2026-03-17 06:40:30 +00:00
test_inject_extraction.sh fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
test_transpiler_clamping.sh fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900) 2026-03-17 06:40:30 +00:00
tsconfig.json fix: package.json missing 'type': 'module' inconsistent with AGENTS.md (#850) 2026-03-16 06:35:05 +00:00