SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.15039 · IJCAI · 2025

LogiCase: Effective Test Case Generation from Logical Description in Competitive Programming

Yo-Sub Han, Sang-Ki Ko, Sicheol Sung, Dogyu Kim

arXiv · PDF · Open in the Atlas

Code that ran

11 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 6 failures of our instrument; 8 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.15039.json · badge: /api/ran/2505.15039.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Aditi1612/Grammar-based-test-case-generation community
Papers with Code archive
11 ran · 8 no recorded run
FunctionStatusWhere it lives
Comparison Ran
ran on a synthesized input · constructed an object; no result was computed
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("28cf845eed963801")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Constraint Ran
ran on a synthesized input · constructed an object; no result was computed
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("5c9d21851339dda0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

InvalidGrammarError Ran
ran on a synthesized input · constructed an object; no result was computed
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("151e6de68310bba3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_comparator_to_str Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("11faa5c2b71ca449")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_normalize_comparison Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("64878c6e6559bfbd")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_parse_comparands Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("e81c6113e28eaa97")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_parse_comparator Ran
ran, honoured the contract we drafted
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("a91035038012d48f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_split Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("4b2e246493f4b4d9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_to_transitive_bound Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("7c42701d0e35d0a9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_variable Ran
ran; our contract draft was wrong, not the code
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("117c9e8b5e4ef49b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_comparand Ran
ran, honoured the contract we drafted
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("974eb395003a3911")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Comparator Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("7a2093db64b50596")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

CountingContextFreeGrammar Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("efdedce16aee6681")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InvalidConstraintError Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("9e38841c5db26e61")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InvalidProductionError Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("a5706e1f3b741877")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SubscriptType Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("ef73f3e6b207c8f6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TokenType Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("a726defcf0dea380")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_update_constraints_and_comparisons Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("9dbded1261c13d89")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

parse Not yet run
unverified (harvested, no recorded run)
Aditi1612/Grammar-based-test-case-generation/src/counting_context_free_grammar/counting_context_free_grammar.py
pointer only (licence: NOASSERTION) · get_code("7ecc2b0e46187127")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Aditi1612/Grammar-based-test-case-generation (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Automated Test Case Generation (ATCG) is crucial for evaluating software reliability, particularly in competitive programming where robust algorithm assessments depend on diverse and accurate test cases. However, existing ATCG methods often fail to meet complex specifications or generate effective corner cases, limiting their utility. In this work, we introduce Context-Free Grammars with Counters (CCFGs), a formalism that captures both syntactic and semantic structures in input specifications. Using a fine-tuned CodeT5 model, we translate natural language input specifications into CCFGs, enabling the systematic generation of high-quality test cases. Experiments on the CodeContests dataset demonstrate that CCFG-based test cases outperform baseline methods in identifying incorrect algorithms, achieving significant gains in validity and effectiveness. Our approach provides a scalable and reliable grammar-driven framework for enhancing automated competitive programming evaluations.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.15039")
get_code_for_paper("2505.15039")
have("2505.15039")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.15039.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.15039.svg)](https://syntology.ai/paper/2505.15039)

Connect an agent — have() is free.