shubhamugare commited on
Commit
2240657
·
verified ·
1 Parent(s): 2fa8d0f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +6 -48
README.md CHANGED
@@ -13,51 +13,6 @@ tags:
13
  - memory-safety
14
  size_categories:
15
  - n<1K
16
- configs:
17
- - config_name: default
18
- data_files:
19
- - split: test
20
- path: data/test-*
21
- dataset_info:
22
- features:
23
- - name: id
24
- dtype: string
25
- - name: source_file
26
- dtype: string
27
- - name: original_function_name
28
- dtype: string
29
- - name: anonymized_function_name
30
- dtype: string
31
- - name: function_code
32
- dtype: string
33
- - name: context
34
- list: string
35
- - name: has_bug
36
- dtype: bool
37
- - name: bug_types
38
- list: string
39
- - name: bug_line_offsets
40
- list: int32
41
- - name: bug_absolute_lines
42
- list: int32
43
- - name: bug_severities
44
- list: string
45
- - name: bug_traces
46
- list: string
47
- - name: category
48
- dtype: string
49
- - name: requires_interprocedural
50
- dtype: bool
51
- - name: start_line
52
- dtype: int32
53
- - name: end_line
54
- dtype: int32
55
- splits:
56
- - name: test
57
- num_bytes: 205326
58
- num_examples: 523
59
- download_size: 65734
60
- dataset_size: 205326
61
  ---
62
 
63
  # Infer Pulse Static Analysis Evaluation Dataset
@@ -105,8 +60,11 @@ Each example contains:
105
  - **original_function_name**: Original name from Infer tests
106
  - **anonymized_function_name**: Name with hints removed (e.g., `malloc_no_check_bad` → `malloc_no_check`)
107
  - **function_code**: Complete C function code
108
- - **includes**: Required #include statements
109
- - **dependencies**: Helper functions/structs needed
 
 
 
110
  - **has_bug**: Boolean indicating if function has bugs
111
  - **bug_types**: List of bug types (NULLPTR_DEREFERENCE, MEMORY_LEAK, etc.)
112
  - **bug_line_offsets**: Line numbers relative to function start
@@ -147,7 +105,7 @@ This dataset is designed for:
147
 
148
  Send the LLM:
149
  - System prompt with bug type definitions and analysis rules
150
- - User prompt with the `function_code` and any needed `includes`
151
 
152
  Expected LLM response format:
153
  ```json
 
13
  - memory-safety
14
  size_categories:
15
  - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
 
18
  # Infer Pulse Static Analysis Evaluation Dataset
 
60
  - **original_function_name**: Original name from Infer tests
61
  - **anonymized_function_name**: Name with hints removed (e.g., `malloc_no_check_bad` → `malloc_no_check`)
62
  - **function_code**: Complete C function code
63
+ - **context**: Unified context including:
64
+ - #include statements
65
+ - Struct, enum, and typedef definitions (with nested dependencies)
66
+ - Global variable declarations
67
+ - Dependency function implementations
68
  - **has_bug**: Boolean indicating if function has bugs
69
  - **bug_types**: List of bug types (NULLPTR_DEREFERENCE, MEMORY_LEAK, etc.)
70
  - **bug_line_offsets**: Line numbers relative to function start
 
105
 
106
  Send the LLM:
107
  - System prompt with bug type definitions and analysis rules
108
+ - User prompt with the `function_code` and the `context` (includes, types, globals, dependencies)
109
 
110
  Expected LLM response format:
111
  ```json