Skip to content

Fix duplicate opcodes and update check_opcodes.pl#272

Merged
fglock merged 1 commit into
masterfrom
fix-duplicate-opcodes
Mar 6, 2026
Merged

Fix duplicate opcodes and update check_opcodes.pl#272
fglock merged 1 commit into
masterfrom
fix-duplicate-opcodes

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Mar 6, 2026

Summary

  • Fixed duplicate opcode: OP_POW and ALARM_OP both had value 155; OP_POW reassigned to 310
  • Compacted opcode range: renumbered 284+ block to be contiguous (0..372, no gaps)
  • Updated check_opcodes.pl --renumber to automatically fix duplicates by assigning new numbers to later occurrences using the first available gap, then compacting the 284+ block

Test plan

  • perl dev/tools/check_opcodes.pl Opcodes.java reports no duplicates, no gaps
  • mvn package -DskipTests builds successfully
  • mvn test — all 154 unit tests pass

Generated with Devin

- OP_POW and ALARM_OP both had opcode 155; OP_POW reassigned to 310
- Renumbered 284+ block to be contiguous (0..372, no gaps)
- Updated check_opcodes.pl --renumber to fix duplicates by assigning
  new numbers to later occurrences using first available gap, then
  compacting the 284+ block as before

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <noreply@cognition.ai>
@fglock fglock merged commit 1c77150 into master Mar 6, 2026
2 checks passed
@fglock fglock deleted the fix-duplicate-opcodes branch March 6, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant