Saved in:
Bibliographic Details
Main Authors: Li, Yansong, Branco, Paula, Hoole, Alexander M., Marwah, Manish, Koduvely, Hari Manassery, Jourdan, Guy-Vincent, Jou, Stephan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.20630
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913860029513728
author Li, Yansong
Branco, Paula
Hoole, Alexander M.
Marwah, Manish
Koduvely, Hari Manassery
Jourdan, Guy-Vincent
Jou, Stephan
author_facet Li, Yansong
Branco, Paula
Hoole, Alexander M.
Marwah, Manish
Koduvely, Hari Manassery
Jourdan, Guy-Vincent
Jou, Stephan
contents As Large Language Models (LLMs) evolve in understanding and generating code, accurately evaluating their reliability in analyzing source code vulnerabilities becomes increasingly vital. While studies have examined LLM capabilities in tasks like vulnerability detection and repair, they often overlook the importance of both structure and semantic reasoning crucial for trustworthy vulnerability analysis. To address this gap, we introduce SV-TrustEval-C, a benchmark designed to evaluate LLMs' abilities for vulnerability analysis of code written in the C programming language through two key dimensions: structure reasoning - assessing how models identify relationships between code elements under varying data and control flow complexities; and semantic reasoning - examining their logical consistency in scenarios where code is structurally and semantically perturbed. Our results show that current LLMs are far from satisfactory in understanding complex code relationships and that their vulnerability analyses rely more on pattern matching than on robust logical reasoning. These findings underscore the effectiveness of the SV-TrustEval-C benchmark and highlight critical areas for enhancing the reasoning capabilities and trustworthiness of LLMs in real-world vulnerability analysis tasks. Our initial benchmark dataset is publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20630
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
Li, Yansong
Branco, Paula
Hoole, Alexander M.
Marwah, Manish
Koduvely, Hari Manassery
Jourdan, Guy-Vincent
Jou, Stephan
Software Engineering
Computation and Language
As Large Language Models (LLMs) evolve in understanding and generating code, accurately evaluating their reliability in analyzing source code vulnerabilities becomes increasingly vital. While studies have examined LLM capabilities in tasks like vulnerability detection and repair, they often overlook the importance of both structure and semantic reasoning crucial for trustworthy vulnerability analysis. To address this gap, we introduce SV-TrustEval-C, a benchmark designed to evaluate LLMs' abilities for vulnerability analysis of code written in the C programming language through two key dimensions: structure reasoning - assessing how models identify relationships between code elements under varying data and control flow complexities; and semantic reasoning - examining their logical consistency in scenarios where code is structurally and semantically perturbed. Our results show that current LLMs are far from satisfactory in understanding complex code relationships and that their vulnerability analyses rely more on pattern matching than on robust logical reasoning. These findings underscore the effectiveness of the SV-TrustEval-C benchmark and highlight critical areas for enhancing the reasoning capabilities and trustworthiness of LLMs in real-world vulnerability analysis tasks. Our initial benchmark dataset is publicly available.
title SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
topic Software Engineering
Computation and Language
url https://arxiv.org/abs/2505.20630