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 |
|---|---|---|---|---|---|---|---|---|---|---|
6,714 | static int do_pcie_aer_inject_error(Monitor *mon,
const QDict *qdict, QObject **ret_data)
{
const char *id = qdict_get_str(qdict, "id");
const char *error_name;
uint32_t error_status;
bool correctable;
PCIDevice *dev;
PCIEAERErr err;
int ret;
... | true | qemu | 9edd5338a2404909ac8d373964021e6dbb8f5815 | static int do_pcie_aer_inject_error(Monitor *mon,
const QDict *qdict, QObject **ret_data)
{
const char *id = qdict_get_str(qdict, "id");
const char *error_name;
uint32_t error_status;
bool correctable;
PCIDevice *dev;
PCIEAERErr err;
int ret;
... | {
"code": [
" const QDict *qdict, QObject **ret_data)",
" *ret_data = qobject_from_jsonf(\"{'id': %s, \"",
" \"'root_bus': %s, 'bus': %d, 'devfn': %d, \"",
" \"'ret': %d}\",",
" ... | static int FUNC_0(Monitor *VAR_0,
const QDict *VAR_1, QObject **VAR_2)
{
const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3");
const char *VAR_4;
uint32_t error_status;
bool correctable;
PCIDevice *dev;
PCIEAERErr err;
int VAR_5;
VAR_5 = pci_q... | [
"static int FUNC_0(Monitor *VAR_0,\nconst QDict *VAR_1, QObject **VAR_2)\n{",
"const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");",
"const char *VAR_4;",
"uint32_t error_status;",
"bool correctable;",
"PCIDevice *dev;",
"PCIEAERErr err;",
"int VAR_5;",
"VAR_5 = pci_qdev_find_device(VAR_3, &dev);",... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
... |
6,715 | static int bmp_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *p = data;
unsigned int fsize, hsize;
int width, heigh... | true | FFmpeg | 63b8d4146d78595638417e431ea390aaf01f560f | static int bmp_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *p = data;
unsigned int fsize, hsize;
int width, heigh... | {
"code": [
" avctx->width = width;",
" avctx->height = height > 0 ? height : -(unsigned)height;"
],
"line_no": [
213,
215
]
} | 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;
AVFrame *p = VAR_1;
unsigned int VAR_6, VAR_7;
int VAR_8, VAR_9;
unsig... | [
"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;",
"AVFrame *p = VAR_1;",
"unsigned int VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"unsigned int VAR_10;",
"BiCompression comp;",
"unsig... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
... |
6,716 | static QIOChannel *nbd_negotiate_handle_starttls(NBDClient *client,
uint32_t length)
{
QIOChannel *ioc;
QIOChannelTLS *tioc;
struct NBDTLSHandshakeData data = { 0 };
TRACE("Setting up TLS");
ioc = client->ioc;
if (length) {
if (... | true | qemu | 63d5ef869e5e57de4875cd64b6f197cbb5763adf | static QIOChannel *nbd_negotiate_handle_starttls(NBDClient *client,
uint32_t length)
{
QIOChannel *ioc;
QIOChannelTLS *tioc;
struct NBDTLSHandshakeData data = { 0 };
TRACE("Setting up TLS");
ioc = client->ioc;
if (length) {
if (... | {
"code": [
" nbd_negotiate_send_rep(client->ioc, NBD_REP_ACK, NBD_OPT_STARTTLS);"
],
"line_no": [
35
]
} | static QIOChannel *FUNC_0(NBDClient *client,
uint32_t length)
{
QIOChannel *ioc;
QIOChannelTLS *tioc;
struct NBDTLSHandshakeData VAR_0 = { 0 };
TRACE("Setting up TLS");
ioc = client->ioc;
if (length) {
if (nbd_negotiate_drop_syn... | [
"static QIOChannel *FUNC_0(NBDClient *client,\nuint32_t length)\n{",
"QIOChannel *ioc;",
"QIOChannelTLS *tioc;",
"struct NBDTLSHandshakeData VAR_0 = { 0 };",
"TRACE(\"Setting up TLS\");",
"ioc = client->ioc;",
"if (length) {",
"if (nbd_negotiate_drop_sync(ioc, length) != length) {",
"return NULL;",
... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39,
41,
43,
45
],
[
47
],
[
49
],
[
51
... |
6,717 | static int shorten_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ShortenContext *s = avctx->priv_data;
int i, input_buf_size = 0;
int16_t *samples = data;
if(s->max_framesi... | true | FFmpeg | 9e5e2c2d010c05c10337e9c1ec9d0d61495e0c9c | static int shorten_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ShortenContext *s = avctx->priv_data;
int i, input_buf_size = 0;
int16_t *samples = data;
if(s->max_framesi... | {
"code": [
" s->bitstream= av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, s->max_framesize);"
],
"line_no": [
23
]
} | 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;
ShortenContext *s = VAR_0->priv_data;
int VAR_6, VAR_7 = 0;
int16_t *samples = VAR_1;
if(s->max_framesize == 0){
s-... | [
"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;",
"ShortenContext *s = VAR_0->priv_data;",
"int VAR_6, VAR_7 = 0;",
"int16_t *samples = VAR_1;",
"if(s->max_framesize == 0){",
"s->max_framesize=... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
6,718 | static int mm_decode_pal(MmContext *s)
{
int i;
bytestream2_skip(&s->gb, 4);
for (i = 0; i < 128; i++) {
s->palette[i] = 0xFF << 24 | bytestream2_get_be24(&s->gb);
s->palette[i+128] = s->palette[i]<<2;
}
return 0;
}
| true | FFmpeg | b12d92efd6c0d48665383a9baecc13e7ebbd8a22 | static int mm_decode_pal(MmContext *s)
{
int i;
bytestream2_skip(&s->gb, 4);
for (i = 0; i < 128; i++) {
s->palette[i] = 0xFF << 24 | bytestream2_get_be24(&s->gb);
s->palette[i+128] = s->palette[i]<<2;
}
return 0;
}
| {
"code": [
" s->palette[i] = 0xFF << 24 | bytestream2_get_be24(&s->gb);"
],
"line_no": [
13
]
} | static int FUNC_0(MmContext *VAR_0)
{
int VAR_1;
bytestream2_skip(&VAR_0->gb, 4);
for (VAR_1 = 0; VAR_1 < 128; VAR_1++) {
VAR_0->palette[VAR_1] = 0xFF << 24 | bytestream2_get_be24(&VAR_0->gb);
VAR_0->palette[VAR_1+128] = VAR_0->palette[VAR_1]<<2;
}
return 0;
}
| [
"static int FUNC_0(MmContext *VAR_0)\n{",
"int VAR_1;",
"bytestream2_skip(&VAR_0->gb, 4);",
"for (VAR_1 = 0; VAR_1 < 128; VAR_1++) {",
"VAR_0->palette[VAR_1] = 0xFF << 24 | bytestream2_get_be24(&VAR_0->gb);",
"VAR_0->palette[VAR_1+128] = VAR_0->palette[VAR_1]<<2;",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
6,719 | static int img_snapshot(int argc, char **argv)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *filename, *snapshot_name = NULL;
int c, ret = 0, bdrv_oflags;
int action = 0;
qemu_timeval tv;
bool quiet = false;
bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR;
/* Parse commandl... | true | qemu | a89d89d3e65800fa4a8e00de7af0ea8272bef779 | static int img_snapshot(int argc, char **argv)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *filename, *snapshot_name = NULL;
int c, ret = 0, bdrv_oflags;
int action = 0;
qemu_timeval tv;
bool quiet = false;
bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR;
for(;;) {
... | {
"code": [
" ret = bdrv_snapshot_delete(bs, snapshot_name);",
" if (ret) {",
" error_report(\"Could not delete snapshot '%s': %d (%s)\",",
" snapshot_name, ret, strerror(-ret));"
],
"line_no": [
203,
173,
207,
177
]
} | static int FUNC_0(int VAR_0, char **VAR_1)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *VAR_2, *VAR_3 = NULL;
int VAR_4, VAR_5 = 0, VAR_6;
int VAR_7 = 0;
qemu_timeval tv;
bool quiet = false;
VAR_6 = BDRV_O_FLAGS | BDRV_O_RDWR;
for(;;) {
VAR_4 = getopt... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"BlockDriverState *bs;",
"QEMUSnapshotInfo sn;",
"char *VAR_2, *VAR_3 = NULL;",
"int VAR_4, VAR_5 = 0, VAR_6;",
"int VAR_7 = 0;",
"qemu_timeval tv;",
"bool quiet = false;",
"VAR_6 = BDRV_O_FLAGS | BDRV_O_RDWR;",
"for(;;) {",
"VAR_4 = getopt(VAR_0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45,
47
],
[... |
6,720 | static void FUNCC(pred16x16_horizontal_add)(uint8_t *pix,
const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<16; i++)
FUNCC(pred4x4... | false | FFmpeg | 1acd7d594c15aa491729c837ad3519d3469e620a | static void FUNCC(pred16x16_horizontal_add)(uint8_t *pix,
const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<16; i++)
FUNCC(pred4x4... | {
"code": [],
"line_no": []
} | static void FUNC_0(pred16x16_horizontal_add)(uint8_t *pix,
const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int VAR_0;
for(VAR_0=0; VAR_0<16; VAR_0++)
... | [
"static void FUNC_0(pred16x16_horizontal_add)(uint8_t *pix,\nconst int *block_offset,\nconst int16_t *block,\nptrdiff_t stride)\n{",
"int VAR_0;",
"for(VAR_0=0; VAR_0<16; VAR_0++)",
"FUNC_0(pred4x4_horizontal_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
6,721 | static void release_unused_pictures(H264Context *h, int remove_current)
{
int i;
/* release non reference frames */
for (i = 0; i < MAX_PICTURE_COUNT; i++) {
if (h->DPB[i].f.data[0] && !h->DPB[i].reference &&
(remove_current || &h->DPB[i] != h->cur_pic_ptr)) {
unref_... | false | FFmpeg | a553c6a347d3d28d7ee44c3df3d5c4ee780dba23 | static void release_unused_pictures(H264Context *h, int remove_current)
{
int i;
for (i = 0; i < MAX_PICTURE_COUNT; i++) {
if (h->DPB[i].f.data[0] && !h->DPB[i].reference &&
(remove_current || &h->DPB[i] != h->cur_pic_ptr)) {
unref_picture(h, &h->DPB[i]);
}... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264Context *VAR_0, int VAR_1)
{
int VAR_2;
for (VAR_2 = 0; VAR_2 < MAX_PICTURE_COUNT; VAR_2++) {
if (VAR_0->DPB[VAR_2].f.data[0] && !VAR_0->DPB[VAR_2].reference &&
(VAR_1 || &VAR_0->DPB[VAR_2] != VAR_0->cur_pic_ptr)) {
unref_picture(VAR_0, &VAR_0... | [
"static void FUNC_0(H264Context *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < MAX_PICTURE_COUNT; VAR_2++) {",
"if (VAR_0->DPB[VAR_2].f.data[0] && !VAR_0->DPB[VAR_2].reference &&\n(VAR_1 || &VAR_0->DPB[VAR_2] != VAR_0->cur_pic_ptr)) {",
"unref_picture(VAR_0, &VAR_0->DPB[VAR_2]);",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
6,722 | static av_noinline void emulated_edge_mc_sse(uint8_t * buf,const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
... | true | FFmpeg | 51daafb02eaf96e0743a37ce95a7f5d02c1fa3c2 | static av_noinline void emulated_edge_mc_sse(uint8_t * buf,const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
... | {
"code": [
" hfixtbl_sse, &ff_emu_edge_hvar_sse);"
],
"line_no": [
17
]
} | static av_noinline void FUNC_0(uint8_t * buf,const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
i... | [
"static av_noinline void FUNC_0(uint8_t * buf,const uint8_t *src,\nptrdiff_t buf_stride,\nptrdiff_t src_stride,\nint block_w, int block_h,\nint src_x, int src_y, int w, int h)\n{",
"emulated_edge_mc(buf, src, buf_stride, src_stride, block_w, block_h,\nsrc_x, src_y, w, h, vfixtbl_sse, &ff_emu_edge_vvar_sse,\nhfixt... | [
0,
1,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15,
17
],
[
19
]
] |
6,723 | static inline int lock_hpte(void *hpte, target_ulong bits)
{
uint64_t pteh;
pteh = ldq_p(hpte);
/* We're protected by qemu's global lock here */
if (pteh & bits) {
return 0;
}
stq_p(hpte, pteh | HPTE_V_HVLOCK);
return 1;
}
| true | qemu | 35f9304d925a5423c51bd2c83a81fa3cc2b6e680 | static inline int lock_hpte(void *hpte, target_ulong bits)
{
uint64_t pteh;
pteh = ldq_p(hpte);
if (pteh & bits) {
return 0;
}
stq_p(hpte, pteh | HPTE_V_HVLOCK);
return 1;
}
| {
"code": [
"static inline int lock_hpte(void *hpte, target_ulong bits)",
" uint64_t pteh;",
" pteh = ldq_p(hpte);",
" if (pteh & bits) {",
" return 0;",
" stq_p(hpte, pteh | HPTE_V_HVLOCK);",
" return 1;"
],
"line_no": [
1,
5,
9,
15,
17,
2... | static inline int FUNC_0(void *VAR_0, target_ulong VAR_1)
{
uint64_t pteh;
pteh = ldq_p(VAR_0);
if (pteh & VAR_1) {
return 0;
}
stq_p(VAR_0, pteh | HPTE_V_HVLOCK);
return 1;
}
| [
"static inline int FUNC_0(void *VAR_0, target_ulong VAR_1)\n{",
"uint64_t pteh;",
"pteh = ldq_p(VAR_0);",
"if (pteh & VAR_1) {",
"return 0;",
"}",
"stq_p(VAR_0, pteh | HPTE_V_HVLOCK);",
"return 1;",
"}"
] | [
1,
1,
1,
1,
1,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
6,724 | static void iothread_set_poll_max_ns(Object *obj, Visitor *v,
const char *name, void *opaque, Error **errp)
{
IOThread *iothread = IOTHREAD(obj);
Error *local_err = NULL;
int64_t value;
visit_type_int64(v, name, &value, &local_err);
if (local_err) {
goto out;
}
... | true | qemu | 82a41186941c419afde977f477f19c545b40c1c5 | static void iothread_set_poll_max_ns(Object *obj, Visitor *v,
const char *name, void *opaque, Error **errp)
{
IOThread *iothread = IOTHREAD(obj);
Error *local_err = NULL;
int64_t value;
visit_type_int64(v, name, &value, &local_err);
if (local_err) {
goto out;
}
... | {
"code": [
" aio_context_set_poll_params(iothread->ctx, value, &local_err);"
],
"line_no": [
43
]
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1,
const char *VAR_2, void *VAR_3, Error **VAR_4)
{
IOThread *iothread = IOTHREAD(VAR_0);
Error *local_err = NULL;
int64_t value;
visit_type_int64(VAR_1, VAR_2, &value, &local_err);
if (local_err) {
goto out;
}
if (... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1,\nconst char *VAR_2, void *VAR_3, Error **VAR_4)\n{",
"IOThread *iothread = IOTHREAD(VAR_0);",
"Error *local_err = NULL;",
"int64_t value;",
"visit_type_int64(VAR_1, VAR_2, &value, &local_err);",
"if (local_err) {",
"goto out;",
"}",
"if (value < 0) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49,
51
],
[
53
]
] |
6,725 | int queue_signal(CPUArchState *env, int sig, target_siginfo_t *info)
{
CPUState *cpu = ENV_GET_CPU(env);
TaskState *ts = cpu->opaque;
struct emulated_sigtable *k;
struct sigqueue *q, **pq;
abi_ulong handler;
int queue;
trace_user_queue_signal(env, sig);
k = &ts->sigtab[sig - 1... | true | qemu | 3d3efba020da1de57a715e2087cf761ed0ad0904 | int queue_signal(CPUArchState *env, int sig, target_siginfo_t *info)
{
CPUState *cpu = ENV_GET_CPU(env);
TaskState *ts = cpu->opaque;
struct emulated_sigtable *k;
struct sigqueue *q, **pq;
abi_ulong handler;
int queue;
trace_user_queue_signal(env, sig);
k = &ts->sigtab[sig - 1... | {
"code": [
" if (ts->sigsegv_blocked && sig == TARGET_SIGSEGV) {",
" ts->signal_pending = 1;",
" if (ts->sigsegv_blocked && sig == TARGET_SIGSEGV) {"
],
"line_no": [
29,
141,
29
]
} | int FUNC_0(CPUArchState *VAR_0, int VAR_1, target_siginfo_t *VAR_2)
{
CPUState *cpu = ENV_GET_CPU(VAR_0);
TaskState *ts = cpu->opaque;
struct emulated_sigtable *VAR_3;
struct sigqueue *VAR_4, **VAR_5;
abi_ulong handler;
int VAR_6;
trace_user_queue_signal(VAR_0, VAR_1);
VAR_3 =... | [
"int FUNC_0(CPUArchState *VAR_0, int VAR_1, target_siginfo_t *VAR_2)\n{",
"CPUState *cpu = ENV_GET_CPU(VAR_0);",
"TaskState *ts = cpu->opaque;",
"struct emulated_sigtable *VAR_3;",
"struct sigqueue *VAR_4, **VAR_5;",
"abi_ulong handler;",
"int VAR_6;",
"trace_user_queue_signal(VAR_0, VAR_1);",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
65,... |
6,726 | static void dss_sp_shift_sq_sub(const int32_t *filter_buf,
int32_t *error_buf, int32_t *dst)
{
int a;
for (a = 0; a < 72; a++) {
int i, tmp;
tmp = dst[a] * filter_buf[0];
for (i = 14; i > 0; i--)
tmp -= error_buf[i] * (unsigned)fi... | true | FFmpeg | 6ea428789371fa0601e9ebb5b7f2216d4e73e831 | static void dss_sp_shift_sq_sub(const int32_t *filter_buf,
int32_t *error_buf, int32_t *dst)
{
int a;
for (a = 0; a < 72; a++) {
int i, tmp;
tmp = dst[a] * filter_buf[0];
for (i = 14; i > 0; i--)
tmp -= error_buf[i] * (unsigned)fi... | {
"code": [
" tmp = (tmp + 4096) >> 13;"
],
"line_no": [
33
]
} | static void FUNC_0(const int32_t *VAR_0,
int32_t *VAR_1, int32_t *VAR_2)
{
int VAR_3;
for (VAR_3 = 0; VAR_3 < 72; VAR_3++) {
int VAR_4, VAR_5;
VAR_5 = VAR_2[VAR_3] * VAR_0[0];
for (VAR_4 = 14; VAR_4 > 0; VAR_4--)
VAR_5 -= VAR_1[VA... | [
"static void FUNC_0(const int32_t *VAR_0,\nint32_t *VAR_1, int32_t *VAR_2)\n{",
"int VAR_3;",
"for (VAR_3 = 0; VAR_3 < 72; VAR_3++) {",
"int VAR_4, VAR_5;",
"VAR_5 = VAR_2[VAR_3] * VAR_0[0];",
"for (VAR_4 = 14; VAR_4 > 0; VAR_4--)",
"VAR_5 -= VAR_1[VAR_4] * (unsigned)VAR_0[VAR_4];",
"for (VAR_4 = 14; ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
]
] |
6,728 | static void gem_transmit(CadenceGEMState *s)
{
unsigned desc[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
/* Do nothing if transmit is not enabled. */
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
DB_PRINT("\n");... | true | qemu | d7f053652fef48bee7c461c162c8d4d2c96ab157 | static void gem_transmit(CadenceGEMState *s)
{
unsigned desc[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
DB_PRINT("\n");
p = tx_packet;
total_bytes ... | {
"code": [],
"line_no": []
} | static void FUNC_0(CadenceGEMState *VAR_0)
{
unsigned VAR_1[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned VAR_2;
if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
DB_PRINT("\n");
p = tx_packet;
VAR_2 = 0;
... | [
"static void FUNC_0(CadenceGEMState *VAR_0)\n{",
"unsigned VAR_1[2];",
"hwaddr packet_desc_addr;",
"uint8_t tx_packet[2048];",
"uint8_t *p;",
"unsigned VAR_2;",
"if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {",
"return;",
"DB_PRINT(\"\\n\");",
"p = tx_packet;",
"VAR_2 = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
9
],
[
10
],
[
11
],
[
16
],
[
17
],
[
19
],
[
20
],
[
21,
22
],
[
24
],
[
26
],
[
27
],
[
28
],
[
32,
33
]... |
6,729 | int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
AVPacketList **next_point, *this_pktl;
AVStream *st = s->streams[pkt->stream_index];
int chunked = s->max_chunk_size || s->max_chunk_duration;
... | false | FFmpeg | 69a96f9d4cf6d5a7f5b568c713b48d78452838fd | int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
AVPacketList **next_point, *this_pktl;
AVStream *st = s->streams[pkt->stream_index];
int chunked = s->max_chunk_size || s->max_chunk_duration;
... | {
"code": [],
"line_no": []
} | VAR_4intVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,
VAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))
{
VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR_... | [
"VAR_4intVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,\nVAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))\n{",
"VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR_4, *VAR_4this_pktlVAR_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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,... |
6,730 | static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct,
float *out, float X[2][38][64],
float mdct_buf[2][64],
float *v0, int *v_off, const unsigned int div)
{
int i, n;
const float *sbr_qmf_window = div ? s... | false | FFmpeg | aac46e088d67a390489af686b846dea4987d8ffb | static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct,
float *out, float X[2][38][64],
float mdct_buf[2][64],
float *v0, int *v_off, const unsigned int div)
{
int i, n;
const float *sbr_qmf_window = div ? s... | {
"code": [],
"line_no": []
} | static void FUNC_0(DSPContext *VAR_0, FFTContext *VAR_1,
float *VAR_2, float VAR_3[2][38][64],
float VAR_4[2][64],
float *VAR_5, int *VAR_6, const unsigned int VAR_7)
{
int VAR_8, VAR_9;
const float *VAR_10 = VAR_7 ?... | [
"static void FUNC_0(DSPContext *VAR_0, FFTContext *VAR_1,\nfloat *VAR_2, float VAR_3[2][38][64],\nfloat VAR_4[2][64],\nfloat *VAR_5, int *VAR_6, const unsigned int VAR_7)\n{",
"int VAR_8, VAR_9;",
"const float *VAR_10 = VAR_7 ? sbr_qmf_window_ds : sbr_qmf_window_us;",
"const int VAR_11 = 128 >> VAR_7;",
"fl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
6,731 | static int qdm2_decode(QDM2Context *q, const uint8_t *in, int16_t *out)
{
int ch, i;
const int frame_size = (q->frame_size * q->channels);
/* select input buffer */
q->compressed_data = in;
q->compressed_size = q->checksum_size;
/* copy old block, clear new block of output samples */
... | false | FFmpeg | 4b1f5e5090abed6c618c8ba380cd7d28d140f867 | static int qdm2_decode(QDM2Context *q, const uint8_t *in, int16_t *out)
{
int ch, i;
const int frame_size = (q->frame_size * q->channels);
q->compressed_data = in;
q->compressed_size = q->checksum_size;
memmove(q->output_buffer, &q->output_buffer[frame_size], frame_size * sizeo... | {
"code": [],
"line_no": []
} | static int FUNC_0(QDM2Context *VAR_0, const uint8_t *VAR_1, int16_t *VAR_2)
{
int VAR_3, VAR_4;
const int VAR_5 = (VAR_0->VAR_5 * VAR_0->channels);
VAR_0->compressed_data = VAR_1;
VAR_0->compressed_size = VAR_0->checksum_size;
memmove(VAR_0->output_buffer, &VAR_0->output_buffer... | [
"static int FUNC_0(QDM2Context *VAR_0, const uint8_t *VAR_1, int16_t *VAR_2)\n{",
"int VAR_3, VAR_4;",
"const int VAR_5 = (VAR_0->VAR_5 * VAR_0->channels);",
"VAR_0->compressed_data = VAR_1;",
"VAR_0->compressed_size = VAR_0->checksum_size;",
"memmove(VAR_0->output_buffer, &VAR_0->output_buffer[VAR_5], VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
59
],
[
61
],
[
65
],
... |
6,732 | int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count)
{
ByteIOContext pb;
uint8_t *buf;
int len;
int rtcp_bytes;
if (!s->rtp_ctx || (count < 1))
return -1;
/* XXX: mpeg pts hardcoded. RTCP send every 0.5 seconds */
s->octet_count += count;
rtcp_bytes = ((s->... | false | FFmpeg | 4a6cc06123d969fe3214ff874bc87c1aec529143 | int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count)
{
ByteIOContext pb;
uint8_t *buf;
int len;
int rtcp_bytes;
if (!s->rtp_ctx || (count < 1))
return -1;
s->octet_count += count;
rtcp_bytes = ((s->octet_count - s->last_octet_count) * RTCP_TX_RATIO_NUM) /
... | {
"code": [],
"line_no": []
} | int FUNC_0(RTPDemuxContext *VAR_0, int VAR_1)
{
ByteIOContext pb;
uint8_t *buf;
int VAR_2;
int VAR_3;
if (!VAR_0->rtp_ctx || (VAR_1 < 1))
return -1;
VAR_0->octet_count += VAR_1;
VAR_3 = ((VAR_0->octet_count - VAR_0->last_octet_count) * RTCP_TX_RATIO_NUM) /
... | [
"int FUNC_0(RTPDemuxContext *VAR_0, int VAR_1)\n{",
"ByteIOContext pb;",
"uint8_t *buf;",
"int VAR_2;",
"int VAR_3;",
"if (!VAR_0->rtp_ctx || (VAR_1 < 1))\nreturn -1;",
"VAR_0->octet_count += VAR_1;",
"VAR_3 = ((VAR_0->octet_count - VAR_0->last_octet_count) * RTCP_TX_RATIO_NUM) /\nRTCP_TX_RATIO_DEN;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
39,
41
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
... |
6,733 | int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MpegEncContext *s = avctx->priv_data;
int ret;
int slice_ret = 0;
AVFrame *pict = data;
s->f... | false | FFmpeg | b239f3f69d1c10a7d12354a9038c5b109661324e | int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MpegEncContext *s = avctx->priv_data;
int ret;
int slice_ret = 0;
AVFrame *pict = data;
s->f... | {
"code": [],
"line_no": []
} | 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;
MpegEncContext *s = VAR_0->priv_data;
int VAR_6;
int VAR_7 = 0;
AVFrame *pict = VAR_1;
s->flags = VAR_0->fla... | [
"int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MpegEncContext *s = VAR_0->priv_data;",
"int VAR_6;",
"int VAR_7 = 0;",
"AVFrame *pict = VAR_1;",
"s->flags = VAR_0->flags;",
"s->flags2 = V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[
57
... |
6,734 | static void decorrelate_stereo_24(int32_t *buffer[MAX_CHANNELS],
int32_t *buffer_out,
int32_t *wasted_bits_buffer[MAX_CHANNELS],
int wasted_bits,
int numchannels, int numsamples,
... | false | FFmpeg | dbbb9262ca0fd09f2582b11157a74c88ab7e1db5 | static void decorrelate_stereo_24(int32_t *buffer[MAX_CHANNELS],
int32_t *buffer_out,
int32_t *wasted_bits_buffer[MAX_CHANNELS],
int wasted_bits,
int numchannels, int numsamples,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(int32_t *VAR_0[MAX_CHANNELS],
int32_t *VAR_1,
int32_t *VAR_2[MAX_CHANNELS],
int VAR_3,
int VAR_4, int VAR_5,
uint8_t VAR_6,
... | [
"static void FUNC_0(int32_t *VAR_0[MAX_CHANNELS],\nint32_t *VAR_1,\nint32_t *VAR_2[MAX_CHANNELS],\nint VAR_3,\nint VAR_4, int VAR_5,\nuint8_t VAR_6,\nuint8_t VAR_7)\n{",
"int VAR_8;",
"if (VAR_5 <= 0)\nreturn;",
"if (VAR_7) {",
"for (VAR_8 = 0; VAR_8 < VAR_5; VAR_8++) {",
"int32_t a, b;",
"a = VAR_0[0][... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
21,
23
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[
61
],
[... |
6,735 | static int xwma_read_header(AVFormatContext *s)
{
int64_t size;
int ret = 0;
uint32_t dpds_table_size = 0;
uint32_t *dpds_table = NULL;
unsigned int tag;
AVIOContext *pb = s->pb;
AVStream *st;
XWMAContext *xwma = s->priv_data;
int i;
/* The following code is mostly c... | false | FFmpeg | b9fbd034bfd4b323d57bc2ac888301c93fcfd4ca | static int xwma_read_header(AVFormatContext *s)
{
int64_t size;
int ret = 0;
uint32_t dpds_table_size = 0;
uint32_t *dpds_table = NULL;
unsigned int tag;
AVIOContext *pb = s->pb;
AVStream *st;
XWMAContext *xwma = s->priv_data;
int i;
tag = avio_rl32... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int64_t size;
int VAR_1 = 0;
uint32_t dpds_table_size = 0;
uint32_t *dpds_table = NULL;
unsigned int VAR_2;
AVIOContext *pb = VAR_0->pb;
AVStream *st;
XWMAContext *xwma = VAR_0->priv_data;
int VAR_3;
VAR_2... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int64_t size;",
"int VAR_1 = 0;",
"uint32_t dpds_table_size = 0;",
"uint32_t *dpds_table = NULL;",
"unsigned int VAR_2;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st;",
"XWMAContext *xwma = VAR_0->priv_data;",
"int VAR_3;",
"VAR_2 = avio_rl32(pb... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45,
47
],
[
53
],
[
55,
57
],
[
59
],
[... |
6,736 | static void test_acpi_asl(test_data *data)
{
int i;
AcpiSdtTable *sdt, *exp_sdt;
test_data exp_data;
memset(&exp_data, 0, sizeof(exp_data));
exp_data.ssdt_tables = load_expected_aml(data);
dump_aml_files(data);
for (i = 0; i < data->ssdt_tables->len; ++i) {
GString *asl, *... | false | qemu | 4500bc98a6aab1734d865afaeade3509eb65b560 | static void test_acpi_asl(test_data *data)
{
int i;
AcpiSdtTable *sdt, *exp_sdt;
test_data exp_data;
memset(&exp_data, 0, sizeof(exp_data));
exp_data.ssdt_tables = load_expected_aml(data);
dump_aml_files(data);
for (i = 0; i < data->ssdt_tables->len; ++i) {
GString *asl, *... | {
"code": [],
"line_no": []
} | static void FUNC_0(test_data *VAR_0)
{
int VAR_1;
AcpiSdtTable *sdt, *exp_sdt;
test_data exp_data;
memset(&exp_data, 0, sizeof(exp_data));
exp_data.ssdt_tables = load_expected_aml(VAR_0);
dump_aml_files(VAR_0);
for (VAR_1 = 0; VAR_1 < VAR_0->ssdt_tables->len; ++VAR_1) {
GS... | [
"static void FUNC_0(test_data *VAR_0)\n{",
"int VAR_1;",
"AcpiSdtTable *sdt, *exp_sdt;",
"test_data exp_data;",
"memset(&exp_data, 0, sizeof(exp_data));",
"exp_data.ssdt_tables = load_expected_aml(VAR_0);",
"dump_aml_files(VAR_0);",
"for (VAR_1 = 0; VAR_1 < VAR_0->ssdt_tables->len; ++VAR_1) {",
"GSt... | [
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
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
6,737 | static void iscsi_nop_timed_event(void *opaque)
{
IscsiLun *iscsilun = opaque;
aio_context_acquire(iscsilun->aio_context);
if (iscsi_get_nops_in_flight(iscsilun->iscsi) >= MAX_NOP_FAILURES) {
error_report("iSCSI: NOP timeout. Reconnecting...");
iscsilun->request_timed_out = true;
... | false | qemu | d045c466d9e62b4321fadf586d024d54ddfd8bd4 | static void iscsi_nop_timed_event(void *opaque)
{
IscsiLun *iscsilun = opaque;
aio_context_acquire(iscsilun->aio_context);
if (iscsi_get_nops_in_flight(iscsilun->iscsi) >= MAX_NOP_FAILURES) {
error_report("iSCSI: NOP timeout. Reconnecting...");
iscsilun->request_timed_out = true;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
IscsiLun *iscsilun = VAR_0;
aio_context_acquire(iscsilun->aio_context);
if (iscsi_get_nops_in_flight(iscsilun->iscsi) >= MAX_NOP_FAILURES) {
error_report("iSCSI: NOP timeout. Reconnecting...");
iscsilun->request_timed_out = true;
} else if (iscs... | [
"static void FUNC_0(void *VAR_0)\n{",
"IscsiLun *iscsilun = VAR_0;",
"aio_context_acquire(iscsilun->aio_context);",
"if (iscsi_get_nops_in_flight(iscsilun->iscsi) >= MAX_NOP_FAILURES) {",
"error_report(\"iSCSI: NOP timeout. Reconnecting...\");",
"iscsilun->request_timed_out = true;",
"} else if (iscsi_n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33,
35
],
[
37
]
] |
6,738 | static bool sys_ops_accepts(void *opaque, target_phys_addr_t addr,
unsigned size, bool is_write)
{
return is_write && size == 4;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static bool sys_ops_accepts(void *opaque, target_phys_addr_t addr,
unsigned size, bool is_write)
{
return is_write && size == 4;
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size, bool is_write)
{
return is_write && size == 4;
}
| [
"static bool FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size, bool is_write)\n{",
"return is_write && size == 4;",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
6,739 | static target_ulong h_set_mode_resouce_addr_trans_mode(PowerPCCPU *cpu,
target_ulong mflags,
target_ulong value1,
target_ulong value2)
{
CPUState ... | false | qemu | b653282eccd2b43fd8068b9d6de40a3ff9e801ec | static target_ulong h_set_mode_resouce_addr_trans_mode(PowerPCCPU *cpu,
target_ulong mflags,
target_ulong value1,
target_ulong value2)
{
CPUState ... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(PowerPCCPU *cpu,
target_ulong mflags,
target_ulong value1,
target_ulong value2)
{
CPUState *cs;
PowerPCCPUClass *p... | [
"static target_ulong FUNC_0(PowerPCCPU *cpu,\ntarget_ulong mflags,\ntarget_ulong value1,\ntarget_ulong value2)\n{",
"CPUState *cs;",
"PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);",
"target_ulong prefix;",
"if (!(pcc->insns_flags2 & PPC2_ISA207S)) {",
"return H_P2;",
"}",
"if (value1) {",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[... |
6,741 | static int v210_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int packet_size, ret, width, height;
AVStream *st = s->streams[0];
width = st->codec->width;
height = st->codec->height;
packet_size = GET_PACKET_SIZE(width, height);
if (packet_size < 0)
return -1;
ret =... | false | FFmpeg | 12a419dacb479d663f04e316f9997568ef326965 | static int v210_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int packet_size, ret, width, height;
AVStream *st = s->streams[0];
width = st->codec->width;
height = st->codec->height;
packet_size = GET_PACKET_SIZE(width, height);
if (packet_size < 0)
return -1;
ret =... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5;
AVStream *st = VAR_0->streams[0];
VAR_4 = st->codec->VAR_4;
VAR_5 = st->codec->VAR_5;
VAR_2 = GET_PACKET_SIZE(VAR_4, VAR_5);
if (VAR_2 < 0)
return -1;
VAR_3 = av_get_packet(VAR... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"AVStream *st = VAR_0->streams[0];",
"VAR_4 = st->codec->VAR_4;",
"VAR_5 = st->codec->VAR_5;",
"VAR_2 = GET_PACKET_SIZE(VAR_4, VAR_5);",
"if (VAR_2 < 0)\nreturn -1;",
"VAR_3 = av_get_packet(VAR_0->pb, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
]
] |
6,742 | void op_dmtc0_ebase (void)
{
/* vectored interrupts not implemented */
/* Multi-CPU not implemented */
/* XXX: 64bit addressing broken */
env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000);
RETURN();
}
| false | qemu | b29a0341d7ed7e7df4bf77a41db8e614f1ddb645 | void op_dmtc0_ebase (void)
{
env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000);
RETURN();
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (void)
{
env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000);
RETURN();
}
| [
"void FUNC_0 (void)\n{",
"env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000);",
"RETURN();",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
11
],
[
13
],
[
15
]
] |
6,743 | static int vmdk_add_extent(BlockDriverState *bs,
BlockDriverState *file, bool flat, int64_t sectors,
int64_t l1_offset, int64_t l1_backup_offset,
uint32_t l1_size,
int l2_size, uint64_t cluster_sectors,
... | false | qemu | d34682cd4a06efe9ee3fc8cb7e8a0ea445299989 | static int vmdk_add_extent(BlockDriverState *bs,
BlockDriverState *file, bool flat, int64_t sectors,
int64_t l1_offset, int64_t l1_backup_offset,
uint32_t l1_size,
int l2_size, uint64_t cluster_sectors,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
BlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3,
int64_t VAR_4, int64_t VAR_5,
uint32_t VAR_6,
int VAR_7, uint64_t VAR_8,
VmdkExtent *... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3,\nint64_t VAR_4, int64_t VAR_5,\nuint32_t VAR_6,\nint VAR_7, uint64_t VAR_8,\nVmdkExtent **VAR_9,\nError **VAR_10)\n{",
"VmdkExtent *extent;",
"BDRVVmdkState *s = VAR_0->opaque;",
"if (VAR_8 > 0x200000) {",
"erro... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
55
],
[
57
],
[
61
],
[
63
],
[... |
6,744 | static inline void tlb_protect_code1(CPUTLBEntry *tlb_entry, uint32_t addr)
{
if (addr == (tlb_entry->address &
(TARGET_PAGE_MASK | TLB_INVALID_MASK)) &&
(tlb_entry->address & ~TARGET_PAGE_MASK) != IO_MEM_CODE) {
tlb_entry->address |= IO_MEM_CODE;
tlb_entry->addend -=... | false | qemu | 988578886e0b9af507a7ef111f549c5dd47d93f3 | static inline void tlb_protect_code1(CPUTLBEntry *tlb_entry, uint32_t addr)
{
if (addr == (tlb_entry->address &
(TARGET_PAGE_MASK | TLB_INVALID_MASK)) &&
(tlb_entry->address & ~TARGET_PAGE_MASK) != IO_MEM_CODE) {
tlb_entry->address |= IO_MEM_CODE;
tlb_entry->addend -=... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(CPUTLBEntry *VAR_0, uint32_t VAR_1)
{
if (VAR_1 == (VAR_0->address &
(TARGET_PAGE_MASK | TLB_INVALID_MASK)) &&
(VAR_0->address & ~TARGET_PAGE_MASK) != IO_MEM_CODE) {
VAR_0->address |= IO_MEM_CODE;
VAR_0->addend -= (unsigned long)phys_ram_base... | [
"static inline void FUNC_0(CPUTLBEntry *VAR_0, uint32_t VAR_1)\n{",
"if (VAR_1 == (VAR_0->address &\n(TARGET_PAGE_MASK | TLB_INVALID_MASK)) &&\n(VAR_0->address & ~TARGET_PAGE_MASK) != IO_MEM_CODE) {",
"VAR_0->address |= IO_MEM_CODE;",
"VAR_0->addend -= (unsigned long)phys_ram_base;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
6,745 | static void disas_system(DisasContext *s, uint32_t insn)
{
unsigned int l, op0, op1, crn, crm, op2, rt;
l = extract32(insn, 21, 1);
op0 = extract32(insn, 19, 2);
op1 = extract32(insn, 16, 3);
crn = extract32(insn, 12, 4);
crm = extract32(insn, 8, 4);
op2 = extract32(insn, 5, 3);
... | false | qemu | fea505221eaf87889000378d4d33ad0dfd5f4d9d | static void disas_system(DisasContext *s, uint32_t insn)
{
unsigned int l, op0, op1, crn, crm, op2, rt;
l = extract32(insn, 21, 1);
op0 = extract32(insn, 19, 2);
op1 = extract32(insn, 16, 3);
crn = extract32(insn, 12, 4);
crm = extract32(insn, 8, 4);
op2 = extract32(insn, 5, 3);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{
unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
VAR_2 = extract32(VAR_1, 21, 1);
VAR_3 = extract32(VAR_1, 19, 2);
VAR_4 = extract32(VAR_1, 16, 3);
VAR_5 = extract32(VAR_1, 12, 4);
VAR_6 = extract32(VAR_1, 8, 4);
... | [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{",
"unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"VAR_2 = extract32(VAR_1, 21, 1);",
"VAR_3 = extract32(VAR_1, 19, 2);",
"VAR_4 = extract32(VAR_1, 16, 3);",
"VAR_5 = extract32(VAR_1, 12, 4);",
"VAR_6 = extract32(VAR_1, 8, 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
... |
6,746 | POWERPC_FAMILY(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_... | false | qemu | b60c60070c0df4ef01d5c727929fe0e93e6fdd09 | POWERPC_FAMILY(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_... | {
"code": [],
"line_no": []
} | FUNC_0(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_mask = P... | [
"FUNC_0(POWER7P)(ObjectClass *oc, void *data)\n{",
"DeviceClass *dc = DEVICE_CLASS(oc);",
"PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);",
"dc->fw_name = \"PowerPC,POWER7+\";",
"dc->desc = \"POWER7+\";",
"dc->props = powerpc_servercpu_properties;",
"pcc->pvr_match = ppc_pvr_match_power7;",
"pcc->pcr_m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49,
51,
53,
55
],
[
57... |
6,747 | static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
char buffer[PATH_MAX];
return lgetxattr(rpath(ctx, path, buffer), MAP_ACL_DEFAULT, value, size);
}
| false | qemu | 4fa4ce7107c6ec432f185307158c5df91ce54308 | static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
char buffer[PATH_MAX];
return lgetxattr(rpath(ctx, path, buffer), MAP_ACL_DEFAULT, value, size);
}
| {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
char VAR_0[PATH_MAX];
return lgetxattr(rpath(ctx, path, VAR_0), MAP_ACL_DEFAULT, value, size);
}
| [
"static ssize_t FUNC_0(FsContext *ctx, const char *path,\nconst char *name, void *value, size_t size)\n{",
"char VAR_0[PATH_MAX];",
"return lgetxattr(rpath(ctx, path, VAR_0), MAP_ACL_DEFAULT, value, size);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
6,749 | static void fdt_add_timer_nodes(const VirtBoardInfo *vbi)
{
/* Note that on A15 h/w these interrupts are level-triggered,
* but for the GIC implementation provided by both QEMU and KVM
* they are edge-triggered.
*/
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_EDGE_LO_HI;
irqflags = deposit3... | false | qemu | b32a950910bc03f2c012794b3215fc2de8f90de3 | static void fdt_add_timer_nodes(const VirtBoardInfo *vbi)
{
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_EDGE_LO_HI;
irqflags = deposit32(irqflags, GIC_FDT_IRQ_PPI_CPU_START,
GIC_FDT_IRQ_PPI_CPU_WIDTH, (1 << vbi->smp_cpus) - 1);
qemu_fdt_add_subnode(vbi->fdt, "/timer")... | {
"code": [],
"line_no": []
} | static void FUNC_0(const VirtBoardInfo *VAR_0)
{
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_EDGE_LO_HI;
irqflags = deposit32(irqflags, GIC_FDT_IRQ_PPI_CPU_START,
GIC_FDT_IRQ_PPI_CPU_WIDTH, (1 << VAR_0->smp_cpus) - 1);
qemu_fdt_add_subnode(VAR_0->fdt, "/timer");
... | [
"static void FUNC_0(const VirtBoardInfo *VAR_0)\n{",
"uint32_t irqflags = GIC_FDT_IRQ_FLAGS_EDGE_LO_HI;",
"irqflags = deposit32(irqflags, GIC_FDT_IRQ_PPI_CPU_START,\nGIC_FDT_IRQ_PPI_CPU_WIDTH, (1 << VAR_0->smp_cpus) - 1);",
"qemu_fdt_add_subnode(VAR_0->fdt, \"/timer\");",
"qemu_fdt_setprop_string(VAR_0->fdt... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29,
31,
33,
35,
37
],
[
39
]
] |
6,750 | static void eeprom24c0x_write(int scl, int sda)
{
if (eeprom.scl && scl && (eeprom.sda != sda)) {
logout("%u: scl = %u->%u, sda = %u->%u i2c %s\n",
eeprom.tick, eeprom.scl, scl, eeprom.sda, sda, sda ? "stop" : "start");
if (!sda) {
eeprom.tick = 1;
eepr... | false | qemu | 35c648078aa493c3b976840eb7cf2e53ab5b7a2d | static void eeprom24c0x_write(int scl, int sda)
{
if (eeprom.scl && scl && (eeprom.sda != sda)) {
logout("%u: scl = %u->%u, sda = %u->%u i2c %s\n",
eeprom.tick, eeprom.scl, scl, eeprom.sda, sda, sda ? "stop" : "start");
if (!sda) {
eeprom.tick = 1;
eepr... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, int VAR_1)
{
if (eeprom.VAR_0 && VAR_0 && (eeprom.VAR_1 != VAR_1)) {
logout("%u: VAR_0 = %u->%u, VAR_1 = %u->%u i2c %s\n",
eeprom.tick, eeprom.VAR_0, VAR_0, eeprom.VAR_1, VAR_1, VAR_1 ? "stop" : "start");
if (!VAR_1) {
eeprom.tick = 1;
... | [
"static void FUNC_0(int VAR_0, int VAR_1)\n{",
"if (eeprom.VAR_0 && VAR_0 && (eeprom.VAR_1 != VAR_1)) {",
"logout(\"%u: VAR_0 = %u->%u, VAR_1 = %u->%u i2c %s\\n\",\neeprom.tick, eeprom.VAR_0, VAR_0, eeprom.VAR_1, VAR_1, VAR_1 ? \"stop\" : \"start\");",
"if (!VAR_1) {",
"eeprom.tick = 1;",
"eeprom.command ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
6,751 | static void cmd_mode_sense(IDEState *s, uint8_t *buf)
{
int action, code;
int max_len;
if (buf[0] == GPCMD_MODE_SENSE_10) {
max_len = ube16_to_cpu(buf + 7);
} else {
max_len = buf[4];
}
action = buf[2] >> 6;
code = buf[2] & 0x3f;
switch(action) {
cas... | false | qemu | a07c7dcd6f33b668747148ac28c0e147f958aa18 | static void cmd_mode_sense(IDEState *s, uint8_t *buf)
{
int action, code;
int max_len;
if (buf[0] == GPCMD_MODE_SENSE_10) {
max_len = ube16_to_cpu(buf + 7);
} else {
max_len = buf[4];
}
action = buf[2] >> 6;
code = buf[2] & 0x3f;
switch(action) {
cas... | {
"code": [],
"line_no": []
} | static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)
{
int VAR_2, VAR_3;
int VAR_4;
if (VAR_1[0] == GPCMD_MODE_SENSE_10) {
VAR_4 = ube16_to_cpu(VAR_1 + 7);
} else {
VAR_4 = VAR_1[4];
}
VAR_2 = VAR_1[2] >> 6;
VAR_3 = VAR_1[2] & 0x3f;
switch(VAR_2) {
ca... | [
"static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)\n{",
"int VAR_2, VAR_3;",
"int VAR_4;",
"if (VAR_1[0] == GPCMD_MODE_SENSE_10) {",
"VAR_4 = ube16_to_cpu(VAR_1 + 7);",
"} else {",
"VAR_4 = VAR_1[4];",
"}",
"VAR_2 = VAR_1[2] >> 6;",
"VAR_3 = VAR_1[2] & 0x3f;",
"switch(VAR_2) {",
"case 0:\nsw... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
6,752 | static inline void RENAME(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#if COMPILE_TEMPLATE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PRE... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#if COMPILE_TEMPLATE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PRE... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint8_t *VAR_0 = src;
const uint8_t *VAR_1;
#if COMPILE_TEMPLATE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
VAR_1 = VAR_0 + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ ... | [
"static inline void FUNC_0(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size)\n{",
"const uint8_t *VAR_0 = src;",
"const uint8_t *VAR_1;",
"#if COMPILE_TEMPLATE_MMX\nconst uint8_t *mm_end;",
"#endif\nuint16_t *d = (uint16_t *)dst;",
"VAR_1 = VAR_0 + src_size;",
"#if COMPILE_TEMPLATE_MMX\n__a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23,
25,
27,
29
],
[
31
],
[
33
],
[
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,... |
6,754 | int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp)
{
/* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */
char *tmp_filename = g_malloc0(PATH_MAX + 1);
int64_t total_size;
QemuOpts *opts = NULL;
QDict *snapshot_options;
BlockDriverState *bs_snaps... | false | qemu | c2e0dbbfd7265eb9a7170ab195d8f9f8a1cbd1af | int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp)
{
char *tmp_filename = g_malloc0(PATH_MAX + 1);
int64_t total_size;
QemuOpts *opts = NULL;
QDict *snapshot_options;
BlockDriverState *bs_snapshot;
Error *local_err;
int ret;
tota... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, int VAR_1, Error **VAR_2)
{
char *VAR_3 = g_malloc0(PATH_MAX + 1);
int64_t total_size;
QemuOpts *opts = NULL;
QDict *snapshot_options;
BlockDriverState *bs_snapshot;
Error *local_err;
int VAR_4;
total_size = bdrv_getlen... | [
"int FUNC_0(BlockDriverState *VAR_0, int VAR_1, Error **VAR_2)\n{",
"char *VAR_3 = g_malloc0(PATH_MAX + 1);",
"int64_t total_size;",
"QemuOpts *opts = NULL;",
"QDict *snapshot_options;",
"BlockDriverState *bs_snapshot;",
"Error *local_err;",
"int VAR_4;",
"total_size = bdrv_getlength(VAR_0);",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59... |
6,755 | void address_space_read(AddressSpace *as, target_phys_addr_t addr, uint8_t *buf, int len)
{
address_space_rw(as, addr, buf, len, false);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | void address_space_read(AddressSpace *as, target_phys_addr_t addr, uint8_t *buf, int len)
{
address_space_rw(as, addr, buf, len, false);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(AddressSpace *VAR_0, target_phys_addr_t VAR_1, uint8_t *VAR_2, int VAR_3)
{
address_space_rw(VAR_0, VAR_1, VAR_2, VAR_3, false);
}
| [
"void FUNC_0(AddressSpace *VAR_0, target_phys_addr_t VAR_1, uint8_t *VAR_2, int VAR_3)\n{",
"address_space_rw(VAR_0, VAR_1, VAR_2, VAR_3, false);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
6,756 | static int ide_write_dma_cb(IDEState *s,
target_phys_addr_t phys_addr,
int transfer_size1)
{
int len, transfer_size, n;
int64_t sector_num;
transfer_size = transfer_size1;
for(;;) {
len = s->io_buffer_size - s->io_buffer_index;
... | false | qemu | e774a278d82c9391c9fb6c9af42cd08bb9364b9f | static int ide_write_dma_cb(IDEState *s,
target_phys_addr_t phys_addr,
int transfer_size1)
{
int len, transfer_size, n;
int64_t sector_num;
transfer_size = transfer_size1;
for(;;) {
len = s->io_buffer_size - s->io_buffer_index;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(IDEState *VAR_0,
target_phys_addr_t VAR_1,
int VAR_2)
{
int VAR_3, VAR_4, VAR_5;
int64_t sector_num;
VAR_4 = VAR_2;
for(;;) {
VAR_3 = VAR_0->io_buffer_size - VAR_0->io_buffer_index;
if (VAR_3 == 0) {
... | [
"static int FUNC_0(IDEState *VAR_0,\ntarget_phys_addr_t VAR_1,\nint VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"int64_t sector_num;",
"VAR_4 = VAR_2;",
"for(;;) {",
"VAR_3 = VAR_0->io_buffer_size - VAR_0->io_buffer_index;",
"if (VAR_3 == 0) {",
"VAR_5 = VAR_0->io_buffer_size >> 9;",
"sector_num = ide_g... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
45
],
[
47
],
[... |
6,757 | static void pty_chr_update_read_handler_locked(CharDriverState *chr)
{
PtyCharDriver *s = chr->opaque;
GPollFD pfd;
pfd.fd = g_io_channel_unix_get_fd(s->fd);
pfd.events = G_IO_OUT;
pfd.revents = 0;
g_poll(&pfd, 1, 0);
if (pfd.revents & G_IO_HUP) {
pty_chr_state(chr, 0);
... | false | qemu | c1f2448998062f25df395cd239169400a4c41ed6 | static void pty_chr_update_read_handler_locked(CharDriverState *chr)
{
PtyCharDriver *s = chr->opaque;
GPollFD pfd;
pfd.fd = g_io_channel_unix_get_fd(s->fd);
pfd.events = G_IO_OUT;
pfd.revents = 0;
g_poll(&pfd, 1, 0);
if (pfd.revents & G_IO_HUP) {
pty_chr_state(chr, 0);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(CharDriverState *VAR_0)
{
PtyCharDriver *s = VAR_0->opaque;
GPollFD pfd;
pfd.fd = g_io_channel_unix_get_fd(s->fd);
pfd.events = G_IO_OUT;
pfd.revents = 0;
g_poll(&pfd, 1, 0);
if (pfd.revents & G_IO_HUP) {
pty_chr_state(VAR_0, 0);
} else {
p... | [
"static void FUNC_0(CharDriverState *VAR_0)\n{",
"PtyCharDriver *s = VAR_0->opaque;",
"GPollFD pfd;",
"pfd.fd = g_io_channel_unix_get_fd(s->fd);",
"pfd.events = G_IO_OUT;",
"pfd.revents = 0;",
"g_poll(&pfd, 1, 0);",
"if (pfd.revents & G_IO_HUP) {",
"pty_chr_state(VAR_0, 0);",
"} else {",
"pty_ch... | [
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
]
] |
6,758 | QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp)
{
JSONParserContext ctxt = {};
QList *working;
QObject *result;
if (!tokens) {
return NULL;
}
working = qlist_copy(tokens);
result = parse_value(&ctxt, &working, ap);
QDECREF(working);
e... | false | qemu | 65c0f1e9558c7c762cdb333406243fff1d687117 | QObject *json_parser_parse_err(QList *tokens, va_list *ap, Error **errp)
{
JSONParserContext ctxt = {};
QList *working;
QObject *result;
if (!tokens) {
return NULL;
}
working = qlist_copy(tokens);
result = parse_value(&ctxt, &working, ap);
QDECREF(working);
e... | {
"code": [],
"line_no": []
} | QObject *FUNC_0(QList *tokens, va_list *ap, Error **errp)
{
JSONParserContext ctxt = {};
QList *working;
QObject *result;
if (!tokens) {
return NULL;
}
working = qlist_copy(tokens);
result = parse_value(&ctxt, &working, ap);
QDECREF(working);
error_propagate(... | [
"QObject *FUNC_0(QList *tokens, va_list *ap, Error **errp)\n{",
"JSONParserContext ctxt = {};",
"QList *working;",
"QObject *result;",
"if (!tokens) {",
"return NULL;",
"}",
"working = qlist_copy(tokens);",
"result = parse_value(&ctxt, &working, ap);",
"QDECREF(working);",
"error_propagate(errp,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
]
] |
6,759 | int loader_exec(const char * filename, char ** argv, char ** envp,
struct target_pt_regs * regs, struct image_info *infop,
struct linux_binprm *bprm)
{
int retval;
int i;
bprm->p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);
memset(bprm->page, 0, sizeof(bprm->... | false | qemu | 03cfd8faa7ffb7201e2949b99c2f35b1fef7078b | int loader_exec(const char * filename, char ** argv, char ** envp,
struct target_pt_regs * regs, struct image_info *infop,
struct linux_binprm *bprm)
{
int retval;
int i;
bprm->p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);
memset(bprm->page, 0, sizeof(bprm->... | {
"code": [],
"line_no": []
} | int FUNC_0(const char * VAR_0, char ** VAR_1, char ** VAR_2,
struct target_pt_regs * VAR_3, struct image_info *VAR_4,
struct linux_binprm *VAR_5)
{
int VAR_6;
int VAR_7;
VAR_5->p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);
memset(VAR_5->page, 0, sizeof(VAR_5... | [
"int FUNC_0(const char * VAR_0, char ** VAR_1, char ** VAR_2,\nstruct target_pt_regs * VAR_3, struct image_info *VAR_4,\nstruct linux_binprm *VAR_5)\n{",
"int VAR_6;",
"int VAR_7;",
"VAR_5->p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);",
"memset(VAR_5->page, 0, sizeof(VAR_5->page));",
"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
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47,
49,
51,... |
6,760 | int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive)
{
int ret;
struct flock fl = {
.l_whence = SEEK_SET,
.l_start = start,
.l_len = len,
.l_type = exclusive ? F_WRLCK : F_RDLCK,
};
ret = fcntl(fd, QEMU_GETLK, &fl);
if (ret == -1) ... | false | qemu | ca749954b09b89e22cd69c4949fb7e689b057963 | int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive)
{
int ret;
struct flock fl = {
.l_whence = SEEK_SET,
.l_start = start,
.l_len = len,
.l_type = exclusive ? F_WRLCK : F_RDLCK,
};
ret = fcntl(fd, QEMU_GETLK, &fl);
if (ret == -1) ... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2, bool VAR_3)
{
int VAR_4;
struct flock VAR_5 = {
.l_whence = SEEK_SET,
.l_start = VAR_1,
.l_len = VAR_2,
.l_type = VAR_3 ? F_WRLCK : F_RDLCK,
};
VAR_4 = fcntl(VAR_0, QEMU_GETLK, &VAR_5);
if (VAR_4 == -... | [
"int FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2, bool VAR_3)\n{",
"int VAR_4;",
"struct flock VAR_5 = {",
".l_whence = SEEK_SET,\n.l_start = VAR_1,\n.l_len = VAR_2,\n.l_type = VAR_3 ? F_WRLCK : F_RDLCK,\n};",
"VAR_4 = fcntl(VAR_0, QEMU_GETLK, &VAR_5);",
"if (VAR_4 == -1) {",
"return -errno;",
... | [
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
]
] |
6,761 | static int swri_resample(ResampleContext *c,
uint8_t *dst, const uint8_t *src, int *consumed,
int src_size, int dst_size, int update_ctx)
{
int fn_idx = c->format - AV_SAMPLE_FMT_S16P;
if (c->filter_length == 1 && c->phase_shift == 0) {
int index... | false | FFmpeg | 857cd1f33bcf86005529af2a77f861f884327be5 | static int swri_resample(ResampleContext *c,
uint8_t *dst, const uint8_t *src, int *consumed,
int src_size, int dst_size, int update_ctx)
{
int fn_idx = c->format - AV_SAMPLE_FMT_S16P;
if (c->filter_length == 1 && c->phase_shift == 0) {
int index... | {
"code": [],
"line_no": []
} | static int FUNC_0(ResampleContext *VAR_0,
uint8_t *VAR_1, const uint8_t *VAR_2, int *VAR_3,
int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7 = VAR_0->format - AV_SAMPLE_FMT_S16P;
if (VAR_0->filter_length == 1 && VAR_0->phase_shift == 0) {
int VAR_8= ... | [
"static int FUNC_0(ResampleContext *VAR_0,\nuint8_t *VAR_1, const uint8_t *VAR_2, int *VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7 = VAR_0->format - AV_SAMPLE_FMT_S16P;",
"if (VAR_0->filter_length == 1 && VAR_0->phase_shift == 0) {",
"int VAR_8= VAR_0->VAR_8;",
"int VAR_9= VAR_0->VAR_9;",
"in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
6,762 | static int dash_init(AVFormatContext *s)
{
DASHContext *c = s->priv_data;
int ret = 0, i;
char *ptr;
char basename[1024];
if (c->single_file_name)
c->single_file = 1;
if (c->single_file)
c->use_template = 0;
av_strlcpy(c->dirname, s->filename, sizeof(c->dirname)... | false | FFmpeg | d24e08e978792e09d212018677d1c0b8208ecef8 | static int dash_init(AVFormatContext *s)
{
DASHContext *c = s->priv_data;
int ret = 0, i;
char *ptr;
char basename[1024];
if (c->single_file_name)
c->single_file = 1;
if (c->single_file)
c->use_template = 0;
av_strlcpy(c->dirname, s->filename, sizeof(c->dirname)... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
DASHContext *c = VAR_0->priv_data;
int VAR_1 = 0, VAR_2;
char *VAR_3;
char VAR_4[1024];
if (c->single_file_name)
c->single_file = 1;
if (c->single_file)
c->use_template = 0;
av_strlcpy(c->dirname, VAR_0->filename, size... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"DASHContext *c = VAR_0->priv_data;",
"int VAR_1 = 0, VAR_2;",
"char *VAR_3;",
"char VAR_4[1024];",
"if (c->single_file_name)\nc->single_file = 1;",
"if (c->single_file)\nc->use_template = 0;",
"av_strlcpy(c->dirname, VAR_0->filename, sizeof(c->dirname))... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[... |
6,764 | static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
const uint8_t *src, int width,
int esc_count)
{
int i = 0;
int count;
uint8_t zero_run = 0;
const uint8_t *start = src;
uint8_t mask1 = -(esc_count < ... | true | FFmpeg | 0a82f5275f719e6e369a807720a2c3603aa0ddd9 | static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
const uint8_t *src, int width,
int esc_count)
{
int i = 0;
int count;
uint8_t zero_run = 0;
const uint8_t *start = src;
uint8_t mask1 = -(esc_count < ... | {
"code": [
" const uint8_t *src, int width,",
" int esc_count)",
" const uint8_t *start = src;",
" return start - src;"
],
"line_no": [
3,
5,
15,
83
]
} | static int FUNC_0(LagarithContext *VAR_0, uint8_t *VAR_1,
const uint8_t *VAR_2, int VAR_3,
int VAR_4)
{
int VAR_5 = 0;
int VAR_6;
uint8_t zero_run = 0;
const uint8_t *VAR_7 = VAR_2;
uint8_t mask1 = -(VAR_4 < 2);
uin... | [
"static int FUNC_0(LagarithContext *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nint VAR_4)\n{",
"int VAR_5 = 0;",
"int VAR_6;",
"uint8_t zero_run = 0;",
"const uint8_t *VAR_7 = VAR_2;",
"uint8_t mask1 = -(VAR_4 < 2);",
"uint8_t mask2 = -(VAR_4 < 3);",
"uint8_t *end = VAR_1 + (VAR_3 - 2);... | [
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
6,765 | void av_force_cpu_flags(int arg){
if ( (arg & ( AV_CPU_FLAG_3DNOW |
AV_CPU_FLAG_3DNOWEXT |
AV_CPU_FLAG_MMXEXT |
AV_CPU_FLAG_SSE |
AV_CPU_FLAG_SSE2 |
AV_CPU_FLAG_SSE2SLOW |
A... | true | FFmpeg | fed50c4304eecb352e29ce789cdb96ea84d6162f | void av_force_cpu_flags(int arg){
if ( (arg & ( AV_CPU_FLAG_3DNOW |
AV_CPU_FLAG_3DNOWEXT |
AV_CPU_FLAG_MMXEXT |
AV_CPU_FLAG_SSE |
AV_CPU_FLAG_SSE2 |
AV_CPU_FLAG_SSE2SLOW |
A... | {
"code": [
" cpu_flags = arg;"
],
"line_no": [
47
]
} | void FUNC_0(int VAR_0){
if ( (VAR_0 & ( AV_CPU_FLAG_3DNOW |
AV_CPU_FLAG_3DNOWEXT |
AV_CPU_FLAG_MMXEXT |
AV_CPU_FLAG_SSE |
AV_CPU_FLAG_SSE2 |
AV_CPU_FLAG_SSE2SLOW |
AV_CPU_FL... | [
"void FUNC_0(int VAR_0){",
"if ( (VAR_0 & ( AV_CPU_FLAG_3DNOW |\nAV_CPU_FLAG_3DNOWEXT |\nAV_CPU_FLAG_MMXEXT |\nAV_CPU_FLAG_SSE |\nAV_CPU_FLAG_SSE2 |\nAV_CPU_FLAG_SSE2SLOW |\nAV_CPU_FLAG_SSE3 |\nAV_CPU_FLAG_SSE3SLOW |\nAV_CPU_FLAG_SSSE3 |\nAV_CPU_FLAG_SSE4 |\nAV_CPU_FLAG_SSE42 |\nAV_C... | [
0,
0,
0,
0,
0,
1,
0
] | [
[
1
],
[
3,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
6,766 | static void put_uint32(QEMUFile *f, void *pv, size_t size)
{
uint32_t *v = pv;
qemu_put_be32s(f, v);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void put_uint32(QEMUFile *f, void *pv, size_t size)
{
uint32_t *v = pv;
qemu_put_be32s(f, v);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
uint32_t *v = VAR_1;
qemu_put_be32s(VAR_0, v);
}
| [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"uint32_t *v = VAR_1;",
"qemu_put_be32s(VAR_0, v);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
6,767 | static int net_bridge_run_helper(const char *helper, const char *bridge)
{
sigset_t oldmask, mask;
int pid, status;
char *args[5];
char **parg;
int sv[2];
sigemptyset(&mask);
sigaddset(&mask, SIGCHLD);
sigprocmask(SIG_BLOCK, &mask, &oldmask);
if (socketpair(PF_UNIX, SOC... | true | qemu | a8a21be9855e0bb0947a7325d0d1741a8814f21e | static int net_bridge_run_helper(const char *helper, const char *bridge)
{
sigset_t oldmask, mask;
int pid, status;
char *args[5];
char **parg;
int sv[2];
sigemptyset(&mask);
sigaddset(&mask, SIGCHLD);
sigprocmask(SIG_BLOCK, &mask, &oldmask);
if (socketpair(PF_UNIX, SOC... | {
"code": [
"static int net_bridge_run_helper(const char *helper, const char *bridge)",
" } else if (pid > 0) {",
" fprintf(stderr, \"failed to recv file descriptor\\n\");",
" if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {",
" return fd;",
" fprintf(std... | static int FUNC_0(const char *VAR_0, const char *VAR_1)
{
sigset_t oldmask, mask;
int VAR_2, VAR_3;
char *VAR_4[5];
char **VAR_5;
int VAR_6[2];
sigemptyset(&mask);
sigaddset(&mask, SIGCHLD);
sigprocmask(SIG_BLOCK, &mask, &oldmask);
if (socketpair(PF_UNIX, SOCK_STREAM, 0... | [
"static int FUNC_0(const char *VAR_0, const char *VAR_1)\n{",
"sigset_t oldmask, mask;",
"int VAR_2, VAR_3;",
"char *VAR_4[5];",
"char **VAR_5;",
"int VAR_6[2];",
"sigemptyset(&mask);",
"sigaddset(&mask, SIGCHLD);",
"sigprocmask(SIG_BLOCK, &mask, &oldmask);",
"if (socketpair(PF_UNIX, SOCK_STREAM, ... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
6,768 | static BlockDriverAIOCB *curl_aio_readv(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVCURLState *s = bs->opaque;
CURLAIOCB *acb;
size_t start = sector_num * SECTOR_SIZE;
size_t end;
CURLState *... | true | qemu | c76f4952bbf47116255bc00780ceae3bc8a657c0 | static BlockDriverAIOCB *curl_aio_readv(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVCURLState *s = bs->opaque;
CURLAIOCB *acb;
size_t start = sector_num * SECTOR_SIZE;
size_t end;
CURLState *... | {
"code": [
" state->buf_len = acb->end + READ_AHEAD_SIZE;"
],
"line_no": [
85
]
} | static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVCURLState *s = bs->opaque;
CURLAIOCB *acb;
size_t start = sector_num * SECTOR_SIZE;
size_t end;
CURLState *state;
... | [
"static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{",
"BDRVCURLState *s = bs->opaque;",
"CURLAIOCB *acb;",
"size_t start = sector_num * SECTOR_SIZE;",
"size_t end;",
"CURLState *state;",
"acb = q... | [
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
39
],
[
41,
43
],
[
47,
49
],
[
51,
53
],
[
55
],
[
63
],
[
65,
67
],
[... |
6,769 | static int alloc_f(BlockDriverState *bs, int argc, char **argv)
{
int64_t offset, sector_num;
int nb_sectors, remaining;
char s1[64];
int num, sum_alloc;
int ret;
offset = cvtnum(argv[1]);
if (offset < 0) {
printf("non-numeric offset argument -- %s\n", argv[1]);
} el... | true | qemu | d663640c04f2aab810915c556390211d75457704 | static int alloc_f(BlockDriverState *bs, int argc, char **argv)
{
int64_t offset, sector_num;
int nb_sectors, remaining;
char s1[64];
int num, sum_alloc;
int ret;
offset = cvtnum(argv[1]);
if (offset < 0) {
printf("non-numeric offset argument -- %s\n", argv[1]);
} el... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2)
{
int64_t offset, sector_num;
int VAR_3, VAR_4;
char VAR_5[64];
int VAR_6, VAR_7;
int VAR_8;
offset = cvtnum(VAR_2[1]);
if (offset < 0) {
printf("non-numeric offset argument -- %s\n", VAR_2[1]);
} el... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2)\n{",
"int64_t offset, sector_num;",
"int VAR_3, VAR_4;",
"char VAR_5[64];",
"int VAR_6, VAR_7;",
"int VAR_8;",
"offset = cvtnum(VAR_2[1]);",
"if (offset < 0) {",
"printf(\"non-numeric offset argument -- %s\\n\", VAR_2[1]);",
"} e... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
24
],
[
26,
28
],
[
34
],
[
36
],
[
38
],
[
40
],
[
44
],
[
46
],
[
51
],
[
53
],
[... |
6,770 | static void test_qga_fstrim(gconstpointer fix)
{
const TestFixture *fixture = fix;
QDict *ret;
QList *list;
const QListEntry *entry;
ret = qmp_fd(fixture->fd, "{'execute': 'guest-fstrim',"
" arguments: { minimum: 4194304 } }");
g_assert_nonnull(ret);
qmp_assert_no... | true | qemu | f94b3f64e6572c8cec73a538588f7cd754bcfa88 | static void test_qga_fstrim(gconstpointer fix)
{
const TestFixture *fixture = fix;
QDict *ret;
QList *list;
const QListEntry *entry;
ret = qmp_fd(fixture->fd, "{'execute': 'guest-fstrim',"
" arguments: { minimum: 4194304 } }");
g_assert_nonnull(ret);
qmp_assert_no... | {
"code": [
" const TestFixture *fixture = fix;",
" QDict *ret;",
" g_assert_nonnull(ret);",
" qmp_assert_no_error(ret);",
" QDECREF(ret);",
" g_assert_nonnull(ret);",
" qmp_assert_no_error(ret);",
" QDECREF(ret);",
" g_assert_nonnull(ret);",
" qmp... | static void FUNC_0(gconstpointer VAR_0)
{
const TestFixture *VAR_1 = VAR_0;
QDict *ret;
QList *list;
const QListEntry *VAR_2;
ret = qmp_fd(VAR_1->fd, "{'execute': 'guest-fstrim',"
" arguments: { minimum: 4194304 } }");
g_assert_nonnull(ret);
qmp_assert_no_error(re... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"const TestFixture *VAR_1 = VAR_0;",
"QDict *ret;",
"QList *list;",
"const QListEntry *VAR_2;",
"ret = qmp_fd(VAR_1->fd, \"{'execute': 'guest-fstrim',\"",
"\" arguments: { minimum: 4194304 } }\");",
"g_assert_nonnull(ret);",
"qmp_assert_no_error(ret);",
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
6,771 | static RemoveResult remove_hpte(CPUPPCState *env, target_ulong ptex,
target_ulong avpn,
target_ulong flags,
target_ulong *vp, target_ulong *rp)
{
hwaddr hpte;
target_ulong v, r, rb;
if ((ptex * HASH_PTE_... | true | qemu | f3c75d42adbba553eaf218a832d4fbea32c8f7b8 | static RemoveResult remove_hpte(CPUPPCState *env, target_ulong ptex,
target_ulong avpn,
target_ulong flags,
target_ulong *vp, target_ulong *rp)
{
hwaddr hpte;
target_ulong v, r, rb;
if ((ptex * HASH_PTE_... | {
"code": [
" if ((ptex * HASH_PTE_SIZE_64) & ~env->htab_mask) {"
],
"line_no": [
17
]
} | static RemoveResult FUNC_0(CPUPPCState *env, target_ulong ptex,
target_ulong avpn,
target_ulong flags,
target_ulong *vp, target_ulong *rp)
{
hwaddr hpte;
target_ulong v, r, rb;
if ((ptex * HASH_PTE_SIZE_... | [
"static RemoveResult FUNC_0(CPUPPCState *env, target_ulong ptex,\ntarget_ulong avpn,\ntarget_ulong flags,\ntarget_ulong *vp, target_ulong *rp)\n{",
"hwaddr hpte;",
"target_ulong v, r, rb;",
"if ((ptex * HASH_PTE_SIZE_64) & ~env->htab_mask) {",
"return REMOVE_PARM;",
"}",
"hpte = ptex * HASH_PTE_SIZE_64;... | [
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
],
[
25
],
[
29
],
[
31
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
6,772 | static void pc_init1(MachineState *machine,
int pci_enabled,
int kvmclock_enabled)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t bel... | true | qemu | d8f94e1bb275ab6a14a15220fd6afd0d04324aeb | static void pc_init1(MachineState *machine,
int pci_enabled,
int kvmclock_enabled)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t bel... | {
"code": [
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
" ide_drive_get(hd, MAX_IDE_BUS);",
"... | static void FUNC_0(MachineState *VAR_0,
int VAR_1,
int VAR_2)
{
PCMachineState *pc_machine = PC_MACHINE(VAR_0);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int VAR_3;
ram_addr_t below_4g_mem_size, abo... | [
"static void FUNC_0(MachineState *VAR_0,\nint VAR_1,\nint VAR_2)\n{",
"PCMachineState *pc_machine = PC_MACHINE(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"MemoryRegion *system_io = get_system_io();",
"int VAR_3;",
"ram_addr_t below_4g_mem_size, above_4g_mem_size;",
"PCIBus *pci_bus;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
6,773 | int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size)
{
int64_t buffer_start;
int buffer_size;
int overlap, new_size, alloc_size;
if (s->write_flag)
return AVERROR(EINVAL);
buffer_size = s->buf_end - s->buffer;
/* the buffers must touch or overla... | true | FFmpeg | 120b38b966b92a50dd36542190d35daba6730eb3 | int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size)
{
int64_t buffer_start;
int buffer_size;
int overlap, new_size, alloc_size;
if (s->write_flag)
return AVERROR(EINVAL);
buffer_size = s->buf_end - s->buffer;
if ((buffer_start = s->pos - ... | {
"code": [
"int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size)",
" if (s->write_flag)",
" if ((buffer_start = s->pos - buffer_size) > buf_size)",
" if (!(buf = av_realloc_f(buf, 1, alloc_size)))"
],
"line_no": [
1,
13,
25,
41
]
} | int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2)
{
int64_t buffer_start;
int VAR_3;
int VAR_4, VAR_5, VAR_6;
if (VAR_0->write_flag)
return AVERROR(EINVAL);
VAR_3 = VAR_0->buf_end - VAR_0->buffer;
if ((buffer_start = VAR_0->pos - VAR_3) > VAR_2)
... | [
"int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{",
"int64_t buffer_start;",
"int VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"if (VAR_0->write_flag)\nreturn AVERROR(EINVAL);",
"VAR_3 = VAR_0->buf_end - VAR_0->buffer;",
"if ((buffer_start = VAR_0->pos - VAR_3) > VAR_2)\nreturn AVERROR(EINVAL)... | [
1,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
25,
27
],
[
31
],
[
33
],
[
37
],
[
39,
41,
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
],
[
61
... |
6,774 | static int url_connect(struct playlist *pls, AVDictionary *opts, AVDictionary *opts2)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, opts, 0);
av_dict_copy(&tmp, opts2, 0);
av_opt_set_dict(pls->input, &tmp);
if ((ret = ffurl_connect(pls->input, NULL)) < 0) {
ffurl_... | true | FFmpeg | 4eca1939ef0614d0959fffb93f93d44af6740e8c | static int url_connect(struct playlist *pls, AVDictionary *opts, AVDictionary *opts2)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, opts, 0);
av_dict_copy(&tmp, opts2, 0);
av_opt_set_dict(pls->input, &tmp);
if ((ret = ffurl_connect(pls->input, NULL)) < 0) {
ffurl_... | {
"code": [
" av_opt_set_dict(pls->input, &tmp);"
],
"line_no": [
17
]
} | static int FUNC_0(struct playlist *VAR_0, AVDictionary *VAR_1, AVDictionary *VAR_2)
{
AVDictionary *tmp = NULL;
int VAR_3;
av_dict_copy(&tmp, VAR_1, 0);
av_dict_copy(&tmp, VAR_2, 0);
av_opt_set_dict(VAR_0->input, &tmp);
if ((VAR_3 = ffurl_connect(VAR_0->input, NULL)) < 0) {
... | [
"static int FUNC_0(struct playlist *VAR_0, AVDictionary *VAR_1, AVDictionary *VAR_2)\n{",
"AVDictionary *tmp = NULL;",
"int VAR_3;",
"av_dict_copy(&tmp, VAR_1, 0);",
"av_dict_copy(&tmp, VAR_2, 0);",
"av_opt_set_dict(VAR_0->input, &tmp);",
"if ((VAR_3 = ffurl_connect(VAR_0->input, NULL)) < 0) {",
"ffur... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
6,776 | void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
AVFilterPad **pads, AVFilterLink ***links,
AVFilterPad *newpad)
{
unsigned i;
idx = FFMIN(idx, *count);
*pads = av_realloc(*pads, sizeof(AVFilterPad) * (*count + 1));
*links = av_rea... | true | FFmpeg | 211a185cba78aa8410e85de91630aa3a8c083883 | void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
AVFilterPad **pads, AVFilterLink ***links,
AVFilterPad *newpad)
{
unsigned i;
idx = FFMIN(idx, *count);
*pads = av_realloc(*pads, sizeof(AVFilterPad) * (*count + 1));
*links = av_rea... | {
"code": [
"void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,",
" *pads = av_realloc(*pads, sizeof(AVFilterPad) * (*count + 1));",
" *links = av_realloc(*links, sizeof(AVFilterLink*) * (*count + 1));",
"void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,"... | void FUNC_0(unsigned VAR_0, unsigned *VAR_1, size_t VAR_2,
AVFilterPad **VAR_3, AVFilterLink ***VAR_4,
AVFilterPad *VAR_5)
{
unsigned VAR_6;
VAR_0 = FFMIN(VAR_0, *VAR_1);
*VAR_3 = av_realloc(*VAR_3, sizeof(AVFilterPad) * (*VAR_1 + 1));
*VAR_4 = av_rea... | [
"void FUNC_0(unsigned VAR_0, unsigned *VAR_1, size_t VAR_2,\nAVFilterPad **VAR_3, AVFilterLink ***VAR_4,\nAVFilterPad *VAR_5)\n{",
"unsigned VAR_6;",
"VAR_0 = FFMIN(VAR_0, *VAR_1);",
"*VAR_3 = av_realloc(*VAR_3, sizeof(AVFilterPad) * (*VAR_1 + 1));",
"*VAR_4 = av_realloc(*VAR_4, sizeof(AVFilterLink*) * ... | [
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
]
] |
6,777 | static int spapr_cpu_core_realize_child(Object *child, void *opaque)
{
Error **errp = opaque, *local_err = NULL;
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
CPUState *cs = CPU(child);
PowerPCCPU *cpu = POWERPC_CPU(cs);
object_property_set_bool(child, true, "realized", &loca... | true | qemu | 7093645a843e5da1a750bc451dd8c9107d595c61 | static int spapr_cpu_core_realize_child(Object *child, void *opaque)
{
Error **errp = opaque, *local_err = NULL;
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
CPUState *cs = CPU(child);
PowerPCCPU *cpu = POWERPC_CPU(cs);
object_property_set_bool(child, true, "realized", &loca... | {
"code": [
"static int spapr_cpu_core_realize_child(Object *child, void *opaque)",
" Error **errp = opaque, *local_err = NULL;",
" return 1;",
" return 1;",
" return 0;",
" if (local_err) {"
],
"line_no": [
1,
5,
21,
21,
37,
17
]
} | static int FUNC_0(Object *VAR_0, void *VAR_1)
{
Error **errp = VAR_1, *local_err = NULL;
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
CPUState *cs = CPU(VAR_0);
PowerPCCPU *cpu = POWERPC_CPU(cs);
object_property_set_bool(VAR_0, true, "realized", &local_err);
if (local_e... | [
"static int FUNC_0(Object *VAR_0, void *VAR_1)\n{",
"Error **errp = VAR_1, *local_err = NULL;",
"sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());",
"CPUState *cs = CPU(VAR_0);",
"PowerPCCPU *cpu = POWERPC_CPU(cs);",
"object_property_set_bool(VAR_0, true, \"realized\", &local_err);",
"if (lo... | [
1,
1,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
6,779 | static void blkverify_aio_cb(void *opaque, int ret)
{
BlkverifyAIOCB *acb = opaque;
switch (++acb->done) {
case 1:
acb->ret = ret;
break;
case 2:
if (acb->ret != ret) {
blkverify_err(acb, "return value mismatch %d != %d", acb->ret, ret);
}
... | true | qemu | 44b6789299a8acca3f25331bc411055cafc7bb06 | static void blkverify_aio_cb(void *opaque, int ret)
{
BlkverifyAIOCB *acb = opaque;
switch (++acb->done) {
case 1:
acb->ret = ret;
break;
case 2:
if (acb->ret != ret) {
blkverify_err(acb, "return value mismatch %d != %d", acb->ret, ret);
}
... | {
"code": [
" BlkverifyAIOCB *acb = opaque;",
"static void blkverify_aio_cb(void *opaque, int ret)",
" BlkverifyAIOCB *acb = opaque;",
" switch (++acb->done) {",
" case 1:",
" acb->ret = ret;",
" break;",
" case 2:",
" if (acb->ret != ret) {",
... | static void FUNC_0(void *VAR_0, int VAR_1)
{
BlkverifyAIOCB *acb = VAR_0;
switch (++acb->done) {
case 1:
acb->VAR_1 = VAR_1;
break;
case 2:
if (acb->VAR_1 != VAR_1) {
blkverify_err(acb, "return value mismatch %d != %d", acb->VAR_1, VAR_1);
}
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"BlkverifyAIOCB *acb = VAR_0;",
"switch (++acb->done) {",
"case 1:\nacb->VAR_1 = VAR_1;",
"break;",
"case 2:\nif (acb->VAR_1 != VAR_1) {",
"blkverify_err(acb, \"return value mismatch %d != %d\", acb->VAR_1, VAR_1);",
"}",
"if (acb->verify) {",
"acb-... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
]
] |
6,780 | static void do_video_out(AVFormatContext *s,
OutputStream *ost,
AVFrame *in_picture,
int *frame_size)
{
int ret, format_video_sync;
AVPacket pkt;
AVCodecContext *enc = ost->st->codec;
*frame_size = 0;
format_vide... | true | FFmpeg | 636ced8e1dc8248a1353b416240b93d70ad03edb | static void do_video_out(AVFormatContext *s,
OutputStream *ost,
AVFrame *in_picture,
int *frame_size)
{
int ret, format_video_sync;
AVPacket pkt;
AVCodecContext *enc = ost->st->codec;
*frame_size = 0;
format_vide... | {
"code": [
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);"
],
"line_no": [
141,
141,
141,
141,
141,
141,
141,
... | static void FUNC_0(AVFormatContext *VAR_0,
OutputStream *VAR_1,
AVFrame *VAR_2,
int *VAR_3)
{
int VAR_4, VAR_5;
AVPacket pkt;
AVCodecContext *enc = VAR_1->st->codec;
*VAR_3 = 0;
VAR_5 = video_sync_method;
if... | [
"static void FUNC_0(AVFormatContext *VAR_0,\nOutputStream *VAR_1,\nAVFrame *VAR_2,\nint *VAR_3)\n{",
"int VAR_4, VAR_5;",
"AVPacket pkt;",
"AVCodecContext *enc = VAR_1->st->codec;",
"*VAR_3 = 0;",
"VAR_5 = video_sync_method;",
"if (VAR_5 == VSYNC_AUTO)\nVAR_5 = (VAR_0->oformat->flags & AVFMT_NOTIMESTAMP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
23
],
[
25,
27,
29
],
[
31,
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51
],
[
53
],
[
59,
61
... |
6,781 | static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
{
pc_sysfw_flash_vs_rom_bug_compatible = true;
has_pvpanic = false;
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
pc_init_pci(args);
}
| true | qemu | 9e1c2ec8fd8d9a9ee299ea86c5f6c986fe25e838 | static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
{
pc_sysfw_flash_vs_rom_bug_compatible = true;
has_pvpanic = false;
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
pc_init_pci(args);
}
| {
"code": [
" pc_sysfw_flash_vs_rom_bug_compatible = true;",
" pc_sysfw_flash_vs_rom_bug_compatible = true;",
" pc_sysfw_flash_vs_rom_bug_compatible = true;",
" pc_sysfw_flash_vs_rom_bug_compatible = true;"
],
"line_no": [
5,
5,
5,
5
]
} | static void FUNC_0(QEMUMachineInitArgs *VAR_0)
{
pc_sysfw_flash_vs_rom_bug_compatible = true;
has_pvpanic = false;
x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
pc_init_pci(VAR_0);
}
| [
"static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{",
"pc_sysfw_flash_vs_rom_bug_compatible = true;",
"has_pvpanic = false;",
"x86_cpu_compat_set_features(\"n270\", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);",
"pc_init_pci(VAR_0);",
"}"
] | [
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
6,782 | void cpu_dump_state (CPUState *env, FILE *f, fprintf_function cpu_fprintf,
int flags)
{
#define RGPL 4
#define RFPL 4
int i;
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
TARGET_FMT_lx " XER " TARGET_FMT_lx "\n",
env->nip, env->lr, env-... | true | qemu | 697ab892786d47008807a49f57b2fd86adfcd098 | void cpu_dump_state (CPUState *env, FILE *f, fprintf_function cpu_fprintf,
int flags)
{
#define RGPL 4
#define RFPL 4
int i;
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
TARGET_FMT_lx " XER " TARGET_FMT_lx "\n",
env->nip, env->lr, env-... | {
"code": [],
"line_no": []
} | void FUNC_0 (CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,
int VAR_3)
{
#define RGPL 4
#define RFPL 4
int VAR_4;
VAR_2(VAR_1, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
TARGET_FMT_lx " XER " TARGET_FMT_lx "\n",
VAR_0->nip, VAR_0->lr, VAR_0-... | [
"void FUNC_0 (CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,\nint VAR_3)\n{",
"#define RGPL 4\n#define RFPL 4\nint VAR_4;",
"VAR_2(VAR_1, \"NIP \" TARGET_FMT_lx \" LR \" TARGET_FMT_lx \" CTR \"\nTARGET_FMT_lx \" XER \" TARGET_FMT_lx \"\\n\",\nVAR_0->nip, VAR_0->lr, VAR_0->ctr, VAR_0->xer);",
"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
] | [
[
1,
2,
3
],
[
4,
5,
6
],
[
7,
8,
9
],
[
10,
11,
12
],
[
13,
14,
15,
16,
17,
18,
19,
20,
21
],
[
22
],
[
23,
24
],
[
25
],
[
26,
27
],
[
28
],
[
29
],
[
... |
6,783 | static void tcg_out_setcond_i32(TCGContext *s, TCGCond cond, TCGReg ret,
TCGReg c1, int32_t c2, int c2const)
{
/* For 32-bit comparisons, we can play games with ADDX/SUBX. */
switch (cond) {
case TCG_COND_LTU:
case TCG_COND_GEU:
/* The result of the compar... | true | qemu | 321b6c058544c136341bf9cc6055f127f307f03e | static void tcg_out_setcond_i32(TCGContext *s, TCGCond cond, TCGReg ret,
TCGReg c1, int32_t c2, int c2const)
{
switch (cond) {
case TCG_COND_LTU:
case TCG_COND_GEU:
break;
case TCG_COND_EQ:
case TCG_COND_NE:
if (c2 ... | {
"code": [
" tcg_out_arithc(s, ret, c1, c2, c2const, ARITH_XOR);",
" c1 = TCG_REG_G0, c2 = ret, c2const = 0;"
],
"line_no": [
29,
33
]
} | static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2,
TCGReg VAR_3, int32_t VAR_4, int VAR_5)
{
switch (VAR_1) {
case TCG_COND_LTU:
case TCG_COND_GEU:
break;
case TCG_COND_EQ:
case TCG_COND_NE:
if (VAR_... | [
"static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2,\nTCGReg VAR_3, int32_t VAR_4, int VAR_5)\n{",
"switch (VAR_1) {",
"case TCG_COND_LTU:\ncase TCG_COND_GEU:\nbreak;",
"case TCG_COND_EQ:\ncase TCG_COND_NE:\nif (VAR_4 != 0) {",
"tcg_out_arithc(VAR_0, VAR_2, VAR_3, VAR_4, VAR_5, ARITH_XOR);",
... | [
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
11,
13,
17
],
[
21,
23,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43,
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
... |
6,784 | static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int uvalpha, int dstbpp)
{
int uvalpha1=uvalpha^4095;
const int yalpha1=0;
if(fullUVIpol || allwaysIpol)
{
RENAME(yuv2rgb2)(buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, dstbpp);
... | true | FFmpeg | 28bf81c90d36a55cf76e2be913c5215ebebf61f2 | static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int uvalpha, int dstbpp)
{
int uvalpha1=uvalpha^4095;
const int yalpha1=0;
if(fullUVIpol || allwaysIpol)
{
RENAME(yuv2rgb2)(buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, dstbpp);
... | {
"code": [
"#else",
"#endif",
"\tif(dstbpp==32)",
"\telse if(dstbpp==24)",
"\telse if(dstbpp==16)",
"\telse if(dstbpp==15)",
"#else",
"#endif",
"#else",
"\t\telse if(dstbpp==15)",
"\t\telse if(dstbpp==16)",
"\t\tif(dstbpp == 32)",
"\t\telse if(dstbpp==24)",
"\t... | static inline void FUNC_0(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int uvalpha, int dstbpp)
{
int VAR_0=uvalpha^4095;
const int VAR_1=0;
if(fullUVIpol || allwaysIpol)
{
FUNC_0(yuv2rgb2)(buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, dstbpp);
re... | [
"static inline void FUNC_0(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *uvbuf1,\nuint8_t *dest, int dstW, int uvalpha, int dstbpp)\n{",
"int VAR_0=uvalpha^4095;",
"const int VAR_1=0;",
"if(fullUVIpol || allwaysIpol)\n{",
"FUNC_0(yuv2rgb2)(buf0, buf0, uvbuf0, uvbuf1, dest, dstW, 0, uvalpha, dstbpp);... | [
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
0,
1,
1,
0,
1,
0,
0,
0,
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,
0,
0,
1,
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
],
[
49
],
[
51,
53
],
[
55,
57,
59,... |
6,785 | static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,
int size)
{
assert(size == 1);
if (*buf == '\r' || *buf == '\n') {
scon->event.event_pending = true;
return;
}
scon->buf[scon->length] = *buf;
scon->length += 1;
... | true | qemu | 4f3ed190a673c0020c3ccebb4882ae4675cb5f4d | static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,
int size)
{
assert(size == 1);
if (*buf == '\r' || *buf == '\n') {
scon->event.event_pending = true;
return;
}
scon->buf[scon->length] = *buf;
scon->length += 1;
... | {
"code": [
"static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,",
" int size)"
],
"line_no": [
1,
3
]
} | static void FUNC_0(SCLPConsoleLM *VAR_0, const uint8_t *VAR_1,
int VAR_2)
{
assert(VAR_2 == 1);
if (*VAR_1 == '\r' || *VAR_1 == '\n') {
VAR_0->event.event_pending = true;
return;
}
VAR_0->VAR_1[VAR_0->length] = *VAR_1;
VAR_0->length += 1;... | [
"static void FUNC_0(SCLPConsoleLM *VAR_0, const uint8_t *VAR_1,\nint VAR_2)\n{",
"assert(VAR_2 == 1);",
"if (*VAR_1 == '\\r' || *VAR_1 == '\\n') {",
"VAR_0->event.event_pending = true;",
"return;",
"}",
"VAR_0->VAR_1[VAR_0->length] = *VAR_1;",
"VAR_0->length += 1;",
"if (VAR_0->echo) {",
"qemu_chr... | [
1,
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
]
] |
6,786 | static void write_strip_header(CinepakEncContext *s, int y, int h, int keyframe, unsigned char *buf, int strip_size)
{
buf[0] = keyframe ? 0x11: 0x10;
AV_WB24(&buf[1], strip_size + STRIP_HEADER_SIZE);
AV_WB16(&buf[4], y);
AV_WB16(&buf[6], 0);
AV_WB16(&buf[8], h);
AV_WB16(&buf[10], s->w);
... | true | FFmpeg | 7da9f4523159670d577a2808d4481e64008a8894 | static void write_strip_header(CinepakEncContext *s, int y, int h, int keyframe, unsigned char *buf, int strip_size)
{
buf[0] = keyframe ? 0x11: 0x10;
AV_WB24(&buf[1], strip_size + STRIP_HEADER_SIZE);
AV_WB16(&buf[4], y);
AV_WB16(&buf[6], 0);
AV_WB16(&buf[8], h);
AV_WB16(&buf[10], s->w);
... | {
"code": [
" buf[0] = keyframe ? 0x11: 0x10;",
" AV_WB16(&buf[4], y);",
" AV_WB16(&buf[8], h);"
],
"line_no": [
5,
9,
13
]
} | static void FUNC_0(CinepakEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, unsigned char *VAR_4, int VAR_5)
{
VAR_4[0] = VAR_3 ? 0x11: 0x10;
AV_WB24(&VAR_4[1], VAR_5 + STRIP_HEADER_SIZE);
AV_WB16(&VAR_4[4], VAR_1);
AV_WB16(&VAR_4[6], 0);
AV_WB16(&VAR_4[8], VAR_2);
AV_WB16(&VAR_4[10], V... | [
"static void FUNC_0(CinepakEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, unsigned char *VAR_4, int VAR_5)\n{",
"VAR_4[0] = VAR_3 ? 0x11: 0x10;",
"AV_WB24(&VAR_4[1], VAR_5 + STRIP_HEADER_SIZE);",
"AV_WB16(&VAR_4[4], VAR_1);",
"AV_WB16(&VAR_4[6], 0);",
"AV_WB16(&VAR_4[8], VAR_2);",
"AV_WB16(&VAR_4[1... | [
0,
1,
0,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
6,787 | int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
{
int r;
unsigned irq;
/* PowerPC Qemu tracks the various core input pins (interrupt, critical
* interrupt, reset, etc) in PPC-specific env->irq_input_state. */
if (run->ready_for_interrupt_injection &&
(env->interrupt_request & CPU_I... | true | qemu | c6a94ba5f9b8240f90ac2bf5ae5249bf5590c438 | int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
{
int r;
unsigned irq;
if (run->ready_for_interrupt_injection &&
(env->interrupt_request & CPU_INTERRUPT_HARD) &&
(env->irq_input_state & (1<<PPC_INPUT_INT)))
{
irq = -1U;
dprintf("injected interru... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)
{
int VAR_2;
unsigned VAR_3;
if (VAR_1->ready_for_interrupt_injection &&
(VAR_0->interrupt_request & CPU_INTERRUPT_HARD) &&
(VAR_0->irq_input_state & (1<<PPC_INPUT_INT)))
{
VAR_3 = -1U;
dprintf("injected... | [
"int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{",
"int VAR_2;",
"unsigned VAR_3;",
"if (VAR_1->ready_for_interrupt_injection &&\n(VAR_0->interrupt_request & CPU_INTERRUPT_HARD) &&\n(VAR_0->irq_input_state & (1<<PPC_INPUT_INT)))\n{",
"VAR_3 = -1U;",
"dprintf(\"injected interrupt %d\\n\", VAR_3);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
7,
8,
9,
10
],
[
15
],
[
16
],
[
17
],
[
18,
19
],
[
23
]
] |
6,788 | static void ppc_spapr_reset(void)
{
/* flush out the hash table */
memset(spapr->htab, 0, spapr->htab_size);
qemu_devices_reset();
/* Load the fdt */
spapr_finalize_fdt(spapr, spapr->fdt_addr, spapr->rtas_addr,
spapr->rtas_size);
/* Set up the entry state */
... | true | qemu | 7f763a5d994bbddb50705d2e50decdf52937521f | static void ppc_spapr_reset(void)
{
memset(spapr->htab, 0, spapr->htab_size);
qemu_devices_reset();
spapr_finalize_fdt(spapr, spapr->fdt_addr, spapr->rtas_addr,
spapr->rtas_size);
first_cpu->gpr[3] = spapr->fdt_addr;
first_cpu->gpr[5] = 0;
f... | {
"code": [
" memset(spapr->htab, 0, spapr->htab_size);"
],
"line_no": [
7
]
} | static void FUNC_0(void)
{
memset(spapr->htab, 0, spapr->htab_size);
qemu_devices_reset();
spapr_finalize_fdt(spapr, spapr->fdt_addr, spapr->rtas_addr,
spapr->rtas_size);
first_cpu->gpr[3] = spapr->fdt_addr;
first_cpu->gpr[5] = 0;
first_cpu-... | [
"static void FUNC_0(void)\n{",
"memset(spapr->htab, 0, spapr->htab_size);",
"qemu_devices_reset();",
"spapr_finalize_fdt(spapr, spapr->fdt_addr, spapr->rtas_addr,\nspapr->rtas_size);",
"first_cpu->gpr[3] = spapr->fdt_addr;",
"first_cpu->gpr[5] = 0;",
"first_cpu->halted = 0;",
"first_cpu->nip = spapr->... | [
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
11
],
[
17,
19
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
]
] |
6,789 | static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
int32_t *data, int n, int pred_order)
{
int i;
uint32_t bits[MAX_PARTITION_ORDER+1];
int opt_porder;
RiceContext tmp_rc;
uint32_t *udata;
uint32_t sums[MAX_PARTITION_ORDER+1][MAX_PARTIT... | true | FFmpeg | 5ff998a233d759d0de83ea6f95c383d03d25d88e | static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
int32_t *data, int n, int pred_order)
{
int i;
uint32_t bits[MAX_PARTITION_ORDER+1];
int opt_porder;
RiceContext tmp_rc;
uint32_t *udata;
uint32_t sums[MAX_PARTITION_ORDER+1][MAX_PARTIT... | {
"code": [
"static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax,",
" uint32_t bits[MAX_PARTITION_ORDER+1];",
" uint32_t sums[MAX_PARTITION_ORDER+1][MAX_PARTITIONS];"
],
"line_no": [
1,
9,
17
]
} | static uint32_t FUNC_0(RiceContext *rc, int pmin, int pmax,
int32_t *data, int n, int pred_order)
{
int VAR_0;
uint32_t bits[MAX_PARTITION_ORDER+1];
int VAR_1;
RiceContext tmp_rc;
uint32_t *udata;
uint32_t sums[MAX_PARTITION_ORDER+1][MAX_PARTITIONS];
... | [
"static uint32_t FUNC_0(RiceContext *rc, int pmin, int pmax,\nint32_t *data, int n, int pred_order)\n{",
"int VAR_0;",
"uint32_t bits[MAX_PARTITION_ORDER+1];",
"int VAR_1;",
"RiceContext tmp_rc;",
"uint32_t *udata;",
"uint32_t sums[MAX_PARTITION_ORDER+1][MAX_PARTITIONS];",
"assert(pmin >= 0 && pmin <=... | [
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
6,790 | static int decode_header(PSDContext * s)
{
int signature, version, color_mode, compression;
int64_t len_section;
int ret = 0;
if (bytestream2_get_bytes_left(&s->gb) < 30) {/* File header section + color map data section length */
av_log(s->avctx, AV_LOG_ERROR, "Header too short to parse.... | true | FFmpeg | ec2f3b1f57fd5fc01c8ddb0c927112a18bcd7cba | static int decode_header(PSDContext * s)
{
int signature, version, color_mode, compression;
int64_t len_section;
int ret = 0;
if (bytestream2_get_bytes_left(&s->gb) < 30) {
av_log(s->avctx, AV_LOG_ERROR, "Header too short to parse.\n");
return AVERROR_INVALIDDATA;
}
... | {
"code": [
" int signature, version, color_mode, compression;",
" av_log(s->avctx, AV_LOG_ERROR, \"Unknown compression %d.\\n\", compression);"
],
"line_no": [
5,
291
]
} | static int FUNC_0(PSDContext * VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4;
int64_t len_section;
int VAR_5 = 0;
if (bytestream2_get_bytes_left(&VAR_0->gb) < 30) {
av_log(VAR_0->avctx, AV_LOG_ERROR, "Header too short to parse.\n");
return AVERROR_INVALIDDATA;
}
VAR_1 = by... | [
"static int FUNC_0(PSDContext * VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"int64_t len_section;",
"int VAR_5 = 0;",
"if (bytestream2_get_bytes_left(&VAR_0->gb) < 30) {",
"av_log(VAR_0->avctx, AV_LOG_ERROR, \"Header too short to parse.\\n\");",
"return AVERROR_INVALIDDATA;",
"}",
"VAR_1 = bytest... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51
... |
6,791 | static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
{
int isv34, unsync;
unsigned tlen;
char tag[5];
int64_t next, end = avio_tell(s->pb) + len;
int taghdrlen;
const char *reason = NULL;
AVIOContext pb;
unsigned char *buffer = NULL;
int b... | true | FFmpeg | 64be0d1edad630f5bc0f287022f5880de07915b2 | static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
{
int isv34, unsync;
unsigned tlen;
char tag[5];
int64_t next, end = avio_tell(s->pb) + len;
int taghdrlen;
const char *reason = NULL;
AVIOContext pb;
unsigned char *buffer = NULL;
int b... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)
{
int VAR_4, VAR_5;
unsigned VAR_6;
char VAR_7[5];
int64_t next, end = avio_tell(VAR_0->pb) + VAR_1;
int VAR_8;
const char *VAR_9 = NULL;
AVIOContext pb;
unsigned char *VAR_10 = NULL;
int VA... | [
"static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)\n{",
"int VAR_4, VAR_5;",
"unsigned VAR_6;",
"char VAR_7[5];",
"int64_t next, end = avio_tell(VAR_0->pb) + VAR_1;",
"int VAR_8;",
"const char *VAR_9 = NULL;",
"AVIOContext pb;",
"unsigned char *VAR_10 = NULL;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
44,
46,
48
],
[... |
6,792 | static int mpeg_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
UINT8 *buf, int buf_size)
{
Mpeg1Context *s = avctx->priv_data;
UINT8 *buf_end, *buf_ptr, *buf_start;
int len, start_code_found, ret, code, start_code, input_size;... | true | FFmpeg | d7e9533aa06f4073a27812349b35ba5fede11ca1 | static int mpeg_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
UINT8 *buf, int buf_size)
{
Mpeg1Context *s = avctx->priv_data;
UINT8 *buf_end, *buf_ptr, *buf_start;
int len, start_code_found, ret, code, start_code, input_size;... | {
"code": [
" } else {",
" } else {",
" } else {"
],
"line_no": [
91,
91,
91
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
UINT8 *VAR_3, int VAR_4)
{
Mpeg1Context *s = VAR_0->priv_data;
UINT8 *buf_end, *buf_ptr, *buf_start;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
AVPicture *picture = VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{",
"Mpeg1Context *s = VAR_0->priv_data;",
"UINT8 *buf_end, *buf_ptr, *buf_start;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"AVPicture *picture = VAR_1;",
"MpegEncContext *s2 = &s->mpeg_enc_ctx;",
"d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
6,793 | static int mp_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MotionPixelsContext *mp = avctx->priv_data;
GetBitContext gb;
int i... | true | FFmpeg | 69a0bce753a5d5556d5bc0888afe390e22611dd8 | static int mp_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MotionPixelsContext *mp = avctx->priv_data;
GetBitContext gb;
int i... | {
"code": [
" init_vlc(&mp->vlc, mp->max_codes_bits, mp->codes_count, &mp->codes[0].size, sizeof(HuffCode), 1, &mp->codes[0].code, sizeof(HuffCode), 4, 0);"
],
"line_no": [
101
]
} | 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;
MotionPixelsContext *mp = VAR_0->priv_data;
GetBitContext gb;
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;",
"MotionPixelsContext *mp = VAR_0->priv_data;",
"GetBitContext gb;",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"mp->frame.reference = 1;",
"mp->frame.b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
53
... |
6,794 | static int bdrv_rw_co(BlockDriverState *bs, int64_t sector_num, uint8_t *buf,
int nb_sectors, bool is_write, BdrvRequestFlags flags)
{
QEMUIOVector qiov;
struct iovec iov = {
.iov_base = (void *)buf,
.iov_len = nb_sectors * BDRV_SECTOR_SIZE,
};
qemu_iovec_init_exter... | true | qemu | da15ee5134f715adb07e3688a1c6e8b42cb6ac94 | static int bdrv_rw_co(BlockDriverState *bs, int64_t sector_num, uint8_t *buf,
int nb_sectors, bool is_write, BdrvRequestFlags flags)
{
QEMUIOVector qiov;
struct iovec iov = {
.iov_base = (void *)buf,
.iov_len = nb_sectors * BDRV_SECTOR_SIZE,
};
qemu_iovec_init_exter... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2,
int VAR_3, bool VAR_4, BdrvRequestFlags VAR_5)
{
QEMUIOVector qiov;
struct iovec VAR_6 = {
.iov_base = (void *)VAR_2,
.iov_len = VAR_3 * BDRV_SECTOR_SIZE,
};
qemu_iovec_init_external(&qiov, &V... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2,\nint VAR_3, bool VAR_4, BdrvRequestFlags VAR_5)\n{",
"QEMUIOVector qiov;",
"struct iovec VAR_6 = {",
".iov_base = (void *)VAR_2,\n.iov_len = VAR_3 * BDRV_SECTOR_SIZE,\n};",
"qemu_iovec_init_external(&qiov, &VAR_6, 1);",
"return bdr... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6,
7,
8
],
[
9
],
[
10,
11
]
] |
6,795 | int qemu_set_fd_handler(int fd,
IOHandler *fd_read,
IOHandler *fd_write,
void *opaque)
{
static IOTrampoline fd_trampolines[FD_SETSIZE];
IOTrampoline *tramp = &fd_trampolines[fd];
if (tramp->tag != 0) {
g_io_channel_un... | true | qemu | c82dc29a9112f34e0a51cad9a412cf6d9d05dfb2 | int qemu_set_fd_handler(int fd,
IOHandler *fd_read,
IOHandler *fd_write,
void *opaque)
{
static IOTrampoline fd_trampolines[FD_SETSIZE];
IOTrampoline *tramp = &fd_trampolines[fd];
if (tramp->tag != 0) {
g_io_channel_un... | {
"code": [
" if (opaque) {"
],
"line_no": [
27
]
} | int FUNC_0(int VAR_0,
IOHandler *VAR_1,
IOHandler *VAR_2,
void *VAR_3)
{
static IOTrampoline VAR_4[FD_SETSIZE];
IOTrampoline *tramp = &VAR_4[VAR_0];
if (tramp->tag != 0) {
g_io_channel_unref(tramp->chan);
g_so... | [
"int FUNC_0(int VAR_0,\nIOHandler *VAR_1,\nIOHandler *VAR_2,\nvoid *VAR_3)\n{",
"static IOTrampoline VAR_4[FD_SETSIZE];",
"IOTrampoline *tramp = &VAR_4[VAR_0];",
"if (tramp->tag != 0) {",
"g_io_channel_unref(tramp->chan);",
"g_source_remove(tramp->tag);",
"}",
"if (VAR_3) {",
"GIOCondition cond = 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
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
6,796 | static void adb_register_types(void)
{
type_register_static(&adb_bus_type_info);
type_register_static(&adb_device_type_info);
type_register_static(&adb_kbd_type_info);
type_register_static(&adb_mouse_type_info);
}
| true | qemu | 77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0 | static void adb_register_types(void)
{
type_register_static(&adb_bus_type_info);
type_register_static(&adb_device_type_info);
type_register_static(&adb_kbd_type_info);
type_register_static(&adb_mouse_type_info);
}
| {
"code": [
" type_register_static(&adb_kbd_type_info);",
" type_register_static(&adb_mouse_type_info);"
],
"line_no": [
9,
11
]
} | static void FUNC_0(void)
{
type_register_static(&adb_bus_type_info);
type_register_static(&adb_device_type_info);
type_register_static(&adb_kbd_type_info);
type_register_static(&adb_mouse_type_info);
}
| [
"static void FUNC_0(void)\n{",
"type_register_static(&adb_bus_type_info);",
"type_register_static(&adb_device_type_info);",
"type_register_static(&adb_kbd_type_info);",
"type_register_static(&adb_mouse_type_info);",
"}"
] | [
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
6,797 | uint32_t nand_getio(DeviceState *dev)
{
int offset;
uint32_t x = 0;
NANDFlashState *s = (NANDFlashState *) dev;
/* Allow sequential reading */
if (!s->iolen && s->cmd == NAND_CMD_READ0) {
offset = (int) (s->addr & ((1 << s->addr_shift) - 1)) + s->offset;
s->offset = 0;
... | true | qemu | 1984745ea8ad309a06690a83e91d031d21d709ff | uint32_t nand_getio(DeviceState *dev)
{
int offset;
uint32_t x = 0;
NANDFlashState *s = (NANDFlashState *) dev;
if (!s->iolen && s->cmd == NAND_CMD_READ0) {
offset = (int) (s->addr & ((1 << s->addr_shift) - 1)) + s->offset;
s->offset = 0;
s->blk_load(s, s->addr,... | {
"code": [
" if (s->ce || s->iolen <= 0)"
],
"line_no": [
37
]
} | uint32_t FUNC_0(DeviceState *dev)
{
int VAR_0;
uint32_t x = 0;
NANDFlashState *s = (NANDFlashState *) dev;
if (!s->iolen && s->cmd == NAND_CMD_READ0) {
VAR_0 = (int) (s->addr & ((1 << s->addr_shift) - 1)) + s->VAR_0;
s->VAR_0 = 0;
s->blk_load(s, s->addr, VAR_0);... | [
"uint32_t FUNC_0(DeviceState *dev)\n{",
"int VAR_0;",
"uint32_t x = 0;",
"NANDFlashState *s = (NANDFlashState *) dev;",
"if (!s->iolen && s->cmd == NAND_CMD_READ0) {",
"VAR_0 = (int) (s->addr & ((1 << s->addr_shift) - 1)) + s->VAR_0;",
"s->VAR_0 = 0;",
"s->blk_load(s, s->addr, VAR_0);",
"if (s->gnd)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
55
],
[
57
],
[
59
],
[... |
6,798 | char *vnc_display_local_addr(DisplayState *ds)
{
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
return vnc_socket_local_addr("%s:%s", vs->lsock);
}
| true | qemu | 21ef45d71221b4577330fe3aacfb06afad91ad46 | char *vnc_display_local_addr(DisplayState *ds)
{
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
return vnc_socket_local_addr("%s:%s", vs->lsock);
}
| {
"code": [
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;",
" VncDi... | char *FUNC_0(DisplayState *VAR_0)
{
VncDisplay *vs = VAR_0 ? (VncDisplay *)VAR_0->opaque : vnc_display;
return vnc_socket_local_addr("%s:%s", vs->lsock);
}
| [
"char *FUNC_0(DisplayState *VAR_0)\n{",
"VncDisplay *vs = VAR_0 ? (VncDisplay *)VAR_0->opaque : vnc_display;",
"return vnc_socket_local_addr(\"%s:%s\", vs->lsock);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
6,799 | static void av_noinline filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
const int beta = (beta_table+52)[qp + h->slice_beta_offset];
if (alpha ==0 ... | false | FFmpeg | 0c32e19d584ba6ddbc27f0a796260404daaf4b6a | static void av_noinline filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
const int beta = (beta_table+52)[qp + h->slice_beta_offset];
if (alpha ==0 ... | {
"code": [],
"line_no": []
} | static void VAR_0 filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
const int beta = (beta_table+52)[qp + h->slice_beta_offset];
if (alpha ==0 || bet... | [
"static void VAR_0 filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {",
"const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset;",
"const int alpha = alpha_table[index_a];",
"const int beta = (beta_table+52)[qp + h->slice_beta_offset];",
"if (alpha ==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
]
] |
6,800 | static inline void RENAME(dering)(uint8_t src[], int stride, PPContext *c)
{
#if HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
DECLARE_ALIGNED(8, uint64_t, tmp)[3];
__asm__ volatile(
"pxor %%mm6, %%mm6 \n\t"
"pcmpeqb %%mm7, %%mm7 \n\t"
... | false | FFmpeg | 78d2d1e0270cfbd38022f63f477381ed4294d22c | static inline void RENAME(dering)(uint8_t src[], int stride, PPContext *c)
{
#if HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
DECLARE_ALIGNED(8, uint64_t, tmp)[3];
__asm__ volatile(
"pxor %%mm6, %%mm6 \n\t"
"pcmpeqb %%mm7, %%mm7 \n\t"
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(dering)(uint8_t src[], int stride, PPContext *c)
{
#if HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
DECLARE_ALIGNED(8, uint64_t, tmp)[3];
__asm__ volatile(
"pxor %%mm6, %%mm6 \n\VAR_8"
"pcmpeqb %%mm7, %%mm7 \n\VAR_... | [
"static inline void FUNC_0(dering)(uint8_t src[], int stride, PPContext *c)\n{",
"#if HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)\nDECLARE_ALIGNED(8, uint64_t, tmp)[3];",
"__asm__ volatile(\n\"pxor %%mm6, %%mm6 \\n\\VAR_8\"\n\"pcmpeqb %%mm7, %%mm7 \\n\\VAR_8\"\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69,
71,
73,
77,
79,
81,
83,
85,
87,... |
6,803 | static void sbr_gain_calc(AACContext *ac, SpectralBandReplication *sbr,
SBRData *ch_data, const int e_a[2])
{
int e, k, m;
// max gain limits : -3dB, 0dB, 3dB, inf dB (limiter off)
static const SoftFloat limgain[4] = { { 760155524, 0 }, { 0x20000000, 1 },
... | false | FFmpeg | 8a024f6a43444a73a3cd8d70abedde426b4e1986 | static void sbr_gain_calc(AACContext *ac, SpectralBandReplication *sbr,
SBRData *ch_data, const int e_a[2])
{
int e, k, m;
static const SoftFloat limgain[4] = { { 760155524, 0 }, { 0x20000000, 1 },
{ 758351638, 1 }, { 625000000,... | {
"code": [],
"line_no": []
} | static void FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,
SBRData *VAR_2, const int VAR_3[2])
{
int VAR_4, VAR_5, VAR_6;
static const SoftFloat VAR_7[4] = { { 760155524, 0 }, { 0x20000000, 1 },
{ 758351638, 1 }, { 62... | [
"static void FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,\nSBRData *VAR_2, const int VAR_3[2])\n{",
"int VAR_4, VAR_5, VAR_6;",
"static const SoftFloat VAR_7[4] = { { 760155524, 0 }, { 0x20000000, 1 },",
"{ 758351638, 1 }, { 625000000, 34 } };",
"for (VAR_4 = 0; VAR_4 < VAR_2->bs_num_env; VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49... |
6,804 | x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
{
struct x11_grab *s = s1->priv_data;
Display *dpy = s->dpy;
XImage *image = s->image;
int x_off = s->x_off;
int y_off = s->y_off;
int64_t curtime, delay;
struct timespec ts;
/* Calculate the time of the next frame */
... | false | FFmpeg | ce558c8f590610fc68596ef0b4ac2a9d299fbcb2 | x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
{
struct x11_grab *s = s1->priv_data;
Display *dpy = s->dpy;
XImage *image = s->image;
int x_off = s->x_off;
int y_off = s->y_off;
int64_t curtime, delay;
struct timespec ts;
s->time_frame += INT64_C(1000000);
... | {
"code": [],
"line_no": []
} | FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
struct x11_grab *VAR_2 = VAR_0->priv_data;
Display *dpy = VAR_2->dpy;
XImage *image = VAR_2->image;
int VAR_3 = VAR_2->VAR_3;
int VAR_4 = VAR_2->VAR_4;
int64_t curtime, delay;
struct timespec VAR_5;
VAR_2->time_frame +=... | [
"FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"struct x11_grab *VAR_2 = VAR_0->priv_data;",
"Display *dpy = VAR_2->dpy;",
"XImage *image = VAR_2->image;",
"int VAR_3 = VAR_2->VAR_3;",
"int VAR_4 = VAR_2->VAR_4;",
"int64_t curtime, delay;",
"struct timespec VAR_5;",
"VAR_2->time_frame += INT6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
6,805 | static int svq3_decode_slice_header(H264Context *h)
{
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = h->mb_xy;
int i, header;
header = get_bits(&s->gb, 8);
if (((header & 0x9F) != 1 && (header & 0x9F) != 2) || (header & 0x60) == 0) {
/* TODO: what? */
a... | false | FFmpeg | 3b606e71c475d07d45b5a8cb0825ce35c61e635d | static int svq3_decode_slice_header(H264Context *h)
{
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = h->mb_xy;
int i, header;
header = get_bits(&s->gb, 8);
if (((header & 0x9F) != 1 && (header & 0x9F) != 2) || (header & 0x60) == 0) {
av_log(h->s.avctx,... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0)
{
MpegEncContext *const s = (MpegEncContext *) VAR_0;
const int VAR_1 = VAR_0->VAR_1;
int VAR_2, VAR_3;
VAR_3 = get_bits(&s->gb, 8);
if (((VAR_3 & 0x9F) != 1 && (VAR_3 & 0x9F) != 2) || (VAR_3 & 0x60) == 0) {
av_log(VAR_0->s.avctx, AV... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"MpegEncContext *const s = (MpegEncContext *) VAR_0;",
"const int VAR_1 = VAR_0->VAR_1;",
"int VAR_2, VAR_3;",
"VAR_3 = get_bits(&s->gb, 8);",
"if (((VAR_3 & 0x9F) != 1 && (VAR_3 & 0x9F) != 2) || (VAR_3 & 0x60) == 0) {",
"av_log(VAR_0->s.avctx, AV_LOG_ERROR, \... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
... |
6,806 | POWERPC_FAMILY(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
pcc->pvr = CPU_POWERPC_POWER7P_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER7P_MASK;
pcc->init_... | true | qemu | 8dfa3a5e85eca94a93b1495136f49c5776fd5ada | POWERPC_FAMILY(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
pcc->pvr = CPU_POWERPC_POWER7P_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER7P_MASK;
pcc->init_... | {
"code": [],
"line_no": []
} | FUNC_0(POWER7P)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7+";
dc->desc = "POWER7+";
pcc->pvr = CPU_POWERPC_POWER7P_BASE;
pcc->pvr_mask = CPU_POWERPC_POWER7P_MASK;
pcc->init_proc = i... | [
"FUNC_0(POWER7P)(ObjectClass *oc, void *data)\n{",
"DeviceClass *dc = DEVICE_CLASS(oc);",
"PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);",
"dc->fw_name = \"PowerPC,POWER7+\";",
"dc->desc = \"POWER7+\";",
"pcc->pvr = CPU_POWERPC_POWER7P_BASE;",
"pcc->pvr_mask = CPU_POWERPC_POWER7P_MASK;",
"pcc->init_pr... | [
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
],
[
16
],
[
18
],
[
20
],
[
22
],
[
24,
26,
28,
30,
32,
34,
36,
38,
40,
42,
44,
46
],
[
48,
50,
52,
54
],
[
56,
58,
60... |
6,807 | static uint16_t phys_section_add(MemoryRegionSection *section)
{
if (phys_sections_nb == phys_sections_nb_alloc) {
phys_sections_nb_alloc = MAX(phys_sections_nb_alloc * 2, 16);
phys_sections = g_renew(MemoryRegionSection, phys_sections,
phys_sections_nb_alloc);
}
... | true | qemu | 68f3f65b09a1ce8c82fac17911ffc3bb6031ebe4 | static uint16_t phys_section_add(MemoryRegionSection *section)
{
if (phys_sections_nb == phys_sections_nb_alloc) {
phys_sections_nb_alloc = MAX(phys_sections_nb_alloc * 2, 16);
phys_sections = g_renew(MemoryRegionSection, phys_sections,
phys_sections_nb_alloc);
}
... | {
"code": [],
"line_no": []
} | static uint16_t FUNC_0(MemoryRegionSection *section)
{
if (phys_sections_nb == phys_sections_nb_alloc) {
phys_sections_nb_alloc = MAX(phys_sections_nb_alloc * 2, 16);
phys_sections = g_renew(MemoryRegionSection, phys_sections,
phys_sections_nb_alloc);
}
phys_s... | [
"static uint16_t FUNC_0(MemoryRegionSection *section)\n{",
"if (phys_sections_nb == phys_sections_nb_alloc) {",
"phys_sections_nb_alloc = MAX(phys_sections_nb_alloc * 2, 16);",
"phys_sections = g_renew(MemoryRegionSection, phys_sections,\nphys_sections_nb_alloc);",
"}",
"phys_sections[phys_sections_nb] = ... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5,
6
],
[
7
],
[
8
],
[
9
],
[
10
]
] |
6,808 | static int tta_read_header(AVFormatContext *s)
{
TTAContext *c = s->priv_data;
AVStream *st;
int i, channels, bps, samplerate;
uint64_t framepos, start_offset;
uint32_t datalen;
if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
ff_id3v1_read(s);
start_offse... | false | FFmpeg | c4e0e314248865830ec073e5a3ef08e0a40aabf2 | static int tta_read_header(AVFormatContext *s)
{
TTAContext *c = s->priv_data;
AVStream *st;
int i, channels, bps, samplerate;
uint64_t framepos, start_offset;
uint32_t datalen;
if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
ff_id3v1_read(s);
start_offse... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
TTAContext *c = VAR_0->priv_data;
AVStream *st;
int VAR_1, VAR_2, VAR_3, VAR_4;
uint64_t framepos, start_offset;
uint32_t datalen;
if (!av_dict_get(VAR_0->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
ff_id3v1_read(VAR_0);
start_... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"TTAContext *c = VAR_0->priv_data;",
"AVStream *st;",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"uint64_t framepos, start_offset;",
"uint32_t datalen;",
"if (!av_dict_get(VAR_0->metadata, \"\", NULL, AV_DICT_IGNORE_SUFFIX))\nff_id3v1_read(VAR_0);",
"start_offse... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
6,813 | static void sub2video_update(InputStream *ist, AVSubtitle *sub)
{
int w = ist->sub2video.w, h = ist->sub2video.h;
AVFrame *frame = ist->sub2video.frame;
int8_t *dst;
int dst_linesize;
int num_rects, i;
int64_t pts, end_pts;
if (!frame)
return;
if (sub) {
... | true | FFmpeg | 59975de77741766df4cc48c66bc151a6c31f9291 | static void sub2video_update(InputStream *ist, AVSubtitle *sub)
{
int w = ist->sub2video.w, h = ist->sub2video.h;
AVFrame *frame = ist->sub2video.frame;
int8_t *dst;
int dst_linesize;
int num_rects, i;
int64_t pts, end_pts;
if (!frame)
return;
if (sub) {
... | {
"code": [
" pts = av_rescale_q(sub->pts + sub->start_display_time * 1000,",
" end_pts = av_rescale_q(sub->pts + sub->end_display_time * 1000,"
],
"line_no": [
25,
29
]
} | static void FUNC_0(InputStream *VAR_0, AVSubtitle *VAR_1)
{
int VAR_2 = VAR_0->sub2video.VAR_2, VAR_3 = VAR_0->sub2video.VAR_3;
AVFrame *frame = VAR_0->sub2video.frame;
int8_t *dst;
int VAR_4;
int VAR_5, VAR_6;
int64_t pts, end_pts;
if (!frame)
return;
if (VAR_1) ... | [
"static void FUNC_0(InputStream *VAR_0, AVSubtitle *VAR_1)\n{",
"int VAR_2 = VAR_0->sub2video.VAR_2, VAR_3 = VAR_0->sub2video.VAR_3;",
"AVFrame *frame = VAR_0->sub2video.frame;",
"int8_t *dst;",
"int VAR_4;",
"int VAR_5, VAR_6;",
"int64_t pts, end_pts;",
"if (!frame)\nreturn;",
"if (VAR_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
6,817 | void helper_movcal(CPUSH4State *env, uint32_t address, uint32_t value)
{
if (cpu_sh4_is_cached (env, address))
{
memory_content *r = malloc (sizeof(memory_content));
r->address = address;
r->value = value;
r->next = NULL;
*(env->movcal_backup_tail) = r;
env->movcal_backup_tail = &(r->next);
... | true | qemu | 01a720125f5e2f0a23d2682b39dead2fcc820066 | void helper_movcal(CPUSH4State *env, uint32_t address, uint32_t value)
{
if (cpu_sh4_is_cached (env, address))
{
memory_content *r = malloc (sizeof(memory_content));
r->address = address;
r->value = value;
r->next = NULL;
*(env->movcal_backup_tail) = r;
env->movcal_backup_tail = &(r->next);
... | {
"code": [
"\tmemory_content *r = malloc (sizeof(memory_content));"
],
"line_no": [
9
]
} | void FUNC_0(CPUSH4State *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
if (cpu_sh4_is_cached (VAR_0, VAR_1))
{
memory_content *r = malloc (sizeof(memory_content));
r->VAR_1 = VAR_1;
r->VAR_2 = VAR_2;
r->next = NULL;
*(VAR_0->movcal_backup_tail) = r;
VAR_0->movcal_backup_tail = &(r->next);
}
}
| [
"void FUNC_0(CPUSH4State *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"if (cpu_sh4_is_cached (VAR_0, VAR_1))\n{",
"memory_content *r = malloc (sizeof(memory_content));",
"r->VAR_1 = VAR_1;",
"r->VAR_2 = VAR_2;",
"r->next = NULL;",
"*(VAR_0->movcal_backup_tail) = r;",
"VAR_0->movcal_backup_tail = &(r->... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
6,819 | static inline uint16_t mipsdsp_lshift16(uint16_t a, uint8_t s,
CPUMIPSState *env)
{
uint8_t sign;
uint16_t discard;
if (s == 0) {
return a;
} else {
sign = (a >> 15) & 0x01;
if (sign != 0) {
discard = (((0x01 << (16... | true | qemu | 29851ee7c8bd3fb8542e21cd0270c73132590350 | static inline uint16_t mipsdsp_lshift16(uint16_t a, uint8_t s,
CPUMIPSState *env)
{
uint8_t sign;
uint16_t discard;
if (s == 0) {
return a;
} else {
sign = (a >> 15) & 0x01;
if (sign != 0) {
discard = (((0x01 << (16... | {
"code": [
" if (s == 0) {",
" return a;",
" } else {",
" if (sign != 0) {",
" } else {",
" return a << s;",
" uint8_t sign;",
" if (s == 0) {",
" return a;",
" } else {",
" sign = (a >> 15) & 0x01;",
" i... | static inline uint16_t FUNC_0(uint16_t a, uint8_t s,
CPUMIPSState *env)
{
uint8_t sign;
uint16_t discard;
if (s == 0) {
return a;
} else {
sign = (a >> 15) & 0x01;
if (sign != 0) {
discard = (((0x01 << (16 - s)) - 1... | [
"static inline uint16_t FUNC_0(uint16_t a, uint8_t s,\nCPUMIPSState *env)\n{",
"uint8_t sign;",
"uint16_t discard;",
"if (s == 0) {",
"return a;",
"} else {",
"sign = (a >> 15) & 0x01;",
"if (sign != 0) {",
"discard = (((0x01 << (16 - s)) - 1) << s) |\n((a >> (14 - (s - 1))) & ((0x01 << s) - 1));",... | [
0,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
6,820 | static ssize_t dump_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
{
DumpState *s = vc->opaque;
struct pcap_sf_pkthdr hdr;
int64_t ts;
int caplen;
/* Early return in case of previous error. */
if (s->fd < 0) {
return size;
}
ts = muldiv64(qemu_get_clo... | true | qemu | 731d5856cbb9c160fe02b90cd3cf354ea4f52f34 | static ssize_t dump_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
{
DumpState *s = vc->opaque;
struct pcap_sf_pkthdr hdr;
int64_t ts;
int caplen;
if (s->fd < 0) {
return size;
}
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec());
... | {
"code": [
"static ssize_t dump_receive(VLANClientState *vc, const uint8_t *buf, size_t size)",
" DumpState *s = vc->opaque;",
" DumpState *s = vc->opaque;",
" if (s->fd < 0) {",
" close(s->fd);"
],
"line_no": [
1,
5,
5,
17,
45
]
} | static ssize_t FUNC_0(VLANClientState *vc, const uint8_t *buf, size_t size)
{
DumpState *s = vc->opaque;
struct pcap_sf_pkthdr VAR_0;
int64_t ts;
int VAR_1;
if (s->fd < 0) {
return size;
}
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec());
... | [
"static ssize_t FUNC_0(VLANClientState *vc, const uint8_t *buf, size_t size)\n{",
"DumpState *s = vc->opaque;",
"struct pcap_sf_pkthdr VAR_0;",
"int64_t ts;",
"int VAR_1;",
"if (s->fd < 0) {",
"return size;",
"}",
"ts = muldiv64(qemu_get_clock(vm_clock), 1000000, get_ticks_per_sec());",
"VAR_1 = s... | [
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
6,821 | static int openpic_load(QEMUFile* f, void *opaque, int version_id)
{
OpenPICState *opp = (OpenPICState *)opaque;
unsigned int i;
if (version_id != 1) {
return -EINVAL;
}
qemu_get_be32s(f, &opp->gcr);
qemu_get_be32s(f, &opp->vir);
qemu_get_be32s(f, &opp->pir);
qemu_g... | true | qemu | 73d963c0a75cb99c6aaa3f6f25e427aa0b35a02e | static int openpic_load(QEMUFile* f, void *opaque, int version_id)
{
OpenPICState *opp = (OpenPICState *)opaque;
unsigned int i;
if (version_id != 1) {
return -EINVAL;
}
qemu_get_be32s(f, &opp->gcr);
qemu_get_be32s(f, &opp->vir);
qemu_get_be32s(f, &opp->pir);
qemu_g... | {
"code": [
" unsigned int i;",
" qemu_get_be32s(f, &opp->nb_cpus);"
],
"line_no": [
7,
31
]
} | static int FUNC_0(QEMUFile* VAR_0, void *VAR_1, int VAR_2)
{
OpenPICState *opp = (OpenPICState *)VAR_1;
unsigned int VAR_3;
if (VAR_2 != 1) {
return -EINVAL;
}
qemu_get_be32s(VAR_0, &opp->gcr);
qemu_get_be32s(VAR_0, &opp->vir);
qemu_get_be32s(VAR_0, &opp->pir);
qemu... | [
"static int FUNC_0(QEMUFile* VAR_0, void *VAR_1, int VAR_2)\n{",
"OpenPICState *opp = (OpenPICState *)VAR_1;",
"unsigned int VAR_3;",
"if (VAR_2 != 1) {",
"return -EINVAL;",
"}",
"qemu_get_be32s(VAR_0, &opp->gcr);",
"qemu_get_be32s(VAR_0, &opp->vir);",
"qemu_get_be32s(VAR_0, &opp->pir);",
"qemu_ge... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
51
],
... |
6,822 | int vnc_tight_send_framebuffer_update(VncState *vs, int x, int y,
int w, int h)
{
int max_rows;
if (vs->clientds.pf.bytes_per_pixel == 4 && vs->clientds.pf.rmax == 0xFF &&
vs->clientds.pf.bmax == 0xFF && vs->clientds.pf.gmax == 0xFF) {
vs->tight_pixe... | false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | int vnc_tight_send_framebuffer_update(VncState *vs, int x, int y,
int w, int h)
{
int max_rows;
if (vs->clientds.pf.bytes_per_pixel == 4 && vs->clientds.pf.rmax == 0xFF &&
vs->clientds.pf.bmax == 0xFF && vs->clientds.pf.gmax == 0xFF) {
vs->tight_pixe... | {
"code": [],
"line_no": []
} | int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4)
{
int VAR_5;
if (VAR_0->clientds.pf.bytes_per_pixel == 4 && VAR_0->clientds.pf.rmax == 0xFF &&
VAR_0->clientds.pf.bmax == 0xFF && VAR_0->clientds.pf.gmax == 0xFF) {
VAR_0->tight_... | [
"int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{",
"int VAR_5;",
"if (VAR_0->clientds.pf.bytes_per_pixel == 4 && VAR_0->clientds.pf.rmax == 0xFF &&\nVAR_0->clientds.pf.bmax == 0xFF && VAR_0->clientds.pf.gmax == 0xFF) {",
"VAR_0->tight_pixel24 = true;",
"} else {",
"VAR_0->tight... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
6,823 | static uint64_t fw_cfg_data_mem_read(void *opaque, hwaddr addr,
unsigned size)
{
return fw_cfg_read(opaque);
}
| false | qemu | cfaadf0e89e7c2a47462d5f96390c9a9b4de037c | static uint64_t fw_cfg_data_mem_read(void *opaque, hwaddr addr,
unsigned size)
{
return fw_cfg_read(opaque);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned size)
{
return fw_cfg_read(opaque);
}
| [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{",
"return fw_cfg_read(opaque);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
6,824 | static IOMMUTLBEntry amdvi_translate(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu);
AMDVIState *s = as->iommu_state;
IOMMUTLBEntry ret = {
.target_as = &address_space_memory,
... | false | qemu | bf55b7afce53718ef96f4e6616da62c0ccac37dd | static IOMMUTLBEntry amdvi_translate(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu);
AMDVIState *s = as->iommu_state;
IOMMUTLBEntry ret = {
.target_as = &address_space_memory,
... | {
"code": [],
"line_no": []
} | static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu);
AMDVIState *s = as->iommu_state;
IOMMUTLBEntry ret = {
.target_as = &address_space_memory,
.iova =... | [
"static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,\nbool is_write)\n{",
"AMDVIAddressSpace *as = container_of(iommu, AMDVIAddressSpace, iommu);",
"AMDVIState *s = as->iommu_state;",
"IOMMUTLBEntry ret = {",
".target_as = &address_space_memory,\n.iova = addr,\n.translated_addr = 0,\n.addr_mask = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21,
23
],
[
27
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
6,825 | void ahci_command_wait(AHCIQState *ahci, AHCICommand *cmd)
{
/* We can't rely on STS_BSY until the command has started processing.
* Therefore, we also use the Command Issue bit as indication of
* a command in-flight. */
while (BITSET(ahci_px_rreg(ahci, cmd->port, AHCI_PX_TFD),
... | false | qemu | 4de484698bdda6c5e093dfbe4368cdb364fdf87f | void ahci_command_wait(AHCIQState *ahci, AHCICommand *cmd)
{
while (BITSET(ahci_px_rreg(ahci, cmd->port, AHCI_PX_TFD),
AHCI_PX_TFD_STS_BSY) ||
BITSET(ahci_px_rreg(ahci, cmd->port, AHCI_PX_CI), (1 << cmd->slot))) {
usleep(50);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(AHCIQState *VAR_0, AHCICommand *VAR_1)
{
while (BITSET(ahci_px_rreg(VAR_0, VAR_1->port, AHCI_PX_TFD),
AHCI_PX_TFD_STS_BSY) ||
BITSET(ahci_px_rreg(VAR_0, VAR_1->port, AHCI_PX_CI), (1 << VAR_1->slot))) {
usleep(50);
}
}
| [
"void FUNC_0(AHCIQState *VAR_0, AHCICommand *VAR_1)\n{",
"while (BITSET(ahci_px_rreg(VAR_0, VAR_1->port, AHCI_PX_TFD),\nAHCI_PX_TFD_STS_BSY) ||\nBITSET(ahci_px_rreg(VAR_0, VAR_1->port, AHCI_PX_CI), (1 << VAR_1->slot))) {",
"usleep(50);",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
]
] |
6,827 | static inline int gen_intermediate_code_internal(TranslationBlock * tb,
int spc, CPUSPARCState *env)
{
target_ulong pc_start, last_pc;
uint16_t *gen_opc_end;
DisasContext dc1, *dc = &dc1;
int j, lj = -1;
memset(dc, 0, sizeof(DisasContext));
dc->tb = tb;
pc_start = tb->pc;
... | false | qemu | b769d8fef6c06ddb39ef0337882a4f8872b9c2bc | static inline int gen_intermediate_code_internal(TranslationBlock * tb,
int spc, CPUSPARCState *env)
{
target_ulong pc_start, last_pc;
uint16_t *gen_opc_end;
DisasContext dc1, *dc = &dc1;
int j, lj = -1;
memset(dc, 0, sizeof(DisasContext));
dc->tb = tb;
pc_start = tb->pc;
... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(TranslationBlock * VAR_0,
int VAR_1, CPUSPARCState *VAR_2)
{
target_ulong pc_start, last_pc;
uint16_t *gen_opc_end;
DisasContext dc1, *dc = &dc1;
int VAR_3, VAR_4 = -1;
memset(dc, 0, sizeof(DisasContext));
dc->VAR_0 = VAR_0;
pc_start = VAR_0->pc;
... | [
"static inline int FUNC_0(TranslationBlock * VAR_0,\nint VAR_1, CPUSPARCState *VAR_2)\n{",
"target_ulong pc_start, last_pc;",
"uint16_t *gen_opc_end;",
"DisasContext dc1, *dc = &dc1;",
"int VAR_3, VAR_4 = -1;",
"memset(dc, 0, sizeof(DisasContext));",
"dc->VAR_0 = VAR_0;",
"pc_start = VAR_0->pc;",
"d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
... |
6,828 | static void term_hist_add(const char *cmdline)
{
char *hist_entry, *new_entry;
int idx;
if (cmdline[0] == '\0')
return;
new_entry = NULL;
if (term_hist_entry != -1) {
/* We were editing an existing history entry: replace it */
hist_entry = term_history[term_hist_entry];
idx = term_hi... | false | qemu | 7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1 | static void term_hist_add(const char *cmdline)
{
char *hist_entry, *new_entry;
int idx;
if (cmdline[0] == '\0')
return;
new_entry = NULL;
if (term_hist_entry != -1) {
hist_entry = term_history[term_hist_entry];
idx = term_hist_entry;
if (strcmp(hist_entry, cmdline) == 0) {
g... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
char *VAR_1, *VAR_2;
int VAR_3;
if (VAR_0[0] == '\0')
return;
VAR_2 = NULL;
if (term_hist_entry != -1) {
VAR_1 = term_history[term_hist_entry];
VAR_3 = term_hist_entry;
if (strcmp(VAR_1, VAR_0) == 0) {
goto same_entry;
}
}
... | [
"static void FUNC_0(const char *VAR_0)\n{",
"char *VAR_1, *VAR_2;",
"int VAR_3;",
"if (VAR_0[0] == '\\0')\nreturn;",
"VAR_2 = NULL;",
"if (term_hist_entry != -1) {",
"VAR_1 = term_history[term_hist_entry];",
"VAR_3 = term_hist_entry;",
"if (strcmp(VAR_1, VAR_0) == 0) {",
"goto same_entry;",
"}",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
51,
53... |
6,830 | static av_cold int flic_decode_init(AVCodecContext *avctx)
{
FlicDecodeContext *s = avctx->priv_data;
unsigned char *fli_header = (unsigned char *)avctx->extradata;
int depth;
if (avctx->extradata_size != 12 &&
avctx->extradata_size != 128) {
av_log(avctx, AV_LOG_ERROR, "Expecte... | false | FFmpeg | 3b199d29cd597a3518136d78860e172060b9e83d | static av_cold int flic_decode_init(AVCodecContext *avctx)
{
FlicDecodeContext *s = avctx->priv_data;
unsigned char *fli_header = (unsigned char *)avctx->extradata;
int depth;
if (avctx->extradata_size != 12 &&
avctx->extradata_size != 128) {
av_log(avctx, AV_LOG_ERROR, "Expecte... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
FlicDecodeContext *s = avctx->priv_data;
unsigned char *VAR_0 = (unsigned char *)avctx->extradata;
int VAR_1;
if (avctx->extradata_size != 12 &&
avctx->extradata_size != 128) {
av_log(avctx, AV_LOG_ERROR, "Expected extradata of ... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"FlicDecodeContext *s = avctx->priv_data;",
"unsigned char *VAR_0 = (unsigned char *)avctx->extradata;",
"int VAR_1;",
"if (avctx->extradata_size != 12 &&\navctx->extradata_size != 128) {",
"av_log(avctx, AV_LOG_ERROR, \"Expected extradata of 12 or 12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[... |
6,831 | static int mmu_translate_region(CPUS390XState *env, target_ulong vaddr,
uint64_t asc, uint64_t entry, int level,
target_ulong *raddr, int *flags, int rw,
bool exc)
{
CPUState *cs = CPU(s390_env_get_cpu(env));
u... | false | qemu | 43d49b0115aef2ead5125d4aa9719852d47ef6fc | static int mmu_translate_region(CPUS390XState *env, target_ulong vaddr,
uint64_t asc, uint64_t entry, int level,
target_ulong *raddr, int *flags, int rw,
bool exc)
{
CPUState *cs = CPU(s390_env_get_cpu(env));
u... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,
uint64_t VAR_2, uint64_t VAR_3, int VAR_4,
target_ulong *VAR_5, int *VAR_6, int VAR_7,
bool VAR_8)
{
CPUState *cs = CPU(s390_env_get_cpu(VAR_0));
uint... | [
"static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,\nuint64_t VAR_2, uint64_t VAR_3, int VAR_4,\ntarget_ulong *VAR_5, int *VAR_6, int VAR_7,\nbool VAR_8)\n{",
"CPUState *cs = CPU(s390_env_get_cpu(VAR_0));",
"uint64_t origin, offs, new_entry;",
"const int VAR_9[4] = {",
"PGM_SEGMENT_TRANS, PGM_REG_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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17,
19,
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
... |
6,832 | static const char *rpath(FsContext *ctx, const char *path)
{
/* FIXME: so wrong... */
static char buffer[4096];
snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path);
return buffer;
}
| false | qemu | fc22118d9bb56ec71655b936a29513c140e6c289 | static const char *rpath(FsContext *ctx, const char *path)
{
static char buffer[4096];
snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path);
return buffer;
}
| {
"code": [],
"line_no": []
} | static const char *FUNC_0(FsContext *VAR_0, const char *VAR_1)
{
static char VAR_2[4096];
snprintf(VAR_2, sizeof(VAR_2), "%s/%s", VAR_0->fs_root, VAR_1);
return VAR_2;
}
| [
"static const char *FUNC_0(FsContext *VAR_0, const char *VAR_1)\n{",
"static char VAR_2[4096];",
"snprintf(VAR_2, sizeof(VAR_2), \"%s/%s\", VAR_0->fs_root, VAR_1);",
"return VAR_2;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.