8000 bug(roundtrip): loop-carried mutation is not preserved by atomizer · Issue #157 · Mnehmos/mnehmos.nls.lang · GitHub
[go: up one dir, main page]

Skip to content

bug(roundtrip): loop-carried mutation is not preserved by atomizer #157

Closed

Description

@Mnehmos

The roundtrip corpus still fails for mutation-heavy loops with accumulator side effects. Current evidence: tests slash test_roundtrip_python_corpus.py marks loop_accumulation as an expected failure, and functions like flatten_list do not preserve behavior after Python to NLS to Python conversion. Impact: repo-scale scans now pass structurally, but behavioral parity still breaks for common accumulator patterns. Desired outcome: LOGIC extraction should preserve loop body side effects well enough to re-emit equivalent Python, or explicitly mark the pattern unsupported.

Activity

  1. added
    bugSomething isn't working
    coreCore language semantics and design
    on Apr 2, 2026
  2. Mnehmos commented on Apr 2, 2026

    @Mnehmos
    OwnerAuthor

    Resolved in commit 0b2ecd8. FOR each loop steps now re-emit executable loop bodies, including accumulator mutation patterns such as result.extend(...) and augmented assignments, and the behavioral corpus now passes for flatten_list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreCore language semantics and designpriority-mediumShould be addressed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0