Skip to content

feat(gen-c): guarded test runner -- the C backend gets an execution level - #1946

Merged
gHashTag merged 1 commit into
masterfrom
fix/c-test-runner
Aug 8, 2026
Merged

feat(gen-c): guarded test runner -- the C backend gets an execution level#1946
gHashTag merged 1 commit into
masterfrom
fix/c-test-runner

Conversation

@gHashTag

@gHashTag gHashTag commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Closes #1945

gen-c emitted void test_*(void) fns with t27_assert but nothing called them — the C backend had no execution level. Emits an #ifdef T27_TEST_MAIN runner (main + per-test calls + summary) after the test section; headers stay includable, gcc -DT27_TEST_MAIN x.c && ./a.out runs the suite.

tri-net corpus: 54 specs compile and run their C tests clean immediately; the 15 [T; N]-return specs emit invalid C regardless (#1944, struct lowering). Only unit red is pre-existing bitnet_layer. FROZEN_HASH resealed; NOW.md entries added.

🤖 Generated with Claude Code

…evel

Closes #1945

gen-c emitted void test_*(void) fns with t27_assert but nothing CALLED
them: the C backend had no execution level and a failed assert could
never fire in any pipeline. Emit an #ifdef T27_TEST_MAIN runner (main
with per-test calls and a summary printf) after the test section, so
plain inclusion stays untouched and `gcc -DT27_TEST_MAIN x.c && ./a.out`
executes the suite.

tri-net corpus: 54 specs compile and run their C tests clean
immediately; the 15 [T; N]-return specs emit invalid C regardless of
the runner (tracked in #1944, struct lowering). FROZEN_HASH resealed;
only unit red is the pre-existing bitnet_layer iverilog test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gHashTag
gHashTag enabled auto-merge (squash) August 8, 2026 15:25
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-08 15:25:53 UTC

Summary

Status Count
Total Open PRs 14
PRs with Failing Checks 1
PRs with All Checks Green 13
READY 5
FAILING 1
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=9e354e7c1c85 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 39cdb2d into master Aug 8, 2026
22 of 23 checks passed
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.

gen-c: no test runner -- emitted test fns are never called

1 participant