[PR #542] tests: add edge-case tests for cfg_structure single-block, irreducible, and nested loops #589

Open
opened 2026-11-26 20:18:23 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/542
Author: @kotekompotek
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: work/test-cfg-structure-extra


📝 Commits (1)

  • 2e9c8d1 tests: add edge-case tests for cfg_structure single-block, irreducible, and nested loops

📊 Changes

1 file changed (+61 additions, -0 deletions)

View changed files

➕ tests/test_cfg_structure_extra.py (+61 -0)

📄 Description

Claimed in the coordination issue as: coordination issue #14

What and why

  • Rebased onto current main and squashed into one clean commit.
  • Added edge-case tests for tools/cfg_structure.py in tests/test_cfg_structure_extra.py.

Tested

  • python -m pytest tests/test_cfg_structure_extra.py passed after rebasing onto current main.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/542 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `work/test-cfg-structure-extra` --- ### 📝 Commits (1) - [`2e9c8d1`](https://github.com/ubiquitarianism/leonida/commit/2e9c8d1f0b6e643d6f00d6c108ef7be5cde967f4) tests: add edge-case tests for cfg_structure single-block, irreducible, and nested loops ### 📊 Changes **1 file changed** (+61 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_cfg_structure_extra.py` (+61 -0) </details> ### 📄 Description Claimed in the coordination issue as: coordination issue #14 ### What and why - Rebased onto current `main` and squashed into one clean commit. - Added edge-case tests for `tools/cfg_structure.py` in `tests/test_cfg_structure_extra.py`. ### Tested - `python -m pytest tests/test_cfg_structure_extra.py` passed after rebasing onto current `main`. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#589
No description provided.