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 |
|---|---|---|---|---|---|---|---|---|---|---|
741 | int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int force = whence & AVSEEK_FORCE;
int buffer_size;
int short_seek;
whence &= ~AVSEEK_FORCE;
if(!s)
buffer_size = s->buf_end - s->buffer;
// pos is the absolute position that ... | true | FFmpeg | eca2a49716ae1f42804dd3545da2f740edf03250 | int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int force = whence & AVSEEK_FORCE;
int buffer_size;
int short_seek;
whence &= ~AVSEEK_FORCE;
if(!s)
buffer_size = s->buf_end - s->buffer;
pos = s->pos - (s->write_flag ?... | {
"code": [],
"line_no": []
} | int64_t FUNC_0(AVIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int VAR_0 = whence & AVSEEK_FORCE;
int VAR_1;
int VAR_2;
whence &= ~AVSEEK_FORCE;
if(!s)
VAR_1 = s->buf_end - s->buffer;
pos = s->pos - (s->write_flag ? 0 : VAR_1);
... | [
"int64_t FUNC_0(AVIOContext *s, int64_t offset, int whence)\n{",
"int64_t offset1;",
"int64_t pos;",
"int VAR_0 = whence & AVSEEK_FORCE;",
"int VAR_1;",
"int VAR_2;",
"whence &= ~AVSEEK_FORCE;",
"if(!s)\nVAR_1 = s->buf_end - s->buffer;",
"pos = s->pos - (s->write_flag ? 0 : VAR_1);",
"if (whence !... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24
],
[
28
],
[
32,
37
],
[
39
],
[
41,
43
],
[
47
],
[
49
],
[
51,
56
],
[
58
],
[
62,
64
],
[... |
742 | static void coroutine_fn v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds"... | true | qemu | 49dd946bb5419681c8668b09a6d10f42bc707b78 | static void coroutine_fn v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds"... | {
"code": [
" BUG_ON(fidp->fid_type != P9_FID_NONE);",
" BUG_ON(fidp->fid_type != P9_FID_NONE);"
],
"line_no": [
65,
65
]
} | static void VAR_0 v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &fid,... | [
"static void VAR_0 v9fs_rename(void *opaque)\n{",
"int32_t fid;",
"ssize_t err = 0;",
"size_t offset = 7;",
"V9fsString name;",
"int32_t newdirfid;",
"V9fsFidState *fidp;",
"V9fsPDU *pdu = opaque;",
"V9fsState *s = pdu->s;",
"v9fs_string_init(&name);",
"err = pdu_unmarshal(pdu, offset, \"dds\", ... | [
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
743 | AVVDPAUContext *av_vdpau_alloc_context(void)
{
return av_mallocz(sizeof(AVVDPAUContext));
}
| true | FFmpeg | 3a6ded7cfcb33e06ade98c5791eae06453f65668 | AVVDPAUContext *av_vdpau_alloc_context(void)
{
return av_mallocz(sizeof(AVVDPAUContext));
}
| {
"code": [
" return av_mallocz(sizeof(AVVDPAUContext));"
],
"line_no": [
5
]
} | AVVDPAUContext *FUNC_0(void)
{
return av_mallocz(sizeof(AVVDPAUContext));
}
| [
"AVVDPAUContext *FUNC_0(void)\n{",
"return av_mallocz(sizeof(AVVDPAUContext));",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
744 | static AVBufferRef *pool_alloc_buffer(AVBufferPool *pool)
{
BufferPoolEntry *buf;
AVBufferRef *ret;
ret = pool->alloc(pool->size);
if (!ret)
return NULL;
buf = av_mallocz(sizeof(*buf));
if (!buf) {
av_buffer_unref(&ret);
return NULL;
}
buf->d... | true | FFmpeg | cea3a63ba3d89d8403eef008f7a7c54d645cff70 | static AVBufferRef *pool_alloc_buffer(AVBufferPool *pool)
{
BufferPoolEntry *buf;
AVBufferRef *ret;
ret = pool->alloc(pool->size);
if (!ret)
return NULL;
buf = av_mallocz(sizeof(*buf));
if (!buf) {
av_buffer_unref(&ret);
return NULL;
}
buf->d... | {
"code": [],
"line_no": []
} | static AVBufferRef *FUNC_0(AVBufferPool *pool)
{
BufferPoolEntry *buf;
AVBufferRef *ret;
ret = pool->alloc(pool->size);
if (!ret)
return NULL;
buf = av_mallocz(sizeof(*buf));
if (!buf) {
av_buffer_unref(&ret);
return NULL;
}
buf->data = ret... | [
"static AVBufferRef *FUNC_0(AVBufferPool *pool)\n{",
"BufferPoolEntry *buf;",
"AVBufferRef *ret;",
"ret = pool->alloc(pool->size);",
"if (!ret)\nreturn NULL;",
"buf = av_mallocz(sizeof(*buf));",
"if (!buf) {",
"av_buffer_unref(&ret);",
"return NULL;",
"}",
"buf->data = ret->buffer->data;",... | [
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
52
],
[
54
]
] |
745 | static void compute_frame_duration(int *pnum, int *pden, AVStream *st,
AVCodecParserContext *pc, AVPacket *pkt)
{
int frame_size;
*pnum = 0;
*pden = 0;
switch(st->codec.codec_type) {
case CODEC_TYPE_VIDEO:
if(st->time_base.num*1000 > st->time_bas... | true | FFmpeg | 1677155df8ee2dbf6c99738b289e27c2237506bd | static void compute_frame_duration(int *pnum, int *pden, AVStream *st,
AVCodecParserContext *pc, AVPacket *pkt)
{
int frame_size;
*pnum = 0;
*pden = 0;
switch(st->codec.codec_type) {
case CODEC_TYPE_VIDEO:
if(st->time_base.num*1000 > st->time_bas... | {
"code": [
" if(st->time_base.num*1000 > st->time_base.den){",
" }else if(st->codec.time_base.num*1000 > st->codec.time_base.den){"
],
"line_no": [
19,
25
]
} | static void FUNC_0(int *VAR_0, int *VAR_1, AVStream *VAR_2,
AVCodecParserContext *VAR_3, AVPacket *VAR_4)
{
int VAR_5;
*VAR_0 = 0;
*VAR_1 = 0;
switch(VAR_2->codec.codec_type) {
case CODEC_TYPE_VIDEO:
if(VAR_2->time_base.num*1000 > VAR_2->time_bas... | [
"static void FUNC_0(int *VAR_0, int *VAR_1, AVStream *VAR_2,\nAVCodecParserContext *VAR_3, AVPacket *VAR_4)\n{",
"int VAR_5;",
"*VAR_0 = 0;",
"*VAR_1 = 0;",
"switch(VAR_2->codec.codec_type) {",
"case CODEC_TYPE_VIDEO:\nif(VAR_2->time_base.num*1000 > VAR_2->time_base.den){",
"*VAR_0 = VAR_2->time_base.nu... | [
0,
0,
0,
0,
0,
1,
0,
0,
1,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
... |
746 | static int vdi_check(BlockDriverState *bs)
{
/* TODO: additional checks possible. */
BDRVVdiState *s = (BDRVVdiState *)bs->opaque;
int n_errors = 0;
uint32_t blocks_allocated = 0;
uint32_t block;
uint32_t *bmap;
logout("\n");
bmap = qemu_malloc(s->header.blocks_in_image * size... | true | qemu | 9ac228e02cf16202547e7025ef300369e0db7781 | static int vdi_check(BlockDriverState *bs)
{
BDRVVdiState *s = (BDRVVdiState *)bs->opaque;
int n_errors = 0;
uint32_t blocks_allocated = 0;
uint32_t block;
uint32_t *bmap;
logout("\n");
bmap = qemu_malloc(s->header.blocks_in_image * sizeof(uint32_t));
memset(bmap, 0xff, ... | {
"code": [
"static int vdi_check(BlockDriverState *bs)",
" int n_errors = 0;",
" n_errors++;",
" n_errors++;",
" return n_errors;"
],
"line_no": [
1,
9,
57,
73,
83
]
} | static int FUNC_0(BlockDriverState *VAR_0)
{
BDRVVdiState *s = (BDRVVdiState *)VAR_0->opaque;
int VAR_1 = 0;
uint32_t blocks_allocated = 0;
uint32_t block;
uint32_t *bmap;
logout("\n");
bmap = qemu_malloc(s->header.blocks_in_image * sizeof(uint32_t));
memset(bmap, 0xff, ... | [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"BDRVVdiState *s = (BDRVVdiState *)VAR_0->opaque;",
"int VAR_1 = 0;",
"uint32_t blocks_allocated = 0;",
"uint32_t block;",
"uint32_t *bmap;",
"logout(\"\\n\");",
"bmap = qemu_malloc(s->header.blocks_in_image * sizeof(uint32_t));",
"memset(bmap, 0xff, ... | [
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
... |
749 | static void submit_pdu(V9fsState *s, V9fsPDU *pdu)
{
pdu_handler_t *handler;
if (debug_9p_pdu) {
pprint_pdu(pdu);
}
BUG_ON(pdu->id >= ARRAY_SIZE(pdu_handlers));
handler = pdu_handlers[pdu->id];
BUG_ON(handler == NULL);
handler(s, pdu);
}
| true | qemu | 5c3234c6c037943bd4c2d643a1b8cc35f563dbdb | static void submit_pdu(V9fsState *s, V9fsPDU *pdu)
{
pdu_handler_t *handler;
if (debug_9p_pdu) {
pprint_pdu(pdu);
}
BUG_ON(pdu->id >= ARRAY_SIZE(pdu_handlers));
handler = pdu_handlers[pdu->id];
BUG_ON(handler == NULL);
handler(s, pdu);
}
| {
"code": [
" BUG_ON(pdu->id >= ARRAY_SIZE(pdu_handlers));",
" handler = pdu_handlers[pdu->id];",
" BUG_ON(handler == NULL);"
],
"line_no": [
17,
21,
23
]
} | static void FUNC_0(V9fsState *VAR_0, V9fsPDU *VAR_1)
{
pdu_handler_t *handler;
if (debug_9p_pdu) {
pprint_pdu(VAR_1);
}
BUG_ON(VAR_1->id >= ARRAY_SIZE(pdu_handlers));
handler = pdu_handlers[VAR_1->id];
BUG_ON(handler == NULL);
handler(VAR_0, VAR_1);
}
| [
"static void FUNC_0(V9fsState *VAR_0, V9fsPDU *VAR_1)\n{",
"pdu_handler_t *handler;",
"if (debug_9p_pdu) {",
"pprint_pdu(VAR_1);",
"}",
"BUG_ON(VAR_1->id >= ARRAY_SIZE(pdu_handlers));",
"handler = pdu_handlers[VAR_1->id];",
"BUG_ON(handler == NULL);",
"handler(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
750 | uint64_t helper_addqv (uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| true | qemu | 2958620f67dcfd11476e62b4ca704dae0b978ea3 | uint64_t helper_addqv (uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| {
"code": [
"uint64_t helper_addqv (uint64_t op1, uint64_t op2)",
" uint64_t tmp = op1;",
" op1 += op2;",
" if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {",
" arith_excp(env, GETPC(), EXC_M_IOV, 0);",
" return op1;",
" uint64_t tmp = op1;",
" ... | uint64_t FUNC_0 (uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| [
"uint64_t FUNC_0 (uint64_t op1, uint64_t op2)\n{",
"uint64_t tmp = op1;",
"op1 += op2;",
"if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {",
"arith_excp(env, GETPC(), EXC_M_IOV, 0);",
"}",
"return op1;",
"}"
] | [
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
751 | static void cirrus_mem_writeb_mode4and5_8bpp(CirrusVGAState * s,
unsigned mode,
unsigned offset,
uint32_t mem_value)
{
int x;
unsigned val = mem_value;
uint8_t *dst;
dst = s->vram_ptr + offset;
for (x = 0; x < 8; x++) {
if (val & 0x80) {
*dst = s->cir... | true | qemu | b2eb849d4b1fdb6f35d5c46958c7f703cf64cfef | static void cirrus_mem_writeb_mode4and5_8bpp(CirrusVGAState * s,
unsigned mode,
unsigned offset,
uint32_t mem_value)
{
int x;
unsigned val = mem_value;
uint8_t *dst;
dst = s->vram_ptr + offset;
for (x = 0; x < 8; x++) {
if (val & 0x80) {
*dst = s->cir... | {
"code": [
" dst = s->vram_ptr + offset;",
" dst = s->vram_ptr + offset;"
],
"line_no": [
19,
19
]
} | static void FUNC_0(CirrusVGAState * VAR_0,
unsigned VAR_1,
unsigned VAR_2,
uint32_t VAR_3)
{
int VAR_4;
unsigned VAR_5 = VAR_3;
uint8_t *dst;
dst = VAR_0->vram_ptr + VAR_2;
for (VAR_4 = 0; VAR_4 < 8; VAR_4++) {
if (VAR_5 & 0x80) {
*dst = VAR_0->cirrus... | [
"static void FUNC_0(CirrusVGAState * VAR_0,\nunsigned VAR_1,\nunsigned VAR_2,\nuint32_t VAR_3)\n{",
"int VAR_4;",
"unsigned VAR_5 = VAR_3;",
"uint8_t *dst;",
"dst = VAR_0->vram_ptr + VAR_2;",
"for (VAR_4 = 0; VAR_4 < 8; VAR_4++) {",
"if (VAR_5 & 0x80) {",
"*dst = VAR_0->cirrus_shadow_gr1;",
"} else ... | [
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
752 | void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
CPUState *cpu, TranslationBlock *tb)
{
int max_insns;
/* Initialize DisasContext */
db->tb = tb;
db->pc_first = tb->pc;
db->pc_next = db->pc_first;
db->is_jmp = DISAS_NEXT;
db->num_insns = 0;... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
CPUState *cpu, TranslationBlock *tb)
{
int max_insns;
db->tb = tb;
db->pc_first = tb->pc;
db->pc_next = db->pc_first;
db->is_jmp = DISAS_NEXT;
db->num_insns = 0;
db->singlestep_enabled ... | {
"code": [
" max_insns = db->tb->cflags & CF_COUNT_MASK;",
" if (db->num_insns == max_insns && (db->tb->cflags & CF_LAST_IO)) {"
],
"line_no": [
29,
129
]
} | void FUNC_0(const TranslatorOps *VAR_0, DisasContextBase *VAR_1,
CPUState *VAR_2, TranslationBlock *VAR_3)
{
int VAR_4;
VAR_1->VAR_3 = VAR_3;
VAR_1->pc_first = VAR_3->pc;
VAR_1->pc_next = VAR_1->pc_first;
VAR_1->is_jmp = DISAS_NEXT;
VAR_1->num_insns = 0;
... | [
"void FUNC_0(const TranslatorOps *VAR_0, DisasContextBase *VAR_1,\nCPUState *VAR_2, TranslationBlock *VAR_3)\n{",
"int VAR_4;",
"VAR_1->VAR_3 = VAR_3;",
"VAR_1->pc_first = VAR_3->pc;",
"VAR_1->pc_next = VAR_1->pc_first;",
"VAR_1->is_jmp = DISAS_NEXT;",
"VAR_1->num_insns = 0;",
"VAR_1->singlestep_enabl... | [
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,
1,
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
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
753 | static int load_apply_palette(FFFrameSync *fs)
{
AVFilterContext *ctx = fs->parent;
AVFilterLink *inlink = ctx->inputs[0];
PaletteUseContext *s = ctx->priv;
AVFrame *master, *second, *out = NULL;
int ret;
// writable for error diffusal dithering
ret = ff_framesync_dualinput_get_wri... | true | FFmpeg | 631fa0432be8968e0fd372595749b918224946df | static int load_apply_palette(FFFrameSync *fs)
{
AVFilterContext *ctx = fs->parent;
AVFilterLink *inlink = ctx->inputs[0];
PaletteUseContext *s = ctx->priv;
AVFrame *master, *second, *out = NULL;
int ret;
ret = ff_framesync_dualinput_get_writable(fs, &master, &second);
if (re... | {
"code": [
" av_frame_free(&second);"
],
"line_no": [
53
]
} | static int FUNC_0(FFFrameSync *VAR_0)
{
AVFilterContext *ctx = VAR_0->parent;
AVFilterLink *inlink = ctx->inputs[0];
PaletteUseContext *s = ctx->priv;
AVFrame *master, *second, *out = NULL;
int VAR_1;
VAR_1 = ff_framesync_dualinput_get_writable(VAR_0, &master, &second);
if (V... | [
"static int FUNC_0(FFFrameSync *VAR_0)\n{",
"AVFilterContext *ctx = VAR_0->parent;",
"AVFilterLink *inlink = ctx->inputs[0];",
"PaletteUseContext *s = ctx->priv;",
"AVFrame *master, *second, *out = NULL;",
"int VAR_1;",
"VAR_1 = ff_framesync_dualinput_get_writable(VAR_0, &master, &second);",
"if (VAR_... | [
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
],
[
13
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
49,... |
755 | void avfilter_uninit(void)
{
memset(registered_avfilters, 0, sizeof(registered_avfilters));
next_registered_avfilter_idx = 0;
}
| false | FFmpeg | fa2a34cd40d124161c748bb0f430dc63c94dd0da | void avfilter_uninit(void)
{
memset(registered_avfilters, 0, sizeof(registered_avfilters));
next_registered_avfilter_idx = 0;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
memset(registered_avfilters, 0, sizeof(registered_avfilters));
next_registered_avfilter_idx = 0;
}
| [
"void FUNC_0(void)\n{",
"memset(registered_avfilters, 0, sizeof(registered_avfilters));",
"next_registered_avfilter_idx = 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
756 | int pcm_read_seek(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
AVStream *st;
int block_align, byte_rate;
int64_t pos;
st = s->streams[0];
block_align = st->codec->block_align ? st->codec->block_align :
(av_get_bits_per_sample(st->codec->... | false | FFmpeg | d701934bef6ff6868c0a2179b7b9105c7a49b41f | int pcm_read_seek(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
AVStream *st;
int block_align, byte_rate;
int64_t pos;
st = s->streams[0];
block_align = st->codec->block_align ? st->codec->block_align :
(av_get_bits_per_sample(st->codec->... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0,
int VAR_1, int64_t VAR_2, int VAR_3)
{
AVStream *st;
int VAR_4, VAR_5;
int64_t pos;
st = VAR_0->streams[0];
VAR_4 = st->codec->VAR_4 ? st->codec->VAR_4 :
(av_get_bits_per_sample(st->codec->codec_id) * st->codec->channels) >> 3;... | [
"int FUNC_0(AVFormatContext *VAR_0,\nint VAR_1, int64_t VAR_2, int VAR_3)\n{",
"AVStream *st;",
"int VAR_4, VAR_5;",
"int64_t pos;",
"st = VAR_0->streams[0];",
"VAR_4 = st->codec->VAR_4 ? st->codec->VAR_4 :\n(av_get_bits_per_sample(st->codec->codec_id) * st->codec->channels) >> 3;",
"VAR_5 = st->codec->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23,
25
],
[
29,
31
],
[
37,
39,
41,
43
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
]
] |
758 | void show_pix_fmts(void)
{
list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
}
| false | FFmpeg | 9cb5c760d73e08bcd5d441d261abe67d472e98ee | void show_pix_fmts(void)
{
list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
}
| [
"void FUNC_0(void)\n{",
"list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
759 | static int spdif_get_offset_and_codec(AVFormatContext *s,
enum IEC61937DataType data_type,
const char *buf, int *offset,
enum AVCodecID *codec)
{
AACADTSHeaderInfo aac_hdr;
GetBitContext gbc;
... | false | FFmpeg | f86387b6c2b11650cb9d5a8fd886be76e48c665b | static int spdif_get_offset_and_codec(AVFormatContext *s,
enum IEC61937DataType data_type,
const char *buf, int *offset,
enum AVCodecID *codec)
{
AACADTSHeaderInfo aac_hdr;
GetBitContext gbc;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
enum IEC61937DataType VAR_1,
const char *VAR_2, int *VAR_3,
enum AVCodecID *VAR_4)
{
AACADTSHeaderInfo aac_hdr;
GetBitContext gbc;
switch (VAR_... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nenum IEC61937DataType VAR_1,\nconst char *VAR_2, int *VAR_3,\nenum AVCodecID *VAR_4)\n{",
"AACADTSHeaderInfo aac_hdr;",
"GetBitContext gbc;",
"switch (VAR_1 & 0xff) {",
"case IEC61937_AC3:\n*VAR_3 = AC3_FRAME_SIZE << 2;",
"*VAR_4 = AV_CODEC_ID_AC3;",
"break;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
760 | static av_cold int seqvideo_decode_init(AVCodecContext *avctx)
{
SeqVideoContext *seq = avctx->priv_data;
seq->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
seq->frame.data[0] = NULL;
return 0;
}
| false | FFmpeg | 3b199d29cd597a3518136d78860e172060b9e83d | static av_cold int seqvideo_decode_init(AVCodecContext *avctx)
{
SeqVideoContext *seq = avctx->priv_data;
seq->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
seq->frame.data[0] = NULL;
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
SeqVideoContext *seq = avctx->priv_data;
seq->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
seq->frame.data[0] = NULL;
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"SeqVideoContext *seq = avctx->priv_data;",
"seq->avctx = avctx;",
"avctx->pix_fmt = AV_PIX_FMT_PAL8;",
"seq->frame.data[0] = NULL;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
]
] |
761 | void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec)
{
int i;
void *priv_ctx=NULL;
if(!strcmp("AVCodecContext", (*(AVClass**)ctx)->class_name)){
AVCodecContext *avctx= ctx;
if(codec && codec->priv_class && avctx->priv_data){
priv_ctx= avctx->priv_dat... | false | FFmpeg | d319064465e148b8adb53d1ea5d38c09f987056e | void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec)
{
int i;
void *priv_ctx=NULL;
if(!strcmp("AVCodecContext", (*(AVClass**)ctx)->class_name)){
AVCodecContext *avctx= ctx;
if(codec && codec->priv_class && avctx->priv_data){
priv_ctx= avctx->priv_dat... | {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2, AVCodec *VAR_3)
{
int VAR_4;
void *VAR_5=NULL;
if(!strcmp("AVCodecContext", (*(AVClass**)VAR_0)->class_name)){
AVCodecContext *avctx= VAR_0;
if(VAR_3 && VAR_3->priv_class && avctx->priv_data){
VAR_5= avctx->priv_data;
... | [
"void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2, AVCodec *VAR_3)\n{",
"int VAR_4;",
"void *VAR_5=NULL;",
"if(!strcmp(\"AVCodecContext\", (*(AVClass**)VAR_0)->class_name)){",
"AVCodecContext *avctx= VAR_0;",
"if(VAR_3 && VAR_3->priv_class && avctx->priv_data){",
"VAR_5= avctx->priv_data;",
"}",
"} e... | [
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[... |
762 | int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame,
int64_t pts, AVRational pixel_aspect)
{
BufferSourceContext *c = buffer_filter->priv;
AVFilterBufferRef *buf;
int ret;
if (!buf) {
c->eof = 1;
return 0;
} else if (c->... | false | FFmpeg | 7bf9e3391fa21d90ff283fc03a12287fe73db9e8 | int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame,
int64_t pts, AVRational pixel_aspect)
{
BufferSourceContext *c = buffer_filter->priv;
AVFilterBufferRef *buf;
int ret;
if (!buf) {
c->eof = 1;
return 0;
} else if (c->... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1,
int64_t VAR_2, AVRational VAR_3)
{
BufferSourceContext *c = VAR_0->priv;
AVFilterBufferRef *buf;
int VAR_4;
if (!buf) {
c->eof = 1;
return 0;
} else if (c->eof)
return AVERROR(EINVAL);... | [
"int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1,\nint64_t VAR_2, AVRational VAR_3)\n{",
"BufferSourceContext *c = VAR_0->priv;",
"AVFilterBufferRef *buf;",
"int VAR_4;",
"if (!buf) {",
"c->eof = 1;",
"return 0;",
"} else if (c->eof)",
"return AVERROR(EINVAL);",
"if (!av_fifo_space(c->fifo) &&\n... | [
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
],
[
37
],
[
41,
43
],
[
45,
47
],
[
51
],
[
53
],
[
55
],
[
59
... |
763 | static int decode_byterun(uint8_t *dst, int dst_size,
const uint8_t *buf, const uint8_t *const buf_end)
{
const uint8_t *const buf_start = buf;
unsigned x;
for (x = 0; x < dst_size && buf < buf_end;) {
unsigned length;
const int8_t value = *buf++;
if... | true | FFmpeg | 4843227b2ca6876d07caddddd62e58e52d67e94f | static int decode_byterun(uint8_t *dst, int dst_size,
const uint8_t *buf, const uint8_t *const buf_end)
{
const uint8_t *const buf_start = buf;
unsigned x;
for (x = 0; x < dst_size && buf < buf_end;) {
unsigned length;
const int8_t value = *buf++;
if... | {
"code": [
" length = value + 1;",
" memcpy(dst + x, buf, FFMIN3(length, dst_size - x, buf_end - buf));",
" length = -value + 1;",
" memset(dst + x, *buf++, FFMIN(length, dst_size - x));"
],
"line_no": [
19,
21,
27,
29
]
} | static int FUNC_0(uint8_t *VAR_0, int VAR_1,
const uint8_t *VAR_2, const uint8_t *const VAR_3)
{
const uint8_t *const VAR_4 = VAR_2;
unsigned VAR_5;
for (VAR_5 = 0; VAR_5 < VAR_1 && VAR_2 < VAR_3;) {
unsigned length;
const int8_t value = *VAR_2++;
if... | [
"static int FUNC_0(uint8_t *VAR_0, int VAR_1,\nconst uint8_t *VAR_2, const uint8_t *const VAR_3)\n{",
"const uint8_t *const VAR_4 = VAR_2;",
"unsigned VAR_5;",
"for (VAR_5 = 0; VAR_5 < VAR_1 && VAR_2 < VAR_3;) {",
"unsigned length;",
"const int8_t value = *VAR_2++;",
"if (value >= 0) {",
"length = val... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
1,
1,
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
],
[... |
764 | uint64_t blk_mig_bytes_total(void)
{
BlkMigDevState *bmds;
uint64_t sum = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
sum += bmds->total_sectors;
}
return sum << BDRV_SECTOR_BITS;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | uint64_t blk_mig_bytes_total(void)
{
BlkMigDevState *bmds;
uint64_t sum = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
sum += bmds->total_sectors;
}
return sum << BDRV_SECTOR_BITS;
}
| {
"code": [],
"line_no": []
} | uint64_t FUNC_0(void)
{
BlkMigDevState *bmds;
uint64_t sum = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
sum += bmds->total_sectors;
}
return sum << BDRV_SECTOR_BITS;
}
| [
"uint64_t FUNC_0(void)\n{",
"BlkMigDevState *bmds;",
"uint64_t sum = 0;",
"QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {",
"sum += bmds->total_sectors;",
"}",
"return sum << BDRV_SECTOR_BITS;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
765 | theora_header (AVFormatContext * s, int idx)
{
struct ogg *ogg = s->priv_data;
struct ogg_stream *os = ogg->streams + idx;
AVStream *st = s->streams[idx];
struct theora_params *thp = os->private;
int cds = st->codec->extradata_size + os->psize + 2;
uint8_t *cdp;
if(!(os->buf[os->ps... | true | FFmpeg | 11d058b7b351db8fb73104c847c5cc43b91735c6 | theora_header (AVFormatContext * s, int idx)
{
struct ogg *ogg = s->priv_data;
struct ogg_stream *os = ogg->streams + idx;
AVStream *st = s->streams[idx];
struct theora_params *thp = os->private;
int cds = st->codec->extradata_size + os->psize + 2;
uint8_t *cdp;
if(!(os->buf[os->ps... | {
"code": [],
"line_no": []
} | FUNC_0 (AVFormatContext * VAR_0, int VAR_1)
{
struct VAR_2 *VAR_2 = VAR_0->priv_data;
struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;
AVStream *st = VAR_0->streams[VAR_1];
struct theora_params *VAR_4 = VAR_3->private;
int VAR_5 = st->codec->extradata_size + VAR_3->psize + 2;
uint8_t *c... | [
"FUNC_0 (AVFormatContext * VAR_0, int VAR_1)\n{",
"struct VAR_2 *VAR_2 = VAR_0->priv_data;",
"struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;",
"AVStream *st = VAR_0->streams[VAR_1];",
"struct theora_params *VAR_4 = VAR_3->private;",
"int VAR_5 = st->codec->extradata_size + VAR_3->psize + 2;",
"uint8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
34
],
[
36
],
[
38
],
[
42
],
[
46
],
[
50
],
[
52,
54
],
[
56,... |
766 | static TAPState *net_tap_fd_init(VLANState *vlan,
const char *model,
const char *name,
int fd)
{
TAPState *s;
s = qemu_mallocz(sizeof(TAPState));
s->fd = fd;
s->vc = qemu_new_vlan_client(vlan, mo... | true | qemu | b946a1533209f61a93e34898aebb5b43154b99c3 | static TAPState *net_tap_fd_init(VLANState *vlan,
const char *model,
const char *name,
int fd)
{
TAPState *s;
s = qemu_mallocz(sizeof(TAPState));
s->fd = fd;
s->vc = qemu_new_vlan_client(vlan, mo... | {
"code": [
" s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);",
" s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);"
],
"line_no": [
19,
19
]
} | static TAPState *FUNC_0(VLANState *vlan,
const char *model,
const char *name,
int fd)
{
TAPState *s;
s = qemu_mallocz(sizeof(TAPState));
s->fd = fd;
s->vc = qemu_new_vlan_client(vlan, model, name... | [
"static TAPState *FUNC_0(VLANState *vlan,\nconst char *model,\nconst char *name,\nint fd)\n{",
"TAPState *s;",
"s = qemu_mallocz(sizeof(TAPState));",
"s->fd = fd;",
"s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);",
"s->vc->fd_readv = tap_receive_iov;",
"qemu_set_fd_handler(s->fd,... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
769 | static int write_refcount_block_entries(BlockDriverState *bs,
int64_t refcount_block_offset, int first_index, int last_index)
{
BDRVQcowState *s = bs->opaque;
size_t size;
int ret;
if (cache_refcount_updates) {
return 0;
}
if (first_index < 0) {
return 0;
}... | true | qemu | 8b3b720620a1137a1b794fc3ed64734236f94e06 | static int write_refcount_block_entries(BlockDriverState *bs,
int64_t refcount_block_offset, int first_index, int last_index)
{
BDRVQcowState *s = bs->opaque;
size_t size;
int ret;
if (cache_refcount_updates) {
return 0;
}
if (first_index < 0) {
return 0;
}... | {
"code": [
" ret = bdrv_pwrite(bs->file,"
],
"line_no": [
45
]
} | static int FUNC_0(BlockDriverState *VAR_0,
int64_t VAR_1, int VAR_2, int VAR_3)
{
BDRVQcowState *s = VAR_0->opaque;
size_t size;
int VAR_4;
if (cache_refcount_updates) {
return 0;
}
if (VAR_2 < 0) {
return 0;
}
VAR_2 &= ~(REFCOUNTS_PER_SECTOR - 1);
... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, int VAR_2, int VAR_3)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"size_t size;",
"int VAR_4;",
"if (cache_refcount_updates) {",
"return 0;",
"}",
"if (VAR_2 < 0) {",
"return 0;",
"}",
"VAR_2 &= ~(REFCOUNTS_PER_SECTOR - 1);",
"VAR_3 = (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
39
],
[
43
],
[
45,
47,
49
],
[
51
],
[
53
],
[
55
... |
770 | static int t15(InterplayACMContext *s, unsigned ind, unsigned col)
{
GetBitContext *gb = &s->gb;
unsigned i, b;
int n1, n2, n3;
for (i = 0; i < s->rows; i++) {
/* b = (x1) + (x2 * 3) + (x3 * 9) */
b = get_bits(gb, 5);
n1 = (mul_3x3[b] & 0x0F) - 1;
n2 = (... | true | FFmpeg | 14e4e26559697cfdea584767be4e68474a0a9c7f | static int t15(InterplayACMContext *s, unsigned ind, unsigned col)
{
GetBitContext *gb = &s->gb;
unsigned i, b;
int n1, n2, n3;
for (i = 0; i < s->rows; i++) {
b = get_bits(gb, 5);
n1 = (mul_3x3[b] & 0x0F) - 1;
n2 = ((mul_3x3[b] >> 4) & 0x0F) - 1;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(InterplayACMContext *VAR_0, unsigned VAR_1, unsigned VAR_2)
{
GetBitContext *gb = &VAR_0->gb;
unsigned VAR_3, VAR_4;
int VAR_5, VAR_6, VAR_7;
for (VAR_3 = 0; VAR_3 < VAR_0->rows; VAR_3++) {
VAR_4 = get_bits(gb, 5);
VAR_5 = (mul_3x3[VAR_4] & 0x0... | [
"static int FUNC_0(InterplayACMContext *VAR_0, unsigned VAR_1, unsigned VAR_2)\n{",
"GetBitContext *gb = &VAR_0->gb;",
"unsigned VAR_3, VAR_4;",
"int VAR_5, VAR_6, VAR_7;",
"for (VAR_3 = 0; VAR_3 < VAR_0->rows; VAR_3++) {",
"VAR_4 = get_bits(gb, 5);",
"VAR_5 = (mul_3x3[VAR_4] & 0x0F) - 1;",
"VAR_6 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
48
]
] |
773 | void do_load_6xx_tlb (int is_code)
{
target_ulong RPN, CMP, EPN;
int way;
RPN = env->spr[SPR_RPA];
if (is_code) {
CMP = env->spr[SPR_ICMP];
EPN = env->spr[SPR_IMISS];
} else {
CMP = env->spr[SPR_DCMP];
EPN = env->spr[SPR_DMISS];
}
way = (env-... | true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void do_load_6xx_tlb (int is_code)
{
target_ulong RPN, CMP, EPN;
int way;
RPN = env->spr[SPR_RPA];
if (is_code) {
CMP = env->spr[SPR_ICMP];
EPN = env->spr[SPR_IMISS];
} else {
CMP = env->spr[SPR_DCMP];
EPN = env->spr[SPR_DMISS];
}
way = (env-... | {
"code": [
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
"#endif",
" ppc6xx_tlb_store(env, T0 & TARGET_PAGE_MASK, way, is_code, CMP, RPN);",
"#endif... | void FUNC_0 (int VAR_0)
{
target_ulong RPN, CMP, EPN;
int VAR_1;
RPN = env->spr[SPR_RPA];
if (VAR_0) {
CMP = env->spr[SPR_ICMP];
EPN = env->spr[SPR_IMISS];
} else {
CMP = env->spr[SPR_DCMP];
EPN = env->spr[SPR_DMISS];
}
VAR_1 = (env->spr[SPR_... | [
"void FUNC_0 (int VAR_0)\n{",
"target_ulong RPN, CMP, EPN;",
"int VAR_1;",
"RPN = env->spr[SPR_RPA];",
"if (VAR_0) {",
"CMP = env->spr[SPR_ICMP];",
"EPN = env->spr[SPR_IMISS];",
"} else {",
"CMP = env->spr[SPR_DCMP];",
"EPN = env->spr[SPR_DMISS];",
"}",
"VAR_1 = (env->spr[SPR_SRR1] >> 17) & 1;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35,
37
],
[
39
],
[
41,
45
],
[
47
]
] |
774 | void helper_dcbz(CPUPPCState *env, target_ulong addr, uint32_t is_dcbzl)
{
int dcbz_size = env->dcache_line_size;
#if defined(TARGET_PPC64)
if (!is_dcbzl &&
(env->excp_model == POWERPC_EXCP_970) &&
((env->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {
dcbz_size = 32;
}
#endif
... | true | qemu | c9f82d013be0d8d9c5d9f51bb76e337a0a5a5cac | void helper_dcbz(CPUPPCState *env, target_ulong addr, uint32_t is_dcbzl)
{
int dcbz_size = env->dcache_line_size;
#if defined(TARGET_PPC64)
if (!is_dcbzl &&
(env->excp_model == POWERPC_EXCP_970) &&
((env->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {
dcbz_size = 32;
}
#endif
... | {
"code": [
"void helper_dcbz(CPUPPCState *env, target_ulong addr, uint32_t is_dcbzl)",
" int dcbz_size = env->dcache_line_size;",
" if (!is_dcbzl &&",
" (env->excp_model == POWERPC_EXCP_970) &&",
" ((env->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {",
" do_dcbz(env, addr, dcb... | void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2)
{
int VAR_3 = VAR_0->dcache_line_size;
#if defined(TARGET_PPC64)
if (!VAR_2 &&
(VAR_0->excp_model == POWERPC_EXCP_970) &&
((VAR_0->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {
VAR_3 = 32;
}
#endif
... | [
"void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2)\n{",
"int VAR_3 = VAR_0->dcache_line_size;",
"#if defined(TARGET_PPC64)\nif (!VAR_2 &&\n(VAR_0->excp_model == POWERPC_EXCP_970) &&\n((VAR_0->spr[SPR_970_HID5] >> 7) & 0x3) == 1) {",
"VAR_3 = 32;",
"}",
"#endif\ndo_dcbz(VAR_0, VAR_1, VAR_... | [
1,
1,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13,
15
],
[
17
],
[
19
],
[
21,
29
],
[
31
]
] |
775 | envlist_create(void)
{
envlist_t *envlist;
if ((envlist = malloc(sizeof (*envlist))) == NULL)
return (NULL);
QLIST_INIT(&envlist->el_entries);
envlist->el_count = 0;
return (envlist);
}
| true | qemu | ec45bbe5f1921c6553fbf9c0c76b358b0403c22d | envlist_create(void)
{
envlist_t *envlist;
if ((envlist = malloc(sizeof (*envlist))) == NULL)
return (NULL);
QLIST_INIT(&envlist->el_entries);
envlist->el_count = 0;
return (envlist);
}
| {
"code": [
"\tif ((envlist = malloc(sizeof (*envlist))) == NULL)",
"\t\treturn (NULL);",
"\t\treturn (NULL);"
],
"line_no": [
9,
11,
11
]
} | FUNC_0(void)
{
envlist_t *envlist;
if ((envlist = malloc(sizeof (*envlist))) == NULL)
return (NULL);
QLIST_INIT(&envlist->el_entries);
envlist->el_count = 0;
return (envlist);
}
| [
"FUNC_0(void)\n{",
"envlist_t *envlist;",
"if ((envlist = malloc(sizeof (*envlist))) == NULL)\nreturn (NULL);",
"QLIST_INIT(&envlist->el_entries);",
"envlist->el_count = 0;",
"return (envlist);",
"}"
] | [
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
776 | static void gen_ori(DisasContext *ctx)
{
target_ulong uimm = UIMM(ctx->opcode);
if (rS(ctx->opcode) == rA(ctx->opcode) && uimm == 0) {
/* NOP */
/* XXX: should handle special NOPs for POWER series */
return;
}
tcg_gen_ori_tl(cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opc... | true | qemu | b68e60e6f0d2865e961a800fb8db96a7fc6494c4 | static void gen_ori(DisasContext *ctx)
{
target_ulong uimm = UIMM(ctx->opcode);
if (rS(ctx->opcode) == rA(ctx->opcode) && uimm == 0) {
return;
}
tcg_gen_ori_tl(cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)], uimm);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
target_ulong uimm = UIMM(VAR_0->opcode);
if (rS(VAR_0->opcode) == rA(VAR_0->opcode) && uimm == 0) {
return;
}
tcg_gen_ori_tl(cpu_gpr[rA(VAR_0->opcode)], cpu_gpr[rS(VAR_0->opcode)], uimm);
}
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"target_ulong uimm = UIMM(VAR_0->opcode);",
"if (rS(VAR_0->opcode) == rA(VAR_0->opcode) && uimm == 0) {",
"return;",
"}",
"tcg_gen_ori_tl(cpu_gpr[rA(VAR_0->opcode)], cpu_gpr[rS(VAR_0->opcode)], uimm);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
777 | static void close(AVCodecParserContext *s)
{
H264Context *h = s->priv_data;
ParseContext *pc = &h->s.parse_context;
av_free(pc->buffer);
} | true | FFmpeg | 15861962a7a9e64fbe75f5cc0dc7d1c032db8dd5 | static void close(AVCodecParserContext *s)
{
H264Context *h = s->priv_data;
ParseContext *pc = &h->s.parse_context;
av_free(pc->buffer);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(AVCodecParserContext *VAR_0)
{
H264Context *h = VAR_0->priv_data;
ParseContext *pc = &h->VAR_0.parse_context;
av_free(pc->buffer);
} | [
"static void FUNC_0(AVCodecParserContext *VAR_0)\n{",
"H264Context *h = VAR_0->priv_data;",
"ParseContext *pc = &h->VAR_0.parse_context;",
"av_free(pc->buffer);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
14
]
] |
778 | static void sch_handle_start_func(SubchDev *sch, ORB *orb)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int path;
int ret;
/* Path management: In our simple css, we always choose the only path. */
path = 0x80;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
... | true | qemu | 6b7741c2bedeae2e8c54fffce81723ca0a0c25c0 | static void sch_handle_start_func(SubchDev *sch, ORB *orb)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int path;
int ret;
path = 0x80;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
assert(orb != NULL);
p->intparm = orb->intparm;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(SubchDev *VAR_0, ORB *VAR_1)
{
PMCW *p = &VAR_0->curr_status.pmcw;
SCSW *s = &VAR_0->curr_status.scsw;
int VAR_2;
int VAR_3;
VAR_2 = 0x80;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
assert(VAR_1 != NULL);
p->intparm = VAR_1->intparm;
... | [
"static void FUNC_0(SubchDev *VAR_0, ORB *VAR_1)\n{",
"PMCW *p = &VAR_0->curr_status.pmcw;",
"SCSW *s = &VAR_0->curr_status.scsw;",
"int VAR_2;",
"int VAR_3;",
"VAR_2 = 0x80;",
"if (!(s->ctrl & SCSW_ACTL_SUSP)) {",
"assert(VAR_1 != NULL);",
"p->intparm = VAR_1->intparm;",
"if (!(VAR_1->lpm & 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
23
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55... |
779 | static int net_vhost_chardev_opts(void *opaque,
const char *name, const char *value,
Error **errp)
{
VhostUserChardevProps *props = opaque;
if (strcmp(name, "backend") == 0 && strcmp(value, "socket") == 0) {
props->is_socket = t... | true | qemu | 0a73336d96397c80881219d080518fac6f1ecacb | static int net_vhost_chardev_opts(void *opaque,
const char *name, const char *value,
Error **errp)
{
VhostUserChardevProps *props = opaque;
if (strcmp(name, "backend") == 0 && strcmp(value, "socket") == 0) {
props->is_socket = t... | {
"code": [
" props->is_socket = true;",
" } else {",
" error_setg(errp,",
" name, value);",
" return -1;",
"static int net_vhost_chardev_opts(void *opaque,",
" const char *name, const char *value,",
" ... | static int FUNC_0(void *VAR_0,
const char *VAR_1, const char *VAR_2,
Error **VAR_3)
{
VhostUserChardevProps *props = VAR_0;
if (strcmp(VAR_1, "backend") == 0 && strcmp(VAR_2, "socket") == 0) {
props->is_socket = true;
} els... | [
"static int FUNC_0(void *VAR_0,\nconst char *VAR_1, const char *VAR_2,\nError **VAR_3)\n{",
"VhostUserChardevProps *props = VAR_0;",
"if (strcmp(VAR_1, \"backend\") == 0 && strcmp(VAR_2, \"socket\") == 0) {",
"props->is_socket = true;",
"} else if (strcmp(VAR_1, \"path\") == 0) {",
"props->is_unix = true;... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
780 | static int decode_frame(AVCodecContext *avctx,
void *data,
int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
int buf_size = avpkt->size;
DPXContext... | true | FFmpeg | fea714ecd9de557054b2540119f6b5635ba0e636 | static int decode_frame(AVCodecContext *avctx,
void *data,
int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
int buf_size = avpkt->size;
DPXContext... | {
"code": [],
"line_no": []
} | 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;
const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;
int VAR_6 = VAR_3->size;
DPXContext *const s ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1,\nint *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;",
"int VAR_6 = VAR_3->size;",
"DPXContext *const s = VAR_0->priv_data;",
"AVFrame *picture = VAR_1;",
"AVFrame *c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
783 | static int mpeg_decode_mb(MpegEncContext *s,
DCTELEM block[12][64])
{
int i, j, k, cbp, val, mb_type, motion_type;
const int mb_block_count = 4 + (1<< s->chroma_format)
dprintf("decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
assert(s->mb_skiped==0);
if (s->mb_skip... | true | FFmpeg | 71434945f20c6d340b4c942de7746e6ea46ec74b | static int mpeg_decode_mb(MpegEncContext *s,
DCTELEM block[12][64])
{
int i, j, k, cbp, val, mb_type, motion_type;
const int mb_block_count = 4 + (1<< s->chroma_format)
dprintf("decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
assert(s->mb_skiped==0);
if (s->mb_skip... | {
"code": [
" s->current_picture.mb_type[ s->mb_x + s->mb_y*s->mb_stride - 1] | MB_TYPE_SKIP;"
],
"line_no": [
83
]
} | static int FUNC_0(MpegEncContext *VAR_0,
DCTELEM VAR_1[12][64])
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
const int VAR_9 = 4 + (1<< VAR_0->chroma_format)
dprintf("decode_mb: x=%d y=%d\n", VAR_0->mb_x, VAR_0->mb_y);
assert(VAR_0->mb_skiped==0);
if ... | [
"static int FUNC_0(MpegEncContext *VAR_0,\nDCTELEM VAR_1[12][64])\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"const int VAR_9 = 4 + (1<< VAR_0->chroma_format)\ndprintf(\"decode_mb: x=%d y=%d\\n\", VAR_0->mb_x, VAR_0->mb_y);",
"assert(VAR_0->mb_skiped==0);",
"if (VAR_0->mb_skip_run-- != 0) ... | [
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9,
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
53
],
[
55
],
[
57
... |
784 | void op_subo (void)
{
target_ulong tmp;
tmp = T0;
T0 = (int32_t)T0 - (int32_t)T1;
if (!((T0 >> 31) ^ (T1 >> 31) ^ (tmp >> 31))) {
CALL_FROM_TB1(do_raise_exception_direct, EXCP_OVERFLOW);
}
RETURN();
}
| true | qemu | 76e050c2e62995f1d6905e28674dea3a7fcff1a5 | void op_subo (void)
{
target_ulong tmp;
tmp = T0;
T0 = (int32_t)T0 - (int32_t)T1;
if (!((T0 >> 31) ^ (T1 >> 31) ^ (tmp >> 31))) {
CALL_FROM_TB1(do_raise_exception_direct, EXCP_OVERFLOW);
}
RETURN();
}
| {
"code": [
" if (!((T0 >> 31) ^ (T1 >> 31) ^ (tmp >> 31))) {"
],
"line_no": [
13
]
} | void FUNC_0 (void)
{
target_ulong tmp;
tmp = T0;
T0 = (int32_t)T0 - (int32_t)T1;
if (!((T0 >> 31) ^ (T1 >> 31) ^ (tmp >> 31))) {
CALL_FROM_TB1(do_raise_exception_direct, EXCP_OVERFLOW);
}
RETURN();
}
| [
"void FUNC_0 (void)\n{",
"target_ulong tmp;",
"tmp = T0;",
"T0 = (int32_t)T0 - (int32_t)T1;",
"if (!((T0 >> 31) ^ (T1 >> 31) ^ (tmp >> 31))) {",
"CALL_FROM_TB1(do_raise_exception_direct, EXCP_OVERFLOW);",
"}",
"RETURN();",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
785 | int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr,
int rw, int access_type, int check_BATs)
{
int ret;
#if 0
if (loglevel != 0) {
fprintf(logfile, "%s\n", __func__);
}
#endif
if ((access_type == ACCESS_CODE && msr_ir == 0) ||
... | true | qemu | 12de9a396acbc95e25c5d60ed097cc55777eaaed | int get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr,
int rw, int access_type, int check_BATs)
{
int ret;
#if 0
if (loglevel != 0) {
fprintf(logfile, "%s\n", __func__);
}
#endif
if ((access_type == ACCESS_CODE && msr_ir == 0) ||
... | {
"code": [
"#endif",
"#endif",
" case POWERPC_MMU_64BRIDGE:",
" case POWERPC_MMU_64BRIDGE:",
" break;"
],
"line_no": [
17,
17,
51,
51,
63
]
} | int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6;
#if 0
if (loglevel != 0) {
fprintf(logfile, "%s\n", __func__);
}
#endif
if ((VAR_4 == ACCESS_CODE && msr_ir == 0) ||
(VAR_4 != ACCESS_CODE ... | [
"int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6;",
"#if 0\nif (loglevel != 0) {",
"fprintf(logfile, \"%s\\n\", __func__);",
"}",
"#endif\nif ((VAR_4 == ACCESS_CODE && msr_ir == 0) ||\n(VAR_4 != ACCESS_CODE && msr_dr == 0)) {",
"VAR_6 ... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
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,
11
],
[
13
],
[
15
],
[
17,
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37,
41,
43
],
[
47,
49,
51,
53,
55
],
[
59
],
[
61
... |
786 | uint32_t HELPER(neon_min_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b;
}
| false | qemu | 4a9f9cb24de52e93aae7539a004dd20314ca1c0c | uint32_t HELPER(neon_min_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b;
}
| {
"code": [],
"line_no": []
} | uint32_t FUNC_0(neon_min_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b;
}
| [
"uint32_t FUNC_0(neon_min_f32)(uint32_t a, uint32_t b)\n{",
"float32 f0 = make_float32(a);",
"float32 f1 = make_float32(b);",
"return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
787 | static void test_primitive_lists(gconstpointer opaque)
{
TestArgs *args = (TestArgs *) opaque;
const SerializeOps *ops = args->ops;
PrimitiveType *pt = args->test_data;
PrimitiveList pl = { .value = { NULL } };
PrimitiveList pl_copy = { .value = { NULL } };
PrimitiveList *pl_copy_ptr = &p... | false | qemu | 3f66f764ee25f10d3e1144ebc057a949421b7728 | static void test_primitive_lists(gconstpointer opaque)
{
TestArgs *args = (TestArgs *) opaque;
const SerializeOps *ops = args->ops;
PrimitiveType *pt = args->test_data;
PrimitiveList pl = { .value = { NULL } };
PrimitiveList pl_copy = { .value = { NULL } };
PrimitiveList *pl_copy_ptr = &p... | {
"code": [],
"line_no": []
} | static void FUNC_0(gconstpointer VAR_0)
{
TestArgs *args = (TestArgs *) VAR_0;
const SerializeOps *VAR_1 = args->VAR_1;
PrimitiveType *pt = args->test_data;
PrimitiveList pl = { .value = { NULL } };
PrimitiveList pl_copy = { .value = { NULL } };
PrimitiveList *pl_copy_ptr = &pl_copy;
... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"TestArgs *args = (TestArgs *) VAR_0;",
"const SerializeOps *VAR_1 = args->VAR_1;",
"PrimitiveType *pt = args->test_data;",
"PrimitiveList pl = { .value = { NULL } };",
"PrimitiveList pl_copy = { .value = { NULL } };",
"PrimitiveList *pl_copy_ptr = &pl_copy;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
788 | static struct omap_pwl_s *omap_pwl_init(MemoryRegion *system_memory,
target_phys_addr_t base,
omap_clk clk)
{
struct omap_pwl_s *s = g_malloc0(sizeof(*s));
omap_pwl_reset(s);
memory_region_init_io(&s->iomem, &omap_pwl_... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static struct omap_pwl_s *omap_pwl_init(MemoryRegion *system_memory,
target_phys_addr_t base,
omap_clk clk)
{
struct omap_pwl_s *s = g_malloc0(sizeof(*s));
omap_pwl_reset(s);
memory_region_init_io(&s->iomem, &omap_pwl_... | {
"code": [],
"line_no": []
} | static struct omap_pwl_s *FUNC_0(MemoryRegion *VAR_0,
target_phys_addr_t VAR_1,
omap_clk VAR_2)
{
struct omap_pwl_s *VAR_3 = g_malloc0(sizeof(*VAR_3));
omap_pwl_reset(VAR_3);
memory_region_init_io(&VAR_3->iomem, &omap_... | [
"static struct omap_pwl_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1,\nomap_clk VAR_2)\n{",
"struct omap_pwl_s *VAR_3 = g_malloc0(sizeof(*VAR_3));",
"omap_pwl_reset(VAR_3);",
"memory_region_init_io(&VAR_3->iomem, &omap_pwl_ops, VAR_3,\n\"omap-pwl\", 0x800);",
"memory_region_add_subregion(VAR_0, ... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
789 | static void gem_transmit(GemState *s)
{
unsigned desc[2];
target_phys_addr_t packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
/* Do nothing if transmit is not enabled. */
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void gem_transmit(GemState *s)
{
unsigned desc[2];
target_phys_addr_t packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
}
DB_PRINT("\n");
... | {
"code": [],
"line_no": []
} | static void FUNC_0(GemState *VAR_0)
{
unsigned VAR_1[2];
target_phys_addr_t packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned VAR_2;
if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
}
DB_PRINT("\n");
p... | [
"static void FUNC_0(GemState *VAR_0)\n{",
"unsigned VAR_1[2];",
"target_phys_addr_t packet_desc_addr;",
"uint8_t tx_packet[2048];",
"uint8_t *p;",
"unsigned VAR_2;",
"if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {",
"return;",
"}",
"DB_PRINT(\"\\n\");",
"p = tx_packet;",
"V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
27
],
[
39
],
[
41
],
[
47
],
[
49,
51
],
[
55
],
[
61
],
[
63
],
[
65
],
[
67
],
[... |
790 | static void rx_init_frame(eTSEC *etsec, const uint8_t *buf, size_t size)
{
uint32_t fcb_size = 0;
uint8_t prsdep = (etsec->regs[RCTRL].value >> RCTRL_PRSDEP_OFFSET)
& RCTRL_PRSDEP_MASK;
if (prsdep != 0) {
/* Prepend FCB (FCB size + RCTRL[PAL]) */
fcb_size = 8 + ((etsec->r... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void rx_init_frame(eTSEC *etsec, const uint8_t *buf, size_t size)
{
uint32_t fcb_size = 0;
uint8_t prsdep = (etsec->regs[RCTRL].value >> RCTRL_PRSDEP_OFFSET)
& RCTRL_PRSDEP_MASK;
if (prsdep != 0) {
fcb_size = 8 + ((etsec->regs[RCTRL].value >> 16) & 0x1F);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(eTSEC *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{
uint32_t fcb_size = 0;
uint8_t prsdep = (VAR_0->regs[RCTRL].value >> RCTRL_PRSDEP_OFFSET)
& RCTRL_PRSDEP_MASK;
if (prsdep != 0) {
fcb_size = 8 + ((VAR_0->regs[RCTRL].value >> 16) & 0x1F);
V... | [
"static void FUNC_0(eTSEC *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{",
"uint32_t fcb_size = 0;",
"uint8_t prsdep = (VAR_0->regs[RCTRL].value >> RCTRL_PRSDEP_OFFSET)\n& RCTRL_PRSDEP_MASK;",
"if (prsdep != 0) {",
"fcb_size = 8 + ((VAR_0->regs[RCTRL].value >> 16) & 0x1F);",
"VAR_0->rx_fcb_size = fcb_s... | [
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
],
[
17
],
[
21
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
57
],
[
61
],
[
63
],
[
65,
67
... |
791 | static uint32_t qpci_spapr_io_readl(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint32_t v;
if (port < s->pio.size) {
v = readl(s->pio_cpu_base + port);
} else {
v = readl(s->mmio_cpu_base + port);
... | false | qemu | 8360544a6d3a54df1fce80f55ba4ad075a8ded54 | static uint32_t qpci_spapr_io_readl(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint32_t v;
if (port < s->pio.size) {
v = readl(s->pio_cpu_base + port);
} else {
v = readl(s->mmio_cpu_base + port);
... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint32_t v;
if (port < s->pio.size) {
v = readl(s->pio_cpu_base + port);
} else {
v = readl(s->mmio_cpu_base + port);
}
return... | [
"static uint32_t FUNC_0(QPCIBus *bus, void *addr)\n{",
"QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);",
"uint64_t port = (uintptr_t)addr;",
"uint32_t v;",
"if (port < s->pio.size) {",
"v = readl(s->pio_cpu_base + port);",
"} else {",
"v = readl(s->mmio_cpu_base + port);",
"}",
"return bs... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
792 | void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr)
{
#if defined(TARGET_MIPS) || defined(TARGET_SH4)
CPUArchState *env = cpu->env_ptr;
#endif
TranslationBlock *tb;
uint32_t n, cflags;
target_ulong pc, cs_base;
uint32_t flags;
tb_lock();
tb = tb_find_pc(retaddr);
if (!tb... | false | qemu | 9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9 | void cpu_io_recompile(CPUState *cpu, uintptr_t retaddr)
{
#if defined(TARGET_MIPS) || defined(TARGET_SH4)
CPUArchState *env = cpu->env_ptr;
#endif
TranslationBlock *tb;
uint32_t n, cflags;
target_ulong pc, cs_base;
uint32_t flags;
tb_lock();
tb = tb_find_pc(retaddr);
if (!tb... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, uintptr_t VAR_1)
{
#if defined(TARGET_MIPS) || defined(TARGET_SH4)
CPUArchState *env = VAR_0->env_ptr;
#endif
TranslationBlock *tb;
uint32_t n, cflags;
target_ulong pc, cs_base;
uint32_t flags;
tb_lock();
tb = tb_find_pc(VAR_1);
if (!tb) {
... | [
"void FUNC_0(CPUState *VAR_0, uintptr_t VAR_1)\n{",
"#if defined(TARGET_MIPS) || defined(TARGET_SH4)\nCPUArchState *env = VAR_0->env_ptr;",
"#endif\nTranslationBlock *tb;",
"uint32_t n, cflags;",
"target_ulong pc, cs_base;",
"uint32_t flags;",
"tb_lock();",
"tb = tb_find_pc(VAR_1);",
"if (!tb) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
45
],
[
55,
57
],
[
59
],
[
61
... |
793 | START_TEST(unterminated_array)
{
QObject *obj = qobject_from_json("[32");
fail_unless(obj == NULL);
}
| false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(unterminated_array)
{
QObject *obj = qobject_from_json("[32");
fail_unless(obj == NULL);
}
| {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QObject *obj = qobject_from_json("[32");
fail_unless(obj == NULL);
}
| [
"FUNC_0(VAR_0)\n{",
"QObject *obj = qobject_from_json(\"[32\");",
"fail_unless(obj == NULL);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
796 | static void imx_fec_reset(DeviceState *d)
{
IMXFECState *s = IMX_FEC(d);
/* Reset the FEC */
s->eir = 0;
s->eimr = 0;
s->rx_enabled = 0;
s->ecr = 0;
s->mscr = 0;
s->mibc = 0xc0000000;
s->rcr = 0x05ee0001;
s->tcr = 0;
s->tfwr = 0;
s->frsr = 0x500;
s->mi... | false | qemu | ccdb81d3274d281d770703417257bd40bcdf4c0e | static void imx_fec_reset(DeviceState *d)
{
IMXFECState *s = IMX_FEC(d);
s->eir = 0;
s->eimr = 0;
s->rx_enabled = 0;
s->ecr = 0;
s->mscr = 0;
s->mibc = 0xc0000000;
s->rcr = 0x05ee0001;
s->tcr = 0;
s->tfwr = 0;
s->frsr = 0x500;
s->miigsk_cfgr = 0;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0)
{
IMXFECState *s = IMX_FEC(VAR_0);
s->eir = 0;
s->eimr = 0;
s->rx_enabled = 0;
s->ecr = 0;
s->mscr = 0;
s->mibc = 0xc0000000;
s->rcr = 0x05ee0001;
s->tcr = 0;
s->tfwr = 0;
s->frsr = 0x500;
s->miigsk_cfgr = 0;
... | [
"static void FUNC_0(DeviceState *VAR_0)\n{",
"IMXFECState *s = IMX_FEC(VAR_0);",
"s->eir = 0;",
"s->eimr = 0;",
"s->rx_enabled = 0;",
"s->ecr = 0;",
"s->mscr = 0;",
"s->mibc = 0xc0000000;",
"s->rcr = 0x05ee0001;",
"s->tcr = 0;",
"s->tfwr = 0;",
"s->frsr = 0x500;",
"s->miigsk_cfgr = 0;",
"s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
]
] |
798 | struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta,
BlockDriverState *bd, qemu_irq irq, qemu_irq dma[],
omap_clk fclk, omap_clk iclk)
{
struct omap_mmc_s *s = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
s->irq = irq;
s->dma =... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta,
BlockDriverState *bd, qemu_irq irq, qemu_irq dma[],
omap_clk fclk, omap_clk iclk)
{
struct omap_mmc_s *s = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
s->irq = irq;
s->dma =... | {
"code": [],
"line_no": []
} | struct omap_mmc_s *FUNC_0(struct omap_target_agent_s *VAR_0,
BlockDriverState *VAR_1, qemu_irq VAR_2, qemu_irq VAR_3[],
omap_clk VAR_4, omap_clk VAR_5)
{
struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
VAR_6->VAR_2 = VAR_... | [
"struct omap_mmc_s *FUNC_0(struct omap_target_agent_s *VAR_0,\nBlockDriverState *VAR_1, qemu_irq VAR_2, qemu_irq VAR_3[],\nomap_clk VAR_4, omap_clk VAR_5)\n{",
"struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *)\ng_malloc0(sizeof(struct omap_mmc_s));",
"VAR_6->VAR_2 = VAR_2;",
"VAR_6->VAR_3 = VAR_3;",
"VAR_6-... | [
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
],
[
31,
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59
... |
799 | int vmstate_register(int instance_id, const VMStateDescription *vmsd,
void *opaque)
{
SaveStateEntry *se;
se = qemu_malloc(sizeof(SaveStateEntry));
pstrcpy(se->idstr, sizeof(se->idstr), vmsd->name);
se->version_id = vmsd->version_id;
se->section_id = global_section_id++... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | int vmstate_register(int instance_id, const VMStateDescription *vmsd,
void *opaque)
{
SaveStateEntry *se;
se = qemu_malloc(sizeof(SaveStateEntry));
pstrcpy(se->idstr, sizeof(se->idstr), vmsd->name);
se->version_id = vmsd->version_id;
se->section_id = global_section_id++... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, const VMStateDescription *VAR_1,
void *VAR_2)
{
SaveStateEntry *se;
se = qemu_malloc(sizeof(SaveStateEntry));
pstrcpy(se->idstr, sizeof(se->idstr), VAR_1->name);
se->version_id = VAR_1->version_id;
se->section_id = global_section_id++;
se->sav... | [
"int FUNC_0(int VAR_0, const VMStateDescription *VAR_1,\nvoid *VAR_2)\n{",
"SaveStateEntry *se;",
"se = qemu_malloc(sizeof(SaveStateEntry));",
"pstrcpy(se->idstr, sizeof(se->idstr), VAR_1->name);",
"se->version_id = VAR_1->version_id;",
"se->section_id = global_section_id++;",
"se->save_live_state = NUL... | [
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
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
]
] |
800 | bool qemu_clock_expired(QEMUClockType type)
{
return timerlist_expired(
main_loop_tlg.tl[type]);
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | bool qemu_clock_expired(QEMUClockType type)
{
return timerlist_expired(
main_loop_tlg.tl[type]);
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(QEMUClockType type)
{
return timerlist_expired(
main_loop_tlg.tl[type]);
}
| [
"bool FUNC_0(QEMUClockType type)\n{",
"return timerlist_expired(\nmain_loop_tlg.tl[type]);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
801 | static int proxy_opendir(FsContext *ctx,
V9fsPath *fs_path, V9fsFidOpenState *fs)
{
int serrno, fd;
fs->dir = NULL;
fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, O_DIRECTORY);
if (fd < 0) {
errno = -fd;
return -1;
}
fs->dir = fd... | false | qemu | 494a8ebe713055d3946183f4b395f85a18b43e9e | static int proxy_opendir(FsContext *ctx,
V9fsPath *fs_path, V9fsFidOpenState *fs)
{
int serrno, fd;
fs->dir = NULL;
fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, O_DIRECTORY);
if (fd < 0) {
errno = -fd;
return -1;
}
fs->dir = fd... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0,
V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)
{
int VAR_3, VAR_4;
VAR_2->dir = NULL;
VAR_4 = v9fs_request(VAR_0->private, T_OPEN, NULL, "sd", VAR_1, O_DIRECTORY);
if (VAR_4 < 0) {
errno = -VAR_4;
return -1;
}
VA... | [
"static int FUNC_0(FsContext *VAR_0,\nV9fsPath *VAR_1, V9fsFidOpenState *VAR_2)\n{",
"int VAR_3, VAR_4;",
"VAR_2->dir = NULL;",
"VAR_4 = v9fs_request(VAR_0->private, T_OPEN, NULL, \"sd\", VAR_1, O_DIRECTORY);",
"if (VAR_4 < 0) {",
"errno = -VAR_4;",
"return -1;",
"}",
"VAR_2->dir = fdopendir(VAR_4);... | [
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
],
[
35
],
[
37
],
[
39
]
] |
802 | static sd_rsp_type_t sd_normal_command(SDState *sd,
SDRequest req)
{
uint32_t rca = 0x0000;
uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg;
/* Not interpreting this as an app command */
sd->card_status &= ~APP_CMD;
if (sd_c... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static sd_rsp_type_t sd_normal_command(SDState *sd,
SDRequest req)
{
uint32_t rca = 0x0000;
uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg;
sd->card_status &= ~APP_CMD;
if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.... | {
"code": [],
"line_no": []
} | static sd_rsp_type_t FUNC_0(SDState *sd,
SDRequest req)
{
uint32_t rca = 0x0000;
uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg;
sd->card_status &= ~APP_CMD;
if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_... | [
"static sd_rsp_type_t FUNC_0(SDState *sd,\nSDRequest req)\n{",
"uint32_t rca = 0x0000;",
"uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg;",
"sd->card_status &= ~APP_CMD;",
"if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc)\nrca = req.arg >> 16;",
"DPRINTF(\"C... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
31,
33
],
[
35,
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57,
59
],
[
63
],
[... |
803 | static void amdvi_mmio_trace(hwaddr addr, unsigned size)
{
uint8_t index = (addr & ~0x2000) / 8;
if ((addr & 0x2000)) {
/* high table */
index = index >= AMDVI_MMIO_REGS_HIGH ? AMDVI_MMIO_REGS_HIGH : index;
trace_amdvi_mmio_read(amdvi_mmio_high[index], addr, size, addr & ~0x07);
... | false | qemu | d9429b84af2302b6e28bec3c52710cf67eda3cee | static void amdvi_mmio_trace(hwaddr addr, unsigned size)
{
uint8_t index = (addr & ~0x2000) / 8;
if ((addr & 0x2000)) {
index = index >= AMDVI_MMIO_REGS_HIGH ? AMDVI_MMIO_REGS_HIGH : index;
trace_amdvi_mmio_read(amdvi_mmio_high[index], addr, size, addr & ~0x07);
} else {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(hwaddr VAR_0, unsigned VAR_1)
{
uint8_t index = (VAR_0 & ~0x2000) / 8;
if ((VAR_0 & 0x2000)) {
index = index >= AMDVI_MMIO_REGS_HIGH ? AMDVI_MMIO_REGS_HIGH : index;
trace_amdvi_mmio_read(amdvi_mmio_high[index], VAR_0, VAR_1, VAR_0 & ~0x07);
} else {
... | [
"static void FUNC_0(hwaddr VAR_0, unsigned VAR_1)\n{",
"uint8_t index = (VAR_0 & ~0x2000) / 8;",
"if ((VAR_0 & 0x2000)) {",
"index = index >= AMDVI_MMIO_REGS_HIGH ? AMDVI_MMIO_REGS_HIGH : index;",
"trace_amdvi_mmio_read(amdvi_mmio_high[index], VAR_0, VAR_1, VAR_0 & ~0x07);",
"} else {",
"index = index >... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
804 | void virtio_cleanup(VirtIODevice *vdev)
{
qemu_del_vm_change_state_handler(vdev->vmstate);
g_free(vdev->config);
g_free(vdev->vq);
g_free(vdev->vector_queues);
}
| false | qemu | c611c76417f52b335ecaab01c61743e3b705eb7c | void virtio_cleanup(VirtIODevice *vdev)
{
qemu_del_vm_change_state_handler(vdev->vmstate);
g_free(vdev->config);
g_free(vdev->vq);
g_free(vdev->vector_queues);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(VirtIODevice *VAR_0)
{
qemu_del_vm_change_state_handler(VAR_0->vmstate);
g_free(VAR_0->config);
g_free(VAR_0->vq);
g_free(VAR_0->vector_queues);
}
| [
"void FUNC_0(VirtIODevice *VAR_0)\n{",
"qemu_del_vm_change_state_handler(VAR_0->vmstate);",
"g_free(VAR_0->config);",
"g_free(VAR_0->vq);",
"g_free(VAR_0->vector_queues);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
805 | static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs)
{
int extension = (ctx->opcode >> 6) & 0x3f;
int minor = (ctx->opcode >> 12) & 0xf;
uint32_t mips32_op;
switch (extension) {
case TEQ:
mips32_op = OPC_TEQ;
goto do_trap;
case TGE:
... | false | qemu | b00c72180c36510bf9b124e190bd520e3b7e1358 | static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs)
{
int extension = (ctx->opcode >> 6) & 0x3f;
int minor = (ctx->opcode >> 12) & 0xf;
uint32_t mips32_op;
switch (extension) {
case TEQ:
mips32_op = OPC_TEQ;
goto do_trap;
case TGE:
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3)
{
int VAR_4 = (VAR_1->opcode >> 6) & 0x3f;
int VAR_5 = (VAR_1->opcode >> 12) & 0xf;
uint32_t mips32_op;
switch (VAR_4) {
case TEQ:
mips32_op = OPC_TEQ;
goto do_trap;
case TGE:
... | [
"static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4 = (VAR_1->opcode >> 6) & 0x3f;",
"int VAR_5 = (VAR_1->opcode >> 12) & 0xf;",
"uint32_t mips32_op;",
"switch (VAR_4) {",
"case TEQ:\nmips32_op = OPC_TEQ;",
"goto do_trap;",
"case TGE:\nmips32_op = OPC_T... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49,... |
806 | void ff_fix_long_mvs(MpegEncContext * s, uint8_t *field_select_table, int field_select,
int16_t (*mv_table)[2], int f_code, int type, int truncate)
{
MotionEstContext * const c= &s->me;
int y, h_range, v_range;
// RAL: 8 in MPEG-1, 16 in MPEG-4
int range = (((s->out_format ... | false | FFmpeg | 2f300f8965793c3bb9f9d753fcd4542f94f4c58a | void ff_fix_long_mvs(MpegEncContext * s, uint8_t *field_select_table, int field_select,
int16_t (*mv_table)[2], int f_code, int type, int truncate)
{
MotionEstContext * const c= &s->me;
int y, h_range, v_range;
int range = (((s->out_format == FMT_MPEG1) ? 8 : 16) << f_code... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext * VAR_0, uint8_t *VAR_1, int VAR_2,
VAR_3 (*mv_table)[2], int VAR_4, int VAR_5, int VAR_6)
{
MotionEstContext * const c= &VAR_0->me;
int VAR_7, VAR_8, VAR_9;
int VAR_10 = (((VAR_0->out_format == FMT_MPEG1) ? 8 : 16) << VAR_4);
if(VAR_0->ms... | [
"void FUNC_0(MpegEncContext * VAR_0, uint8_t *VAR_1, int VAR_2,\nVAR_3 (*mv_table)[2], int VAR_4, int VAR_5, int VAR_6)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"int VAR_7, VAR_8, VAR_9;",
"int VAR_10 = (((VAR_0->out_format == FMT_MPEG1) ? 8 : 16) << VAR_4);",
"if(VAR_0->msmpeg4_version) VAR_10= 16;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
55
],
[
57
... |
807 | ThreadPool *thread_pool_new(AioContext *ctx)
{
ThreadPool *pool = g_new(ThreadPool, 1);
thread_pool_init_one(pool, ctx);
return pool;
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | ThreadPool *thread_pool_new(AioContext *ctx)
{
ThreadPool *pool = g_new(ThreadPool, 1);
thread_pool_init_one(pool, ctx);
return pool;
}
| {
"code": [],
"line_no": []
} | ThreadPool *FUNC_0(AioContext *ctx)
{
ThreadPool *pool = g_new(ThreadPool, 1);
thread_pool_init_one(pool, ctx);
return pool;
}
| [
"ThreadPool *FUNC_0(AioContext *ctx)\n{",
"ThreadPool *pool = g_new(ThreadPool, 1);",
"thread_pool_init_one(pool, ctx);",
"return pool;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
808 | static int parse_bootdevices(char *devices)
{
/* We just do some generic consistency checks */
const char *p;
int bitmap = 0;
for (p = devices; *p != '\0'; p++) {
/* Allowed boot devices are:
* a-b: floppy disk drives
* c-f: IDE disk drives
* g-m: machine im... | false | qemu | 4e9e9d6e0a68f1691bcdcc80601a9a1bc2954736 | static int parse_bootdevices(char *devices)
{
const char *p;
int bitmap = 0;
for (p = devices; *p != '\0'; p++) {
if (*p < 'a' || *p > 'p') {
fprintf(stderr, "Invalid boot device '%c'\n", *p);
exit(1);
}
if (bitmap & ... | {
"code": [],
"line_no": []
} | static int FUNC_0(char *VAR_0)
{
const char *VAR_1;
int VAR_2 = 0;
for (VAR_1 = VAR_0; *VAR_1 != '\0'; VAR_1++) {
if (*VAR_1 < 'a' || *VAR_1 > 'VAR_1') {
fprintf(stderr, "Invalid boot device '%c'\n", *VAR_1);
exit(1);
}
... | [
"static int FUNC_0(char *VAR_0)\n{",
"const char *VAR_1;",
"int VAR_2 = 0;",
"for (VAR_1 = VAR_0; *VAR_1 != '\\0'; VAR_1++) {",
"if (*VAR_1 < 'a' || *VAR_1 > 'VAR_1') {",
"fprintf(stderr, \"Invalid boot device '%c'\\n\", *VAR_1);",
"exit(1);",
"}",
"if (VAR_2 & (1 << (*VAR_1 - 'a'))) {",
"fprintf(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
13
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
]
] |
809 | static void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGReg arg1,
TCGReg arg2, int label_index)
{
static const MIPSInsn b_zero[16] = {
[TCG_COND_LT] = OPC_BLTZ,
[TCG_COND_GT] = OPC_BGTZ,
[TCG_COND_LE] = OPC_BLEZ,
[TCG_COND_GE] = OPC_BGEZ,
};
... | false | qemu | bec1631100323fac0900aea71043d5c4e22fc2fa | static void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGReg arg1,
TCGReg arg2, int label_index)
{
static const MIPSInsn b_zero[16] = {
[TCG_COND_LT] = OPC_BLTZ,
[TCG_COND_GT] = OPC_BGTZ,
[TCG_COND_LE] = OPC_BLEZ,
[TCG_COND_GE] = OPC_BGEZ,
};
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2,
TCGReg VAR_3, int VAR_4)
{
static const MIPSInsn VAR_5[16] = {
[TCG_COND_LT] = OPC_BLTZ,
[TCG_COND_GT] = OPC_BGTZ,
[TCG_COND_LE] = OPC_BLEZ,
[TCG_COND_GE] = OPC_BGEZ,
};
T... | [
"static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2,\nTCGReg VAR_3, int VAR_4)\n{",
"static const MIPSInsn VAR_5[16] = {",
"[TCG_COND_LT] = OPC_BLTZ,\n[TCG_COND_GT] = OPC_BGTZ,\n[TCG_COND_LE] = OPC_BLEZ,\n[TCG_COND_GE] = OPC_BGEZ,\n};",
"TCGLabel *l;",
"MIPSInsn s_opc = OPC_SLTU;",
"MIPSIns... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
47,
49,
51,
53,
55
],
[
57
],
[... |
810 | static unsigned int dec_move_rp(DisasContext *dc)
{
TCGv t[2];
DIS(fprintf (logfile, "move $r%u, $p%u\n", dc->op1, dc->op2));
cris_cc_mask(dc, 0);
t[0] = tcg_temp_new(TCG_TYPE_TL);
if (dc->op2 == PR_CCS) {
cris_evaluate_flags(dc);
t_gen_mov_TN_reg(t[0], dc->op1);
if (dc->tb_flags & U_FLAG) {
t... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static unsigned int dec_move_rp(DisasContext *dc)
{
TCGv t[2];
DIS(fprintf (logfile, "move $r%u, $p%u\n", dc->op1, dc->op2));
cris_cc_mask(dc, 0);
t[0] = tcg_temp_new(TCG_TYPE_TL);
if (dc->op2 == PR_CCS) {
cris_evaluate_flags(dc);
t_gen_mov_TN_reg(t[0], dc->op1);
if (dc->tb_flags & U_FLAG) {
t... | {
"code": [],
"line_no": []
} | static unsigned int FUNC_0(DisasContext *VAR_0)
{
TCGv t[2];
DIS(fprintf (logfile, "move $r%u, $p%u\n", VAR_0->op1, VAR_0->op2));
cris_cc_mask(VAR_0, 0);
t[0] = tcg_temp_new(TCG_TYPE_TL);
if (VAR_0->op2 == PR_CCS) {
cris_evaluate_flags(VAR_0);
t_gen_mov_TN_reg(t[0], VAR_0->op1);
if (VAR_0->tb_flag... | [
"static unsigned int FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t[2];",
"DIS(fprintf (logfile, \"move $r%u, $p%u\\n\", VAR_0->op1, VAR_0->op2));",
"cris_cc_mask(VAR_0, 0);",
"t[0] = tcg_temp_new(TCG_TYPE_TL);",
"if (VAR_0->op2 == PR_CCS) {",
"cris_evaluate_flags(VAR_0);",
"t_gen_mov_TN_reg(t[0], VAR_0->op... | [
0,
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
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[... |
811 | static uint32_t get_elf_hwcap(void)
{
ARMCPU *cpu = ARM_CPU(thread_cpu);
uint32_t hwcaps = 0;
hwcaps |= ARM_HWCAP_ARM_SWP;
hwcaps |= ARM_HWCAP_ARM_HALF;
hwcaps |= ARM_HWCAP_ARM_THUMB;
hwcaps |= ARM_HWCAP_ARM_FAST_MULT;
/* probe for the extra features */
#define GET_FEATURE(feat,... | false | qemu | ad6919dc0ab3b8ae26d772e883aa8e709785d249 | static uint32_t get_elf_hwcap(void)
{
ARMCPU *cpu = ARM_CPU(thread_cpu);
uint32_t hwcaps = 0;
hwcaps |= ARM_HWCAP_ARM_SWP;
hwcaps |= ARM_HWCAP_ARM_HALF;
hwcaps |= ARM_HWCAP_ARM_THUMB;
hwcaps |= ARM_HWCAP_ARM_FAST_MULT;
#define GET_FEATURE(feat, hwcap) \
do { if (arm_featur... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void)
{
ARMCPU *cpu = ARM_CPU(thread_cpu);
uint32_t hwcaps = 0;
hwcaps |= ARM_HWCAP_ARM_SWP;
hwcaps |= ARM_HWCAP_ARM_HALF;
hwcaps |= ARM_HWCAP_ARM_THUMB;
hwcaps |= ARM_HWCAP_ARM_FAST_MULT;
#define GET_FEATURE(feat, hwcap) \
do { if (arm_feature(&cpu-... | [
"static uint32_t FUNC_0(void)\n{",
"ARMCPU *cpu = ARM_CPU(thread_cpu);",
"uint32_t hwcaps = 0;",
"hwcaps |= ARM_HWCAP_ARM_SWP;",
"hwcaps |= ARM_HWCAP_ARM_HALF;",
"hwcaps |= ARM_HWCAP_ARM_THUMB;",
"hwcaps |= ARM_HWCAP_ARM_FAST_MULT;",
"#define GET_FEATURE(feat, hwcap) \\\ndo { if (arm_feature(&cpu->env... | [
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
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
59
],
... |
812 | static void test_visitor_out_native_list_uint64(TestOutputVisitorData *data,
const void *unused)
{
test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U64);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_out_native_list_uint64(TestOutputVisitorData *data,
const void *unused)
{
test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U64);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{
test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_U64);
}
| [
"static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_U64);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
813 | BlockAIOCB *bdrv_aio_flush(BlockDriverState *bs,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_flush(bs, opaque);
Coroutine *co;
BlockAIOCBCoroutine *acb;
acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque);
acb->need_bh = true;
acb->req.error = -EINPROGRESS;... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | BlockAIOCB *bdrv_aio_flush(BlockDriverState *bs,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_flush(bs, opaque);
Coroutine *co;
BlockAIOCBCoroutine *acb;
acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque);
acb->need_bh = true;
acb->req.error = -EINPROGRESS;... | {
"code": [],
"line_no": []
} | BlockAIOCB *FUNC_0(BlockDriverState *bs,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_flush(bs, opaque);
Coroutine *co;
BlockAIOCBCoroutine *acb;
acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque);
acb->need_bh = true;
acb->req.error = -EINPROGRESS;
... | [
"BlockAIOCB *FUNC_0(BlockDriverState *bs,\nBlockCompletionFunc *cb, void *opaque)\n{",
"trace_bdrv_aio_flush(bs, opaque);",
"Coroutine *co;",
"BlockAIOCBCoroutine *acb;",
"acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque);",
"acb->need_bh = true;",
"acb->req.error = -EINPROGRESS;",
"co = qemu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
816 | xmit_seg(E1000State *s)
{
uint16_t len;
unsigned int frames = s->tx.tso_frames, css, sofar;
struct e1000_tx *tp = &s->tx;
if (tp->props.tse && tp->props.cptse) {
css = tp->props.ipcss;
DBGOUT(TXSUM, "frames %d size %d ipcss %d\n",
frames, tp->size, css);
... | false | qemu | 7d08c73e7bdc39b10e5f2f5acdce700f17ffe962 | xmit_seg(E1000State *s)
{
uint16_t len;
unsigned int frames = s->tx.tso_frames, css, sofar;
struct e1000_tx *tp = &s->tx;
if (tp->props.tse && tp->props.cptse) {
css = tp->props.ipcss;
DBGOUT(TXSUM, "frames %d size %d ipcss %d\n",
frames, tp->size, css);
... | {
"code": [],
"line_no": []
} | FUNC_0(E1000State *VAR_0)
{
uint16_t len;
unsigned int VAR_1 = VAR_0->tx.tso_frames, VAR_2, VAR_3;
struct e1000_tx *VAR_4 = &VAR_0->tx;
if (VAR_4->props.tse && VAR_4->props.cptse) {
VAR_2 = VAR_4->props.ipcss;
DBGOUT(TXSUM, "VAR_1 %d size %d ipcss %d\n",
VAR_1, V... | [
"FUNC_0(E1000State *VAR_0)\n{",
"uint16_t len;",
"unsigned int VAR_1 = VAR_0->tx.tso_frames, VAR_2, VAR_3;",
"struct e1000_tx *VAR_4 = &VAR_0->tx;",
"if (VAR_4->props.tse && VAR_4->props.cptse) {",
"VAR_2 = VAR_4->props.ipcss;",
"DBGOUT(TXSUM, \"VAR_1 %d size %d ipcss %d\\n\",\nVAR_1, VAR_4->size, 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,
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
],
[
43
],
[
45
... |
817 | int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
{
int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val,
pos, is_intra, mc_type, mv_x, mv_y, col_mask;
uint8_t col_flags[8];
int32_t prev_dc, trvec[64];
uint32_t cbp, sym, ... | false | FFmpeg | 0846719dd11ab3f7a7caee13e7af71f71d913389 | int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
{
int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val,
pos, is_intra, mc_type, mv_x, mv_y, col_mask;
uint8_t col_flags[8];
int32_t prev_dc, trvec[64];
uint32_t cbp, sym, ... | {
"code": [],
"line_no": []
} | int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10,
VAR_11, VAR_12, VAR_22, VAR_14, VAR_15, VAR_16;
uint8_t col_flags[8];
int32_t prev_dc, trvec[64];
uint32_t cbp, sym, lo, hi, quant,... | [
"int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10,\nVAR_11, VAR_12, VAR_22, VAR_14, VAR_15, VAR_16;",
"uint8_t col_flags[8];",
"int32_t prev_dc, trvec[64];",
"uint32_t cbp, sym, lo, hi, quant, buf_offs, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43
],
[
45
],
[... |
818 | static void assigned_dev_ioport_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
assigned_dev_ioport_rw(opaque, addr, size, &data);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void assigned_dev_ioport_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
assigned_dev_ioport_rw(opaque, addr, size, &data);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
assigned_dev_ioport_rw(VAR_0, VAR_1, VAR_3, &VAR_2);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"assigned_dev_ioport_rw(VAR_0, VAR_1, VAR_3, &VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
819 | static int kvm_put_fpu(CPUState *env)
{
struct kvm_fpu fpu;
int i;
memset(&fpu, 0, sizeof fpu);
fpu.fsw = env->fpus & ~(7 << 11);
fpu.fsw |= (env->fpstt & 7) << 11;
fpu.fcw = env->fpuc;
for (i = 0; i < 8; ++i)
fpu.ftwx |= (!env->fptags[i]) << i;
memcpy(fpu.fpr, env->fpregs, ... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | static int kvm_put_fpu(CPUState *env)
{
struct kvm_fpu fpu;
int i;
memset(&fpu, 0, sizeof fpu);
fpu.fsw = env->fpus & ~(7 << 11);
fpu.fsw |= (env->fpstt & 7) << 11;
fpu.fcw = env->fpuc;
for (i = 0; i < 8; ++i)
fpu.ftwx |= (!env->fptags[i]) << i;
memcpy(fpu.fpr, env->fpregs, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
struct kvm_fpu VAR_1;
int VAR_2;
memset(&VAR_1, 0, sizeof VAR_1);
VAR_1.fsw = VAR_0->fpus & ~(7 << 11);
VAR_1.fsw |= (VAR_0->fpstt & 7) << 11;
VAR_1.fcw = VAR_0->fpuc;
for (VAR_2 = 0; VAR_2 < 8; ++VAR_2)
VAR_1.ftwx |= (!VAR_0->fptags[VAR_2]) <... | [
"static int FUNC_0(CPUState *VAR_0)\n{",
"struct kvm_fpu VAR_1;",
"int VAR_2;",
"memset(&VAR_1, 0, sizeof VAR_1);",
"VAR_1.fsw = VAR_0->fpus & ~(7 << 11);",
"VAR_1.fsw |= (VAR_0->fpstt & 7) << 11;",
"VAR_1.fcw = VAR_0->fpuc;",
"for (VAR_2 = 0; VAR_2 < 8; ++VAR_2)",
"VAR_1.ftwx |= (!VAR_0->fptags[VAR... | [
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
]
] |
820 | target_read_memory (bfd_vma memaddr,
bfd_byte *myaddr,
int length,
struct disassemble_info *info)
{
int i;
for(i = 0; i < length; i++) {
myaddr[i] = ldub_code(memaddr + i);
}
return 0;
}
| true | qemu | e612a1f7256bb3546cf3e9ae6cad3997c4153663 | target_read_memory (bfd_vma memaddr,
bfd_byte *myaddr,
int length,
struct disassemble_info *info)
{
int i;
for(i = 0; i < length; i++) {
myaddr[i] = ldub_code(memaddr + i);
}
return 0;
}
| {
"code": [
" int i;",
" for(i = 0; i < length; i++) {",
" myaddr[i] = ldub_code(memaddr + i);"
],
"line_no": [
11,
13,
15
]
} | FUNC_0 (bfd_vma VAR_0,
bfd_byte *VAR_1,
int VAR_2,
struct disassemble_info *VAR_3)
{
int VAR_4;
for(VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {
VAR_1[VAR_4] = ldub_code(VAR_0 + VAR_4);
}
return 0;
}
| [
"FUNC_0 (bfd_vma VAR_0,\nbfd_byte *VAR_1,\nint VAR_2,\nstruct disassemble_info *VAR_3)\n{",
"int VAR_4;",
"for(VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {",
"VAR_1[VAR_4] = ldub_code(VAR_0 + VAR_4);",
"}",
"return 0;",
"}"
] | [
0,
1,
1,
1,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
821 | static int http_connect(URLContext *h, const char *path, const char *hoststr,
const char *auth, int *new_location)
{
HTTPContext *s = h->priv_data;
int post, err, ch;
char line[1024], *q;
char *auth_b64;
int auth_b64_len = strlen(auth)* 4 / 3 + 12;
int64_t off = s... | true | FFmpeg | d176f9038711e497b32f1431e60e4e3da94179d1 | static int http_connect(URLContext *h, const char *path, const char *hoststr,
const char *auth, int *new_location)
{
HTTPContext *s = h->priv_data;
int post, err, ch;
char line[1024], *q;
char *auth_b64;
int auth_b64_len = strlen(auth)* 4 / 3 + 12;
int64_t off = s... | {
"code": [
" int auth_b64_len = strlen(auth)* 4 / 3 + 12;"
],
"line_no": [
15
]
} | static int FUNC_0(URLContext *VAR_0, const char *VAR_1, const char *VAR_2,
const char *VAR_3, int *VAR_4)
{
HTTPContext *s = VAR_0->priv_data;
int VAR_5, VAR_6, VAR_7;
char VAR_8[1024], *VAR_9;
char *VAR_10;
int VAR_11 = strlen(VAR_3)* 4 / 3 + 12;
int64_t off = s-... | [
"static int FUNC_0(URLContext *VAR_0, const char *VAR_1, const char *VAR_2,\nconst char *VAR_3, int *VAR_4)\n{",
"HTTPContext *s = VAR_0->priv_data;",
"int VAR_5, VAR_6, VAR_7;",
"char VAR_8[1024], *VAR_9;",
"char *VAR_10;",
"int VAR_11 = strlen(VAR_3)* 4 / 3 + 12;",
"int64_t off = s->off;",
"VAR_5 = ... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35,
37,
73
],
[
75
],
[
77
],
[
79
],
[
81
],
[
83
],
[
85
],
[... |
822 | static void set_guest_connected(VirtIOSerialPort *port, int guest_connected)
{
VirtConsole *vcon = VIRTIO_CONSOLE(port);
DeviceState *dev = DEVICE(port);
if (vcon->chr) {
qemu_chr_fe_set_open(vcon->chr, guest_connected);
}
if (dev->id) {
qapi_event_send_vserport_change(de... | true | qemu | bce6261eb2d879625126485d4ddd28cacb93152e | static void set_guest_connected(VirtIOSerialPort *port, int guest_connected)
{
VirtConsole *vcon = VIRTIO_CONSOLE(port);
DeviceState *dev = DEVICE(port);
if (vcon->chr) {
qemu_chr_fe_set_open(vcon->chr, guest_connected);
}
if (dev->id) {
qapi_event_send_vserport_change(de... | {
"code": [
" if (vcon->chr) {"
],
"line_no": [
11
]
} | static void FUNC_0(VirtIOSerialPort *VAR_0, int VAR_1)
{
VirtConsole *vcon = VIRTIO_CONSOLE(VAR_0);
DeviceState *dev = DEVICE(VAR_0);
if (vcon->chr) {
qemu_chr_fe_set_open(vcon->chr, VAR_1);
}
if (dev->id) {
qapi_event_send_vserport_change(dev->id, VAR_1,
... | [
"static void FUNC_0(VirtIOSerialPort *VAR_0, int VAR_1)\n{",
"VirtConsole *vcon = VIRTIO_CONSOLE(VAR_0);",
"DeviceState *dev = DEVICE(VAR_0);",
"if (vcon->chr) {",
"qemu_chr_fe_set_open(vcon->chr, VAR_1);",
"}",
"if (dev->id) {",
"qapi_event_send_vserport_change(dev->id, VAR_1,\n&error_abort);",
"}"... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
]
] |
823 | void error_setg_errno(Error **errp, int os_errno, const char *fmt, ...)
{
va_list ap;
char *msg;
int saved_errno = errno;
if (errp == NULL) {
return;
}
va_start(ap, fmt);
error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);
va_end(ap);
if (os_errno != 0) {
... | true | qemu | 1e9b65bb1bad51735cab6c861c29b592dccabf0e | void error_setg_errno(Error **errp, int os_errno, const char *fmt, ...)
{
va_list ap;
char *msg;
int saved_errno = errno;
if (errp == NULL) {
return;
}
va_start(ap, fmt);
error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);
va_end(ap);
if (os_errno != 0) {
... | {
"code": [
" error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);",
"void error_setg_errno(Error **errp, int os_errno, const char *fmt, ...)",
" error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);",
" error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);"
],
"line_no": [
23,
1... | void FUNC_0(Error **VAR_0, int VAR_1, const char *VAR_2, ...)
{
va_list ap;
char *VAR_3;
int VAR_4 = errno;
if (VAR_0 == NULL) {
return;
}
va_start(ap, VAR_2);
error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_2, ap);
va_end(ap);
if (VAR_1 != 0) {
VAR... | [
"void FUNC_0(Error **VAR_0, int VAR_1, const char *VAR_2, ...)\n{",
"va_list ap;",
"char *VAR_3;",
"int VAR_4 = errno;",
"if (VAR_0 == NULL) {",
"return;",
"}",
"va_start(ap, VAR_2);",
"error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_2, ap);",
"va_end(ap);",
"if (VAR_1 != 0) {",
"VAR_3 = (*VA... | [
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
824 | void bitmap_set(unsigned long *map, long start, long nr)
{
unsigned long *p = map + BIT_WORD(start);
const long size = start + nr;
int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG);
unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start);
while (nr - bits_to_set >= 0) {
*p |= mask_... | true | qemu | e12ed72e5c00dd3375b8bd107200e4d7e950276a | void bitmap_set(unsigned long *map, long start, long nr)
{
unsigned long *p = map + BIT_WORD(start);
const long size = start + nr;
int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG);
unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start);
while (nr - bits_to_set >= 0) {
*p |= mask_... | {
"code": [],
"line_no": []
} | void FUNC_0(unsigned long *VAR_0, long VAR_1, long VAR_2)
{
unsigned long *VAR_3 = VAR_0 + BIT_WORD(VAR_1);
const long VAR_4 = VAR_1 + VAR_2;
int VAR_5 = BITS_PER_LONG - (VAR_1 % BITS_PER_LONG);
unsigned long VAR_6 = BITMAP_FIRST_WORD_MASK(VAR_1);
while (VAR_2 - VAR_5 >= 0) {
*VAR_3 |= VAR_6... | [
"void FUNC_0(unsigned long *VAR_0, long VAR_1, long VAR_2)\n{",
"unsigned long *VAR_3 = VAR_0 + BIT_WORD(VAR_1);",
"const long VAR_4 = VAR_1 + VAR_2;",
"int VAR_5 = BITS_PER_LONG - (VAR_1 % BITS_PER_LONG);",
"unsigned long VAR_6 = BITMAP_FIRST_WORD_MASK(VAR_1);",
"while (VAR_2 - VAR_5 >= 0) {",
"*VAR_3 ... | [
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
]
] |
825 | static void vmdk_free_extents(BlockDriverState *bs)
{
int i;
BDRVVmdkState *s = bs->opaque;
for (i = 0; i < s->num_extents; i++) {
g_free(s->extents[i].l1_table);
g_free(s->extents[i].l2_cache);
g_free(s->extents[i].l1_backup_table);
}
g_free(s->extents);
}
| true | qemu | b3c0bfb6f949d8f1c97f390f951c0bab3e703810 | static void vmdk_free_extents(BlockDriverState *bs)
{
int i;
BDRVVmdkState *s = bs->opaque;
for (i = 0; i < s->num_extents; i++) {
g_free(s->extents[i].l1_table);
g_free(s->extents[i].l2_cache);
g_free(s->extents[i].l1_backup_table);
}
g_free(s->extents);
}
| {
"code": [
" g_free(s->extents[i].l1_table);",
" g_free(s->extents[i].l2_cache);",
" g_free(s->extents[i].l1_backup_table);"
],
"line_no": [
13,
15,
17
]
} | static void FUNC_0(BlockDriverState *VAR_0)
{
int VAR_1;
BDRVVmdkState *s = VAR_0->opaque;
for (VAR_1 = 0; VAR_1 < s->num_extents; VAR_1++) {
g_free(s->extents[VAR_1].l1_table);
g_free(s->extents[VAR_1].l2_cache);
g_free(s->extents[VAR_1].l1_backup_table);
}
g_free... | [
"static void FUNC_0(BlockDriverState *VAR_0)\n{",
"int VAR_1;",
"BDRVVmdkState *s = VAR_0->opaque;",
"for (VAR_1 = 0; VAR_1 < s->num_extents; VAR_1++) {",
"g_free(s->extents[VAR_1].l1_table);",
"g_free(s->extents[VAR_1].l2_cache);",
"g_free(s->extents[VAR_1].l1_backup_table);",
"}",
"g_free(s->exten... | [
0,
0,
0,
0,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
826 | static void console_putchar(TextConsole *s, int ch)
{
TextCell *c;
int y1, i;
int x, y;
switch(s->state) {
case TTY_STATE_NORM:
switch(ch) {
case '\r': /* carriage return */
s->x = 0;
break;
case '\n': /* newline */
console_... | true | qemu | 3eea5498ca501922520b3447ba94815bfc109743 | static void console_putchar(TextConsole *s, int ch)
{
TextCell *c;
int y1, i;
int x, y;
switch(s->state) {
case TTY_STATE_NORM:
switch(ch) {
case '\r':
s->x = 0;
break;
case '\n':
console_put_lf(s);
break;
... | {
"code": [
" s->nb_esc_params++;",
" s->y -= s->esc_params[0];",
" if (s->y < 0) {",
" s->y = 0;",
" s->y += s->esc_params[0];",
" if (s->y >= s->height) {",
" s->y = s->height - 1... | static void FUNC_0(TextConsole *VAR_0, int VAR_1)
{
TextCell *c;
int VAR_2, VAR_3;
int VAR_4, VAR_5;
switch(VAR_0->state) {
case TTY_STATE_NORM:
switch(VAR_1) {
case '\r':
VAR_0->VAR_4 = 0;
break;
case '\n':
console_put_lf... | [
"static void FUNC_0(TextConsole *VAR_0, int VAR_1)\n{",
"TextCell *c;",
"int VAR_2, VAR_3;",
"int VAR_4, VAR_5;",
"switch(VAR_0->state) {",
"case TTY_STATE_NORM:\nswitch(VAR_1) {",
"case '\\r':\nVAR_0->VAR_4 = 0;",
"break;",
"case '\\n':\nconsole_put_lf(VAR_0);",
"break;",
"case '\\b':\nif (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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
827 | static void blkverify_err(BlkverifyAIOCB *acb, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "blkverify: %s sector_num=%ld nb_sectors=%d ",
acb->is_write ? "write" : "read", acb->sector_num,
acb->nb_sectors);
vfprintf(stderr, fmt, ap);
fprin... | true | qemu | 687db4ed2ecd5fd74c94fbb420482823cca4ab7e | static void blkverify_err(BlkverifyAIOCB *acb, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "blkverify: %s sector_num=%ld nb_sectors=%d ",
acb->is_write ? "write" : "read", acb->sector_num,
acb->nb_sectors);
vfprintf(stderr, fmt, ap);
fprin... | {
"code": [
" fprintf(stderr, \"blkverify: %s sector_num=%ld nb_sectors=%d \","
],
"line_no": [
11
]
} | static void FUNC_0(BlkverifyAIOCB *VAR_0, const char *VAR_1, ...)
{
va_list ap;
va_start(ap, VAR_1);
fprintf(stderr, "blkverify: %s sector_num=%ld nb_sectors=%d ",
VAR_0->is_write ? "write" : "read", VAR_0->sector_num,
VAR_0->nb_sectors);
vfprintf(stderr, VAR_1, ap);
... | [
"static void FUNC_0(BlkverifyAIOCB *VAR_0, const char *VAR_1, ...)\n{",
"va_list ap;",
"va_start(ap, VAR_1);",
"fprintf(stderr, \"blkverify: %s sector_num=%ld nb_sectors=%d \",\nVAR_0->is_write ? \"write\" : \"read\", VAR_0->sector_num,\nVAR_0->nb_sectors);",
"vfprintf(stderr, VAR_1, ap);",
"fprintf(stder... | [
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
828 | static void format_line(void *ptr, int level, const char *fmt, va_list vl,
char part[3][512], int part_size, int *print_prefix, int type[2])
{
AVClass* avc = ptr ? *(AVClass **) ptr : NULL;
part[0][0] = part[1][0] = part[2][0] = 0;
if(type) type[0] = type[1] = AV_CLASS_CATEGORY_... | true | FFmpeg | 258dfff8394d383beaa639d19912b3f068f67e16 | static void format_line(void *ptr, int level, const char *fmt, va_list vl,
char part[3][512], int part_size, int *print_prefix, int type[2])
{
AVClass* avc = ptr ? *(AVClass **) ptr : NULL;
part[0][0] = part[1][0] = part[2][0] = 0;
if(type) type[0] = type[1] = AV_CLASS_CATEGORY_... | {
"code": [
" char part[3][512], int part_size, int *print_prefix, int type[2])"
],
"line_no": [
3
]
} | static void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3,
char VAR_4[3][512], int VAR_5, int *VAR_6, int VAR_7[2])
{
AVClass* avc = VAR_0 ? *(AVClass **) VAR_0 : NULL;
VAR_4[0][0] = VAR_4[1][0] = VAR_4[2][0] = 0;
if(VAR_7) VAR_7[0] = VAR_7[1] = AV_CLASS_CATEGO... | [
"static void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3,\nchar VAR_4[3][512], int VAR_5, int *VAR_6, int VAR_7[2])\n{",
"AVClass* avc = VAR_0 ? *(AVClass **) VAR_0 : NULL;",
"VAR_4[0][0] = VAR_4[1][0] = VAR_4[2][0] = 0;",
"if(VAR_7) VAR_7[0] = VAR_7[1] = AV_CLASS_CATEGORY_NA + 16;",
"if... | [
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
],
[
43
],
[
47
],
[
49
... |
829 | find_c_packed_planar_out_funcs(SwsContext *c,
yuv2planar1_fn *yuv2yuv1, yuv2planarX_fn *yuv2yuvX,
yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2,
yuv2packedX_fn *yuv2packedX)
{
enum PixelFormat dstFormat =... | false | FFmpeg | dff5a8353266641311827a4bbdd940f7ad08c8b6 | find_c_packed_planar_out_funcs(SwsContext *c,
yuv2planar1_fn *yuv2yuv1, yuv2planarX_fn *yuv2yuvX,
yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2,
yuv2packedX_fn *yuv2packedX)
{
enum PixelFormat dstFormat =... | {
"code": [],
"line_no": []
} | FUNC_0(SwsContext *VAR_0,
yuv2planar1_fn *VAR_1, yuv2planarX_fn *VAR_2,
yuv2packed1_fn *VAR_3, yuv2packed2_fn *VAR_4,
yuv2packedX_fn *VAR_5)
{
enum PixelFormat VAR_6 = VAR_0->VAR_6;
if (VAR_6 == PIX_FMT_NV12 ... | [
"FUNC_0(SwsContext *VAR_0,\nyuv2planar1_fn *VAR_1, yuv2planarX_fn *VAR_2,\nyuv2packed1_fn *VAR_3, yuv2packed2_fn *VAR_4,\nyuv2packedX_fn *VAR_5)\n{",
"enum PixelFormat VAR_6 = VAR_0->VAR_6;",
"if (VAR_6 == PIX_FMT_NV12 || VAR_6 == PIX_FMT_NV21) {",
"*VAR_2 = yuv2nv12X_c;",
"} else if (is16BPS(VAR_6))... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
45
],
[... |
830 | static av_always_inline void h264_filter_mb_fast_internal(H264Context *h,
int mb_x, int mb_y,
uint8_t *img_y,
uint8_t *img_cb,
... | false | FFmpeg | f777504f640260337974848c7d5d7a3f064bbb45 | static av_always_inline void h264_filter_mb_fast_internal(H264Context *h,
int mb_x, int mb_y,
uint8_t *img_y,
uint8_t *img_cb,
... | {
"code": [],
"line_no": []
} | static av_always_inline void FUNC_0(H264Context *h,
int mb_x, int mb_y,
uint8_t *img_y,
uint8_t *img_cb,
... | [
"static av_always_inline void FUNC_0(H264Context *h,\nint mb_x, int mb_y,\nuint8_t *img_y,\nuint8_t *img_cb,\nuint8_t *img_cr,\nunsigned int linesize,\nunsigned int uvlinesize,\nint pixel_shift)\n{",
"int VAR_0 = !(CONFIG_GRAY && (h->flags&CODEC_FLAG_GRAY));",
"int VAR_1 = CHROMA444(h);",
"int VAR_2 = CHROMA4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
831 | static int h263_decode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
s->out_format = FMT_H263;
s->width = avctx->width;
s->height = avctx->height;
/* select sub codec */
switch(avctx->codec->id) {
case CODEC_ID_H263:
... | true | FFmpeg | d7e9533aa06f4073a27812349b35ba5fede11ca1 | static int h263_decode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
s->out_format = FMT_H263;
s->width = avctx->width;
s->height = avctx->height;
switch(avctx->codec->id) {
case CODEC_ID_H263:
s->gob_number = 0... | {
"code": [
" for(i=0;i<64;i++)",
" s->non_intra_matrix[i] = default_non_intra_matrix[i];",
" int i;",
" s->non_intra_matrix[i] = default_non_intra_matrix[i];",
" for(i=0;i<64;i++)",
" s->non_intra_matrix[i] = default_non_intra_matrix[i];"
],
"line_no": [
... | static int FUNC_0(AVCodecContext *VAR_0)
{
MpegEncContext *s = VAR_0->priv_data;
int VAR_1;
s->VAR_0 = VAR_0;
s->out_format = FMT_H263;
s->width = VAR_0->width;
s->height = VAR_0->height;
switch(VAR_0->codec->id) {
case CODEC_ID_H263:
s->gob_number = 0;
... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"MpegEncContext *s = VAR_0->priv_data;",
"int VAR_1;",
"s->VAR_0 = VAR_0;",
"s->out_format = FMT_H263;",
"s->width = VAR_0->width;",
"s->height = VAR_0->height;",
"switch(VAR_0->codec->id) {",
"case CODEC_ID_H263:\ns->gob_number = 0;",
"s->first_gob_l... | [
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,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
... |
832 | static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
IEC958Context *ctx = s->priv_data;
int ret, padding;
ctx->out_bytes = pkt->size;
ctx->length_code = FFALIGN(pkt->size, 2) << 3;
ret = ctx->header_info(s, pkt);
if (ret < 0)
return -1;
if (!ctx->pk... | true | FFmpeg | 4b6bfbe2b70ea87831fa9a42a2ac112ee8a386d2 | static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
IEC958Context *ctx = s->priv_data;
int ret, padding;
ctx->out_bytes = pkt->size;
ctx->length_code = FFALIGN(pkt->size, 2) << 3;
ret = ctx->header_info(s, pkt);
if (ret < 0)
return -1;
if (!ctx->pk... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1)
{
IEC958Context *ctx = VAR_0->priv_data;
int VAR_2, VAR_3;
ctx->out_bytes = VAR_1->size;
ctx->length_code = FFALIGN(VAR_1->size, 2) << 3;
VAR_2 = ctx->header_info(VAR_0, VAR_1);
if (VAR_2 < 0)
return -1;
... | [
"static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"IEC958Context *ctx = VAR_0->priv_data;",
"int VAR_2, VAR_3;",
"ctx->out_bytes = VAR_1->size;",
"ctx->length_code = FFALIGN(VAR_1->size, 2) << 3;",
"VAR_2 = ctx->header_info(VAR_0, VAR_1);",
"if (VAR_2 < 0)\nreturn -1;",
"if (!ctx... | [
0,
0,
0,
0,
0,
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
],
[
12
],
[
14
],
[
18
],
[
20,
22
],
[
24,
26
],
[
30
],
[
32
],
[
34
],
[
36
],
[
38
],
[
42
],
[
44
],
[
46
],
[
48
],
[
52,
54
],
... |
833 | static void blkverify_refresh_filename(BlockDriverState *bs, QDict *options)
{
BDRVBlkverifyState *s = bs->opaque;
/* bs->file->bs has already been refreshed */
bdrv_refresh_filename(s->test_file->bs);
if (bs->file->bs->full_open_options
&& s->test_file->bs->full_open_options)
{
... | true | qemu | 05cc758a3dfc79488d0a8eb7f5830a41871e78d0 | static void blkverify_refresh_filename(BlockDriverState *bs, QDict *options)
{
BDRVBlkverifyState *s = bs->opaque;
bdrv_refresh_filename(s->test_file->bs);
if (bs->file->bs->full_open_options
&& s->test_file->bs->full_open_options)
{
QDict *opts = qdict_new();
q... | {
"code": [
" snprintf(bs->exact_filename, sizeof(bs->exact_filename),",
" \"blkverify:%s:%s\",",
" bs->file->bs->exact_filename,",
" s->test_file->bs->exact_filename);"
],
"line_no": [
49,
51,
53,
55
]
} | static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)
{
BDRVBlkverifyState *s = VAR_0->opaque;
bdrv_refresh_filename(s->test_file->VAR_0);
if (VAR_0->file->VAR_0->full_open_options
&& s->test_file->VAR_0->full_open_options)
{
QDict *opts = qdict_new();
qdict... | [
"static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)\n{",
"BDRVBlkverifyState *s = VAR_0->opaque;",
"bdrv_refresh_filename(s->test_file->VAR_0);",
"if (VAR_0->file->VAR_0->full_open_options\n&& s->test_file->VAR_0->full_open_options)\n{",
"QDict *opts = qdict_new();",
"qdict_put_str(opts, \"driver\"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15,
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43,
45,
47
],
[
49,
51,
53,
55
],
[
57
],
[
59
]
] |
834 | static int ffmmal_read_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
{
MMALDecodeContext *ctx = avctx->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int ret = 0;
if (ctx->eos_received)
goto done;
while (1) {
// To ensure dec... | false | FFmpeg | b84675d63aaede8f6944b901250a10456c5477e6 | static int ffmmal_read_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
{
MMALDecodeContext *ctx = avctx->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int ret = 0;
if (ctx->eos_received)
goto done;
while (1) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)
{
MMALDecodeContext *ctx = VAR_0->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int VAR_3 = 0;
if (ctx->eos_received)
goto done;
while (1) {
... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)\n{",
"MMALDecodeContext *ctx = VAR_0->priv_data;",
"MMAL_BUFFER_HEADER_T *buffer = NULL;",
"MMAL_STATUS_T status = 0;",
"int VAR_3 = 0;",
"if (ctx->eos_received)\ngoto done;",
"while (1) {",
"if (ctx->frames_output || ctx->packets_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55,
57
],
[
61
],
[
63,
65
],
[
69
],
[
71
],
[
73
],
[... |
835 | void ff_sbrdsp_init_x86(SBRDSPContext *s)
{
if (HAVE_YASM) {
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_SSE) {
s->sum_square = ff_sbr_sum_square_sse;
s->hf_g_filt = ff_sbr_hf_g_filt_sse;
}
}
}
| false | FFmpeg | e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6 | void ff_sbrdsp_init_x86(SBRDSPContext *s)
{
if (HAVE_YASM) {
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_SSE) {
s->sum_square = ff_sbr_sum_square_sse;
s->hf_g_filt = ff_sbr_hf_g_filt_sse;
}
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(SBRDSPContext *VAR_0)
{
if (HAVE_YASM) {
int VAR_1 = av_get_cpu_flags();
if (VAR_1 & AV_CPU_FLAG_SSE) {
VAR_0->sum_square = ff_sbr_sum_square_sse;
VAR_0->hf_g_filt = ff_sbr_hf_g_filt_sse;
}
}
}
| [
"void FUNC_0(SBRDSPContext *VAR_0)\n{",
"if (HAVE_YASM) {",
"int VAR_1 = av_get_cpu_flags();",
"if (VAR_1 & AV_CPU_FLAG_SSE) {",
"VAR_0->sum_square = ff_sbr_sum_square_sse;",
"VAR_0->hf_g_filt = ff_sbr_hf_g_filt_sse;",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
836 | static int usb_host_handle_control(USBHostDevice *s, USBPacket *p)
{
struct usbdevfs_urb *urb;
AsyncURB *aurb;
int ret, value, index;
/*
* Process certain standard device requests.
* These are infrequent and are processed synchronously.
*/
value = le16_to_cpu(s->ctrl.req.w... | true | qemu | c4c0e236beabb9de5ff472f77aeb811ec5484615 | static int usb_host_handle_control(USBHostDevice *s, USBPacket *p)
{
struct usbdevfs_urb *urb;
AsyncURB *aurb;
int ret, value, index;
value = le16_to_cpu(s->ctrl.req.wValue);
index = le16_to_cpu(s->ctrl.req.wIndex);
dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x index %u ... | {
"code": [
" urb->buffer_length = 8 + s->ctrl.len;"
],
"line_no": [
99
]
} | static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1)
{
struct usbdevfs_urb *VAR_2;
AsyncURB *aurb;
int VAR_3, VAR_4, VAR_5;
VAR_4 = le16_to_cpu(VAR_0->ctrl.req.wValue);
VAR_5 = le16_to_cpu(VAR_0->ctrl.req.wIndex);
dprintf("husb: ctrl type 0x%x req 0x%x val 0x%x VAR_5 ... | [
"static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1)\n{",
"struct usbdevfs_urb *VAR_2;",
"AsyncURB *aurb;",
"int VAR_3, VAR_4, VAR_5;",
"VAR_4 = le16_to_cpu(VAR_0->ctrl.req.wValue);",
"VAR_5 = le16_to_cpu(VAR_0->ctrl.req.wIndex);",
"dprintf(\"husb: ctrl type 0x%x req 0x%x val 0x%x VAR_5 %u len %u\... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
21
],
[
23
],
[
27,
29,
31
],
[
35
],
[
37
],
[
39,
41
],
[
45,
47
],
[
49
],
[
51
],
[
55,
57,
59
],
[
67
],
[
69
],
[
71
... |
839 | static void pc_init1(MachineState *machine)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
... | true | qemu | 2ba154cf4eb8636cdd3aa90f392ca9e77206ca39 | static void pc_init1(MachineState *machine)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
... | {
"code": [
" qemu_irq *smi_irq;",
" smi_irq = qemu_allocate_irqs(pc_acpi_smi_interrupt, first_cpu, 1);",
" gsi[9], *smi_irq,"
],
"line_no": [
29,
419,
425
]
} | static void FUNC_0(MachineState *VAR_0)
{
PCMachineState *pc_machine = PC_MACHINE(VAR_0);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int VAR_1;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
P... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"PCMachineState *pc_machine = PC_MACHINE(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"MemoryRegion *system_io = get_system_io();",
"int VAR_1;",
"ram_addr_t below_4g_mem_size, above_4g_mem_size;",
"PCIBus *pci_bus;",
"ISABus *isa_bus;",... | [
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,
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
... |
840 | static void parse_type_int64(Visitor *v, const char *name, int64_t *obj,
Error **errp)
{
StringInputVisitor *siv = to_siv(v);
if (!siv->string) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",
"integer");
return;
... | true | qemu | 74f24cb6306d065045d0e2215a7d10533fa59c57 | static void parse_type_int64(Visitor *v, const char *name, int64_t *obj,
Error **errp)
{
StringInputVisitor *siv = to_siv(v);
if (!siv->string) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",
"integer");
return;
... | {
"code": [
" parse_str(siv, errp);",
" parse_str(siv, errp);"
],
"line_no": [
23,
23
]
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, int64_t *VAR_2,
Error **VAR_3)
{
StringInputVisitor *siv = to_siv(VAR_0);
if (!siv->string) {
error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",
"integer");
return;
... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, int64_t *VAR_2,\nError **VAR_3)\n{",
"StringInputVisitor *siv = to_siv(VAR_0);",
"if (!siv->string) {",
"error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : \"null\",\n\"integer\");",
"return;",
"}",
"parse_str(siv, VAR_3);",
"if (!siv-... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55... |
841 | void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len)
{
s->chr_read(s->handler_opaque, buf, len);
}
| true | qemu | ac3107340fbb9422ea63ee5d6729775965e121fd | void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len)
{
s->chr_read(s->handler_opaque, buf, len);
}
| {
"code": [
" s->chr_read(s->handler_opaque, buf, len);"
],
"line_no": [
5
]
} | void FUNC_0(CharDriverState *VAR_0, uint8_t *VAR_1, int VAR_2)
{
VAR_0->chr_read(VAR_0->handler_opaque, VAR_1, VAR_2);
}
| [
"void FUNC_0(CharDriverState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"VAR_0->chr_read(VAR_0->handler_opaque, VAR_1, VAR_2);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
842 | static void virtio_set_status(struct subchannel_id schid,
unsigned long dev_addr)
{
unsigned char status = dev_addr;
if (run_ccw(schid, CCW_CMD_WRITE_STATUS, &status, sizeof(status))) {
virtio_panic("Could not write status to host!\n");
}
}
| true | qemu | c9262e8a84a29f22fbb5edde5d17f4f6166d5ae1 | static void virtio_set_status(struct subchannel_id schid,
unsigned long dev_addr)
{
unsigned char status = dev_addr;
if (run_ccw(schid, CCW_CMD_WRITE_STATUS, &status, sizeof(status))) {
virtio_panic("Could not write status to host!\n");
}
}
| {
"code": [
" virtio_panic(\"Could not write status to host!\\n\");"
],
"line_no": [
11
]
} | static void FUNC_0(struct subchannel_id VAR_0,
unsigned long VAR_1)
{
unsigned char VAR_2 = VAR_1;
if (run_ccw(VAR_0, CCW_CMD_WRITE_STATUS, &VAR_2, sizeof(VAR_2))) {
virtio_panic("Could not write VAR_2 to host!\n");
}
}
| [
"static void FUNC_0(struct subchannel_id VAR_0,\nunsigned long VAR_1)\n{",
"unsigned char VAR_2 = VAR_1;",
"if (run_ccw(VAR_0, CCW_CMD_WRITE_STATUS, &VAR_2, sizeof(VAR_2))) {",
"virtio_panic(\"Could not write VAR_2 to host!\\n\");",
"}",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
843 | uint32_t do_arm_semihosting(CPUState *env)
{
target_ulong args;
char * s;
int nr;
uint32_t ret;
uint32_t len;
#ifdef CONFIG_USER_ONLY
TaskState *ts = env->opaque;
#else
CPUState *ts = env;
#endif
nr = env->regs[0];
args = env->regs[1];
switch (nr) {
case SYS_... | true | qemu | 206ae74aea5593f5f5bad769a6b4f101f17bc6fd | uint32_t do_arm_semihosting(CPUState *env)
{
target_ulong args;
char * s;
int nr;
uint32_t ret;
uint32_t len;
#ifdef CONFIG_USER_ONLY
TaskState *ts = env->opaque;
#else
CPUState *ts = env;
#endif
nr = env->regs[0];
args = env->regs[1];
switch (nr) {
case SYS_... | {
"code": [
" long ret;",
" if (ret != -1)"
],
"line_no": [
535,
549
]
} | uint32_t FUNC_0(CPUState *env)
{
target_ulong args;
char * VAR_0;
int VAR_1;
uint32_t ret;
uint32_t len;
#ifdef CONFIG_USER_ONLY
TaskState *ts = env->opaque;
#else
CPUState *ts = env;
#endif
VAR_1 = env->regs[0];
args = env->regs[1];
switch (VAR_1) {
case SYS... | [
"uint32_t FUNC_0(CPUState *env)\n{",
"target_ulong args;",
"char * VAR_0;",
"int VAR_1;",
"uint32_t ret;",
"uint32_t len;",
"#ifdef CONFIG_USER_ONLY\nTaskState *ts = env->opaque;",
"#else\nCPUState *ts = env;",
"#endif\nVAR_1 = env->regs[0];",
"args = env->regs[1];",
"switch (VAR_1) {",
"case ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51,
53
... |
844 | int inet_connect(const char *str, Error **errp)
{
QemuOpts *opts;
int sock = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0, NULL);
if (inet_parse(opts, str) == 0) {
sock = inet_connect_opts(opts, true, NULL, errp);
} else {
error_set(errp, QERR_SOCKET_CREATE_FAILED);
... | true | qemu | 233aa5c2d1cf4655ffe335025a68cf5454f87dad | int inet_connect(const char *str, Error **errp)
{
QemuOpts *opts;
int sock = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0, NULL);
if (inet_parse(opts, str) == 0) {
sock = inet_connect_opts(opts, true, NULL, errp);
} else {
error_set(errp, QERR_SOCKET_CREATE_FAILED);
... | {
"code": [
" } else {",
" sock = inet_connect_opts(opts, true, NULL, errp);"
],
"line_no": [
17,
15
]
} | int FUNC_0(const char *VAR_0, Error **VAR_1)
{
QemuOpts *opts;
int VAR_2 = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0, NULL);
if (inet_parse(opts, VAR_0) == 0) {
VAR_2 = inet_connect_opts(opts, true, NULL, VAR_1);
} else {
error_set(VAR_1, QERR_SOCKET_CREATE_FAILED);
... | [
"int FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"QemuOpts *opts;",
"int VAR_2 = -1;",
"opts = qemu_opts_create(&dummy_opts, NULL, 0, NULL);",
"if (inet_parse(opts, VAR_0) == 0) {",
"VAR_2 = inet_connect_opts(opts, true, NULL, VAR_1);",
"} else {",
"error_set(VAR_1, QERR_SOCKET_CREATE_FAILED);",
"... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
845 | static void do_interrupt_user(CPUX86State *env, int intno, int is_int,
int error_code, target_ulong next_eip)
{
SegmentCache *dt;
target_ulong ptr;
int dpl, cpl, shift;
uint32_t e2;
dt = &env->idt;
if (env->hflags & HF_LMA_MASK) {
shift = 4;
... | true | qemu | 885b7c44e4f8b7a012a92770a0dba8b238662caa | static void do_interrupt_user(CPUX86State *env, int intno, int is_int,
int error_code, target_ulong next_eip)
{
SegmentCache *dt;
target_ulong ptr;
int dpl, cpl, shift;
uint32_t e2;
dt = &env->idt;
if (env->hflags & HF_LMA_MASK) {
shift = 4;
... | {
"code": [
" SegmentCache *dt;",
" target_ulong ptr;",
" int dpl, cpl, shift;",
" uint32_t e2;",
" dt = &env->idt;",
" if (env->hflags & HF_LMA_MASK) {",
" shift = 4;",
" } else {",
" shift = 3;",
" ptr = dt->base + (intno << shift);",
... | static void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2,
int VAR_3, target_ulong VAR_4)
{
SegmentCache *dt;
target_ulong ptr;
int VAR_5, VAR_6, VAR_7;
uint32_t e2;
dt = &VAR_0->idt;
if (VAR_0->hflags & HF_LMA_MASK) {
VAR_7 = 4;
} else {
... | [
"static void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, target_ulong VAR_4)\n{",
"SegmentCache *dt;",
"target_ulong ptr;",
"int VAR_5, VAR_6, VAR_7;",
"uint32_t e2;",
"dt = &VAR_0->idt;",
"if (VAR_0->hflags & HF_LMA_MASK) {",
"VAR_7 = 4;",
"} else {",
"VAR_7 = 3;",
"}",
"ptr ... | [
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
55
],
[... |
846 | static int64_t load_kernel(void)
{
int64_t entry, kernel_high;
long kernel_size, initrd_size, params_size;
ram_addr_t initrd_offset;
uint32_t *params_buf;
int big_endian;
#ifdef TARGET_WORDS_BIGENDIAN
big_endian = 1;
#else
big_endian = 0;
#endif
kernel_size = load_elf(loade... | true | qemu | 3ad9fd5a257794d516db515c217c78a5806112fe | static int64_t load_kernel(void)
{
int64_t entry, kernel_high;
long kernel_size, initrd_size, params_size;
ram_addr_t initrd_offset;
uint32_t *params_buf;
int big_endian;
#ifdef TARGET_WORDS_BIGENDIAN
big_endian = 1;
#else
big_endian = 0;
#endif
kernel_size = load_elf(loade... | {
"code": [],
"line_no": []
} | static int64_t FUNC_0(void)
{
int64_t entry, kernel_high;
long VAR_0, VAR_1, VAR_2;
ram_addr_t initrd_offset;
uint32_t *params_buf;
int VAR_3;
#ifdef TARGET_WORDS_BIGENDIAN
VAR_3 = 1;
#else
VAR_3 = 0;
#endif
VAR_0 = load_elf(loaderparams.kernel_filename, cpu_mips_kseg0_to_p... | [
"static int64_t FUNC_0(void)\n{",
"int64_t entry, kernel_high;",
"long VAR_0, VAR_1, VAR_2;",
"ram_addr_t initrd_offset;",
"uint32_t *params_buf;",
"int VAR_3;",
"#ifdef TARGET_WORDS_BIGENDIAN\nVAR_3 = 1;",
"#else\nVAR_3 = 0;",
"#endif\nVAR_0 = load_elf(loaderparams.kernel_filename, cpu_mips_kseg0_t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23
],
[
25,
27,
29,
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
55
... |
847 | static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) {
CinFrameHeader *hdr = &cin->frame_header;
hdr->video_frame_type = avio_r8(pb);
hdr->audio_frame_type = avio_r8(pb);
hdr->pal_colors_count = avio_rl16(pb);
hdr->video_frame_size = avio_rl32(pb);
hdr->audio_frame_siz... | true | FFmpeg | 48d6556dd46d4f4fac10d0f4a819e314887cd50e | static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) {
CinFrameHeader *hdr = &cin->frame_header;
hdr->video_frame_type = avio_r8(pb);
hdr->audio_frame_type = avio_r8(pb);
hdr->pal_colors_count = avio_rl16(pb);
hdr->video_frame_size = avio_rl32(pb);
hdr->audio_frame_siz... | {
"code": [],
"line_no": []
} | static int FUNC_0(CinDemuxContext *VAR_0, AVIOContext *VAR_1) {
CinFrameHeader *hdr = &VAR_0->frame_header;
hdr->video_frame_type = avio_r8(VAR_1);
hdr->audio_frame_type = avio_r8(VAR_1);
hdr->pal_colors_count = avio_rl16(VAR_1);
hdr->video_frame_size = avio_rl32(VAR_1);
hdr->audio_frame... | [
"static int FUNC_0(CinDemuxContext *VAR_0, AVIOContext *VAR_1) {",
"CinFrameHeader *hdr = &VAR_0->frame_header;",
"hdr->video_frame_type = avio_r8(VAR_1);",
"hdr->audio_frame_type = avio_r8(VAR_1);",
"hdr->pal_colors_count = avio_rl16(VAR_1);",
"hdr->video_frame_size = avio_rl32(VAR_1);",
"hdr->audio_fr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
32
],
[
34
]
] |
849 | static void test_endianness_combine(gconstpointer data)
{
const TestCase *test = data;
char *args;
args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
test->machine,
test->superio ? " -device " : "",
t... | true | qemu | 2ad645d2854746b55ddfd1d8e951f689cca5d78f | static void test_endianness_combine(gconstpointer data)
{
const TestCase *test = data;
char *args;
args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
test->machine,
test->superio ? " -device " : "",
t... | {
"code": [
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",",
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",",
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\","
],
"line_no": [
11,
11,
11
]
} | static void FUNC_0(gconstpointer VAR_0)
{
const TestCase *VAR_1 = VAR_0;
char *VAR_2;
VAR_2 = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
VAR_1->machine,
VAR_1->superio ? " -device " : "",
VAR_1->supe... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"const TestCase *VAR_1 = VAR_0;",
"char *VAR_2;",
"VAR_2 = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",\nVAR_1->machine,\nVAR_1->superio ? \" -device \" : \"\",\nVAR_1->superio ?: \"\");",
"qtest_start(VAR_2);",
"isa_outl(VAR_1, 0xe0, 0x8765... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
851 | int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
enum AVPixelFormat pix_fmt, int width, int height)
{
int i;
if (pix_fmt != AV_PIX_FMT_YUV420P &&
pix_fmt != AV_PIX_FMT_YUVJ420P &&
pix_fmt != AV_PIX_FMT_YUV422P &&
pix_fmt != AV_PIX_FMT_YUV... | false | FFmpeg | 210461c0a83a5625560fa1d92229200dc7fb869b | int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
enum AVPixelFormat pix_fmt, int width, int height)
{
int i;
if (pix_fmt != AV_PIX_FMT_YUV420P &&
pix_fmt != AV_PIX_FMT_YUVJ420P &&
pix_fmt != AV_PIX_FMT_YUV422P &&
pix_fmt != AV_PIX_FMT_YUV... | {
"code": [],
"line_no": []
} | int FUNC_0(AVPicture *VAR_0, const AVPicture *VAR_1,
enum AVPixelFormat VAR_2, int VAR_3, int VAR_4)
{
int VAR_5;
if (VAR_2 != AV_PIX_FMT_YUV420P &&
VAR_2 != AV_PIX_FMT_YUVJ420P &&
VAR_2 != AV_PIX_FMT_YUV422P &&
VAR_2 != AV_PIX_FMT_YUVJ422P &&
... | [
"int FUNC_0(AVPicture *VAR_0, const AVPicture *VAR_1,\nenum AVPixelFormat VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5;",
"if (VAR_2 != AV_PIX_FMT_YUV420P &&\nVAR_2 != AV_PIX_FMT_YUVJ420P &&\nVAR_2 != AV_PIX_FMT_YUV422P &&\nVAR_2 != AV_PIX_FMT_YUVJ422P &&\nVAR_2 != AV_PIX_FMT_YUV444P &&\nVAR_2 != AV_PIX_FMT_YUV... | [
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47
],
[
49,
51,
53
],
[
55
],
[
57,
59... |
852 | static void chroma_mc(HEVCContext *s, int16_t *dst1, int16_t *dst2,
ptrdiff_t dststride, AVFrame *ref, const Mv *mv,
int x_off, int y_off, int block_w, int block_h)
{
HEVCLocalContext *lc = &s->HEVClc;
uint8_t *src1 = ref->data[1];
uint8_t *src2 ... | false | FFmpeg | a1926a29fb4325afa46842883f197c74d4535c36 | static void chroma_mc(HEVCContext *s, int16_t *dst1, int16_t *dst2,
ptrdiff_t dststride, AVFrame *ref, const Mv *mv,
int x_off, int y_off, int block_w, int block_h)
{
HEVCLocalContext *lc = &s->HEVClc;
uint8_t *src1 = ref->data[1];
uint8_t *src2 ... | {
"code": [],
"line_no": []
} | static void FUNC_0(HEVCContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2,
ptrdiff_t VAR_3, AVFrame *VAR_4, const Mv *VAR_5,
int VAR_6, int VAR_7, int VAR_8, int VAR_9)
{
HEVCLocalContext *lc = &VAR_0->HEVClc;
uint8_t *src1 = VAR_4->data[1];
uint8_t *src2... | [
"static void FUNC_0(HEVCContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2,\nptrdiff_t VAR_3, AVFrame *VAR_4, const Mv *VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9)\n{",
"HEVCLocalContext *lc = &VAR_0->HEVClc;",
"uint8_t *src1 = VAR_4->data[1];",
"uint8_t *src2 = VAR_4->data[2];",
"ptrdiff_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43,
45
],
[
47
],
[
49
],
[
51,... |
853 | static void mpegts_push_data(void *opaque,
const uint8_t *buf, int buf_size, int is_start)
{
PESContext *pes = opaque;
MpegTSContext *ts = pes->stream->priv_data;
AVStream *st;
const uint8_t *p;
int len, code, codec_type, codec_id;
if (is_start) {
... | false | FFmpeg | ec23a47286a9be0ca67b78f4d8b9d87220c18286 | static void mpegts_push_data(void *opaque,
const uint8_t *buf, int buf_size, int is_start)
{
PESContext *pes = opaque;
MpegTSContext *ts = pes->stream->priv_data;
AVStream *st;
const uint8_t *p;
int len, code, codec_type, codec_id;
if (is_start) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0,
const uint8_t *VAR_1, int VAR_2, int VAR_3)
{
PESContext *pes = VAR_0;
MpegTSContext *ts = pes->stream->priv_data;
AVStream *st;
const uint8_t *VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8;
if (VAR_3) {
pes->state = MPE... | [
"static void FUNC_0(void *VAR_0,\nconst uint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"PESContext *pes = VAR_0;",
"MpegTSContext *ts = pes->stream->priv_data;",
"AVStream *st;",
"const uint8_t *VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"if (VAR_3) {",
"pes->state = MPEGTS_HEADER;",
"pes->data_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,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[... |
856 | static bool gscb_needed(void *opaque)
{
return kvm_s390_get_gs();
}
| true | qemu | 0280b3eb7c0519b43452c05cf51f8777d9e38975 | static bool gscb_needed(void *opaque)
{
return kvm_s390_get_gs();
}
| {
"code": [
" return kvm_s390_get_gs();"
],
"line_no": [
5
]
} | static bool FUNC_0(void *opaque)
{
return kvm_s390_get_gs();
}
| [
"static bool FUNC_0(void *opaque)\n{",
"return kvm_s390_get_gs();",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
857 | void do_fctiw (void)
{
union {
double d;
uint64_t i;
} p;
/* XXX: higher bits are not supposed to be significant.
* to make tests easier, return the same as a real PowerPC 750 (aka G3)
*/
p.i = float64_to_int32(FT0, &env->fp_status);
p.i |= 0xFFF80000ULL << ... | true | qemu | e864cabdc0a38bb598ddcf88b264896dc6f3e3b2 | void do_fctiw (void)
{
union {
double d;
uint64_t i;
} p;
p.i = float64_to_int32(FT0, &env->fp_status);
p.i |= 0xFFF80000ULL << 32;
FT0 = p.d;
}
| {
"code": [
" p.i = float64_to_int32(FT0, &env->fp_status);"
],
"line_no": [
21
]
} | void FUNC_0 (void)
{
union {
double d;
uint64_t i;
} VAR_0;
VAR_0.i = float64_to_int32(FT0, &env->fp_status);
VAR_0.i |= 0xFFF80000ULL << 32;
FT0 = VAR_0.d;
}
| [
"void FUNC_0 (void)\n{",
"union {",
"double d;",
"uint64_t i;",
"} VAR_0;",
"VAR_0.i = float64_to_int32(FT0, &env->fp_status);",
"VAR_0.i |= 0xFFF80000ULL << 32;",
"FT0 = VAR_0.d;",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
858 | static struct omap_mpu_timer_s *omap_mpu_timer_init(MemoryRegion *system_memory,
hwaddr base,
qemu_irq irq, omap_clk clk)
{
struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *)
g_malloc0(sizeof(struct omap_mpu_timer_s));
s->irq = irq;
s->clk = clk;
... | true | qemu | b45c03f585ea9bb1af76c73e82195418c294919d | static struct omap_mpu_timer_s *omap_mpu_timer_init(MemoryRegion *system_memory,
hwaddr base,
qemu_irq irq, omap_clk clk)
{
struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *)
g_malloc0(sizeof(struct omap_mpu_timer_s));
s->irq = irq;
s->clk = clk;
... | {
"code": [
" struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *)",
" g_malloc0(sizeof(struct omap_mpu_timer_s));"
],
"line_no": [
9,
11
]
} | static struct omap_mpu_timer_s *FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
qemu_irq VAR_2, omap_clk VAR_3)
{
struct omap_mpu_timer_s *VAR_4 = (struct omap_mpu_timer_s *)
g_malloc0(sizeof(struct omap_mpu_timer_s));
VAR_4->VAR_2 = VAR_2;
VAR_4->VAR_3 = VAR_3... | [
"static struct omap_mpu_timer_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, omap_clk VAR_3)\n{",
"struct omap_mpu_timer_s *VAR_4 = (struct omap_mpu_timer_s *)\ng_malloc0(sizeof(struct omap_mpu_timer_s));",
"VAR_4->VAR_2 = VAR_2;",
"VAR_4->VAR_3 = VAR_3;",
"VAR_4->timer = timer_new_ns(QEMU_C... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
39
],
[
41
]
] |
861 | static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *frame, int *got_packet)
{
LibOpenJPEGContext *ctx = avctx->priv_data;
opj_cinfo_t *compress = ctx->compress;
opj_image_t *image = ctx->image;
opj_cio_t *stream = ctx-... | true | FFmpeg | 97af2faaba70c866ae4c11459a79a16d4a014530 | static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *frame, int *got_packet)
{
LibOpenJPEGContext *ctx = avctx->priv_data;
opj_cinfo_t *compress = ctx->compress;
opj_image_t *image = ctx->image;
opj_cio_t *stream = ctx-... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
LibOpenJPEGContext *ctx = VAR_0->priv_data;
opj_cinfo_t *compress = ctx->compress;
opj_image_t *image = ctx->image;
opj_cio_t *stream = ctx->stream;
int VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"LibOpenJPEGContext *ctx = VAR_0->priv_data;",
"opj_cinfo_t *compress = ctx->compress;",
"opj_image_t *image = ctx->image;",
"opj_cio_t *stream = ctx->stream;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27,
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49,
51,... |
862 | static void termsig_handler(int signum)
{
state = TERMINATE;
qemu_notify_event();
}
| true | qemu | 23994a5f524aa575c7a4b2e5250f17b127d2cf2f | static void termsig_handler(int signum)
{
state = TERMINATE;
qemu_notify_event();
}
| {
"code": [
" state = TERMINATE;"
],
"line_no": [
5
]
} | static void FUNC_0(int VAR_0)
{
state = TERMINATE;
qemu_notify_event();
}
| [
"static void FUNC_0(int VAR_0)\n{",
"state = TERMINATE;",
"qemu_notify_event();",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
864 | static int qxl_post_load(void *opaque, int version)
{
PCIQXLDevice* d = opaque;
uint8_t *ram_start = d->vga.vram_ptr;
QXLCommandExt *cmds;
int in, out, newmode;
assert(d->last_release_offset < d->vga.vram_size);
if (d->last_release_offset == 0) {
d->last_release = NULL;
} ... | true | qemu | 9de68637dff05a18d0eafcff2737e551b70bc490 | static int qxl_post_load(void *opaque, int version)
{
PCIQXLDevice* d = opaque;
uint8_t *ram_start = d->vga.vram_ptr;
QXLCommandExt *cmds;
int in, out, newmode;
assert(d->last_release_offset < d->vga.vram_size);
if (d->last_release_offset == 0) {
d->last_release = NULL;
} ... | {
"code": [
" cmds = g_malloc0(sizeof(QXLCommandExt) * (d->ssd.num_surfaces + 1));"
],
"line_no": [
67
]
} | static int FUNC_0(void *VAR_0, int VAR_1)
{
PCIQXLDevice* d = VAR_0;
uint8_t *ram_start = d->vga.vram_ptr;
QXLCommandExt *cmds;
int VAR_2, VAR_3, VAR_4;
assert(d->last_release_offset < d->vga.vram_size);
if (d->last_release_offset == 0) {
d->last_release = NULL;
} else {
... | [
"static int FUNC_0(void *VAR_0, int VAR_1)\n{",
"PCIQXLDevice* d = VAR_0;",
"uint8_t *ram_start = d->vga.vram_ptr;",
"QXLCommandExt *cmds;",
"int VAR_2, VAR_3, VAR_4;",
"assert(d->last_release_offset < d->vga.vram_size);",
"if (d->last_release_offset == 0) {",
"d->last_release = NULL;",
"} else {",
... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.