hw_oracle/asm: strip leading whitespace in literals() and skip_reason() #479

Merged
kotekompotek merged 1 commit from upstream-pr/479 into main 2026-11-24 06:59:31 +00:00
kotekompotek commented 2026-11-24 06:07:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T06:07:21Z.


Strips leading/trailing whitespace before parsing opcodes in literals() and skip_reason() so indented SALU lines are checked. Verified with pytest: 1 passed.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5467056550 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/479). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T06:07:21Z. --- Strips leading/trailing whitespace before parsing opcodes in literals() and skip_reason() so indented SALU lines are checked. Verified with pytest: 1 passed.
QemmHD commented 2026-11-24 06:59:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T06:59:26Z.


Merging. Why merged: indented SALU lines are now parsed for literals and removed opcodes.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new regression test fails on main and passes here; test_hw_oracle's 59 tests still pass.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7124497871 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/479#issuecomment-7124497871). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T06:59:26Z. --- Merging. Why merged: indented SALU lines are now parsed for literals and removed opcodes. Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new regression test fails on main and passes here; test_hw_oracle's 59 tests still pass. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!479
No description provided.