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 |
|---|---|---|---|---|---|---|---|---|---|---|
18,752 | static int parse_tag(AVFormatContext *s, const uint8_t *buf)
{
int genre;
if (!(buf[0] == 'T' &&
buf[1] == 'A' &&
buf[2] == 'G'))
return -1;
get_string(s, "title", buf + 3, 30);
get_string(s, "artist", buf + 33, 30);
get_string(s, "album", buf + 63, 30);
... | false | FFmpeg | 82f19afefe4f28db0e2eefbc2d06eee0def74a53 | static int parse_tag(AVFormatContext *s, const uint8_t *buf)
{
int genre;
if (!(buf[0] == 'T' &&
buf[1] == 'A' &&
buf[2] == 'G'))
return -1;
get_string(s, "title", buf + 3, 30);
get_string(s, "artist", buf + 33, 30);
get_string(s, "album", buf + 63, 30);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1)
{
int VAR_2;
if (!(VAR_1[0] == 'T' &&
VAR_1[1] == 'A' &&
VAR_1[2] == 'G'))
return -1;
get_string(VAR_0, "title", VAR_1 + 3, 30);
get_string(VAR_0, "artist", VAR_1 + 33, 30);
get_string(VAR_0, "... | [
"static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1)\n{",
"int VAR_2;",
"if (!(VAR_1[0] == 'T' &&\nVAR_1[1] == 'A' &&\nVAR_1[2] == 'G'))\nreturn -1;",
"get_string(VAR_0, \"title\", VAR_1 + 3, 30);",
"get_string(VAR_0, \"artist\", VAR_1 + 33, 30);",
"get_string(VAR_0, \"album\", VAR_1 + 6... | [
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
]
] |
18,754 | static void vnc_update(VncState *vs, int x, int y, int w, int h)
{
int i;
h += y;
/* round x down to ensure the loop only spans one 16-pixel block per,
iteration. otherwise, if (x % 16) != 0, the last iteration may span
two 16-pixel blocks but we only mark the first as dirty
*/... | true | qemu | 6baebed7698a37a0ac5168faf26023426b0ac940 | static void vnc_update(VncState *vs, int x, int y, int w, int h)
{
int i;
h += y;
w += (x % 16);
x -= (x % 16);
x = MIN(x, vs->serverds.width);
y = MIN(y, vs->serverds.height);
w = MIN(x + w, vs->serverds.width) - x;
h = MIN(h, vs->serverds.height);
for ... | {
"code": [
" x = MIN(x, vs->serverds.width);",
" y = MIN(y, vs->serverds.height);",
" w = MIN(x + w, vs->serverds.width) - x;",
" h = MIN(h, vs->serverds.height);",
" vnc_set_bit(vs->dirty_row[y], (x + i) / 16);"
],
"line_no": [
27,
29,
31,
33,
41
... | static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5;
VAR_4 += VAR_2;
VAR_3 += (VAR_1 % 16);
VAR_1 -= (VAR_1 % 16);
VAR_1 = MIN(VAR_1, VAR_0->serverds.width);
VAR_2 = MIN(VAR_2, VAR_0->serverds.height);
VAR_3 = MIN(VAR_1 + VAR_... | [
"static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5;",
"VAR_4 += VAR_2;",
"VAR_3 += (VAR_1 % 16);",
"VAR_1 -= (VAR_1 % 16);",
"VAR_1 = MIN(VAR_1, VAR_0->serverds.width);",
"VAR_2 = MIN(VAR_2, VAR_0->serverds.height);",
"VAR_3 = MIN(VAR_1 + VAR_3, VAR_0->ser... | [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
18,755 | int qemu_ftruncate64(int fd, int64_t length)
{
LARGE_INTEGER li;
LONG high;
HANDLE h;
BOOL res;
if ((GetVersion() & 0x80000000UL) && (length >> 32) != 0)
return -1;
h = (HANDLE)_get_osfhandle(fd);
/* get current position, ftruncate do not change position */
li.HighPart =... | true | qemu | 2c993ec294893af31deed27e5d79610ce71642e1 | int qemu_ftruncate64(int fd, int64_t length)
{
LARGE_INTEGER li;
LONG high;
HANDLE h;
BOOL res;
if ((GetVersion() & 0x80000000UL) && (length >> 32) != 0)
return -1;
h = (HANDLE)_get_osfhandle(fd);
li.HighPart = 0;
li.LowPart = SetFilePointer (h, 0, &li.HighPart, FI... | {
"code": [
" if (li.LowPart == 0xffffffffUL && GetLastError() != NO_ERROR)",
" if (!SetFilePointer(h, (DWORD) length, &high, FILE_BEGIN))"
],
"line_no": [
31,
39
]
} | int FUNC_0(int VAR_0, int64_t VAR_1)
{
LARGE_INTEGER li;
LONG high;
HANDLE h;
BOOL res;
if ((GetVersion() & 0x80000000UL) && (VAR_1 >> 32) != 0)
return -1;
h = (HANDLE)_get_osfhandle(VAR_0);
li.HighPart = 0;
li.LowPart = SetFilePointer (h, 0, &li.HighPart, FILE_CUR... | [
"int FUNC_0(int VAR_0, int64_t VAR_1)\n{",
"LARGE_INTEGER li;",
"LONG high;",
"HANDLE h;",
"BOOL res;",
"if ((GetVersion() & 0x80000000UL) && (VAR_1 >> 32) != 0)\nreturn -1;",
"h = (HANDLE)_get_osfhandle(VAR_0);",
"li.HighPart = 0;",
"li.LowPart = SetFilePointer (h, 0, &li.HighPart, FILE_CURRENT);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39,
41
],
[
43
],
[
49
],
[
51
],
[
53
]
] |
18,757 | I2CBus *aux_get_i2c_bus(AUXBus *bus)
{
return aux_bridge_get_i2c_bus(bus->bridge);
}
| true | qemu | e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f | I2CBus *aux_get_i2c_bus(AUXBus *bus)
{
return aux_bridge_get_i2c_bus(bus->bridge);
}
| {
"code": [],
"line_no": []
} | I2CBus *FUNC_0(AUXBus *bus)
{
return aux_bridge_get_i2c_bus(bus->bridge);
}
| [
"I2CBus *FUNC_0(AUXBus *bus)\n{",
"return aux_bridge_get_i2c_bus(bus->bridge);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,758 | static void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx) {
int i;
for (i = 0; i < avctx->channels; i++) {
AacPsyChannel *pch = &ctx->ch[i];
if (avctx->flags & CODEC_FLAG_QSCALE)
pch->attack_threshold = psy_vbr_map[avctx->global_quality / FF_QP2LAMBDA].st_lrm;
... | true | FFmpeg | 276df9d8210121f6d59b7876e1724ebe7a11f5e5 | static void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx) {
int i;
for (i = 0; i < avctx->channels; i++) {
AacPsyChannel *pch = &ctx->ch[i];
if (avctx->flags & CODEC_FLAG_QSCALE)
pch->attack_threshold = psy_vbr_map[avctx->global_quality / FF_QP2LAMBDA].st_lrm;
... | {
"code": [
" int i;",
" for (i = 0; i < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; i++)",
" pch->prev_energy_subshort[i] = 10.0f;"
],
"line_no": [
3,
23,
25
]
} | static void FUNC_0(AacPsyContext *VAR_0, AVCodecContext *VAR_1) {
int VAR_2;
for (VAR_2 = 0; VAR_2 < VAR_1->channels; VAR_2++) {
AacPsyChannel *pch = &VAR_0->ch[VAR_2];
if (VAR_1->flags & CODEC_FLAG_QSCALE)
pch->attack_threshold = psy_vbr_map[VAR_1->global_quality / FF_QP2LA... | [
"static void FUNC_0(AacPsyContext *VAR_0, AVCodecContext *VAR_1) {",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < VAR_1->channels; VAR_2++) {",
"AacPsyChannel *pch = &VAR_0->ch[VAR_2];",
"if (VAR_1->flags & CODEC_FLAG_QSCALE)\npch->attack_threshold = psy_vbr_map[VAR_1->global_quality / FF_QP2LAMBDA].st_lrm;",
"... | [
0,
1,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
18,760 | static void pflash_cfi01_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = pflash_cfi01_realize;
dc->props = pflash_cfi01_properties;
dc->vmsd = &vmstate_pflash;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
} | true | qemu | e4f4fb1eca795e36f363b4647724221e774523c1 | static void pflash_cfi01_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = pflash_cfi01_realize;
dc->props = pflash_cfi01_properties;
dc->vmsd = &vmstate_pflash;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = pflash_cfi01_realize;
dc->props = pflash_cfi01_properties;
dc->vmsd = &vmstate_pflash;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
} | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = pflash_cfi01_realize;",
"dc->props = pflash_cfi01_properties;",
"dc->vmsd = &vmstate_pflash;",
"set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
22
]
] |
18,761 | static void mc_block(uint8_t *dst, uint8_t *src, uint8_t *tmp, int stride, int b_w, int b_h, int dx, int dy){
int x, y;
START_TIMER
for(y=0; y < b_h+5; y++){
for(x=0; x < b_w; x++){
int a0= src[x ];
int a1= src[x + 1];
int a2= src[x + 2];
int a3... | true | FFmpeg | 8c2515bbb9800a3cdcc28aa19133302ba5f2da45 | static void mc_block(uint8_t *dst, uint8_t *src, uint8_t *tmp, int stride, int b_w, int b_h, int dx, int dy){
int x, y;
START_TIMER
for(y=0; y < b_h+5; y++){
for(x=0; x < b_w; x++){
int a0= src[x ];
int a1= src[x + 1];
int a2= src[x + 2];
int a3... | {
"code": [
" if(dx<8) tmp[x]= (32*a2*( 8-dx) + am* dx + 128)>>8;",
" else tmp[x]= ( am*(16-dx) + 32*a3*(dx-8) + 128)>>8;",
" if(dy<8) dst[x]= (32*a2*( 8-dy) + am* dy + 128)>>8;",
" else dst[x]= ( am*(16-dy) + 32*a3*(dy-8) + 128)>>8;"... | static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7){
int VAR_8, VAR_9;
START_TIMER
for(VAR_9=0; VAR_9 < VAR_5+5; VAR_9++){
for(VAR_8=0; VAR_8 < VAR_4; VAR_8++){
int VAR_10= VAR_1[VAR_8 ];
int VAR_11= V... | [
"static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7){",
"int VAR_8, VAR_9;",
"START_TIMER\nfor(VAR_9=0; VAR_9 < VAR_5+5; VAR_9++){",
"for(VAR_8=0; VAR_8 < VAR_4; VAR_8++){",
"int VAR_10= VAR_1[VAR_8 ];",
"int VAR_11= VAR_1[VAR_8 + 1]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
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
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
39
],
[
41
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
65
],
[
67
... |
18,762 | static BlockDriverAIOCB *rbd_start_aio(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockDriverCompletionFunc *cb,
... | true | qemu | 405a27640b33c31ccef4001b3f3936b8c9d2218f | static BlockDriverAIOCB *rbd_start_aio(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockDriverCompletionFunc *cb,
... | {
"code": [
" goto failed;"
],
"line_no": [
99
]
} | static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockDriverCompletionFunc *cb,
... | [
"static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num,\nQEMUIOVector *qiov,\nint nb_sectors,\nBlockDriverCompletionFunc *cb,\nvoid *opaque,\nRBDAIOCmd cmd)\n{",
"RBDAIOCB *acb;",
"RADOSCB *rcb;",
"rbd_completion_t c;",
"int64_t off, size;",
"char *VAR_0;",
"int VAR_1;",
"BDRVRBDSt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
18,763 | static inline void RENAME(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc,
int srcW, int dstW, int filterAlign, int one)
{
int i;
#ifdef HAVE_MMX
asm volatile("emms\n\t"::: "memory"); //FIXME this shouldnt be required but it IS (even for non mmx versions)
#endif
if(ABS(... | true | FFmpeg | e3d2500fe498289a878b956f6efb4995438c9515 | static inline void RENAME(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc,
int srcW, int dstW, int filterAlign, int one)
{
int i;
#ifdef HAVE_MMX
asm volatile("emms\n\t"::: "memory");
#endif
if(ABS(xInc - 0x10000) <10)
{
int i;
*filterSize= (1 +(filterAlign-1))... | {
"code": [
"\tint i;",
"\tfor(i=0; i<dstW; i++)",
"\t\tint j;",
"\t\t\tint j;",
"static inline void RENAME(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc,",
"\t\t\t\tint y1,y2,y3,y4;",
"\t\ty1 = (int)floor(0.5 + ( + A*d - 2.0*A*d*d + A*d*... | static inline void FUNC_0(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc,
int srcW, int dstW, int filterAlign, int one)
{
int VAR_1;
#ifdef HAVE_MMX
asm volatile("emms\n\t"::: "memory");
#endif
if(ABS(xInc - 0x10000) <10)
{
int VAR_1;
*filterSize= (1 +(filterA... | [
"static inline void FUNC_0(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc,\nint srcW, int dstW, int filterAlign, int one)\n{",
"int VAR_1;",
"#ifdef HAVE_MMX\nasm volatile(\"emms\\n\\t\"::: \"memory\");",
"#endif\nif(ABS(xInc - 0x10000) <10)\n{",
"int VAR_1;",
"*filterSize= (1 ... | [
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,
0,
0,
1,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[... |
18,764 | static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
{
LATMContext *ctx = s->priv_data;
AVCodecContext *avctx = s->streams[0]->codec;
GetBitContext gb;
int header_size;
/* AudioMuxElement */
put_bits(bs, 1, !!ctx->counter);
if (!ctx->counter) {
init... | true | FFmpeg | a736eb4a605f46d5ff96c7b32e55710ecd9cce89 | static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
{
LATMContext *ctx = s->priv_data;
AVCodecContext *avctx = s->streams[0]->codec;
GetBitContext gb;
int header_size;
put_bits(bs, 1, !!ctx->counter);
if (!ctx->counter) {
init_get_bits(&gb, avctx-... | {
"code": [
" header_size = avctx->extradata_size-(ctx->off + 7) >> 3;",
" avpriv_copy_bits(bs, &avctx->extradata[ctx->off], header_size);"
],
"line_no": [
45,
47
]
} | static void FUNC_0(AVFormatContext *VAR_0, PutBitContext *VAR_1)
{
LATMContext *ctx = VAR_0->priv_data;
AVCodecContext *avctx = VAR_0->streams[0]->codec;
GetBitContext gb;
int VAR_2;
put_bits(VAR_1, 1, !!ctx->counter);
if (!ctx->counter) {
init_get_bits(&gb, avctx->extr... | [
"static void FUNC_0(AVFormatContext *VAR_0, PutBitContext *VAR_1)\n{",
"LATMContext *ctx = VAR_0->priv_data;",
"AVCodecContext *avctx = VAR_0->streams[0]->codec;",
"GetBitContext gb;",
"int VAR_2;",
"put_bits(VAR_1, 1, !!ctx->counter);",
"if (!ctx->counter) {",
"init_get_bits(&gb, avctx->extradata, av... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
... |
18,765 | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TM2Context * const l = avctx->priv_data;
AVFrame * const p= (AVFrame*)&l->pic;
int i, sk... | true | FFmpeg | b89f4fb1908f26d2704b9496952131fffd4dafae | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TM2Context * const l = avctx->priv_data;
AVFrame * const p= (AVFrame*)&l->pic;
int i, sk... | {
"code": [
" t = tm2_read_stream(l, swbuf + skip, tm2_stream_order[i]);"
],
"line_no": [
67
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
TM2Context * const l = VAR_0->priv_data;
AVFrame * const p= (AVFrame*)&l->pic;
int VAR_6, VAR_7, ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"TM2Context * const l = VAR_0->priv_data;",
"AVFrame * const p= (AVFrame*)&l->pic;",
"int VAR_6, VAR_7, VAR_8;",
"uint8_t *swbuf;",
"swbuf = 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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
18,767 | static void apply_loop_filter(Vp3DecodeContext *s, int plane, int ystart, int yend)
{
int x, y;
int *bounding_values= s->bounding_values_array+127;
int width = s->fragment_width[!!plane];
int height = s->fragment_height[!!plane];
int fragment = s->fragment_start ... | false | FFmpeg | 28f9ab7029bd1a02f659995919f899f84ee7361b | static void apply_loop_filter(Vp3DecodeContext *s, int plane, int ystart, int yend)
{
int x, y;
int *bounding_values= s->bounding_values_array+127;
int width = s->fragment_width[!!plane];
int height = s->fragment_height[!!plane];
int fragment = s->fragment_start ... | {
"code": [],
"line_no": []
} | static void FUNC_0(Vp3DecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4, VAR_5;
int *VAR_6= VAR_0->bounding_values_array+127;
int VAR_7 = VAR_0->fragment_width[!!VAR_1];
int VAR_8 = VAR_0->fragment_height[!!VAR_1];
int VAR_9 = VAR_0->fragment_start ... | [
"static void FUNC_0(Vp3DecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5;",
"int *VAR_6= VAR_0->bounding_values_array+127;",
"int VAR_7 = VAR_0->fragment_width[!!VAR_1];",
"int VAR_8 = VAR_0->fragment_height[!!VAR_1];",
"int VAR_9 = VAR_0->fragment_sta... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
31
],
[
41,
43
],
[
47
],
[
49,
51,
53
],
[
55
],
[
61
],
[
63,
65... |
18,768 | static int matroska_probe(AVProbeData *p)
{
uint64_t total = 0;
int len_mask = 0x80, size = 1, n = 1, i;
/* EBML header? */
if (AV_RB32(p->buf) != EBML_ID_HEADER)
return 0;
/* length of header */
total = p->buf[4];
while (size <= 8 && !(total & len_mask)) {
size... | true | FFmpeg | 69619a13c3fef940cba545cf0a283ff22771dd71 | static int matroska_probe(AVProbeData *p)
{
uint64_t total = 0;
int len_mask = 0x80, size = 1, n = 1, i;
if (AV_RB32(p->buf) != EBML_ID_HEADER)
return 0;
total = p->buf[4];
while (size <= 8 && !(total & len_mask)) {
size++;
len_mask >>= 1;
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
uint64_t total = 0;
int VAR_1 = 0x80, VAR_2 = 1, VAR_3 = 1, VAR_4;
if (AV_RB32(VAR_0->buf) != EBML_ID_HEADER)
return 0;
total = VAR_0->buf[4];
while (VAR_2 <= 8 && !(total & VAR_1)) {
VAR_2++;
VAR_1 >>= 1;
... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"uint64_t total = 0;",
"int VAR_1 = 0x80, VAR_2 = 1, VAR_3 = 1, VAR_4;",
"if (AV_RB32(VAR_0->buf) != EBML_ID_HEADER)\nreturn 0;",
"total = VAR_0->buf[4];",
"while (VAR_2 <= 8 && !(total & VAR_1)) {",
"VAR_2++;",
"VAR_1 >>= 1;",
"}",
"if (VAR_2 > 8)\nretu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13,
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
45,
47
],
[
59
],
[
61
],
[
65
],
[
67,
69
],
... |
18,769 | void palette8torgb32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
{
unsigned i;
/*
for(i=0; i<num_pixels; i++)
((unsigned *)dst)[i] = ((unsigned *)palette)[ src[i] ];
*/
for(i=0; i<num_pixels; i++)
{
#ifdef WORDS_BIGENDIAN
dst[3]= palette[ src[i]*4+2 ];
dst[2... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | void palette8torgb32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
{
unsigned i;
for(i=0; i<num_pixels; i++)
{
#ifdef WORDS_BIGENDIAN
dst[3]= palette[ src[i]*4+2 ];
dst[2]= palette[ src[i]*4+1 ];
dst[1]= palette[ src[i]*4+0 ];
#else
dst[0]= palet... | {
"code": [
"void palette8torgb32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tuns... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)
{
unsigned VAR_4;
for(VAR_4=0; VAR_4<VAR_2; VAR_4++)
{
#ifdef WORDS_BIGENDIAN
VAR_1[3]= VAR_3[ VAR_0[VAR_4]*4+2 ];
VAR_1[2]= VAR_3[ VAR_0[VAR_4]*4+1 ];
VAR_1[1]= VAR_3[ VAR_0[VAR_4]*4+0 ];
#else
... | [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)\n{",
"unsigned VAR_4;",
"for(VAR_4=0; VAR_4<VAR_2; VAR_4++)",
"{",
"#ifdef WORDS_BIGENDIAN\nVAR_1[3]= VAR_3[ VAR_0[VAR_4]*4+2 ];",
"VAR_1[2]= VAR_3[ VAR_0[VAR_4]*4+1 ];",
"VAR_1[1]= VAR_3[ VAR_0[VAR_4]*4+0 ];",
"#... | [
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
],
[
49
]
] |
18,770 | void visit_get_next_type(Visitor *v, int *obj, const int *qtypes,
const char *name, Error **errp)
{
if (v->get_next_type) {
v->get_next_type(v, obj, qtypes, name, errp);
}
}
| true | qemu | 0426d53c6530606bf7641b83f2b755fe61c280ee | void visit_get_next_type(Visitor *v, int *obj, const int *qtypes,
const char *name, Error **errp)
{
if (v->get_next_type) {
v->get_next_type(v, obj, qtypes, name, errp);
}
}
| {
"code": [
"void visit_get_next_type(Visitor *v, int *obj, const int *qtypes,",
"void visit_get_next_type(Visitor *v, int *obj, const int *qtypes,",
" v->get_next_type(v, obj, qtypes, name, errp);"
],
"line_no": [
1,
1,
9
]
} | void FUNC_0(Visitor *VAR_0, int *VAR_1, const int *VAR_2,
const char *VAR_3, Error **VAR_4)
{
if (VAR_0->get_next_type) {
VAR_0->get_next_type(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);
}
}
| [
"void FUNC_0(Visitor *VAR_0, int *VAR_1, const int *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{",
"if (VAR_0->get_next_type) {",
"VAR_0->get_next_type(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);",
"}",
"}"
] | [
1,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
18,771 | static int bad_mode_switch(CPUARMState *env, int mode, CPSRWriteType write_type)
{
/* Return true if it is not valid for us to switch to
* this CPU mode (ie all the UNPREDICTABLE cases in
* the ARM ARM CPSRWriteByInstr pseudocode).
/* Changes to or from Hyp via MSR and CPS are illegal. */
... | true | qemu | 10eacda787ac9990dc22d4437b289200c819712c | static int bad_mode_switch(CPUARMState *env, int mode, CPSRWriteType write_type)
{
((env->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_HYP ||
mode == ARM_CPU_MODE_HYP)) {
switch (mode) {
case ARM_CPU_MODE_USR:
return 0;
case ARM_CPU_MODE_SYS:
case ARM_CPU_... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUARMState *VAR_0, int VAR_1, CPSRWriteType VAR_2)
{
((VAR_0->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_HYP ||
VAR_1 == ARM_CPU_MODE_HYP)) {
switch (VAR_1) {
case ARM_CPU_MODE_USR:
return 0;
case ARM_CPU_MODE_SYS:
case ARM_CPU_MODE_SV... | [
"static int FUNC_0(CPUARMState *VAR_0, int VAR_1, CPSRWriteType VAR_2)\n{",
"((VAR_0->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_HYP ||\nVAR_1 == ARM_CPU_MODE_HYP)) {",
"switch (VAR_1) {",
"case ARM_CPU_MODE_USR:\nreturn 0;",
"case ARM_CPU_MODE_SYS:\ncase ARM_CPU_MODE_SVC:\ncase ARM_CPU_MODE_ABT:\ncase ARM_CPU... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
17,
19
],
[
25
],
[
27,
29
],
[
31,
33,
35,
37,
39,
41,
43,
45,
57
],
[
59,
61,
63
],
[
65,
67
]
] |
18,772 | static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid)
{
MXFStructuralComponent *source_clip = arg;
switch(tag) {
case 0x0202:
source_clip->duration = avio_rb64(pb);
break;
case 0x1201:
source_clip->start_position = avio_rb64(pb);
... | true | FFmpeg | fd34dbea58e097609ff09cf7dcc59f74930195d3 | static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid)
{
MXFStructuralComponent *source_clip = arg;
switch(tag) {
case 0x0202:
source_clip->duration = avio_rb64(pb);
break;
case 0x1201:
source_clip->start_position = avio_rb64(pb);
... | {
"code": [
"static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid)"
],
"line_no": [
1
]
} | static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)
{
MXFStructuralComponent *source_clip = VAR_0;
switch(VAR_2) {
case 0x0202:
source_clip->duration = avio_rb64(VAR_1);
break;
case 0x1201:
source_clip->start_position = avio_rb64(VAR_1);
... | [
"static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)\n{",
"MXFStructuralComponent *source_clip = VAR_0;",
"switch(VAR_2) {",
"case 0x0202:\nsource_clip->duration = avio_rb64(VAR_1);",
"break;",
"case 0x1201:\nsource_clip->start_position = avio_rb64(VAR_1);",
"break;",
"... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
18,774 | static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time)
{
char buf[1024];
AVBPrint buf_script;
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int frame_number, vid, i;
double bitrate;
double speed;
int64_t p... | true | FFmpeg | a956840cbcf89d709c4bd5980808ac0b5c8aeedf | static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time)
{
char buf[1024];
AVBPrint buf_script;
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int frame_number, vid, i;
double bitrate;
double speed;
int64_t p... | {
"code": [
" avio_closep(&progress_avio);"
],
"line_no": [
363
]
} | static void FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2)
{
char VAR_3[1024];
AVBPrint buf_script;
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int VAR_4, VAR_5, VAR_6;
double VAR_7;
double VAR_8;
int64_t pts = INT64_MIN + 1;
... | [
"static void FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2)\n{",
"char VAR_3[1024];",
"AVBPrint buf_script;",
"OutputStream *ost;",
"AVFormatContext *oc;",
"int64_t total_size;",
"AVCodecContext *enc;",
"int VAR_4, VAR_5, VAR_6;",
"double VAR_7;",
"double VAR_8;",
"int64_t pts = INT64_MIN + 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
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[... |
18,775 | static int htab_load(QEMUFile *f, void *opaque, int version_id)
{
sPAPRMachineState *spapr = opaque;
uint32_t section_hdr;
int fd = -1;
if (version_id < 1 || version_id > 1) {
error_report("htab_load() bad version");
return -EINVAL;
}
section_hdr = qemu_get_be32(f);
... | true | qemu | 9897e462645fb8d91a4cef2a1ea3a74cc9149c13 | static int htab_load(QEMUFile *f, void *opaque, int version_id)
{
sPAPRMachineState *spapr = opaque;
uint32_t section_hdr;
int fd = -1;
if (version_id < 1 || version_id > 1) {
error_report("htab_load() bad version");
return -EINVAL;
}
section_hdr = qemu_get_be32(f);
... | {
"code": [
" Error *local_err;"
],
"line_no": [
29
]
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{
sPAPRMachineState *spapr = VAR_1;
uint32_t section_hdr;
int VAR_3 = -1;
if (VAR_2 < 1 || VAR_2 > 1) {
error_report("FUNC_0() bad version");
return -EINVAL;
}
section_hdr = qemu_get_be32(VAR_0);
if (s... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{",
"sPAPRMachineState *spapr = VAR_1;",
"uint32_t section_hdr;",
"int VAR_3 = -1;",
"if (VAR_2 < 1 || VAR_2 > 1) {",
"error_report(\"FUNC_0() bad version\");",
"return -EINVAL;",
"}",
"section_hdr = qemu_get_be32(VAR_0);",
"if (section_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
18,777 | static av_cold void dump_enc_cfg(AVCodecContext *avctx,
const struct vpx_codec_enc_cfg *cfg)
{
int width = -30;
int level = AV_LOG_DEBUG;
av_log(avctx, level, "vpx_codec_enc_cfg\n");
av_log(avctx, level, "generic settings\n"
" %*s%u\n %*s%u\n %*s%u... | false | FFmpeg | 753074721bd414874d18c372c491bdc6323fa3bf | static av_cold void dump_enc_cfg(AVCodecContext *avctx,
const struct vpx_codec_enc_cfg *cfg)
{
int width = -30;
int level = AV_LOG_DEBUG;
av_log(avctx, level, "vpx_codec_enc_cfg\n");
av_log(avctx, level, "generic settings\n"
" %*s%u\n %*s%u\n %*s%u... | {
"code": [],
"line_no": []
} | static av_cold void FUNC_0(AVCodecContext *avctx,
const struct vpx_codec_enc_cfg *cfg)
{
int VAR_0 = -30;
int VAR_1 = AV_LOG_DEBUG;
av_log(avctx, VAR_1, "vpx_codec_enc_cfg\n");
av_log(avctx, VAR_1, "generic settings\n"
" %*s%u\n %*s%u\n %*s%u\n %*... | [
"static av_cold void FUNC_0(AVCodecContext *avctx,\nconst struct vpx_codec_enc_cfg *cfg)\n{",
"int VAR_0 = -30;",
"int VAR_1 = AV_LOG_DEBUG;",
"av_log(avctx, VAR_1, \"vpx_codec_enc_cfg\\n\");",
"av_log(avctx, VAR_1, \"generic settings\\n\"\n\" %*s%u\\n %*s%u\\n %*s%u\\n %*s%u\\n %*s%u\\n\"\n#if CONFIG_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17,
19,
21,
23,
25
],
[
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51
],
[
53,
55,
57,
59,
61,
63,
65,
67,
69,... |
18,778 | static int mpegps_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
AVStream *st;
int len, startcode, i, type, codec_id;
int64_t pts, dts;
redo:
len = mpegps_read_pes_header(s, NULL, &startcode, &pts, &dts, 1);
if (len < 0)
return len;
/* n... | false | FFmpeg | b754978a3b0aa17e7794f64c69bf4491762797fd | static int mpegps_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
AVStream *st;
int len, startcode, i, type, codec_id;
int64_t pts, dts;
redo:
len = mpegps_read_pes_header(s, NULL, &startcode, &pts, &dts, 1);
if (len < 0)
return len;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{
AVStream *st;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
int64_t pts, dts;
redo:
VAR_2 = mpegps_read_pes_header(VAR_0, NULL, &VAR_3, &pts, &dts, 1);
if (VAR_2 < 0)
return VAR_2;
... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{",
"AVStream *st;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"int64_t pts, dts;",
"redo:\nVAR_2 = mpegps_read_pes_header(VAR_0, NULL, &VAR_3, &pts, &dts, 1);",
"if (VAR_2 < 0)\nreturn VAR_2;",
"for(VAR_4=0;VAR_4<VAR_0->nb_streams;VAR_4++) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
18,779 | static void get_downmix_coeffs(AC3DecodeContext *ctx)
{
int from = ctx->bsi.acmod;
int to = ctx->output;
float clev = clevs[ctx->bsi.cmixlev];
float slev = slevs[ctx->bsi.surmixlev];
ac3_audio_block *ab = &ctx->audio_block;
if (to == AC3_OUTPUT_UNMODIFIED)
return 0;
swit... | false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static void get_downmix_coeffs(AC3DecodeContext *ctx)
{
int from = ctx->bsi.acmod;
int to = ctx->output;
float clev = clevs[ctx->bsi.cmixlev];
float slev = slevs[ctx->bsi.surmixlev];
ac3_audio_block *ab = &ctx->audio_block;
if (to == AC3_OUTPUT_UNMODIFIED)
return 0;
swit... | {
"code": [],
"line_no": []
} | static void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1 = VAR_0->bsi.acmod;
int VAR_2 = VAR_0->output;
float VAR_3 = clevs[VAR_0->bsi.cmixlev];
float VAR_4 = slevs[VAR_0->bsi.surmixlev];
ac3_audio_block *ab = &VAR_0->audio_block;
if (VAR_2 == AC3_OUTPUT_UNMODIFIED)
return 0;
... | [
"static void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1 = VAR_0->bsi.acmod;",
"int VAR_2 = VAR_0->output;",
"float VAR_3 = clevs[VAR_0->bsi.cmixlev];",
"float VAR_4 = slevs[VAR_0->bsi.surmixlev];",
"ac3_audio_block *ab = &VAR_0->audio_block;",
"if (VAR_2 == AC3_OUTPUT_UNMODIFIED)\nreturn 0;",
"sw... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
... |
18,780 | static av_cold void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx,
int mm_flags)
{
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
#if HAVE_INLINE_ASM
c->put_pixels_clamped = ff_put_pixels_clamped_mmx;
c->put_signed_pixels_clamped = ff_p... | false | FFmpeg | 659d4ba5af5d72716ee370bb367c741bd15e75b4 | static av_cold void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx,
int mm_flags)
{
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
#if HAVE_INLINE_ASM
c->put_pixels_clamped = ff_put_pixels_clamped_mmx;
c->put_signed_pixels_clamped = ff_p... | {
"code": [],
"line_no": []
} | static av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx,
int mm_flags)
{
const int VAR_0 = avctx->bits_per_raw_sample > 8;
#if HAVE_INLINE_ASM
c->put_pixels_clamped = ff_put_pixels_clamped_mmx;
c->put_signed_pixels_clamped = ff_put_signed_pixels_cl... | [
"static av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx,\nint mm_flags)\n{",
"const int VAR_0 = avctx->bits_per_raw_sample > 8;",
"#if HAVE_INLINE_ASM\nc->put_pixels_clamped = ff_put_pixels_clamped_mmx;",
"c->put_signed_pixels_clamped = ff_put_signed_pixels_clamped_mmx;",
"c->add_pixels_clam... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51,
53... |
18,782 | static int pci_nic_uninit(PCIDevice *dev)
{
PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, dev);
EEPRO100State *s = &d->eepro100;
cpu_unregister_io_memory(s->mmio_index);
return 0;
}
| false | qemu | 273a2142176098fe2c27f263d86ad66b133b43cb | static int pci_nic_uninit(PCIDevice *dev)
{
PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, dev, dev);
EEPRO100State *s = &d->eepro100;
cpu_unregister_io_memory(s->mmio_index);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, VAR_0, VAR_0);
EEPRO100State *s = &d->eepro100;
cpu_unregister_io_memory(s->mmio_index);
return 0;
}
| [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"PCIEEPRO100State *d = DO_UPCAST(PCIEEPRO100State, VAR_0, VAR_0);",
"EEPRO100State *s = &d->eepro100;",
"cpu_unregister_io_memory(s->mmio_index);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
]
] |
18,783 | static int kvm_getput_regs(CPUState *env, int set)
{
struct kvm_regs regs;
int ret = 0;
if (!set) {
ret = kvm_vcpu_ioctl(env, KVM_GET_REGS, ®s);
if (ret < 0)
return ret;
}
kvm_getput_reg(®s.rax, &env->regs[R_EAX], set);
kvm_getput_reg(®s.rbx, &e... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | static int kvm_getput_regs(CPUState *env, int set)
{
struct kvm_regs regs;
int ret = 0;
if (!set) {
ret = kvm_vcpu_ioctl(env, KVM_GET_REGS, ®s);
if (ret < 0)
return ret;
}
kvm_getput_reg(®s.rax, &env->regs[R_EAX], set);
kvm_getput_reg(®s.rbx, &e... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, int VAR_1)
{
struct kvm_regs VAR_2;
int VAR_3 = 0;
if (!VAR_1) {
VAR_3 = kvm_vcpu_ioctl(VAR_0, KVM_GET_REGS, &VAR_2);
if (VAR_3 < 0)
return VAR_3;
}
kvm_getput_reg(&VAR_2.rax, &VAR_0->VAR_2[R_EAX], VAR_1);
kvm_getput_re... | [
"static int FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"struct kvm_regs VAR_2;",
"int VAR_3 = 0;",
"if (!VAR_1) {",
"VAR_3 = kvm_vcpu_ioctl(VAR_0, KVM_GET_REGS, &VAR_2);",
"if (VAR_3 < 0)\nreturn VAR_3;",
"}",
"kvm_getput_reg(&VAR_2.rax, &VAR_0->VAR_2[R_EAX], VAR_1);",
"kvm_getput_reg(&VAR_2.rbx, &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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47... |
18,784 | static void visitor_reset(TestOutputVisitorData *data)
{
visitor_output_teardown(data, NULL);
visitor_output_setup(data, NULL);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void visitor_reset(TestOutputVisitorData *data)
{
visitor_output_teardown(data, NULL);
visitor_output_setup(data, NULL);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0)
{
visitor_output_teardown(VAR_0, NULL);
visitor_output_setup(VAR_0, NULL);
}
| [
"static void FUNC_0(TestOutputVisitorData *VAR_0)\n{",
"visitor_output_teardown(VAR_0, NULL);",
"visitor_output_setup(VAR_0, NULL);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,785 | static int qemu_reset_requested(void)
{
int r = reset_requested;
reset_requested = 0;
return r;
}
| false | qemu | 8bd7f71d794b93ce027b856f5b79a98f4f82e44c | static int qemu_reset_requested(void)
{
int r = reset_requested;
reset_requested = 0;
return r;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void)
{
int VAR_0 = reset_requested;
reset_requested = 0;
return VAR_0;
}
| [
"static int FUNC_0(void)\n{",
"int VAR_0 = reset_requested;",
"reset_requested = 0;",
"return VAR_0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
18,786 | void cpu_interrupt(CPUState *s)
{
s->interrupt_request = 1;
}
| false | qemu | 83479e770d31e171232a82f4eee7dab06d3b219c | void cpu_interrupt(CPUState *s)
{
s->interrupt_request = 1;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0)
{
VAR_0->interrupt_request = 1;
}
| [
"void FUNC_0(CPUState *VAR_0)\n{",
"VAR_0->interrupt_request = 1;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,787 | static void test_io_channel_setup_async(SocketAddressLegacy *listen_addr,
SocketAddressLegacy *connect_addr,
QIOChannel **src,
QIOChannel **dst)
{
QIOChannelSocket *lioc;
struct TestIOCh... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | static void test_io_channel_setup_async(SocketAddressLegacy *listen_addr,
SocketAddressLegacy *connect_addr,
QIOChannel **src,
QIOChannel **dst)
{
QIOChannelSocket *lioc;
struct TestIOCh... | {
"code": [],
"line_no": []
} | static void FUNC_0(SocketAddressLegacy *VAR_0,
SocketAddressLegacy *VAR_1,
QIOChannel **VAR_2,
QIOChannel **VAR_3)
{
QIOChannelSocket *lioc;
struct TestIOChannelData VAR_4;
VAR_4.... | [
"static void FUNC_0(SocketAddressLegacy *VAR_0,\nSocketAddressLegacy *VAR_1,\nQIOChannel **VAR_2,\nQIOChannel **VAR_3)\n{",
"QIOChannelSocket *lioc;",
"struct TestIOChannelData VAR_4;",
"VAR_4.loop = g_main_loop_new(g_main_context_default(),\nTRUE);",
"lioc = qio_channel_socket_new();",
"qio_channel_socke... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27,
29
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
57
],
[
59
],
[
63
],
[... |
18,788 | static int send_palette_rect(VncState *vs, int w, int h, struct QDict *palette)
{
int stream = 2;
int level = tight_conf[vs->tight_compression].idx_zlib_level;
int colors;
size_t bytes;
colors = qdict_size(palette);
vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLICIT_FILTER) << 4);
vnc... | false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | static int send_palette_rect(VncState *vs, int w, int h, struct QDict *palette)
{
int stream = 2;
int level = tight_conf[vs->tight_compression].idx_zlib_level;
int colors;
size_t bytes;
colors = qdict_size(palette);
vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLICIT_FILTER) << 4);
vnc... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, struct QDict *VAR_3)
{
int VAR_4 = 2;
int VAR_5 = tight_conf[VAR_0->tight_compression].idx_zlib_level;
int VAR_6;
size_t bytes;
VAR_6 = qdict_size(VAR_3);
vnc_write_u8(VAR_0, (VAR_4 | VNC_TIGHT_EXPLICIT_FILTER) << 4);
vnc_w... | [
"static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, struct QDict *VAR_3)\n{",
"int VAR_4 = 2;",
"int VAR_5 = tight_conf[VAR_0->tight_compression].idx_zlib_level;",
"int VAR_6;",
"size_t bytes;",
"VAR_6 = qdict_size(VAR_3);",
"vnc_write_u8(VAR_0, (VAR_4 | VNC_TIGHT_EXPLICIT_FILTER) << 4);",
"vnc_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[... |
18,789 | static inline ioreq_t *xen_vcpu_ioreq(shared_iopage_t *shared_page, int vcpu)
{
return &shared_page->vcpu_iodata[vcpu].vp_ioreq;
}
| false | qemu | 47d3df2387ed6927732584ffa4159c26d9f4dee8 | static inline ioreq_t *xen_vcpu_ioreq(shared_iopage_t *shared_page, int vcpu)
{
return &shared_page->vcpu_iodata[vcpu].vp_ioreq;
}
| {
"code": [],
"line_no": []
} | static inline ioreq_t *FUNC_0(shared_iopage_t *shared_page, int vcpu)
{
return &shared_page->vcpu_iodata[vcpu].vp_ioreq;
}
| [
"static inline ioreq_t *FUNC_0(shared_iopage_t *shared_page, int vcpu)\n{",
"return &shared_page->vcpu_iodata[vcpu].vp_ioreq;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,790 | static void cirrus_bitblt_fill_nop(CirrusVGAState *s,
uint8_t *dst,
int dstpitch, int bltwidth,int bltheight)
{
}
| false | qemu | 026aeffcb4752054830ba203020ed6eb05bcaba8 | static void cirrus_bitblt_fill_nop(CirrusVGAState *s,
uint8_t *dst,
int dstpitch, int bltwidth,int bltheight)
{
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(CirrusVGAState *VAR_0,
uint8_t *VAR_1,
int VAR_2, int VAR_3,int VAR_4)
{
}
| [
"static void FUNC_0(CirrusVGAState *VAR_0,\nuint8_t *VAR_1,\nint VAR_2, int VAR_3,int VAR_4)\n{",
"}"
] | [
0,
0
] | [
[
1,
3,
5,
7
],
[
9
]
] |
18,791 | static int copy_parameter_set(void **to, void **from, int count, int size)
{
int i;
for (i = 0; i < count; i++) {
if (to[i] && !from[i]) {
av_freep(&to[i]);
} else if (from[i] && !to[i]) {
to[i] = av_malloc(size);
if (!to[i])
return ... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static int copy_parameter_set(void **to, void **from, int count, int size)
{
int i;
for (i = 0; i < count; i++) {
if (to[i] && !from[i]) {
av_freep(&to[i]);
} else if (from[i] && !to[i]) {
to[i] = av_malloc(size);
if (!to[i])
return ... | {
"code": [],
"line_no": []
} | static int FUNC_0(void **VAR_0, void **VAR_1, int VAR_2, int VAR_3)
{
int VAR_4;
for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {
if (VAR_0[VAR_4] && !VAR_1[VAR_4]) {
av_freep(&VAR_0[VAR_4]);
} else if (VAR_1[VAR_4] && !VAR_0[VAR_4]) {
VAR_0[VAR_4] = av_malloc(VAR_3);
... | [
"static int FUNC_0(void **VAR_0, void **VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {",
"if (VAR_0[VAR_4] && !VAR_1[VAR_4]) {",
"av_freep(&VAR_0[VAR_4]);",
"} else if (VAR_1[VAR_4] && !VAR_0[VAR_4]) {",
"VAR_0[VAR_4] = av_malloc(VAR_3);",
"if (!VAR_0[VAR_4]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
27,
29
],
[
31
],
[
35
],
[
37
]
] |
18,792 | static int i2c_slave_qdev_init(DeviceState *dev)
{
I2CSlave *s = I2C_SLAVE(dev);
I2CSlaveClass *sc = I2C_SLAVE_GET_CLASS(s);
return sc->init(s);
}
| false | qemu | 9e41bade85ef338afd983c109368d1bbbe931f80 | static int i2c_slave_qdev_init(DeviceState *dev)
{
I2CSlave *s = I2C_SLAVE(dev);
I2CSlaveClass *sc = I2C_SLAVE_GET_CLASS(s);
return sc->init(s);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0)
{
I2CSlave *s = I2C_SLAVE(VAR_0);
I2CSlaveClass *sc = I2C_SLAVE_GET_CLASS(s);
return sc->init(s);
}
| [
"static int FUNC_0(DeviceState *VAR_0)\n{",
"I2CSlave *s = I2C_SLAVE(VAR_0);",
"I2CSlaveClass *sc = I2C_SLAVE_GET_CLASS(s);",
"return sc->init(s);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
]
] |
18,793 | static void vtd_iommu_replay(MemoryRegion *mr, IOMMUNotifier *n)
{
VTDAddressSpace *vtd_as = container_of(mr, VTDAddressSpace, iommu);
IntelIOMMUState *s = vtd_as->iommu_state;
uint8_t bus_n = pci_bus_num(vtd_as->bus);
VTDContextEntry ce;
if (vtd_dev_to_context_entry(s, bus_n, vtd_as->devfn,... | false | qemu | dd4d607e40dcd2cb7646b510504880a70939d91b | static void vtd_iommu_replay(MemoryRegion *mr, IOMMUNotifier *n)
{
VTDAddressSpace *vtd_as = container_of(mr, VTDAddressSpace, iommu);
IntelIOMMUState *s = vtd_as->iommu_state;
uint8_t bus_n = pci_bus_num(vtd_as->bus);
VTDContextEntry ce;
if (vtd_dev_to_context_entry(s, bus_n, vtd_as->devfn,... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegion *VAR_0, IOMMUNotifier *VAR_1)
{
VTDAddressSpace *vtd_as = container_of(VAR_0, VTDAddressSpace, iommu);
IntelIOMMUState *s = vtd_as->iommu_state;
uint8_t bus_n = pci_bus_num(vtd_as->bus);
VTDContextEntry ce;
if (vtd_dev_to_context_entry(s, bus_n, vtd_as->devfn,... | [
"static void FUNC_0(MemoryRegion *VAR_0, IOMMUNotifier *VAR_1)\n{",
"VTDAddressSpace *vtd_as = container_of(VAR_0, VTDAddressSpace, iommu);",
"IntelIOMMUState *s = vtd_as->iommu_state;",
"uint8_t bus_n = pci_bus_num(vtd_as->bus);",
"VTDContextEntry ce;",
"if (vtd_dev_to_context_entry(s, bus_n, vtd_as->dev... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
25,
27,
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
]
] |
18,794 | static void monitor_protocol_emitter(Monitor *mon, QObject *data,
QError *err)
{
QDict *qmp;
trace_monitor_protocol_emitter(mon);
if (!err) {
/* success response */
qmp = qdict_new();
if (data) {
qobject_incref(data);
... | false | qemu | 710aec915d208246891b68e2ba61b54951edc508 | static void monitor_protocol_emitter(Monitor *mon, QObject *data,
QError *err)
{
QDict *qmp;
trace_monitor_protocol_emitter(mon);
if (!err) {
qmp = qdict_new();
if (data) {
qobject_incref(data);
qdict_put_obj... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, QObject *VAR_1,
QError *VAR_2)
{
QDict *qmp;
trace_monitor_protocol_emitter(VAR_0);
if (!VAR_2) {
qmp = qdict_new();
if (VAR_1) {
qobject_incref(VAR_1);
qdict_put_obj(qmp, "... | [
"static void FUNC_0(Monitor *VAR_0, QObject *VAR_1,\nQError *VAR_2)\n{",
"QDict *qmp;",
"trace_monitor_protocol_emitter(VAR_0);",
"if (!VAR_2) {",
"qmp = qdict_new();",
"if (VAR_1) {",
"qobject_incref(VAR_1);",
"qdict_put_obj(qmp, \"return\", VAR_1);",
"} else {",
"qdict_put(qmp, \"return\", qdict... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
... |
18,796 | static int msi_msix_setup(XenPCIPassthroughState *s,
uint64_t addr,
uint32_t data,
int *ppirq,
bool is_msix,
int msix_entry,
bool is_not_mapped)
{
uint8... | false | qemu | 428c3ece97179557f2753071fb0ca97a03437267 | static int msi_msix_setup(XenPCIPassthroughState *s,
uint64_t addr,
uint32_t data,
int *ppirq,
bool is_msix,
int msix_entry,
bool is_not_mapped)
{
uint8... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenPCIPassthroughState *VAR_0,
uint64_t VAR_1,
uint32_t VAR_2,
int *VAR_3,
bool VAR_4,
int VAR_5,
bool VAR_6)
{
uint8_t gvec = msi_vec... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0,\nuint64_t VAR_1,\nuint32_t VAR_2,\nint *VAR_3,\nbool VAR_4,\nint VAR_5,\nbool VAR_6)\n{",
"uint8_t gvec = msi_vector(VAR_2);",
"int VAR_7 = 0;",
"assert((!VAR_4 && VAR_5 == 0) || VAR_4);",
"if (gvec == 0) {",
"*VAR_3 = msi_ext_dest_id(VAR_1 >> 32) | msi_de... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45,
47,
49
],
[
51
],
[
53
],
[
57
],
[
59
],
[
63
],
[
65
... |
18,797 | void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features)
{
int i, config_size = 0;
host_features |= (1 << VIRTIO_NET_F_MAC);
for (i = 0; feature_sizes[i].flags != 0; i++) {
if (host_features & feature_sizes[i].flags) {
config_size = MAX(feature_sizes[i].end, config_siz... | false | qemu | 0cd09c3a6cc2230ba38c462fc410b4acce59eb6f | void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features)
{
int i, config_size = 0;
host_features |= (1 << VIRTIO_NET_F_MAC);
for (i = 0; feature_sizes[i].flags != 0; i++) {
if (host_features & feature_sizes[i].flags) {
config_size = MAX(feature_sizes[i].end, config_siz... | {
"code": [],
"line_no": []
} | void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1)
{
int VAR_2, VAR_3 = 0;
VAR_1 |= (1 << VIRTIO_NET_F_MAC);
for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) {
if (VAR_1 & feature_sizes[VAR_2].flags) {
VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3);
}
}
VAR_0->... | [
"void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"VAR_1 |= (1 << VIRTIO_NET_F_MAC);",
"for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) {",
"if (VAR_1 & feature_sizes[VAR_2].flags) {",
"VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3);",
"}",
"}",
"VAR_0->VAR_3 = VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,798 | static void virtio_pci_vmstate_change(DeviceState *d, bool running)
{
VirtIOPCIProxy *proxy = to_virtio_pci_proxy(d);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
if (running) {
/* Try to find out if the guest has bus master disabled, but is
in ready state. Then we hav... | false | qemu | 4d43d3f3c8147ade184df9a1e9e82826edd39e19 | static void virtio_pci_vmstate_change(DeviceState *d, bool running)
{
VirtIOPCIProxy *proxy = to_virtio_pci_proxy(d);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
if (running) {
if ((vdev->status & VIRTIO_CONFIG_S_DRIVER_OK) &&
!(proxy->pci_dev.config[PCI_... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, bool VAR_1)
{
VirtIOPCIProxy *proxy = to_virtio_pci_proxy(VAR_0);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
if (VAR_1) {
if ((vdev->status & VIRTIO_CONFIG_S_DRIVER_OK) &&
!(proxy->pci_dev.config[PCI_COMMAND] & PCI_... | [
"static void FUNC_0(DeviceState *VAR_0, bool VAR_1)\n{",
"VirtIOPCIProxy *proxy = to_virtio_pci_proxy(VAR_0);",
"VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);",
"if (VAR_1) {",
"if ((vdev->status & VIRTIO_CONFIG_S_DRIVER_OK) &&\n!(proxy->pci_dev.config[PCI_COMMAND] & PCI_COMMAND_MASTER)) {",
"p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
18,800 | static void ide_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
int64_t sector_num;
uint64_t offset;
bool stay_active = false;
if (ret == -ECANCELED) {
return;
}
if (ret < 0) {
if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) {... | false | qemu | ef0e64a9838c0a20b5cb8a0bd2dcbcc59b0b812d | static void ide_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
int64_t sector_num;
uint64_t offset;
bool stay_active = false;
if (ret == -ECANCELED) {
return;
}
if (ret < 0) {
if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) {... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
IDEState *s = VAR_0;
int VAR_2;
int64_t sector_num;
uint64_t offset;
bool stay_active = false;
if (VAR_1 == -ECANCELED) {
return;
}
if (VAR_1 < 0) {
if (ide_handle_rw_error(s, -VAR_1, ide_dma_cmd_to_retry(s->dma_cm... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"IDEState *s = VAR_0;",
"int VAR_2;",
"int64_t sector_num;",
"uint64_t offset;",
"bool stay_active = false;",
"if (VAR_1 == -ECANCELED) {",
"return;",
"}",
"if (VAR_1 < 0) {",
"if (ide_handle_rw_error(s, -VAR_1, ide_dma_cmd_to_retry(s->dma_cmd))) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
49
],
[
51
... |
18,801 | SSIBus *ssi_create_bus(DeviceState *parent, const char *name)
{
BusState *bus;
bus = qbus_create(BUS_TYPE_SSI, sizeof(SSIBus), parent, name);
return FROM_QBUS(SSIBus, bus);
}
| false | qemu | 10c4c98ab7dc18169b37b76f6ea5e60ebe65222b | SSIBus *ssi_create_bus(DeviceState *parent, const char *name)
{
BusState *bus;
bus = qbus_create(BUS_TYPE_SSI, sizeof(SSIBus), parent, name);
return FROM_QBUS(SSIBus, bus);
}
| {
"code": [],
"line_no": []
} | SSIBus *FUNC_0(DeviceState *parent, const char *name)
{
BusState *bus;
bus = qbus_create(BUS_TYPE_SSI, sizeof(SSIBus), parent, name);
return FROM_QBUS(SSIBus, bus);
}
| [
"SSIBus *FUNC_0(DeviceState *parent, const char *name)\n{",
"BusState *bus;",
"bus = qbus_create(BUS_TYPE_SSI, sizeof(SSIBus), parent, name);",
"return FROM_QBUS(SSIBus, bus);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
18,802 | int ff_celp_lp_synthesis_filter(int16_t *out,
const int16_t* filter_coeffs,
const int16_t* in,
int buffer_length,
int filter_length,
int stop_on_overflow,
... | false | FFmpeg | b1ade3d1821a29174963b28cd0caa5f7ed394998 | int ff_celp_lp_synthesis_filter(int16_t *out,
const int16_t* filter_coeffs,
const int16_t* in,
int buffer_length,
int filter_length,
int stop_on_overflow,
... | {
"code": [],
"line_no": []
} | int FUNC_0(int16_t *VAR_0,
const int16_t* VAR_1,
const int16_t* VAR_2,
int VAR_3,
int VAR_4,
int VAR_5,
int VAR_6)
{
... | [
"int FUNC_0(int16_t *VAR_0,\nconst int16_t* VAR_1,\nconst int16_t* VAR_2,\nint VAR_3,\nint VAR_4,\nint VAR_5,\nint VAR_6)\n{",
"int VAR_7,VAR_8;",
"VAR_4++;",
"for (VAR_8 = 0; VAR_8 < VAR_3; VAR_8++) {",
"int VAR_9 = VAR_6;",
"for (VAR_7 = 1; VAR_7 < VAR_4; VAR_7++)",
"VAR_9 -= VAR_1[VAR_7-1] * VAR_0[VA... | [
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
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
]
] |
18,803 | ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb,
AVStream *st, RMStream *ast, int len, AVPacket *pkt,
int *seq, int flags, int64_t timestamp)
{
RMDemuxContext *rm = s->priv_data;
int ret;
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
rm->... | false | FFmpeg | 65b83ce01b94eae944290c11257799a9288f2d4c | ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb,
AVStream *st, RMStream *ast, int len, AVPacket *pkt,
int *seq, int flags, int64_t timestamp)
{
RMDemuxContext *rm = s->priv_data;
int ret;
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
rm->... | {
"code": [],
"line_no": []
} | FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1,
AVStream *VAR_2, RMStream *VAR_3, int VAR_4, AVPacket *VAR_5,
int *VAR_6, int VAR_7, int64_t VAR_8)
{
RMDemuxContext *rm = VAR_0->priv_data;
int VAR_9;
if (VAR_2->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
... | [
"FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVStream *VAR_2, RMStream *VAR_3, int VAR_4, AVPacket *VAR_5,\nint *VAR_6, int VAR_7, int64_t VAR_8)\n{",
"RMDemuxContext *rm = VAR_0->priv_data;",
"int VAR_9;",
"if (VAR_2->codec->codec_type == AVMEDIA_TYPE_VIDEO) {",
"rm->current_stream= VAR_2->id;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
],
[
51,... |
18,804 | static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int k;
unsigned int s[8];
unsigned int sx[8];
unsigned int sub_blocks, log2_sub_blocks, ... | false | FFmpeg | 114315994bc08812eeef51eaace455d86b5098d5 | static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int k;
unsigned int s[8];
unsigned int sx[8];
unsigned int sub_blocks, log2_sub_blocks, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)
{
ALSSpecificConfig *sconf = &VAR_0->sconf;
AVCodecContext *avctx = VAR_0->avctx;
GetBitContext *gb = &VAR_0->gb;
unsigned int VAR_17;
unsigned int VAR_3[8];
unsigned int VAR_4[8];
unsigned int VAR_5, VAR_6, VAR_7... | [
"static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)\n{",
"ALSSpecificConfig *sconf = &VAR_0->sconf;",
"AVCodecContext *avctx = VAR_0->avctx;",
"GetBitContext *gb = &VAR_0->gb;",
"unsigned int VAR_17;",
"unsigned int VAR_3[8];",
"unsigned int VAR_4[8];",
"unsigned int VAR_5, VAR_6, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
35
],
[
39
],
[
41
],
[
45
],
[
51
],
[
53
],
[
55
... |
18,805 | static inline void RENAME(yuv2packed1)(SwsContext *c, const uint16_t *buf0, const uint16_t *uvbuf0, const uint16_t *uvbuf1,
const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y)
{
const int yalpha1=0;
int i;
const uint16_t... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(yuv2packed1)(SwsContext *c, const uint16_t *buf0, const uint16_t *uvbuf0, const uint16_t *uvbuf1,
const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y)
{
const int yalpha1=0;
int i;
const uint16_t... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(yuv2packed1)(SwsContext *c, const uint16_t *buf0, const uint16_t *uvbuf0, const uint16_t *uvbuf1,
const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y)
{
const int VAR_0=0;
int VAR_1;
const uint16... | [
"static inline void FUNC_0(yuv2packed1)(SwsContext *c, const uint16_t *buf0, const uint16_t *uvbuf0, const uint16_t *uvbuf1,\nconst uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y)\n{",
"const int VAR_0=0;",
"int VAR_1;",
"const uint16_t *VAR_2= buf0;",
"c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43,
45,
47,
49,
51,
53,
55,
57,
61,... |
18,807 | static int flic_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
FlicDemuxContext *flic = s->priv_data;
ByteIOContext *pb = &s->pb;
unsigned char header[FLIC_HEADER_SIZE];
AVStream *st;
int speed;
int magic_number;
flic->pts = 0;
/* load... | false | FFmpeg | 77cb22fa7b3f632c16aa3d4e7aa7d47f9cd99f2c | static int flic_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
FlicDemuxContext *flic = s->priv_data;
ByteIOContext *pb = &s->pb;
unsigned char header[FLIC_HEADER_SIZE];
AVStream *st;
int speed;
int magic_number;
flic->pts = 0;
i... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
AVFormatParameters *VAR_1)
{
FlicDemuxContext *flic = VAR_0->priv_data;
ByteIOContext *pb = &VAR_0->pb;
unsigned char VAR_2[FLIC_HEADER_SIZE];
AVStream *st;
int VAR_3;
int VAR_4;
flic->pts = 0;
if (... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{",
"FlicDemuxContext *flic = VAR_0->priv_data;",
"ByteIOContext *pb = &VAR_0->pb;",
"unsigned char VAR_2[FLIC_HEADER_SIZE];",
"AVStream *st;",
"int VAR_3;",
"int VAR_4;",
"flic->pts = 0;",
"if (get_buffer(pb, VAR_2, FLIC_HEADER... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
27,
29
],
[
33
],
[
35
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
18,808 | static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
{
char val_str[128];
int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1;
writer_print_section_header(w, SECTION_ID_FORMAT);
print_str("filename", fmt_ctx->filename);
print_int("nb_streams", fmt_ctx->nb_st... | false | FFmpeg | e87190f5d20d380608f792ceb14d0def1d80e24b | static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
{
char val_str[128];
int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1;
writer_print_section_header(w, SECTION_ID_FORMAT);
print_str("filename", fmt_ctx->filename);
print_int("nb_streams", fmt_ctx->nb_st... | {
"code": [],
"line_no": []
} | static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1)
{
char VAR_2[128];
int64_t size = VAR_1->pb ? avio_size(VAR_1->pb) : -1;
writer_print_section_header(VAR_0, SECTION_ID_FORMAT);
print_str("filename", VAR_1->filename);
print_int("nb_streams", VAR_1->nb_streams);
... | [
"static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1)\n{",
"char VAR_2[128];",
"int64_t size = VAR_1->pb ? avio_size(VAR_1->pb) : -1;",
"writer_print_section_header(VAR_0, SECTION_ID_FORMAT);",
"print_str(\"filename\", VAR_1->filename);",
"print_int(\"nb_streams\", VAR_1->nb_stre... | [
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... |
18,809 | static void flush_encoders(OutputStream *ost_table, int nb_ostreams)
{
int i, ret;
for (i = 0; i < nb_ostreams; i++) {
OutputStream *ost = &ost_table[i];
AVCodecContext *enc = ost->st->codec;
AVFormatContext *os = output_files[ost->file_index].ctx;
if (!ost->encoding... | false | FFmpeg | 150ddbc1482c65b9aac803f011d7fcd734f776ec | static void flush_encoders(OutputStream *ost_table, int nb_ostreams)
{
int i, ret;
for (i = 0; i < nb_ostreams; i++) {
OutputStream *ost = &ost_table[i];
AVCodecContext *enc = ost->st->codec;
AVFormatContext *os = output_files[ost->file_index].ctx;
if (!ost->encoding... | {
"code": [],
"line_no": []
} | static void FUNC_0(OutputStream *VAR_0, int VAR_1)
{
int VAR_2, VAR_3;
for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {
OutputStream *ost = &VAR_0[VAR_2];
AVCodecContext *enc = ost->st->codec;
AVFormatContext *os = output_files[ost->file_index].ctx;
if (!ost->encoding_neede... | [
"static void FUNC_0(OutputStream *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3;",
"for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {",
"OutputStream *ost = &VAR_0[VAR_2];",
"AVCodecContext *enc = ost->st->codec;",
"AVFormatContext *os = output_files[ost->file_index].ctx;",
"if (!ost->encoding_needed)\ncontinue;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
53
],
[
57... |
18,810 | static int mkv_write_chapters(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *pb = s->pb;
ebml_master chapters, editionentry;
AVRational scale = {1, 1E9};
int i, ret;
if (!s->nb_chapters || mkv->wrote_chapters)
return 0;
ret = mkv_add_seekhead_... | false | FFmpeg | 5dc47a2bd52e375ed742c45d08356b45098f458d | static int mkv_write_chapters(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *pb = s->pb;
ebml_master chapters, editionentry;
AVRational scale = {1, 1E9};
int i, ret;
if (!s->nb_chapters || mkv->wrote_chapters)
return 0;
ret = mkv_add_seekhead_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MatroskaMuxContext *mkv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
ebml_master chapters, editionentry;
AVRational scale = {1, 1E9};
int VAR_1, VAR_2;
if (!VAR_0->nb_chapters || mkv->wrote_chapters)
return 0;
VAR_2 = mkv_a... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MatroskaMuxContext *mkv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"ebml_master chapters, editionentry;",
"AVRational scale = {1, 1E9};",
"int VAR_1, VAR_2;",
"if (!VAR_0->nb_chapters || mkv->wrote_chapters)\nreturn 0;",
"VAR_2 = mkv_add_seek... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
18,811 | static uint64_t ppc_hash64_page_shift(ppc_slb_t *slb)
{
uint64_t epnshift;
/* Page size according to the SLB, which we use to generate the
* EPN for hash table lookup.. When we implement more recent MMU
* extensions this might be different from the actual page size
* encoded in the PTE *... | true | qemu | cd6a9bb6e977864b1b7ec21b983fa0678b4b82e9 | static uint64_t ppc_hash64_page_shift(ppc_slb_t *slb)
{
uint64_t epnshift;
if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_4K) {
epnshift = TARGET_PAGE_BITS;
} else if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_64K) {
epnshift = TARGET_PAGE_BITS_64K;
} else {
... | {
"code": [
"static uint64_t ppc_hash64_page_shift(ppc_slb_t *slb)",
" uint64_t epnshift;",
" if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_4K) {",
" epnshift = TARGET_PAGE_BITS;",
" } else if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_64K) {",
" epnshift = TARGET_PA... | static uint64_t FUNC_0(ppc_slb_t *slb)
{
uint64_t epnshift;
if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_4K) {
epnshift = TARGET_PAGE_BITS;
} else if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_64K) {
epnshift = TARGET_PAGE_BITS_64K;
} else {
epnshift = ... | [
"static uint64_t FUNC_0(ppc_slb_t *slb)\n{",
"uint64_t epnshift;",
"if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_4K) {",
"epnshift = TARGET_PAGE_BITS;",
"} else if ((slb->vsid & SLB_VSID_LLP_MASK) == SLB_VSID_64K) {",
"epnshift = TARGET_PAGE_BITS_64K;",
"} else {",
"epnshift = TARGET_PAGE_BITS_16M;... | [
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
18,813 | static av_always_inline void filter_mb_row(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr, int is_vp7)
{
VP8Context *s = avctx->priv_data;
VP8ThreadData *td = &s->thread_data[threadnr];
int mb_x, mb_y = td->thread_mb_pos >> 16, num_jobs = s->num_jobs;
AVF... | true | FFmpeg | 9a54c6f243412f62bae498ddcac337cb18ae6290 | static av_always_inline void filter_mb_row(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr, int is_vp7)
{
VP8Context *s = avctx->priv_data;
VP8ThreadData *td = &s->thread_data[threadnr];
int mb_x, mb_y = td->thread_mb_pos >> 16, num_jobs = s->num_jobs;
AVF... | {
"code": [
" int mb_x, mb_y = td->thread_mb_pos >> 16, num_jobs = s->num_jobs;"
],
"line_no": [
11
]
} | static av_always_inline void FUNC_0(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr, int is_vp7)
{
VP8Context *s = avctx->priv_data;
VP8ThreadData *td = &s->thread_data[threadnr];
int VAR_0, VAR_1 = td->thread_mb_pos >> 16, VAR_2 = s->VAR_2;
AVFrame *curfr... | [
"static av_always_inline void FUNC_0(AVCodecContext *avctx, void *tdata,\nint jobnr, int threadnr, int is_vp7)\n{",
"VP8Context *s = avctx->priv_data;",
"VP8ThreadData *td = &s->thread_data[threadnr];",
"int VAR_0, VAR_1 = td->thread_mb_pos >> 16, VAR_2 = s->VAR_2;",
"AVFrame *curframe = s->curframe->tf.f;"... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27
],
[
31,
33
],
[
35,
37
],
[
41,
43
],
[
45,
47
],
[
49,
51
],
[
53,
55
... |
18,815 | static int decode_frame(FLACContext *s)
{
int i, ret;
GetBitContext *gb = &s->gb;
FLACFrameInfo fi;
if ((ret = ff_flac_decode_frame_header(s->avctx, gb, &fi, 0)) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "invalid frame header\n");
return ret;
}
if (s->channels && fi.chan... | false | FFmpeg | e5c01ccdf5a9a330d4c51a9b9ea721fd8f1fb70b | static int decode_frame(FLACContext *s)
{
int i, ret;
GetBitContext *gb = &s->gb;
FLACFrameInfo fi;
if ((ret = ff_flac_decode_frame_header(s->avctx, gb, &fi, 0)) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "invalid frame header\n");
return ret;
}
if (s->channels && fi.chan... | {
"code": [],
"line_no": []
} | static int FUNC_0(FLACContext *VAR_0)
{
int VAR_1, VAR_2;
GetBitContext *gb = &VAR_0->gb;
FLACFrameInfo fi;
if ((VAR_2 = ff_flac_decode_frame_header(VAR_0->avctx, gb, &fi, 0)) < 0) {
av_log(VAR_0->avctx, AV_LOG_ERROR, "invalid frame header\n");
return VAR_2;
}
if (VA... | [
"static int FUNC_0(FLACContext *VAR_0)\n{",
"int VAR_1, VAR_2;",
"GetBitContext *gb = &VAR_0->gb;",
"FLACFrameInfo fi;",
"if ((VAR_2 = ff_flac_decode_frame_header(VAR_0->avctx, gb, &fi, 0)) < 0) {",
"av_log(VAR_0->avctx, AV_LOG_ERROR, \"invalid frame header\\n\");",
"return VAR_2;",
"}",
"if (VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
... |
18,816 | static void invalid_array_comma(void)
{
QObject *obj = qobject_from_json("[32,}", NULL);
g_assert(obj == NULL);
}
| true | qemu | aec4b054ea36c53c8b887da99f20010133b84378 | static void invalid_array_comma(void)
{
QObject *obj = qobject_from_json("[32,}", NULL);
g_assert(obj == NULL);
}
| {
"code": [
" QObject *obj = qobject_from_json(\"[32,}\", NULL);"
],
"line_no": [
5
]
} | static void FUNC_0(void)
{
QObject *obj = qobject_from_json("[32,}", NULL);
g_assert(obj == NULL);
}
| [
"static void FUNC_0(void)\n{",
"QObject *obj = qobject_from_json(\"[32,}\", NULL);",
"g_assert(obj == NULL);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,817 | static void vmxnet3_ack_events(VMXNET3State *s, uint32_t val)
{
uint32_t events;
VMW_CBPRN("Clearing events: 0x%x", val);
events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) & ~val;
VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);
}
| true | qemu | c508277335e3b6b20cf18e6ea3a35c1fa835c64a | static void vmxnet3_ack_events(VMXNET3State *s, uint32_t val)
{
uint32_t events;
VMW_CBPRN("Clearing events: 0x%x", val);
events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) & ~val;
VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);
}
| {
"code": [
" VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);",
" events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) & ~val;",
" VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);"
],
"line_no": [
13,
11,
13
]
} | static void FUNC_0(VMXNET3State *VAR_0, uint32_t VAR_1)
{
uint32_t events;
VMW_CBPRN("Clearing events: 0x%x", VAR_1);
events = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, ecr) & ~VAR_1;
VMXNET3_WRITE_DRV_SHARED32(VAR_0->drv_shmem, ecr, events);
}
| [
"static void FUNC_0(VMXNET3State *VAR_0, uint32_t VAR_1)\n{",
"uint32_t events;",
"VMW_CBPRN(\"Clearing events: 0x%x\", VAR_1);",
"events = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, ecr) & ~VAR_1;",
"VMXNET3_WRITE_DRV_SHARED32(VAR_0->drv_shmem, ecr, events);",
"}"
] | [
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,818 | static void grlib_gptimer_enable(GPTimer *timer)
{
assert(timer != NULL);
ptimer_stop(timer->ptimer);
if (!(timer->config & GPTIMER_ENABLE)) {
/* Timer disabled */
trace_grlib_gptimer_disabled(timer->id, timer->config);
return;
}
/* ptimer is triggered when t... | true | qemu | 9d5614d582d23ec96b167583557bf3f25f64f050 | static void grlib_gptimer_enable(GPTimer *timer)
{
assert(timer != NULL);
ptimer_stop(timer->ptimer);
if (!(timer->config & GPTIMER_ENABLE)) {
trace_grlib_gptimer_disabled(timer->id, timer->config);
return;
}
trace_grlib_gptimer_enable(timer->id, t... | {
"code": [
" trace_grlib_gptimer_enable(timer->id, timer->counter + 1);",
" ptimer_set_count(timer->ptimer, timer->counter + 1);"
],
"line_no": [
33,
37
]
} | static void FUNC_0(GPTimer *VAR_0)
{
assert(VAR_0 != NULL);
ptimer_stop(VAR_0->ptimer);
if (!(VAR_0->config & GPTIMER_ENABLE)) {
trace_grlib_gptimer_disabled(VAR_0->id, VAR_0->config);
return;
}
trace_grlib_gptimer_enable(VAR_0->id, VAR_0->counter ... | [
"static void FUNC_0(GPTimer *VAR_0)\n{",
"assert(VAR_0 != NULL);",
"ptimer_stop(VAR_0->ptimer);",
"if (!(VAR_0->config & GPTIMER_ENABLE)) {",
"trace_grlib_gptimer_disabled(VAR_0->id, VAR_0->config);",
"return;",
"}",
"trace_grlib_gptimer_enable(VAR_0->id, VAR_0->counter + 1);",
"ptimer_set_count(VAR... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
33
],
[
37
],
[
39
],
[
41
]
] |
18,821 | static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len,
char *dst, int dstlen)
{
char *p = dst;
char *end = dst+dstlen-1;
int i;
for (i = 0; i < len; i++) {
uint8_t t, c = avio_r8(pb);
if (c < 0x80 && p < end)
*p++ = c... | true | FFmpeg | 46191a2da16f751e53d93646ae1388d421d12bee | static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len,
char *dst, int dstlen)
{
char *p = dst;
char *end = dst+dstlen-1;
int i;
for (i = 0; i < len; i++) {
uint8_t t, c = avio_r8(pb);
if (c < 0x80 && p < end)
*p++ = c... | {
"code": [
" if (c < 0x80 && p < end)"
],
"line_no": [
19
]
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2,
char *VAR_3, int VAR_4)
{
char *VAR_5 = VAR_3;
char *VAR_6 = VAR_3+VAR_4-1;
int VAR_7;
for (VAR_7 = 0; VAR_7 < VAR_2; VAR_7++) {
uint8_t t, VAR_0 = avio_r8(VAR_1);
if (VAR_0 < 0x8... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2,\nchar *VAR_3, int VAR_4)\n{",
"char *VAR_5 = VAR_3;",
"char *VAR_6 = VAR_3+VAR_4-1;",
"int VAR_7;",
"for (VAR_7 = 0; VAR_7 < VAR_2; VAR_7++) {",
"uint8_t t, VAR_0 = avio_r8(VAR_1);",
"if (VAR_0 < 0x80 && VAR_5 < VAR_6)\n*VAR_5++ = VAR_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
18,822 | altivec_yuv2packedX (SwsContext *c,
int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, int dstW, int dstY)
{
int i,j;
vector signed short X,X0,X1,Y0,U0,V0,Y1,U1,V1,U,V;
vector signed short R0,G0,B0,R1,G... | true | FFmpeg | 428098165de4c3edfe42c1b7f00627d287015863 | altivec_yuv2packedX (SwsContext *c,
int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, int dstW, int dstY)
{
int i,j;
vector signed short X,X0,X1,Y0,U0,V0,Y1,U1,V1,U,V;
vector signed short R0,G0,B0,R1,G... | {
"code": [
" int i,j;",
" vector unsigned char R,G,B;",
" int i,j;",
"\t\t int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,",
"\t\t int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,",
"\t\t uint8_t *dest, int dstW, int dstY)",
" int i,j;",
" vecto... | FUNC_0 (SwsContext *VAR_0,
int16_t *VAR_1, int16_t **VAR_2, int VAR_3,
int16_t *VAR_4, int16_t **VAR_5, int VAR_6,
uint8_t *VAR_7, int VAR_8, int VAR_9)
{
int VAR_10,VAR_11;
vector signed short X,X0,X1,Y0,U0,V0,Y1,U1,V1,U,V;
vector signed short R0,G0,B0,R1,G1,B1;
vector unsi... | [
"FUNC_0 (SwsContext *VAR_0,\nint16_t *VAR_1, int16_t **VAR_2, int VAR_3,\nint16_t *VAR_4, int16_t **VAR_5, int VAR_6,\nuint8_t *VAR_7, int VAR_8, int VAR_9)\n{",
"int VAR_10,VAR_11;",
"vector signed short X,X0,X1,Y0,U0,V0,Y1,U1,V1,U,V;",
"vector signed short R0,G0,B0,R1,G1,B1;",
"vector unsigned char R,G,B;... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[... |
18,823 | int unix_listen_opts(QemuOpts *opts, Error **errp)
{
struct sockaddr_un un;
const char *path = qemu_opt_get(opts, "path");
int sock, fd;
sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0);
if (sock < 0) {
error_setg_errno(errp, errno, "Failed to create Unix socket");
return -1;
... | true | qemu | a2f31f180499593b5edb8ac5ab8ac1b92f0abcd4 | int unix_listen_opts(QemuOpts *opts, Error **errp)
{
struct sockaddr_un un;
const char *path = qemu_opt_get(opts, "path");
int sock, fd;
sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0);
if (sock < 0) {
error_setg_errno(errp, errno, "Failed to create Unix socket");
return -1;
... | {
"code": [
" if ((access(un.sun_path, F_OK) == 0) &&",
" unlink(un.sun_path) < 0) {"
],
"line_no": [
87,
89
]
} | int FUNC_0(QemuOpts *VAR_0, Error **VAR_1)
{
struct sockaddr_un VAR_2;
const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3");
int VAR_4, VAR_5;
VAR_4 = qemu_socket(PF_UNIX, SOCK_STREAM, 0);
if (VAR_4 < 0) {
error_setg_errno(VAR_1, errno, "Failed to create Unix socket");
return -... | [
"int FUNC_0(QemuOpts *VAR_0, Error **VAR_1)\n{",
"struct sockaddr_un VAR_2;",
"const char *VAR_3 = qemu_opt_get(VAR_0, \"VAR_3\");",
"int VAR_4, VAR_5;",
"VAR_4 = qemu_socket(PF_UNIX, SOCK_STREAM, 0);",
"if (VAR_4 < 0) {",
"error_setg_errno(VAR_1, errno, \"Failed to create Unix socket\");",
"return -1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
... |
18,824 | static void rv40_h_strong_loop_filter(uint8_t *src, const int stride,
const int alpha, const int lims,
const int dmode, const int chroma)
{
rv40_strong_loop_filter(src, stride, 1, alpha, lims, dmode, chroma);
}
| true | FFmpeg | 3ab9a2a5577d445252724af4067d2a7c8a378efa | static void rv40_h_strong_loop_filter(uint8_t *src, const int stride,
const int alpha, const int lims,
const int dmode, const int chroma)
{
rv40_strong_loop_filter(src, stride, 1, alpha, lims, dmode, chroma);
}
| {
"code": [
"static void rv40_h_strong_loop_filter(uint8_t *src, const int stride,"
],
"line_no": [
1
]
} | static void FUNC_0(uint8_t *VAR_0, const int VAR_1,
const int VAR_2, const int VAR_3,
const int VAR_4, const int VAR_5)
{
rv40_strong_loop_filter(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4, VAR_5);
}
| [
"static void FUNC_0(uint8_t *VAR_0, const int VAR_1,\nconst int VAR_2, const int VAR_3,\nconst int VAR_4, const int VAR_5)\n{",
"rv40_strong_loop_filter(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4, VAR_5);",
"}"
] | [
1,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
]
] |
18,825 | static void copy_frame(J2kEncoderContext *s)
{
int tileno, compno, i, y, x;
uint8_t *line;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++){
J2kTile *tile = s->tile + tileno;
if (s->planar){
for (compno = 0; compno < s->ncomponents; compno++){
... | true | FFmpeg | e6aed5f404a0983b2971c90e9022f6964a75de0b | static void copy_frame(J2kEncoderContext *s)
{
int tileno, compno, i, y, x;
uint8_t *line;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++){
J2kTile *tile = s->tile + tileno;
if (s->planar){
for (compno = 0; compno < s->ncomponents; compno++){
... | {
"code": [
" line = s->picture->data[compno]",
" + comp->coord[1][0] * s->picture->linesize[compno]",
" line += s->picture->linesize[compno];",
" line = s->picture->data[0] + tile->comp[0].coord[1][0] * s->picture->linesize[0]",
"... | static void FUNC_0(J2kEncoderContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;
uint8_t *line;
for (VAR_1 = 0; VAR_1 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_1++){
J2kTile *tile = VAR_0->tile + VAR_1;
if (VAR_0->planar){
for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; ... | [
"static void FUNC_0(J2kEncoderContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;",
"uint8_t *line;",
"for (VAR_1 = 0; VAR_1 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_1++){",
"J2kTile *tile = VAR_0->tile + VAR_1;",
"if (VAR_0->planar){",
"for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; VAR_2++){",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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,... |
18,826 | static void migrate_fd_cleanup(void *opaque)
{
MigrationState *s = opaque;
qemu_bh_delete(s->cleanup_bh);
s->cleanup_bh = NULL;
if (s->file) {
trace_migrate_fd_cleanup();
qemu_mutex_unlock_iothread();
qemu_thread_join(&s->thread);
qemu_mutex_lock_iothread();
... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void migrate_fd_cleanup(void *opaque)
{
MigrationState *s = opaque;
qemu_bh_delete(s->cleanup_bh);
s->cleanup_bh = NULL;
if (s->file) {
trace_migrate_fd_cleanup();
qemu_mutex_unlock_iothread();
qemu_thread_join(&s->thread);
qemu_mutex_lock_iothread();
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
MigrationState *s = VAR_0;
qemu_bh_delete(s->cleanup_bh);
s->cleanup_bh = NULL;
if (s->file) {
trace_migrate_fd_cleanup();
qemu_mutex_unlock_iothread();
qemu_thread_join(&s->thread);
qemu_mutex_lock_iothread();
qem... | [
"static void FUNC_0(void *VAR_0)\n{",
"MigrationState *s = VAR_0;",
"qemu_bh_delete(s->cleanup_bh);",
"s->cleanup_bh = NULL;",
"if (s->file) {",
"trace_migrate_fd_cleanup();",
"qemu_mutex_unlock_iothread();",
"qemu_thread_join(&s->thread);",
"qemu_mutex_lock_iothread();",
"qemu_fclose(s->file);",
... | [
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
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53... |
18,827 | static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)
{
UHCIAsync *curr, *n;
QTAILQ_FOREACH_SAFE(curr, &s->async_pending, next, n) {
if (curr->packet.owner == NULL ||
curr->packet.owner->dev != dev) {
continue;
}
uhci_async_unlink(s, curr);
... | true | qemu | f53c398aa603cea135ee58fd15249aeff7b9c7ea | static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev)
{
UHCIAsync *curr, *n;
QTAILQ_FOREACH_SAFE(curr, &s->async_pending, next, n) {
if (curr->packet.owner == NULL ||
curr->packet.owner->dev != dev) {
continue;
}
uhci_async_unlink(s, curr);
... | {
"code": [
" if (curr->packet.owner == NULL ||",
" curr->packet.owner->dev != dev) {"
],
"line_no": [
11,
13
]
} | static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)
{
UHCIAsync *curr, *n;
QTAILQ_FOREACH_SAFE(curr, &VAR_0->async_pending, next, n) {
if (curr->packet.owner == NULL ||
curr->packet.owner->VAR_1 != VAR_1) {
continue;
}
uhci_async_unlink(VAR_0, curr);
... | [
"static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)\n{",
"UHCIAsync *curr, *n;",
"QTAILQ_FOREACH_SAFE(curr, &VAR_0->async_pending, next, n) {",
"if (curr->packet.owner == NULL ||\ncurr->packet.owner->VAR_1 != VAR_1) {",
"continue;",
"}",
"uhci_async_unlink(VAR_0, curr);",
"uhci_async_cancel(VAR_0,... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
18,829 | static TraceEvent* find_trace_event_by_name(const char *tname)
{
unsigned int i;
if (!tname) {
return NULL;
}
for (i = 0; i < NR_TRACE_EVENTS; i++) {
if (!strcmp(trace_list[i].tp_name, tname)) {
return &trace_list[i];
}
}
return NULL; /* indicat... | true | qemu | 0b5538c300a56c3cfb33022840fe0b4968147e7a | static TraceEvent* find_trace_event_by_name(const char *tname)
{
unsigned int i;
if (!tname) {
return NULL;
}
for (i = 0; i < NR_TRACE_EVENTS; i++) {
if (!strcmp(trace_list[i].tp_name, tname)) {
return &trace_list[i];
}
}
return NULL;
}
| {
"code": [
"static TraceEvent* find_trace_event_by_name(const char *tname)",
" if (!tname) {",
" return NULL;",
" if (!strcmp(trace_list[i].tp_name, tname)) {",
" return &trace_list[i];"
],
"line_no": [
1,
9,
11,
19,
21
]
} | static TraceEvent* FUNC_0(const char *tname)
{
unsigned int VAR_0;
if (!tname) {
return NULL;
}
for (VAR_0 = 0; VAR_0 < NR_TRACE_EVENTS; VAR_0++) {
if (!strcmp(trace_list[VAR_0].tp_name, tname)) {
return &trace_list[VAR_0];
}
}
return NULL;
}
| [
"static TraceEvent* FUNC_0(const char *tname)\n{",
"unsigned int VAR_0;",
"if (!tname) {",
"return NULL;",
"}",
"for (VAR_0 = 0; VAR_0 < NR_TRACE_EVENTS; VAR_0++) {",
"if (!strcmp(trace_list[VAR_0].tp_name, tname)) {",
"return &trace_list[VAR_0];",
"}",
"}",
"return NULL;",
"}"
] | [
1,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
18,831 | i2c_slave *twl92230_init(i2c_bus *bus, qemu_irq irq)
{
struct menelaus_s *s = (struct menelaus_s *)
i2c_slave_init(bus, 0, sizeof(struct menelaus_s));
s->i2c.event = menelaus_event;
s->i2c.recv = menelaus_rx;
s->i2c.send = menelaus_tx;
s->irq = irq;
s->rtc.hz = qemu_new_t... | true | qemu | b0f74c87a1dbd6b0c5e4de7f1c5cb40197e3fbe9 | i2c_slave *twl92230_init(i2c_bus *bus, qemu_irq irq)
{
struct menelaus_s *s = (struct menelaus_s *)
i2c_slave_init(bus, 0, sizeof(struct menelaus_s));
s->i2c.event = menelaus_event;
s->i2c.recv = menelaus_rx;
s->i2c.send = menelaus_tx;
s->irq = irq;
s->rtc.hz = qemu_new_t... | {
"code": [
" s->rtc.hz = qemu_new_timer(rt_clock, menelaus_rtc_hz, s);"
],
"line_no": [
21
]
} | i2c_slave *FUNC_0(i2c_bus *bus, qemu_irq irq)
{
struct menelaus_s *VAR_0 = (struct menelaus_s *)
i2c_slave_init(bus, 0, sizeof(struct menelaus_s));
VAR_0->i2c.event = menelaus_event;
VAR_0->i2c.recv = menelaus_rx;
VAR_0->i2c.send = menelaus_tx;
VAR_0->irq = irq;
VAR_0->rt... | [
"i2c_slave *FUNC_0(i2c_bus *bus, qemu_irq irq)\n{",
"struct menelaus_s *VAR_0 = (struct menelaus_s *)\ni2c_slave_init(bus, 0, sizeof(struct menelaus_s));",
"VAR_0->i2c.event = menelaus_event;",
"VAR_0->i2c.recv = menelaus_rx;",
"VAR_0->i2c.send = menelaus_tx;",
"VAR_0->irq = irq;",
"VAR_0->rtc.hz = qemu... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
37
],
[
39
]
] |
18,832 | static int av_seek_frame_generic(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
int index;
AVStream *st;
AVIndexEntry *ie;
st = s->streams[stream_index];
index = av_index_search_timestamp(st, timestamp, flags);
if(index < 0 ||... | false | FFmpeg | aaec4e03e91f3f301d5720429a5da99b44e7e1bb | static int av_seek_frame_generic(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
int index;
AVStream *st;
AVIndexEntry *ie;
st = s->streams[stream_index];
index = av_index_search_timestamp(st, timestamp, flags);
if(index < 0 ||... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
int VAR_1, int64_t VAR_2, int VAR_3)
{
int VAR_4;
AVStream *st;
AVIndexEntry *ie;
st = VAR_0->streams[VAR_1];
VAR_4 = av_index_search_timestamp(st, VAR_2, VAR_3);
if(VAR_4 < 0 || VAR_4==st->nb_index_entries-... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nint VAR_1, int64_t VAR_2, int VAR_3)\n{",
"int VAR_4;",
"AVStream *st;",
"AVIndexEntry *ie;",
"st = VAR_0->streams[VAR_1];",
"VAR_4 = av_index_search_timestamp(st, VAR_2, VAR_3);",
"if(VAR_4 < 0 || VAR_4==st->nb_index_entries-1){",
"int VAR_5;",
"AVPacket ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51,
53
... |
18,835 | static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
{
struct ogg *ogg;
struct ogg_stream *os;
int idx, ret;
int pstart, psize;
int64_t fpos, pts, dts;
if (s->io_repositioned) {
ogg_reset(s);
s->io_repositioned = 0;
//Get an ogg packet
retry:
do ... | true | FFmpeg | c1b24ca762cba20236190cd7b24e84a9ad788bcb | static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
{
struct ogg *ogg;
struct ogg_stream *os;
int idx, ret;
int pstart, psize;
int64_t fpos, pts, dts;
if (s->io_repositioned) {
ogg_reset(s);
s->io_repositioned = 0;
retry:
do {
ret = og... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
struct VAR_2 *VAR_2;
struct ogg_stream *VAR_3;
int VAR_4, VAR_5;
int VAR_6, VAR_7;
int64_t fpos, pts, dts;
if (VAR_0->io_repositioned) {
ogg_reset(VAR_0);
VAR_0->io_repositioned = 0;
retry:
do ... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"struct VAR_2 *VAR_2;",
"struct ogg_stream *VAR_3;",
"int VAR_4, VAR_5;",
"int VAR_6, VAR_7;",
"int64_t fpos, pts, dts;",
"if (VAR_0->io_repositioned) {",
"ogg_reset(VAR_0);",
"VAR_0->io_repositioned = 0;",
"retry:\ndo {",
"VAR_5 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
28,
30
],
[
32
],
[
34,
36
],
[
38
],
[
42
],
[
44
],
[
50
],
[
52
],
[
56,
58
],
[... |
18,836 | static void slirp_cleanup(void)
{
WSACleanup();
}
| true | qemu | df46189412567906312684eb72ba87c6a86a4cdb | static void slirp_cleanup(void)
{
WSACleanup();
}
| {
"code": [
"static void slirp_cleanup(void)",
" WSACleanup();"
],
"line_no": [
1,
5
]
} | static void FUNC_0(void)
{
WSACleanup();
}
| [
"static void FUNC_0(void)\n{",
"WSACleanup();",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,837 | static int read_sl_header(PESContext *pes, SLConfigDescr *sl,
const uint8_t *buf, int buf_size)
{
GetBitContext gb;
int au_start_flag = 0, au_end_flag = 0, ocr_flag = 0, idle_flag = 0;
int padding_flag = 0, padding_bits = 0, inst_bitrate_flag = 0;
int dts_flag = -1, cts_f... | true | FFmpeg | 27f6da292118850ca7900de64d06b56e0ebb5070 | static int read_sl_header(PESContext *pes, SLConfigDescr *sl,
const uint8_t *buf, int buf_size)
{
GetBitContext gb;
int au_start_flag = 0, au_end_flag = 0, ocr_flag = 0, idle_flag = 0;
int padding_flag = 0, padding_bits = 0, inst_bitrate_flag = 0;
int dts_flag = -1, cts_f... | {
"code": [
" init_get_bits(&gb, buf, buf_size * 8);"
],
"line_no": [
19
]
} | static int FUNC_0(PESContext *VAR_0, SLConfigDescr *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
GetBitContext gb;
int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0;
int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0;
int VAR_11 = -1, VAR_12 = -1;
int64_t dts = AV_NOPTS_VALUE, cts = AV_... | [
"static int FUNC_0(PESContext *VAR_0, SLConfigDescr *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"GetBitContext gb;",
"int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7 = 0;",
"int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0;",
"int VAR_11 = -1, VAR_12 = -1;",
"int64_t dts = AV_NOPTS_VALUE, cts = AV_NOPTS_VALUE;",
"ini... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
47,
49
],
[
53
],
[
55,... |
18,839 | static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal)
{
HEVCLocalContext *lc = s->HEVClc;
GetBitContext *gb = &lc->gb;
int ctb_addr_ts, ret;
*gb = nal->gb;
s->nal_unit_type = nal->type;
s->temporal_id = nal->temporal_id;
switch (s->nal_unit_type) {
... | true | FFmpeg | 1f50baa2b2da7fdbfccf0662883f38a763ff6619 | static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal)
{
HEVCLocalContext *lc = s->HEVClc;
GetBitContext *gb = &lc->gb;
int ctb_addr_ts, ret;
*gb = nal->gb;
s->nal_unit_type = nal->type;
s->temporal_id = nal->temporal_id;
switch (s->nal_unit_type) {
... | {
"code": [
" if (s->max_ra == INT_MAX) {",
" if (s->nal_unit_type == HEVC_NAL_CRA_NUT || IS_BLA(s)) {",
" s->max_ra = s->poc;",
" if (IS_IDR(s))",
" if ((s->nal_unit_type == HEVC_NAL_RASL_R || s->nal_unit_type == HEVC_NAL_RASL_N) &&",
" ... | static int FUNC_0(HEVCContext *VAR_0, const H2645NAL *VAR_1)
{
HEVCLocalContext *lc = VAR_0->HEVClc;
GetBitContext *gb = &lc->gb;
int VAR_2, VAR_3;
*gb = VAR_1->gb;
VAR_0->nal_unit_type = VAR_1->type;
VAR_0->temporal_id = VAR_1->temporal_id;
switch (VAR_0->nal_u... | [
"static int FUNC_0(HEVCContext *VAR_0, const H2645NAL *VAR_1)\n{",
"HEVCLocalContext *lc = VAR_0->HEVClc;",
"GetBitContext *gb = &lc->gb;",
"int VAR_2, VAR_3;",
"*gb = VAR_1->gb;",
"VAR_0->nal_unit_type = VAR_1->type;",
"VAR_0->temporal_id = VAR_1->temporal_id;",
"switch (VAR_0->nal_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
1,
0,
0,
1,
1,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35,
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[... |
18,840 | static bool gen_rsr_ccount(DisasContext *dc, TCGv_i32 d, uint32_t sr)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_update_ccount(cpu_env);
tcg_gen_mov_i32(d, cpu_SR[sr]);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
return true;
}
... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static bool gen_rsr_ccount(DisasContext *dc, TCGv_i32 d, uint32_t sr)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_update_ccount(cpu_env);
tcg_gen_mov_i32(d, cpu_SR[sr]);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
return true;
}
... | {
"code": [
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if ... | static bool FUNC_0(DisasContext *dc, TCGv_i32 d, uint32_t sr)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_update_ccount(cpu_env);
tcg_gen_mov_i32(d, cpu_SR[sr]);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
return true;
}
ret... | [
"static bool FUNC_0(DisasContext *dc, TCGv_i32 d, uint32_t sr)\n{",
"if (dc->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_start();",
"}",
"gen_helper_update_ccount(cpu_env);",
"tcg_gen_mov_i32(d, cpu_SR[sr]);",
"if (dc->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_end();",
"return true;",
"}",
"return fal... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
18,841 | static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ADPCMDecodeContext *c = avctx->priv_data;
ADPCMChannelStatus *cs;
int n, m, channel, i;
shor... | true | FFmpeg | 86020073dbb9a3a9d1fbb76345b2ca29ba1f13d2 | static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ADPCMDecodeContext *c = avctx->priv_data;
ADPCMChannelStatus *cs;
int n, m, channel, i;
shor... | {
"code": [
" xa_decode(samples, src, &c->status[0], &c->status[1],",
" avctx->channels);"
],
"line_no": [
591,
593
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->VAR_36;
ADPCMDecodeContext *c = VAR_0->priv_data;
ADPCMChannelStatus *cs;
int VAR_6, VAR_7, VAR_27, VAR_9;
short *VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->VAR_36;",
"ADPCMDecodeContext *c = VAR_0->priv_data;",
"ADPCMChannelStatus *cs;",
"int VAR_6, VAR_7, VAR_27, VAR_9;",
"short *VAR_10;",
"const uint8_t *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[... |
18,842 | static void noise_scale(int *coefs, int scale, int band_energy, int len)
{
int ssign = scale < 0 ? -1 : 1;
int s = FFABS(scale);
unsigned int round;
int i, out, c = exp2tab[s & 3];
int nlz = 0;
while (band_energy > 0x7fff) {
band_energy >>= 1;
nlz++;
}
c /= b... | true | FFmpeg | b5228e44c7f3a5eba537c8a39a45cfbf2961a28d | static void noise_scale(int *coefs, int scale, int band_energy, int len)
{
int ssign = scale < 0 ? -1 : 1;
int s = FFABS(scale);
unsigned int round;
int i, out, c = exp2tab[s & 3];
int nlz = 0;
while (band_energy > 0x7fff) {
band_energy >>= 1;
nlz++;
}
c /= b... | {
"code": [
" if (s > 0) {"
],
"line_no": [
31
]
} | static void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4 = VAR_1 < 0 ? -1 : 1;
int VAR_5 = FFABS(VAR_1);
unsigned int VAR_6;
int VAR_7, VAR_8, VAR_9 = exp2tab[VAR_5 & 3];
int VAR_10 = 0;
while (VAR_2 > 0x7fff) {
VAR_2 >>= 1;
VAR_10++;
}
VAR... | [
"static void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4 = VAR_1 < 0 ? -1 : 1;",
"int VAR_5 = FFABS(VAR_1);",
"unsigned int VAR_6;",
"int VAR_7, VAR_8, VAR_9 = exp2tab[VAR_5 & 3];",
"int VAR_10 = 0;",
"while (VAR_2 > 0x7fff) {",
"VAR_2 >>= 1;",
"VAR_10++;",
"}",
"VAR_9 /=... | [
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,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
18,843 | int kvm_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len, int type)
{
return -EINVAL;
}
| true | qemu | 88365d17d586bcf0d9f4432447db345f72278a2a | int kvm_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len, int type)
{
return -EINVAL;
}
| {
"code": [
"int kvm_arch_insert_hw_breakpoint(target_ulong addr, target_ulong len, int type)",
" return -EINVAL;",
" return -EINVAL;"
],
"line_no": [
1,
5,
5
]
} | int FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2)
{
return -EINVAL;
}
| [
"int FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2)\n{",
"return -EINVAL;",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,844 | void *g_malloc(size_t size)
{
char * p;
size += 16;
p = bsd_vmalloc(size);
*(size_t *)p = size;
return p + 16;
}
| true | qemu | b7b5233ad7fdd9985bb6d05b7919f3a20723ff2c | void *g_malloc(size_t size)
{
char * p;
size += 16;
p = bsd_vmalloc(size);
*(size_t *)p = size;
return p + 16;
}
| {
"code": [
"void *g_malloc(size_t size)",
" char * p;",
" size += 16;",
" p = bsd_vmalloc(size);",
" *(size_t *)p = size;",
" return p + 16;"
],
"line_no": [
1,
5,
7,
9,
11,
13
]
} | void *FUNC_0(size_t VAR_0)
{
char * VAR_1;
VAR_0 += 16;
VAR_1 = bsd_vmalloc(VAR_0);
*(size_t *)VAR_1 = VAR_0;
return VAR_1 + 16;
}
| [
"void *FUNC_0(size_t VAR_0)\n{",
"char * VAR_1;",
"VAR_0 += 16;",
"VAR_1 = bsd_vmalloc(VAR_0);",
"*(size_t *)VAR_1 = VAR_0;",
"return VAR_1 + 16;",
"}"
] | [
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,845 | int ff_dirac_golomb_read_16bit(DiracGolombLUT *lut_ctx, const uint8_t *buf,
int bytes, uint8_t *_dst, int coeffs)
{
int i, b, c_idx = 0;
int16_t *dst = (int16_t *)_dst;
DiracGolombLUT *future[4], *l = &lut_ctx[2*LUT_SIZE + buf[0]];
INIT_RESIDUE(res, 0, 0);
#define... | true | FFmpeg | e24c31b656254b2516befbde78aeaca0122a6010 | int ff_dirac_golomb_read_16bit(DiracGolombLUT *lut_ctx, const uint8_t *buf,
int bytes, uint8_t *_dst, int coeffs)
{
int i, b, c_idx = 0;
int16_t *dst = (int16_t *)_dst;
DiracGolombLUT *future[4], *l = &lut_ctx[2*LUT_SIZE + buf[0]];
INIT_RESIDUE(res, 0, 0);
#define... | {
"code": [
" INIT_RESIDUE(res, 0, 0);",
" INIT_RESIDUE(res, 0, 0);"
],
"line_no": [
13,
13
]
} | int FUNC_0(DiracGolombLUT *VAR_0, const uint8_t *VAR_1,
int VAR_2, uint8_t *VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7 = 0;
int16_t *dst = (int16_t *)VAR_3;
DiracGolombLUT *future[4], *l = &VAR_0[2*LUT_SIZE + VAR_1[0]];
INIT_RESIDUE(res, 0, 0);
#define APPEND_RES... | [
"int FUNC_0(DiracGolombLUT *VAR_0, const uint8_t *VAR_1,\nint VAR_2, uint8_t *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7 = 0;",
"int16_t *dst = (int16_t *)VAR_3;",
"DiracGolombLUT *future[4], *l = &VAR_0[2*LUT_SIZE + VAR_1[0]];",
"INIT_RESIDUE(res, 0, 0);",
"#define APPEND_RESIDUE(N, M) \\\nN... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,846 | static void spapr_tce_table_finalize(Object *obj)
{
sPAPRTCETable *tcet = SPAPR_TCE_TABLE(obj);
QLIST_REMOVE(tcet, list);
if (!kvm_enabled() ||
(kvmppc_remove_spapr_tce(tcet->table, tcet->fd,
tcet->nb_table) != 0)) {
g_free(tcet->table);
}
}
| true | qemu | 5f9490de566c5b092a6cfedc3c7a37a9c9dee917 | static void spapr_tce_table_finalize(Object *obj)
{
sPAPRTCETable *tcet = SPAPR_TCE_TABLE(obj);
QLIST_REMOVE(tcet, list);
if (!kvm_enabled() ||
(kvmppc_remove_spapr_tce(tcet->table, tcet->fd,
tcet->nb_table) != 0)) {
g_free(tcet->table);
}
}
| {
"code": [
"static void spapr_tce_table_finalize(Object *obj)",
" sPAPRTCETable *tcet = SPAPR_TCE_TABLE(obj);"
],
"line_no": [
1,
5
]
} | static void FUNC_0(Object *VAR_0)
{
sPAPRTCETable *tcet = SPAPR_TCE_TABLE(VAR_0);
QLIST_REMOVE(tcet, list);
if (!kvm_enabled() ||
(kvmppc_remove_spapr_tce(tcet->table, tcet->fd,
tcet->nb_table) != 0)) {
g_free(tcet->table);
}
}
| [
"static void FUNC_0(Object *VAR_0)\n{",
"sPAPRTCETable *tcet = SPAPR_TCE_TABLE(VAR_0);",
"QLIST_REMOVE(tcet, list);",
"if (!kvm_enabled() ||\n(kvmppc_remove_spapr_tce(tcet->table, tcet->fd,\ntcet->nb_table) != 0)) {",
"g_free(tcet->table);",
"}",
"}"
] | [
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23
]
] |
18,847 | int ff_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
{
uint8_t *src[4], *dst[4];
int i, j, vsub, ret;
int (*draw_slice)(AVFilterLink *, int, int, int);
FF_TPRINTF_START(NULL, draw_slice); ff_tlog_link(NULL, link, 0); ff_tlog(NULL, " y:%d h:%d dir:%d\n", y, h, slice_dir);
/* c... | false | FFmpeg | 8ef740ce01abff3bc7df0f79803a3dc781d89daa | int ff_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
{
uint8_t *src[4], *dst[4];
int i, j, vsub, ret;
int (*draw_slice)(AVFilterLink *, int, int, int);
FF_TPRINTF_START(NULL, draw_slice); ff_tlog_link(NULL, link, 0); ff_tlog(NULL, " y:%d h:%d dir:%d\n", y, h, slice_dir);
... | {
"code": [],
"line_no": []
} | VAR_10intVAR_10 VAR_10ff_draw_sliceVAR_10(VAR_10AVFilterLinkVAR_10 *VAR_10VAR_0VAR_10, VAR_10intVAR_10 VAR_10VAR_1VAR_10, VAR_10intVAR_10 VAR_10VAR_2VAR_10, VAR_10intVAR_10 VAR_10VAR_3VAR_10)
{
VAR_10uint8_tVAR_10 *VAR_10srcVAR_10[VAR_104VAR_10], *VAR_10dstVAR_10[VAR_104VAR_10];
VAR_10intVAR_10 VAR_10VAR_4VA... | [
"VAR_10intVAR_10 VAR_10ff_draw_sliceVAR_10(VAR_10AVFilterLinkVAR_10 *VAR_10VAR_0VAR_10, VAR_10intVAR_10 VAR_10VAR_1VAR_10, VAR_10intVAR_10 VAR_10VAR_2VAR_10, VAR_10intVAR_10 VAR_10VAR_3VAR_10)\n{",
"VAR_10uint8_tVAR_10 *VAR_10srcVAR_10[VAR_104VAR_10], *VAR_10dstVAR_10[VAR_104VAR_10];",
"VAR_10intVAR_10 VAR_10VA... | [
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
53
],
[
57
],
[... |
18,848 | int qcrypto_cipher_encrypt(QCryptoCipher *cipher,
const void *in,
void *out,
size_t len,
Error **errp)
{
QCryptoCipherBuiltin *ctxt = cipher->opaque;
return ctxt->encrypt(cipher, in, out, len, errp); | true | qemu | 3a661f1eabf7e8db66e28489884d9b54aacb94ea | int qcrypto_cipher_encrypt(QCryptoCipher *cipher,
const void *in,
void *out,
size_t len,
Error **errp)
{
QCryptoCipherBuiltin *ctxt = cipher->opaque;
return ctxt->encrypt(cipher, in, out, len, errp); | {
"code": [],
"line_no": []
} | int FUNC_0(QCryptoCipher *VAR_0,
const void *VAR_1,
void *VAR_2,
size_t VAR_3,
Error **VAR_4)
{
QCryptoCipherBuiltin *ctxt = VAR_0->opaque;
return ctxt->encrypt(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4); | [
"int FUNC_0(QCryptoCipher *VAR_0,\nconst void *VAR_1,\nvoid *VAR_2,\nsize_t VAR_3,\nError **VAR_4)\n{",
"QCryptoCipherBuiltin *ctxt = VAR_0->opaque;",
"return ctxt->encrypt(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);"
] | [
0,
0,
0
] | [
[
1,
2,
3,
4,
5,
6
],
[
7
],
[
8
]
] |
18,849 | static void e1000e_pci_foreach_callback(QPCIDevice *dev, int devfn, void *data)
{
*(QPCIDevice **) data = dev;
}
| true | qemu | 448fe3c1349b540c66e048788dd98b9c80775c53 | static void e1000e_pci_foreach_callback(QPCIDevice *dev, int devfn, void *data)
{
*(QPCIDevice **) data = dev;
}
| {
"code": [
" *(QPCIDevice **) data = dev;"
],
"line_no": [
5
]
} | static void FUNC_0(QPCIDevice *VAR_0, int VAR_1, void *VAR_2)
{
*(QPCIDevice **) VAR_2 = VAR_0;
}
| [
"static void FUNC_0(QPCIDevice *VAR_0, int VAR_1, void *VAR_2)\n{",
"*(QPCIDevice **) VAR_2 = VAR_0;",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,850 | static int rm_read_index(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
unsigned int size, n_pkts, str_id, next_off, n, pos, pts;
AVStream *st;
do {
if (avio_rl32(pb) != MKTAG('I','N','D','X'))
return -1;
size = avio_rb32(pb);
if (size < 20)
... | false | FFmpeg | aac07a7a4c2c7a4a29cf6dbc88c1b9fdd191b99d | static int rm_read_index(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
unsigned int size, n_pkts, str_id, next_off, n, pos, pts;
AVStream *st;
do {
if (avio_rl32(pb) != MKTAG('I','N','D','X'))
return -1;
size = avio_rb32(pb);
if (size < 20)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
unsigned int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
AVStream *st;
do {
if (avio_rl32(pb) != MKTAG('I','N','D','X'))
return -1;
VAR_1 = avio_rb32(pb);
if (VAR_1 < 20)
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"unsigned int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"AVStream *st;",
"do {",
"if (avio_rl32(pb) != MKTAG('I','N','D','X'))\nreturn -1;",
"VAR_1 = avio_rb32(pb);",
"if (VAR_1 < 20)\nreturn -1;",
"avio_ski... | [
0,
0,
0,
0,
0,
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
],
[... |
18,851 | int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int stats_size, int skip0)
{
HeapElem *h = av_malloc_array(sizeof(*h), stats_size);
int *up = av_malloc_array(sizeof(*up) * 2, stats_size);
uint8_t *len = av_malloc_array(sizeof(*len) * 2, stats_size);
uint16_t *map= av_malloc_arr... | false | FFmpeg | fd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35 | int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int stats_size, int skip0)
{
HeapElem *h = av_malloc_array(sizeof(*h), stats_size);
int *up = av_malloc_array(sizeof(*up) * 2, stats_size);
uint8_t *len = av_malloc_array(sizeof(*len) * 2, stats_size);
uint16_t *map= av_malloc_arr... | {
"code": [],
"line_no": []
} | int FUNC_0(uint8_t *VAR_0, const uint64_t *VAR_1, int VAR_2, int VAR_3)
{
HeapElem *h = av_malloc_array(sizeof(*h), VAR_2);
int *VAR_4 = av_malloc_array(sizeof(*VAR_4) * 2, VAR_2);
uint8_t *len = av_malloc_array(sizeof(*len) * 2, VAR_2);
uint16_t *map= av_malloc_array(sizeof(*map), VAR_2);
... | [
"int FUNC_0(uint8_t *VAR_0, const uint64_t *VAR_1, int VAR_2, int VAR_3)\n{",
"HeapElem *h = av_malloc_array(sizeof(*h), VAR_2);",
"int *VAR_4 = av_malloc_array(sizeof(*VAR_4) * 2, VAR_2);",
"uint8_t *len = av_malloc_array(sizeof(*len) * 2, VAR_2);",
"uint16_t *map= av_malloc_array(sizeof(*map), VAR_2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
18,854 | static int dec_scc_r(CPUCRISState *env, DisasContext *dc)
{
int cond = dc->op2;
LOG_DIS("s%s $r%u\n",
cc_name(cond), dc->op1);
if (cond != CC_A) {
int l1;
gen_tst_cc(dc, cpu_R[dc->op1], cond);
l1 = gen_new_label();
tcg_gen_brcondi_tl(TCG_COND_EQ, cp... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static int dec_scc_r(CPUCRISState *env, DisasContext *dc)
{
int cond = dc->op2;
LOG_DIS("s%s $r%u\n",
cc_name(cond), dc->op1);
if (cond != CC_A) {
int l1;
gen_tst_cc(dc, cpu_R[dc->op1], cond);
l1 = gen_new_label();
tcg_gen_brcondi_tl(TCG_COND_EQ, cp... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUCRISState *VAR_0, DisasContext *VAR_1)
{
int VAR_2 = VAR_1->op2;
LOG_DIS("s%s $r%u\n",
cc_name(VAR_2), VAR_1->op1);
if (VAR_2 != CC_A) {
int VAR_3;
gen_tst_cc(VAR_1, cpu_R[VAR_1->op1], VAR_2);
VAR_3 = gen_new_label();
tcg_gen_br... | [
"static int FUNC_0(CPUCRISState *VAR_0, DisasContext *VAR_1)\n{",
"int VAR_2 = VAR_1->op2;",
"LOG_DIS(\"s%s $r%u\\n\",\ncc_name(VAR_2), VAR_1->op1);",
"if (VAR_2 != CC_A) {",
"int VAR_3;",
"gen_tst_cc(VAR_1, cpu_R[VAR_1->op1], VAR_2);",
"VAR_3 = gen_new_label();",
"tcg_gen_brcondi_tl(TCG_COND_EQ, cpu_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
]
] |
18,855 | static BlockAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockCompletionFunc *cb,
... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | static BlockAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockCompletionFunc *cb,
... | {
"code": [],
"line_no": []
} | static BlockAIOCB *FUNC_0(BlockDriverState *bs,
int64_t sector_num,
QEMUIOVector *qiov,
int nb_sectors,
BlockCompletionFunc *cb,
... | [
"static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num,\nQEMUIOVector *qiov,\nint nb_sectors,\nBlockCompletionFunc *cb,\nvoid *opaque,\nint is_write)\n{",
"BlockAIOCBSync *acb;",
"acb = qemu_aio_get(&bdrv_em_aiocb_info, bs, cb, opaque);",
"acb->is_write = is_write;",
"acb->qiov = qiov;",
"ac... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
57
... |
18,856 | static int elf_core_dump(int signr, const CPUState *env)
{
const TaskState *ts = (const TaskState *)env->opaque;
struct vm_area_struct *vma = NULL;
char corefile[PATH_MAX];
struct elf_note_info info;
struct elfhdr elf;
struct elf_phdr phdr;
struct rlimit dumpsize;
struct mm_stru... | false | qemu | 80f5ce758ac277e76c016dd7c0b246e40d4fca2d | static int elf_core_dump(int signr, const CPUState *env)
{
const TaskState *ts = (const TaskState *)env->opaque;
struct vm_area_struct *vma = NULL;
char corefile[PATH_MAX];
struct elf_note_info info;
struct elfhdr elf;
struct elf_phdr phdr;
struct rlimit dumpsize;
struct mm_stru... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, const CPUState *VAR_1)
{
const TaskState *VAR_2 = (const TaskState *)VAR_1->opaque;
struct vm_area_struct *VAR_3 = NULL;
char VAR_4[PATH_MAX];
struct elf_note_info VAR_5;
struct elfhdr VAR_6;
struct elf_phdr VAR_7;
struct rlimit VAR_8;
struct mm_stru... | [
"static int FUNC_0(int VAR_0, const CPUState *VAR_1)\n{",
"const TaskState *VAR_2 = (const TaskState *)VAR_1->opaque;",
"struct vm_area_struct *VAR_3 = NULL;",
"char VAR_4[PATH_MAX];",
"struct elf_note_info VAR_5;",
"struct elfhdr VAR_6;",
"struct elf_phdr VAR_7;",
"struct rlimit VAR_8;",
"struct mm... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
39,
41
],
[
45,
47,
49
],
[
63,... |
18,857 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer, Error **errp)
{
const NetdevVhostUserOptions *vhost_user_opts;
CharDriverState *chr;
assert(opts->kind == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
vhost_user_opts = opts->vhost_user;... | false | qemu | b931bfbf042983f311b3b09894d8030b2755a638 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer, Error **errp)
{
const NetdevVhostUserOptions *vhost_user_opts;
CharDriverState *chr;
assert(opts->kind == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
vhost_user_opts = opts->vhost_user;... | {
"code": [],
"line_no": []
} | int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2, Error **VAR_3)
{
const NetdevVhostUserOptions *VAR_4;
CharDriverState *chr;
assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
VAR_4 = VAR_0->vhost_user;
chr = net_vhost_par... | [
"int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{",
"const NetdevVhostUserOptions *VAR_4;",
"CharDriverState *chr;",
"assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_VHOST_USER);",
"VAR_4 = VAR_0->vhost_user;",
"chr = net_vhost_parse_chardev(VAR_4, VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31,
33
],
[
35
],
[
37
],
[
43
],
[
45
]
] |
18,858 | static void *tcg_cpu_thread_fn(void *arg)
{
CPUState *env = arg;
qemu_tcg_init_cpu_signals();
qemu_thread_self(env->thread);
/* signal CPU creation */
qemu_mutex_lock(&qemu_global_mutex);
for (env = first_cpu; env != NULL; env = env->next_cpu)
env->created = 1;
qemu_cond... | false | qemu | 7e97cd88148876bad36ee7c66d526dcaed328d0d | static void *tcg_cpu_thread_fn(void *arg)
{
CPUState *env = arg;
qemu_tcg_init_cpu_signals();
qemu_thread_self(env->thread);
qemu_mutex_lock(&qemu_global_mutex);
for (env = first_cpu; env != NULL; env = env->next_cpu)
env->created = 1;
qemu_cond_signal(&qemu_cpu_cond);
... | {
"code": [],
"line_no": []
} | static void *FUNC_0(void *VAR_0)
{
CPUState *env = VAR_0;
qemu_tcg_init_cpu_signals();
qemu_thread_self(env->thread);
qemu_mutex_lock(&qemu_global_mutex);
for (env = first_cpu; env != NULL; env = env->next_cpu)
env->created = 1;
qemu_cond_signal(&qemu_cpu_cond);
... | [
"static void *FUNC_0(void *VAR_0)\n{",
"CPUState *env = VAR_0;",
"qemu_tcg_init_cpu_signals();",
"qemu_thread_self(env->thread);",
"qemu_mutex_lock(&qemu_global_mutex);",
"for (env = first_cpu; env != NULL; env = env->next_cpu)",
"env->created = 1;",
"qemu_cond_signal(&qemu_cpu_cond);",
"while (!qem... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
18,859 | static inline void gen_op_mulscc(TCGv dst, TCGv src1, TCGv src2)
{
TCGv r_temp, zero;
r_temp = tcg_temp_new();
/* old op:
if (!(env->y & 1))
T1 = 0;
*/
zero = tcg_const_tl(0);
tcg_gen_andi_tl(cpu_cc_src, src1, 0xffffffff);
tcg_gen_andi_tl(r_temp, cpu_y, 0x1);
t... | false | qemu | de9e9d9f17a36ff76c1a02a5348835e5e0a081b0 | static inline void gen_op_mulscc(TCGv dst, TCGv src1, TCGv src2)
{
TCGv r_temp, zero;
r_temp = tcg_temp_new();
zero = tcg_const_tl(0);
tcg_gen_andi_tl(cpu_cc_src, src1, 0xffffffff);
tcg_gen_andi_tl(r_temp, cpu_y, 0x1);
tcg_gen_andi_tl(cpu_cc_src2, src2, 0xffffffff);
t... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)
{
TCGv r_temp, zero;
r_temp = tcg_temp_new();
zero = tcg_const_tl(0);
tcg_gen_andi_tl(cpu_cc_src, VAR_1, 0xffffffff);
tcg_gen_andi_tl(r_temp, cpu_y, 0x1);
tcg_gen_andi_tl(cpu_cc_src2, VAR_2, 0xffffffff);
tc... | [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{",
"TCGv r_temp, zero;",
"r_temp = tcg_temp_new();",
"zero = tcg_const_tl(0);",
"tcg_gen_andi_tl(cpu_cc_src, VAR_1, 0xffffffff);",
"tcg_gen_andi_tl(r_temp, cpu_y, 0x1);",
"tcg_gen_andi_tl(cpu_cc_src2, VAR_2, 0xffffffff);",
"tcg_gen_movco... | [
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57
],
[
59
],
[
61
],
[
63
],
... |
18,860 | dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
IBaseFilter *device_filter, IPin **ppin)
{
IEnumPins *pins = 0;
IPin *device_pin = NULL;
IPin *pin;
int r;
const GUID *mediatype[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };
const char *devtypename ... | false | FFmpeg | d0da310317cae25c0c533f6862fb25dc81ec3d4b | dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
IBaseFilter *device_filter, IPin **ppin)
{
IEnumPins *pins = 0;
IPin *device_pin = NULL;
IPin *pin;
int r;
const GUID *mediatype[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };
const char *devtypename ... | {
"code": [],
"line_no": []
} | FUNC_0(AVFormatContext *VAR_0, enum dshowDeviceType VAR_1,
IBaseFilter *VAR_2, IPin **VAR_3)
{
IEnumPins *pins = 0;
IPin *device_pin = NULL;
IPin *pin;
int VAR_4;
const GUID *VAR_5[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };
const char *VAR_6 = (VAR_1 == VideoDevice) ... | [
"FUNC_0(AVFormatContext *VAR_0, enum dshowDeviceType VAR_1,\nIBaseFilter *VAR_2, IPin **VAR_3)\n{",
"IEnumPins *pins = 0;",
"IPin *device_pin = NULL;",
"IPin *pin;",
"int VAR_4;",
"const GUID *VAR_5[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };",
"const char *VAR_6 = (VAR_1 == VideoDevice) ? \"video\" : ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
18,861 | static int coroutine_fn blkreplay_co_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_corouti... | false | qemu | a03ef88f77af045a2eb9629b5ce774a3fb973c5e | static int coroutine_fn blkreplay_co_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_corouti... | {
"code": [],
"line_no": []
} | static int VAR_0 blkreplay_co_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_coroutine_yiel... | [
"static int VAR_0 blkreplay_co_pwrite_zeroes(BlockDriverState *bs,\nint64_t offset, int count, BdrvRequestFlags flags)\n{",
"uint64_t reqid = request_id++;",
"int ret = bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags);",
"block_request_create(reqid, bs, qemu_coroutine_self());",
"qemu_coroutine_yie... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
18,862 | static void tcg_target_qemu_prologue (TCGContext *s)
{
int i, frame_size;
#ifndef __APPLE__
uint64_t addr;
#endif
frame_size = 0
+ 8 /* back chain */
+ 8 /* CR */
+ 8 /* LR */
+ 8 /* c... | false | qemu | cea5f9a28faa528b6b1b117c9ab2d8828f473fef | static void tcg_target_qemu_prologue (TCGContext *s)
{
int i, frame_size;
#ifndef __APPLE__
uint64_t addr;
#endif
frame_size = 0
+ 8
+ 8
+ 8
+ 8
+ 8
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (TCGContext *VAR_0)
{
int VAR_1, VAR_2;
#ifndef __APPLE__
uint64_t addr;
#endif
VAR_2 = 0
+ 8
+ 8
+ 8
+ 8
+ 8
+ 8 ... | [
"static void FUNC_0 (TCGContext *VAR_0)\n{",
"int VAR_1, VAR_2;",
"#ifndef __APPLE__\nuint64_t addr;",
"#endif\nVAR_2 = 0\n+ 8\n+ 8\n+ 8\n+ 8\n+ 8\n+ 8\n+ TCG_STATIC_CALL_ARGS_SIZE\n+ ARRAY_SIZE (tcg_target_callee_save_regs) * 8\n;",
"VAR_2 = (VAR_2 + 15) & ~15;",
"#ifndef __APPLE__\naddr = (uint64_t) 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
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33
],
[
35
],
[
39,
43
],
[
45
],
[
47
],
[
49,
55
],
[
57
],
[
59
],
[
61,
63,
65,
67,... |
18,863 | int blk_co_discard(BlockBackend *blk, int64_t sector_num, int nb_sectors)
{
int ret = blk_check_request(blk, sector_num, nb_sectors);
if (ret < 0) {
return ret;
}
return bdrv_co_discard(blk_bs(blk), sector_num, nb_sectors);
}
| false | qemu | 9f1963b3f72521f75a549f8afd61b19e7da63c6f | int blk_co_discard(BlockBackend *blk, int64_t sector_num, int nb_sectors)
{
int ret = blk_check_request(blk, sector_num, nb_sectors);
if (ret < 0) {
return ret;
}
return bdrv_co_discard(blk_bs(blk), sector_num, nb_sectors);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1, int VAR_2)
{
int VAR_3 = blk_check_request(VAR_0, VAR_1, VAR_2);
if (VAR_3 < 0) {
return VAR_3;
}
return bdrv_co_discard(blk_bs(VAR_0), VAR_1, VAR_2);
}
| [
"int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1, int VAR_2)\n{",
"int VAR_3 = blk_check_request(VAR_0, VAR_1, VAR_2);",
"if (VAR_3 < 0) {",
"return VAR_3;",
"}",
"return bdrv_co_discard(blk_bs(VAR_0), VAR_1, VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
18,864 | GList *range_list_insert(GList *list, Range *data)
{
GList *l;
/* Range lists require no empty ranges */
assert(data->begin < data->end || (data->begin && !data->end));
/* Skip all list elements strictly less than data */
for (l = list; l && range_compare(l->data, data) < 0; l = l->next) {... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | GList *range_list_insert(GList *list, Range *data)
{
GList *l;
assert(data->begin < data->end || (data->begin && !data->end));
for (l = list; l && range_compare(l->data, data) < 0; l = l->next) {
}
if (!l || range_compare(l->data, data) > 0) {
return g_list... | {
"code": [],
"line_no": []
} | GList *FUNC_0(GList *list, Range *data)
{
GList *l;
assert(data->begin < data->end || (data->begin && !data->end));
for (l = list; l && range_compare(l->data, data) < 0; l = l->next) {
}
if (!l || range_compare(l->data, data) > 0) {
return g_list_insert_bef... | [
"GList *FUNC_0(GList *list, Range *data)\n{",
"GList *l;",
"assert(data->begin < data->end || (data->begin && !data->end));",
"for (l = list; l && range_compare(l->data, data) < 0; l = l->next) {",
"}",
"if (!l || range_compare(l->data, data) > 0) {",
"return g_list_insert_before(list, l, data);",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
61
],
[
63
]
] |
18,865 | SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun,
void *hba_private)
{
return d->info->alloc_req(d, tag, lun, hba_private);
}
| false | qemu | c39ce112b60ffafbaf700853e32bea74cbb2c148 | SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun,
void *hba_private)
{
return d->info->alloc_req(d, tag, lun, hba_private);
}
| {
"code": [],
"line_no": []
} | SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag, uint32_t lun,
void *hba_private)
{
return d->info->alloc_req(d, tag, lun, hba_private);
}
| [
"SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag, uint32_t lun,\nvoid *hba_private)\n{",
"return d->info->alloc_req(d, tag, lun, hba_private);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
18,866 | static int nbd_send_negotiate(int csock, off_t size, uint32_t flags)
{
char buf[8 + 8 + 8 + 128];
/* Negotiate
[ 0 .. 7] passwd ("NBDMAGIC")
[ 8 .. 15] magic (0x00420281861253)
[16 .. 23] size
[24 .. 27] flags
[28 .. 151] reserved (0)
*... | false | qemu | 185b43386ad999c80bdc58e41b87f05e5b3e8463 | static int nbd_send_negotiate(int csock, off_t size, uint32_t flags)
{
char buf[8 + 8 + 8 + 128];
TRACE("Beginning negotiation.");
memcpy(buf, "NBDMAGIC", 8);
cpu_to_be64w((uint64_t*)(buf + 8), 0x00420281861253LL);
cpu_to_be64w((uint64_t*)(buf + 16), size);
cpu_to_be... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, off_t VAR_1, uint32_t VAR_2)
{
char VAR_3[8 + 8 + 8 + 128];
TRACE("Beginning negotiation.");
memcpy(VAR_3, "NBDMAGIC", 8);
cpu_to_be64w((uint64_t*)(VAR_3 + 8), 0x00420281861253LL);
cpu_to_be64w((uint64_t*)(VAR_3 + 16), VAR_1);
cpu_to_be32... | [
"static int FUNC_0(int VAR_0, off_t VAR_1, uint32_t VAR_2)\n{",
"char VAR_3[8 + 8 + 8 + 128];",
"TRACE(\"Beginning negotiation.\");",
"memcpy(VAR_3, \"NBDMAGIC\", 8);",
"cpu_to_be64w((uint64_t*)(VAR_3 + 8), 0x00420281861253LL);",
"cpu_to_be64w((uint64_t*)(VAR_3 + 16), VAR_1);",
"cpu_to_be32w((uint32_t*)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
59
],
[
61
]
] |
18,867 | static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, int h,
int rw, int type, int target_page_bits)
{
hwaddr pteg_off;
target_ulong pte0, pte1;
int i, good = -1;
int ret, r;
ret = -1; /* No entry found */
pteg_off = get_pteg_offset32(env, ctx->hash[... | false | qemu | 91cda45b69e45a089f9989979a65db3f710c9925 | static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, int h,
int rw, int type, int target_page_bits)
{
hwaddr pteg_off;
target_ulong pte0, pte1;
int i, good = -1;
int ret, r;
ret = -1;
pteg_off = get_pteg_offset32(env, ctx->hash[h]);
for (i = 0... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
hwaddr pteg_off;
target_ulong pte0, pte1;
int VAR_6, VAR_7 = -1;
int VAR_8, VAR_9;
VAR_8 = -1;
pteg_off = get_pteg_offset32(VAR_0, VAR_1->hash[VAR_2]... | [
"static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"hwaddr pteg_off;",
"target_ulong pte0, pte1;",
"int VAR_6, VAR_7 = -1;",
"int VAR_8, VAR_9;",
"VAR_8 = -1;",
"pteg_off = get_pteg_offset32(VAR_0, VAR_1->hash[VAR_2]);",
"for (VAR_6 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33,
35
],
[
37
],
[
39,
43
],
[
45,
49
],
[
51
],
[
53
... |
18,868 | static void __attribute__((constructor)) coroutine_pool_init(void)
{
qemu_mutex_init(&pool_lock);
}
| false | qemu | 4d68e86bb10159099da0798f74e7512955f15eec | static void __attribute__((constructor)) coroutine_pool_init(void)
{
qemu_mutex_init(&pool_lock);
}
| {
"code": [],
"line_no": []
} | static void __attribute__((constructor)) FUNC_0(void)
{
qemu_mutex_init(&pool_lock);
}
| [
"static void __attribute__((constructor)) FUNC_0(void)\n{",
"qemu_mutex_init(&pool_lock);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,869 | static void nvdimm_dsm_root(NvdimmDsmIn *in, hwaddr dsm_mem_addr)
{
/*
* function 0 is called to inquire which functions are supported by
* OSPM
*/
if (!in->function) {
nvdimm_dsm_function0(0 /* No function supported other than
function 0 */, dsm_... | false | qemu | c2fa30757a2ba1bb5b053883773a9a61fbdd7082 | static void nvdimm_dsm_root(NvdimmDsmIn *in, hwaddr dsm_mem_addr)
{
if (!in->function) {
nvdimm_dsm_function0(0
, dsm_mem_addr);
return;
}
nvdimm_dsm_no_payload(1 , dsm_mem_addr);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(NvdimmDsmIn *VAR_0, hwaddr VAR_1)
{
if (!VAR_0->function) {
nvdimm_dsm_function0(0
, VAR_1);
return;
}
nvdimm_dsm_no_payload(1 , VAR_1);
}
| [
"static void FUNC_0(NvdimmDsmIn *VAR_0, hwaddr VAR_1)\n{",
"if (!VAR_0->function) {",
"nvdimm_dsm_function0(0\n, VAR_1);",
"return;",
"}",
"nvdimm_dsm_no_payload(1 , VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
27
],
[
29
]
] |
18,870 | static int spapr_phb_vfio_eeh_set_option(sPAPRPHBState *sphb,
unsigned int addr, int option)
{
sPAPRPHBVFIOState *svphb = SPAPR_PCI_VFIO_HOST_BRIDGE(sphb);
struct vfio_eeh_pe_op op = { .argsz = sizeof(op) };
int ret;
switch (option) {
case RTAS_EEH_D... | false | qemu | d76548a98f4e18d3c65a3d921bbb70caf9be6138 | static int spapr_phb_vfio_eeh_set_option(sPAPRPHBState *sphb,
unsigned int addr, int option)
{
sPAPRPHBVFIOState *svphb = SPAPR_PCI_VFIO_HOST_BRIDGE(sphb);
struct vfio_eeh_pe_op op = { .argsz = sizeof(op) };
int ret;
switch (option) {
case RTAS_EEH_D... | {
"code": [],
"line_no": []
} | static int FUNC_0(sPAPRPHBState *VAR_0,
unsigned int VAR_1, int VAR_2)
{
sPAPRPHBVFIOState *svphb = SPAPR_PCI_VFIO_HOST_BRIDGE(VAR_0);
struct vfio_eeh_pe_op VAR_3 = { .argsz = sizeof(VAR_3) };
int VAR_4;
switch (VAR_2) {
case RTAS_EEH_DISABLE:
... | [
"static int FUNC_0(sPAPRPHBState *VAR_0,\nunsigned int VAR_1, int VAR_2)\n{",
"sPAPRPHBVFIOState *svphb = SPAPR_PCI_VFIO_HOST_BRIDGE(VAR_0);",
"struct vfio_eeh_pe_op VAR_3 = { .argsz = sizeof(VAR_3) };",
"int VAR_4;",
"switch (VAR_2) {",
"case RTAS_EEH_DISABLE:\nVAR_3.VAR_3 = VFIO_EEH_PE_DISABLE;",
"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,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[... |
18,871 | static int vaapi_h264_start_frame(AVCodecContext *avctx,
av_unused const uint8_t *buffer,
av_unused uint32_t size)
{
H264Context * const h = avctx->priv_data;
struct vaapi_context * const vactx = avctx->hwaccel_context;
... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static int vaapi_h264_start_frame(AVCodecContext *avctx,
av_unused const uint8_t *buffer,
av_unused uint32_t size)
{
H264Context * const h = avctx->priv_data;
struct vaapi_context * const vactx = avctx->hwaccel_context;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
av_unused const VAR_1 *buffer,
av_unused uint32_t size)
{
H264Context * const h = VAR_0->priv_data;
struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context;
VAPictureParamete... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nav_unused const VAR_1 *buffer,\nav_unused uint32_t size)\n{",
"H264Context * const h = VAR_0->priv_data;",
"struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context;",
"VAPictureParameterBufferH264 *pic_param;",
"VAIQMatrixBufferH264 *iq_matrix;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,873 | void cpu_outb(pio_addr_t addr, uint8_t val)
{
LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val);
trace_cpu_out(addr, val);
ioport_write(0, addr, val);
}
| false | qemu | b40acf99bef69fa8ab0f9092ff162fde945eec12 | void cpu_outb(pio_addr_t addr, uint8_t val)
{
LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val);
trace_cpu_out(addr, val);
ioport_write(0, addr, val);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(pio_addr_t VAR_0, uint8_t VAR_1)
{
LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", VAR_0, VAR_1);
trace_cpu_out(VAR_0, VAR_1);
ioport_write(0, VAR_0, VAR_1);
}
| [
"void FUNC_0(pio_addr_t VAR_0, uint8_t VAR_1)\n{",
"LOG_IOPORT(\"outb: %04\"FMT_pioaddr\" %02\"PRIx8\"\\n\", VAR_0, VAR_1);",
"trace_cpu_out(VAR_0, VAR_1);",
"ioport_write(0, VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.