File size: 1,794 Bytes
d90318b
 
 
ece9ca2
d90318b
ece9ca2
 
 
d90318b
ece9ca2
d90318b
 
 
 
 
ece9ca2
 
d90318b
 
ece9ca2
 
 
 
d90318b
 
ece9ca2
 
 
 
d90318b
 
 
 
 
 
e6e518e
 
d4f7ad2
 
e6e518e
 
d4f7ad2
e6e518e
 
336c919
e6e518e
 
 
 
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
---
dataset_info:
  features:
  - name: file_name
    dtype: string
  - name: verified_c_file_content
    dtype: string
  - name: dependency_acls
    dtype: string
  - name: function_implementation
    dtype: string
  - name: verified
    dtype: bool
  - name: total_goals
    dtype: int64
  - name: verified_goals
    dtype: int64
  - name: error_cause
    dtype: string
  - name: c_code_snippet
    dtype: string
  - name: acsl_snippet
    dtype: string
  splits:
  - name: train
    num_bytes: 1702402
    num_examples: 506
  download_size: 444955
  dataset_size: 1702402
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---

## General information:
This dataset is meant for evaluating the ability of LLMs to generate a valid implementation given a specification and is partly a derivative of The Stack 1 and The Stack 2. 
The dataset is meant for research purposes. Please look up the legal license from The Stack 1 and The Stack 2 before using.  

## Please cite our paper if you use this dataset:
Here is a link to our paper describing the process of creating this dataset: https://link.springer.com/chapter/10.1007/978-3-032-07132-3_5    

## Example of use:
The following results were obtained by prompting the LLMs to generate an implementation given an ACSL specification and the function signature. We only used 100 examples for this test. The outputs were then evaluated using Frama-C with the WP and RTE plugins, for more information of specific versions etc, please have a look at our paper.  
![model_comparison_stacked_ranked](https://cdn-uploads.huggingface.co/production/uploads/63a06a23f3334a6553d9d5d1/LmwBD6q6yPaF37dKdgaIS.png)

## Contact
If you have any questions regarding the dataset, you can email me at niclas.hertzberg@ai.se.