File size: 2,316 Bytes
1a12482
3f11a1c
1a12482
 
 
 
 
 
 
 
a378a73
 
1a12482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0473604
1a12482
 
 
 
8cb9ff5
1a12482
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
license: gpl-3.0
---
# CombinedVuln_LLVM Dataset

[![Hugging Face](https://img.shields.io/badge/🤗%20View%20on-HuggingFace-blue)](https://huggingface.co/datasets/compAgent/Combined_LLVM)

## Dataset Summary

**Combined_LLVM** is a unified dataset for binary vulnerability detection that merges two sources:
- [CompRealVul_LLVM](https://huggingface.co/datasets/CCompote/CompRealVul_LLVM), based on real-world C vulnerabilities
- [Juliet_LLVM](https://huggingface.co/datasets/CCompote/Juliet_LLVM), based on the Juliet Test Suite

All functions are provided in **LLVM Intermediate Representation (IR)** format and labeled as **vulnerable or non-vulnerable**. This dataset is ideal for training and benchmarking machine learning models that aim to detect vulnerabilities in compiled representations of code, such as LLMs, GNNs, or binary-level classifiers.

## Key Features

- ✅ **LLVM IR format** (field: `llvm_ir_function`) for architecture-independent representation  
- ✅ Merged from **two train datasets**: Juliet (synthetic) and CompRealVul (real-world)  
- ✅ Clear **binary classification labels** (`label`)  
- ✅ Metadata included: source dataset, original file name, and function name

## Dataset Structure

Each record in the dataset contains:

- `dataset`: The origin of the sample, either `"Juliet"` or `"CompRealVul"`  
- `file`: The source filename of the C function  
- `fun_name`: Name of the function  
- `llvm_ir_function`: LLVM IR representation of the function  
- `label`: `"1"` for vulnerable, `"0"` for non-vulnerable  
- `split`: "train"

## Example Entry

```json
{
  "dataset": "Juliet",
  "file": "CWE121/s01.c",
  "fun_name": "CWE121_bad",
  "llvm_ir_function": "define dso_local void @CWE121_bad() { ... }",
  "label": "1",
  "split": "train"
}
```
## Usage
```python
from datasets import load_dataset

# Load the dataset
ds = load_dataset("compAgent/CombinedVuln_LLVM", split="train")

# View a sample
print(ds[0])
```

## License
This dataset is released under the GPL-3.0.

## Citation
```cite
@misc{combinedvuln_llvm,
  author       = {Compote},
  title        = {CombinedVuln_LLVM: A Unified Dataset of Vulnerable and Non-Vulnerable Functions in LLVM IR},
  howpublished = {\url{https://huggingface.co/datasets/compAgent/CombinedVuln_LLVM}},
  year         = {2025}
}
```