Repository navigation
8 testing battletests and language limits
Source: https://deepwiki.com/PonvasanthPon/TransCompilator/8-testing-battletests-and-language-limits
Relevant source files
The following files were used as context for generating this wiki page:
This page provides a high-level overview of the verification strategy implemented in tc_r1, encompassing regression corpora, parity checks, semantic and grammar audits, and documented architectural language limits README.md:135-152. tc_r1 maintains a rigorous test posture consisting of over a thousand verified tests, headless protocol validations, differential IR interpreters, and explicit architectural constraint boundaries.
For detailed breakdowns of test suites and limit catalogs, refer to the child pages:
The regression strategy relies on blind-LLM corpora, compositional parity tests, paraphrase-invariance audits, and headless protocol suites README.md:135-152. Natural English programs written without knowledge of the internal compiler subset are tested against the native ELF64 execution runner and the reference IR interpreter to guarantee exact execution parity README.md:21-35.
Tests such as crates/tc-cli/tests/blind_llm_regressions.rs exercise complex algorithmic pipelines like filtered numeric ranges, running Fibonacci sequences, multi-box simulations, and adjacent list swaps, validating that control flow constructs (Stmt::Loop, Stmt::If) are correctly lowered from prose crates/tc-cli/tests/blind_llm_regressions.rs:37-90.
Title: "Blind-LLM Regression and Parity Execution Flow"
graph TD
Title: "BlindLLMRegressionAndParityExecutionFlow"
NaturalProseInput["NaturalProseInput"] --> CLIIntegrationTest["crates/tc-cli/tests/blind_llm_regressions.rs"]
CLIIntegrationTest --> CompilerInvocation["tc_semantics::compile_english_to_ir"]
CompilerInvocation --> RunnerExecution["tc_editor::runner::run_elf_with_parity"]
RunnerExecution --> ParityVerification["ExactStdoutStderrExitStatusParity"]
For details, see Regression and Battletest Suites.
Sources: README.md:135-152, crates/tc-cli/tests/blind_llm_regressions.rs:1-90
Specification documents and coverage audits define the deterministic boundaries of the English compiler frontend, Lexicon coverage, and Core-7 backend docs/COVERAGE_AUDIT.md:1-25. The system maintains an orthogonal matrix of grammar support, classifying unsupported directives or narrative prose into explicit verdicts (COMMENT_OMITTED or UNSUPPORTED) rather than utilizing probabilistic guessing docs/COVERAGE_AUDIT.md:1-20.
Architectural limits are explicitly cataloged in docs/CORE_LIMITS.md (e.g., control keyword reservations, expression complexity caps, type-nesting bounds, and aggregate layout boundaries), ensuring that edge cases fail loudly with clean diagnostics rather than triggering compiler panics or memory corruption docs/CORE_LIMITS.md:1-59.
Title: "Specification and Limits Audit Mapping"
graph TD
Title: "SpecificationAndLimitsAuditMapping"
EnglishSpecification["docs/TC_ENGLISH_SPEC.md"] --> CoreLimitsCatalog["docs/CORE_LIMITS.md"]
CoreLimitsCatalog --> CoverageAuditArtifacts["docs/COVERAGE_AUDIT.md"]
CoverageAuditArtifacts --> LexiconTables["tc_lexicon::GeneratedTables"]
For details, see Specification and Limits Documentation.
Sources: docs/CORE_LIMITS.md:1-60, docs/COVERAGE_AUDIT.md:1-25, docs/TC_ENGLISH_SPEC.md:1-40
The TransCompilator Project