SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.16557 · 2023

Effective Test Generation Using Pre-trained Large Language Models and Mutation Testing

arXiv · PDF · Open in the Atlas

Code that ran

14 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 14 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2308.16557.json · badge: /api/ran/2308.16557.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
expertisemodel/mutap canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
FunctionStatusWhere it lives
Mut_all_in_one Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/Merge_all_mut.py
pointer only (licence: NONE) · get_code("3d640759c588109a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

Write_into_pickle Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/Read_json_data.py
pointer only (licence: NONE) · get_code("e755516d4ffe111d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

check_test_oracle_sematic Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/Sematic_err_correction.py
pointer only (licence: NONE) · get_code("a5bc80a559b5038c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

directory_crawler Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/greedy_test_generator.py
pointer only (licence: NONE) · get_code("ce15f08dfed3da2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

fewshotMutantPromptGenerator Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/augmented_prompt.py
pointer only (licence: NONE) · get_code("54591bb7dd8a8e60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

fewshotPromptGenerator Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/generate_test_oracle.py
pointer only (licence: NONE) · get_code("f43c94b84ab25a2c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

initalPromptGenerator Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/generate_test_oracle.py
pointer only (licence: NONE) · get_code("2a493a7d68af773f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

load_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
expertisemodel/mutap/llama_util/model_utils.py
pointer only (licence: NONE) · get_code("bfc6d0ec102ca108")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

merge_asserts Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/Merge_all_mut.py
pointer only (licence: NONE) · get_code("0bd08159faf7b105")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

mutatePromptGenerator Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/augmented_prompt.py
pointer only (licence: NONE) · get_code("10e879155a44ead2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

paths_list Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/Mutation_Score.py
pointer only (licence: NONE); the stored copy get_code serves, from commissarsilver/cvt, is pointer only (licence: NONE) · get_code("4e2d817f03e60189")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

read_csv Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/augmented_prompt.py
pointer only (licence: NONE) · get_code("77d3223b6589a4e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

separate_asserts Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/greedy_test_generator.py
pointer only (licence: NONE) · get_code("f7c84817041483b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

synxPromptGenerator Ran
ran; our contract draft was wrong, not the code
expertisemodel/mutap/MuTAP/generate_test_oracle.py
pointer only (licence: NONE) · get_code("ba4811601ac7b530")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

apply_semantix_fix Not yet run
unverified (harvested, no recorded run)
expertisemodel/mutap/MuTAP/Sematic_err_correction.py
pointer only (licence: NONE) · get_code("c129303ba93e3e99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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.

run_asserts_on_scripts Not yet run
unverified (harvested, no recorded run)
expertisemodel/mutap/MuTAP/greedy_test_generator.py
pointer only (licence: NONE) · get_code("7574ac527059c5f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, expertisemodel/mutap when it was checked. 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 15 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.

FunctionAlso present inEarliest-datedOthers named
paths_list 2 other papers
1 dated earlier, 1 later
2206.15331 (2022-06)
GitHub Copilot AI pair programmer: Asset or Liability?
2311.11177 (2023-11)
Assessing the Security of GitHub Copilot Generated Code -- A Targeted Replication Study

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-23.

Repositories linked to this paper

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

Abstract

One of the critical phases in software development is software testing. Testing helps with identifying potential bugs and reducing maintenance costs. The goal of automated test generation tools is to ease the development of tests by suggesting efficient bug-revealing tests. Recently, researchers have leveraged Large Language Models (LLMs) of code to generate unit tests. While the code coverage of generated tests was usually assessed, the literature has acknowledged that the coverage is weakly correlated with the efficiency of tests in bug detection. To improve over this limitation, in this paper, we introduce MuTAP for improving the effectiveness of test cases generated by LLMs in terms of revealing bugs by leveraging mutation testing. Our goal is achieved by augmenting prompts with surviving mutants, as those mutants highlight the limitations of test cases in detecting bugs. MuTAP is capable of generating effective test cases in the absence of natural language descriptions of the Program Under Test (PUTs). We employ different LLMs within MuTAP and evaluate their performance on different benchmarks. Our results show that our proposed method is able to detect up to 28% more faulty human-written code snippets. Among these, 17% remained undetected by both the current state-of-the-art fully automated test generation tool (i.e., Pynguin) and zero-shot/few-shot learning approaches on LLMs. Furthermore, MuTAP achieves a Mutation Score (MS) of 93.57% on synthetic buggy code, outperforming all other approaches in our evaluation. Our findings suggest that although LLMs can serve as a useful tool to generate test cases, they require specific post-processing steps to enhance the effectiveness of the generated test cases which may suffer from syntactic or functional errors and may be ineffective in detecting certain types of bugs and testing corner cases PUTs.

For agents

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

get_harvested_code_for_paper("2308.16557")
get_code_for_paper("2308.16557")
have("2308.16557")

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

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

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

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

Connect an agent — have() is free.