FixCheck: A Tool for Improving Patch Correctness Analysis
Open Access
- 11 September 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1856-1860
Abstract
Patch correctness assessment aims at effectively detecting overfitted patches, i.e., patches that causes all tests to pass but do not actually fix the bug. Although several automated techniques for assessing patch correctness have been proposed, these techniques typically yield a binary result (correct/incorrect) without providing any additional information explaining the rationale behind the decision of classifying a patch as correct or incorrect. This tool demo paper presents FixCheck, a tool based on static analysis, random testing and Large Language Models (LLMs), that seeks to improve the patch correctness analysis process by providing fault-revealing tests for potentially incorrect patches. To this end, FixCheck first employs static analysis and random testing to generate a comprehensive set of test cases that are similar to the original failing test case. Then, FixCheck relies on LLMs to derive meaningful assertions for each new test case. Finally, FixCheck executes the generated tests, and those that fail are selected and prioritized based on their likelihood of revealing a defect in the patch.Keywords
Funding Information
- Comunidad de Madrid (S2018\/TCS-4339)
- Ministerio de Ciencia e Innovación (TED2021-132464B-I00)
- Ministerio de Ciencia e Innovación (PID2022-142290OB-I00)
This publication has 8 references indexed in Scilit:
- Improving Patch Correctness Analysis via Random Testing and Large Language Models2024
- Code Llama: Open Foundation Models for CodearXiv, 2024
- Patch correctness assessment in automated program repair based on the impact of patches on production and test code2022
- Automated patch correctness assessment2020
- Automated program repairCommunications of the ACM, 2019
- Identifying patch correctness in test-based program repair2018
- Nopol: Automatic Repair of Conditional Statement Bugs in Java ProgramsIEEE Transactions on Software Engineering, 2016
- Defects4J: a database of existing faults to enable controlled testing studies for Java programs2014