id int32 0 27.3k | func stringlengths 26 142k | target bool 2
classes | project stringclasses 2
values | commit_id stringlengths 40 40 | func_clean stringlengths 26 131k | vul_lines dict | normalized_func stringlengths 24 132k | lines listlengths 1 2.8k | label listlengths 1 2.8k | line_no listlengths 1 2.8k |
|---|---|---|---|---|---|---|---|---|---|---|
11,323 | static void sysctl_write(void *opaque, target_phys_addr_t addr, uint64_t value,
unsigned size)
{
MilkymistSysctlState *s = opaque;
trace_milkymist_sysctl_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_GPIO_OUT:
case R_GPIO_INTEN:
case R_TI... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void sysctl_write(void *opaque, target_phys_addr_t addr, uint64_t value,
unsigned size)
{
MilkymistSysctlState *s = opaque;
trace_milkymist_sysctl_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_GPIO_OUT:
case R_GPIO_INTEN:
case R_TI... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2,
unsigned VAR_3)
{
MilkymistSysctlState *s = VAR_0;
trace_milkymist_sysctl_memory_write(VAR_1, VAR_2);
VAR_1 >>= 2;
switch (VAR_1) {
case R_GPIO_OUT:
case R_GPIO_INTEN:
case R_TIMER... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{",
"MilkymistSysctlState *s = VAR_0;",
"trace_milkymist_sysctl_memory_write(VAR_1, VAR_2);",
"VAR_1 >>= 2;",
"switch (VAR_1) {",
"case R_GPIO_OUT:\ncase R_GPIO_INTEN:\ncase R_TIMER0_COUNTER:\ncase R_TIMER1_COUNTE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19,
21,
23,
25,
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
... |
11,324 | static void parallels_close(BlockDriverState *bs)
{
BDRVParallelsState *s = bs->opaque;
g_free(s->catalog_bitmap);
}
| false | qemu | 369f7de9d57e4dd2f312255fc12271d5749c0a4e | static void parallels_close(BlockDriverState *bs)
{
BDRVParallelsState *s = bs->opaque;
g_free(s->catalog_bitmap);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0)
{
BDRVParallelsState *s = VAR_0->opaque;
g_free(s->catalog_bitmap);
}
| [
"static void FUNC_0(BlockDriverState *VAR_0)\n{",
"BDRVParallelsState *s = VAR_0->opaque;",
"g_free(s->catalog_bitmap);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,325 | static int img_resize(int argc, char **argv)
{
Error *err = NULL;
int c, ret, relative;
const char *filename, *fmt, *size;
int64_t n, total_size;
bool quiet = false;
BlockBackend *blk = NULL;
QemuOpts *param;
static QemuOptsList resize_options = {
.name = "resize_opti... | true | qemu | c919297379e9980c2bcc4d2053addbc1fd6d762b | static int img_resize(int argc, char **argv)
{
Error *err = NULL;
int c, ret, relative;
const char *filename, *fmt, *size;
int64_t n, total_size;
bool quiet = false;
BlockBackend *blk = NULL;
QemuOpts *param;
static QemuOptsList resize_options = {
.name = "resize_opti... | {
"code": [
" c = getopt_long(argc, argv, \"f:hq\",",
" case 'h':",
" case 'h':",
" case 'h':"
],
"line_no": [
87,
101,
101,
101
]
} | static int FUNC_0(int VAR_0, char **VAR_1)
{
Error *err = NULL;
int VAR_2, VAR_3, VAR_4;
const char *VAR_5, *VAR_6, *VAR_7;
int64_t n, total_size;
bool quiet = false;
BlockBackend *blk = NULL;
QemuOpts *param;
static QemuOptsList VAR_8 = {
.name = "VAR_8",
.h... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"Error *err = NULL;",
"int VAR_2, VAR_3, VAR_4;",
"const char *VAR_5, *VAR_6, *VAR_7;",
"int64_t n, total_size;",
"bool quiet = false;",
"BlockBackend *blk = NULL;",
"QemuOpts *param;",
"static QemuOptsList VAR_8 = {",
".name = \"VAR_8\",\n.head = Q... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31,
33,
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
55
],
[... |
11,327 | static void qtrle_decode_24bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
{
int rle_code;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char r, g, b;
unsigned char *rgb = s->frame.data[0];
int pixel_limit = s->frame.linesize[0] * s->avctx->height;
... | true | FFmpeg | 7fb92be7e50ea4ba5712804326c6814ae02dd190 | static void qtrle_decode_24bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
{
int rle_code;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char r, g, b;
unsigned char *rgb = s->frame.data[0];
int pixel_limit = s->frame.linesize[0] * s->avctx->height;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4;
int VAR_5;
int VAR_6 = VAR_0->frame.linesize[0];
unsigned char VAR_7, VAR_8, VAR_9;
unsigned char *VAR_10 = VAR_0->frame.data[0];
int VAR_11 = VAR_0->frame.linesize[0] * VAR_0->avctx->height;
whil... | [
"static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4;",
"int VAR_5;",
"int VAR_6 = VAR_0->frame.linesize[0];",
"unsigned char VAR_7, VAR_8, VAR_9;",
"unsigned char *VAR_10 = VAR_0->frame.data[0];",
"int VAR_11 = VAR_0->frame.linesize[0] * VAR_0->avctx->height;",
"w... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
28
],
[
30
],
[
34
],
[
36
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,329 | static int xiph_parse_sdp_line(AVFormatContext *s, int st_index,
PayloadContext *data, const char *line)
{
const char *p;
char *value;
char attr[25];
int value_size = strlen(line), attr_size = sizeof(attr), res = 0;
AVCodecContext* codec = s->streams[st_index]... | true | FFmpeg | e58c05bb3c8b7bd3b93d264facbf290aeae4c483 | static int xiph_parse_sdp_line(AVFormatContext *s, int st_index,
PayloadContext *data, const char *line)
{
const char *p;
char *value;
char attr[25];
int value_size = strlen(line), attr_size = sizeof(attr), res = 0;
AVCodecContext* codec = s->streams[st_index]... | {
"code": [
" assert(codec->id == CODEC_ID_THEORA);"
],
"line_no": [
19
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
PayloadContext *VAR_2, const char *VAR_3)
{
const char *VAR_4;
char *VAR_5;
char VAR_6[25];
int VAR_7 = strlen(VAR_3), VAR_8 = sizeof(VAR_6), VAR_9 = 0;
AVCodecContext* codec = VAR_0->streams[VAR_1]->codec;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nPayloadContext *VAR_2, const char *VAR_3)\n{",
"const char *VAR_4;",
"char *VAR_5;",
"char VAR_6[25];",
"int VAR_7 = strlen(VAR_3), VAR_8 = sizeof(VAR_6), VAR_9 = 0;",
"AVCodecContext* codec = VAR_0->streams[VAR_1]->codec;",
"assert(codec->id == COD... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47,
49,
51
],
[
53
],
[... |
11,330 | static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
const uint8_t *buf, int len, uint16_t seq,
int flags)
{
int start_partition, end_packet;
int exte... | true | FFmpeg | 8fbab7a6c84fd75de4f752b412cea8032604f75b | static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
const uint8_t *buf, int len, uint16_t seq,
int flags)
{
int start_partition, end_packet;
int exte... | {
"code": [
" uint32_t old_timestamp;"
],
"line_no": [
23
]
} | static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,
AVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,
const uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,
int VAR_8)
{
int VAR_9, VAR_10;
int VAR_11, VAR_12;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,\nAVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,\nint VAR_8)\n{",
"int VAR_9, VAR_10;",
"int VAR_11, VAR_12;",
"int VAR_13 = 0, VAR_14 = 0, VAR_15 = 0,\nVAR_16 = 0;",
"int VAR_17 = -1, VAR_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
11,331 | static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
MpegEncContext * const s = avctx->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
AVFrame *pict = data;
const int width= s->width;
const int height= s->height;
AVFrame * const p= (AVF... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
MpegEncContext * const s = avctx->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
AVFrame *pict = data;
const int width= s->width;
const int height= s->height;
AVFrame * const p= (AVF... | {
"code": [
" uint16_t buffer[2048][4];"
],
"line_no": [
45
]
} | static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3){
MpegEncContext * const s = VAR_0->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
AVFrame *pict = VAR_3;
const int VAR_4= s->VAR_4;
const int VAR_5= s->VAR_5;
AVFrame * const p= (AVFrame*)&s->current_... | [
"static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3){",
"MpegEncContext * const s = VAR_0->priv_data;",
"MJpegContext * const m = s->mjpeg_ctx;",
"AVFrame *pict = VAR_3;",
"const int VAR_4= s->VAR_4;",
"const int VAR_5= s->VAR_5;",
"AVFrame * const p= (AVFrame*)&s->cur... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
11,332 | static VFIOGroup *vfio_get_group(int groupid)
{
VFIOGroup *group;
char path[32];
struct vfio_group_status status = { .argsz = sizeof(status) };
QLIST_FOREACH(group, &group_list, next) {
if (group->groupid == groupid) {
return group;
}
}
group = g_malloc0... | true | qemu | 3df3e0a5872cbc8fcc55a0413416352eec68132e | static VFIOGroup *vfio_get_group(int groupid)
{
VFIOGroup *group;
char path[32];
struct vfio_group_status status = { .argsz = sizeof(status) };
QLIST_FOREACH(group, &group_list, next) {
if (group->groupid == groupid) {
return group;
}
}
group = g_malloc0... | {
"code": [
"static VFIOGroup *vfio_get_group(int groupid)",
" return group;",
" if (vfio_connect_container(group)) {"
],
"line_no": [
1,
17,
73
]
} | static VFIOGroup *FUNC_0(int groupid)
{
VFIOGroup *group;
char VAR_0[32];
struct vfio_group_status VAR_1 = { .argsz = sizeof(VAR_1) };
QLIST_FOREACH(group, &group_list, next) {
if (group->groupid == groupid) {
return group;
}
}
group = g_malloc0(sizeof(*... | [
"static VFIOGroup *FUNC_0(int groupid)\n{",
"VFIOGroup *group;",
"char VAR_0[32];",
"struct vfio_group_status VAR_1 = { .argsz = sizeof(VAR_1) };",
"QLIST_FOREACH(group, &group_list, next) {",
"if (group->groupid == groupid) {",
"return group;",
"}",
"}",
"group = g_malloc0(sizeof(*group));",
"s... | [
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
11,333 | static int webvtt_event_to_ass(AVBPrint *buf, const char *p)
{
int i, again, skip = 0;
while (*p) {
for (i = 0; i < FF_ARRAY_ELEMS(webvtt_tag_replace); i++) {
const char *from = webvtt_tag_replace[i].from;
const size_t len = strlen(from);
if (!strncmp(p, fr... | true | FFmpeg | 4819446eae451a6e58d6ae41faefb5529af4e783 | static int webvtt_event_to_ass(AVBPrint *buf, const char *p)
{
int i, again, skip = 0;
while (*p) {
for (i = 0; i < FF_ARRAY_ELEMS(webvtt_tag_replace); i++) {
const char *from = webvtt_tag_replace[i].from;
const size_t len = strlen(from);
if (!strncmp(p, fr... | {
"code": [
" int i, again, skip = 0;"
],
"line_no": [
5
]
} | static int FUNC_0(AVBPrint *VAR_0, const char *VAR_1)
{
int VAR_2, VAR_3, VAR_4 = 0;
while (*VAR_1) {
for (VAR_2 = 0; VAR_2 < FF_ARRAY_ELEMS(webvtt_tag_replace); VAR_2++) {
const char *from = webvtt_tag_replace[VAR_2].from;
const size_t len = strlen(from);
... | [
"static int FUNC_0(AVBPrint *VAR_0, const char *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4 = 0;",
"while (*VAR_1) {",
"for (VAR_2 = 0; VAR_2 < FF_ARRAY_ELEMS(webvtt_tag_replace); VAR_2++) {",
"const char *from = webvtt_tag_replace[VAR_2].from;",
"const size_t len = strlen(from);",
"if (!strncmp(VAR_1, from, l... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
... |
11,335 | static int nuv_probe(AVProbeData *p) {
if (p->buf_size < 12)
return 0;
if (!memcmp(p->buf, "NuppelVideo", 12))
return AVPROBE_SCORE_MAX;
if (!memcmp(p->buf, "MythTVVideo", 12))
return AVPROBE_SCORE_MAX;
return 0;
}
| false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int nuv_probe(AVProbeData *p) {
if (p->buf_size < 12)
return 0;
if (!memcmp(p->buf, "NuppelVideo", 12))
return AVPROBE_SCORE_MAX;
if (!memcmp(p->buf, "MythTVVideo", 12))
return AVPROBE_SCORE_MAX;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0) {
if (VAR_0->buf_size < 12)
return 0;
if (!memcmp(VAR_0->buf, "NuppelVideo", 12))
return AVPROBE_SCORE_MAX;
if (!memcmp(VAR_0->buf, "MythTVVideo", 12))
return AVPROBE_SCORE_MAX;
return 0;
}
| [
"static int FUNC_0(AVProbeData *VAR_0) {",
"if (VAR_0->buf_size < 12)\nreturn 0;",
"if (!memcmp(VAR_0->buf, \"NuppelVideo\", 12))\nreturn AVPROBE_SCORE_MAX;",
"if (!memcmp(VAR_0->buf, \"MythTVVideo\", 12))\nreturn AVPROBE_SCORE_MAX;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3,
5
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17
]
] |
11,336 | void cache_fini(PageCache *cache)
{
int64_t i;
g_assert(cache);
g_assert(cache->page_cache);
for (i = 0; i < cache->max_num_items; i++) {
g_free(cache->page_cache[i].it_data);
}
g_free(cache->page_cache);
cache->page_cache = NULL;
} | true | qemu | 4380be0e997284159e634100d2f5ec87f944d74d | void cache_fini(PageCache *cache)
{
int64_t i;
g_assert(cache);
g_assert(cache->page_cache);
for (i = 0; i < cache->max_num_items; i++) {
g_free(cache->page_cache[i].it_data);
}
g_free(cache->page_cache);
cache->page_cache = NULL;
} | {
"code": [],
"line_no": []
} | void FUNC_0(PageCache *VAR_0)
{
int64_t i;
g_assert(VAR_0);
g_assert(VAR_0->page_cache);
for (i = 0; i < VAR_0->max_num_items; i++) {
g_free(VAR_0->page_cache[i].it_data);
}
g_free(VAR_0->page_cache);
VAR_0->page_cache = NULL;
} | [
"void FUNC_0(PageCache *VAR_0)\n{",
"int64_t i;",
"g_assert(VAR_0);",
"g_assert(VAR_0->page_cache);",
"for (i = 0; i < VAR_0->max_num_items; i++) {",
"g_free(VAR_0->page_cache[i].it_data);",
"}",
"g_free(VAR_0->page_cache);",
"VAR_0->page_cache = NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
28
]
] |
11,337 | int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc= &s->rc_context;
int i;
const char *error = NULL;
static const char * const const_names[]={
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
... | true | FFmpeg | 3cffbe090a5168dcfe580de8d662a32e7ad1d911 | int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc= &s->rc_context;
int i;
const char *error = NULL;
static const char * const const_names[]={
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
... | {
"code": [
" rcc->rc_eq_eval = ff_parse(s->avctx->rc_eq, const_names, func1, func1_names, NULL, NULL, &error);"
],
"line_no": [
89
]
} | VAR_6intVAR_6 VAR_6ff_rate_control_initVAR_6(VAR_6MpegEncContextVAR_6 *VAR_6VAR_0VAR_6)
{
VAR_6RateControlContextVAR_6 *VAR_6rccVAR_6= &VAR_6VAR_0VAR_6->VAR_6rc_contextVAR_6;
VAR_6intVAR_6 VAR_6VAR_7VAR_6;
VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6 = VAR_6NULLVAR_6;
VAR_6staticVAR_6 VAR_6const... | [
"VAR_6intVAR_6 VAR_6ff_rate_control_initVAR_6(VAR_6MpegEncContextVAR_6 *VAR_6VAR_0VAR_6)\n{",
"VAR_6RateControlContextVAR_6 *VAR_6rccVAR_6= &VAR_6VAR_0VAR_6->VAR_6rc_contextVAR_6;",
"VAR_6intVAR_6 VAR_6VAR_7VAR_6;",
"VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6 = VAR_6NULLVAR_6;",
"VAR_6staticVAR_6 VAR_6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
51,
53,
55,
57,
59,
61,
63
],
[
65
],
[
67,
69,
71,
73
... |
11,338 | static int iec61883_read_header(AVFormatContext *context)
{
struct iec61883_data *dv = context->priv_data;
struct raw1394_portinfo pinf[16];
rom1394_directory rom_dir;
char *endptr;
int inport;
int nb_ports;
int port = -1;
int response;
int i, j = 0;
uint64_t guid = 0;... | true | FFmpeg | 7c453277a399bc81553c6110efd81a0957117138 | static int iec61883_read_header(AVFormatContext *context)
{
struct iec61883_data *dv = context->priv_data;
struct raw1394_portinfo pinf[16];
rom1394_directory rom_dir;
char *endptr;
int inport;
int nb_ports;
int port = -1;
int response;
int i, j = 0;
uint64_t guid = 0;... | {
"code": [
" pthread_mutex_init(&dv->mutex, NULL);",
" pthread_cond_init(&dv->cond, NULL);",
" pthread_create(&dv->receive_task_thread, NULL, iec61883_receive_task, dv);"
],
"line_no": [
325,
327,
329
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
struct iec61883_data *VAR_1 = VAR_0->priv_data;
struct raw1394_portinfo VAR_2[16];
rom1394_directory rom_dir;
char *VAR_3;
int VAR_4;
int VAR_5;
int VAR_6 = -1;
int VAR_7;
int VAR_8, VAR_9 = 0;
uint64_t guid = 0;
VAR_1... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"struct iec61883_data *VAR_1 = VAR_0->priv_data;",
"struct raw1394_portinfo VAR_2[16];",
"rom1394_directory rom_dir;",
"char *VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6 = -1;",
"int VAR_7;",
"int VAR_8, VAR_9 = 0;",
"uint64_t guid = 0;",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
11,339 | static int aio_flush_f(BlockBackend *blk, int argc, char **argv)
{
blk_drain_all();
return 0;
} | true | qemu | 556c2b60714e7dae3ed0eb3488910435263dc09f | static int aio_flush_f(BlockBackend *blk, int argc, char **argv)
{
blk_drain_all();
return 0;
} | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)
{
blk_drain_all();
return 0;
} | [
"static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{",
"blk_drain_all();",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
10
],
[
12
]
] |
11,340 | static int idcin_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IdcinContext *s = avctx->priv_data;
const uint8_t *pal = av_packet_get_side... | true | FFmpeg | 527224830aad6aaf5fc5ed9ff6c5f12c80ff906c | static int idcin_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IdcinContext *s = avctx->priv_data;
const uint8_t *pal = av_packet_get_side... | {
"code": [
" if (avctx->get_buffer(avctx, &s->frame)) {",
" return -1;",
" idcin_decode_vlcs(s);"
],
"line_no": [
31,
35,
41
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
IdcinContext *s = VAR_0->priv_data;
const uint8_t *VAR_6 = av_packet_get_side_data(VAR_3, ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"IdcinContext *s = VAR_0->priv_data;",
"const uint8_t *VAR_6 = av_packet_get_side_data(VAR_3, AV_PKT_DATA_PALETTE, NULL);",
"s->VAR_4 = VAR_4;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[... |
11,341 | void vnc_display_open(DisplayState *ds, const char *display, Error **errp)
{
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
const char *options;
int password = 0;
int reverse = 0;
#ifdef CONFIG_VNC_TLS
int tls = 0, x509 = 0;
#endif
#ifdef CONFIG_VNC_SASL
int sasl = 0;
... | true | qemu | 21ef45d71221b4577330fe3aacfb06afad91ad46 | void vnc_display_open(DisplayState *ds, const char *display, Error **errp)
{
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
const char *options;
int password = 0;
int reverse = 0;
#ifdef CONFIG_VNC_TLS
int tls = 0, x509 = 0;
#endif
#ifdef CONFIG_VNC_SASL
int sasl = 0;
... | {
"code": [
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDi... | void FUNC_0(DisplayState *VAR_0, const char *VAR_1, Error **VAR_2)
{
VncDisplay *vs = VAR_0 ? (VncDisplay *)VAR_0->opaque : vnc_display;
const char *VAR_3;
int VAR_4 = 0;
int VAR_5 = 0;
#ifdef CONFIG_VNC_TLS
int tls = 0, x509 = 0;
#endif
#ifdef CONFIG_VNC_SASL
int sasl = 0;
int sa... | [
"void FUNC_0(DisplayState *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"VncDisplay *vs = VAR_0 ? (VncDisplay *)VAR_0->opaque : vnc_display;",
"const char *VAR_3;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"#ifdef CONFIG_VNC_TLS\nint tls = 0, x509 = 0;",
"#endif\n#ifdef CONFIG_VNC_SASL\nint sasl = 0;",
"i... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19,
21
],
[
23
],
[
25,
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[... |
11,342 | bdrv_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos,
bool is_read)
{
if (qemu_in_coroutine()) {
return bdrv_co_rw_vmstate(bs, qiov, pos, is_read);
} else {
BdrvVmstateCo data = {
.bs = bs,
.qiov = qiov,
... | true | qemu | e92f0e1910f0655a0edd8d87c5a7262d36517a89 | bdrv_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos,
bool is_read)
{
if (qemu_in_coroutine()) {
return bdrv_co_rw_vmstate(bs, qiov, pos, is_read);
} else {
BdrvVmstateCo data = {
.bs = bs,
.qiov = qiov,
... | {
"code": [
" qemu_coroutine_enter(co);",
" qemu_coroutine_enter(co);",
" qemu_coroutine_enter(co);",
" qemu_coroutine_enter(co);",
" qemu_coroutine_enter(co);",
" qemu_coroutine_enter(co);"
],
"line_no": [
31,
31,
31,
31,
31,
... | FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1, int64_t VAR_2,
bool VAR_3)
{
if (qemu_in_coroutine()) {
return bdrv_co_rw_vmstate(VAR_0, VAR_1, VAR_2, VAR_3);
} else {
BdrvVmstateCo data = {
.VAR_0 = VAR_0,
.VAR_1 = VAR_1,
... | [
"FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1, int64_t VAR_2,\nbool VAR_3)\n{",
"if (qemu_in_coroutine()) {",
"return bdrv_co_rw_vmstate(VAR_0, VAR_1, VAR_2, VAR_3);",
"} else {",
"BdrvVmstateCo data = {",
".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_3 = VAR_3,\n... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17,
19,
21,
23,
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
11,344 | static void exit_program(void)
{
int i, j;
for (i = 0; i < nb_filtergraphs; i++) {
avfilter_graph_free(&filtergraphs[i]->graph);
for (j = 0; j < filtergraphs[i]->nb_inputs; j++) {
av_freep(&filtergraphs[i]->inputs[j]->name);
av_freep(&filtergraphs[i]->inputs[j]);... | true | FFmpeg | 636ced8e1dc8248a1353b416240b93d70ad03edb | static void exit_program(void)
{
int i, j;
for (i = 0; i < nb_filtergraphs; i++) {
avfilter_graph_free(&filtergraphs[i]->graph);
for (j = 0; j < filtergraphs[i]->nb_inputs; j++) {
av_freep(&filtergraphs[i]->inputs[j]->name);
av_freep(&filtergraphs[i]->inputs[j]);... | {
"code": [
"static void exit_program(void)",
"static void exit_program(void)"
],
"line_no": [
1,
1
]
} | static void FUNC_0(void)
{
int VAR_0, VAR_1;
for (VAR_0 = 0; VAR_0 < nb_filtergraphs; VAR_0++) {
avfilter_graph_free(&filtergraphs[VAR_0]->graph);
for (VAR_1 = 0; VAR_1 < filtergraphs[VAR_0]->nb_inputs; VAR_1++) {
av_freep(&filtergraphs[VAR_0]->inputs[VAR_1]->name);
... | [
"static void FUNC_0(void)\n{",
"int VAR_0, VAR_1;",
"for (VAR_0 = 0; VAR_0 < nb_filtergraphs; VAR_0++) {",
"avfilter_graph_free(&filtergraphs[VAR_0]->graph);",
"for (VAR_1 = 0; VAR_1 < filtergraphs[VAR_0]->nb_inputs; VAR_1++) {",
"av_freep(&filtergraphs[VAR_0]->inputs[VAR_1]->name);",
"av_freep(&filterg... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47... |
11,345 | static bool scsi_target_emulate_report_luns(SCSITargetReq *r)
{
BusChild *kid;
int i, len, n;
int channel, id;
bool found_lun0;
if (r->req.cmd.xfer < 16) {
return false;
}
if (r->req.cmd.buf[2] > 2) {
return false;
}
channel = r->req.dev->channel;
i... | true | qemu | 846424350b292f16b732b573273a5c1f195cd7a3 | static bool scsi_target_emulate_report_luns(SCSITargetReq *r)
{
BusChild *kid;
int i, len, n;
int channel, id;
bool found_lun0;
if (r->req.cmd.xfer < 16) {
return false;
}
if (r->req.cmd.buf[2] > 2) {
return false;
}
channel = r->req.dev->channel;
i... | {
"code": [
" len = MIN(n + 8, r->req.cmd.xfer & ~7);",
" if (len > sizeof(r->buf)) {",
" return false;",
" stl_be_p(&r->buf, n);"
],
"line_no": [
63,
65,
17,
77
]
} | static bool FUNC_0(SCSITargetReq *r)
{
BusChild *kid;
int VAR_0, VAR_1, VAR_2;
int VAR_3, VAR_4;
bool found_lun0;
if (r->req.cmd.xfer < 16) {
return false;
}
if (r->req.cmd.buf[2] > 2) {
return false;
}
VAR_3 = r->req.dev->VAR_3;
VAR_4 = r->req.dev-... | [
"static bool FUNC_0(SCSITargetReq *r)\n{",
"BusChild *kid;",
"int VAR_0, VAR_1, VAR_2;",
"int VAR_3, VAR_4;",
"bool found_lun0;",
"if (r->req.cmd.xfer < 16) {",
"return false;",
"}",
"if (r->req.cmd.buf[2] > 2) {",
"return false;",
"}",
"VAR_3 = r->req.dev->VAR_3;",
"VAR_4 = r->req.dev->VAR_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
... |
11,346 | static int check_directory_consistency(BDRVVVFATState *s,
int cluster_num, const char* path)
{
int ret = 0;
unsigned char* cluster = qemu_malloc(s->cluster_size);
direntry_t* direntries = (direntry_t*)cluster;
mapping_t* mapping = find_mapping_for_cluster(s, cluster_num);
long_file_name lf... | true | qemu | 6265eb26a375179f193f792e4f0d49036d2cf052 | static int check_directory_consistency(BDRVVVFATState *s,
int cluster_num, const char* path)
{
int ret = 0;
unsigned char* cluster = qemu_malloc(s->cluster_size);
direntry_t* direntries = (direntry_t*)cluster;
mapping_t* mapping = find_mapping_for_cluster(s, cluster_num);
long_file_name lf... | {
"code": [
"\t schedule_rename(s, cluster_num, strdup(path));",
"\tschedule_mkdir(s, cluster_num, strdup(path));"
],
"line_no": [
55,
61
]
} | static int FUNC_0(BDRVVVFATState *VAR_0,
int VAR_1, const char* VAR_2)
{
int VAR_3 = 0;
unsigned char* VAR_4 = qemu_malloc(VAR_0->cluster_size);
direntry_t* direntries = (direntry_t*)VAR_4;
mapping_t* mapping = find_mapping_for_cluster(VAR_0, VAR_1);
long_file_name lfn;
int VAR_5 = st... | [
"static int FUNC_0(BDRVVVFATState *VAR_0,\nint VAR_1, const char* VAR_2)\n{",
"int VAR_3 = 0;",
"unsigned char* VAR_4 = qemu_malloc(VAR_0->cluster_size);",
"direntry_t* direntries = (direntry_t*)VAR_4;",
"mapping_t* mapping = find_mapping_for_cluster(VAR_0, VAR_1);",
"long_file_name lfn;",
"int VAR_5 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
53,
55
... |
11,347 | static int rpl_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
RPLContext *rpl = s->priv_data;
AVStream *vst = NULL, *ast = NULL;
int total_audio_size;
int error = 0;
uint32_t i;
int32_t audio_format, chunk_catalog_offset, number_of_chunks;
AVRational fps;
... | true | FFmpeg | 5eeeb4abf9705891f4dd1a4499588428319dec24 | static int rpl_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
RPLContext *rpl = s->priv_data;
AVStream *vst = NULL, *ast = NULL;
int total_audio_size;
int error = 0;
uint32_t i;
int32_t audio_format, chunk_catalog_offset, number_of_chunks;
AVRational fps;
... | {
"code": [
" &offset, &video_size, &audio_size))"
],
"line_no": [
285
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
RPLContext *rpl = VAR_0->priv_data;
AVStream *vst = NULL, *ast = NULL;
int VAR_1;
int VAR_2 = 0;
uint32_t i;
int32_t audio_format, chunk_catalog_offset, number_of_chunks;
AVRational fps;
char VAR... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"RPLContext *rpl = VAR_0->priv_data;",
"AVStream *vst = NULL, *ast = NULL;",
"int VAR_1;",
"int VAR_2 = 0;",
"uint32_t i;",
"int32_t audio_format, chunk_catalog_offset, number_of_chunks;",
"AVRational fps;",
"char VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
27
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
61
],
[
63,
65
],
[... |
11,348 | static void h264_free_context(PayloadContext *data)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (data->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
data->packet_types_received[ii], ii);
}
#endif
... | true | FFmpeg | 5a571d324129ce367584ad9d92aae1d286f389a2 | static void h264_free_context(PayloadContext *data)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (data->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
data->packet_types_received[ii], ii);
}
#endif
... | {
"code": [
" assert(data->cookie == MAGIC_COOKIE);",
" assert(data);",
" assert(data->cookie == MAGIC_COOKIE);",
" data->cookie = DEAD_COOKIE;"
],
"line_no": [
27,
25,
27,
33
]
} | static void FUNC_0(PayloadContext *VAR_0)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (VAR_0->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
VAR_0->packet_types_received[ii], ii);
}
#endif
assert(... | [
"static void FUNC_0(PayloadContext *VAR_0)\n{",
"#ifdef DEBUG\nint ii;",
"for (ii = 0; ii < 32; ii++) {",
"if (VAR_0->packet_types_received[ii])\nav_log(NULL, AV_LOG_DEBUG, \"Received %d packets of type %d\\n\",\nVAR_0->packet_types_received[ii], ii);",
"}",
"#endif\nassert(VAR_0);",
"assert(VAR_0->cook... | [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21,
25
],
[
27
],
[
33
],
[
39
],
[
41
]
] |
11,350 | static void mirror_iteration_done(MirrorOp *op, int ret)
{
MirrorBlockJob *s = op->s;
struct iovec *iov;
int64_t chunk_num;
int i, nb_chunks, sectors_per_chunk;
trace_mirror_iteration_done(s, op->sector_num, op->nb_sectors, ret);
s->in_flight--;
s->sectors_in_flight -= op->nb_sec... | true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void mirror_iteration_done(MirrorOp *op, int ret)
{
MirrorBlockJob *s = op->s;
struct iovec *iov;
int64_t chunk_num;
int i, nb_chunks, sectors_per_chunk;
trace_mirror_iteration_done(s, op->sector_num, op->nb_sectors, ret);
s->in_flight--;
s->sectors_in_flight -= op->nb_sec... | {
"code": [
" qemu_coroutine_enter(s->common.co, NULL);"
],
"line_no": [
67
]
} | static void FUNC_0(MirrorOp *VAR_0, int VAR_1)
{
MirrorBlockJob *s = VAR_0->s;
struct iovec *VAR_2;
int64_t chunk_num;
int VAR_3, VAR_4, VAR_5;
trace_mirror_iteration_done(s, VAR_0->sector_num, VAR_0->nb_sectors, VAR_1);
s->in_flight--;
s->sectors_in_flight -= VAR_0->nb_sectors;
... | [
"static void FUNC_0(MirrorOp *VAR_0, int VAR_1)\n{",
"MirrorBlockJob *s = VAR_0->s;",
"struct iovec *VAR_2;",
"int64_t chunk_num;",
"int VAR_3, VAR_4, VAR_5;",
"trace_mirror_iteration_done(s, VAR_0->sector_num, VAR_0->nb_sectors, VAR_1);",
"s->in_flight--;",
"s->sectors_in_flight -= VAR_0->nb_sectors;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
11,351 | static int find_image_range(int *pfirst_index, int *plast_index,
const char *path, int start_index)
{
char buf[1024];
int range, last_index, range1, first_index;
/* find the first image */
for (first_index = start_index; first_index < start_index + 5; first_index++) {... | true | FFmpeg | 07ef7b1a303680b73fc4a014f74a6d5089725184 | static int find_image_range(int *pfirst_index, int *plast_index,
const char *path, int start_index)
{
char buf[1024];
int range, last_index, range1, first_index;
for (first_index = start_index; first_index < start_index + 5; first_index++) {
if (av_get_frame... | {
"code": [
" if (first_index == 5)"
],
"line_no": [
37
]
} | static int FUNC_0(int *VAR_0, int *VAR_1,
const char *VAR_2, int VAR_3)
{
char VAR_4[1024];
int VAR_5, VAR_6, VAR_7, VAR_8;
for (VAR_8 = VAR_3; VAR_8 < VAR_3 + 5; VAR_8++) {
if (av_get_frame_filename(VAR_4, sizeof(VAR_4), VAR_2, VAR_8) < 0){
*VA... | [
"static int FUNC_0(int *VAR_0, int *VAR_1,\nconst char *VAR_2, int VAR_3)\n{",
"char VAR_4[1024];",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"for (VAR_8 = VAR_3; VAR_8 < VAR_3 + 5; VAR_8++) {",
"if (av_get_frame_filename(VAR_4, sizeof(VAR_4), VAR_2, VAR_8) < 0){",
"*VAR_0 =\n*VAR_1 = 1;",
"if (avio_check(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
... |
11,352 | av_cold int ff_cavs_init(AVCodecContext *avctx)
{
AVSContext *h = avctx->priv_data;
ff_blockdsp_init(&h->bdsp, avctx);
ff_h264chroma_init(&h->h264chroma, 8);
ff_idctdsp_init(&h->idsp, avctx);
ff_videodsp_init(&h->vdsp, 8);
ff_cavsdsp_init(&h->cdsp, avctx);
ff_init_scantable_permuta... | false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | av_cold int ff_cavs_init(AVCodecContext *avctx)
{
AVSContext *h = avctx->priv_data;
ff_blockdsp_init(&h->bdsp, avctx);
ff_h264chroma_init(&h->h264chroma, 8);
ff_idctdsp_init(&h->idsp, avctx);
ff_videodsp_init(&h->vdsp, 8);
ff_cavsdsp_init(&h->cdsp, avctx);
ff_init_scantable_permuta... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(AVCodecContext *avctx)
{
AVSContext *h = avctx->priv_data;
ff_blockdsp_init(&h->bdsp, avctx);
ff_h264chroma_init(&h->h264chroma, 8);
ff_idctdsp_init(&h->idsp, avctx);
ff_videodsp_init(&h->vdsp, 8);
ff_cavsdsp_init(&h->cdsp, avctx);
ff_init_scantable_permutation(h... | [
"av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"AVSContext *h = avctx->priv_data;",
"ff_blockdsp_init(&h->bdsp, avctx);",
"ff_h264chroma_init(&h->h264chroma, 8);",
"ff_idctdsp_init(&h->idsp, avctx);",
"ff_videodsp_init(&h->vdsp, 8);",
"ff_cavsdsp_init(&h->cdsp, avctx);",
"ff_init_scantable_permutatio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
... |
11,353 | static int filter_packet(void *log_ctx, AVPacket *pkt,
AVFormatContext *fmt_ctx, AVBitStreamFilterContext *bsf_ctx)
{
AVCodecContext *enc_ctx = fmt_ctx->streams[pkt->stream_index]->codec;
int ret = 0;
while (bsf_ctx) {
AVPacket new_pkt = *pkt;
ret = av_bitst... | false | FFmpeg | c363843a53553cbda6d42d98e8fbd165eda193fb | static int filter_packet(void *log_ctx, AVPacket *pkt,
AVFormatContext *fmt_ctx, AVBitStreamFilterContext *bsf_ctx)
{
AVCodecContext *enc_ctx = fmt_ctx->streams[pkt->stream_index]->codec;
int ret = 0;
while (bsf_ctx) {
AVPacket new_pkt = *pkt;
ret = av_bitst... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, AVPacket *VAR_1,
AVFormatContext *VAR_2, AVBitStreamFilterContext *VAR_3)
{
AVCodecContext *enc_ctx = VAR_2->streams[VAR_1->stream_index]->codec;
int VAR_4 = 0;
while (VAR_3) {
AVPacket new_pkt = *VAR_1;
VAR_4 = av_bitstream_fi... | [
"static int FUNC_0(void *VAR_0, AVPacket *VAR_1,\nAVFormatContext *VAR_2, AVBitStreamFilterContext *VAR_3)\n{",
"AVCodecContext *enc_ctx = VAR_2->streams[VAR_1->stream_index]->codec;",
"int VAR_4 = 0;",
"while (VAR_3) {",
"AVPacket new_pkt = *VAR_1;",
"VAR_4 = av_bitstream_filter_filter(VAR_3, enc_ctx, NU... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19,
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51
],
[... |
11,355 | static void nbd_client_close(NBDClient *client)
{
qemu_set_fd_handler2(client->sock, NULL, NULL, NULL, NULL);
close(client->sock);
client->sock = -1;
if (client->close) {
client->close(client);
}
nbd_client_put(client);
}
| true | qemu | ff2b68aa70d10b7eae813b04e9a23723dbd89ebd | static void nbd_client_close(NBDClient *client)
{
qemu_set_fd_handler2(client->sock, NULL, NULL, NULL, NULL);
close(client->sock);
client->sock = -1;
if (client->close) {
client->close(client);
}
nbd_client_put(client);
}
| {
"code": [
"static void nbd_client_close(NBDClient *client)",
" qemu_set_fd_handler2(client->sock, NULL, NULL, NULL, NULL);",
" close(client->sock);",
" client->sock = -1;",
" nbd_client_put(client);"
],
"line_no": [
1,
5,
7,
9,
17
]
} | static void FUNC_0(NBDClient *VAR_0)
{
qemu_set_fd_handler2(VAR_0->sock, NULL, NULL, NULL, NULL);
close(VAR_0->sock);
VAR_0->sock = -1;
if (VAR_0->close) {
VAR_0->close(VAR_0);
}
nbd_client_put(VAR_0);
}
| [
"static void FUNC_0(NBDClient *VAR_0)\n{",
"qemu_set_fd_handler2(VAR_0->sock, NULL, NULL, NULL, NULL);",
"close(VAR_0->sock);",
"VAR_0->sock = -1;",
"if (VAR_0->close) {",
"VAR_0->close(VAR_0);",
"}",
"nbd_client_put(VAR_0);",
"}"
] | [
1,
1,
1,
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
11,356 | int avio_close(AVIOContext *s)
{
AVIOInternal *internal;
URLContext *h;
if (!s)
return 0;
avio_flush(s);
internal = s->opaque;
h = internal->h;
av_opt_free(internal);
av_freep(&internal->protocols);
av_freep(&s->opaque);
av_freep(&s->buffer);
... | false | FFmpeg | 99684f3ae752fc8bfb44a2dd1482f8d7a3d8536d | int avio_close(AVIOContext *s)
{
AVIOInternal *internal;
URLContext *h;
if (!s)
return 0;
avio_flush(s);
internal = s->opaque;
h = internal->h;
av_opt_free(internal);
av_freep(&internal->protocols);
av_freep(&s->opaque);
av_freep(&s->buffer);
... | {
"code": [],
"line_no": []
} | int FUNC_0(AVIOContext *VAR_0)
{
AVIOInternal *internal;
URLContext *h;
if (!VAR_0)
return 0;
avio_flush(VAR_0);
internal = VAR_0->opaque;
h = internal->h;
av_opt_free(internal);
av_freep(&internal->protocols);
av_freep(&VAR_0->opaque);
av_freep... | [
"int FUNC_0(AVIOContext *VAR_0)\n{",
"AVIOInternal *internal;",
"URLContext *h;",
"if (!VAR_0)\nreturn 0;",
"avio_flush(VAR_0);",
"internal = VAR_0->opaque;",
"h = internal->h;",
"av_opt_free(internal);",
"av_freep(&internal->protocols);",
"av_freep(&VAR_0->opaque);",
"av_freep(&VAR_0->bu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
11,358 | int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx)
{
int i, ret = 0;
jclass last_clazz = NULL;
for (i = 0; jfields_mapping[i].name; i++) {
int mandatory = jfields_mapping[i].mandatory;
enum FFJniFieldType type = jfields_ma... | true | FFmpeg | 2f43897f657974d8f94d0d075eb67dac1147ddde | int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx)
{
int i, ret = 0;
jclass last_clazz = NULL;
for (i = 0; jfields_mapping[i].name; i++) {
int mandatory = jfields_mapping[i].mandatory;
enum FFJniFieldType type = jfields_ma... | {
"code": [],
"line_no": []
} | int FUNC_0(JNIEnv *VAR_0, void *VAR_1, const struct FFJniField *VAR_2, int VAR_3, void *VAR_4)
{
int VAR_5, VAR_6 = 0;
jclass last_clazz = NULL;
for (VAR_5 = 0; VAR_2[VAR_5].name; VAR_5++) {
int mandatory = VAR_2[VAR_5].mandatory;
enum FFJniFieldType type = VAR_2[VAR_5].type;
if (typ... | [
"int FUNC_0(JNIEnv *VAR_0, void *VAR_1, const struct FFJniField *VAR_2, int VAR_3, void *VAR_4)\n{",
"int VAR_5, VAR_6 = 0;",
"jclass last_clazz = NULL;",
"for (VAR_5 = 0; VAR_2[VAR_5].name; VAR_5++) {",
"int mandatory = VAR_2[VAR_5].mandatory;",
"enum FFJniFieldType type = VAR_2[VAR_5].type;",
"if (typ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14,
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
... |
11,360 | static int coroutine_fn bdrv_co_do_copy_on_readv(BdrvChild *child,
int64_t offset, unsigned int bytes, QEMUIOVector *qiov)
{
BlockDriverState *bs = child->bs;
/* Perform I/O through a temporary buffer so that users who scribble over
* their read buffer while the operation is in progress do n... | true | qemu | 1bf03e66fd03af46ff0f98dd04b6e28f432ac1e3 | static int coroutine_fn bdrv_co_do_copy_on_readv(BdrvChild *child,
int64_t offset, unsigned int bytes, QEMUIOVector *qiov)
{
BlockDriverState *bs = child->bs;
void *bounce_buffer;
BlockDriver *drv = bs->drv;
struct iovec iov;
QEMUIOVector bounce_qiov;
int64_t cl... | {
"code": [
" assert(child->perm & (BLK_PERM_WRITE_UNCHANGED | BLK_PERM_WRITE));"
],
"line_no": [
41
]
} | static int VAR_0 bdrv_co_do_copy_on_readv(BdrvChild *child,
int64_t offset, unsigned int bytes, QEMUIOVector *qiov)
{
BlockDriverState *bs = child->bs;
void *bounce_buffer;
BlockDriver *drv = bs->drv;
struct iovec iov;
QEMUIOVector bounce_qiov;
int64_t cluster_o... | [
"static int VAR_0 bdrv_co_do_copy_on_readv(BdrvChild *child,\nint64_t offset, unsigned int bytes, QEMUIOVector *qiov)\n{",
"BlockDriverState *bs = child->bs;",
"void *bounce_buffer;",
"BlockDriver *drv = bs->drv;",
"struct iovec iov;",
"QEMUIOVector bounce_qiov;",
"int64_t cluster_offset;",
"unsigned ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
51
],
[
55,
57
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71... |
11,362 | static int img_bench(int argc, char **argv)
{
int c, ret = 0;
const char *fmt = NULL, *filename;
bool quiet = false;
bool image_opts = false;
bool is_write = false;
int count = 75000;
int depth = 64;
int64_t offset = 0;
size_t bufsize = 4096;
int pattern = 0;
size... | true | qemu | c919297379e9980c2bcc4d2053addbc1fd6d762b | static int img_bench(int argc, char **argv)
{
int c, ret = 0;
const char *fmt = NULL, *filename;
bool quiet = false;
bool image_opts = false;
bool is_write = false;
int count = 75000;
int depth = 64;
int64_t offset = 0;
size_t bufsize = 4096;
int pattern = 0;
size... | {
"code": [
" case 'h':",
" c = getopt_long(argc, argv, \"hc:d:f:no:qs:S:t:w\", long_options, NULL);",
" case 'h':",
" case 'h':"
],
"line_no": [
77,
65,
77,
77
]
} | static int FUNC_0(int VAR_0, char **VAR_1)
{
int VAR_2, VAR_3 = 0;
const char *VAR_4 = NULL, *VAR_5;
bool quiet = false;
bool image_opts = false;
bool is_write = false;
int VAR_6 = 75000;
int VAR_7 = 64;
int64_t offset = 0;
size_t bufsize = 4096;
int VAR_8 = 0;
si... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"const char *VAR_4 = NULL, *VAR_5;",
"bool quiet = false;",
"bool image_opts = false;",
"bool is_write = false;",
"int VAR_6 = 75000;",
"int VAR_7 = 64;",
"int64_t offset = 0;",
"size_t bufsize = 4096;",
"int VAR_8 = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
11,363 | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
Error **errp)
{
gchar *full_type;
full_type = g_strdup_printf("link<%s>", type);
object_property_add(obj, name, full_type,
... | true | qemu | 9561fda8d90e176bef598ba87c42a1bd6ad03ef7 | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
Error **errp)
{
gchar *full_type;
full_type = g_strdup_printf("link<%s>", type);
object_property_add(obj, name, full_type,
... | {
"code": [
" NULL, child, errp);"
],
"line_no": [
23
]
} | void FUNC_0(Object *VAR_0, const char *VAR_1,
const char *VAR_2, Object **VAR_3,
Error **VAR_4)
{
gchar *full_type;
full_type = g_strdup_printf("link<%s>", VAR_2);
object_property_add(VAR_0, VAR_1, full_type,
obje... | [
"void FUNC_0(Object *VAR_0, const char *VAR_1,\nconst char *VAR_2, Object **VAR_3,\nError **VAR_4)\n{",
"gchar *full_type;",
"full_type = g_strdup_printf(\"link<%s>\", VAR_2);",
"object_property_add(VAR_0, VAR_1, full_type,\nobject_get_link_property,\nobject_set_link_property,\nNULL, VAR_3, VAR_4);",
"g_fre... | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17,
19,
21,
23
],
[
27
],
[
29
]
] |
11,364 | static void process_event(JSONMessageParser *parser, QList *tokens)
{
GAState *s = container_of(parser, GAState, parser);
QObject *obj;
QDict *qdict;
Error *err = NULL;
int ret;
g_assert(s && parser);
g_debug("process_event: called");
obj = json_parser_parse_err(tokens, NULL... | true | qemu | 89cad9f3ec6b30d7550fb5704475fc9c3393a066 | static void process_event(JSONMessageParser *parser, QList *tokens)
{
GAState *s = container_of(parser, GAState, parser);
QObject *obj;
QDict *qdict;
Error *err = NULL;
int ret;
g_assert(s && parser);
g_debug("process_event: called");
obj = json_parser_parse_err(tokens, NULL... | {
"code": [
" QObject *obj;",
" obj = json_parser_parse_err(tokens, NULL, &err);",
" if (err || !obj || qobject_type(obj) != QTYPE_QDICT) {",
" qobject_decref(obj);",
" } else {",
" qdict = qobject_to_qdict(obj);",
" g_assert(qdict);"
],
"line_no": [
7,... | static void FUNC_0(JSONMessageParser *VAR_0, QList *VAR_1)
{
GAState *s = container_of(VAR_0, GAState, VAR_0);
QObject *obj;
QDict *qdict;
Error *err = NULL;
int VAR_2;
g_assert(s && VAR_0);
g_debug("FUNC_0: called");
obj = json_parser_parse_err(VAR_1, NULL, &err);
if (... | [
"static void FUNC_0(JSONMessageParser *VAR_0, QList *VAR_1)\n{",
"GAState *s = container_of(VAR_0, GAState, VAR_0);",
"QObject *obj;",
"QDict *qdict;",
"Error *err = NULL;",
"int VAR_2;",
"g_assert(s && VAR_0);",
"g_debug(\"FUNC_0: called\");",
"obj = json_parser_parse_err(VAR_1, NULL, &err);",
"i... | [
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
11,365 | static inline void RENAME(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
{
uint8_t *dest = dst;
const uint8_t *s = src;
const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*s):"memory");
mm_end = end - 31;
while (s... | true | FFmpeg | 90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b | static inline void RENAME(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
{
uint8_t *dest = dst;
const uint8_t *s = src;
const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*s):"memory");
mm_end = end - 31;
while (s... | {
"code": [
" PREFETCH\" 32%1 \\n\\t\"",
" :\"=m\"(*dest)",
" :\"m\"(*s)",
" PREFETCH\" 32%1 \\n\\t\"",
" \"movq %1, %%mm0 \\n\\t\"",
" \"movq 8%1, %%mm1 \\n\\t\"",
" ... | static inline void FUNC_0(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
{
uint8_t *dest = dst;
const uint8_t *VAR_0 = src;
const uint8_t *VAR_1;
const uint8_t *VAR_2;
VAR_1 = VAR_0 + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*VAR_0):"memory");
VAR_2 = VAR_1 - 3... | [
"static inline void FUNC_0(rgb32tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)\n{",
"uint8_t *dest = dst;",
"const uint8_t *VAR_0 = src;",
"const uint8_t *VAR_1;",
"const uint8_t *VAR_2;",
"VAR_1 = VAR_0 + src_size;",
"__asm__ volatile(PREFETCH\" %0\"::\"m\"(*VAR_0):\"memory\");",
"VAR_2 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49
],
[
51
],
[
53
],
[... |
11,366 | static void slice_thread_park_workers(ThreadContext *c)
{
pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);
pthread_mutex_unlock(&c->current_job_lock);
}
| true | FFmpeg | 3511d4fc9784d5fbb024dce68ca7a0d7fdd74663 | static void slice_thread_park_workers(ThreadContext *c)
{
pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);
pthread_mutex_unlock(&c->current_job_lock);
}
| {
"code": [
" pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);"
],
"line_no": [
5
]
} | static void FUNC_0(ThreadContext *VAR_0)
{
pthread_cond_wait(&VAR_0->last_job_cond, &VAR_0->current_job_lock);
pthread_mutex_unlock(&VAR_0->current_job_lock);
}
| [
"static void FUNC_0(ThreadContext *VAR_0)\n{",
"pthread_cond_wait(&VAR_0->last_job_cond, &VAR_0->current_job_lock);",
"pthread_mutex_unlock(&VAR_0->current_job_lock);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,367 | static av_cold int ljpeg_encode_init(AVCodecContext *avctx)
{
LJpegEncContext *s = avctx->priv_data;
int chroma_v_shift, chroma_h_shift;
if ((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
avctx->pix_fmt == AV_PIX_FMT_YUV444P) &&
avctx->str... | false | FFmpeg | bf0d7da7cbbf869605086c2a47cdf87f0a533e24 | static av_cold int ljpeg_encode_init(AVCodecContext *avctx)
{
LJpegEncContext *s = avctx->priv_data;
int chroma_v_shift, chroma_h_shift;
if ((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
avctx->pix_fmt == AV_PIX_FMT_YUV444P) &&
avctx->str... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
LJpegEncContext *s = avctx->priv_data;
int VAR_0, VAR_1;
if ((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
avctx->pix_fmt == AV_PIX_FMT_YUV444P) &&
avctx->strict_std_compliance > FF_COMPL... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"LJpegEncContext *s = avctx->priv_data;",
"int VAR_0, VAR_1;",
"if ((avctx->pix_fmt == AV_PIX_FMT_YUV420P ||\navctx->pix_fmt == AV_PIX_FMT_YUV422P ||\navctx->pix_fmt == AV_PIX_FMT_YUV444P) &&\navctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17
],
[
19,
21,
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
],
[
55,
57
],
[
61
],
... |
11,369 | static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus,
const char *name, int devfn,
Error **errp)
{
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
PCIConfigReadFunc *config_read = pc->config_read;
... | true | qemu | 4a94b3aa6d97dfa67a20c7a0315c9773352f0e8e | static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus,
const char *name, int devfn,
Error **errp)
{
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
PCIConfigReadFunc *config_read = pc->config_read;
... | {
"code": [],
"line_no": []
} | static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,
const char *name, int devfn,
Error **errp)
{
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
PCIConfigReadFunc *config_read = pc->config_read;
PCIConfigWriteF... | [
"static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,\nconst char *name, int devfn,\nError **errp)\n{",
"PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);",
"PCIConfigReadFunc *config_read = pc->config_read;",
"PCIConfigWriteFunc *config_write = pc->config_write;",
"Error *local_err = NULL;",
"Addr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[... |
11,370 | static void multiwrite_cb(void *opaque, int ret)
{
MultiwriteCB *mcb = opaque;
if (ret < 0) {
mcb->error = ret;
multiwrite_user_cb(mcb);
}
mcb->num_requests--;
if (mcb->num_requests == 0) {
if (mcb->error == 0) {
multiwrite_user_cb(mcb);
}
... | true | qemu | cb6d3ca07b8f62b47ef30c6a92caa3e8bd71248b | static void multiwrite_cb(void *opaque, int ret)
{
MultiwriteCB *mcb = opaque;
if (ret < 0) {
mcb->error = ret;
multiwrite_user_cb(mcb);
}
mcb->num_requests--;
if (mcb->num_requests == 0) {
if (mcb->error == 0) {
multiwrite_user_cb(mcb);
}
... | {
"code": [
" if (ret < 0) {"
],
"line_no": [
9
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
MultiwriteCB *mcb = VAR_0;
if (VAR_1 < 0) {
mcb->error = VAR_1;
multiwrite_user_cb(mcb);
}
mcb->num_requests--;
if (mcb->num_requests == 0) {
if (mcb->error == 0) {
multiwrite_user_cb(mcb);
}
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"MultiwriteCB *mcb = VAR_0;",
"if (VAR_1 < 0) {",
"mcb->error = VAR_1;",
"multiwrite_user_cb(mcb);",
"}",
"mcb->num_requests--;",
"if (mcb->num_requests == 0) {",
"if (mcb->error == 0) {",
"multiwrite_user_cb(mcb);",
"}",
"qemu_free(mcb);",
"}... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
11,371 | qemu_irq *pl190_init(uint32_t base, qemu_irq irq, qemu_irq fiq)
{
pl190_state *s;
qemu_irq *qi;
int iomemtype;
s = (pl190_state *)qemu_mallocz(sizeof(pl190_state));
iomemtype = cpu_register_io_memory(0, pl190_readfn,
pl190_writefn, s);
cpu_registe... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | qemu_irq *pl190_init(uint32_t base, qemu_irq irq, qemu_irq fiq)
{
pl190_state *s;
qemu_irq *qi;
int iomemtype;
s = (pl190_state *)qemu_mallocz(sizeof(pl190_state));
iomemtype = cpu_register_io_memory(0, pl190_readfn,
pl190_writefn, s);
cpu_registe... | {
"code": [
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_phys... | qemu_irq *FUNC_0(uint32_t base, qemu_irq irq, qemu_irq fiq)
{
pl190_state *s;
qemu_irq *qi;
int VAR_0;
s = (pl190_state *)qemu_mallocz(sizeof(pl190_state));
VAR_0 = cpu_register_io_memory(0, pl190_readfn,
pl190_writefn, s);
cpu_register_physical_m... | [
"qemu_irq *FUNC_0(uint32_t base, qemu_irq irq, qemu_irq fiq)\n{",
"pl190_state *s;",
"qemu_irq *qi;",
"int VAR_0;",
"s = (pl190_state *)qemu_mallocz(sizeof(pl190_state));",
"VAR_0 = cpu_register_io_memory(0, pl190_readfn,\npl190_writefn, s);",
"cpu_register_physical_memory(base, 0x00000fff, VAR_0);",
... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
11,372 | static void pci_reg_write4(void *opaque, target_phys_addr_t addr,
uint32_t value)
{
PPCE500PCIState *pci = opaque;
unsigned long win;
win = addr & 0xfe0;
pci_debug("%s: value:%x -> win:%lx(addr:" TARGET_FMT_plx ")\n",
__func__, value, win, addr);
... | true | qemu | eeae2e7b52255dae0976a027b6e11274990c708d | static void pci_reg_write4(void *opaque, target_phys_addr_t addr,
uint32_t value)
{
PPCE500PCIState *pci = opaque;
unsigned long win;
win = addr & 0xfe0;
pci_debug("%s: value:%x -> win:%lx(addr:" TARGET_FMT_plx ")\n",
__func__, value, win, addr);
... | {
"code": [
" pci->pob[(addr >> 5) & 0x7].potar = value;",
" pci->pob[(addr >> 5) & 0x7].potear = value;",
" pci->pob[(addr >> 5) & 0x7].powbar = value;",
" pci->pob[(addr >> 5) & 0x7].powar = value;",
" pci->pib[(addr >> 5) & 0x3].pitar = val... | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{
PPCE500PCIState *pci = VAR_0;
unsigned long VAR_3;
VAR_3 = VAR_1 & 0xfe0;
pci_debug("%s: VAR_2:%x -> VAR_3:%lx(VAR_1:" TARGET_FMT_plx ")\n",
__func__, VAR_2, VAR_3, VAR_1);... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{",
"PPCE500PCIState *pci = VAR_0;",
"unsigned long VAR_3;",
"VAR_3 = VAR_1 & 0xfe0;",
"pci_debug(\"%s: VAR_2:%x -> VAR_3:%lx(VAR_1:\" TARGET_FMT_plx \")\\n\",\n__func__, VAR_2, VAR_3, VAR_1);",
"switch (VAR_3) {",
"case PPCE50... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27,
29,
31,
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51
],
[
53,
55
],
[
57
... |
11,374 | static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
uint64_t pictx, bool bsr)
{
XHCISlot *slot;
USBPort *uport;
USBDevice *dev;
dma_addr_t ictx, octx, dcbaap;
uint64_t poctx;
uint32_t ictl_ctx[2];
uint32_t slot_ctx[4];
uint3... | true | qemu | de9de157fbb9aa66380ab1973dd6ecf12fbd8b25 | static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
uint64_t pictx, bool bsr)
{
XHCISlot *slot;
USBPort *uport;
USBDevice *dev;
dma_addr_t ictx, octx, dcbaap;
uint64_t poctx;
uint32_t ictl_ctx[2];
uint32_t slot_ctx[4];
uint3... | {
"code": [
" if (!dev) {"
],
"line_no": [
99
]
} | static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,
uint64_t pictx, bool bsr)
{
XHCISlot *slot;
USBPort *uport;
USBDevice *dev;
dma_addr_t ictx, octx, dcbaap;
uint64_t poctx;
uint32_t ictl_ctx[2];
uint32_t slot_ctx[4];
uint32_t ep0_ctx... | [
"static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,\nuint64_t pictx, bool bsr)\n{",
"XHCISlot *slot;",
"USBPort *uport;",
"USBDevice *dev;",
"dma_addr_t ictx, octx, dcbaap;",
"uint64_t poctx;",
"uint32_t ictl_ctx[2];",
"uint32_t slot_ctx[4];",
"uint32_t ep0_ctx[5];",
"int VAR_0;",
"TRB... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[... |
11,375 | static void encode_frame(MpegAudioContext *s,
unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT],
int padding)
{
int i, j, k, l, bit_alloc_bits, b, ch;
unsigned char *sf;
int q[3];
PutBitContext *p = &s->pb;
/* header */
put_bits(p, ... | true | FFmpeg | c6902f96d75b9786ddc1404c14349d6a22b7ed05 | static void encode_frame(MpegAudioContext *s,
unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT],
int padding)
{
int i, j, k, l, bit_alloc_bits, b, ch;
unsigned char *sf;
int q[3];
PutBitContext *p = &s->pb;
put_bits(p, 12, 0xfff);
... | {
"code": [
" q[m] = (unsigned)(q1 * steps) >> (P + 1);"
],
"line_no": [
213
]
} | static void FUNC_0(MpegAudioContext *VAR_0,
unsigned char VAR_1[MPA_MAX_CHANNELS][SBLIMIT],
int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
unsigned char *VAR_10;
int VAR_11[3];
PutBitContext *p = &VAR_0->pb;
put_b... | [
"static void FUNC_0(MpegAudioContext *VAR_0,\nunsigned char VAR_1[MPA_MAX_CHANNELS][SBLIMIT],\nint VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"unsigned char *VAR_10;",
"int VAR_11[3];",
"PutBitContext *p = &VAR_0->pb;",
"put_bits(p, 12, 0xfff);",
"put_bits(p, 1, 1 - VAR_0->lsf);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
53
... |
11,376 | static int quantize_coefs(double *coef, int *idx, float *lpc, int order)
{
int i;
uint8_t u_coef;
const float *quant_arr = tns_tmp2_map[TNS_Q_BITS == 4];
const double iqfac_p = ((1 << (TNS_Q_BITS-1)) - 0.5)/(M_PI/2.0);
const double iqfac_m = ((1 << (TNS_Q_BITS-1)) + 0.5)/(M_PI/2.0);
for (... | false | FFmpeg | e3faad811e429002d549562db4e0fc30c08dc6a4 | static int quantize_coefs(double *coef, int *idx, float *lpc, int order)
{
int i;
uint8_t u_coef;
const float *quant_arr = tns_tmp2_map[TNS_Q_BITS == 4];
const double iqfac_p = ((1 << (TNS_Q_BITS-1)) - 0.5)/(M_PI/2.0);
const double iqfac_m = ((1 << (TNS_Q_BITS-1)) + 0.5)/(M_PI/2.0);
for (... | {
"code": [],
"line_no": []
} | static int FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3)
{
int VAR_4;
uint8_t u_coef;
const float *VAR_5 = tns_tmp2_map[TNS_Q_BITS == 4];
const double VAR_6 = ((1 << (TNS_Q_BITS-1)) - 0.5)/(M_PI/2.0);
const double VAR_7 = ((1 << (TNS_Q_BITS-1)) + 0.5)/(M_PI/2.0);
for (VAR_4 =... | [
"static int FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3)\n{",
"int VAR_4;",
"uint8_t u_coef;",
"const float *VAR_5 = tns_tmp2_map[TNS_Q_BITS == 4];",
"const double VAR_6 = ((1 << (TNS_Q_BITS-1)) - 0.5)/(M_PI/2.0);",
"const double VAR_7 = ((1 << (TNS_Q_BITS-1)) + 0.5)/(M_PI/2.0);",
"for (VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
11,377 | static int get_int16(QEMUFile *f, void *pv, size_t size)
{
int16_t *v = pv;
qemu_get_sbe16s(f, v);
return 0;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_int16(QEMUFile *f, void *pv, size_t size)
{
int16_t *v = pv;
qemu_get_sbe16s(f, v);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
int16_t *v = VAR_1;
qemu_get_sbe16s(VAR_0, v);
return 0;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"int16_t *v = VAR_1;",
"qemu_get_sbe16s(VAR_0, v);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
11,378 | static void compress_to_network(RDMACompress *comp)
{
comp->value = htonl(comp->value);
comp->block_idx = htonl(comp->block_idx);
comp->offset = htonll(comp->offset);
comp->length = htonll(comp->length);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void compress_to_network(RDMACompress *comp)
{
comp->value = htonl(comp->value);
comp->block_idx = htonl(comp->block_idx);
comp->offset = htonll(comp->offset);
comp->length = htonll(comp->length);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(RDMACompress *VAR_0)
{
VAR_0->value = htonl(VAR_0->value);
VAR_0->block_idx = htonl(VAR_0->block_idx);
VAR_0->offset = htonll(VAR_0->offset);
VAR_0->length = htonll(VAR_0->length);
}
| [
"static void FUNC_0(RDMACompress *VAR_0)\n{",
"VAR_0->value = htonl(VAR_0->value);",
"VAR_0->block_idx = htonl(VAR_0->block_idx);",
"VAR_0->offset = htonll(VAR_0->offset);",
"VAR_0->length = htonll(VAR_0->length);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
11,379 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
{
graph->filters = av_realloc(graph->filters,
sizeof(AVFilterContext*) * ++graph->filter_count);
if (!graph->filters)
return AVERROR(ENOMEM);
graph->filters[graph->filter_count - 1]... | true | FFmpeg | 3748b2b8e8bcedba2de7fe826c4094169a885840 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
{
graph->filters = av_realloc(graph->filters,
sizeof(AVFilterContext*) * ++graph->filter_count);
if (!graph->filters)
return AVERROR(ENOMEM);
graph->filters[graph->filter_count - 1]... | {
"code": [
" graph->filters = av_realloc(graph->filters,",
" sizeof(AVFilterContext*) * ++graph->filter_count);",
" if (!graph->filters)",
" graph->filters[graph->filter_count - 1] = filter;"
],
"line_no": [
5,
7,
11,
17
]
} | int FUNC_0(AVFilterGraph *VAR_0, AVFilterContext *VAR_1)
{
VAR_0->filters = av_realloc(VAR_0->filters,
sizeof(AVFilterContext*) * ++VAR_0->filter_count);
if (!VAR_0->filters)
return AVERROR(ENOMEM);
VAR_0->filters[VAR_0->filter_count - 1] = VAR_1;
ret... | [
"int FUNC_0(AVFilterGraph *VAR_0, AVFilterContext *VAR_1)\n{",
"VAR_0->filters = av_realloc(VAR_0->filters,\nsizeof(AVFilterContext*) * ++VAR_0->filter_count);",
"if (!VAR_0->filters)\nreturn AVERROR(ENOMEM);",
"VAR_0->filters[VAR_0->filter_count - 1] = VAR_1;",
"return 0;",
"}"
] | [
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11,
13
],
[
17
],
[
21
],
[
23
]
] |
11,380 | av_cold int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc = &s->rc_context;
int i, res;
static const char * const const_names[] = {
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
"mcVar",
... | true | FFmpeg | 0898a6d4e4b669704fce663f610aa43dd7483fe9 | av_cold int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc = &s->rc_context;
int i, res;
static const char * const const_names[] = {
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
"mcVar",
... | {
"code": [],
"line_no": []
} | VAR_5av_coldVAR_5 VAR_5intVAR_5 VAR_5ff_rate_control_initVAR_5(VAR_5MpegEncContextVAR_5 *VAR_5sVAR_5)
{
VAR_5RateControlContextVAR_5 *VAR_5rccVAR_5 = &VAR_5sVAR_5->VAR_5rc_contextVAR_5;
VAR_5intVAR_5 VAR_5VAR_6VAR_5, VAR_5VAR_1VAR_5;
VAR_5staticVAR_5 VAR_5constVAR_5 VAR_5charVAR_5 * VAR_5constVAR_5 VAR_... | [
"VAR_5av_coldVAR_5 VAR_5intVAR_5 VAR_5ff_rate_control_initVAR_5(VAR_5MpegEncContextVAR_5 *VAR_5sVAR_5)\n{",
"VAR_5RateControlContextVAR_5 *VAR_5rccVAR_5 = &VAR_5sVAR_5->VAR_5rc_contextVAR_5;",
"VAR_5intVAR_5 VAR_5VAR_6VAR_5, VAR_5VAR_1VAR_5;",
"VAR_5staticVAR_5 VAR_5constVAR_5 VAR_5charVAR_5 * VAR_5constVAR_5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65
],
[
67
],
[... |
11,382 | void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,
TraceEvent *ev, bool state)
{
TraceEventVCPUID vcpu_id;
bool state_pre;
assert(trace_event_get_state_static(ev));
assert(trace_event_is_vcpu(ev));
vcpu_id = trace_event_get_vcpu_id(ev);
state_... | true | qemu | ef4c9fc8542e06b1d567172c04b0c0377c7ab0c5 | void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,
TraceEvent *ev, bool state)
{
TraceEventVCPUID vcpu_id;
bool state_pre;
assert(trace_event_get_state_static(ev));
assert(trace_event_is_vcpu(ev));
vcpu_id = trace_event_get_vcpu_id(ev);
state_... | {
"code": [
" TraceEventVCPUID vcpu_id;"
],
"line_no": [
7
]
} | void FUNC_0(CPUState *VAR_0,
TraceEvent *VAR_1, bool VAR_2)
{
TraceEventVCPUID vcpu_id;
bool state_pre;
assert(trace_event_get_state_static(VAR_1));
assert(trace_event_is_vcpu(VAR_1));
vcpu_id = trace_event_get_vcpu_id(VAR_1);
state_pre = test_bit(... | [
"void FUNC_0(CPUState *VAR_0,\nTraceEvent *VAR_1, bool VAR_2)\n{",
"TraceEventVCPUID vcpu_id;",
"bool state_pre;",
"assert(trace_event_get_state_static(VAR_1));",
"assert(trace_event_is_vcpu(VAR_1));",
"vcpu_id = trace_event_get_vcpu_id(VAR_1);",
"state_pre = test_bit(vcpu_id, VAR_0->trace_dstate);",
... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
11,385 | static void vmsvga_value_write(void *opaque, uint32_t address, uint32_t value)
{
struct vmsvga_state_s *s = opaque;
if (s->index >= SVGA_SCRATCH_BASE) {
trace_vmware_scratch_write(s->index, value);
} else if (s->index >= SVGA_PALETTE_BASE) {
trace_vmware_palette_write(s->index, value... | true | qemu | 521360267876d3b6518b328051a2e56bca55bef8 | static void vmsvga_value_write(void *opaque, uint32_t address, uint32_t value)
{
struct vmsvga_state_s *s = opaque;
if (s->index >= SVGA_SCRATCH_BASE) {
trace_vmware_scratch_write(s->index, value);
} else if (s->index >= SVGA_PALETTE_BASE) {
trace_vmware_palette_write(s->index, value... | {
"code": [
" if ((CMD(min) | CMD(max) | CMD(next_cmd) | CMD(stop)) & 3) {",
" break;",
" if (CMD(min) < (uint8_t *) s->cmd->fifo - (uint8_t *) s->fifo) {",
" break;",
" if (CMD(max) > SVGA_FIFO_SIZE) {",
" break;",
... | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
struct vmsvga_state_s *VAR_3 = VAR_0;
if (VAR_3->index >= SVGA_SCRATCH_BASE) {
trace_vmware_scratch_write(VAR_3->index, VAR_2);
} else if (VAR_3->index >= SVGA_PALETTE_BASE) {
trace_vmware_palette_write(VAR_3->index, V... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"struct vmsvga_state_s *VAR_3 = VAR_0;",
"if (VAR_3->index >= SVGA_SCRATCH_BASE) {",
"trace_vmware_scratch_write(VAR_3->index, VAR_2);",
"} else if (VAR_3->index >= SVGA_PALETTE_BASE) {",
"trace_vmware_palette_write(VAR_3->index, VAR_2)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47... |
11,386 | int main (int argc, char **argv)
{
int ret = 0, got_frame;
if (argc != 4) {
fprintf(stderr, "usage: %s input_file video_output_file audio_output_file\n"
"API example program to show how to read frames from an input file.\n"
"This program reads frames from a file, ... | true | FFmpeg | e7a39e163ddbde85f966132194143d0338445a0c | int main (int argc, char **argv)
{
int ret = 0, got_frame;
if (argc != 4) {
fprintf(stderr, "usage: %s input_file video_output_file audio_output_file\n"
"API example program to show how to read frames from an input file.\n"
"This program reads frames from a file, ... | {
"code": [
" while (av_read_frame(fmt_ctx, &pkt) >= 0)"
],
"line_no": [
207
]
} | int FUNC_0 (int VAR_0, char **VAR_1)
{
int VAR_2 = 0, VAR_3;
if (VAR_0 != 4) {
fprintf(stderr, "usage: %s input_file video_output_file audio_output_file\n"
"API example program to show how to read frames from an input file.\n"
"This program reads frames from a fil... | [
"int FUNC_0 (int VAR_0, char **VAR_1)\n{",
"int VAR_2 = 0, VAR_3;",
"if (VAR_0 != 4) {",
"fprintf(stderr, \"usage: %s input_file video_output_file audio_output_file\\n\"\n\"API example program to show how to read frames from an input file.\\n\"\n\"This program reads frames from a file, decodes them, and write... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59
],
... |
11,387 | static av_cold int truemotion1_decode_init(AVCodecContext *avctx)
{
TrueMotion1Context *s = avctx->priv_data;
s->avctx = avctx;
// FIXME: it may change ?
// if (avctx->bits_per_sample == 24)
// avctx->pix_fmt = AV_PIX_FMT_RGB24;
// else
// avctx->pix_fmt = AV_PIX_FMT_RGB555;
... | false | FFmpeg | 3b199d29cd597a3518136d78860e172060b9e83d | static av_cold int truemotion1_decode_init(AVCodecContext *avctx)
{
TrueMotion1Context *s = avctx->priv_data;
s->avctx = avctx;
s->frame.data[0] = NULL;
av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
TrueMotion1Context *s = avctx->priv_data;
s->avctx = avctx;
s->frame.data[0] = NULL;
av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"TrueMotion1Context *s = avctx->priv_data;",
"s->avctx = avctx;",
"s->frame.data[0] = NULL;",
"av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
25
],
[
33
],
[
37
],
[
39
]
] |
11,389 | static int h264_export_frame_props(H264Context *h)
{
const SPS *sps = h->ps.sps;
H264Picture *cur = h->cur_pic_ptr;
cur->f->interlaced_frame = 0;
cur->f->repeat_pict = 0;
/* Signal interlacing information externally. */
/* Prioritize picture timing SEI information over used
... | false | FFmpeg | d7b2bb5391bf55e8f9421bff7feb4c1fddfac4bf | static int h264_export_frame_props(H264Context *h)
{
const SPS *sps = h->ps.sps;
H264Picture *cur = h->cur_pic_ptr;
cur->f->interlaced_frame = 0;
cur->f->repeat_pict = 0;
if (sps->pic_struct_present_flag) {
H264SEIPictureTiming *pt = &h->sei.picture_timing;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0)
{
const SPS *VAR_1 = VAR_0->ps.VAR_1;
H264Picture *cur = VAR_0->cur_pic_ptr;
cur->f->interlaced_frame = 0;
cur->f->repeat_pict = 0;
if (VAR_1->pic_struct_present_flag) {
H264SEIPictureTiming *pt = &VAR_0->sei.picture_timin... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"const SPS *VAR_1 = VAR_0->ps.VAR_1;",
"H264Picture *cur = VAR_0->cur_pic_ptr;",
"cur->f->interlaced_frame = 0;",
"cur->f->repeat_pict = 0;",
"if (VAR_1->pic_struct_present_flag) {",
"H264SEIPictureTiming *pt = &VAR_0->sei.picture_timing;",
"switch (pt-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35,
37,
39
],
[
41
],
[
43,
45,
47,
49
],
[
51,
55
],
[
57
],
[
59,
61,
69
],
... |
11,390 | static int colo_packet_compare_icmp(Packet *spkt, Packet *ppkt)
{
int network_header_length = ppkt->ip->ip_hl * 4;
trace_colo_compare_main("compare icmp");
/*
* Because of ppkt and spkt are both in the same connection,
* The ppkt's src ip, dst ip, src port, dst port, ip_proto all are
... | true | qemu | d87aa138039a4be6d705793fd3e397c69c52405a | static int colo_packet_compare_icmp(Packet *spkt, Packet *ppkt)
{
int network_header_length = ppkt->ip->ip_hl * 4;
trace_colo_compare_main("compare icmp");
if (colo_packet_compare_common(ppkt, spkt,
network_header_length + ETH_HLEN)) {
... | {
"code": [
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {",
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {"
],
"line_no": [
45,
45
]
} | static int FUNC_0(Packet *VAR_0, Packet *VAR_1)
{
int VAR_2 = VAR_1->ip->ip_hl * 4;
trace_colo_compare_main("compare icmp");
if (colo_packet_compare_common(VAR_1, VAR_0,
VAR_2 + ETH_HLEN)) {
trace_colo_compare_icmp_miscompare("prim... | [
"static int FUNC_0(Packet *VAR_0, Packet *VAR_1)\n{",
"int VAR_2 = VAR_1->ip->ip_hl * 4;",
"trace_colo_compare_main(\"compare icmp\");",
"if (colo_packet_compare_common(VAR_1, VAR_0,\nVAR_2 + ETH_HLEN)) {",
"trace_colo_compare_icmp_miscompare(\"primary pkt size\",\nVAR_1->size);",
"trace_colo_compare_icmp... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
]
] |
11,391 | static int caca_write_header(AVFormatContext *s)
{
CACAContext *c = s->priv_data;
AVStream *st = s->streams[0];
AVCodecContext *encctx = st->codec;
int ret, bpp;
c->ctx = s;
if (c->list_drivers) {
list_drivers(c);
return AVERROR_EXIT;
}
if (c->list_dither) {
... | true | FFmpeg | c0b91348fe4aec7d2245d95ccabb460a6971e361 | static int caca_write_header(AVFormatContext *s)
{
CACAContext *c = s->priv_data;
AVStream *st = s->streams[0];
AVCodecContext *encctx = st->codec;
int ret, bpp;
c->ctx = s;
if (c->list_drivers) {
list_drivers(c);
return AVERROR_EXIT;
}
if (c->list_dither) {
... | {
"code": [
" return AVERROR(errno);",
" c->display = caca_create_display_with_driver(c->canvas, c->driver);",
" if (!c->display) {",
" av_log(s, AV_LOG_ERROR, \"Failed to create display\\n\");",
" list_drivers(c);",
" caca_free_canvas(c->canvas);",
" ... | static int FUNC_0(AVFormatContext *VAR_0)
{
CACAContext *c = VAR_0->priv_data;
AVStream *st = VAR_0->streams[0];
AVCodecContext *encctx = st->codec;
int VAR_1, VAR_2;
c->ctx = VAR_0;
if (c->list_drivers) {
list_drivers(c);
return AVERROR_EXIT;
}
if (c->list_d... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"CACAContext *c = VAR_0->priv_data;",
"AVStream *st = VAR_0->streams[0];",
"AVCodecContext *encctx = st->codec;",
"int VAR_1, VAR_2;",
"c->ctx = VAR_0;",
"if (c->list_drivers) {",
"list_drivers(c);",
"return AVERROR_EXIT;",
"}",
"if (c->list_dither... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
11,392 | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment)
{
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries))) |... | true | FFmpeg | 900f39692ca0337a98a7cf047e4e2611071810c2 | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment)
{
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries))) |... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MXFIndexTableSegment *VAR_1)
{
int VAR_2, VAR_3;
VAR_1->nb_index_entries = avio_rb32(VAR_0);
VAR_3 = avio_rb32(VAR_0);
if (!(VAR_1->temporal_offset_entries=av_calloc(VAR_1->nb_index_entries, sizeof(*VAR_1->temporal_offset_entries))) ||
!(VAR_1-... | [
"static int FUNC_0(AVIOContext *VAR_0, MXFIndexTableSegment *VAR_1)\n{",
"int VAR_2, VAR_3;",
"VAR_1->nb_index_entries = avio_rb32(VAR_0);",
"VAR_3 = avio_rb32(VAR_0);",
"if (!(VAR_1->temporal_offset_entries=av_calloc(VAR_1->nb_index_entries, sizeof(*VAR_1->temporal_offset_entries))) ||\n!(VAR_1->flag_entri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
19,
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
40
],
[
42
],
[
44
],
[
46
],
[
48
],
[
50
],
[
52
],
[
54
]
] |
11,393 | uint64_t hbitmap_serialization_granularity(const HBitmap *hb)
{
/* Must hold true so that the shift below is defined
* (ld(64) == 6, i.e. 1 << 6 == 64) */
assert(hb->granularity < 64 - 6);
/* Require at least 64 bit granularity to be safe on both 64 bit and 32 bit
* hosts. */
return U... | true | qemu | 20a579de8484096d18e65751ebe63fee31551f04 | uint64_t hbitmap_serialization_granularity(const HBitmap *hb)
{
assert(hb->granularity < 64 - 6);
return UINT64_C(64) << hb->granularity;
}
| {
"code": [
" assert(hb->granularity < 64 - 6);"
],
"line_no": [
9
]
} | uint64_t FUNC_0(const HBitmap *hb)
{
assert(hb->granularity < 64 - 6);
return UINT64_C(64) << hb->granularity;
}
| [
"uint64_t FUNC_0(const HBitmap *hb)\n{",
"assert(hb->granularity < 64 - 6);",
"return UINT64_C(64) << hb->granularity;",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
9
],
[
17
],
[
19
]
] |
11,394 | void helper_store_sdr1(CPUPPCState *env, target_ulong val)
{
ppc_store_sdr1(env, val);
}
| true | qemu | f3c75d42adbba553eaf218a832d4fbea32c8f7b8 | void helper_store_sdr1(CPUPPCState *env, target_ulong val)
{
ppc_store_sdr1(env, val);
}
| {
"code": [
" ppc_store_sdr1(env, val);"
],
"line_no": [
5
]
} | void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)
{
ppc_store_sdr1(VAR_0, VAR_1);
}
| [
"void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)\n{",
"ppc_store_sdr1(VAR_0, VAR_1);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,395 | static int vp7_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int part1_size, hscale, vscale, i, j, ret;
int width = s->avctx->width;
int height = s->avctx->height;
s->profile = (buf[0] >> 1) & 7;
if (s->profile > 1) {
avpriv_... | false | FFmpeg | 29234f56818135faf2f1868ab324c073abd28fbd | static int vp7_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int part1_size, hscale, vscale, i, j, ret;
int width = s->avctx->width;
int height = s->avctx->height;
s->profile = (buf[0] >> 1) & 7;
if (s->profile > 1) {
avpriv_... | {
"code": [],
"line_no": []
} | static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
VP56RangeCoder *c = &VAR_0->c;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9 = VAR_0->avctx->VAR_9;
int VAR_10 = VAR_0->avctx->VAR_10;
VAR_0->profile = (VAR_1[0] >> 1) & 7;
if (VAR_0->profile > 1) {
... | [
"static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"VP56RangeCoder *c = &VAR_0->c;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9 = VAR_0->avctx->VAR_9;",
"int VAR_10 = VAR_0->avctx->VAR_10;",
"VAR_0->profile = (VAR_1[0] >> 1) & 7;",
"if (VAR_0->profile > 1) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
55
... |
11,396 | static inline void mc_dir_part(H264Context *h, Picture *pic, int n, int square, int chroma_height, int delta, int list,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int src_x_offset, int src_y_offset,
qpel_mc_func *qpix_op, h264... | true | FFmpeg | 171c407621b7ff52a0cf128b31651ca927c2dd49 | static inline void mc_dir_part(H264Context *h, Picture *pic, int n, int square, int chroma_height, int delta, int list,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int src_x_offset, int src_y_offset,
qpel_mc_func *qpix_op, h264... | {
"code": [
" assert(pic->data[0]);"
],
"line_no": [
39
]
} | static inline void FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6,
uint8_t *VAR_7, uint8_t *VAR_8, uint8_t *VAR_9,
int VAR_10, int VAR_11,
qpel_mc_func *VAR_12, h264_chroma_mc_func VAR_1... | [
"static inline void FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6,\nuint8_t *VAR_7, uint8_t *VAR_8, uint8_t *VAR_9,\nint VAR_10, int VAR_11,\nqpel_mc_func *VAR_12, h264_chroma_mc_func VAR_13){",
"MpegEncContext * const s = &VAR_0->s;",
"const int VAR_14= VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
49,... |
11,397 | static int encode_frame(AVCodecContext *avctx, uint8_t *buf,
int buf_size, void *data)
{
AVFrame *pic = data;
int i, j;
int aligned_width = FFALIGN(avctx->width, 64);
uint8_t *src_line;
uint8_t *dst = buf;
if (buf_size < 4 * aligned_width * avctx->height) {
... | true | FFmpeg | 371946bc27bd1e874e0302699550ab9926249950 | static int encode_frame(AVCodecContext *avctx, uint8_t *buf,
int buf_size, void *data)
{
AVFrame *pic = data;
int i, j;
int aligned_width = FFALIGN(avctx->width, 64);
uint8_t *src_line;
uint8_t *dst = buf;
if (buf_size < 4 * aligned_width * avctx->height) {
... | {
"code": [
" dst += (aligned_width - avctx->width) * 4;"
],
"line_no": [
71
]
} | static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,
int VAR_2, void *VAR_3)
{
AVFrame *pic = VAR_3;
int VAR_4, VAR_5;
int VAR_6 = FFALIGN(VAR_0->width, 64);
uint8_t *src_line;
uint8_t *dst = VAR_1;
if (VAR_2 < 4 * VAR_6 * VAR_0->height) {
av_log(VA... | [
"static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, void *VAR_3)\n{",
"AVFrame *pic = VAR_3;",
"int VAR_4, VAR_5;",
"int VAR_6 = FFALIGN(VAR_0->width, 64);",
"uint8_t *src_line;",
"uint8_t *dst = VAR_1;",
"if (VAR_2 < 4 * VAR_6 * VAR_0->height) {",
"av_log(VAR_0, AV_LOG_ERROR, \"outp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
11,398 | static inline void gen_st32(TCGv val, TCGv addr, int index)
{
tcg_gen_qemu_st32(val, addr, index);
dead_tmp(val);
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static inline void gen_st32(TCGv val, TCGv addr, int index)
{
tcg_gen_qemu_st32(val, addr, index);
dead_tmp(val);
}
| {
"code": [
" dead_tmp(val);",
" dead_tmp(val);",
" dead_tmp(val);"
],
"line_no": [
7,
7,
7
]
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2)
{
tcg_gen_qemu_st32(VAR_0, VAR_1, VAR_2);
dead_tmp(VAR_0);
}
| [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2)\n{",
"tcg_gen_qemu_st32(VAR_0, VAR_1, VAR_2);",
"dead_tmp(VAR_0);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,399 | int uuid_is_null(const uuid_t uu)
{
uuid_t null_uuid = { 0 };
return memcmp(uu, null_uuid, sizeof(uuid_t)) == 0;
}
| false | qemu | 8ba2aae32c40f544def6be7ae82be9bcb781e01d | int uuid_is_null(const uuid_t uu)
{
uuid_t null_uuid = { 0 };
return memcmp(uu, null_uuid, sizeof(uuid_t)) == 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(const uuid_t VAR_0)
{
uuid_t null_uuid = { 0 };
return memcmp(VAR_0, null_uuid, sizeof(uuid_t)) == 0;
}
| [
"int FUNC_0(const uuid_t VAR_0)\n{",
"uuid_t null_uuid = { 0 };",
"return memcmp(VAR_0, null_uuid, sizeof(uuid_t)) == 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,401 | static int e1000_post_load(void *opaque, int version_id)
{
E1000State *s = opaque;
NetClientState *nc = qemu_get_queue(s->nic);
if (!(s->compat_flags & E1000_FLAG_MIT)) {
s->mac_reg[ITR] = s->mac_reg[RDTR] = s->mac_reg[RADV] =
s->mac_reg[TADV] = 0;
s->mit_irq_level = fal... | false | qemu | d7a4155265416a1c8f3067b59e68bf5fda1d6215 | static int e1000_post_load(void *opaque, int version_id)
{
E1000State *s = opaque;
NetClientState *nc = qemu_get_queue(s->nic);
if (!(s->compat_flags & E1000_FLAG_MIT)) {
s->mac_reg[ITR] = s->mac_reg[RDTR] = s->mac_reg[RADV] =
s->mac_reg[TADV] = 0;
s->mit_irq_level = fal... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, int VAR_1)
{
E1000State *s = VAR_0;
NetClientState *nc = qemu_get_queue(s->nic);
if (!(s->compat_flags & E1000_FLAG_MIT)) {
s->mac_reg[ITR] = s->mac_reg[RDTR] = s->mac_reg[RADV] =
s->mac_reg[TADV] = 0;
s->mit_irq_level = false;
}
... | [
"static int FUNC_0(void *VAR_0, int VAR_1)\n{",
"E1000State *s = VAR_0;",
"NetClientState *nc = qemu_get_queue(s->nic);",
"if (!(s->compat_flags & E1000_FLAG_MIT)) {",
"s->mac_reg[ITR] = s->mac_reg[RDTR] = s->mac_reg[RADV] =\ns->mac_reg[TADV] = 0;",
"s->mit_irq_level = false;",
"}",
"s->mit_ide = 0;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
33
],
[
37,
39,
41,
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
]
] |
11,403 | int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname)
{
Error *err = NULL;
opts_do_parse(opts, params, firstname, false, &err);
if (err) {
qerror_report_err(err);
error_free(err);
return -1;
}
return 0;
}
| false | qemu | dc523cd348c47372faa7271c9aab2030f94c290d | int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname)
{
Error *err = NULL;
opts_do_parse(opts, params, firstname, false, &err);
if (err) {
qerror_report_err(err);
error_free(err);
return -1;
}
return 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, const char *VAR_2)
{
Error *err = NULL;
opts_do_parse(VAR_0, VAR_1, VAR_2, false, &err);
if (err) {
qerror_report_err(err);
error_free(err);
return -1;
}
return 0;
}
| [
"int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"Error *err = NULL;",
"opts_do_parse(VAR_0, VAR_1, VAR_2, false, &err);",
"if (err) {",
"qerror_report_err(err);",
"error_free(err);",
"return -1;",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
11,404 | static int cris_mmu_enabled(uint32_t rw_gc_cfg)
{
return (rw_gc_cfg & 12) != 0;
}
| false | qemu | ef29a70d18c2d551cf4bb74b8aa9638caac3391b | static int cris_mmu_enabled(uint32_t rw_gc_cfg)
{
return (rw_gc_cfg & 12) != 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(uint32_t VAR_0)
{
return (VAR_0 & 12) != 0;
}
| [
"static int FUNC_0(uint32_t VAR_0)\n{",
"return (VAR_0 & 12) != 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,405 | static int nut_read_packet(AVFormatContext *s, AVPacket *pkt)
{
NUTContext *nut = s->priv_data;
StreamContext *stream;
ByteIOContext *bc = &s->pb;
int size, frame_code, flags, size_mul, size_lsb, stream_id;
int key_frame = 0;
int frame_type= 0;
int64_t pts = 0;
const int64_t fra... | false | FFmpeg | 465e1dadbef7596a3eb87089a66bb4ecdc26d3c4 | static int nut_read_packet(AVFormatContext *s, AVPacket *pkt)
{
NUTContext *nut = s->priv_data;
StreamContext *stream;
ByteIOContext *bc = &s->pb;
int size, frame_code, flags, size_mul, size_lsb, stream_id;
int key_frame = 0;
int frame_type= 0;
int64_t pts = 0;
const int64_t fra... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
NUTContext *nut = VAR_0->priv_data;
StreamContext *stream;
ByteIOContext *bc = &VAR_0->pb;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8 = 0;
int VAR_9= 0;
int64_t pts = 0;
const int64_t VAR_10= url_ftell(bc)... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"NUTContext *nut = VAR_0->priv_data;",
"StreamContext *stream;",
"ByteIOContext *bc = &VAR_0->pb;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8 = 0;",
"int VAR_9= 0;",
"int64_t pts = 0;",
"const int64_t VAR_10= url_ftel... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
... |
11,406 | void block_job_user_resume(BlockJob *job)
{
if (job && job->user_paused && job->pause_count > 0) {
job->user_paused = false;
block_job_iostatus_reset(job);
block_job_resume(job);
}
}
| false | qemu | 4c241cf5d6ca06c682e033cf8b327b63b1f4b784 | void block_job_user_resume(BlockJob *job)
{
if (job && job->user_paused && job->pause_count > 0) {
job->user_paused = false;
block_job_iostatus_reset(job);
block_job_resume(job);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BlockJob *VAR_0)
{
if (VAR_0 && VAR_0->user_paused && VAR_0->pause_count > 0) {
VAR_0->user_paused = false;
block_job_iostatus_reset(VAR_0);
block_job_resume(VAR_0);
}
}
| [
"void FUNC_0(BlockJob *VAR_0)\n{",
"if (VAR_0 && VAR_0->user_paused && VAR_0->pause_count > 0) {",
"VAR_0->user_paused = false;",
"block_job_iostatus_reset(VAR_0);",
"block_job_resume(VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
11,407 | static void pc_cpu_reset(void *opaque)
{
X86CPU *cpu = opaque;
CPUX86State *env = &cpu->env;
cpu_reset(CPU(cpu));
env->halted = !cpu_is_bsp(env);
}
| false | qemu | dd673288a8ff73ad77fcc1c255486d2466a772e1 | static void pc_cpu_reset(void *opaque)
{
X86CPU *cpu = opaque;
CPUX86State *env = &cpu->env;
cpu_reset(CPU(cpu));
env->halted = !cpu_is_bsp(env);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
X86CPU *cpu = VAR_0;
CPUX86State *env = &cpu->env;
cpu_reset(CPU(cpu));
env->halted = !cpu_is_bsp(env);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"X86CPU *cpu = VAR_0;",
"CPUX86State *env = &cpu->env;",
"cpu_reset(CPU(cpu));",
"env->halted = !cpu_is_bsp(env);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
11,408 | static pflash_t *ve_pflash_cfi01_register(hwaddr base, const char *name,
DriveInfo *di)
{
DeviceState *dev = qdev_create(NULL, "cfi.pflash01");
if (di && qdev_prop_set_drive(dev, "drive",
blk_bs(blk_by_legacy_dinfo(di)))) {
... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static pflash_t *ve_pflash_cfi01_register(hwaddr base, const char *name,
DriveInfo *di)
{
DeviceState *dev = qdev_create(NULL, "cfi.pflash01");
if (di && qdev_prop_set_drive(dev, "drive",
blk_bs(blk_by_legacy_dinfo(di)))) {
... | {
"code": [],
"line_no": []
} | static pflash_t *FUNC_0(hwaddr base, const char *name,
DriveInfo *di)
{
DeviceState *dev = qdev_create(NULL, "cfi.pflash01");
if (di && qdev_prop_set_drive(dev, "drive",
blk_bs(blk_by_legacy_dinfo(di)))) {
abort();
... | [
"static pflash_t *FUNC_0(hwaddr base, const char *name,\nDriveInfo *di)\n{",
"DeviceState *dev = qdev_create(NULL, \"cfi.pflash01\");",
"if (di && qdev_prop_set_drive(dev, \"drive\",\nblk_bs(blk_by_legacy_dinfo(di)))) {",
"abort();",
"}",
"qdev_prop_set_uint32(dev, \"num-blocks\",\nVEXPRESS_FLASH_SIZE / V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
... |
11,409 | static bool virtio_queue_host_notifier_aio_poll(void *opaque)
{
EventNotifier *n = opaque;
VirtQueue *vq = container_of(n, VirtQueue, host_notifier);
bool progress;
if (virtio_queue_empty(vq)) {
return false;
}
progress = virtio_queue_notify_aio_vq(vq);
/* In case the ... | false | qemu | dd3dd4ba7b949662d2c67a4c041549b3d79c4b0e | static bool virtio_queue_host_notifier_aio_poll(void *opaque)
{
EventNotifier *n = opaque;
VirtQueue *vq = container_of(n, VirtQueue, host_notifier);
bool progress;
if (virtio_queue_empty(vq)) {
return false;
}
progress = virtio_queue_notify_aio_vq(vq);
virtio_qu... | {
"code": [],
"line_no": []
} | static bool FUNC_0(void *opaque)
{
EventNotifier *n = opaque;
VirtQueue *vq = container_of(n, VirtQueue, host_notifier);
bool progress;
if (virtio_queue_empty(vq)) {
return false;
}
progress = virtio_queue_notify_aio_vq(vq);
virtio_queue_set_notification(vq, 0);
... | [
"static bool FUNC_0(void *opaque)\n{",
"EventNotifier *n = opaque;",
"VirtQueue *vq = container_of(n, VirtQueue, host_notifier);",
"bool progress;",
"if (virtio_queue_empty(vq)) {",
"return false;",
"}",
"progress = virtio_queue_notify_aio_vq(vq);",
"virtio_queue_set_notification(vq, 0);",
"return... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
27
],
[
29
],
[
31
]
] |
11,410 | static void qvirtio_9p_stop(void)
{
qtest_end();
rmdir(test_share);
g_free(test_share);
}
| false | qemu | a980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4 | static void qvirtio_9p_stop(void)
{
qtest_end();
rmdir(test_share);
g_free(test_share);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
qtest_end();
rmdir(test_share);
g_free(test_share);
}
| [
"static void FUNC_0(void)\n{",
"qtest_end();",
"rmdir(test_share);",
"g_free(test_share);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
11,411 | do_kernel_trap(CPUARMState *env)
{
uint32_t addr;
uint32_t cpsr;
uint32_t val;
switch (env->regs[15]) {
case 0xffff0fa0: /* __kernel_memory_barrier */
/* ??? No-op. Will need to do better for SMP. */
break;
case 0xffff0fc0: /* __kernel_cmpxchg */
/* XXX: Thi... | false | qemu | 54bf36ed351c526cde0c853079f9ff1ab7e2ff89 | do_kernel_trap(CPUARMState *env)
{
uint32_t addr;
uint32_t cpsr;
uint32_t val;
switch (env->regs[15]) {
case 0xffff0fa0:
break;
case 0xffff0fc0:
start_exclusive();
cpsr = cpsr_read(env);
addr = env->regs[2];
... | {
"code": [],
"line_no": []
} | FUNC_0(CPUARMState *VAR_0)
{
uint32_t addr;
uint32_t cpsr;
uint32_t val;
switch (VAR_0->regs[15]) {
case 0xffff0fa0:
break;
case 0xffff0fc0:
start_exclusive();
cpsr = cpsr_read(VAR_0);
addr = VAR_0->regs[2];
... | [
"FUNC_0(CPUARMState *VAR_0)\n{",
"uint32_t addr;",
"uint32_t cpsr;",
"uint32_t val;",
"switch (VAR_0->regs[15]) {",
"case 0xffff0fa0:\nbreak;",
"case 0xffff0fc0:\nstart_exclusive();",
"cpsr = cpsr_read(VAR_0);",
"addr = VAR_0->regs[2];",
"if (get_user_u32(val, addr))\nval = ~VAR_0->regs[0];",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
19
],
[
21,
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[... |
11,412 | static void event_notifier_dummy_cb(EventNotifier *e)
{
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | static void event_notifier_dummy_cb(EventNotifier *e)
{
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(EventNotifier *VAR_0)
{
}
| [
"static void FUNC_0(EventNotifier *VAR_0)\n{",
"}"
] | [
0,
0
] | [
[
1,
3
],
[
5
]
] |
11,413 | uint16_t cpu_inw(CPUState *env, pio_addr_t addr)
{
uint16_t val;
val = ioport_read(1, addr);
LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val);
#ifdef CONFIG_KQEMU
if (env)
env->last_io_time = cpu_get_time_fast();
#endif
return val;
}
| false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | uint16_t cpu_inw(CPUState *env, pio_addr_t addr)
{
uint16_t val;
val = ioport_read(1, addr);
LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val);
#ifdef CONFIG_KQEMU
if (env)
env->last_io_time = cpu_get_time_fast();
#endif
return val;
}
| {
"code": [],
"line_no": []
} | uint16_t FUNC_0(CPUState *env, pio_addr_t addr)
{
uint16_t val;
val = ioport_read(1, addr);
LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val);
#ifdef CONFIG_KQEMU
if (env)
env->last_io_time = cpu_get_time_fast();
#endif
return val;
}
| [
"uint16_t FUNC_0(CPUState *env, pio_addr_t addr)\n{",
"uint16_t val;",
"val = ioport_read(1, addr);",
"LOG_IOPORT(\"inw : %04\"FMT_pioaddr\" %04\"PRIx16\"\\n\", addr, val);",
"#ifdef CONFIG_KQEMU\nif (env)\nenv->last_io_time = cpu_get_time_fast();",
"#endif\nreturn val;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17,
19
],
[
21
]
] |
11,415 | static NVDIMMDevice *nvdimm_get_device_by_handle(uint32_t handle)
{
NVDIMMDevice *nvdimm = NULL;
GSList *list, *device_list = nvdimm_get_plugged_device_list();
for (list = device_list; list; list = list->next) {
NVDIMMDevice *nvd = list->data;
int slot = object_property_get_int(OBJEC... | false | qemu | cf7c0ff521b0710079aa28f21937fb7dbb3f5224 | static NVDIMMDevice *nvdimm_get_device_by_handle(uint32_t handle)
{
NVDIMMDevice *nvdimm = NULL;
GSList *list, *device_list = nvdimm_get_plugged_device_list();
for (list = device_list; list; list = list->next) {
NVDIMMDevice *nvd = list->data;
int slot = object_property_get_int(OBJEC... | {
"code": [],
"line_no": []
} | static NVDIMMDevice *FUNC_0(uint32_t handle)
{
NVDIMMDevice *nvdimm = NULL;
GSList *list, *device_list = nvdimm_get_plugged_device_list();
for (list = device_list; list; list = list->next) {
NVDIMMDevice *nvd = list->data;
int slot = object_property_get_int(OBJECT(nvd), PC_DIMM_SLOT_... | [
"static NVDIMMDevice *FUNC_0(uint32_t handle)\n{",
"NVDIMMDevice *nvdimm = NULL;",
"GSList *list, *device_list = nvdimm_get_plugged_device_list();",
"for (list = device_list; list; list = list->next) {",
"NVDIMMDevice *nvd = list->data;",
"int slot = object_property_get_int(OBJECT(nvd), PC_DIMM_SLOT_PROP,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
]
] |
11,416 | int avio_check(const char *url, int flags)
{
URLContext *h;
int ret = ffurl_alloc(&h, url, flags, NULL);
if (ret)
return ret;
if (h->prot->url_check) {
ret = h->prot->url_check(h, flags);
} else {
ret = ffurl_connect(h, NULL);
if (ret >= 0)
re... | false | FFmpeg | f495fbe76a2665cdea092999ca2dbb603d13280c | int avio_check(const char *url, int flags)
{
URLContext *h;
int ret = ffurl_alloc(&h, url, flags, NULL);
if (ret)
return ret;
if (h->prot->url_check) {
ret = h->prot->url_check(h, flags);
} else {
ret = ffurl_connect(h, NULL);
if (ret >= 0)
re... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0, int VAR_1)
{
URLContext *h;
int VAR_2 = ffurl_alloc(&h, VAR_0, VAR_1, NULL);
if (VAR_2)
return VAR_2;
if (h->prot->url_check) {
VAR_2 = h->prot->url_check(h, VAR_1);
} else {
VAR_2 = ffurl_connect(h, NULL);
if (VAR_2 >= 0)
... | [
"int FUNC_0(const char *VAR_0, int VAR_1)\n{",
"URLContext *h;",
"int VAR_2 = ffurl_alloc(&h, VAR_0, VAR_1, NULL);",
"if (VAR_2)\nreturn VAR_2;",
"if (h->prot->url_check) {",
"VAR_2 = h->prot->url_check(h, VAR_1);",
"} else {",
"VAR_2 = ffurl_connect(h, NULL);",
"if (VAR_2 >= 0)\nVAR_2 = VAR_1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
11,417 | int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr,
int is_write1, int mmu_idx)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
uint64_t ptep, pte;
target_ulong pde_addr, pte_addr;
int error_code = 0;
int is_dirty, prot, page_size, is_write, is_... | false | qemu | e2a32ebbfe899a32a6b063f0f9e7c2593267ea88 | int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr,
int is_write1, int mmu_idx)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
uint64_t ptep, pte;
target_ulong pde_addr, pte_addr;
int error_code = 0;
int is_dirty, prot, page_size, is_write, is_... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, vaddr VAR_1,
int VAR_2, int VAR_3)
{
X86CPU *cpu = X86_CPU(VAR_0);
CPUX86State *env = &cpu->env;
uint64_t ptep, pte;
target_ulong pde_addr, pte_addr;
int VAR_4 = 0;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
hwaddr paddr;
uin... | [
"int FUNC_0(CPUState *VAR_0, vaddr VAR_1,\nint VAR_2, int VAR_3)\n{",
"X86CPU *cpu = X86_CPU(VAR_0);",
"CPUX86State *env = &cpu->env;",
"uint64_t ptep, pte;",
"target_ulong pde_addr, pte_addr;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"hwaddr paddr;",
"uint64_t rsvd_mask = PG_HI_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33,
35
],
[
37,
39
],
[
43
],
[
45
],
[
47,
49
],
[... |
11,418 | int kvmppc_reset_htab(int shift_hint)
{
uint32_t shift = shift_hint;
if (!kvm_enabled()) {
/* Full emulation, tell caller to allocate htab itself */
return 0;
}
if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) {
int ret;
ret = kvm_vm_ioctl(kvm_state,... | false | qemu | 96c9cff0ab986f3a0606e1a96c5b00e6a7c675c6 | int kvmppc_reset_htab(int shift_hint)
{
uint32_t shift = shift_hint;
if (!kvm_enabled()) {
return 0;
}
if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) {
int ret;
ret = kvm_vm_ioctl(kvm_state, KVM_PPC_ALLOCATE_HTAB, &shift);
if (ret == -ENO... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0)
{
uint32_t shift = VAR_0;
if (!kvm_enabled()) {
return 0;
}
if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) {
int VAR_1;
VAR_1 = kvm_vm_ioctl(kvm_state, KVM_PPC_ALLOCATE_HTAB, &shift);
if (VAR_1 == -ENOTTY) {
... | [
"int FUNC_0(int VAR_0)\n{",
"uint32_t shift = VAR_0;",
"if (!kvm_enabled()) {",
"return 0;",
"}",
"if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) {",
"int VAR_1;",
"VAR_1 = kvm_vm_ioctl(kvm_state, KVM_PPC_ALLOCATE_HTAB, &shift);",
"if (VAR_1 == -ENOTTY) {",
"return 0;",
"} else if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
59
],
[
63
],
[
65
],
[
69
],
[
71... |
11,419 | static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
st = av_new_stream(c->fc, c->fc->nb_streams);
if (!st) return AVERROR(ENOMEM);
sc = av_mallocz(sizeof(MOVStreamContext));
if (!sc) return AVERROR(ENOMEM);
... | false | FFmpeg | f0f2218dce194ff50d1fe7ed39011595660143ad | static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
st = av_new_stream(c->fc, c->fc->nb_streams);
if (!st) return AVERROR(ENOMEM);
sc = av_mallocz(sizeof(MOVStreamContext));
if (!sc) return AVERROR(ENOMEM);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
int VAR_3;
st = av_new_stream(VAR_0->fc, VAR_0->fc->nb_streams);
if (!st) return AVERROR(ENOMEM);
sc = av_mallocz(sizeof(MOVStreamContext));
if (!sc) return AVERROR(ENOME... | [
"static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"int VAR_3;",
"st = av_new_stream(VAR_0->fc, VAR_0->fc->nb_streams);",
"if (!st) return AVERROR(ENOMEM);",
"sc = av_mallocz(sizeof(MOVStreamContext));",
"if (!sc) return AVERROR(EN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
... |
11,420 | static void FUNCC(pred8x8_horizontal_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<4; i++)
FUNCC(pred4x4_horizontal_add)(pix + block_offset[i], block + i*16... | false | FFmpeg | 1acd7d594c15aa491729c837ad3519d3469e620a | static void FUNCC(pred8x8_horizontal_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<4; i++)
FUNCC(pred4x4_horizontal_add)(pix + block_offset[i], block + i*16... | {
"code": [],
"line_no": []
} | static void FUNC_0(pred8x8_horizontal_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int VAR_0;
for(VAR_0=0; VAR_0<4; VAR_0++)
FUNC_0(pred4x4_horizontal_add)(pix + block_offse... | [
"static void FUNC_0(pred8x8_horizontal_add)(uint8_t *pix, const int *block_offset,\nconst int16_t *block,\nptrdiff_t stride)\n{",
"int VAR_0;",
"for(VAR_0=0; VAR_0<4; VAR_0++)",
"FUNC_0(pred4x4_horizontal_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
11,421 | void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){
s->update_checksum= update_checksum;
s->checksum= s->update_checksum(checksum, NULL, 0);
s->checksum_ptr= s->buf_ptr;
}
| false | FFmpeg | 465e1dadbef7596a3eb87089a66bb4ecdc26d3c4 | void init_checksum(ByteIOContext *s, unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum){
s->update_checksum= update_checksum;
s->checksum= s->update_checksum(checksum, NULL, 0);
s->checksum_ptr= s->buf_ptr;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(ByteIOContext *VAR_0, unsigned long (*VAR_1)(unsigned long VAR_2, const uint8_t *VAR_3, unsigned int VAR_4), unsigned long VAR_5){
VAR_0->VAR_1= VAR_1;
VAR_0->VAR_5= VAR_0->VAR_1(VAR_5, NULL, 0);
VAR_0->checksum_ptr= VAR_0->buf_ptr;
}
| [
"void FUNC_0(ByteIOContext *VAR_0, unsigned long (*VAR_1)(unsigned long VAR_2, const uint8_t *VAR_3, unsigned int VAR_4), unsigned long VAR_5){",
"VAR_0->VAR_1= VAR_1;",
"VAR_0->VAR_5= VAR_0->VAR_1(VAR_5, NULL, 0);",
"VAR_0->checksum_ptr= VAR_0->buf_ptr;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
]
] |
11,422 | static av_cold int hap_init(AVCodecContext *avctx)
{
HapContext *ctx = avctx->priv_data;
int ratio;
int corrected_chunk_count;
int ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Invalid video size %dx%d.\n",
... | false | FFmpeg | bd6fa80d56fcda385da1c8f21eb83282a7930899 | static av_cold int hap_init(AVCodecContext *avctx)
{
HapContext *ctx = avctx->priv_data;
int ratio;
int corrected_chunk_count;
int ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Invalid video size %dx%d.\n",
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
HapContext *ctx = avctx->priv_data;
int VAR_0;
int VAR_1;
int VAR_2 = av_image_check_size(avctx->width, avctx->height, 0, avctx);
if (VAR_2 < 0) {
av_log(avctx, AV_LOG_ERROR, "Invalid video size %dx%d.\n",
avctx->wid... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"HapContext *ctx = avctx->priv_data;",
"int VAR_0;",
"int VAR_1;",
"int VAR_2 = av_image_check_size(avctx->width, avctx->height, 0, avctx);",
"if (VAR_2 < 0) {",
"av_log(avctx, AV_LOG_ERROR, \"Invalid video size %dx%d.\\n\",\navctx->width, avctx->he... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[... |
11,424 | static int mpeg_mux_write_packet(AVFormatContext *ctx, int stream_index,
const uint8_t *buf, int size, int64_t pts)
{
MpegMuxContext *s = ctx->priv_data;
AVStream *st = ctx->streams[stream_index];
StreamInfo *stream = st->priv_data;
int len;
while (size ... | false | FFmpeg | fa0f62c37d90c0760bddccba2054578e2c61ae1a | static int mpeg_mux_write_packet(AVFormatContext *ctx, int stream_index,
const uint8_t *buf, int size, int64_t pts)
{
MpegMuxContext *s = ctx->priv_data;
AVStream *st = ctx->streams[stream_index];
StreamInfo *stream = st->priv_data;
int len;
while (size ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
const uint8_t *VAR_2, int VAR_3, int64_t VAR_4)
{
MpegMuxContext *s = VAR_0->priv_data;
AVStream *st = VAR_0->streams[VAR_1];
StreamInfo *stream = st->priv_data;
int VAR_5;
while (VAR_3 > 0) {
... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{",
"MpegMuxContext *s = VAR_0->priv_data;",
"AVStream *st = VAR_0->streams[VAR_1];",
"StreamInfo *stream = st->priv_data;",
"int VAR_5;",
"while (VAR_3 > 0) {",
"if (stream->start_pts == -1) {",
"s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[... |
11,425 | static int decode_i_block(FourXContext *f, int16_t *block)
{
int code, i, j, level, val;
if (get_bits_left(&f->gb) < 2){
av_log(f->avctx, AV_LOG_ERROR, "%d bits left before decode_i_block()\n", get_bits_left(&f->gb));
return -1;
}
/* DC coef */
val = get_vlc2(&f->pre_gb, ... | false | FFmpeg | 13c56e9a9cf18f33bcbc2dc1a5cf2a5f98ca9702 | static int decode_i_block(FourXContext *f, int16_t *block)
{
int code, i, j, level, val;
if (get_bits_left(&f->gb) < 2){
av_log(f->avctx, AV_LOG_ERROR, "%d bits left before decode_i_block()\n", get_bits_left(&f->gb));
return -1;
}
val = get_vlc2(&f->pre_gb, f->pre_vlc.ta... | {
"code": [],
"line_no": []
} | static int FUNC_0(FourXContext *VAR_0, int16_t *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
if (get_bits_left(&VAR_0->gb) < 2){
av_log(VAR_0->avctx, AV_LOG_ERROR, "%d bits left before FUNC_0()\n", get_bits_left(&VAR_0->gb));
return -1;
}
VAR_6 = get_vlc2(&VAR_0->pre_... | [
"static int FUNC_0(FourXContext *VAR_0, int16_t *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"if (get_bits_left(&VAR_0->gb) < 2){",
"av_log(VAR_0->avctx, AV_LOG_ERROR, \"%d bits left before FUNC_0()\\n\", get_bits_left(&VAR_0->gb));",
"return -1;",
"}",
"VAR_6 = get_vlc2(&VAR_0->pre_gb, VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23,
25
],
[
29,
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
51,
53
],
[
55
],
[
57
],
[
59
],
... |
11,426 | static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
const uint8_t **buf, int buf_size)
{
MpegEncContext *s = &s1->mpeg_enc_ctx;
AVCodecContext *avctx= s->avctx;
const int field_pic= s->picture_structure != PICT_FRAME;
const int lowres= s->avctx->lowres;
s->... | false | FFmpeg | 52069c4d3c92f68605fadf012ab0da594ee9bae4 | static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
const uint8_t **buf, int buf_size)
{
MpegEncContext *s = &s1->mpeg_enc_ctx;
AVCodecContext *avctx= s->avctx;
const int field_pic= s->picture_structure != PICT_FRAME;
const int lowres= s->avctx->lowres;
s->... | {
"code": [],
"line_no": []
} | static int FUNC_0(Mpeg1Context *VAR_0, int VAR_1,
const uint8_t **VAR_2, int VAR_3)
{
MpegEncContext *s = &VAR_0->mpeg_enc_ctx;
AVCodecContext *avctx= s->avctx;
const int VAR_4= s->picture_structure != PICT_FRAME;
const int VAR_5= s->avctx->VAR_5;
s->resync_mb_x... | [
"static int FUNC_0(Mpeg1Context *VAR_0, int VAR_1,\nconst uint8_t **VAR_2, int VAR_3)\n{",
"MpegEncContext *s = &VAR_0->mpeg_enc_ctx;",
"AVCodecContext *avctx= s->avctx;",
"const int VAR_4= s->picture_structure != PICT_FRAME;",
"const int VAR_5= s->avctx->VAR_5;",
"s->resync_mb_x=\ns->resync_mb_y= -1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
59
... |
11,429 | static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
#ifdef HAVE_MMX
for(y=0; y<height-2; y+=2)
{
long i;
for(i=0; i<2; i++)
{
... | false | FFmpeg | 4bff9ef9d0781c4de228bf1f85634d2706fc589b | static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
#ifdef HAVE_MMX
for(y=0; y<height-2; y+=2)
{
long i;
for(i=0; i<2; i++)
{
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long VAR_0;
const long VAR_1= width>>1;
#ifdef HAVE_MMX
for(VAR_0=0; VAR_0<height-2; VAR_0+=2)
{
long i;
for(i=0; i<2; ... | [
"static inline void FUNC_0(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nlong width, long height,\nlong lumStride, long chromStride, long srcStride)\n{",
"long VAR_0;",
"const long VAR_1= width>>1;",
"#ifdef HAVE_MMX\nfor(VAR_0=0; VAR_0<height-2; VAR_0+=2)",
"{",
"long i;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,... |
11,430 | static int paf_vid_decode(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *pkt)
{
PAFVideoDecContext *c = avctx->priv_data;
uint8_t code, *dst, *src, *end;
int i, frame, ret;
c->pic.reference = 3;
if ((ret = avctx->reget_buffer(avctx, &c->pic)) < 0)
... | false | FFmpeg | 456f0c6477925611f1b45a434795f8bad4fb2a66 | static int paf_vid_decode(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *pkt)
{
PAFVideoDecContext *c = avctx->priv_data;
uint8_t code, *dst, *src, *end;
int i, frame, ret;
c->pic.reference = 3;
if ((ret = avctx->reget_buffer(avctx, &c->pic)) < 0)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
PAFVideoDecContext *c = VAR_0->priv_data;
uint8_t code, *dst, *src, *end;
int VAR_4, VAR_5, VAR_6;
c->pic.reference = 3;
if ((VAR_6 = VAR_0->reget_buffer(VAR_0, &c->pic)) < 0)
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"PAFVideoDecContext *c = VAR_0->priv_data;",
"uint8_t code, *dst, *src, *end;",
"int VAR_4, VAR_5, VAR_6;",
"c->pic.reference = 3;",
"if ((VAR_6 = VAR_0->reget_buffer(VAR_0, &c->pic)) < 0)\nreturn VAR_6;",
"bytestr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,431 | static int file_read(URLContext *h, unsigned char *buf, int size)
{
FileContext *c = h->priv_data;
int r = read(c->fd, buf, size);
return (-1 == r)?AVERROR(errno):r;
}
| false | FFmpeg | a8f171151f0f027abb06f72e48c44929616a84cb | static int file_read(URLContext *h, unsigned char *buf, int size)
{
FileContext *c = h->priv_data;
int r = read(c->fd, buf, size);
return (-1 == r)?AVERROR(errno):r;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2)
{
FileContext *c = VAR_0->priv_data;
int VAR_3 = read(c->fd, VAR_1, VAR_2);
return (-1 == VAR_3)?AVERROR(errno):VAR_3;
}
| [
"static int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{",
"FileContext *c = VAR_0->priv_data;",
"int VAR_3 = read(c->fd, VAR_1, VAR_2);",
"return (-1 == VAR_3)?AVERROR(errno):VAR_3;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
11,432 | static void realview_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
ram_addr_t ram_offset;
DeviceState *dev;... | true | qemu | 07caea315a85ebfe90851f9c2e4ef3fdd24117b5 | static void realview_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
ram_addr_t ram_offset;
DeviceState *dev;... | {
"code": [
" pci_nic_init(nd, \"rtl8139\", NULL);",
" pci_nic_init(nd, \"rtl8139\", NULL);"
],
"line_no": [
203,
203
]
} | static void FUNC_0(ram_addr_t VAR_0,
const char *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5)
{
CPUState *env;
ram_addr_t ram_offset;
DeviceState *dev;
qemu_irq *irqp;
qemu_irq pic[64];
... | [
"static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{",
"CPUState *env;",
"ram_addr_t ram_offset;",
"DeviceState *dev;",
"qemu_irq *irqp;",
"qemu_irq pic[64];",
"PCIBus *pci_bus;",
"NICInfo *nd;",
"int VAR_6;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
11,434 | int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,
const uint8_t *buf, int len)
{
int len1;
len1 = len;
ts->pkt = pkt;
ts->stop_parse = 0;
for(;;) {
if (ts->stop_parse>0)
break;
if (len < TS_PACKET_SIZE)
return -1... | true | FFmpeg | bc38e83793be5f7a184c88be55e556453a25224b | int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,
const uint8_t *buf, int len)
{
int len1;
len1 = len;
ts->pkt = pkt;
ts->stop_parse = 0;
for(;;) {
if (ts->stop_parse>0)
break;
if (len < TS_PACKET_SIZE)
return -1... | {
"code": [
" ts->stop_parse = 0;",
" if (ts->stop_parse>0)",
" break;"
],
"line_no": [
15,
19,
21
]
} | int FUNC_0(MpegTSContext *VAR_0, AVPacket *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
int VAR_4;
VAR_4 = VAR_3;
VAR_0->VAR_1 = VAR_1;
VAR_0->stop_parse = 0;
for(;;) {
if (VAR_0->stop_parse>0)
break;
if (VAR_3 < TS_PACKET_SIZE)
... | [
"int FUNC_0(MpegTSContext *VAR_0, AVPacket *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"int VAR_4;",
"VAR_4 = VAR_3;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->stop_parse = 0;",
"for(;;) {",
"if (VAR_0->stop_parse>0)\nbreak;",
"if (VAR_3 < TS_PACKET_SIZE)\nreturn -1;",
"if (VAR_2[0] != 0x47) {",
"VAR_2... | [
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
11,435 | static int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr)
{
unsigned char *destptr_bak = destptr;
unsigned char mask = 0;
unsigned char maskbit = 0;
unsigned int ofs, cnt;
while (srclen > 0) {
if (maskbit == 0) {
mask = *(srcptr++);
... | true | FFmpeg | c31b81216619e6b3d986ce63c82357993e10e8e9 | static int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr)
{
unsigned char *destptr_bak = destptr;
unsigned char mask = 0;
unsigned char maskbit = 0;
unsigned int ofs, cnt;
while (srclen > 0) {
if (maskbit == 0) {
mask = *(srcptr++);
... | {
"code": [
"static int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr)",
" while (srclen > 0) {"
],
"line_no": [
1,
15
]
} | static int FUNC_0(unsigned char * VAR_0, int VAR_1, unsigned char * VAR_2)
{
unsigned char *VAR_3 = VAR_2;
unsigned char VAR_4 = 0;
unsigned char VAR_5 = 0;
unsigned int VAR_6, VAR_7;
while (VAR_1 > 0) {
if (VAR_5 == 0) {
VAR_4 = *(VAR_0++);
VAR_5 = 8;
... | [
"static int FUNC_0(unsigned char * VAR_0, int VAR_1, unsigned char * VAR_2)\n{",
"unsigned char *VAR_3 = VAR_2;",
"unsigned char VAR_4 = 0;",
"unsigned char VAR_5 = 0;",
"unsigned int VAR_6, VAR_7;",
"while (VAR_1 > 0) {",
"if (VAR_5 == 0) {",
"VAR_4 = *(VAR_0++);",
"VAR_5 = 8;",
"VAR_1--;",
"co... | [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
11,436 | int ff_split_xiph_headers(uint8_t *extradata, int extradata_size,
int first_header_size, uint8_t *header_start[3],
int header_len[3])
{
int i, j;
if (AV_RB16(extradata) == first_header_size) {
for (i=0; i<3; i++) {
header_len[i] = ... | true | FFmpeg | 58720ebd9e671f654d89d8e401d0b4dffb79122b | int ff_split_xiph_headers(uint8_t *extradata, int extradata_size,
int first_header_size, uint8_t *header_start[3],
int header_len[3])
{
int i, j;
if (AV_RB16(extradata) == first_header_size) {
for (i=0; i<3; i++) {
header_len[i] = ... | {
"code": [
" if (AV_RB16(extradata) == first_header_size) {",
" } else if (extradata[0] == 2) {",
" for (; j<extradata_size && extradata[j]==0xff; j++) {",
" if (j >= extradata_size)"
],
"line_no": [
13,
27,
33,
39
]
} | int FUNC_0(uint8_t *VAR_0, int VAR_1,
int VAR_2, uint8_t *VAR_3[3],
int VAR_4[3])
{
int VAR_5, VAR_6;
if (AV_RB16(VAR_0) == VAR_2) {
for (VAR_5=0; VAR_5<3; VAR_5++) {
VAR_4[VAR_5] = AV_RB16(VAR_0);
VAR_0 += 2;
... | [
"int FUNC_0(uint8_t *VAR_0, int VAR_1,\nint VAR_2, uint8_t *VAR_3[3],\nint VAR_4[3])\n{",
"int VAR_5, VAR_6;",
"if (AV_RB16(VAR_0) == VAR_2) {",
"for (VAR_5=0; VAR_5<3; VAR_5++) {",
"VAR_4[VAR_5] = AV_RB16(VAR_0);",
"VAR_0 += 2;",
"VAR_3[VAR_5] = VAR_0;",
"VAR_0 += VAR_4[VAR_5];",
"}",
"} else if ... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[... |
11,437 | static int vp3_decode_init(AVCodecContext *avctx)
{
Vp3DecodeContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
s->width = avctx->width;
s->height = avctx->height;
avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);
/* initializ... | true | FFmpeg | 44ae98ddef565e03080012bb22467bc7ed1ca1d2 | static int vp3_decode_init(AVCodecContext *avctx)
{
Vp3DecodeContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
s->width = avctx->width;
s->height = avctx->height;
avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->has_b_frames = 0;
dsputil_init(&s->dsp, avctx);
s->q... | {
"code": [
" if(avctx->get_buffer(avctx, &s->golden_frame) < 0) {",
" printf(\"vp3: get_buffer() failed\\n\");",
" return -1;"
],
"line_no": [
185,
187,
189
]
} | static int FUNC_0(AVCodecContext *VAR_0)
{
Vp3DecodeContext *s = VAR_0->priv_data;
int VAR_1;
s->VAR_0 = VAR_0;
s->width = VAR_0->width;
s->height = VAR_0->height;
VAR_0->pix_fmt = PIX_FMT_YUV420P;
VAR_0->has_b_frames = 0;
dsputil_init(&s->dsp, VAR_0);
s->qualit... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"int VAR_1;",
"s->VAR_0 = VAR_0;",
"s->width = VAR_0->width;",
"s->height = VAR_0->height;",
"VAR_0->pix_fmt = PIX_FMT_YUV420P;",
"VAR_0->has_b_frames = 0;",
"dsputil_init(&s->dsp, VAR_0);",
"s->quality_index... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55... |
11,438 | uint16_t qpci_io_readw(QPCIDevice *dev, void *data)
{
uintptr_t addr = (uintptr_t)data;
if (addr < QPCI_PIO_LIMIT) {
return dev->bus->pio_readw(dev->bus, addr);
} else {
uint16_t val;
dev->bus->memread(dev->bus, addr, &val, sizeof(val));
return le16_to_cpu(val);
... | true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | uint16_t qpci_io_readw(QPCIDevice *dev, void *data)
{
uintptr_t addr = (uintptr_t)data;
if (addr < QPCI_PIO_LIMIT) {
return dev->bus->pio_readw(dev->bus, addr);
} else {
uint16_t val;
dev->bus->memread(dev->bus, addr, &val, sizeof(val));
return le16_to_cpu(val);
... | {
"code": [
" uintptr_t addr = (uintptr_t)data;",
" if (addr < QPCI_PIO_LIMIT) {",
" dev->bus->memread(dev->bus, addr, &val, sizeof(val));",
"uint16_t qpci_io_readw(QPCIDevice *dev, void *data)",
" uintptr_t addr = (uintptr_t)data;",
" if (addr < QPCI_PIO_LIMIT) {",
" ... | uint16_t FUNC_0(QPCIDevice *dev, void *data)
{
uintptr_t addr = (uintptr_t)data;
if (addr < QPCI_PIO_LIMIT) {
return dev->bus->pio_readw(dev->bus, addr);
} else {
uint16_t val;
dev->bus->memread(dev->bus, addr, &val, sizeof(val));
return le16_to_cpu(val);
}
}
| [
"uint16_t FUNC_0(QPCIDevice *dev, void *data)\n{",
"uintptr_t addr = (uintptr_t)data;",
"if (addr < QPCI_PIO_LIMIT) {",
"return dev->bus->pio_readw(dev->bus, addr);",
"} else {",
"uint16_t val;",
"dev->bus->memread(dev->bus, addr, &val, sizeof(val));",
"return le16_to_cpu(val);",
"}",
"}"
] | [
1,
1,
1,
1,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
11,440 | int avfilter_config_links(AVFilterContext *filter)
{
int (*config_link)(AVFilterLink *);
unsigned i;
int ret;
for (i = 0; i < filter->nb_inputs; i ++) {
AVFilterLink *link = filter->inputs[i];
AVFilterLink *inlink = link->src->nb_inputs ?
link->src->inputs[0] : NULL... | false | FFmpeg | 0146c1f0f173417b2b90f35a2fdf87604cf9227a | int avfilter_config_links(AVFilterContext *filter)
{
int (*config_link)(AVFilterLink *);
unsigned i;
int ret;
for (i = 0; i < filter->nb_inputs; i ++) {
AVFilterLink *link = filter->inputs[i];
AVFilterLink *inlink = link->src->nb_inputs ?
link->src->inputs[0] : NULL... | {
"code": [],
"line_no": []
} | VAR_2intVAR_2 VAR_2avfilter_config_linksVAR_2(VAR_2AVFilterContextVAR_2 *VAR_2VAR_0VAR_2)
{
VAR_2intVAR_2 (*VAR_2VAR_1VAR_2)(VAR_2AVFilterLinkVAR_2 *);
VAR_2unsignedVAR_2 VAR_2iVAR_2;
VAR_2intVAR_2 VAR_2retVAR_2;
VAR_2forVAR_2 (VAR_2iVAR_2 = VAR_20VAR_2; VAR_2iVAR_2 < VAR_2VAR_0VAR_2->VAR_2nb_inp... | [
"VAR_2intVAR_2 VAR_2avfilter_config_linksVAR_2(VAR_2AVFilterContextVAR_2 *VAR_2VAR_0VAR_2)\n{",
"VAR_2intVAR_2 (*VAR_2VAR_1VAR_2)(VAR_2AVFilterLinkVAR_2 *);",
"VAR_2unsignedVAR_2 VAR_2iVAR_2;",
"VAR_2intVAR_2 VAR_2retVAR_2;",
"VAR_2forVAR_2 (VAR_2iVAR_2 = VAR_20VAR_2; VAR_2iVAR_2 < VAR_2VAR_0VAR_2->VAR_2nb_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
27
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
49,
51
],
[
55
],
[
57
],
[... |
11,441 | static inline void RENAME(bgr24ToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %2, %%"REG_a" \n\t"
"movq "MANGLE(bgr2YCoeff)", %%mm6 \n\t"
"movq "MANGLE(w1111)", %%mm5 \n\t"
"pxor %%mm7, %%mm7 \n\t"
"lea (%%"REG_a", %%"REG_a", 2), %%"REG_b"\n\t"
ASMALIGN16
... | false | FFmpeg | 4bff9ef9d0781c4de228bf1f85634d2706fc589b | static inline void RENAME(bgr24ToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %2, %%"REG_a" \n\t"
"movq "MANGLE(bgr2YCoeff)", %%mm6 \n\t"
"movq "MANGLE(w1111)", %%mm5 \n\t"
"pxor %%mm7, %%mm7 \n\t"
"lea (%%"REG_a", %%"REG_a", 2), %%"REG_b"\n\t"
ASMALIGN16
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(bgr24ToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %2, %%"REG_a" \n\t"
"movq "MANGLE(bgr2YCoeff)", %%mm6 \n\t"
"movq "MANGLE(w1111)", %%mm5 \n\t"
"pxor %%mm7, %%mm7 \n\t"
"lea (%%"REG_a", %%"REG_a", 2), %%"REG_b"\n\t"
ASMALIGN16
... | [
"static inline void FUNC_0(bgr24ToY)(uint8_t *dst, uint8_t *src, long width)\n{",
"#ifdef HAVE_MMX\nasm volatile(\n\"mov %2, %%\"REG_a\"\t\t\\n\\t\"\n\"movq \"MANGLE(bgr2YCoeff)\", %%mm6\t\t\\n\\t\"\n\"movq \"MANGLE(w1111)\", %%mm5\t\t\\n\\t\"\n\"pxor %%mm7, %%mm7\t\t\\n\\t\"\n\"lea (%%\"REG_a\", %%\"REG_a\", 2),... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69,
71,
75,
77,
79,... |
11,442 | static inline int decode_subframe(FLACContext *s, int channel)
{
int type, wasted = 0;
int i, tmp;
s->curr_bps = s->bps;
if (channel == 0) {
if (s->decorrelation == RIGHT_SIDE)
s->curr_bps++;
} else {
if (s->decorrelation == LEFT_SIDE || s->decorrelation == MID... | false | FFmpeg | a3d2379bdd821eec60f20ee3945047d659894bda | static inline int decode_subframe(FLACContext *s, int channel)
{
int type, wasted = 0;
int i, tmp;
s->curr_bps = s->bps;
if (channel == 0) {
if (s->decorrelation == RIGHT_SIDE)
s->curr_bps++;
} else {
if (s->decorrelation == LEFT_SIDE || s->decorrelation == MID... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(FLACContext *VAR_0, int VAR_1)
{
int VAR_2, VAR_3 = 0;
int VAR_6, VAR_5;
VAR_0->curr_bps = VAR_0->bps;
if (VAR_1 == 0) {
if (VAR_0->decorrelation == RIGHT_SIDE)
VAR_0->curr_bps++;
} else {
if (VAR_0->decorrelation == LEFT_SIDE || VAR_0-... | [
"static inline int FUNC_0(FLACContext *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"int VAR_6, VAR_5;",
"VAR_0->curr_bps = VAR_0->bps;",
"if (VAR_1 == 0) {",
"if (VAR_0->decorrelation == RIGHT_SIDE)\nVAR_0->curr_bps++;",
"} else {",
"if (VAR_0->decorrelation == LEFT_SIDE || VAR_0->decorrelation ==... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49... |
11,443 | static void unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb)
{
int bit = 0;
int current_superblock = 0;
int current_run = 0;
int decode_fully_flags = 0;
int decode_partial_blocks = 0;
int i, j;
int current_fragment;
debug_vp3(" vp3: unpacking superblock coding\n")... | false | FFmpeg | 892fc83e88a20f9543c6c5be3626712be7a2e6f2 | static void unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb)
{
int bit = 0;
int current_superblock = 0;
int current_run = 0;
int decode_fully_flags = 0;
int decode_partial_blocks = 0;
int i, j;
int current_fragment;
debug_vp3(" vp3: unpacking superblock coding\n")... | {
"code": [],
"line_no": []
} | static void FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1)
{
int VAR_2 = 0;
int VAR_3 = 0;
int VAR_4 = 0;
int VAR_5 = 0;
int VAR_6 = 0;
int VAR_7, VAR_8;
int VAR_9;
debug_vp3(" vp3: unpacking superblock coding\n");
if (VAR_0->keyframe) {
debug_vp3("... | [
"static void FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1)\n{",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"int VAR_6 = 0;",
"int VAR_7, VAR_8;",
"int VAR_9;",
"debug_vp3(\" vp3: unpacking superblock coding\\n\");",
"if (VAR_0->keyframe) {",
"debug_vp3(\" ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59,... |
11,445 | static int svq1_decode_delta_block(MpegEncContext *s, GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
int pitch, svq1_pmv *motion, int x, int y)
{
uint32_t block_type;
int result = 0;
/* get block type */
block_ty... | false | FFmpeg | 7b9fc769e40a7709fa59a54e2a810f76364eee4b | static int svq1_decode_delta_block(MpegEncContext *s, GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
int pitch, svq1_pmv *motion, int x, int y)
{
uint32_t block_type;
int result = 0;
block_type = get_vlc2(bitbuf... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1,
uint8_t *VAR_2, uint8_t *VAR_3,
int VAR_4, svq1_pmv *VAR_5, int VAR_6, int VAR_7)
{
uint32_t block_type;
int VAR_8 = 0;
block_type = get_vlc2(VAR_1, svq1_block_t... | [
"static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1,\nuint8_t *VAR_2, uint8_t *VAR_3,\nint VAR_4, svq1_pmv *VAR_5, int VAR_6, int VAR_7)\n{",
"uint32_t block_type;",
"int VAR_8 = 0;",
"block_type = get_vlc2(VAR_1, svq1_block_type.table, 2, 2);",
"if (block_type == SVQ1_BLOCK_SKIP || block_type ==... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
17
],
[
23
],
[
25,
27,
29,
31,
33,
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
51,
53,
55
],
[
59
],
[
61
],
[
63
],
[
65
... |
11,447 | int ff_h263_decode_mb(MpegEncContext *s,
DCTELEM block[6][64])
{
int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant;
INT16 *mot_val;
static INT8 quant_tab[4] = { -1, -2, 1, 2 };
s->error_status_table[s->mb_x + s->mb_y*s->mb_width]= 0;
if(s->mb_x==0) PRINT_MB_TYPE... | false | FFmpeg | 68f593b48433842f3407586679fe07f3e5199ab9 | int ff_h263_decode_mb(MpegEncContext *s,
DCTELEM block[6][64])
{
int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant;
INT16 *mot_val;
static INT8 quant_tab[4] = { -1, -2, 1, 2 };
s->error_status_table[s->mb_x + s->mb_y*s->mb_width]= 0;
if(s->mb_x==0) PRINT_MB_TYPE... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0,
DCTELEM VAR_1[6][64])
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
INT16 *mot_val;
static INT8 VAR_11[4] = { -1, -2, 1, 2 };
VAR_0->error_status_table[VAR_0->mb_x + VAR_0->mb_y*VAR_0->mb_width]= 0;
if(VAR_0->... | [
"int FUNC_0(MpegEncContext *VAR_0,\nDCTELEM VAR_1[6][64])\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"INT16 *mot_val;",
"static INT8 VAR_11[4] = { -1, -2, 1, 2 };",
"VAR_0->error_status_table[VAR_0->mb_x + VAR_0->mb_y*VAR_0->mb_width]= 0;",
"if(VAR_0->mb_x==0) PRINT_MB_TYP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.