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 |
|---|---|---|---|---|---|---|---|---|---|---|
21,119 | static int pcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
PCMDecode *s = avctx->priv_data;
int n;
short *samples;
uint8_t *src;
samples = data;
src = buf;
switch(avctx->codec->id) {
case CODEC_ID_PCM_S16LE:
n = buf_... | true | FFmpeg | a8d02f2bc90e8d963f1a95f7a75de520259bb2d2 | static int pcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
PCMDecode *s = avctx->priv_data;
int n;
short *samples;
uint8_t *src;
samples = data;
src = buf;
switch(avctx->codec->id) {
case CODEC_ID_PCM_S16LE:
n = buf_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
PCMDecode *s = VAR_0->priv_data;
int VAR_5;
short *VAR_6;
uint8_t *src;
VAR_6 = VAR_1;
src = VAR_3;
switch(VAR_0->codec->id) {
case CODEC_ID_PCM_S16LE:
VAR_5 = VAR_4 >> 1;... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"PCMDecode *s = VAR_0->priv_data;",
"int VAR_5;",
"short *VAR_6;",
"uint8_t *src;",
"VAR_6 = VAR_1;",
"src = VAR_3;",
"switch(VAR_0->codec->id) {",
"case CODEC_ID_PCM_S16LE:\nVAR_5 = VAR_4 >> 1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12,
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
23
],... |
21,120 | void FUNCC(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *block, int stride){
int i, j;
int dc = (((dctcoef*)block)[0] + 32) >> 6;
pixel *dst = (pixel*)_dst;
stride >>= sizeof(pixel)-1;
for( j = 0; j < 8; j++ )
{
for( i = 0; i < 8; i++ )
dst[i] = av_clip_pixel( dst[i] ... | false | FFmpeg | 1acd7d594c15aa491729c837ad3519d3469e620a | void FUNCC(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *block, int stride){
int i, j;
int dc = (((dctcoef*)block)[0] + 32) >> 6;
pixel *dst = (pixel*)_dst;
stride >>= sizeof(pixel)-1;
for( j = 0; j < 8; j++ )
{
for( i = 0; i < 8; i++ )
dst[i] = av_clip_pixel( dst[i] ... | {
"code": [],
"line_no": []
} | void FUNC_0(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *block, int stride){
int VAR_0, VAR_1;
int VAR_2 = (((dctcoef*)block)[0] + 32) >> 6;
pixel *dst = (pixel*)_dst;
stride >>= sizeof(pixel)-1;
for( VAR_1 = 0; VAR_1 < 8; VAR_1++ )
{
for( VAR_0 = 0; VAR_0 < 8; VAR_0++ )
... | [
"void FUNC_0(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *block, int stride){",
"int VAR_0, VAR_1;",
"int VAR_2 = (((dctcoef*)block)[0] + 32) >> 6;",
"pixel *dst = (pixel*)_dst;",
"stride >>= sizeof(pixel)-1;",
"for( VAR_1 = 0; VAR_1 < 8; VAR_1++ )",
"{",
"for( VAR_0 = 0; VAR_0 < 8; VAR_0++ )",
"ds... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,121 | static int colo_packet_compare_other(Packet *spkt, Packet *ppkt)
{
trace_colo_compare_main("compare other");
if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {
char pri_ip_src[20], pri_ip_dst[20], sec_ip_src[20], sec_ip_dst[20];
strcpy(pri_ip_src, inet_ntoa(ppkt->ip->ip_src));
... | true | qemu | d87aa138039a4be6d705793fd3e397c69c52405a | static int colo_packet_compare_other(Packet *spkt, Packet *ppkt)
{
trace_colo_compare_main("compare other");
if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {
char pri_ip_src[20], pri_ip_dst[20], sec_ip_src[20], sec_ip_dst[20];
strcpy(pri_ip_src, inet_ntoa(ppkt->ip->ip_src));
... | {
"code": [
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {",
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {"
],
"line_no": [
7,
7
]
} | static int FUNC_0(Packet *VAR_0, Packet *VAR_1)
{
trace_colo_compare_main("compare other");
if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {
char VAR_2[20], VAR_3[20], VAR_4[20], VAR_5[20];
strcpy(VAR_2, inet_ntoa(VAR_1->ip->ip_src));
strcpy(VAR_3, inet_ntoa(VAR_1->ip-... | [
"static int FUNC_0(Packet *VAR_0, Packet *VAR_1)\n{",
"trace_colo_compare_main(\"compare other\");",
"if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {",
"char VAR_2[20], VAR_3[20], VAR_4[20], VAR_5[20];",
"strcpy(VAR_2, inet_ntoa(VAR_1->ip->ip_src));",
"strcpy(VAR_3, inet_ntoa(VAR_1->ip->ip_dst... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25,
27
],
[
29
],
[
33
],
[
35
]
] |
21,122 | void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs,
int64_t speed, BlockCompletionFunc *cb,
void *opaque, Error **errp)
{
BlockBackend *blk;
BlockJob *job;
assert(cb);
if (bs->job) {
error_setg(errp, QERR_DEVICE_IN_US... | true | qemu | 7f0317cfc8da620cdb38cb5cfec5f82b8dd05403 | void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs,
int64_t speed, BlockCompletionFunc *cb,
void *opaque, Error **errp)
{
BlockBackend *blk;
BlockJob *job;
assert(cb);
if (bs->job) {
error_setg(errp, QERR_DEVICE_IN_US... | {
"code": [
"void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs,",
" int64_t speed, BlockCompletionFunc *cb,",
" void *opaque, Error **errp)",
" job->id = g_strdup(bdrv_get_device_name(bs));",
"void *block_job_create(... | void *FUNC_0(const BlockJobDriver *VAR_0, BlockDriverState *VAR_1,
int64_t VAR_2, BlockCompletionFunc *VAR_3,
void *VAR_4, Error **VAR_5)
{
BlockBackend *blk;
BlockJob *job;
assert(VAR_3);
if (VAR_1->job) {
error_setg(VAR_5, QERR_DEVICE_IN_... | [
"void *FUNC_0(const BlockJobDriver *VAR_0, BlockDriverState *VAR_1,\nint64_t VAR_2, BlockCompletionFunc *VAR_3,\nvoid *VAR_4, Error **VAR_5)\n{",
"BlockBackend *blk;",
"BlockJob *job;",
"assert(VAR_3);",
"if (VAR_1->job) {",
"error_setg(VAR_5, QERR_DEVICE_IN_USE, bdrv_get_device_name(VAR_1));",
"return ... | [
1,
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
21,123 | static int pxa2xx_ssp_load(QEMUFile *f, void *opaque, int version_id)
{
PXA2xxSSPState *s = (PXA2xxSSPState *) opaque;
int i;
s->enable = qemu_get_be32(f);
qemu_get_be32s(f, &s->sscr[0]);
qemu_get_be32s(f, &s->sscr[1]);
qemu_get_be32s(f, &s->sspsp);
qemu_get_be32s(f, &s->ssto);
... | true | qemu | caa881abe0e01f9931125a0977ec33c5343e4aa7 | static int pxa2xx_ssp_load(QEMUFile *f, void *opaque, int version_id)
{
PXA2xxSSPState *s = (PXA2xxSSPState *) opaque;
int i;
s->enable = qemu_get_be32(f);
qemu_get_be32s(f, &s->sscr[0]);
qemu_get_be32s(f, &s->sscr[1]);
qemu_get_be32s(f, &s->sspsp);
qemu_get_be32s(f, &s->ssto);
... | {
"code": [
" int i;",
" s->rx_level = qemu_get_byte(f);"
],
"line_no": [
7,
35
]
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{
PXA2xxSSPState *s = (PXA2xxSSPState *) VAR_1;
int VAR_3;
s->enable = qemu_get_be32(VAR_0);
qemu_get_be32s(VAR_0, &s->sscr[0]);
qemu_get_be32s(VAR_0, &s->sscr[1]);
qemu_get_be32s(VAR_0, &s->sspsp);
qemu_get_be32s(VAR_0, ... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{",
"PXA2xxSSPState *s = (PXA2xxSSPState *) VAR_1;",
"int VAR_3;",
"s->enable = qemu_get_be32(VAR_0);",
"qemu_get_be32s(VAR_0, &s->sscr[0]);",
"qemu_get_be32s(VAR_0, &s->sscr[1]);",
"qemu_get_be32s(VAR_0, &s->sspsp);",
"qemu_get_be32s(VAR_0,... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
21,125 | static void truncpasses(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
{
int precno, compno, reslevelno, bandno, cblkno, lev;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = tile->comp + compno;
for (resleveln... | true | FFmpeg | f57119b8e58cb5437c3ab40d797293ecb9b4a894 | static void truncpasses(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
{
int precno, compno, reslevelno, bandno, cblkno, lev;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = tile->comp + compno;
for (resleveln... | {
"code": [
" (int64_t)dwt_norms[codsty->transform == FF_DWT53][bandpos][lev] * (int64_t)band->i_stepsize >> 16);"
],
"line_no": [
43
]
} | static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
Jpeg2000CodingStyle *codsty = &VAR_0->codsty;
for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){
Jpeg2000Component *comp = VAR_1->comp + VAR_3;
for (VAR_4 = 0, ... | [
"static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"Jpeg2000CodingStyle *codsty = &VAR_0->codsty;",
"for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){",
"Jpeg2000Component *comp = VAR_1->comp + VAR_3;",
"for (VAR_4 = 0, VAR_7 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
21,126 | static void gen_rfdi(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
/* Restore CPU state */
gen_helper_rfdi(cpu_env);
gen_sync... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_rfdi(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_rfdi(cpu_env);
gen_sync_exception(ctx);
#endi... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_rfdi(cpu_env);
gen_sync_exception(VAR_0)... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"gen_helper_rfdi(cpu_env);",
"gen_sync_exception(VAR_0);",
"#e... | [
0,
1,
1,
1,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
]
] |
21,127 | void ide_data_writel(void *opaque, uint32_t addr, uint32_t val)
{
IDEBus *bus = opaque;
IDEState *s = idebus_active_if(bus);
uint8_t *p;
/* PIO data access allowed only when DRQ bit is set. The result of a write
* during PIO out is indeterminate, just ignore it. */
if (!(s->status & DRQ_STAT) |... | true | qemu | d2ff85854512574e7209f295e87b0835d5b032c6 | void ide_data_writel(void *opaque, uint32_t addr, uint32_t val)
{
IDEBus *bus = opaque;
IDEState *s = idebus_active_if(bus);
uint8_t *p;
if (!(s->status & DRQ_STAT) || ide_is_pio_out(s)) {
p = s->data_ptr;
*(uint32_t *)p = le32_to_cpu(val);
p += 4;
s->data_ptr = p;
if (p >= s->... | {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
IDEBus *bus = VAR_0;
IDEState *s = idebus_active_if(bus);
uint8_t *p;
if (!(s->status & DRQ_STAT) || ide_is_pio_out(s)) {
p = s->data_ptr;
*(uint32_t *)p = le32_to_cpu(VAR_2);
p += 4;
s->data_ptr = p;
if (p >= s->data_e... | [
"void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"IDEBus *bus = VAR_0;",
"IDEState *s = idebus_active_if(bus);",
"uint8_t *p;",
"if (!(s->status & DRQ_STAT) || ide_is_pio_out(s)) {",
"p = s->data_ptr;",
"*(uint32_t *)p = le32_to_cpu(VAR_2);",
"p += 4;",
"s->data_ptr = p;",
"if (p >= ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13,
14
]
] |
21,128 | void OPPROTO op_addo (void)
{
do_addo();
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void OPPROTO op_addo (void)
{
do_addo();
RETURN();
}
| {
"code": [
"void OPPROTO op_addo (void)",
" do_addo();",
" RETURN();",
" RETURN();"
],
"line_no": [
1,
5,
7,
7
]
} | void VAR_0 op_addo (void)
{
do_addo();
RETURN();
}
| [
"void VAR_0 op_addo (void)\n{",
"do_addo();",
"RETURN();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
21,129 | static bool run_poll_handlers_once(AioContext *ctx)
{
bool progress = false;
AioHandler *node;
QLIST_FOREACH_RCU(node, &ctx->aio_handlers, node) {
if (!node->deleted && node->io_poll &&
node->io_poll(node->opaque)) {
progress = true;
}
/* Call... | true | qemu | 59c9f437c59a4bf0594ed300d28fb24c645963a5 | static bool run_poll_handlers_once(AioContext *ctx)
{
bool progress = false;
AioHandler *node;
QLIST_FOREACH_RCU(node, &ctx->aio_handlers, node) {
if (!node->deleted && node->io_poll &&
node->io_poll(node->opaque)) {
progress = true;
}
}... | {
"code": [
" node->io_poll(node->opaque)) {"
],
"line_no": [
15
]
} | static bool FUNC_0(AioContext *ctx)
{
bool progress = false;
AioHandler *node;
QLIST_FOREACH_RCU(node, &ctx->aio_handlers, node) {
if (!node->deleted && node->io_poll &&
node->io_poll(node->opaque)) {
progress = true;
}
}
return p... | [
"static bool FUNC_0(AioContext *ctx)\n{",
"bool progress = false;",
"AioHandler *node;",
"QLIST_FOREACH_RCU(node, &ctx->aio_handlers, node) {",
"if (!node->deleted && node->io_poll &&\nnode->io_poll(node->opaque)) {",
"progress = true;",
"}",
"}",
"return progress;",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
25
],
[
29
],
[
31
]
] |
21,130 | static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) {
MpegEncContext * const s = &h->s;
const int mb_xy= mb_x + mb_y*s->mb_stride;
const int mb_type = s->current_picture.mb_type[mb_xy];
const int... | true | FFmpeg | 4691a77db4672026d62d524fd292fb17db6514b4 | static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) {
MpegEncContext * const s = &h->s;
const int mb_xy= mb_x + mb_y*s->mb_stride;
const int mb_type = s->current_picture.mb_type[mb_xy];
const int... | {
"code": [
" int qp_thresh = 15 - h->slice_alpha_c0_offset - FFMAX(0, h->pps.chroma_qp_index_offset);",
" int chroma_qp[2];",
" chroma_qp[0] = ( get_chroma_qp( h, mb_qp ) +",
" get_chroma_qp( h, mbn0_qp ) + 1 ) >> 1;",
" chroma_qp[1] = ( get_chr... | static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) {
MpegEncContext * const s = &VAR_0->s;
const int VAR_8= VAR_1 + VAR_2*s->mb_stride;
const int VAR_9 = s->current_picture.VAR_9[VAR_8];
const int VAR_... | [
"static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) {",
"MpegEncContext * const s = &VAR_0->s;",
"const int VAR_8= VAR_1 + VAR_2*s->mb_stride;",
"const int VAR_9 = s->current_picture.VAR_9[VAR_8];",
"const int... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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,
1,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
21
],
[
23
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45
],
[
47
],
[
51,
55,
59,
63
],
[
71
... |
21,131 | static void select_frame(AVFilterContext *ctx, AVFrame *frame)
{
SelectContext *select = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
double res;
if (isnan(select->var_values[VAR_START_PTS]))
select->var_values[VAR_START_PTS] = TS2D(frame->pts);
if (isnan(select->var_values[VAR... | false | FFmpeg | 887d8d293fc31c949427f971f37c126b3812b451 | static void select_frame(AVFilterContext *ctx, AVFrame *frame)
{
SelectContext *select = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
double res;
if (isnan(select->var_values[VAR_START_PTS]))
select->var_values[VAR_START_PTS] = TS2D(frame->pts);
if (isnan(select->var_values[VAR... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)
{
SelectContext *select = VAR_0->priv;
AVFilterLink *inlink = VAR_0->inputs[0];
double VAR_2;
if (isnan(select->var_values[VAR_START_PTS]))
select->var_values[VAR_START_PTS] = TS2D(VAR_1->pts);
if (isnan(select->var_values[V... | [
"static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{",
"SelectContext *select = VAR_0->priv;",
"AVFilterLink *inlink = VAR_0->inputs[0];",
"double VAR_2;",
"if (isnan(select->var_values[VAR_START_PTS]))\nselect->var_values[VAR_START_PTS] = TS2D(VAR_1->pts);",
"if (isnan(select->var_values[VAR_ST... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
43,
45,
47,
49
],
[
51
],
[
53,
55
],
[... |
21,132 | static int libkvazaar_encode(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
int retval = 0;
kvz_picture *img_in = NULL;
kvz_data_chunk *data_out = NULL;
uint32_t len_out... | true | FFmpeg | c09419ca80f1b1de4ceb3b9c06f708914150fa45 | static int libkvazaar_encode(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
int retval = 0;
kvz_picture *img_in = NULL;
kvz_data_chunk *data_out = NULL;
uint32_t len_out... | {
"code": [
" av_assert0(frame->width == ctx->config->width);",
" av_assert0(frame->height == ctx->config->height);",
" av_assert0(frame->format == avctx->pix_fmt);"
],
"line_no": [
39,
41,
43
]
} | static int FUNC_0(AVCodecContext *VAR_0,
AVPacket *VAR_1,
const AVFrame *VAR_2,
int *VAR_3)
{
int VAR_4 = 0;
kvz_picture *img_in = NULL;
kvz_data_chunk *data_out = NULL;
uint32_t len_out = 0;
kvz_frame_... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nAVPacket *VAR_1,\nconst AVFrame *VAR_2,\nint *VAR_3)\n{",
"int VAR_4 = 0;",
"kvz_picture *img_in = NULL;",
"kvz_data_chunk *data_out = NULL;",
"uint32_t len_out = 0;",
"kvz_frame_info frame_info;",
"LibkvazaarContext *ctx = VAR_0->priv_data;",
"*VAR_3 = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
21,133 | static int send_extradata(APNGDemuxContext *ctx, AVPacket *pkt)
{
if (!ctx->extra_data_updated) {
uint8_t *side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, ctx->extra_data_size);
if (!side_data)
return AVERROR(ENOMEM);
memcpy(side_data, ctx->extra_data, c... | true | FFmpeg | 16c429166ddf1736972b6ccce84bd3509ec16a34 | static int send_extradata(APNGDemuxContext *ctx, AVPacket *pkt)
{
if (!ctx->extra_data_updated) {
uint8_t *side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, ctx->extra_data_size);
if (!side_data)
return AVERROR(ENOMEM);
memcpy(side_data, ctx->extra_data, c... | {
"code": [
"static int send_extradata(APNGDemuxContext *ctx, AVPacket *pkt)",
" if (!ctx->extra_data_updated) {",
" uint8_t *side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, ctx->extra_data_size);",
" if (!side_data)",
" return AVERROR(ENOMEM);",
... | static int FUNC_0(APNGDemuxContext *VAR_0, AVPacket *VAR_1)
{
if (!VAR_0->extra_data_updated) {
uint8_t *side_data = av_packet_new_side_data(VAR_1, AV_PKT_DATA_NEW_EXTRADATA, VAR_0->extra_data_size);
if (!side_data)
return AVERROR(ENOMEM);
memcpy(side_data, VAR_0->extra_dat... | [
"static int FUNC_0(APNGDemuxContext *VAR_0, AVPacket *VAR_1)\n{",
"if (!VAR_0->extra_data_updated) {",
"uint8_t *side_data = av_packet_new_side_data(VAR_1, AV_PKT_DATA_NEW_EXTRADATA, VAR_0->extra_data_size);",
"if (!side_data)\nreturn AVERROR(ENOMEM);",
"memcpy(side_data, VAR_0->extra_data, VAR_0->extra_dat... | [
1,
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
21,134 | static void vga_mm_init(VGAState *s, target_phys_addr_t vram_base,
target_phys_addr_t ctrl_base, int it_shift)
{
int s_ioport_ctrl, vga_io_memory;
s->it_shift = it_shift;
s_ioport_ctrl = cpu_register_io_memory(0, vga_mm_read_ctrl, vga_mm_write_ctrl, s);
vga_io_memory = cp... | true | qemu | f65ed4c1529f29a7d62d6733eaa50bed24a4b2ed | static void vga_mm_init(VGAState *s, target_phys_addr_t vram_base,
target_phys_addr_t ctrl_base, int it_shift)
{
int s_ioport_ctrl, vga_io_memory;
s->it_shift = it_shift;
s_ioport_ctrl = cpu_register_io_memory(0, vga_mm_read_ctrl, vga_mm_write_ctrl, s);
vga_io_memory = cp... | {
"code": [],
"line_no": []
} | static void FUNC_0(VGAState *VAR_0, target_phys_addr_t VAR_1,
target_phys_addr_t VAR_2, int VAR_3)
{
int VAR_4, VAR_5;
VAR_0->VAR_3 = VAR_3;
VAR_4 = cpu_register_io_memory(0, vga_mm_read_ctrl, vga_mm_write_ctrl, VAR_0);
VAR_5 = cpu_register_io_memory(0, vga_mem_read, vga_... | [
"static void FUNC_0(VGAState *VAR_0, target_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5;",
"VAR_0->VAR_3 = VAR_3;",
"VAR_4 = cpu_register_io_memory(0, vga_mm_read_ctrl, vga_mm_write_ctrl, VAR_0);",
"VAR_5 = cpu_register_io_memory(0, vga_mem_read, vga_mem_write, VAR_0);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
30
]
] |
21,136 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
t... | true | qemu | 0aecede6121e56ccc5d6a82243f2ccccdfabe6d5 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
t... | {
"code": [
" tcg_ctx.code_time -= profile_getclock();",
" tcg_ctx.code_time += profile_getclock();"
],
"line_no": [
139,
175
]
} | TranslationBlock *FUNC_0(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
tcg_in... | [
"TranslationBlock *FUNC_0(CPUState *cpu,\ntarget_ulong pc, target_ulong cs_base,\nuint32_t flags, int cflags)\n{",
"CPUArchState *env = cpu->env_ptr;",
"TranslationBlock *tb;",
"tb_page_addr_t phys_pc, phys_page2;",
"target_ulong virt_page2;",
"tcg_insn_unit *gen_code_buf;",
"int VAR_0, VAR_1;",
"#ifd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
49
],
[
51
],
[... |
21,137 | static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2,
TCGv addr, int size)
{
TCGv tmp;
int done_label;
int fail_label;
/* if (env->exclusive_addr == addr && env->exclusive_val == [addr]) {
[addr] = {Rt};
{Rd} = 0;
} ... | true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2,
TCGv addr, int size)
{
TCGv tmp;
int done_label;
int fail_label;
fail_label = gen_new_label();
done_label = gen_new_label();
tcg_gen_brcond_i32(TCG_COND_NE, addr, c... | {
"code": [
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" ... | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,
TCGv VAR_4, int VAR_5)
{
TCGv tmp;
int VAR_6;
int VAR_7;
VAR_7 = gen_new_label();
VAR_6 = gen_new_label();
tcg_gen_brcond_i32(TCG_COND_NE, VAR_4, cpu_exclusive_addr,... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nTCGv VAR_4, int VAR_5)\n{",
"TCGv tmp;",
"int VAR_6;",
"int VAR_7;",
"VAR_7 = gen_new_label();",
"VAR_6 = gen_new_label();",
"tcg_gen_brcond_i32(TCG_COND_NE, VAR_4, cpu_exclusive_addr, VAR_7);",
"switch (VAR_5) {",
"case 0:\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49,
51
],
[
53
],
[
55,
57
],
[
59
],
[
61
... |
21,138 | static void syborg_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[6... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | static void syborg_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[6... | {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | static void FUNC_0(ram_addr_t VAR_0,
const char *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[64];
ram_addr_t ram_addr;
DeviceState ... | [
"static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{",
"CPUState *env;",
"qemu_irq *cpu_pic;",
"qemu_irq pic[64];",
"ram_addr_t ram_addr;",
"DeviceState *dev;",
"int VAR_6;",
"if (!VAR_5)\nVAR_5 = \"cortex-a8\";",
... | [
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,
1,
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
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[... |
21,139 | static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
const uint8_t *buf_ptr = buf, *bs_hdr;
uint32_t frame_num, word2, check_sum, data_size;
uint32_t y_offset, u_offset, v_offset, starts[3], ... | false | FFmpeg | cd645c15d8d91444e49aea589ace4d9f76210641 | static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
const uint8_t *buf_ptr = buf, *bs_hdr;
uint32_t frame_num, word2, check_sum, data_size;
uint32_t y_offset, u_offset, v_offset, starts[3], ... | {
"code": [],
"line_no": []
} | static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
const uint8_t *VAR_4 = VAR_2, *bs_hdr;
uint32_t frame_num, word2, check_sum, data_size;
uint32_t y_offset, u_offset, v_offset, starts[3], ends[3];
... | [
"static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_2, *bs_hdr;",
"uint32_t frame_num, word2, check_sum, data_size;",
"uint32_t y_offset, u_offset, v_offset, starts[3], ends[3];",
"uint16_t height, wi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
21,140 | static void cin_decode_rle(const unsigned char *src, int src_size,
unsigned char *dst, int dst_size)
{
int len, code;
unsigned char *dst_end = dst + dst_size;
const unsigned char *src_end = src + src_size;
while (src < src_end && dst < dst_end) {
code = ... | false | FFmpeg | dd0bfc3a6a310e3e3674ce7742672d689a9a0e93 | static void cin_decode_rle(const unsigned char *src, int src_size,
unsigned char *dst, int dst_size)
{
int len, code;
unsigned char *dst_end = dst + dst_size;
const unsigned char *src_end = src + src_size;
while (src < src_end && dst < dst_end) {
code = ... | {
"code": [],
"line_no": []
} | static void FUNC_0(const unsigned char *VAR_0, int VAR_1,
unsigned char *VAR_2, int VAR_3)
{
int VAR_4, VAR_5;
unsigned char *VAR_6 = VAR_2 + VAR_3;
const unsigned char *VAR_7 = VAR_0 + VAR_1;
while (VAR_0 < VAR_7 && VAR_2 < VAR_6) {
VAR_5 = *VAR_0++;
... | [
"static void FUNC_0(const unsigned char *VAR_0, int VAR_1,\nunsigned char *VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5;",
"unsigned char *VAR_6 = VAR_2 + VAR_3;",
"const unsigned char *VAR_7 = VAR_0 + VAR_1;",
"while (VAR_0 < VAR_7 && VAR_2 < VAR_6) {",
"VAR_5 = *VAR_0++;",
"if (VAR_5 & 0x80) {",
"... | [
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
]
] |
21,142 | BlockDriverAIOCB *bdrv_aio_flush(BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
if (!drv)
return NULL;
return drv->bdrv_aio_flush(bs, cb, opaque); | true | qemu | 016f5cf6ff465411733878a17c8f8febb7668321 | BlockDriverAIOCB *bdrv_aio_flush(BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
if (!drv)
return NULL;
return drv->bdrv_aio_flush(bs, cb, opaque); | {
"code": [],
"line_no": []
} | BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
if (!drv)
return NULL;
return drv->FUNC_0(bs, cb, opaque); | [
"BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nBlockDriverCompletionFunc *cb, void *opaque)\n{",
"BlockDriver *drv = bs->drv;",
"if (!drv)\nreturn NULL;",
"return drv->FUNC_0(bs, cb, opaque);"
] | [
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5,
6
],
[
7
]
] |
21,143 | abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6)
{
abi_long ret;
struct stat st;
struct statfs stfs;
void *p;
#ifdef DEBUG
gemu_log("syscall %d", num);
#endif
... | true | qemu | 12727917db45aebb809e4b09c51e883c09a6366f | abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6)
{
abi_long ret;
struct stat st;
struct statfs stfs;
void *p;
#ifdef DEBUG
gemu_log("syscall %d", num);
#endif
... | {
"code": [],
"line_no": []
} | abi_long FUNC_0(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6)
{
abi_long ret;
struct stat VAR_0;
struct statfs VAR_1;
void *VAR_2;
#ifdef DEBUG
gemu_log("syscall %d", num);
#endif
... | [
"abi_long FUNC_0(void *cpu_env, int num, abi_long arg1,\nabi_long arg2, abi_long arg3, abi_long arg4,\nabi_long arg5, abi_long arg6)\n{",
"abi_long ret;",
"struct stat VAR_0;",
"struct statfs VAR_1;",
"void *VAR_2;",
"#ifdef DEBUG\ngemu_log(\"syscall %d\", num);",
"#endif\nif(do_strace)\nprint_syscall(n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33,
35,
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[
61
],
[
63
],
[
65
],
[... |
21,144 | static void gdb_accept(void)
{
GDBState *s;
struct sockaddr_in sockaddr;
socklen_t len;
int val, fd;
for(;;) {
len = sizeof(sockaddr);
fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);
if (fd < 0 && errno != EINTR) {
perror("accept");
... | true | qemu | 40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 | static void gdb_accept(void)
{
GDBState *s;
struct sockaddr_in sockaddr;
socklen_t len;
int val, fd;
for(;;) {
len = sizeof(sockaddr);
fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);
if (fd < 0 && errno != EINTR) {
perror("accept");
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
GDBState *s;
struct sockaddr_in VAR_0;
socklen_t len;
int VAR_1, VAR_2;
for(;;) {
len = sizeof(VAR_0);
VAR_2 = accept(gdbserver_fd, (struct VAR_0 *)&VAR_0, &len);
if (VAR_2 < 0 && errno != EINTR) {
perror("accept");
... | [
"static void FUNC_0(void)\n{",
"GDBState *s;",
"struct sockaddr_in VAR_0;",
"socklen_t len;",
"int VAR_1, VAR_2;",
"for(;;) {",
"len = sizeof(VAR_0);",
"VAR_2 = accept(gdbserver_fd, (struct VAR_0 *)&VAR_0, &len);",
"if (VAR_2 < 0 && errno != EINTR) {",
"perror(\"accept\");",
"return;",
"} else... | [
0,
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
],
[
32
],
[
34
],
[
36
],
[
42
],
[
44
],
[
48
],
[
50
],
[
52
... |
21,145 | void init_rl(RLTable *rl)
{
int8_t max_level[MAX_RUN+1], max_run[MAX_LEVEL+1];
uint8_t index_run[MAX_RUN+1];
int last, run, level, start, end, i;
/* compute max_level[], max_run[] and index_run[] */
for(last=0;last<2;last++) {
if (last == 0) {
start = 0;
en... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | void init_rl(RLTable *rl)
{
int8_t max_level[MAX_RUN+1], max_run[MAX_LEVEL+1];
uint8_t index_run[MAX_RUN+1];
int last, run, level, start, end, i;
for(last=0;last<2;last++) {
if (last == 0) {
start = 0;
end = rl->last;
} else {
start =... | {
"code": [
"void init_rl(RLTable *rl)",
" rl->max_level[last] = av_malloc(MAX_RUN + 1);",
" rl->max_run[last] = av_malloc(MAX_LEVEL + 1);",
" rl->index_run[last] = av_malloc(MAX_RUN + 1);"
],
"line_no": [
1,
59,
63,
67
]
} | void FUNC_0(RLTable *VAR_0)
{
int8_t max_level[MAX_RUN+1], max_run[MAX_LEVEL+1];
uint8_t index_run[MAX_RUN+1];
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
for(VAR_1=0;VAR_1<2;VAR_1++) {
if (VAR_1 == 0) {
VAR_4 = 0;
VAR_5 = VAR_0->VAR_1;
} else {... | [
"void FUNC_0(RLTable *VAR_0)\n{",
"int8_t max_level[MAX_RUN+1], max_run[MAX_LEVEL+1];",
"uint8_t index_run[MAX_RUN+1];",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"for(VAR_1=0;VAR_1<2;VAR_1++) {",
"if (VAR_1 == 0) {",
"VAR_4 = 0;",
"VAR_5 = VAR_0->VAR_1;",
"} else {",
"VAR_4 = VAR_0->VAR_1;... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[... |
21,146 | int load_elf(const char *filename, uint64_t (*translate_fn)(void *, uint64_t),
void *translate_opaque, uint64_t *pentry, uint64_t *lowaddr,
uint64_t *highaddr, int big_endian, int elf_machine, int clear_lsb)
{
int fd, data_order, target_data_order, must_swab, ret;
uint8_t e_ident[... | true | qemu | cedf9a6f4549900f857954059284a96814e4c7a3 | int load_elf(const char *filename, uint64_t (*translate_fn)(void *, uint64_t),
void *translate_opaque, uint64_t *pentry, uint64_t *lowaddr,
uint64_t *highaddr, int big_endian, int elf_machine, int clear_lsb)
{
int fd, data_order, target_data_order, must_swab, ret;
uint8_t e_ident[... | {
"code": [
" if (target_data_order != e_ident[EI_DATA])",
" return -1;"
],
"line_no": [
63,
21
]
} | int FUNC_0(const char *VAR_0, VAR_1 (*translate_fn)(void *, VAR_1),
void *VAR_2, VAR_1 *VAR_3, VAR_1 *VAR_4,
VAR_1 *VAR_5, int VAR_6, int VAR_7, int VAR_8)
{
int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
uint8_t e_ident[EI_NIDENT];
VAR_9 = open(VAR_0, O_RDONLY | O_BINARY);
... | [
"int FUNC_0(const char *VAR_0, VAR_1 (*translate_fn)(void *, VAR_1),\nvoid *VAR_2, VAR_1 *VAR_3, VAR_1 *VAR_4,\nVAR_1 *VAR_5, int VAR_6, int VAR_7, int VAR_8)\n{",
"int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"uint8_t e_ident[EI_NIDENT];",
"VAR_9 = open(VAR_0, O_RDONLY | O_BINARY);",
"if (VAR_9 < 0) {",
... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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
],
[
47,
49
],
[
51
],
[
53
... |
21,147 | static void free_buffers(AVCodecContext *avctx)
{
CFHDContext *s = avctx->priv_data;
int i;
for (i = 0; i < 4; i++) {
av_freep(&s->plane[i].idwt_buf);
av_freep(&s->plane[i].idwt_tmp);
}
s->a_height = 0;
s->a_width = 0;
}
| true | FFmpeg | e9a9ca1936ea2853cdfb8913d44711d240eec60d | static void free_buffers(AVCodecContext *avctx)
{
CFHDContext *s = avctx->priv_data;
int i;
for (i = 0; i < 4; i++) {
av_freep(&s->plane[i].idwt_buf);
av_freep(&s->plane[i].idwt_tmp);
}
s->a_height = 0;
s->a_width = 0;
}
| {
"code": [
" int i;"
],
"line_no": [
7
]
} | static void FUNC_0(AVCodecContext *VAR_0)
{
CFHDContext *s = VAR_0->priv_data;
int VAR_1;
for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {
av_freep(&s->plane[VAR_1].idwt_buf);
av_freep(&s->plane[VAR_1].idwt_tmp);
}
s->a_height = 0;
s->a_width = 0;
}
| [
"static void FUNC_0(AVCodecContext *VAR_0)\n{",
"CFHDContext *s = VAR_0->priv_data;",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {",
"av_freep(&s->plane[VAR_1].idwt_buf);",
"av_freep(&s->plane[VAR_1].idwt_tmp);",
"}",
"s->a_height = 0;",
"s->a_width = 0;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,149 | av_const int ff_h263_aspect_to_info(AVRational aspect){
int i;
if(aspect.num==0) aspect= (AVRational){1,1};
for(i=1; i<6; i++){
if(av_cmp_q(ff_h263_pixel_aspect[i], aspect) == 0){
return i;
}
}
return FF_ASPECT_EXTENDED;
}
| false | FFmpeg | db0a52d611d7319c8a1186829a50e29b9dfed63b | av_const int ff_h263_aspect_to_info(AVRational aspect){
int i;
if(aspect.num==0) aspect= (AVRational){1,1};
for(i=1; i<6; i++){
if(av_cmp_q(ff_h263_pixel_aspect[i], aspect) == 0){
return i;
}
}
return FF_ASPECT_EXTENDED;
}
| {
"code": [],
"line_no": []
} | av_const int FUNC_0(AVRational aspect){
int VAR_0;
if(aspect.num==0) aspect= (AVRational){1,1};
for(VAR_0=1; VAR_0<6; VAR_0++){
if(av_cmp_q(ff_h263_pixel_aspect[VAR_0], aspect) == 0){
return VAR_0;
}
}
return FF_ASPECT_EXTENDED;
}
| [
"av_const int FUNC_0(AVRational aspect){",
"int VAR_0;",
"if(aspect.num==0) aspect= (AVRational){1,1};",
"for(VAR_0=1; VAR_0<6; VAR_0++){",
"if(av_cmp_q(ff_h263_pixel_aspect[VAR_0], aspect) == 0){",
"return VAR_0;",
"}",
"}",
"return FF_ASPECT_EXTENDED;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
21,150 | static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
{
AVFilterContext *ctx = inlink->dst;
int i, ret = 0;
for (i = 0; i < ctx->nb_outputs; i++) {
ret = ff_filter_samples(inlink->dst->outputs[i],
avfilter_ref_buffer(samplesref, ~AV_PE... | false | FFmpeg | 1dc42050185d63c1de5d16146fbaee92640af187 | static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
{
AVFilterContext *ctx = inlink->dst;
int i, ret = 0;
for (i = 0; i < ctx->nb_outputs; i++) {
ret = ff_filter_samples(inlink->dst->outputs[i],
avfilter_ref_buffer(samplesref, ~AV_PE... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{
AVFilterContext *ctx = VAR_0->dst;
int VAR_2, VAR_3 = 0;
for (VAR_2 = 0; VAR_2 < ctx->nb_outputs; VAR_2++) {
VAR_3 = ff_filter_samples(VAR_0->dst->outputs[VAR_2],
avfilter_ref_buffer(VAR_1, ~AV... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{",
"AVFilterContext *ctx = VAR_0->dst;",
"int VAR_2, VAR_3 = 0;",
"for (VAR_2 = 0; VAR_2 < ctx->nb_outputs; VAR_2++) {",
"VAR_3 = ff_filter_samples(VAR_0->dst->outputs[VAR_2],\navfilter_ref_buffer(VAR_1, ~AV_PERM_WRITE));",
"if (VAR_3 < 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
21,151 | av_cold void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c)
{
#if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->add_bytes = add_bytes_altivec;
#endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */
}
| false | FFmpeg | b015872c0d0823e70776e98b865509ec1287e2f6 | av_cold void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c)
{
#if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->add_bytes = add_bytes_altivec;
#endif
}
| {
"code": [],
"line_no": []
} | av_cold void FUNC_0(HuffYUVDSPContext *c)
{
#if HAVE_ALTIVEC && HAVE_BIGENDIAN
if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->add_bytes = add_bytes_altivec;
#endif
}
| [
"av_cold void FUNC_0(HuffYUVDSPContext *c)\n{",
"#if HAVE_ALTIVEC && HAVE_BIGENDIAN\nif (!PPC_ALTIVEC(av_get_cpu_flags()))\nreturn;",
"c->add_bytes = add_bytes_altivec;",
"#endif\n}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
13
],
[
15,
17
]
] |
21,152 | static void vmsvga_fifo_run(struct vmsvga_state_s *s)
{
uint32_t cmd, colour;
int args, len;
int x, y, dx, dy, width, height;
struct vmsvga_cursor_definition_s cursor;
uint32_t cmd_start;
len = vmsvga_fifo_length(s);
while (len > 0) {
/* May need to go back to the start of... | true | qemu | bd9ccd8517e83b7c33a9167815dbfffb30d70b13 | static void vmsvga_fifo_run(struct vmsvga_state_s *s)
{
uint32_t cmd, colour;
int args, len;
int x, y, dx, dy, width, height;
struct vmsvga_cursor_definition_s cursor;
uint32_t cmd_start;
len = vmsvga_fifo_length(s);
while (len > 0) {
cmd_start = s->cmd->stop;
... | {
"code": [
"#endif",
" vmsvga_fill_rect(s, colour, x, y, width, height);",
" break;",
"#else",
"#endif"
],
"line_no": [
91,
81,
53,
85,
91
]
} | static void FUNC_0(struct vmsvga_state_s *VAR_0)
{
uint32_t cmd, colour;
int VAR_1, VAR_2;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
struct vmsvga_cursor_definition_s VAR_9;
uint32_t cmd_start;
VAR_2 = vmsvga_fifo_length(VAR_0);
while (VAR_2 > 0) {
cmd_start ... | [
"static void FUNC_0(struct vmsvga_state_s *VAR_0)\n{",
"uint32_t cmd, colour;",
"int VAR_1, VAR_2;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"struct vmsvga_cursor_definition_s VAR_9;",
"uint32_t cmd_start;",
"VAR_2 = vmsvga_fifo_length(VAR_0);",
"while (VAR_2 > 0) {",
"cmd_start = VAR_0->cm... | [
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,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,153 | static void aw_a10_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = aw_a10_realize;
} | true | qemu | 4c315c27661502a0813b129e41c0bf640c34a8d6 | static void aw_a10_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = aw_a10_realize;
} | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = aw_a10_realize;
} | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = aw_a10_realize;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
]
] |
21,154 | static void flash_sync_page(Flash *s, int page)
{
QEMUIOVector *iov = g_new(QEMUIOVector, 1);
if (!s->blk || blk_is_read_only(s->blk)) {
return;
}
qemu_iovec_init(iov, 1);
qemu_iovec_add(iov, s->storage + page * s->pi->page_size,
s->pi->page_size);
blk_aio... | true | qemu | eef9f19eea26cd8b4553459118f87d7150b53c5a | static void flash_sync_page(Flash *s, int page)
{
QEMUIOVector *iov = g_new(QEMUIOVector, 1);
if (!s->blk || blk_is_read_only(s->blk)) {
return;
}
qemu_iovec_init(iov, 1);
qemu_iovec_add(iov, s->storage + page * s->pi->page_size,
s->pi->page_size);
blk_aio... | {
"code": [
" QEMUIOVector *iov = g_new(QEMUIOVector, 1);",
" QEMUIOVector *iov = g_new(QEMUIOVector, 1);"
],
"line_no": [
5,
5
]
} | static void FUNC_0(Flash *VAR_0, int VAR_1)
{
QEMUIOVector *iov = g_new(QEMUIOVector, 1);
if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) {
return;
}
qemu_iovec_init(iov, 1);
qemu_iovec_add(iov, VAR_0->storage + VAR_1 * VAR_0->pi->page_size,
VAR_0->pi->page_si... | [
"static void FUNC_0(Flash *VAR_0, int VAR_1)\n{",
"QEMUIOVector *iov = g_new(QEMUIOVector, 1);",
"if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) {",
"return;",
"}",
"qemu_iovec_init(iov, 1);",
"qemu_iovec_add(iov, VAR_0->storage + VAR_1 * VAR_0->pi->page_size,\nVAR_0->pi->page_size);",
"blk_aio_pwri... | [
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
]
] |
21,156 | static void sr_1d97_float(float *p, int i0, int i1)
{
int i;
if (i1 <= i0 + 1) {
if (i0 == 1)
p[1] *= F_LFTG_K/2;
else
p[0] *= F_LFTG_X/2;
return;
}
extend97_float(p, i0, i1);
for (i = i0 / 2 - 1; i < i1 / 2 + 2; i++)
p[2 * i]... | true | FFmpeg | 1c495b0bf690995c45f79f4f19500921e14ec78a | static void sr_1d97_float(float *p, int i0, int i1)
{
int i;
if (i1 <= i0 + 1) {
if (i0 == 1)
p[1] *= F_LFTG_K/2;
else
p[0] *= F_LFTG_X/2;
return;
}
extend97_float(p, i0, i1);
for (i = i0 / 2 - 1; i < i1 / 2 + 2; i++)
p[2 * i]... | {
"code": [
" p[0] *= F_LFTG_X/2;"
],
"line_no": [
17
]
} | static void FUNC_0(float *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
if (VAR_2 <= VAR_1 + 1) {
if (VAR_1 == 1)
VAR_0[1] *= F_LFTG_K/2;
else
VAR_0[0] *= F_LFTG_X/2;
return;
}
extend97_float(VAR_0, VAR_1, VAR_2);
for (VAR_3 = VAR_1 / 2 - ... | [
"static void FUNC_0(float *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"if (VAR_2 <= VAR_1 + 1) {",
"if (VAR_1 == 1)\nVAR_0[1] *= F_LFTG_K/2;",
"else\nVAR_0[0] *= F_LFTG_X/2;",
"return;",
"}",
"extend97_float(VAR_0, VAR_1, VAR_2);",
"for (VAR_3 = VAR_1 / 2 - 1; VAR_3 < VAR_2 / 2 + 2; VAR_3++)",
... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
]
] |
21,157 | static int dca_find_frame_end(DCAParseContext * pc1, const uint8_t * buf,
int buf_size)
{
int start_found, i;
uint32_t state;
ParseContext *pc = &pc1->pc;
start_found = pc->frame_start_found;
state = pc->state;
i = 0;
if (!start_found) {
fo... | true | FFmpeg | 022d22e5810d1c90f618fddd751b1f03502d6021 | static int dca_find_frame_end(DCAParseContext * pc1, const uint8_t * buf,
int buf_size)
{
int start_found, i;
uint32_t state;
ParseContext *pc = &pc1->pc;
start_found = pc->frame_start_found;
state = pc->state;
i = 0;
if (!start_found) {
fo... | {
"code": [
" if(!pc1->framesize){"
],
"line_no": [
65
]
} | static int FUNC_0(DCAParseContext * VAR_0, const uint8_t * VAR_1,
int VAR_2)
{
int VAR_3, VAR_4;
uint32_t state;
ParseContext *pc = &VAR_0->pc;
VAR_3 = pc->frame_start_found;
state = pc->state;
VAR_4 = 0;
if (!VAR_3) {
for (VAR_4 = 0; VAR_4... | [
"static int FUNC_0(DCAParseContext * VAR_0, const uint8_t * VAR_1,\nint VAR_2)\n{",
"int VAR_3, VAR_4;",
"uint32_t state;",
"ParseContext *pc = &VAR_0->pc;",
"VAR_3 = pc->frame_start_found;",
"state = pc->state;",
"VAR_4 = 0;",
"if (!VAR_3) {",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {",
"state =... | [
0,
0,
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
21,158 | static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf,
int buf_size)
{
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
int ref, f_code, vbv_delay;
init_get_bits(&s->gb, buf, buf_size * 8);
ref = get_bits(&s->... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static int mpeg1_decode_picture(AVCodecContext *avctx, const uint8_t *buf,
int buf_size)
{
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
int ref, f_code, vbv_delay;
init_get_bits(&s->gb, buf, buf_size * 8);
ref = get_bits(&s->... | {
"code": [
" s->current_picture.f.pict_type = s->pict_type;",
" s->current_picture.f.key_frame = s->pict_type == AV_PICTURE_TYPE_I;",
" s->current_picture.f.pict_type = s->pict_type;",
" s->current_picture.f.key_frame = s->pict_type == AV_PICTURE_TYPE_I;",
" s->current_picture.f.pi... | static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1,
int VAR_2)
{
Mpeg1Context *s1 = VAR_0->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
int VAR_3, VAR_4, VAR_5;
init_get_bits(&s->gb, VAR_1, VAR_2 * 8);
VAR_3 = get_bits(&s->gb, 10);
s-... | [
"static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2)\n{",
"Mpeg1Context *s1 = VAR_0->priv_data;",
"MpegEncContext *s = &s1->mpeg_enc_ctx;",
"int VAR_3, VAR_4, VAR_5;",
"init_get_bits(&s->gb, VAR_1, VAR_2 * 8);",
"VAR_3 = get_bits(&s->gb, 10);",
"s->pict_type = get_bits(&s->gb, 3)... | [
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,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,159 | static int read_quant_tables(RangeCoder *c,
int16_t quant_table[MAX_CONTEXT_INPUTS][256])
{
int i;
int context_count = 1;
for (i = 0; i < 5; i++) {
context_count *= read_quant_table(c, quant_table[i], context_count);
if (context_count > 32768U) {
... | true | FFmpeg | 10bbf6cf622f8a954c6cc694ca07c24f989c99af | static int read_quant_tables(RangeCoder *c,
int16_t quant_table[MAX_CONTEXT_INPUTS][256])
{
int i;
int context_count = 1;
for (i = 0; i < 5; i++) {
context_count *= read_quant_table(c, quant_table[i], context_count);
if (context_count > 32768U) {
... | {
"code": [
" context_count *= read_quant_table(c, quant_table[i], context_count);"
],
"line_no": [
15
]
} | static int FUNC_0(RangeCoder *VAR_0,
int16_t VAR_1[MAX_CONTEXT_INPUTS][256])
{
int VAR_2;
int VAR_3 = 1;
for (VAR_2 = 0; VAR_2 < 5; VAR_2++) {
VAR_3 *= read_quant_table(VAR_0, VAR_1[VAR_2], VAR_3);
if (VAR_3 > 32768U) {
return AVERROR_INVALI... | [
"static int FUNC_0(RangeCoder *VAR_0,\nint16_t VAR_1[MAX_CONTEXT_INPUTS][256])\n{",
"int VAR_2;",
"int VAR_3 = 1;",
"for (VAR_2 = 0; VAR_2 < 5; VAR_2++) {",
"VAR_3 *= read_quant_table(VAR_0, VAR_1[VAR_2], VAR_3);",
"if (VAR_3 > 32768U) {",
"return AVERROR_INVALIDDATA;",
"}",
"}",
"return (VAR_3 + ... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
21,161 | int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src)
{
if (src->side_data_elems) {
int i;
DUP_DATA(pkt->side_data, src->side_data,
src->side_data_elems * sizeof(*src->side_data), 0, ALLOC_MALLOC);
memset(pkt->side_data, 0,
src->side_data_elems * s... | true | FFmpeg | 6e1b1a27a4034c578018d5042b3c8228278c4cd6 | int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src)
{
if (src->side_data_elems) {
int i;
DUP_DATA(pkt->side_data, src->side_data,
src->side_data_elems * sizeof(*src->side_data), 0, ALLOC_MALLOC);
memset(pkt->side_data, 0,
src->side_data_elems * s... | {
"code": [
" av_destruct_packet(pkt);",
" av_destruct_packet(pkt);"
],
"line_no": [
37,
37
]
} | int FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1)
{
if (VAR_1->side_data_elems) {
int VAR_2;
DUP_DATA(VAR_0->side_data, VAR_1->side_data,
VAR_1->side_data_elems * sizeof(*VAR_1->side_data), 0, ALLOC_MALLOC);
memset(VAR_0->side_data, 0,
VAR_1->side_data_elems... | [
"int FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1)\n{",
"if (VAR_1->side_data_elems) {",
"int VAR_2;",
"DUP_DATA(VAR_0->side_data, VAR_1->side_data,\nVAR_1->side_data_elems * sizeof(*VAR_1->side_data), 0, ALLOC_MALLOC);",
"memset(VAR_0->side_data, 0,\nVAR_1->side_data_elems * sizeof(*VAR_1->side_data));",
"for... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
]
] |
21,162 | static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size)
{
#ifdef HAVE_MMX
/* TODO: unroll this loop */
asm volatile (
"xor %%"REG_a", %%"REG_a" \n\t"
ASMALIGN16
"1: \n\t"
PREFETCH" 32(%0, %%"REG_a") \n\t"
"movq (%0, %%"REG_a"), %%mm0 \n\t"
"movq %%mm0, %%mm1 \... | false | FFmpeg | 4bff9ef9d0781c4de228bf1f85634d2706fc589b | static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size)
{
#ifdef HAVE_MMX
asm volatile (
"xor %%"REG_a", %%"REG_a" \n\t"
ASMALIGN16
"1: \n\t"
PREFETCH" 32(%0, %%"REG_a") \n\t"
"movq (%0, %%"REG_a"), %%mm0 \n\t"
"movq %%mm0, %%mm1 \n\t"
"movq %%mm0, %%mm2 ... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size)
{
#ifdef HAVE_MMX
asm volatile (
"xor %%"REG_a", %%"REG_a" \n\t"
ASMALIGN16
"1: \n\t"
PREFETCH" 32(%0, %%"REG_a") \n\t"
"movq (%0, %%"REG_a"), %%mm0 \n\t"
"movq %%mm0, %%mm1 \n\t"
"movq %%mm0, %%mm2 ... | [
"static inline void FUNC_0(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size)\n{",
"#ifdef HAVE_MMX\nasm volatile (\n\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\nASMALIGN16\n\"1:\t\t\t\t\\n\\t\"\nPREFETCH\" 32(%0, %%\"REG_a\")\t\\n\\t\"\n\"movq (%0, %%\"REG_a\"), %%mm0\t\\n\\t\"\n\"movq %%mm0, %%mm1\t\t\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51
],
[
55
],
[
57
],
[
59,
61
],
[
63
],
[
65
],
[
67
],
... |
21,163 | static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
{
GetBitContext *gb = &ctx->gb;
*bd->shift_lsbs = 0;
// read block type flag and read the samples accordingly
if (get_bits1(gb)) {
if (read_var_block_data(ctx, bd))
return -1;
} else {
read_cons... | false | FFmpeg | 0ceca269b66ec12a23bf0907bd2c220513cdbf16 | static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
{
GetBitContext *gb = &ctx->gb;
*bd->shift_lsbs = 0;
if (get_bits1(gb)) {
if (read_var_block_data(ctx, bd))
return -1;
} else {
read_const_block_data(ctx, bd);
}
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)
{
GetBitContext *gb = &VAR_0->gb;
*VAR_1->shift_lsbs = 0;
if (get_bits1(gb)) {
if (read_var_block_data(VAR_0, VAR_1))
return -1;
} else {
read_const_block_data(VAR_0, VAR_1);
}
ret... | [
"static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)\n{",
"GetBitContext *gb = &VAR_0->gb;",
"*VAR_1->shift_lsbs = 0;",
"if (get_bits1(gb)) {",
"if (read_var_block_data(VAR_0, VAR_1))\nreturn -1;",
"} else {",
"read_const_block_data(VAR_0, VAR_1);",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
21,164 | static int init_input(AVFormatContext *s, const char *filename,
AVDictionary **options)
{
int ret;
AVProbeData pd = { filename, NULL, 0 };
int score = AVPROBE_SCORE_RETRY;
if (s->pb) {
s->flags |= AVFMT_FLAG_CUSTOM_IO;
if (!s->iformat)
return ... | false | FFmpeg | 1dba8371d93cf1c83bcd5c432d921905206a60f3 | static int init_input(AVFormatContext *s, const char *filename,
AVDictionary **options)
{
int ret;
AVProbeData pd = { filename, NULL, 0 };
int score = AVPROBE_SCORE_RETRY;
if (s->pb) {
s->flags |= AVFMT_FLAG_CUSTOM_IO;
if (!s->iformat)
return ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1,
AVDictionary **VAR_2)
{
int VAR_3;
AVProbeData pd = { VAR_1, NULL, 0 };
int VAR_4 = AVPROBE_SCORE_RETRY;
if (VAR_0->pb) {
VAR_0->flags |= AVFMT_FLAG_CUSTOM_IO;
if (!VAR_0->iformat)
r... | [
"static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1,\nAVDictionary **VAR_2)\n{",
"int VAR_3;",
"AVProbeData pd = { VAR_1, NULL, 0 };",
"int VAR_4 = AVPROBE_SCORE_RETRY;",
"if (VAR_0->pb) {",
"VAR_0->flags |= AVFMT_FLAG_CUSTOM_IO;",
"if (!VAR_0->iformat)\nreturn av_probe_input_buffer2(VAR_0->pb,... | [
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
],
[
37,
39,
41
],
[
45,
47,
49
],
[
51,
53
],
[
55,
57
],
[... |
21,165 | static int inet_aton(const char *str, struct in_addr *add)
{
return inet_aton(str, add);
}
| false | FFmpeg | c693af1951a0074a29ce39b69736ff0cf33b41d2 | static int inet_aton(const char *str, struct in_addr *add)
{
return inet_aton(str, add);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, struct in_addr *VAR_1)
{
return FUNC_0(VAR_0, VAR_1);
}
| [
"static int FUNC_0(const char *VAR_0, struct in_addr *VAR_1)\n{",
"return FUNC_0(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
21,167 | MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2)
int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
int level)
{
VDPAUHWContext *hwctx = avctx->hwaccel_context;
VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;
VdpVideoS... | false | FFmpeg | 67ddf21611b904de1ee3eb0206cd2744a135704a | MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2)
int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
int level)
{
VDPAUHWContext *hwctx = avctx->hwaccel_context;
VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;
VdpVideoS... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3)
int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
int level)
{
VDPAUHWContext *hwctx = avctx->hwaccel_context;
VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;
VdpVideoSurfaceQueryCapabilities *surface_quer... | [
"FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3)\nint ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,\nint level)\n{",
"VDPAUHWContext *hwctx = avctx->hwaccel_context;",
"VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;",
"VdpVideoSurfaceQueryCapabilities *surface_query_caps;",
"VdpDecode... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51... |
21,169 | static qemu_irq *vpb_sic_init(uint32_t base, qemu_irq *parent, int irq)
{
vpb_sic_state *s;
qemu_irq *qi;
int iomemtype;
s = (vpb_sic_state *)qemu_mallocz(sizeof(vpb_sic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(vpb_sic_set_irq, s, 32);
s->base = base;
s->... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | static qemu_irq *vpb_sic_init(uint32_t base, qemu_irq *parent, int irq)
{
vpb_sic_state *s;
qemu_irq *qi;
int iomemtype;
s = (vpb_sic_state *)qemu_mallocz(sizeof(vpb_sic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(vpb_sic_set_irq, s, 32);
s->base = base;
s->... | {
"code": [
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_phys... | static qemu_irq *FUNC_0(uint32_t base, qemu_irq *parent, int irq)
{
vpb_sic_state *s;
qemu_irq *qi;
int VAR_0;
s = (vpb_sic_state *)qemu_mallocz(sizeof(vpb_sic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(vpb_sic_set_irq, s, 32);
s->base = base;
s->parent = p... | [
"static qemu_irq *FUNC_0(uint32_t base, qemu_irq *parent, int irq)\n{",
"vpb_sic_state *s;",
"qemu_irq *qi;",
"int VAR_0;",
"s = (vpb_sic_state *)qemu_mallocz(sizeof(vpb_sic_state));",
"if (!s)\nreturn NULL;",
"qi = qemu_allocate_irqs(vpb_sic_set_irq, s, 32);",
"s->base = base;",
"s->parent = parent... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
]
] |
21,170 | static bool use_exit_tb(DisasContext *s)
{
return (s->singlestep_enabled ||
(s->tb->cflags & CF_LAST_IO) ||
(s->tb->flags & FLAG_MASK_PER));
}
| true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static bool use_exit_tb(DisasContext *s)
{
return (s->singlestep_enabled ||
(s->tb->cflags & CF_LAST_IO) ||
(s->tb->flags & FLAG_MASK_PER));
}
| {
"code": [
" (s->tb->cflags & CF_LAST_IO) ||"
],
"line_no": [
7
]
} | static bool FUNC_0(DisasContext *s)
{
return (s->singlestep_enabled ||
(s->tb->cflags & CF_LAST_IO) ||
(s->tb->flags & FLAG_MASK_PER));
}
| [
"static bool FUNC_0(DisasContext *s)\n{",
"return (s->singlestep_enabled ||\n(s->tb->cflags & CF_LAST_IO) ||\n(s->tb->flags & FLAG_MASK_PER));",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
]
] |
21,172 | static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
{
char *buf = av_asprintf("format=%s", arg);
int ret;
av_log(NULL, AV_LOG_WARNING,
"Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
opt, arg);
ret = opt_show_entries(optctx, opt, b... | true | FFmpeg | a75d22445ecb7adbe3fb8f705cb4fd9aa0d6b5ee | static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
{
char *buf = av_asprintf("format=%s", arg);
int ret;
av_log(NULL, AV_LOG_WARNING,
"Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
opt, arg);
ret = opt_show_entries(optctx, opt, b... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)
{
char *VAR_3 = av_asprintf("format=%s", VAR_2);
int VAR_4;
av_log(NULL, AV_LOG_WARNING,
"Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
VAR_1, VAR_2);
VAR_4 = opt_show_entries(VAR_0, VAR_1, ... | [
"static int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"char *VAR_3 = av_asprintf(\"format=%s\", VAR_2);",
"int VAR_4;",
"av_log(NULL, AV_LOG_WARNING,\n\"Option '%s' is deprecated, use '-show_entries format=%s' instead\\n\",\nVAR_1, VAR_2);",
"VAR_4 = opt_show_entries(VAR_0, VAR_1, VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5,
6,
7
],
[
8
],
[
9
],
[
10
],
[
11
]
] |
21,174 | int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){
int i;
for(i=0; i<256; i++){
int r,g,b;
switch(pix_fmt) {
case PIX_FMT_RGB8:
r= (i>>5 )*36;
g= ((i>>2)&7)*36;
b= (i&3 )*85;
break;
case PIX... | true | FFmpeg | c7efffcb443fe5a2134833f62987b3a999e0701e | int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){
int i;
for(i=0; i<256; i++){
int r,g,b;
switch(pix_fmt) {
case PIX_FMT_RGB8:
r= (i>>5 )*36;
g= ((i>>2)&7)*36;
b= (i&3 )*85;
break;
case PIX... | {
"code": [],
"line_no": []
} | int FUNC_0(uint32_t VAR_0[256], enum PixelFormat VAR_1){
int VAR_2;
for(VAR_2=0; VAR_2<256; VAR_2++){
int VAR_3,VAR_4,VAR_5;
switch(VAR_1) {
case PIX_FMT_RGB8:
VAR_3= (VAR_2>>5 )*36;
VAR_4= ((VAR_2>>2)&7)*36;
VAR_5= (VAR_2&3 )*85;
... | [
"int FUNC_0(uint32_t VAR_0[256], enum PixelFormat VAR_1){",
"int VAR_2;",
"for(VAR_2=0; VAR_2<256; VAR_2++){",
"int VAR_3,VAR_4,VAR_5;",
"switch(VAR_1) {",
"case PIX_FMT_RGB8:\nVAR_3= (VAR_2>>5 )*36;",
"VAR_4= ((VAR_2>>2)&7)*36;",
"VAR_5= (VAR_2&3 )*85;",
"break;",
"case PIX_FMT_BGR8:\nVAR_... | [
0,
0,
0,
0,
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
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
... |
21,175 | int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset,
int *num, uint64_t *cluster_offset)
{
BDRVQcowState *s = bs->opaque;
unsigned int l2_index;
uint64_t l1_index, l2_offset, *l2_table;
int l1_bits, c;
unsigned int index_in_cluster, nb_clusters;
uint64_t nb_available, ... | true | qemu | 8885eadedd0ea8b57c1baa367ee2c2d616700bd9 | int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset,
int *num, uint64_t *cluster_offset)
{
BDRVQcowState *s = bs->opaque;
unsigned int l2_index;
uint64_t l1_index, l2_offset, *l2_table;
int l1_bits, c;
unsigned int index_in_cluster, nb_clusters;
uint64_t nb_available, ... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,
int *VAR_2, uint64_t *VAR_3)
{
BDRVQcowState *s = VAR_0->opaque;
unsigned int VAR_4;
uint64_t l1_index, l2_offset, *l2_table;
int VAR_5, VAR_6;
unsigned int VAR_7, VAR_8;
uint64_t nb_available, nb_needed;
int VAR_9;
VAR_... | [
"int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nint *VAR_2, uint64_t *VAR_3)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"unsigned int VAR_4;",
"uint64_t l1_index, l2_offset, *l2_table;",
"int VAR_5, VAR_6;",
"unsigned int VAR_7, VAR_8;",
"uint64_t nb_available, nb_needed;",
"int VAR_9;",
"VAR_7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
41
],
[
49
],
[
53
],
[
55
],
[
57
],
[
61
],
[
69
],
[
71
],
[... |
21,177 | static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
{
AVFilterContext *ret;
char *filter = av_strdup(filt); /* copy - don't mangle the input string */
char *name, *args;
name = filter;
if((args = strchr(filter, '='))) {
/* ensure we at least have a name */
... | true | FFmpeg | 1deec58ba308f66280e388071dbcc223c3728595 | static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
{
AVFilterContext *ret;
char *filter = av_strdup(filt);
char *name, *args;
name = filter;
if((args = strchr(filter, '='))) {
if(args == filter)
goto fail;
*args ++ = 0;
}
av_... | {
"code": [],
"line_no": []
} | static AVFilterContext *FUNC_0(const char *filt, void *opaque)
{
AVFilterContext *ret;
char *VAR_0 = av_strdup(filt);
char *VAR_1, *VAR_2;
VAR_1 = VAR_0;
if((VAR_2 = strchr(VAR_0, '='))) {
if(VAR_2 == VAR_0)
goto fail;
*VAR_2 ++ = 0;
}
av_log(NULL, AV_LO... | [
"static AVFilterContext *FUNC_0(const char *filt, void *opaque)\n{",
"AVFilterContext *ret;",
"char *VAR_0 = av_strdup(filt);",
"char *VAR_1, *VAR_2;",
"VAR_1 = VAR_0;",
"if((VAR_2 = strchr(VAR_0, '='))) {",
"if(VAR_2 == VAR_0)\ngoto fail;",
"*VAR_2 ++ = 0;",
"}",
"av_log(NULL, AV_LOG_INFO, \"crea... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
9,
10
],
[
11
],
[
12
],
[
13,
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23,
... |
21,178 | static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst)
{
int *lendst = (int *)(dst + 1);
uint8_t *bin, *ptr;
int len = strlen(val);
av_freep(dst);
*lendst = 0;
if (len & 1)
return AVERROR(EINVAL);
len /= 2;
ptr = bin = av_malloc... | true | FFmpeg | bb60142f562ef9ca7f34bd69abe059d56ea1cbf1 | static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst)
{
int *lendst = (int *)(dst + 1);
uint8_t *bin, *ptr;
int len = strlen(val);
av_freep(dst);
*lendst = 0;
if (len & 1)
return AVERROR(EINVAL);
len /= 2;
ptr = bin = av_malloc... | {
"code": [
" int len = strlen(val);"
],
"line_no": [
9
]
} | static int FUNC_0(void *VAR_0, const AVOption *VAR_1, const char *VAR_2, uint8_t **VAR_3)
{
int *VAR_4 = (int *)(VAR_3 + 1);
uint8_t *bin, *ptr;
int VAR_5 = strlen(VAR_2);
av_freep(VAR_3);
*VAR_4 = 0;
if (VAR_5 & 1)
return AVERROR(EINVAL);
VAR_5 /= 2;
ptr = bin = ... | [
"static int FUNC_0(void *VAR_0, const AVOption *VAR_1, const char *VAR_2, uint8_t **VAR_3)\n{",
"int *VAR_4 = (int *)(VAR_3 + 1);",
"uint8_t *bin, *ptr;",
"int VAR_5 = strlen(VAR_2);",
"av_freep(VAR_3);",
"*VAR_4 = 0;",
"if (VAR_5 & 1)\nreturn AVERROR(EINVAL);",
"VAR_5 /= 2;",
"ptr = bin = av_malloc... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,179 | static int xen_host_pci_get_resource(XenHostPCIDevice *d)
{
int i, rc, fd;
char path[PATH_MAX];
char buf[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE];
unsigned long long start, end, flags, size;
char *endptr, *s;
uint8_t type;
rc = xen_host_pci_sysfs_path(d, "resource", path, sizeof (path));... | true | qemu | 599d0c45615b7d099d256738a586d0f63bc707e6 | static int xen_host_pci_get_resource(XenHostPCIDevice *d)
{
int i, rc, fd;
char path[PATH_MAX];
char buf[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE];
unsigned long long start, end, flags, size;
char *endptr, *s;
uint8_t type;
rc = xen_host_pci_sysfs_path(d, "resource", path, sizeof (path));... | {
"code": [
" rc = xen_host_pci_sysfs_path(d, \"resource\", path, sizeof (path));",
" if (rc) {",
" return rc;",
" if (rc) {",
" return rc;",
" if (rc) {",
" return rc;"
],
"line_no": [
19,
21,
23,
21,
23,
21,
23
]
} | static int FUNC_0(XenHostPCIDevice *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
char VAR_4[PATH_MAX];
char VAR_5[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE];
unsigned long long VAR_6, VAR_7, VAR_8, VAR_9;
char *VAR_10, *VAR_11;
uint8_t type;
VAR_2 = xen_host_pci_sysfs_path(VAR_0, "resource", VAR_4, s... | [
"static int FUNC_0(XenHostPCIDevice *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"char VAR_4[PATH_MAX];",
"char VAR_5[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE];",
"unsigned long long VAR_6, VAR_7, VAR_8, VAR_9;",
"char *VAR_10, *VAR_11;",
"uint8_t type;",
"VAR_2 = xen_host_pci_sysfs_path(VAR_0, \"resource\", VAR... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
21,180 | static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
MpegEncContext * const s = &h->s;
AVCodecContext * const avctx= s->avctx;
int buf_index=0;
#if 0
int i;
for(i=0; i<50; i++){
av_log(NULL, AV_LOG_ERROR,"%02X ", buf[i]);
}
#endif
h->slice_num = 0;
... | true | FFmpeg | ac658be5db5baa01546715994fbd193a855cbc73 | static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
MpegEncContext * const s = &h->s;
AVCodecContext * const avctx= s->avctx;
int buf_index=0;
#if 0
int i;
for(i=0; i<50; i++){
av_log(NULL, AV_LOG_ERROR,"%02X ", buf[i]);
}
#endif
h->slice_num = 0;
... | {
"code": [
" if(nalsize <= 1){"
],
"line_no": [
49
]
} | static int FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, int VAR_2){
MpegEncContext * const s = &VAR_0->s;
AVCodecContext * const avctx= s->avctx;
int VAR_3=0;
#if 0
int VAR_7;
for(VAR_7=0; VAR_7<50; VAR_7++){
av_log(NULL, AV_LOG_ERROR,"%02X ", VAR_1[VAR_7]);
}
#endif
VAR_0->s... | [
"static int FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, int VAR_2){",
"MpegEncContext * const s = &VAR_0->s;",
"AVCodecContext * const avctx= s->avctx;",
"int VAR_3=0;",
"#if 0\nint VAR_7;",
"for(VAR_7=0; VAR_7<50; VAR_7++){",
"av_log(NULL, AV_LOG_ERROR,\"%02X \", VAR_1[VAR_7]);",
"}",
"#endif\nVAR_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,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[... |
21,181 | static target_ulong h_put_tce(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong liobn = args[0];
target_ulong ioba = args[1];
target_ulong tce = args[2];
sPAPRTCETable *tcet = spapr_tce_find_by_liobn(liobn);
if (l... | true | qemu | d4261662b67b48e52f747ee1e3c31cf873c5c982 | static target_ulong h_put_tce(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong liobn = args[0];
target_ulong ioba = args[1];
target_ulong tce = args[2];
sPAPRTCETable *tcet = spapr_tce_find_by_liobn(liobn);
if (l... | {
"code": [
" if (liobn & 0xFFFFFFFF00000000ULL) {",
" hcall_dprintf(\"spapr_vio_put_tce on out-of-boundsw LIOBN \"",
" TARGET_FMT_lx \"\\n\", liobn);",
" return H_PARAMETER;"
],
"line_no": [
17,
19,
21,
23
]
} | static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong liobn = args[0];
target_ulong ioba = args[1];
target_ulong tce = args[2];
sPAPRTCETable *tcet = spapr_tce_find_by_liobn(liobn);
if (liob... | [
"static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,\ntarget_ulong opcode, target_ulong *args)\n{",
"target_ulong liobn = args[0];",
"target_ulong ioba = args[1];",
"target_ulong tce = args[2];",
"sPAPRTCETable *tcet = spapr_tce_find_by_liobn(liobn);",
"if (liobn & 0xFFFFFFFF00000000ULL) ... | [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43,
45
],
[
47,
51
],
[
53
]
] |
21,182 | static void ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,
IVITile *tile, int32_t mv_scale)
{
int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type;
int offs, mb_offset, row_offset;
IVIMbInfo *mb, *ref_mb;
co... | true | FFmpeg | ae3da0ae5550053583a6f281ea7fd940497ea0d1 | static void ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,
IVITile *tile, int32_t mv_scale)
{
int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type;
int offs, mb_offset, row_offset;
IVIMbInfo *mb, *ref_mb;
co... | {
"code": [
"static void ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,",
" IVITile *tile, int32_t mv_scale)"
],
"line_no": [
1,
3
]
} | static void FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1,
IVITile *VAR_2, int32_t VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21;
int VAR_13, VAR_14, VAR_15;
IVIMbInfo *mb, *ref_mb;
const int16_t ... | [
"static void FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, int32_t VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21;",
"int VAR_13, VAR_14, VAR_15;",
"IVIMbInfo *mb, *ref_mb;",
"const int16_t *VAR_16;",
"int16_t ... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
21,183 | static void handle_rev16(DisasContext *s, unsigned int sf,
unsigned int rn, unsigned int rd)
{
TCGv_i64 tcg_rd = cpu_reg(s, rd);
TCGv_i64 tcg_tmp = tcg_temp_new_i64();
TCGv_i64 tcg_rn = read_cpu_reg(s, rn, sf);
TCGv_i64 mask = tcg_const_i64(sf ? 0x00ff00ff00ff00ffull : 0x0... | true | qemu | e4256c3cbf7eefebc0bc6e1f472c47c6dd20b996 | static void handle_rev16(DisasContext *s, unsigned int sf,
unsigned int rn, unsigned int rd)
{
TCGv_i64 tcg_rd = cpu_reg(s, rd);
TCGv_i64 tcg_tmp = tcg_temp_new_i64();
TCGv_i64 tcg_rn = read_cpu_reg(s, rn, sf);
TCGv_i64 mask = tcg_const_i64(sf ? 0x00ff00ff00ff00ffull : 0x0... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, unsigned int VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{
TCGv_i64 tcg_rd = cpu_reg(VAR_0, VAR_3);
TCGv_i64 tcg_tmp = tcg_temp_new_i64();
TCGv_i64 tcg_rn = read_cpu_reg(VAR_0, VAR_2, VAR_1);
TCGv_i64 mask = tcg_const_i64(VAR_1 ? ... | [
"static void FUNC_0(DisasContext *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{",
"TCGv_i64 tcg_rd = cpu_reg(VAR_0, VAR_3);",
"TCGv_i64 tcg_tmp = tcg_temp_new_i64();",
"TCGv_i64 tcg_rn = read_cpu_reg(VAR_0, VAR_2, VAR_1);",
"TCGv_i64 mask = tcg_const_i64(VAR_1 ? 0x00ff00ff00ff00fful... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
30
],
[
32
]
] |
21,184 | static void guess_dc(MpegEncContext *s, int16_t *dc, int w,
int h, int stride, int is_luma)
{
int b_x, b_y;
int16_t (*col )[4] = av_malloc(stride*h*sizeof( int16_t)*4);
uint32_t (*dist)[4] = av_malloc(stride*h*sizeof(uint32_t)*4);
if(!col || !dist) {
av_log(s->avctx, AV_LOG... | true | FFmpeg | 16e52c86ba46e92d4a75e612d69ac97edb88a462 | static void guess_dc(MpegEncContext *s, int16_t *dc, int w,
int h, int stride, int is_luma)
{
int b_x, b_y;
int16_t (*col )[4] = av_malloc(stride*h*sizeof( int16_t)*4);
uint32_t (*dist)[4] = av_malloc(stride*h*sizeof(uint32_t)*4);
if(!col || !dist) {
av_log(s->avctx, AV_LOG... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6, VAR_7;
int16_t (*col )[4] = av_malloc(VAR_4*VAR_3*sizeof( int16_t)*4);
uint32_t (*dist)[4] = av_malloc(VAR_4*VAR_3*sizeof(uint32_t)*4);
if(!col || !dist) {
av_... | [
"static void FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6, VAR_7;",
"int16_t (*col )[4] = av_malloc(VAR_4*VAR_3*sizeof( int16_t)*4);",
"uint32_t (*dist)[4] = av_malloc(VAR_4*VAR_3*sizeof(uint32_t)*4);",
"if(!col || !dist) {",
"av_log(VAR_0->av... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
... |
21,185 | int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
{
const CodecMime *mime = ff_id3v2_mime_tags;
enum AVCodecID id = AV_CODEC_ID_NONE;
AVBufferRef *data = NULL;
uint8_t mimetype[64], *desc = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int type, width, height;
... | true | FFmpeg | 0b66fb4505e0bb43de3797f63f3290f0188d67cc | int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
{
const CodecMime *mime = ff_id3v2_mime_tags;
enum AVCodecID id = AV_CODEC_ID_NONE;
AVBufferRef *data = NULL;
uint8_t mimetype[64], *desc = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int type, width, height;
... | {
"code": [
" int type, width, height;",
" int len, ret = 0;",
" if (type >= FF_ARRAY_ELEMS(ff_id3v2_picture_types) || type < 0) {",
" if (len <= 0 ||",
" if (len <= 0) {"
],
"line_no": [
17,
19,
35,
57,
155
]
} | int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{
const CodecMime *VAR_3 = ff_id3v2_mime_tags;
enum AVCodecID VAR_4 = AV_CODEC_ID_NONE;
AVBufferRef *data = NULL;
uint8_t mimetype[64], *desc = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int VAR_5, VAR_6, VAR_7;
int ... | [
"int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"const CodecMime *VAR_3 = ff_id3v2_mime_tags;",
"enum AVCodecID VAR_4 = AV_CODEC_ID_NONE;",
"AVBufferRef *data = NULL;",
"uint8_t mimetype[64], *desc = NULL;",
"AVIOContext *pb = NULL;",
"AVStream *st;",
"int VAR_5, VAR_6, VAR_7;",
... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
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,
1,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,186 | int avpriv_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header)
{
int sample_rate, frame_size, mpeg25, padding;
int sample_rate_index, bitrate_index;
if (header & (1<<20)) {
s->lsf = (header & (1<<19)) ? 0 : 1;
mpeg25 = 0;
} else {
s->lsf = 1;
mpeg25 = 1;... | true | FFmpeg | 44127546b0a81dc9dd6190739a62d48f0044c6f3 | int avpriv_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header)
{
int sample_rate, frame_size, mpeg25, padding;
int sample_rate_index, bitrate_index;
if (header & (1<<20)) {
s->lsf = (header & (1<<19)) ? 0 : 1;
mpeg25 = 0;
} else {
s->lsf = 1;
mpeg25 = 1;... | {
"code": [],
"line_no": []
} | int FUNC_0(MPADecodeHeader *VAR_0, uint32_t VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5;
int VAR_6, VAR_7;
if (VAR_1 & (1<<20)) {
VAR_0->lsf = (VAR_1 & (1<<19)) ? 0 : 1;
VAR_4 = 0;
} else {
VAR_0->lsf = 1;
VAR_4 = 1;
}
VAR_0->layer = 4 - ((VAR_1 >> 17) & ... | [
"int FUNC_0(MPADecodeHeader *VAR_0, uint32_t VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"int VAR_6, VAR_7;",
"if (VAR_1 & (1<<20)) {",
"VAR_0->lsf = (VAR_1 & (1<<19)) ? 0 : 1;",
"VAR_4 = 0;",
"} else {",
"VAR_0->lsf = 1;",
"VAR_4 = 1;",
"}",
"VAR_0->layer = 4 - ((VAR_1 >> 17) & 3);",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
... |
21,187 | static int vhost_set_vring(struct vhost_dev *dev,
unsigned long int request,
struct vhost_vring_state *ring)
{
VhostUserMsg msg = {
.request = request,
.flags = VHOST_USER_VERSION,
.state = *ring,
.size = sizeof(*ring),
... | true | qemu | 7f4a930e64b9e69cd340395a7e4f0494aef4fcdd | static int vhost_set_vring(struct vhost_dev *dev,
unsigned long int request,
struct vhost_vring_state *ring)
{
VhostUserMsg msg = {
.request = request,
.flags = VHOST_USER_VERSION,
.state = *ring,
.size = sizeof(*ring),
... | {
"code": [
" };",
" .state = *ring,",
" .state = *ring,"
],
"line_no": [
19,
15,
15
]
} | static int FUNC_0(struct vhost_dev *VAR_0,
unsigned long int VAR_1,
struct vhost_vring_state *VAR_2)
{
VhostUserMsg msg = {
.VAR_1 = VAR_1,
.flags = VHOST_USER_VERSION,
.state = *VAR_2,
.size = sizeof(*VAR_2),
};
... | [
"static int FUNC_0(struct vhost_dev *VAR_0,\nunsigned long int VAR_1,\nstruct vhost_vring_state *VAR_2)\n{",
"VhostUserMsg msg = {",
".VAR_1 = VAR_1,\n.flags = VHOST_USER_VERSION,\n.state = *VAR_2,\n.size = sizeof(*VAR_2),\n};",
"vhost_user_write(VAR_0, &msg, NULL, 0);",
"return 0;",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13,
15,
17,
19
],
[
23
],
[
27
],
[
29
]
] |
21,188 | static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
MpegEncContext * const s = avctx->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
const int width= s->width;
const int height= s->height;
AVFrame * co... | true | FFmpeg | c2dd5a18b27bb33d871d41fbed9104f3a68d68fe | static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
MpegEncContext * const s = avctx->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
const int width= s->width;
const int height= s->height;
AVFrame * co... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
MpegEncContext * const s = VAR_0->priv_data;
MJpegContext * const m = s->mjpeg_ctx;
const int VAR_4= s->VAR_4;
const int VAR_5= s->VAR_5;
AVFrame * const p = &s->current_p... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"MpegEncContext * const s = VAR_0->priv_data;",
"MJpegContext * const m = s->mjpeg_ctx;",
"const int VAR_4= s->VAR_4;",
"const int VAR_5= s->VAR_5;",
"AVFrame * const p = &s->current_picture.f;",
"const in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13,
14
],
[
15
],
[
16,
17
],
[
18,
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
21,190 | static void dump_regs(struct ucontext *uc)
{
}
| true | qemu | 773b93ee0684a9b9d1f0029a936a251411289027 | static void dump_regs(struct ucontext *uc)
{
}
| {
"code": [
"static void dump_regs(struct ucontext *uc)",
"static void dump_regs(struct ucontext *uc)"
],
"line_no": [
1,
1
]
} | static void FUNC_0(struct ucontext *VAR_0)
{
}
| [
"static void FUNC_0(struct ucontext *VAR_0)\n{",
"}"
] | [
1,
0
] | [
[
1,
3
],
[
5
]
] |
21,191 | static void do_wav_capture(Monitor *mon, const QDict *qdict)
{
const char *path = qdict_get_str(qdict, "path");
int has_freq = qdict_haskey(qdict, "freq");
int freq = qdict_get_try_int(qdict, "freq", -1);
int has_bits = qdict_haskey(qdict, "bits");
int bits = qdict_get_try_int(qdict, "bits", -... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static void do_wav_capture(Monitor *mon, const QDict *qdict)
{
const char *path = qdict_get_str(qdict, "path");
int has_freq = qdict_haskey(qdict, "freq");
int freq = qdict_get_try_int(qdict, "freq", -1);
int has_bits = qdict_haskey(qdict, "bits");
int bits = qdict_get_try_int(qdict, "bits", -... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");
int VAR_3 = qdict_haskey(VAR_1, "VAR_4");
int VAR_4 = qdict_get_try_int(VAR_1, "VAR_4", -1);
int VAR_5 = qdict_haskey(VAR_1, "VAR_6");
int VAR_6 = qdict_get_try_int(VAR_1, "VAR_6", -1);
... | [
"static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");",
"int VAR_3 = qdict_haskey(VAR_1, \"VAR_4\");",
"int VAR_4 = qdict_get_try_int(VAR_1, \"VAR_4\", -1);",
"int VAR_5 = qdict_haskey(VAR_1, \"VAR_6\");",
"int VAR_6 = qdict_get_try_int(VAR_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
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
21,192 | static struct mm_struct *vma_init(void)
{
struct mm_struct *mm;
if ((mm = qemu_malloc(sizeof (*mm))) == NULL)
return (NULL);
mm->mm_count = 0;
TAILQ_INIT(&mm->mm_mmap);
return (mm);
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static struct mm_struct *vma_init(void)
{
struct mm_struct *mm;
if ((mm = qemu_malloc(sizeof (*mm))) == NULL)
return (NULL);
mm->mm_count = 0;
TAILQ_INIT(&mm->mm_mmap);
return (mm);
}
| {
"code": [],
"line_no": []
} | static struct mm_struct *FUNC_0(void)
{
struct mm_struct *VAR_0;
if ((VAR_0 = qemu_malloc(sizeof (*VAR_0))) == NULL)
return (NULL);
VAR_0->mm_count = 0;
TAILQ_INIT(&VAR_0->mm_mmap);
return (VAR_0);
}
| [
"static struct mm_struct *FUNC_0(void)\n{",
"struct mm_struct *VAR_0;",
"if ((VAR_0 = qemu_malloc(sizeof (*VAR_0))) == NULL)\nreturn (NULL);",
"VAR_0->mm_count = 0;",
"TAILQ_INIT(&VAR_0->mm_mmap);",
"return (VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
21,193 | CoroutineAction qemu_coroutine_switch(Coroutine *from_, Coroutine *to_,
CoroutineAction action)
{
CoroutineWin32 *from = DO_UPCAST(CoroutineWin32, base, from_);
CoroutineWin32 *to = DO_UPCAST(CoroutineWin32, base, to_);
current = to_;
to->action = action;
... | false | qemu | ff4873cb8c81db89668d8b56e19e57b852edb5f5 | CoroutineAction qemu_coroutine_switch(Coroutine *from_, Coroutine *to_,
CoroutineAction action)
{
CoroutineWin32 *from = DO_UPCAST(CoroutineWin32, base, from_);
CoroutineWin32 *to = DO_UPCAST(CoroutineWin32, base, to_);
current = to_;
to->action = action;
... | {
"code": [],
"line_no": []
} | CoroutineAction FUNC_0(Coroutine *from_, Coroutine *to_,
CoroutineAction action)
{
CoroutineWin32 *from = DO_UPCAST(CoroutineWin32, base, from_);
CoroutineWin32 *to = DO_UPCAST(CoroutineWin32, base, to_);
current = to_;
to->action = action;
SwitchToFi... | [
"CoroutineAction FUNC_0(Coroutine *from_, Coroutine *to_,\nCoroutineAction action)\n{",
"CoroutineWin32 *from = DO_UPCAST(CoroutineWin32, base, from_);",
"CoroutineWin32 *to = DO_UPCAST(CoroutineWin32, base, to_);",
"current = to_;",
"to->action = action;",
"SwitchToFiber(to->fiber);",
"return from->act... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,194 | av_cold void ff_rv34dsp_init_x86(RV34DSPContext* c, DSPContext *dsp)
{
#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_MMX)
c->rv34_idct_dc_add = ff_rv34_idct_dc_add_mmx;
if (mm_flags & AV_CPU_FLAG_MMXEXT) {
c->rv34_inv_transform_dc = ff_rv34_idct_dc_noro... | false | FFmpeg | e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6 | av_cold void ff_rv34dsp_init_x86(RV34DSPContext* c, DSPContext *dsp)
{
#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_MMX)
c->rv34_idct_dc_add = ff_rv34_idct_dc_add_mmx;
if (mm_flags & AV_CPU_FLAG_MMXEXT) {
c->rv34_inv_transform_dc = ff_rv34_idct_dc_noro... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(RV34DSPContext* c, DSPContext *dsp)
{
#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
if (mm_flags & AV_CPU_FLAG_MMX)
c->rv34_idct_dc_add = ff_rv34_idct_dc_add_mmx;
if (mm_flags & AV_CPU_FLAG_MMXEXT) {
c->rv34_inv_transform_dc = ff_rv34_idct_dc_noround_mmx2;
... | [
"av_cold void FUNC_0(RV34DSPContext* c, DSPContext *dsp)\n{",
"#if HAVE_YASM\nint mm_flags = av_get_cpu_flags();",
"if (mm_flags & AV_CPU_FLAG_MMX)\nc->rv34_idct_dc_add = ff_rv34_idct_dc_add_mmx;",
"if (mm_flags & AV_CPU_FLAG_MMXEXT) {",
"c->rv34_inv_transform_dc = ff_rv34_idct_dc_noround_mmx2;",
"c->rv34... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29
]
] |
21,195 | int64_t helper_fqtox(CPUSPARCState *env)
{
int64_t ret;
clear_float_exceptions(env);
ret = float128_to_int64_round_to_zero(QT1, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| false | qemu | 7385aed20db5d83979f683b9d0048674411e963c | int64_t helper_fqtox(CPUSPARCState *env)
{
int64_t ret;
clear_float_exceptions(env);
ret = float128_to_int64_round_to_zero(QT1, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| {
"code": [],
"line_no": []
} | int64_t FUNC_0(CPUSPARCState *env)
{
int64_t ret;
clear_float_exceptions(env);
ret = float128_to_int64_round_to_zero(QT1, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| [
"int64_t FUNC_0(CPUSPARCState *env)\n{",
"int64_t ret;",
"clear_float_exceptions(env);",
"ret = float128_to_int64_round_to_zero(QT1, &env->fp_status);",
"check_ieee_exceptions(env);",
"return ret;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
21,197 | static void io_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
MemoryRegionIORange *mrio = g_new(MemoryRegionIORange, 1);
mrio->mr = section->mr;
mrio->offset = section->offset_within_region;
iorange_init(&mrio->iorange, &memory_region_iorange_ops,
... | false | qemu | b40acf99bef69fa8ab0f9092ff162fde945eec12 | static void io_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
MemoryRegionIORange *mrio = g_new(MemoryRegionIORange, 1);
mrio->mr = section->mr;
mrio->offset = section->offset_within_region;
iorange_init(&mrio->iorange, &memory_region_iorange_ops,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1)
{
MemoryRegionIORange *mrio = g_new(MemoryRegionIORange, 1);
mrio->mr = VAR_1->mr;
mrio->offset = VAR_1->offset_within_region;
iorange_init(&mrio->iorange, &memory_region_iorange_ops,
... | [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{",
"MemoryRegionIORange *mrio = g_new(MemoryRegionIORange, 1);",
"mrio->mr = VAR_1->mr;",
"mrio->offset = VAR_1->offset_within_region;",
"iorange_init(&mrio->iorange, &memory_region_iorange_ops,\nVAR_1->offset_within_address_space,\ni... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15,
17,
19
],
[
21
],
[
23
]
] |
21,198 | build_mcfg_q35(GArray *table_data, GArray *linker, AcpiMcfgInfo *info)
{
AcpiTableMcfg *mcfg;
const char *sig;
int len = sizeof(*mcfg) + 1 * sizeof(mcfg->allocation[0]);
mcfg = acpi_data_push(table_data, len);
mcfg->allocation[0].address = cpu_to_le64(info->mcfg_base);
/* Only a single ... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | build_mcfg_q35(GArray *table_data, GArray *linker, AcpiMcfgInfo *info)
{
AcpiTableMcfg *mcfg;
const char *sig;
int len = sizeof(*mcfg) + 1 * sizeof(mcfg->allocation[0]);
mcfg = acpi_data_push(table_data, len);
mcfg->allocation[0].address = cpu_to_le64(info->mcfg_base);
mcfg->alloc... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiMcfgInfo *VAR_2)
{
AcpiTableMcfg *mcfg;
const char *VAR_3;
int VAR_4 = sizeof(*mcfg) + 1 * sizeof(mcfg->allocation[0]);
mcfg = acpi_data_push(VAR_0, VAR_4);
mcfg->allocation[0].address = cpu_to_le64(VAR_2->mcfg_base);
mcfg->allocation[0].pc... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiMcfgInfo *VAR_2)\n{",
"AcpiTableMcfg *mcfg;",
"const char *VAR_3;",
"int VAR_4 = sizeof(*mcfg) + 1 * sizeof(mcfg->allocation[0]);",
"mcfg = acpi_data_push(VAR_0, VAR_4);",
"mcfg->allocation[0].address = cpu_to_le64(VAR_2->mcfg_base);",
"mcfg->allocation[0].pci_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
]
] |
21,199 | static void ide_resize_cb(void *opaque)
{
IDEState *s = opaque;
uint64_t nb_sectors;
if (!s->identify_set) {
return;
}
bdrv_get_geometry(s->bs, &nb_sectors);
s->nb_sectors = nb_sectors;
/* Update the identify data buffer. */
if (s->drive_kind == IDE_CFATA) {
... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void ide_resize_cb(void *opaque)
{
IDEState *s = opaque;
uint64_t nb_sectors;
if (!s->identify_set) {
return;
}
bdrv_get_geometry(s->bs, &nb_sectors);
s->nb_sectors = nb_sectors;
if (s->drive_kind == IDE_CFATA) {
ide_cfata_identify_size(s);
}... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
IDEState *s = VAR_0;
uint64_t nb_sectors;
if (!s->identify_set) {
return;
}
bdrv_get_geometry(s->bs, &nb_sectors);
s->nb_sectors = nb_sectors;
if (s->drive_kind == IDE_CFATA) {
ide_cfata_identify_size(s);
} else {
... | [
"static void FUNC_0(void *VAR_0)\n{",
"IDEState *s = VAR_0;",
"uint64_t nb_sectors;",
"if (!s->identify_set) {",
"return;",
"}",
"bdrv_get_geometry(s->bs, &nb_sectors);",
"s->nb_sectors = nb_sectors;",
"if (s->drive_kind == IDE_CFATA) {",
"ide_cfata_identify_size(s);",
"} else {",
"assert(s->d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
21,201 | static void reset_all_temps(int nb_temps)
{
int i;
for (i = 0; i < nb_temps; i++) {
temps[i].state = TCG_TEMP_UNDEF;
temps[i].mask = -1;
}
}
| false | qemu | 1208d7dd5fddc1fbd98de800d17429b4e5578848 | static void reset_all_temps(int nb_temps)
{
int i;
for (i = 0; i < nb_temps; i++) {
temps[i].state = TCG_TEMP_UNDEF;
temps[i].mask = -1;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < VAR_0; VAR_1++) {
temps[VAR_1].state = TCG_TEMP_UNDEF;
temps[VAR_1].mask = -1;
}
}
| [
"static void FUNC_0(int VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < VAR_0; VAR_1++) {",
"temps[VAR_1].state = TCG_TEMP_UNDEF;",
"temps[VAR_1].mask = -1;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
21,203 | static inline void tcg_out_tlb_load(TCGContext *s, TCGReg addrlo, TCGReg addrhi,
int mem_index, TCGMemOp opc,
tcg_insn_unit **label_ptr, int which)
{
const TCGReg r0 = TCG_REG_L0;
const TCGReg r1 = TCG_REG_L1;
TCGType ttype = TCG_... | false | qemu | 1f00b27f17518a1bcb4cedca49eaec96a4d560bd | static inline void tcg_out_tlb_load(TCGContext *s, TCGReg addrlo, TCGReg addrhi,
int mem_index, TCGMemOp opc,
tcg_insn_unit **label_ptr, int which)
{
const TCGReg r0 = TCG_REG_L0;
const TCGReg r1 = TCG_REG_L1;
TCGType ttype = TCG_... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, TCGReg VAR_2,
int VAR_3, TCGMemOp VAR_4,
tcg_insn_unit **VAR_5, int VAR_6)
{
const TCGReg VAR_7 = TCG_REG_L0;
const TCGReg VAR_8 = TCG_REG_L1;
TCGType ttype = TCG_TYPE_I32... | [
"static inline void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, TCGReg VAR_2,\nint VAR_3, TCGMemOp VAR_4,\ntcg_insn_unit **VAR_5, int VAR_6)\n{",
"const TCGReg VAR_7 = TCG_REG_L0;",
"const TCGReg VAR_8 = TCG_REG_L1;",
"TCGType ttype = TCG_TYPE_I32;",
"TCGType tlbtype = TCG_TYPE_I32;",
"int VAR_9 = 0, VAR_10 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
21,204 | uint64_t helper_load_fpcr (void)
{
uint64_t ret = 0;
#ifdef CONFIG_SOFTFLOAT
ret |= env->fp_status.float_exception_flags << 52;
if (env->fp_status.float_exception_flags)
ret |= 1ULL << 63;
env->ipr[IPR_EXC_SUM] &= ~0x3E:
env->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_flags <... | false | qemu | ba0e276db4b51bd2255a5d5ff8902c70d32ade40 | uint64_t helper_load_fpcr (void)
{
uint64_t ret = 0;
#ifdef CONFIG_SOFTFLOAT
ret |= env->fp_status.float_exception_flags << 52;
if (env->fp_status.float_exception_flags)
ret |= 1ULL << 63;
env->ipr[IPR_EXC_SUM] &= ~0x3E:
env->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_flags <... | {
"code": [],
"line_no": []
} | uint64_t FUNC_0 (void)
{
uint64_t ret = 0;
#ifdef CONFIG_SOFTFLOAT
ret |= env->fp_status.float_exception_flags << 52;
if (env->fp_status.float_exception_flags)
ret |= 1ULL << 63;
env->ipr[IPR_EXC_SUM] &= ~0x3E:
env->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_flags << 1;
#end... | [
"uint64_t FUNC_0 (void)\n{",
"uint64_t ret = 0;",
"#ifdef CONFIG_SOFTFLOAT\nret |= env->fp_status.float_exception_flags << 52;",
"if (env->fp_status.float_exception_flags)\nret |= 1ULL << 63;",
"env->ipr[IPR_EXC_SUM] &= ~0x3E:\nenv->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_flags << 1;",
"#endif\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
... |
21,205 | static void common_end(SnowContext *s){
av_freep(&s->spatial_dwt_buffer);
av_freep(&s->mb_band.buf);
av_freep(&s->mv_band[0].buf);
av_freep(&s->mv_band[1].buf);
av_freep(&s->m.me.scratchpad);
av_freep(&s->m.me.map);
av_freep(&s->m.me.score_map);
av_freep(&s->mb_type);
... | false | FFmpeg | 155ec6edf82692bcf3a5f87d2bc697404f4e5aaf | static void common_end(SnowContext *s){
av_freep(&s->spatial_dwt_buffer);
av_freep(&s->mb_band.buf);
av_freep(&s->mv_band[0].buf);
av_freep(&s->mv_band[1].buf);
av_freep(&s->m.me.scratchpad);
av_freep(&s->m.me.map);
av_freep(&s->m.me.score_map);
av_freep(&s->mb_type);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(SnowContext *VAR_0){
av_freep(&VAR_0->spatial_dwt_buffer);
av_freep(&VAR_0->mb_band.buf);
av_freep(&VAR_0->mv_band[0].buf);
av_freep(&VAR_0->mv_band[1].buf);
av_freep(&VAR_0->m.me.scratchpad);
av_freep(&VAR_0->m.me.map);
av_freep(&VAR_0->m.me.score_map);
... | [
"static void FUNC_0(SnowContext *VAR_0){",
"av_freep(&VAR_0->spatial_dwt_buffer);",
"av_freep(&VAR_0->mb_band.buf);",
"av_freep(&VAR_0->mv_band[0].buf);",
"av_freep(&VAR_0->mv_band[1].buf);",
"av_freep(&VAR_0->m.me.scratchpad);",
"av_freep(&VAR_0->m.me.map);",
"av_freep(&VAR_0->m.me.score_map);",
"a... | [
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
]
] |
21,206 | static void imx_ccm_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
IMXCCMState *s = (IMXCCMState *)opaque;
DPRINTF("write(offset=%x, value = %x)\n",
offset >> 2, (unsigned int)value);
switch (offset >> 2) {
case 0:
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void imx_ccm_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
IMXCCMState *s = (IMXCCMState *)opaque;
DPRINTF("write(offset=%x, value = %x)\n",
offset >> 2, (unsigned int)value);
switch (offset >> 2) {
case 0:
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
IMXCCMState *s = (IMXCCMState *)VAR_0;
DPRINTF("write(VAR_1=%x, VAR_2 = %x)\n",
VAR_1 >> 2, (unsigned int)VAR_2);
switch (VAR_1 >> 2) {
case 0:
s->ccmr = CC... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"IMXCCMState *s = (IMXCCMState *)VAR_0;",
"DPRINTF(\"write(VAR_1=%x, VAR_2 = %x)\\n\",\nVAR_1 >> 2, (unsigned int)VAR_2);",
"switch (VAR_1 >> 2) {",
"case 0:\ns->ccmr = CCMR_FPMF | (VAR_2 & 0x3b6fdfff);",
"bre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51... |
21,207 | static void dump_regs(TCGContext *s)
{
TCGTemp *ts;
int i;
char buf[64];
for(i = 0; i < s->nb_temps; i++) {
ts = &s->temps[i];
printf(" %10s: ", tcg_get_arg_str_idx(s, buf, sizeof(buf), i));
switch(ts->val_type) {
case TEMP_VAL_REG:
printf("%s", t... | false | qemu | b3a62939561e07bc34493444fa926b6137cba4e8 | static void dump_regs(TCGContext *s)
{
TCGTemp *ts;
int i;
char buf[64];
for(i = 0; i < s->nb_temps; i++) {
ts = &s->temps[i];
printf(" %10s: ", tcg_get_arg_str_idx(s, buf, sizeof(buf), i));
switch(ts->val_type) {
case TEMP_VAL_REG:
printf("%s", t... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0)
{
TCGTemp *ts;
int VAR_1;
char VAR_2[64];
for(VAR_1 = 0; VAR_1 < VAR_0->nb_temps; VAR_1++) {
ts = &VAR_0->temps[VAR_1];
printf(" %10s: ", tcg_get_arg_str_idx(VAR_0, VAR_2, sizeof(VAR_2), VAR_1));
switch(ts->val_type) {
cas... | [
"static void FUNC_0(TCGContext *VAR_0)\n{",
"TCGTemp *ts;",
"int VAR_1;",
"char VAR_2[64];",
"for(VAR_1 = 0; VAR_1 < VAR_0->nb_temps; VAR_1++) {",
"ts = &VAR_0->temps[VAR_1];",
"printf(\" %10s: \", tcg_get_arg_str_idx(VAR_0, VAR_2, sizeof(VAR_2), VAR_1));",
"switch(ts->val_type) {",
"case TEMP_VAL_... | [
0,
0,
0,
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
],
[... |
21,208 | static int pci_piix3_xen_ide_unplug(DeviceState *dev)
{
PCIDevice *pci_dev;
PCIIDEState *pci_ide;
DriveInfo *di;
int i = 0;
pci_dev = DO_UPCAST(PCIDevice, qdev, dev);
pci_ide = DO_UPCAST(PCIIDEState, dev, pci_dev);
for (; i < 3; i++) {
di = drive_get_by_index(IF_IDE, i);... | false | qemu | fa879d62eb51253d00b6920ce1d1d9d261370a49 | static int pci_piix3_xen_ide_unplug(DeviceState *dev)
{
PCIDevice *pci_dev;
PCIIDEState *pci_ide;
DriveInfo *di;
int i = 0;
pci_dev = DO_UPCAST(PCIDevice, qdev, dev);
pci_ide = DO_UPCAST(PCIIDEState, dev, pci_dev);
for (; i < 3; i++) {
di = drive_get_by_index(IF_IDE, i);... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0)
{
PCIDevice *pci_dev;
PCIIDEState *pci_ide;
DriveInfo *di;
int VAR_1 = 0;
pci_dev = DO_UPCAST(PCIDevice, qdev, VAR_0);
pci_ide = DO_UPCAST(PCIIDEState, VAR_0, pci_dev);
for (; VAR_1 < 3; VAR_1++) {
di = drive_get_by_index(IF_IDE, VAR... | [
"static int FUNC_0(DeviceState *VAR_0)\n{",
"PCIDevice *pci_dev;",
"PCIIDEState *pci_ide;",
"DriveInfo *di;",
"int VAR_1 = 0;",
"pci_dev = DO_UPCAST(PCIDevice, qdev, VAR_0);",
"pci_ide = DO_UPCAST(PCIIDEState, VAR_0, pci_dev);",
"for (; VAR_1 < 3; VAR_1++) {",
"di = drive_get_by_index(IF_IDE, VAR_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
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
21,209 | int get_segment64(CPUPPCState *env, mmu_ctx_t *ctx,
target_ulong eaddr, int rw, int type)
{
hwaddr hash;
target_ulong vsid;
int pr, target_page_bits;
int ret, ret2;
pr = msr_pr;
ctx->eaddr = eaddr;
ppc_slb_t *slb;
target_ulong pageaddr;
int segment_bits... | false | qemu | 629bd516fda67c95ba1c7d1393bacb9e68ea0712 | int get_segment64(CPUPPCState *env, mmu_ctx_t *ctx,
target_ulong eaddr, int rw, int type)
{
hwaddr hash;
target_ulong vsid;
int pr, target_page_bits;
int ret, ret2;
pr = msr_pr;
ctx->eaddr = eaddr;
ppc_slb_t *slb;
target_ulong pageaddr;
int segment_bits... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,
target_ulong VAR_2, int VAR_3, int VAR_4)
{
hwaddr hash;
target_ulong vsid;
int VAR_5, VAR_6;
int VAR_7, VAR_8;
VAR_5 = msr_pr;
VAR_1->VAR_2 = VAR_2;
ppc_slb_t *slb;
target_ulong pageaddr;
int VAR_9;
... | [
"int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{",
"hwaddr hash;",
"target_ulong vsid;",
"int VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"VAR_5 = msr_pr;",
"VAR_1->VAR_2 = VAR_2;",
"ppc_slb_t *slb;",
"target_ulong pageaddr;",
"int VAR_9;",
"LOG_MMU(\"Chec... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,210 | static uint64_t cirrus_vga_mem_read(void *opaque,
target_phys_addr_t addr,
uint32_t size)
{
CirrusVGAState *s = opaque;
unsigned bank_index;
unsigned bank_offset;
uint32_t val;
if ((s->vga.sr[0x07] & 0x01) == 0) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t cirrus_vga_mem_read(void *opaque,
target_phys_addr_t addr,
uint32_t size)
{
CirrusVGAState *s = opaque;
unsigned bank_index;
unsigned bank_offset;
uint32_t val;
if ((s->vga.sr[0x07] & 0x01) == 0) {
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque,
target_phys_addr_t addr,
uint32_t size)
{
CirrusVGAState *s = opaque;
unsigned VAR_0;
unsigned VAR_1;
uint32_t val;
if ((s->vga.sr[0x07] & 0x01) == 0) {
return vga_mem_read... | [
"static uint64_t FUNC_0(void *opaque,\ntarget_phys_addr_t addr,\nuint32_t size)\n{",
"CirrusVGAState *s = opaque;",
"unsigned VAR_0;",
"unsigned VAR_1;",
"uint32_t val;",
"if ((s->vga.sr[0x07] & 0x01) == 0) {",
"return vga_mem_readb(&s->vga, addr);",
"}",
"if (addr < 0x10000) {",
"VAR_0 = addr >> ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,211 | static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(dev);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
uint64_t ram_size;
const char *boot_cpu = s->boot_cpu ? s->boot_cpu : "apu-cpu[0]";
ram_addr_t ddr_low_size, ddr_high_size... | false | qemu | 6ed92b14f610c78aea52b087d6bdc59a3f2de72a | static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(dev);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
uint64_t ram_size;
const char *boot_cpu = s->boot_cpu ? s->boot_cpu : "apu-cpu[0]";
ram_addr_t ddr_low_size, ddr_high_size... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(VAR_0);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
uint64_t ram_size;
const char *VAR_2 = s->VAR_2 ? s->VAR_2 : "apu-cpu[0]";
ram_addr_t ddr_low_size, ddr_high_size;
qemu_irq g... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"XlnxZynqMPState *s = XLNX_ZYNQMP(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"uint8_t i;",
"uint64_t ram_size;",
"const char *VAR_2 = s->VAR_2 ? s->VAR_2 : \"apu-cpu[0]\";",
"ram_addr_t ddr_low_size, ddr_high_size;",
"qem... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
41
],
[
43
],
[
45
],
[
49,
51,
53
],
[
55,
57,
59
],
[
61
],
[
65
... |
21,212 | static void virtio_pci_dc_realize(DeviceState *qdev, Error **errp)
{
VirtioPCIClass *vpciklass = VIRTIO_PCI_GET_CLASS(qdev);
VirtIOPCIProxy *proxy = VIRTIO_PCI(qdev);
PCIDevice *pci_dev = &proxy->pci_dev;
if (!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_PCIE) &&
!(proxy->flags & VIRTIO_PCI_F... | false | qemu | 9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5 | static void virtio_pci_dc_realize(DeviceState *qdev, Error **errp)
{
VirtioPCIClass *vpciklass = VIRTIO_PCI_GET_CLASS(qdev);
VirtIOPCIProxy *proxy = VIRTIO_PCI(qdev);
PCIDevice *pci_dev = &proxy->pci_dev;
if (!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_PCIE) &&
!(proxy->flags & VIRTIO_PCI_F... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
VirtioPCIClass *vpciklass = VIRTIO_PCI_GET_CLASS(VAR_0);
VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);
PCIDevice *pci_dev = &proxy->pci_dev;
if (!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_PCIE) &&
!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"VirtioPCIClass *vpciklass = VIRTIO_PCI_GET_CLASS(VAR_0);",
"VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);",
"PCIDevice *pci_dev = &proxy->pci_dev;",
"if (!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_PCIE) &&\n!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
21,213 | static void v9fs_symlink(void *opaque)
{
V9fsPDU *pdu = opaque;
V9fsString name;
V9fsString symname;
V9fsString fullname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat stbuf;
int32_t dfid;
int err = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&fullnam... | false | qemu | 02cb7f3a256517cbf3136caff2863fbafc57b540 | static void v9fs_symlink(void *opaque)
{
V9fsPDU *pdu = opaque;
V9fsString name;
V9fsString symname;
V9fsString fullname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat stbuf;
int32_t dfid;
int err = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&fullnam... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
V9fsPDU *pdu = VAR_0;
V9fsString name;
V9fsString symname;
V9fsString fullname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat VAR_1;
int32_t dfid;
int VAR_2 = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&fullname);
... | [
"static void FUNC_0(void *VAR_0)\n{",
"V9fsPDU *pdu = VAR_0;",
"V9fsString name;",
"V9fsString symname;",
"V9fsString fullname;",
"V9fsFidState *dfidp;",
"V9fsQID qid;",
"struct stat VAR_1;",
"int32_t dfid;",
"int VAR_2 = 0;",
"gid_t gid;",
"size_t offset = 7;",
"v9fs_string_init(&fullname);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
... |
21,214 | static void s390_pci_generate_error_event(uint16_t pec, uint32_t fh,
uint32_t fid, uint64_t faddr,
uint32_t e)
{
s390_pci_generate_event(1, pec, fh, fid, faddr, e);
}
| false | qemu | 5d1abf234462d13bef3617cc2c55b6815703ddf2 | static void s390_pci_generate_error_event(uint16_t pec, uint32_t fh,
uint32_t fid, uint64_t faddr,
uint32_t e)
{
s390_pci_generate_event(1, pec, fh, fid, faddr, e);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint16_t VAR_0, uint32_t VAR_1,
uint32_t VAR_2, uint64_t VAR_3,
uint32_t VAR_4)
{
s390_pci_generate_event(1, VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);
}
| [
"static void FUNC_0(uint16_t VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, uint64_t VAR_3,\nuint32_t VAR_4)\n{",
"s390_pci_generate_event(1, VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
]
] |
21,216 | int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
int... | false | FFmpeg | b9589f5a770ec2357ab7920a5fabe8510b8601f9 | int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
int... | {
"code": [],
"line_no": []
} | int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
int planar, chann... | [
"int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx,\nAVFrame *frame,\nint *got_frame_ptr,\nAVPacket *avpkt)\n{",
"AVCodecInternal *avci = avctx->internal;",
"int planar, channels;",
"int ret = 0;",
"*got_frame_ptr = 0;",
"avctx->pkt = avpkt;",
"if (!avpkt->data && avpkt->size) {",
"av_log(avctx, A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
45,
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
21,217 | struct HCIInfo *hci_init(const char *str)
{
char *endp;
struct bt_scatternet_s *vlan = 0;
if (!strcmp(str, "null"))
/* null */
return &null_hci;
else if (!strncmp(str, "host", 4) && (str[4] == '\0' || str[4] == ':'))
/* host[:hciN] */
return bt_host_hci(str[4] ... | false | qemu | bf937a7965c1d1a6dce4f615d0ead2e2ab505004 | struct HCIInfo *hci_init(const char *str)
{
char *endp;
struct bt_scatternet_s *vlan = 0;
if (!strcmp(str, "null"))
return &null_hci;
else if (!strncmp(str, "host", 4) && (str[4] == '\0' || str[4] == ':'))
return bt_host_hci(str[4] ? str + 5 : "hci0");
e... | {
"code": [],
"line_no": []
} | struct HCIInfo *FUNC_0(const char *VAR_0)
{
char *VAR_1;
struct bt_scatternet_s *VAR_2 = 0;
if (!strcmp(VAR_0, "null"))
return &null_hci;
else if (!strncmp(VAR_0, "host", 4) && (VAR_0[4] == '\0' || VAR_0[4] == ':'))
return bt_host_hci(VAR_0[4] ? VAR_0 + 5 : "... | [
"struct HCIInfo *FUNC_0(const char *VAR_0)\n{",
"char *VAR_1;",
"struct bt_scatternet_s *VAR_2 = 0;",
"if (!strcmp(VAR_0, \"null\"))\nreturn &null_hci;",
"else if (!strncmp(VAR_0, \"host\", 4) && (VAR_0[4] == '\\0' || VAR_0[4] == ':'))\nreturn bt_host_hci(VAR_0[4] ? VAR_0 + 5 : \"hci0\");",
"else if (!str... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
15
],
[
17,
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
51
],
[
55
],
[
57... |
21,220 | static int read_matrix_params(MLPDecodeContext *m, SubStream *s, GetBitContext *gbp)
{
unsigned int mat, ch;
s->num_primitive_matrices = get_bits(gbp, 4);
m->matrix_changed++;
for (mat = 0; mat < s->num_primitive_matrices; mat++) {
int frac_bits, max_chan;
s->matrix_out_ch[mat... | false | FFmpeg | 5d9e4eaa6d991718b24c7ce24318ee91419f593a | static int read_matrix_params(MLPDecodeContext *m, SubStream *s, GetBitContext *gbp)
{
unsigned int mat, ch;
s->num_primitive_matrices = get_bits(gbp, 4);
m->matrix_changed++;
for (mat = 0; mat < s->num_primitive_matrices; mat++) {
int frac_bits, max_chan;
s->matrix_out_ch[mat... | {
"code": [],
"line_no": []
} | static int FUNC_0(MLPDecodeContext *VAR_0, SubStream *VAR_1, GetBitContext *VAR_2)
{
unsigned int VAR_3, VAR_4;
VAR_1->num_primitive_matrices = get_bits(VAR_2, 4);
VAR_0->matrix_changed++;
for (VAR_3 = 0; VAR_3 < VAR_1->num_primitive_matrices; VAR_3++) {
int frac_bits, max_chan;
... | [
"static int FUNC_0(MLPDecodeContext *VAR_0, SubStream *VAR_1, GetBitContext *VAR_2)\n{",
"unsigned int VAR_3, VAR_4;",
"VAR_1->num_primitive_matrices = get_bits(VAR_2, 4);",
"VAR_0->matrix_changed++;",
"for (VAR_3 = 0; VAR_3 < VAR_1->num_primitive_matrices; VAR_3++) {",
"int frac_bits, max_chan;",
"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
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
... |
21,221 | static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int ret;
gsm_signal *samples = (gsm_signal *)frame->data[0];
struct gsm_state *state = avctx->priv_data;
if ((ret = ff_alloc_packet2(avctx, avpkt, av... | false | FFmpeg | bcaf64b605442e1622d16da89d4ec0e7730b8a8c | static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int ret;
gsm_signal *samples = (gsm_signal *)frame->data[0];
struct gsm_state *state = avctx->priv_data;
if ((ret = ff_alloc_packet2(avctx, avpkt, av... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
int VAR_4;
gsm_signal *samples = (gsm_signal *)VAR_2->data[0];
struct gsm_state *VAR_5 = VAR_0->priv_data;
if ((VAR_4 = ff_alloc_packet2(VAR_0, VAR_1, VAR_0->block_align))... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"int VAR_4;",
"gsm_signal *samples = (gsm_signal *)VAR_2->data[0];",
"struct gsm_state *VAR_5 = VAR_0->priv_data;",
"if ((VAR_4 = ff_alloc_packet2(VAR_0, VAR_1, VAR_0->block_align)))\nreturn VAR_4;",
"switch... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
]
] |
21,223 | static void ff_h264_idct_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride)
{
int dc = (block[0] + 32) >> 6;
__asm__ volatile(
"movd %0, %%mm0 \n\t"
"pshufw $0, %%mm0, %%mm0 \n\t"
"pxor %%mm1, %%mm1 \n\t"
"psubw %%mm0, %%mm1 \n\t"
"packuswb ... | false | FFmpeg | 1d16a1cf99488f16492b1bb48e023f4da8377e07 | static void ff_h264_idct_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride)
{
int dc = (block[0] + 32) >> 6;
__asm__ volatile(
"movd %0, %%mm0 \n\t"
"pshufw $0, %%mm0, %%mm0 \n\t"
"pxor %%mm1, %%mm1 \n\t"
"psubw %%mm0, %%mm1 \n\t"
"packuswb ... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int16_t *VAR_1, int VAR_2)
{
int VAR_3 = (VAR_1[0] + 32) >> 6;
__asm__ volatile(
"movd %0, %%mm0 \n\t"
"pshufw $0, %%mm0, %%mm0 \n\t"
"pxor %%mm1, %%mm1 \n\t"
"psubw %%mm0, %%mm1 \n\t"
"packuswb %%mm0, %%mm0... | [
"static void FUNC_0(uint8_t *VAR_0, int16_t *VAR_1, int VAR_2)\n{",
"int VAR_3 = (VAR_1[0] + 32) >> 6;",
"__asm__ volatile(\n\"movd %0, %%mm0 \\n\\t\"\n\"pshufw $0, %%mm0, %%mm0 \\n\\t\"\n\"pxor %%mm1, %%mm1 \\n\\t\"\n\"psubw %%mm0, %%mm1 \\n\\t\"\n\"packuswb %%mm0, %%mm0 \\n\\t\"\n\"packu... | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15,
17,
19,
21,
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67
],
[
69
]
] |
21,224 | void ff_xvmc_field_end(MpegEncContext *s)
{
struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2];
assert(render);
if (render->filled_mv_blocks_num > 0)
ff_mpeg_draw_horiz_band(s, 0, 0);
}
| false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | void ff_xvmc_field_end(MpegEncContext *s)
{
struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2];
assert(render);
if (render->filled_mv_blocks_num > 0)
ff_mpeg_draw_horiz_band(s, 0, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
struct xvmc_pix_fmt *VAR_1 = (struct xvmc_pix_fmt*)VAR_0->current_picture.f->data[2];
assert(VAR_1);
if (VAR_1->filled_mv_blocks_num > 0)
ff_mpeg_draw_horiz_band(VAR_0, 0, 0);
}
| [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"struct xvmc_pix_fmt *VAR_1 = (struct xvmc_pix_fmt*)VAR_0->current_picture.f->data[2];",
"assert(VAR_1);",
"if (VAR_1->filled_mv_blocks_num > 0)\nff_mpeg_draw_horiz_band(VAR_0, 0, 0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
]
] |
21,225 | static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y,
const uint8_t *src, int src_size)
{
int width, height;
int hdr, zsize, npal, tidx = -1, ret;
int i, j;
const uint8_t *src_end = src + src_size;
uint8_t pal[768], transp[3];
uLongf dlen = (c->... | false | FFmpeg | 2960576378d17d71cc8dccc926352ce568b5eec1 | static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y,
const uint8_t *src, int src_size)
{
int width, height;
int hdr, zsize, npal, tidx = -1, ret;
int i, j;
const uint8_t *src_end = src + src_size;
uint8_t pal[768], transp[3];
uLongf dlen = (c->... | {
"code": [],
"line_no": []
} | static int FUNC_0(G2MContext *VAR_0, int VAR_1, int VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
int VAR_7, VAR_8, VAR_9, VAR_10 = -1, VAR_11;
int VAR_12, VAR_22;
const uint8_t *VAR_14 = VAR_3 + VAR_4;
uint8_t pal[768], transp[3];
uLongf dlen =... | [
"static int FUNC_0(G2MContext *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"int VAR_7, VAR_8, VAR_9, VAR_10 = -1, VAR_11;",
"int VAR_12, VAR_22;",
"const uint8_t *VAR_14 = VAR_3 + VAR_4;",
"uint8_t pal[768], transp[3];",
"uLongf dlen = (VAR_0->tile_width + 1)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
31,
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
21,226 | static void vnc_dpy_update(DisplayChangeListener *dcl,
int x, int y, int w, int h)
{
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
struct VncSurface *s = &vd->guest;
int width = surface_width(vd->ds);
int height = surface_height(vd->ds);
/* this is needed t... | true | qemu | bea60dd7679364493a0d7f5b54316c767cf894ef | static void vnc_dpy_update(DisplayChangeListener *dcl,
int x, int y, int w, int h)
{
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
struct VncSurface *s = &vd->guest;
int width = surface_width(vd->ds);
int height = surface_height(vd->ds);
w += (x % V... | {
"code": [
"static void vnc_dpy_update(DisplayChangeListener *dcl,",
" int x, int y, int w, int h)",
" VncDisplay *vd = container_of(dcl, VncDisplay, dcl);",
" struct VncSurface *s = &vd->guest;",
" int width = surface_width(vd->ds);",
" int height = surf... | static void FUNC_0(DisplayChangeListener *VAR_0,
int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
VncDisplay *vd = container_of(VAR_0, VncDisplay, VAR_0);
struct VncSurface *VAR_5 = &vd->guest;
int VAR_6 = surface_width(vd->ds);
int VAR_7 = surface_height(vd->ds);
... | [
"static void FUNC_0(DisplayChangeListener *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"VncDisplay *vd = container_of(VAR_0, VncDisplay, VAR_0);",
"struct VncSurface *VAR_5 = &vd->guest;",
"int VAR_6 = surface_width(vd->ds);",
"int VAR_7 = surface_height(vd->ds);",
"VAR_3 += (VAR_1 % VNC_DIRT... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
]
] |
21,227 | static int channelmap_config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
ChannelMapContext *s = ctx->priv;
int i, err = 0;
const char *channel_name;
char layout_name[256];
if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {
for (i = 0; i < s-... | true | FFmpeg | aafed1175df76603e94c99a7748968780d6548d2 | static int channelmap_config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
ChannelMapContext *s = ctx->priv;
int i, err = 0;
const char *channel_name;
char layout_name[256];
if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {
for (i = 0; i < s-... | {
"code": [
" if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {",
" for (i = 0; i < s->nch; i++) {",
" if (s->map[i].in_channel_idx < 0) {",
" av_get_channel_layout_string(layout_name, sizeof(layout_name),",
" ... | static int FUNC_0(AVFilterLink *VAR_0)
{
AVFilterContext *ctx = VAR_0->dst;
ChannelMapContext *s = ctx->priv;
int VAR_1, VAR_2 = 0;
const char *VAR_3;
char VAR_4[256];
if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {
for (VAR_1 = 0; VAR_1 < s->nch; VAR_1++) {
... | [
"static int FUNC_0(AVFilterLink *VAR_0)\n{",
"AVFilterContext *ctx = VAR_0->dst;",
"ChannelMapContext *s = ctx->priv;",
"int VAR_1, VAR_2 = 0;",
"const char *VAR_3;",
"char VAR_4[256];",
"if (s->mode == MAP_PAIR_STR_INT || s->mode == MAP_PAIR_STR_STR) {",
"for (VAR_1 = 0; VAR_1 < s->nch; VAR_1++) {",
... | [
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
1,
0,
1,
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
],
[
49
... |
21,228 | static void decode_format80(const unsigned char *src, int src_size,
unsigned char *dest, int dest_size, int check_size) {
int src_index = 0;
int dest_index = 0;
int count;
int src_pos;
unsigned char color;
int i;
while (src_index < src_size) {
av_dlog(NULL, " ... | true | FFmpeg | 6d45702f7f257c1cfcd3ce3287bf258854528a4a | static void decode_format80(const unsigned char *src, int src_size,
unsigned char *dest, int dest_size, int check_size) {
int src_index = 0;
int dest_index = 0;
int count;
int src_pos;
unsigned char color;
int i;
while (src_index < src_size) {
av_dlog(NULL, " ... | {
"code": [],
"line_no": []
} | static void FUNC_0(const unsigned char *VAR_0, int VAR_1,
unsigned char *VAR_2, int VAR_3, int VAR_4) {
int VAR_5 = 0;
int VAR_6 = 0;
int VAR_7;
int VAR_8;
unsigned char VAR_9;
int VAR_10;
while (VAR_5 < VAR_1) {
av_dlog(NULL, " opcode %02X: ", VAR_0[VAR_5]);
... | [
"static void FUNC_0(const unsigned char *VAR_0, int VAR_1,\nunsigned char *VAR_2, int VAR_3, int VAR_4) {",
"int VAR_5 = 0;",
"int VAR_6 = 0;",
"int VAR_7;",
"int VAR_8;",
"unsigned char VAR_9;",
"int VAR_10;",
"while (VAR_5 < VAR_1) {",
"av_dlog(NULL, \" opcode %02X: \", VAR_0[VAR_5]);",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
21
],
[
25
],
[
31,
36
],
[
38,
40
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61... |
21,229 | void do_info_roms(Monitor *mon, const QDict *qdict)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (!rom->fw_file) {
monitor_printf(mon, "addr=" TARGET_FMT_plx
" size=0x%06zx mem=%s name=\"%s\"\n",
rom->addr, rom->romsize,
... | true | qemu | 04920fc0faa4760f9c4fc0e73b992b768099be70 | void do_info_roms(Monitor *mon, const QDict *qdict)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (!rom->fw_file) {
monitor_printf(mon, "addr=" TARGET_FMT_plx
" size=0x%06zx mem=%s name=\"%s\"\n",
rom->addr, rom->romsize,
... | {
"code": [
" if (!rom->fw_file) {"
],
"line_no": [
11
]
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (!rom->fw_file) {
monitor_printf(VAR_0, "addr=" TARGET_FMT_plx
" size=0x%06zx mem=%s name=\"%s\"\n",
rom->addr, rom->romsize,
... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"Rom *rom;",
"QTAILQ_FOREACH(rom, &roms, next) {",
"if (!rom->fw_file) {",
"monitor_printf(VAR_0, \"addr=\" TARGET_FMT_plx\n\" size=0x%06zx mem=%s name=\\\"%s\\\"\\n\",\nrom->addr, rom->romsize,\nrom->isrom ? \"rom\" : \"ram\",\nrom->name);",
"} else {... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25,
27,
29,
31,
33,
35
],
[
37
],
[
39
],
[
41
]
] |
21,231 | static void migration_end(void)
{
if (migration_bitmap) {
memory_global_dirty_log_stop();
g_free(migration_bitmap);
migration_bitmap = NULL;
}
if (XBZRLE.cache) {
cache_fini(XBZRLE.cache);
g_free(XBZRLE.cache);
g_free(XBZRLE.encoded_buf);
... | true | qemu | f6c6483b259a2395ee44cfa966f622e0f2dbe2ae | static void migration_end(void)
{
if (migration_bitmap) {
memory_global_dirty_log_stop();
g_free(migration_bitmap);
migration_bitmap = NULL;
}
if (XBZRLE.cache) {
cache_fini(XBZRLE.cache);
g_free(XBZRLE.cache);
g_free(XBZRLE.encoded_buf);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
if (migration_bitmap) {
memory_global_dirty_log_stop();
g_free(migration_bitmap);
migration_bitmap = NULL;
}
if (XBZRLE.cache) {
cache_fini(XBZRLE.cache);
g_free(XBZRLE.cache);
g_free(XBZRLE.encoded_buf);
g_free(... | [
"static void FUNC_0(void)\n{",
"if (migration_bitmap) {",
"memory_global_dirty_log_stop();",
"g_free(migration_bitmap);",
"migration_bitmap = NULL;",
"}",
"if (XBZRLE.cache) {",
"cache_fini(XBZRLE.cache);",
"g_free(XBZRLE.cache);",
"g_free(XBZRLE.encoded_buf);",
"g_free(XBZRLE.current_buf);",
... | [
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
],
[
34
],
[
36
]
] |
21,232 | static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
{
AVFilterContext *ctx = inlink->dst;
Stereo3DContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
AVFrame *out, *oleft, *oright, *ileft, *iright;
int out_off_left[4], out_off_right[4];
int i;
if (s->in.f... | false | FFmpeg | 10b16aee1bde611b8dd3dada970258f9d2aa1f1c | static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
{
AVFilterContext *ctx = inlink->dst;
Stereo3DContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
AVFrame *out, *oleft, *oright, *ileft, *iright;
int out_off_left[4], out_off_right[4];
int i;
if (s->in.f... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)
{
AVFilterContext *ctx = VAR_0->dst;
Stereo3DContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
AVFrame *out, *oleft, *oright, *ileft, *iright;
int VAR_2[4], VAR_3[4];
int VAR_4;
if (s->in.format == s->out.format... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{",
"AVFilterContext *ctx = VAR_0->dst;",
"Stereo3DContext *s = ctx->priv;",
"AVFilterLink *outlink = ctx->outputs[0];",
"AVFrame *out, *oleft, *oright, *ileft, *iright;",
"int VAR_2[4], VAR_3[4];",
"int VAR_4;",
"if (s->in.format == s->out.for... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,... |
21,233 | static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc,
int offset)
{
int8_t *start;
if (offset < 0 || pc->index - 13 < offset)
return 0;
start = pc->buffer + offset;
pu->pu_type = start[4];
pu->next_pu_offset = AV_RB32(start + 5);
... | false | FFmpeg | a849ebb54e187a70eabc69cbd1b1a342e6587ec3 | static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc,
int offset)
{
int8_t *start;
if (offset < 0 || pc->index - 13 < offset)
return 0;
start = pc->buffer + offset;
pu->pu_type = start[4];
pu->next_pu_offset = AV_RB32(start + 5);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(DiracParseUnit *VAR_0, DiracParseContext *VAR_1,
int VAR_2)
{
int8_t *start;
if (VAR_2 < 0 || VAR_1->index - 13 < VAR_2)
return 0;
start = VAR_1->buffer + VAR_2;
VAR_0->pu_type = start[4];
VAR_0->next_pu_offset = AV_RB32(start + 5)... | [
"static int FUNC_0(DiracParseUnit *VAR_0, DiracParseContext *VAR_1,\nint VAR_2)\n{",
"int8_t *start;",
"if (VAR_2 < 0 || VAR_1->index - 13 < VAR_2)\nreturn 0;",
"start = VAR_1->buffer + VAR_2;",
"VAR_0->pu_type = start[4];",
"VAR_0->next_pu_offset = AV_RB32(start + 5);",
"VAR_0->prev_pu_offset = AV_RB32... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
]
] |
21,234 | static void quantize_all(DCAEncContext *c)
{
int sample, band, ch;
for (sample = 0; sample < SUBBAND_SAMPLES; sample++)
for (band = 0; band < 32; band++)
for (ch = 0; ch < c->fullband_channels; ch++)
c->quantized[sample][band][ch] = quantize_value(c->subband[sample][b... | false | FFmpeg | a6191d098a03f94685ae4c072bfdf10afcd86223 | static void quantize_all(DCAEncContext *c)
{
int sample, band, ch;
for (sample = 0; sample < SUBBAND_SAMPLES; sample++)
for (band = 0; band < 32; band++)
for (ch = 0; ch < c->fullband_channels; ch++)
c->quantized[sample][band][ch] = quantize_value(c->subband[sample][b... | {
"code": [],
"line_no": []
} | static void FUNC_0(DCAEncContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
for (VAR_1 = 0; VAR_1 < SUBBAND_SAMPLES; VAR_1++)
for (VAR_2 = 0; VAR_2 < 32; VAR_2++)
for (VAR_3 = 0; VAR_3 < VAR_0->fullband_channels; VAR_3++)
VAR_0->quantized[VAR_1][VAR_2][VAR_3] = quantize_value... | [
"static void FUNC_0(DCAEncContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"for (VAR_1 = 0; VAR_1 < SUBBAND_SAMPLES; VAR_1++)",
"for (VAR_2 = 0; VAR_2 < 32; VAR_2++)",
"for (VAR_3 = 0; VAR_3 < VAR_0->fullband_channels; VAR_3++)",
"VAR_0->quantized[VAR_1][VAR_2][VAR_3] = quantize_value(VAR_0->subband[VAR_1... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
21,235 | static int video_thread(void *arg)
{
VideoState *is = arg;
AVPacket pkt1, *pkt = &pkt1;
int len1, got_picture;
AVFrame *frame= avcodec_alloc_frame();
double pts;
for(;;) {
while (is->paused && !is->videoq.abort_request) {
SDL_Delay(10);
}
if (pack... | false | FFmpeg | 6c7d3ead79af2de091ff74cb2e29770882cbae99 | static int video_thread(void *arg)
{
VideoState *is = arg;
AVPacket pkt1, *pkt = &pkt1;
int len1, got_picture;
AVFrame *frame= avcodec_alloc_frame();
double pts;
for(;;) {
while (is->paused && !is->videoq.abort_request) {
SDL_Delay(10);
}
if (pack... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
VideoState *is = VAR_0;
AVPacket pkt1, *pkt = &pkt1;
int VAR_1, VAR_2;
AVFrame *frame= avcodec_alloc_frame();
double VAR_3;
for(;;) {
while (is->paused && !is->videoq.abort_request) {
SDL_Delay(10);
}
if (packet_qu... | [
"static int FUNC_0(void *VAR_0)\n{",
"VideoState *is = VAR_0;",
"AVPacket pkt1, *pkt = &pkt1;",
"int VAR_1, VAR_2;",
"AVFrame *frame= avcodec_alloc_frame();",
"double VAR_3;",
"for(;;) {",
"while (is->paused && !is->videoq.abort_request) {",
"SDL_Delay(10);",
"}",
"if (packet_queue_get(&is->vide... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
49
],
[
51,
53,
55
... |
21,237 | static int nut_write_header(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
AVIOContext *bc = s->pb;
int i, j, ret;
nut->avf = s;
nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags);
if (nut->flags && s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
av_lo... | false | FFmpeg | 3a76d7f73d495c5af0968e83d96c075c27af3b5c | static int nut_write_header(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
AVIOContext *bc = s->pb;
int i, j, ret;
nut->avf = s;
nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags);
if (nut->flags && s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
av_lo... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
NUTContext *nut = VAR_0->priv_data;
AVIOContext *bc = VAR_0->pb;
int VAR_1, VAR_2, VAR_3;
nut->avf = VAR_0;
nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags);
if (nut->flags && VAR_0->strict_std_compliance > FF_COMPLIANCE_EXPERIMENT... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"NUTContext *nut = VAR_0->priv_data;",
"AVIOContext *bc = VAR_0->pb;",
"int VAR_1, VAR_2, VAR_3;",
"nut->avf = VAR_0;",
"nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags);",
"if (nut->flags && VAR_0->strict_std_compliance > FF_COMPLIANCE_EXPERIMEN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21,
23,
25,
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
21,239 | static void skip_input(DBEContext *s, int nb_words)
{
s->input += nb_words * s->word_bytes;
s->input_size -= nb_words;
}
| true | FFmpeg | 5e715b583dab85735660b15a8d217a69164675fe | static void skip_input(DBEContext *s, int nb_words)
{
s->input += nb_words * s->word_bytes;
s->input_size -= nb_words;
}
| {
"code": [
"static void skip_input(DBEContext *s, int nb_words)"
],
"line_no": [
1
]
} | static void FUNC_0(DBEContext *VAR_0, int VAR_1)
{
VAR_0->input += VAR_1 * VAR_0->word_bytes;
VAR_0->input_size -= VAR_1;
}
| [
"static void FUNC_0(DBEContext *VAR_0, int VAR_1)\n{",
"VAR_0->input += VAR_1 * VAR_0->word_bytes;",
"VAR_0->input_size -= VAR_1;",
"}"
] | [
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
21,240 | static void g364fb_screen_dump(void *opaque, const char *filename)
{
G364State *s = opaque;
int y, x;
uint8_t index;
uint8_t *data_buffer;
FILE *f;
if (s->depth != 8) {
error_report("g364: unknown guest depth %d", s->depth);
return;
}
f = fopen(filename, "wb");
if (!f... | true | qemu | e9a07334fb6ee08ddd61787c102d36e7e781efef | static void g364fb_screen_dump(void *opaque, const char *filename)
{
G364State *s = opaque;
int y, x;
uint8_t index;
uint8_t *data_buffer;
FILE *f;
if (s->depth != 8) {
error_report("g364: unknown guest depth %d", s->depth);
return;
}
f = fopen(filename, "wb");
if (!f... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const char *VAR_1)
{
G364State *s = VAR_0;
int VAR_2, VAR_3;
uint8_t index;
uint8_t *data_buffer;
FILE *f;
if (s->depth != 8) {
error_report("g364: unknown guest depth %d", s->depth);
return;
}
f = fopen(VAR_1, "wb");
if (!f)
re... | [
"static void FUNC_0(void *VAR_0, const char *VAR_1)\n{",
"G364State *s = VAR_0;",
"int VAR_2, VAR_3;",
"uint8_t index;",
"uint8_t *data_buffer;",
"FILE *f;",
"if (s->depth != 8) {",
"error_report(\"g364: unknown guest depth %d\", s->depth);",
"return;",
"}",
"f = fopen(VAR_1, \"wb\");",
"if (!... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13,
14
],
[
15
],
[
17,
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.