Skip to content

Fix for issue 419#429

Draft
keyboardDrummer wants to merge 6 commits intomainfrom
gotoInsideIfThenElse
Draft

Fix for issue 419#429
keyboardDrummer wants to merge 6 commits intomainfrom
gotoInsideIfThenElse

Conversation

@keyboardDrummer
Copy link
Contributor

@keyboardDrummer keyboardDrummer commented Feb 16, 2026

Almost purely LLM generated based on a bug report (#419). I don't understand the original code well enough to understand this fix. This PR needs to be carefully reviewed.

Changes

  • Changed programEval so it calls Procedure.evalOne instead of Procedure.eval, which prevents the bug where one procedure causes a subsequent procedure to start with multiple paths.
  • Fix so that a procedure ends with a single path even when jumping from a conditional
  • Fix to the cover implementation to prevent the cover statement from causing a procedure to return with multiple paths.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@keyboardDrummer keyboardDrummer marked this pull request as draft February 16, 2026 16:00
@keyboardDrummer keyboardDrummer marked this pull request as ready for review February 16, 2026 16:13

/--
info:
Obligation: unreachable_cover1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just the order that is changed here

@keyboardDrummer keyboardDrummer marked this pull request as draft February 16, 2026 16:39
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