id int32 0 27.3k | func stringlengths 26 142k | target bool 2
classes | project stringclasses 2
values | commit_id stringlengths 40 40 | func_clean stringlengths 26 131k | vul_lines dict | normalized_func stringlengths 24 132k | lines listlengths 1 2.8k | label listlengths 1 2.8k | line_no listlengths 1 2.8k |
|---|---|---|---|---|---|---|---|---|---|---|
18,496 | void ff_set_mpeg4_time(MpegEncContext * s){
if(s->pict_type==AV_PICTURE_TYPE_B){
ff_mpeg4_init_direct_mv(s);
}else{
s->last_time_base= s->time_base;
s->time_base= s->time/s->avctx->time_base.den;
}
}
| false | FFmpeg | 38bb5a5434f913451aa512624a92b12b9925690f | void ff_set_mpeg4_time(MpegEncContext * s){
if(s->pict_type==AV_PICTURE_TYPE_B){
ff_mpeg4_init_direct_mv(s);
}else{
s->last_time_base= s->time_base;
s->time_base= s->time/s->avctx->time_base.den;
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext * VAR_0){
if(VAR_0->pict_type==AV_PICTURE_TYPE_B){
ff_mpeg4_init_direct_mv(VAR_0);
}else{
VAR_0->last_time_base= VAR_0->time_base;
VAR_0->time_base= VAR_0->time/VAR_0->avctx->time_base.den;
}
}
| [
"void FUNC_0(MpegEncContext * VAR_0){",
"if(VAR_0->pict_type==AV_PICTURE_TYPE_B){",
"ff_mpeg4_init_direct_mv(VAR_0);",
"}else{",
"VAR_0->last_time_base= VAR_0->time_base;",
"VAR_0->time_base= VAR_0->time/VAR_0->avctx->time_base.den;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,498 | static int skeleton_header(AVFormatContext *s, int idx)
{
struct ogg *ogg = s->priv_data;
struct ogg_stream *os = ogg->streams + idx;
AVStream *st = s->streams[idx];
uint8_t *buf = os->buf + os->pstart;
int version_major, version_minor;
int64_t start_num, start_den, start_granule;
in... | true | FFmpeg | f927c5b753f2ec1f037ad38cb55b4407dd7a9d79 | static int skeleton_header(AVFormatContext *s, int idx)
{
struct ogg *ogg = s->priv_data;
struct ogg_stream *os = ogg->streams + idx;
AVStream *st = s->streams[idx];
uint8_t *buf = os->buf + os->pstart;
int version_major, version_minor;
int64_t start_num, start_den, start_granule;
in... | {
"code": [
" s->streams[target_idx]->start_time = ogg_gptopts(s, target_idx, start_granule, NULL);"
],
"line_no": [
105
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)
{
struct VAR_2 *VAR_2 = VAR_0->priv_data;
struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;
AVStream *st = VAR_0->streams[VAR_1];
uint8_t *buf = VAR_3->buf + VAR_3->pstart;
int VAR_4, VAR_5;
int64_t start_num, start_den, start_granule;... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{",
"struct VAR_2 *VAR_2 = VAR_0->priv_data;",
"struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;",
"AVStream *st = VAR_0->streams[VAR_1];",
"uint8_t *buf = VAR_3->buf + VAR_3->pstart;",
"int VAR_4, VAR_5;",
"int64_t start_num, start_den, start_gra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
53
],
[... |
18,499 | static void virtio_net_set_status(struct VirtIODevice *vdev, uint8_t status)
{
VirtIONet *n = VIRTIO_NET(vdev);
VirtIONetQueue *q;
int i;
uint8_t queue_status;
virtio_net_vnet_endian_status(n, status);
virtio_net_vhost_status(n, status);
for (i = 0; i < n->max_queues; i++) {
... | true | qemu | 70e53e6e4da3db4b2c31981191753a7e974936d0 | static void virtio_net_set_status(struct VirtIODevice *vdev, uint8_t status)
{
VirtIONet *n = VIRTIO_NET(vdev);
VirtIONetQueue *q;
int i;
uint8_t queue_status;
virtio_net_vnet_endian_status(n, status);
virtio_net_vhost_status(n, status);
for (i = 0; i < n->max_queues; i++) {
... | {
"code": [
" (queue_status & VIRTIO_CONFIG_S_DRIVER_OK)) {"
],
"line_no": [
91
]
} | static void FUNC_0(struct VirtIODevice *VAR_0, uint8_t VAR_1)
{
VirtIONet *n = VIRTIO_NET(VAR_0);
VirtIONetQueue *q;
int VAR_2;
uint8_t queue_status;
virtio_net_vnet_endian_status(n, VAR_1);
virtio_net_vhost_status(n, VAR_1);
for (VAR_2 = 0; VAR_2 < n->max_queues; VAR_2++) {
... | [
"static void FUNC_0(struct VirtIODevice *VAR_0, uint8_t VAR_1)\n{",
"VirtIONet *n = VIRTIO_NET(VAR_0);",
"VirtIONetQueue *q;",
"int VAR_2;",
"uint8_t queue_status;",
"virtio_net_vnet_endian_status(n, VAR_1);",
"virtio_net_vhost_status(n, VAR_1);",
"for (VAR_2 = 0; VAR_2 < n->max_queues; 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,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
47
],
[
49
],
[... |
18,500 | static void alloc_picture(void *opaque)
{
VideoState *is = opaque;
VideoPicture *vp;
vp = &is->pictq[is->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
#if CONFIG_AVFILTER
if (vp->picref)
avfilter_unref_buffer(vp->picref);
vp->picref = NULL;
vp->w... | false | FFmpeg | 70d54392f5015b9c6594fcae558f59f952501e3b | static void alloc_picture(void *opaque)
{
VideoState *is = opaque;
VideoPicture *vp;
vp = &is->pictq[is->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
#if CONFIG_AVFILTER
if (vp->picref)
avfilter_unref_buffer(vp->picref);
vp->picref = NULL;
vp->w... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
VideoState *is = VAR_0;
VideoPicture *vp;
vp = &is->pictq[is->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
#if CONFIG_AVFILTER
if (vp->picref)
avfilter_unref_buffer(vp->picref);
vp->picref = NULL;
vp->width = ... | [
"static void FUNC_0(void *VAR_0)\n{",
"VideoState *is = VAR_0;",
"VideoPicture *vp;",
"vp = &is->pictq[is->pictq_windex];",
"if (vp->bmp)\nSDL_FreeYUVOverlay(vp->bmp);",
"#if CONFIG_AVFILTER\nif (vp->picref)\navfilter_unref_buffer(vp->picref);",
"vp->picref = NULL;",
"vp->width = is->out_video_filte... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17
],
[
21,
23,
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45,
49,
51,
53
],
[
55
],
[
61,
63... |
18,502 | static void int_to_int16(int16_t *out, const int *inp)
{
int i;
for (i=0; i<30; i++)
*(out++) = *(inp++);
}
| false | FFmpeg | 6c9c8b06b32013c58101f27991eae251bf4eb485 | static void int_to_int16(int16_t *out, const int *inp)
{
int i;
for (i=0; i<30; i++)
*(out++) = *(inp++);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int16_t *VAR_0, const int *VAR_1)
{
int VAR_2;
for (VAR_2=0; VAR_2<30; VAR_2++)
*(VAR_0++) = *(VAR_1++);
}
| [
"static void FUNC_0(int16_t *VAR_0, const int *VAR_1)\n{",
"int VAR_2;",
"for (VAR_2=0; VAR_2<30; VAR_2++)",
"*(VAR_0++) = *(VAR_1++);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
18,504 | static int decode_frame_adu(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPADecodeContext *s = avctx->priv_data;
uint32_t header;
int len, ret;
len = buf_size;... | false | FFmpeg | 955aec3c7c7be39b659197e1ec379a09f2b7c41c | static int decode_frame_adu(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPADecodeContext *s = avctx->priv_data;
uint32_t header;
int len, ret;
len = buf_size;... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MPADecodeContext *s = VAR_0->priv_data;
uint32_t header;
int VAR_6, VAR_7;
VAR_6 = VAR_5;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MPADecodeContext *s = VAR_0->priv_data;",
"uint32_t header;",
"int VAR_6, VAR_7;",
"VAR_6 = VAR_5;",
"if (VAR_5 < HEADER_SIZE) {",
"a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37,
39
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[
63
... |
18,505 | static void fill_caches(H264Context *h, int mb_type, int for_deblock){
MpegEncContext * const s = &h->s;
const int mb_xy= h->mb_xy;
int topleft_xy, top_xy, topright_xy, left_xy[2];
int topleft_type, top_type, topright_type, left_type[2];
int * left_block;
int topleft_partition= -1;
in... | false | FFmpeg | 3d11b8ce13788653f7929e49a11681a1bae2f75e | static void fill_caches(H264Context *h, int mb_type, int for_deblock){
MpegEncContext * const s = &h->s;
const int mb_xy= h->mb_xy;
int topleft_xy, top_xy, topright_xy, left_xy[2];
int topleft_type, top_type, topright_type, left_type[2];
int * left_block;
int topleft_partition= -1;
in... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2){
MpegEncContext * const s = &VAR_0->s;
const int VAR_3= VAR_0->VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7[2];
int VAR_8, VAR_9, VAR_10, VAR_11[2];
int * VAR_12;
int VAR_13= -1;
int VAR_14;
VAR_5 = VAR_3 - (s->mb_strid... | [
"static void FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2){",
"MpegEncContext * const s = &VAR_0->s;",
"const int VAR_3= VAR_0->VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7[2];",
"int VAR_8, VAR_9, VAR_10, VAR_11[2];",
"int * VAR_12;",
"int VAR_13= -1;",
"int VAR_14;",
"VAR_5 = VAR_3 - (s->mb_st... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
25,
27
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
18,506 | int virtio_gpu_create_mapping_iov(struct virtio_gpu_resource_attach_backing *ab,
struct virtio_gpu_ctrl_command *cmd,
struct iovec **iov)
{
struct virtio_gpu_mem_entry *ents;
size_t esize, s;
int i;
if (ab->nr_entries > 16384) ... | true | qemu | 7f3be0f20ff8d976ab982cc06026cac0600f1fb6 | int virtio_gpu_create_mapping_iov(struct virtio_gpu_resource_attach_backing *ab,
struct virtio_gpu_ctrl_command *cmd,
struct iovec **iov)
{
struct virtio_gpu_mem_entry *ents;
size_t esize, s;
int i;
if (ab->nr_entries > 16384) ... | {
"code": [
" g_free(*iov);"
],
"line_no": [
77
]
} | int FUNC_0(struct virtio_gpu_resource_attach_backing *VAR_0,
struct virtio_gpu_ctrl_command *VAR_1,
struct iovec **VAR_2)
{
struct virtio_gpu_mem_entry *VAR_3;
size_t esize, s;
int VAR_4;
if (VAR_0->nr_entries > 16384) {
... | [
"int FUNC_0(struct virtio_gpu_resource_attach_backing *VAR_0,\nstruct virtio_gpu_ctrl_command *VAR_1,\nstruct iovec **VAR_2)\n{",
"struct virtio_gpu_mem_entry *VAR_3;",
"size_t esize, s;",
"int VAR_4;",
"if (VAR_0->nr_entries > 16384) {",
"qemu_log_mask(LOG_GUEST_ERROR,\n\"%s: nr_entries is too big (%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,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21,
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49
],
[
51
],
[... |
18,507 | static int check_refcounts_l2(BlockDriverState *bs,
uint16_t *refcount_table, int refcount_table_size, int64_t l2_offset,
int check_copied)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, offset;
int i, l2_size, nb_csectors, refcount;
int errors = 0;
/* Read L2 table from disk */
l2... | true | qemu | 54c42368f57c02b0970bb32b4542f99b913908ba | static int check_refcounts_l2(BlockDriverState *bs,
uint16_t *refcount_table, int refcount_table_size, int64_t l2_offset,
int check_copied)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, offset;
int i, l2_size, nb_csectors, refcount;
int errors = 0;
l2_size = s->l2_size * sizeof(u... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
uint16_t *VAR_1, int VAR_2, int64_t VAR_3,
int VAR_4)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t *l2_table, offset;
int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9 = 0;
VAR_6 = s->VAR_6 * sizeof(uint64_t);
l2_table = qemu_malloc(VAR_6);
if ... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nuint16_t *VAR_1, int VAR_2, int64_t VAR_3,\nint VAR_4)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t *l2_table, offset;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9 = 0;",
"VAR_6 = s->VAR_6 * sizeof(uint64_t);",
"l2_table = qemu_malloc(VAR_6);",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
10
],
[
11
],
[
12,
13
],
[
15
],
[
16
],
[
17
],
[
18
],
[
20
],
[
21,
22,
23
],
[
24
],
[
26,
27
],
[
28
]... |
18,508 | static inline void direct_ref_list_init(H264Context * const h){
MpegEncContext * const s = &h->s;
Picture * const ref1 = &h->ref_list[1][0];
Picture * const cur = s->current_picture_ptr;
int list, i, j;
int sidx= s->picture_structure&1;
int ref1sidx= ref1->reference&1;
for(list=0; lis... | false | FFmpeg | 42de393dcb354c2981cdd39aa52992dc77594feb | static inline void direct_ref_list_init(H264Context * const h){
MpegEncContext * const s = &h->s;
Picture * const ref1 = &h->ref_list[1][0];
Picture * const cur = s->current_picture_ptr;
int list, i, j;
int sidx= s->picture_structure&1;
int ref1sidx= ref1->reference&1;
for(list=0; lis... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(H264Context * const VAR_0){
MpegEncContext * const s = &VAR_0->s;
Picture * const ref1 = &VAR_0->ref_list[1][0];
Picture * const cur = s->current_picture_ptr;
int VAR_1, VAR_2, VAR_3;
int VAR_4= s->picture_structure&1;
int VAR_5= ref1->reference&1;
for(VAR_1=... | [
"static inline void FUNC_0(H264Context * const VAR_0){",
"MpegEncContext * const s = &VAR_0->s;",
"Picture * const ref1 = &VAR_0->ref_list[1][0];",
"Picture * const cur = s->current_picture_ptr;",
"int VAR_1, VAR_2, VAR_3;",
"int VAR_4= s->picture_structure&1;",
"int VAR_5= ref1->reference&1;",
"for(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
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
... |
18,509 | static inline void tm2_high_chroma(int *data, int stride, int *last, int *CD, int *deltas)
{
int i, j;
for (j = 0; j < 2; j++) {
for (i = 0; i < 2; i++) {
CD[j] += deltas[i + j * 2];
last[i] += CD[j];
data[i] = last[i];
}
data += stride;
... | true | FFmpeg | 44874b4f5ec2c605c70393573b9d85540ebc2d81 | static inline void tm2_high_chroma(int *data, int stride, int *last, int *CD, int *deltas)
{
int i, j;
for (j = 0; j < 2; j++) {
for (i = 0; i < 2; i++) {
CD[j] += deltas[i + j * 2];
last[i] += CD[j];
data[i] = last[i];
}
data += stride;
... | {
"code": [
"static inline void tm2_high_chroma(int *data, int stride, int *last, int *CD, int *deltas)"
],
"line_no": [
1
]
} | static inline void FUNC_0(int *VAR_0, int VAR_1, int *VAR_2, int *VAR_3, int *VAR_4)
{
int VAR_5, VAR_6;
for (VAR_6 = 0; VAR_6 < 2; VAR_6++) {
for (VAR_5 = 0; VAR_5 < 2; VAR_5++) {
VAR_3[VAR_6] += VAR_4[VAR_5 + VAR_6 * 2];
VAR_2[VAR_5] += VAR_3[VAR_6];
VAR_0... | [
"static inline void FUNC_0(int *VAR_0, int VAR_1, int *VAR_2, int *VAR_3, int *VAR_4)\n{",
"int VAR_5, VAR_6;",
"for (VAR_6 = 0; VAR_6 < 2; VAR_6++) {",
"for (VAR_5 = 0; VAR_5 < 2; VAR_5++) {",
"VAR_3[VAR_6] += VAR_4[VAR_5 + VAR_6 * 2];",
"VAR_2[VAR_5] += VAR_3[VAR_6];",
"VAR_0[VAR_5] = VAR_2[VAR_5]... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
18,510 | static int bdrv_check_byte_request(BlockDriverState *bs, int64_t offset,
size_t size)
{
int64_t len;
if (!bdrv_is_inserted(bs))
return -ENOMEDIUM;
if (bs->growable)
return 0;
len = bdrv_getlength(bs);
if ((offset + size) > len)
... | true | qemu | fbb7b4e0804d2168f24142eebf7552adde1968dc | static int bdrv_check_byte_request(BlockDriverState *bs, int64_t offset,
size_t size)
{
int64_t len;
if (!bdrv_is_inserted(bs))
return -ENOMEDIUM;
if (bs->growable)
return 0;
len = bdrv_getlength(bs);
if ((offset + size) > len)
... | {
"code": [
" if ((offset + size) > len)"
],
"line_no": [
27
]
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
size_t VAR_2)
{
int64_t len;
if (!bdrv_is_inserted(VAR_0))
return -ENOMEDIUM;
if (VAR_0->growable)
return 0;
len = bdrv_getlength(VAR_0);
if ((VAR_1 + VAR_2) > len)
... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nsize_t VAR_2)\n{",
"int64_t len;",
"if (!bdrv_is_inserted(VAR_0))\nreturn -ENOMEDIUM;",
"if (VAR_0->growable)\nreturn 0;",
"len = bdrv_getlength(VAR_0);",
"if ((VAR_1 + VAR_2) > len)\nreturn -EIO;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
17,
19
],
[
23
],
[
27,
29
],
[
33
],
[
35
]
] |
18,511 | static int aiff_read_header(AVFormatContext *s)
{
int ret, size, filesize;
int64_t offset = 0, position;
uint32_t tag;
unsigned version = AIFF_C_VERSION1;
AVIOContext *pb = s->pb;
AVStream * st;
AIFFInputContext *aiff = s->priv_data;
ID3v2ExtraMeta *id3v2_extra_meta = NULL;
... | true | FFmpeg | ad5807f8aa883bee5431186dc1f24c5435d722d3 | static int aiff_read_header(AVFormatContext *s)
{
int ret, size, filesize;
int64_t offset = 0, position;
uint32_t tag;
unsigned version = AIFF_C_VERSION1;
AVIOContext *pb = s->pb;
AVStream * st;
AIFFInputContext *aiff = s->priv_data;
ID3v2ExtraMeta *id3v2_extra_meta = NULL;
... | {
"code": [
" st->codecpar->bit_rate = st->codecpar->sample_rate * (st->codecpar->block_align << 3) /"
],
"line_no": [
227
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
int64_t offset = 0, position;
uint32_t tag;
unsigned VAR_4 = AIFF_C_VERSION1;
AVIOContext *pb = VAR_0->pb;
AVStream * st;
AIFFInputContext *aiff = VAR_0->priv_data;
ID3v2ExtraMeta *id3v2_extra_meta = NULL;
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"int64_t offset = 0, position;",
"uint32_t tag;",
"unsigned VAR_4 = AIFF_C_VERSION1;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream * st;",
"AIFFInputContext *aiff = VAR_0->priv_data;",
"ID3v2ExtraMeta *id3v2_extra_meta = NULL;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27,
29
],
[
35
],
[
37,
39
],
[
41,
43
],
[
47
],
[
51
],
[
53,
55
],
[
59
... |
18,514 | static int qemu_signal_init(void)
{
int sigfd;
sigset_t set;
#ifdef CONFIG_IOTHREAD
/* SIGUSR2 used by posix-aio-compat.c */
sigemptyset(&set);
sigaddset(&set, SIGUSR2);
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
/*
* SIG_IPI must be blocked in the main thread and must not ... | true | qemu | 12d4536f7d911b6d87a766ad7300482ea663cea2 | static int qemu_signal_init(void)
{
int sigfd;
sigset_t set;
#ifdef CONFIG_IOTHREAD
sigemptyset(&set);
sigaddset(&set, SIGUSR2);
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
sigemptyset(&set);
sigaddset(&set, SIG_IPI);
pthread_sigmask(SIG_BLOCK, &set, NULL)... | {
"code": [
"#ifdef CONFIG_IOTHREAD",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#endif",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#else",
" sigemptyset(&set);",
" sigaddset(&set, SIGBUS);",
" if (kvm_enabled()) {",
" sigaddset(&set, SIGIO);",
" sigaddset(&... | static int FUNC_0(void)
{
int VAR_0;
sigset_t set;
#ifdef CONFIG_IOTHREAD
sigemptyset(&set);
sigaddset(&set, SIGUSR2);
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
sigemptyset(&set);
sigaddset(&set, SIG_IPI);
pthread_sigmask(SIG_BLOCK, &set, NULL);
s... | [
"static int FUNC_0(void)\n{",
"int VAR_0;",
"sigset_t set;",
"#ifdef CONFIG_IOTHREAD\nsigemptyset(&set);",
"sigaddset(&set, SIGUSR2);",
"pthread_sigmask(SIG_UNBLOCK, &set, NULL);",
"sigemptyset(&set);",
"sigaddset(&set, SIG_IPI);",
"pthread_sigmask(SIG_BLOCK, &set, NULL);",
"sigemptyset(&set);",
... | [
0,
0,
0,
1,
0,
0,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
15
],
[
17
],
[
19
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
[
55
],
[
65
],
[
67
],
[
69... |
18,515 | static void gen_neon_dup_high16(TCGv var)
{
TCGv tmp = new_tmp();
tcg_gen_andi_i32(var, var, 0xffff0000);
tcg_gen_shri_i32(tmp, var, 16);
tcg_gen_or_i32(var, var, tmp);
dead_tmp(tmp);
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void gen_neon_dup_high16(TCGv var)
{
TCGv tmp = new_tmp();
tcg_gen_andi_i32(var, var, 0xffff0000);
tcg_gen_shri_i32(tmp, var, 16);
tcg_gen_or_i32(var, var, tmp);
dead_tmp(tmp);
}
| {
"code": [
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" dead_tmp(tmp);",
" TCGv tmp = new_tmp();",
" dead_tmp(tmp);",
" TCGv tmp = new_tmp();",
" dead_tmp(tmp);",
" TCGv tmp = new_tmp();",
" dead_tmp(tmp);",
... | static void FUNC_0(TCGv VAR_0)
{
TCGv tmp = new_tmp();
tcg_gen_andi_i32(VAR_0, VAR_0, 0xffff0000);
tcg_gen_shri_i32(tmp, VAR_0, 16);
tcg_gen_or_i32(VAR_0, VAR_0, tmp);
dead_tmp(tmp);
}
| [
"static void FUNC_0(TCGv VAR_0)\n{",
"TCGv tmp = new_tmp();",
"tcg_gen_andi_i32(VAR_0, VAR_0, 0xffff0000);",
"tcg_gen_shri_i32(tmp, VAR_0, 16);",
"tcg_gen_or_i32(VAR_0, VAR_0, tmp);",
"dead_tmp(tmp);",
"}"
] | [
0,
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,516 | static void lx60_net_init(MemoryRegion *address_space,
hwaddr base,
hwaddr descriptors,
hwaddr buffers,
qemu_irq irq, NICInfo *nd)
{
DeviceState *dev;
SysBusDevice *s;
MemoryRegion *ram;
dev = qdev_create(NULL, "open_eth");
qdev_set_nic_properties(dev, nd)... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void lx60_net_init(MemoryRegion *address_space,
hwaddr base,
hwaddr descriptors,
hwaddr buffers,
qemu_irq irq, NICInfo *nd)
{
DeviceState *dev;
SysBusDevice *s;
MemoryRegion *ram;
dev = qdev_create(NULL, "open_eth");
qdev_set_nic_properties(dev, nd)... | {
"code": [
" memory_region_init_ram(ram, OBJECT(s), \"open_eth.ram\", 16384, &error_abort);"
],
"line_no": [
45
]
} | static void FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
hwaddr VAR_2,
hwaddr VAR_3,
qemu_irq VAR_4, NICInfo *VAR_5)
{
DeviceState *dev;
SysBusDevice *s;
MemoryRegion *ram;
dev = qdev_create(NULL, "open_eth");
qdev_set_nic_properties(dev, VAR_5);
qdev_in... | [
"static void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nhwaddr VAR_2,\nhwaddr VAR_3,\nqemu_irq VAR_4, NICInfo *VAR_5)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"MemoryRegion *ram;",
"dev = qdev_create(NULL, \"open_eth\");",
"qdev_set_nic_properties(dev, VAR_5);",
"qdev_init_nofail(dev);",
"s = SY... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
]
] |
18,517 | void destroy_nic(dev_match_fn *match_fn, void *arg)
{
int i;
NICInfo *nic;
for (i = 0; i < MAX_NICS; i++) {
nic = &nd_table[i];
if (nic->used) {
if (nic->private && match_fn(nic->private, arg)) {
if (nic->vlan) {
VLANClientState *vc;... | true | qemu | ae50b2747f77944faa79eb914272b54eb30b63b3 | void destroy_nic(dev_match_fn *match_fn, void *arg)
{
int i;
NICInfo *nic;
for (i = 0; i < MAX_NICS; i++) {
nic = &nd_table[i];
if (nic->used) {
if (nic->private && match_fn(nic->private, arg)) {
if (nic->vlan) {
VLANClientState *vc;... | {
"code": [
" if (nic->vlan) {",
" VLANClientState *vc;",
" vc = qemu_find_vlan_client(nic->vlan, nic->private);",
" if (vc)",
" qemu_del_vlan_client(vc);"
],
"line_no": [
19,
21,
23,
... | void FUNC_0(dev_match_fn *VAR_0, void *VAR_1)
{
int VAR_2;
NICInfo *nic;
for (VAR_2 = 0; VAR_2 < MAX_NICS; VAR_2++) {
nic = &nd_table[VAR_2];
if (nic->used) {
if (nic->private && VAR_0(nic->private, VAR_1)) {
if (nic->vlan) {
VLANCli... | [
"void FUNC_0(dev_match_fn *VAR_0, void *VAR_1)\n{",
"int VAR_2;",
"NICInfo *nic;",
"for (VAR_2 = 0; VAR_2 < MAX_NICS; VAR_2++) {",
"nic = &nd_table[VAR_2];",
"if (nic->used) {",
"if (nic->private && VAR_0(nic->private, VAR_1)) {",
"if (nic->vlan) {",
"VLANClientState *vc;",
"vc = qemu_find_vlan_cl... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
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
]
] |
18,519 | static av_cold int pcm_encode_close(AVCodecContext *avctx)
{
av_freep(&avctx->coded_frame);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int pcm_encode_close(AVCodecContext *avctx)
{
av_freep(&avctx->coded_frame);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
av_freep(&avctx->coded_frame);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"av_freep(&avctx->coded_frame);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
18,520 | static void extract_exponents(AC3EncodeContext *s)
{
int blk, ch, i;
for (ch = 0; ch < s->channels; ch++) {
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
AC3Block *block = &s->blocks[blk];
for (i = 0; i < AC3_MAX_COEFS; i++) {
int e;
int v... | false | FFmpeg | 9be52d48d9137e05361dd1ffb6b1fb3677e1fb47 | static void extract_exponents(AC3EncodeContext *s)
{
int blk, ch, i;
for (ch = 0; ch < s->channels; ch++) {
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
AC3Block *block = &s->blocks[blk];
for (i = 0; i < AC3_MAX_COEFS; i++) {
int e;
int v... | {
"code": [],
"line_no": []
} | static void FUNC_0(AC3EncodeContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) {
for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {
AC3Block *block = &VAR_0->blocks[VAR_1];
for (VAR_3 = 0; VAR_3 < AC3_MAX_COEFS; VAR_3++) {
... | [
"static void FUNC_0(AC3EncodeContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) {",
"for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {",
"AC3Block *block = &VAR_0->blocks[VAR_1];",
"for (VAR_3 = 0; VAR_3 < AC3_MAX_COEFS; VAR_3++) {",
"int e;",
"int v =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
... |
18,521 | static av_cold int nvenc_dyload_cuda(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
#if CONFIG_CUDA
dl_fn->cu_init = cuInit;
dl_fn->cu_device_get_count = cuDeviceGetCount;
dl_fn->cu_device_... | false | FFmpeg | 0d021cc8b30a6f81c27fbeca7f99f1ee7a20acf8 | static av_cold int nvenc_dyload_cuda(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
#if CONFIG_CUDA
dl_fn->cu_init = cuInit;
dl_fn->cu_device_get_count = cuDeviceGetCount;
dl_fn->cu_device_... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
#if CONFIG_CUDA
dl_fn->cu_init = cuInit;
dl_fn->cu_device_get_count = cuDeviceGetCount;
dl_fn->cu_device_get ... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"NvencContext *ctx = avctx->priv_data;",
"NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;",
"#if CONFIG_CUDA\ndl_fn->cu_init = cuInit;",
"dl_fn->cu_device_get_count = cuDeviceGetCount;",
"dl_fn->cu_device_get ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35,
37
],
[
41,
43
],
[
45,
47
],
[
49,
53
],
[
55... |
18,522 | static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len)
{
MpegTSContext *ts = filter->u.section_filter.opaque;
MpegTSSectionFilter *tssf = &filter->u.section_filter;
SectionHeader h1, *h = &h1;
const uint8_t *p, *p_end;
int sid, pmt_pid;
AVProgram *program;
... | false | FFmpeg | 4e8d01f20ce82b49f47c704a461c5d30866affaf | static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len)
{
MpegTSContext *ts = filter->u.section_filter.opaque;
MpegTSSectionFilter *tssf = &filter->u.section_filter;
SectionHeader h1, *h = &h1;
const uint8_t *p, *p_end;
int sid, pmt_pid;
AVProgram *program;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegTSFilter *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
MpegTSContext *ts = VAR_0->u.section_filter.opaque;
MpegTSSectionFilter *tssf = &VAR_0->u.section_filter;
SectionHeader h1, *h = &h1;
const uint8_t *VAR_3, *p_end;
int VAR_4, VAR_5;
AVProgram *program;
av_lo... | [
"static void FUNC_0(MpegTSFilter *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"MpegTSContext *ts = VAR_0->u.section_filter.opaque;",
"MpegTSSectionFilter *tssf = &VAR_0->u.section_filter;",
"SectionHeader h1, *h = &h1;",
"const uint8_t *VAR_3, *p_end;",
"int VAR_4, VAR_5;",
"AVProgram *program;",
"av... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
43,
45
],
[
47
],
[
49
],
[
53
... |
18,525 | int ff_wma_init(AVCodecContext * avctx, int flags2)
{
WMACodecContext *s = avctx->priv_data;
int i;
float *window;
float bps1, high_freq;
volatile float bps;
int sample_rate1;
int coef_vlc_table;
s->sample_rate = avctx->sample_rate;
s->nb_channels = avctx->channels;
s->bit_rate =... | true | FFmpeg | 47b777ceed470104fb4e6325d5ac1bddbb4752c8 | int ff_wma_init(AVCodecContext * avctx, int flags2)
{
WMACodecContext *s = avctx->priv_data;
int i;
float *window;
float bps1, high_freq;
volatile float bps;
int sample_rate1;
int coef_vlc_table;
s->sample_rate = avctx->sample_rate;
s->nb_channels = avctx->channels;
s->bit_rate =... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext * VAR_0, int VAR_1)
{
WMACodecContext *s = VAR_0->priv_data;
int VAR_17;
float *VAR_3;
float VAR_4, VAR_5;
volatile float VAR_6;
int VAR_7;
int VAR_8;
s->sample_rate = VAR_0->sample_rate;
s->nb_channels = VAR_0->channels;
s->bit_rate = VAR_0->bit_rate;
... | [
"int FUNC_0(AVCodecContext * VAR_0, int VAR_1)\n{",
"WMACodecContext *s = VAR_0->priv_data;",
"int VAR_17;",
"float *VAR_3;",
"float VAR_4, VAR_5;",
"volatile float VAR_6;",
"int VAR_7;",
"int VAR_8;",
"s->sample_rate = VAR_0->sample_rate;",
"s->nb_channels = VAR_0->channels;",
"s->bit_rate = VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
21
],
[
22
],... |
18,526 | void do_blockdev_backup(BlockdevBackup *backup, BlockJobTxn *txn, Error **errp)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!backup->has_speed) {
backup->speed = 0;
}
if (!backup->has_on_source_error) {
... | true | qemu | 111049a4ecefc9cf1ac75c773f4c5c165f27fe63 | void do_blockdev_backup(BlockdevBackup *backup, BlockJobTxn *txn, Error **errp)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!backup->has_speed) {
backup->speed = 0;
}
if (!backup->has_on_source_error) {
... | {
"code": [
" backup_start(backup->job_id, bs, target_bs, backup->speed, backup->sync,",
" backup->on_target_error, BLOCK_JOB_DEFAULT,",
" NULL, NULL, txn, &local_err);",
"void do_blockdev_backup(BlockdevBackup *backup, BlockJobTxn *txn, Error **errp)",
" back... | void FUNC_0(BlockdevBackup *VAR_0, BlockJobTxn *VAR_1, Error **VAR_2)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!VAR_0->has_speed) {
VAR_0->speed = 0;
}
if (!VAR_0->has_on_source_error) {
VAR_0->on_s... | [
"void FUNC_0(BlockdevBackup *VAR_0, BlockJobTxn *VAR_1, Error **VAR_2)\n{",
"BlockDriverState *bs;",
"BlockDriverState *target_bs;",
"Error *local_err = NULL;",
"AioContext *aio_context;",
"if (!VAR_0->has_speed) {",
"VAR_0->speed = 0;",
"}",
"if (!VAR_0->has_on_source_error) {",
"VAR_0->on_source... | [
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,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
18,527 | static int decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
{
GetBitContext gb;
init_get_bits(&gb, buf, size * 8);
adts->objecttype = get_bits(&gb, 5) - 1;
adts->sample_rate_index = get_bits(&gb, 4);
adts->channel_conf = get_bits(&gb, 4);
if (adts->objec... | true | FFmpeg | ecc3a139b8858553e4ec8b3f4dd04510c6c94b03 | static int decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t *buf, int size)
{
GetBitContext gb;
init_get_bits(&gb, buf, size * 8);
adts->objecttype = get_bits(&gb, 5) - 1;
adts->sample_rate_index = get_bits(&gb, 4);
adts->channel_conf = get_bits(&gb, 4);
if (adts->objec... | {
"code": [
" av_log(s, AV_LOG_ERROR, \"MPEG-4 AOT %d is not allowed in ADTS\\n\", adts->objecttype);"
],
"line_no": [
21
]
} | static int FUNC_0(AVFormatContext *VAR_0, ADTSContext *VAR_1, uint8_t *VAR_2, int VAR_3)
{
GetBitContext gb;
init_get_bits(&gb, VAR_2, VAR_3 * 8);
VAR_1->objecttype = get_bits(&gb, 5) - 1;
VAR_1->sample_rate_index = get_bits(&gb, 4);
VAR_1->channel_conf = get_bits(&gb, 4);
if (VAR_1->... | [
"static int FUNC_0(AVFormatContext *VAR_0, ADTSContext *VAR_1, uint8_t *VAR_2, int VAR_3)\n{",
"GetBitContext gb;",
"init_get_bits(&gb, VAR_2, VAR_3 * 8);",
"VAR_1->objecttype = get_bits(&gb, 5) - 1;",
"VAR_1->sample_rate_index = get_bits(&gb, 4);",
"VAR_1->channel_conf = get_bits(&gb, 4);",
"if (VAR_1-... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49... |
18,530 | static int scsi_write_data(SCSIDevice *d, uint32_t tag)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);
SCSIGenericReq *r;
int ret;
DPRINTF("scsi_write_data 0x%x\n", tag);
r = scsi_find_request(s, tag);
if (!r) {
BADF("Bad write tag 0x%x\n", tag);
/* ??? ... | true | qemu | 5c6c0e513600ba57c3e73b7151d3c0664438f7b5 | static int scsi_write_data(SCSIDevice *d, uint32_t tag)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);
SCSIGenericReq *r;
int ret;
DPRINTF("scsi_write_data 0x%x\n", tag);
r = scsi_find_request(s, tag);
if (!r) {
BADF("Bad write tag 0x%x\n", tag);
... | {
"code": [
" r = scsi_find_request(s, tag);",
" r = scsi_find_request(s, tag);",
" if (!r) {",
"static int scsi_write_data(SCSIDevice *d, uint32_t tag)",
" r = scsi_find_request(s, tag);",
" if (!r) {",
" BADF(\"Bad write tag 0x%x\\n\", tag);",
" return 1;... | static int FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);
SCSIGenericReq *r;
int VAR_2;
DPRINTF("FUNC_0 0x%x\n", VAR_1);
r = scsi_find_request(s, VAR_1);
if (!r) {
BADF("Bad write VAR_1 0x%x\n", VAR_1);
... | [
"static int FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)\n{",
"SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);",
"SCSIGenericReq *r;",
"int VAR_2;",
"DPRINTF(\"FUNC_0 0x%x\\n\", VAR_1);",
"r = scsi_find_request(s, VAR_1);",
"if (!r) {",
"BADF(\"Bad write VAR_1 0x%x\\n\", VAR_1);",
"scsi... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
18,531 | static void sd_reset(SDState *sd, BlockDriverState *bdrv)
{
uint64_t size;
uint64_t sect;
if (bdrv) {
bdrv_get_geometry(bdrv, §);
} else {
sect = 0;
}
sect <<= 9;
size = sect + 1;
sect = (size >> (HWBLOCK_SHIFT + SECTOR_SHIFT + WPGROUP_SHIFT)) + 1;
... | true | qemu | 5e37141bbb9796ef139aee902a882ca97d59b84d | static void sd_reset(SDState *sd, BlockDriverState *bdrv)
{
uint64_t size;
uint64_t sect;
if (bdrv) {
bdrv_get_geometry(bdrv, §);
} else {
sect = 0;
}
sect <<= 9;
size = sect + 1;
sect = (size >> (HWBLOCK_SHIFT + SECTOR_SHIFT + WPGROUP_SHIFT)) + 1;
... | {
"code": [
" sect <<= 9;",
" size = sect + 1;"
],
"line_no": [
21,
25
]
} | static void FUNC_0(SDState *VAR_0, BlockDriverState *VAR_1)
{
uint64_t size;
uint64_t sect;
if (VAR_1) {
bdrv_get_geometry(VAR_1, §);
} else {
sect = 0;
}
sect <<= 9;
size = sect + 1;
sect = (size >> (HWBLOCK_SHIFT + SECTOR_SHIFT + WPGROUP_SHIFT)) + 1... | [
"static void FUNC_0(SDState *VAR_0, BlockDriverState *VAR_1)\n{",
"uint64_t size;",
"uint64_t sect;",
"if (VAR_1) {",
"bdrv_get_geometry(VAR_1, §);",
"} else {",
"sect = 0;",
"}",
"sect <<= 9;",
"size = sect + 1;",
"sect = (size >> (HWBLOCK_SHIFT + SECTOR_SHIFT + WPGROUP_SHIFT)) + 1;",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51... |
18,532 | static void arm_idct_put(UINT8 *dest, int line_size, DCTELEM *block)
{
j_rev_dct_ARM (block);
put_pixels_clamped(block, dest, line_size);
}
| false | FFmpeg | 83f238cbf0c038245d2b2dffa5beb0916e7c36d2 | static void arm_idct_put(UINT8 *dest, int line_size, DCTELEM *block)
{
j_rev_dct_ARM (block);
put_pixels_clamped(block, dest, line_size);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(UINT8 *VAR_0, int VAR_1, DCTELEM *VAR_2)
{
j_rev_dct_ARM (VAR_2);
put_pixels_clamped(VAR_2, VAR_0, VAR_1);
}
| [
"static void FUNC_0(UINT8 *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{",
"j_rev_dct_ARM (VAR_2);",
"put_pixels_clamped(VAR_2, VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,533 | int ff_lpc_calc_coefs(DSPContext *s,
const int32_t *samples, int blocksize, int max_order,
int precision, int32_t coefs[][MAX_LPC_ORDER],
int *shift, int use_lpc, int omethod, int max_shift, int zero_shift)
{
double autoc[MAX_LPC_ORDER+1];
... | false | FFmpeg | 56c07e298914d0533a74bb4ba4be4abc8ea6b245 | int ff_lpc_calc_coefs(DSPContext *s,
const int32_t *samples, int blocksize, int max_order,
int precision, int32_t coefs[][MAX_LPC_ORDER],
int *shift, int use_lpc, int omethod, int max_shift, int zero_shift)
{
double autoc[MAX_LPC_ORDER+1];
... | {
"code": [],
"line_no": []
} | int FUNC_0(DSPContext *VAR_0,
const int32_t *VAR_1, int VAR_2, int VAR_3,
int VAR_4, int32_t VAR_5[][MAX_LPC_ORDER],
int *VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10)
{
double VAR_11[MAX_LPC_ORDER+1];
double VAR_12[MAX_LPC_ORDER];
... | [
"int FUNC_0(DSPContext *VAR_0,\nconst int32_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int32_t VAR_5[][MAX_LPC_ORDER],\nint *VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10)\n{",
"double VAR_11[MAX_LPC_ORDER+1];",
"double VAR_12[MAX_LPC_ORDER];",
"double VAR_13[MAX_LPC_ORDER][MAX_LPC_ORDER];",
"int VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
18,534 | static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state,
int is_signed)
{
if (get_rac(c, state + 0))
return 0;
else {
int i, e, a;
e = 0;
while (get_rac(c, state + 1 + FFMIN(e, 9))) // 1..10
... | false | FFmpeg | b2955b6c5aed11026ec5c7164462899a10cdb937 | static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state,
int is_signed)
{
if (get_rac(c, state + 0))
return 0;
else {
int i, e, a;
e = 0;
while (get_rac(c, state + 1 + FFMIN(e, 9)))
e++;
... | {
"code": [],
"line_no": []
} | static inline av_flatten int FUNC_0(RangeCoder *c, uint8_t *state,
int is_signed)
{
if (get_rac(c, state + 0))
return 0;
else {
int VAR_0, VAR_1, VAR_2;
VAR_1 = 0;
while (get_rac(c, state + 1 + FFMIN(VAR_1, 9)))
... | [
"static inline av_flatten int FUNC_0(RangeCoder *c, uint8_t *state,\nint is_signed)\n{",
"if (get_rac(c, state + 0))\nreturn 0;",
"else {",
"int VAR_0, VAR_1, VAR_2;",
"VAR_1 = 0;",
"while (get_rac(c, state + 1 + FFMIN(VAR_1, 9)))\nVAR_1++;",
"VAR_2 = 1;",
"for (VAR_0 = VAR_1 - 1; VAR_0 >= 0; VAR_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
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
18,535 | static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
{
Vp3DecodeContext *s = avctx->priv_data;
int i, n, matrices;
if (s->theora >= 0x030200) {
n = get_bits(&gb, 3);
/* loop filter limit values table */
for (i = 0; i < 64; i++)
s->filter_limi... | false | FFmpeg | e278056fbad7405fc47901faea7de98db003a0fa | static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
{
Vp3DecodeContext *s = avctx->priv_data;
int i, n, matrices;
if (s->theora >= 0x030200) {
n = get_bits(&gb, 3);
for (i = 0; i < 64; i++)
s->filter_limit_values[i] = get_bits(&gb, n);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, GetBitContext VAR_1)
{
Vp3DecodeContext *s = VAR_0->priv_data;
int VAR_2, VAR_3, VAR_4;
if (s->theora >= 0x030200) {
VAR_3 = get_bits(&VAR_1, 3);
for (VAR_2 = 0; VAR_2 < 64; VAR_2++)
s->filter_limit_values[VAR_2] = get_b... | [
"static int FUNC_0(AVCodecContext *VAR_0, GetBitContext VAR_1)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"int VAR_2, VAR_3, VAR_4;",
"if (s->theora >= 0x030200) {",
"VAR_3 = get_bits(&VAR_1, 3);",
"for (VAR_2 = 0; VAR_2 < 64; VAR_2++)",
"s->filter_limit_values[VAR_2] = get_bits(&VAR_1, VAR_3);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25,
27
],
[
29,
31
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
51
],
[
53
],
[
57,
59
],
... |
18,536 | static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
{
int max_frames, first_frames = 0, frames;
const uint8_t *buf, *buf2, *end;
enum AVCodecID codec_id = AV_CODEC_ID_AC3;
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
for(; buf < end; buf++) {
... | false | FFmpeg | eb54efc1e1aafe18d0a8a0c72a78314645bccc83 | static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
{
int max_frames, first_frames = 0, frames;
const uint8_t *buf, *buf2, *end;
enum AVCodecID codec_id = AV_CODEC_ID_AC3;
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
for(; buf < end; buf++) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0, enum AVCodecID VAR_1)
{
int VAR_2, VAR_3 = 0, VAR_4;
const uint8_t *VAR_5, *buf2, *end;
enum AVCodecID VAR_6 = AV_CODEC_ID_AC3;
VAR_2 = 0;
VAR_5 = VAR_0->VAR_5;
end = VAR_5 + VAR_0->buf_size;
for(; VAR_5 < end; VAR_5++) {
if(VAR_5 > ... | [
"static int FUNC_0(AVProbeData *VAR_0, enum AVCodecID VAR_1)\n{",
"int VAR_2, VAR_3 = 0, VAR_4;",
"const uint8_t *VAR_5, *buf2, *end;",
"enum AVCodecID VAR_6 = AV_CODEC_ID_AC3;",
"VAR_2 = 0;",
"VAR_5 = VAR_0->VAR_5;",
"end = VAR_5 + VAR_0->buf_size;",
"for(; VAR_5 < end; VAR_5++) {",
"if(VAR_5 > 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
],
[... |
18,537 | static int segment_end(AVFormatContext *oc, int write_trailer)
{
int ret = 0;
av_write_frame(oc, NULL); /* Flush any buffered data (fragmented mp4) */
if (write_trailer)
av_write_trailer(oc);
avio_close(oc->pb);
return ret;
}
| false | FFmpeg | 9f61abc8111c7c43f49ca012e957a108b9cc7610 | static int segment_end(AVFormatContext *oc, int write_trailer)
{
int ret = 0;
av_write_frame(oc, NULL);
if (write_trailer)
av_write_trailer(oc);
avio_close(oc->pb);
return ret;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)
{
int VAR_2 = 0;
av_write_frame(VAR_0, NULL);
if (VAR_1)
av_write_trailer(VAR_0);
avio_close(VAR_0->pb);
return VAR_2;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{",
"int VAR_2 = 0;",
"av_write_frame(VAR_0, NULL);",
"if (VAR_1)\nav_write_trailer(VAR_0);",
"avio_close(VAR_0->pb);",
"return VAR_2;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
19
],
[
21
]
] |
18,538 | AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
{
AVStream *st;
int i;
if (av_reallocp_array(&s->streams, s->nb_streams + 1,
sizeof(*s->streams)) < 0) {
s->nb_streams = 0;
return NULL;
}
st = av_mallocz(sizeof(AVStream));
... | false | FFmpeg | a0c71a575109f123978e345fa7eb4ac03cd4d3c3 | AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c)
{
AVStream *st;
int i;
if (av_reallocp_array(&s->streams, s->nb_streams + 1,
sizeof(*s->streams)) < 0) {
s->nb_streams = 0;
return NULL;
}
st = av_mallocz(sizeof(AVStream));
... | {
"code": [],
"line_no": []
} | AVStream *FUNC_0(AVFormatContext *s, const AVCodec *c)
{
AVStream *st;
int VAR_0;
if (av_reallocp_array(&s->streams, s->nb_streams + 1,
sizeof(*s->streams)) < 0) {
s->nb_streams = 0;
return NULL;
}
st = av_mallocz(sizeof(AVStream));
if (!st... | [
"AVStream *FUNC_0(AVFormatContext *s, const AVCodec *c)\n{",
"AVStream *st;",
"int VAR_0;",
"if (av_reallocp_array(&s->streams, s->nb_streams + 1,\nsizeof(*s->streams)) < 0) {",
"s->nb_streams = 0;",
"return NULL;",
"}",
"st = av_mallocz(sizeof(AVStream));",
"if (!st)\nreturn NULL;",
"if (!(st->in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
18,539 | static int cdxa_probe(AVProbeData *p)
{
/* check file header */
if (p->buf[0] == 'R' && p->buf[1] == 'I' &&
p->buf[2] == 'F' && p->buf[3] == 'F' &&
p->buf[8] == 'C' && p->buf[9] == 'D' &&
p->buf[10] == 'X' && p->buf[11] == 'A')
return AVPROBE_SCORE_MAX;
else
... | false | FFmpeg | 7dc75e8d4375a36a6a19a050f2bee6bd76c7a912 | static int cdxa_probe(AVProbeData *p)
{
if (p->buf[0] == 'R' && p->buf[1] == 'I' &&
p->buf[2] == 'F' && p->buf[3] == 'F' &&
p->buf[8] == 'C' && p->buf[9] == 'D' &&
p->buf[10] == 'X' && p->buf[11] == 'A')
return AVPROBE_SCORE_MAX;
else
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if (VAR_0->buf[0] == 'R' && VAR_0->buf[1] == 'I' &&
VAR_0->buf[2] == 'F' && VAR_0->buf[3] == 'F' &&
VAR_0->buf[8] == 'C' && VAR_0->buf[9] == 'D' &&
VAR_0->buf[10] == 'X' && VAR_0->buf[11] == 'A')
return AVPROBE_SCORE_MAX;
else
... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if (VAR_0->buf[0] == 'R' && VAR_0->buf[1] == 'I' &&\nVAR_0->buf[2] == 'F' && VAR_0->buf[3] == 'F' &&\nVAR_0->buf[8] == 'C' && VAR_0->buf[9] == 'D' &&\nVAR_0->buf[10] == 'X' && VAR_0->buf[11] == 'A')\nreturn AVPROBE_SCORE_MAX;",
"else\nreturn 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
7,
9,
11,
13,
15
],
[
17,
19
],
[
21
]
] |
18,540 | static int set_string_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst,
int fmt_nb, int ((*get_fmt)(const char *)), const char *desc)
{
int fmt;
if (!val || !strcmp(val, "none")) {
fmt = -1;
} else {
fmt = get_fmt(val);
if (fmt == -1... | false | FFmpeg | 55f046be1193142536198957d1701d18881d3b7a | static int set_string_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst,
int fmt_nb, int ((*get_fmt)(const char *)), const char *desc)
{
int fmt;
if (!val || !strcmp(val, "none")) {
fmt = -1;
} else {
fmt = get_fmt(val);
if (fmt == -1... | {
"code": [],
"line_no": []
} | VAR_6staticVAR_6 VAR_6intVAR_6 VAR_6set_string_fmtVAR_6(VAR_6voidVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6AVOptionVAR_6 *VAR_6VAR_1VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6uint8_tVAR_6 *VAR_6VAR_3VAR_6,
VAR_6intVAR_6 VAR_6VAR_4VAR_6, VAR_6intVAR_6 ((*VAR_6VAR_5VAR_6)(V... | [
"VAR_6staticVAR_6 VAR_6intVAR_6 VAR_6set_string_fmtVAR_6(VAR_6voidVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6AVOptionVAR_6 *VAR_6VAR_1VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6uint8_tVAR_6 *VAR_6VAR_3VAR_6,\nVAR_6intVAR_6 VAR_6VAR_4VAR_6, VAR_6intVAR_6 ((*VAR_6VAR_5VAR_6)(VAR_6constVAR_6 VAR_6c... | [
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
],
[
41
],
[
43
],
[
45
]
] |
18,542 | static int ratecontrol_1pass(SnowContext *s, AVFrame *pict)
{
/* estimate the frame's complexity as a sum of weighted dwt coefs.
* FIXME we know exact mv bits at this point,
* but ratecontrol isn't set up to include them. */
uint32_t coef_sum= 0;
int level, orientation, delta_qlog;
fo... | false | FFmpeg | 5ed0d67da5b032f6e186b6513efeed181955b2ad | static int ratecontrol_1pass(SnowContext *s, AVFrame *pict)
{
uint32_t coef_sum= 0;
int level, orientation, delta_qlog;
for(level=0; level<s->spatial_decomposition_count; level++){
for(orientation=level ? 1 : 0; orientation<4; orientation++){
SubBand *b= &s->plane[0].ba... | {
"code": [],
"line_no": []
} | static int FUNC_0(SnowContext *VAR_0, AVFrame *VAR_1)
{
uint32_t coef_sum= 0;
int VAR_2, VAR_3, VAR_4;
for(VAR_2=0; VAR_2<VAR_0->spatial_decomposition_count; VAR_2++){
for(VAR_3=VAR_2 ? 1 : 0; VAR_3<4; VAR_3++){
SubBand *b= &VAR_0->plane[0].band[VAR_2][VAR_3];
... | [
"static int FUNC_0(SnowContext *VAR_0, AVFrame *VAR_1)\n{",
"uint32_t coef_sum= 0;",
"int VAR_2, VAR_3, VAR_4;",
"for(VAR_2=0; VAR_2<VAR_0->spatial_decomposition_count; VAR_2++){",
"for(VAR_3=VAR_2 ? 1 : 0; VAR_3<4; VAR_3++){",
"SubBand *b= &VAR_0->plane[0].band[VAR_2][VAR_3];",
"DWTELEM *buf= b->buf;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49,
... |
18,544 | static void lsp2lpc(int16_t *lpc)
{
int f1[LPC_ORDER / 2 + 1];
int f2[LPC_ORDER / 2 + 1];
int i, j;
/* Calculate negative cosine */
for (j = 0; j < LPC_ORDER; j++) {
int index = lpc[j] >> 7;
int offset = lpc[j] & 0x7f;
int temp1 = cos_tab[index] << 16;
... | false | FFmpeg | b74b88f30da2389f333a31815d8326d5576d3331 | static void lsp2lpc(int16_t *lpc)
{
int f1[LPC_ORDER / 2 + 1];
int f2[LPC_ORDER / 2 + 1];
int i, j;
for (j = 0; j < LPC_ORDER; j++) {
int index = lpc[j] >> 7;
int offset = lpc[j] & 0x7f;
int temp1 = cos_tab[index] << 16;
int temp2 = (cos_ta... | {
"code": [],
"line_no": []
} | static void FUNC_0(int16_t *VAR_0)
{
int VAR_1[LPC_ORDER / 2 + 1];
int VAR_2[LPC_ORDER / 2 + 1];
int VAR_3, VAR_4;
for (VAR_4 = 0; VAR_4 < LPC_ORDER; VAR_4++) {
int index = VAR_0[VAR_4] >> 7;
int offset = VAR_0[VAR_4] & 0x7f;
int temp1 = cos_tab[index] ... | [
"static void FUNC_0(int16_t *VAR_0)\n{",
"int VAR_1[LPC_ORDER / 2 + 1];",
"int VAR_2[LPC_ORDER / 2 + 1];",
"int VAR_3, VAR_4;",
"for (VAR_4 = 0; VAR_4 < LPC_ORDER; VAR_4++) {",
"int index = VAR_0[VAR_4] >> 7;",
"int offset = VAR_0[VAR_4] & 0x7f;",
"int temp1 = cos_tab[index] << 16;",
"int... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
],
[
69
],
[
71
],
[... |
18,546 | static inline void mix_3f_2r_to_dolby(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] += (output[2][i] - output[4][i] - output[5][i]);
output[2][i] += (output[3][i] + output[4][i] + output[5][i]);
}
... | false | FFmpeg | 486637af8ef29ec215e0e0b7ecd3b5470f0e04e5 | static inline void mix_3f_2r_to_dolby(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] += (output[2][i] - output[4][i] - output[5][i]);
output[2][i] += (output[3][i] + output[4][i] + output[5][i]);
}
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1;
float (*VAR_2)[256] = VAR_0->audio_block.block_output;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] - VAR_2[4][VAR_1] - VAR_2[5][VAR_1]);
VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_... | [
"static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1;",
"float (*VAR_2)[256] = VAR_0->audio_block.block_output;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] - VAR_2[4][VAR_1] - VAR_2[5][VAR_1]);",
"VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_1] + ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
18,547 | static int ffm_read_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
AVStream *st;
AVIOContext *pb = s->pb;
AVCodecContext *codec;
int i, nb_streams;
uint32_t tag;
/* header */
tag = avio_rl32(pb);
if (tag == MKTAG('F', 'F', 'M', '2'))
return ffm2_rea... | false | FFmpeg | 6fa98822eba501a4898fdec5b75acd3026201005 | static int ffm_read_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
AVStream *st;
AVIOContext *pb = s->pb;
AVCodecContext *codec;
int i, nb_streams;
uint32_t tag;
tag = avio_rl32(pb);
if (tag == MKTAG('F', 'F', 'M', '2'))
return ffm2_read_header(s);... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
FFMContext *ffm = VAR_0->priv_data;
AVStream *st;
AVIOContext *pb = VAR_0->pb;
AVCodecContext *codec;
int VAR_1, VAR_2;
uint32_t tag;
tag = avio_rl32(pb);
if (tag == MKTAG('F', 'F', 'M', '2'))
return ffm2_read_header(V... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"FFMContext *ffm = VAR_0->priv_data;",
"AVStream *st;",
"AVIOContext *pb = VAR_0->pb;",
"AVCodecContext *codec;",
"int VAR_1, VAR_2;",
"uint32_t tag;",
"tag = avio_rl32(pb);",
"if (tag == MKTAG('F', 'F', 'M', '2'))\nreturn ffm2_read_header(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
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
... |
18,548 | static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
int i, j, k, m, dir, mode;
int cbp = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = s->mb_x + s->mb_y*s->mb_stride;
const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride;
h->... | false | FFmpeg | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 | static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
int i, j, k, m, dir, mode;
int cbp = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = s->mb_x + s->mb_y*s->mb_stride;
const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride;
h->... | {
"code": [],
"line_no": []
} | static int FUNC_0 (H264Context *VAR_0, unsigned int VAR_1) {
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8 = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) VAR_0;
const int VAR_9 = s->mb_x + s->mb_y*s->mb_stride;
const int VAR_10 = 4*s->mb_x + 4*s->mb_y*... | [
"static int FUNC_0 (H264Context *VAR_0, unsigned int VAR_1) {",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8 = 0;",
"uint32_t vlc;",
"int8_t *top, *left;",
"MpegEncContext *const s = (MpegEncContext *) VAR_0;",
"const int VAR_9 = s->mb_x + s->mb_y*s->mb_stride;",
"const int VAR_10 = 4*s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
18,549 | static void rtsp_send_cmd (AVFormatContext *s,
const char *cmd, RTSPMessageHeader *reply,
unsigned char **content_ptr)
{
rtsp_send_cmd_async(s, cmd, reply, content_ptr);
rtsp_read_reply(s, reply, content_ptr, 0);
}
| false | FFmpeg | c89658008705d949c319df3fa6f400c481ad73e1 | static void rtsp_send_cmd (AVFormatContext *s,
const char *cmd, RTSPMessageHeader *reply,
unsigned char **content_ptr)
{
rtsp_send_cmd_async(s, cmd, reply, content_ptr);
rtsp_read_reply(s, reply, content_ptr, 0);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (AVFormatContext *VAR_0,
const char *VAR_1, RTSPMessageHeader *VAR_2,
unsigned char **VAR_3)
{
rtsp_send_cmd_async(VAR_0, VAR_1, VAR_2, VAR_3);
rtsp_read_reply(VAR_0, VAR_2, VAR_3, 0);
}
| [
"static void FUNC_0 (AVFormatContext *VAR_0,\nconst char *VAR_1, RTSPMessageHeader *VAR_2,\nunsigned char **VAR_3)\n{",
"rtsp_send_cmd_async(VAR_0, VAR_1, VAR_2, VAR_3);",
"rtsp_read_reply(VAR_0, VAR_2, VAR_3, 0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
]
] |
18,550 | static int rtsp_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
RTSPState *rt = s->priv_data;
int ret;
ret = ff_rtsp_connect(s);
if (ret)
return ret;
rt->real_setup_cache = av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache));
i... | true | FFmpeg | c77549c510370eaaa2e2bb1f15d1a30f29e30950 | static int rtsp_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
RTSPState *rt = s->priv_data;
int ret;
ret = ff_rtsp_connect(s);
if (ret)
return ret;
rt->real_setup_cache = av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache));
i... | {
"code": [
" rt->real_setup = rt->real_setup_cache + s->nb_streams * sizeof(*rt->real_setup);"
],
"line_no": [
27
]
} | static int FUNC_0(AVFormatContext *VAR_0,
AVFormatParameters *VAR_1)
{
RTSPState *rt = VAR_0->priv_data;
int VAR_2;
VAR_2 = ff_rtsp_connect(VAR_0);
if (VAR_2)
return VAR_2;
rt->real_setup_cache = av_mallocz(2 * VAR_0->nb_streams * sizeof(*rt->real_setu... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{",
"RTSPState *rt = VAR_0->priv_data;",
"int VAR_2;",
"VAR_2 = ff_rtsp_connect(VAR_0);",
"if (VAR_2)\nreturn VAR_2;",
"rt->real_setup_cache = av_mallocz(2 * VAR_0->nb_streams * sizeof(*rt->real_setup_cache));",
"if (!rt->real_setup... | [
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
],
[
21
],
[
23,
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
]
] |
18,551 | static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v)
{
XHCIInterrupter *intr;
dma_addr_t erdp;
unsigned int dp_idx;
if (v >= xhci->numintrs) {
DPRINTF("intr nr out of range (%d >= %d)\n", v, xhci->numintrs);
return;
}
intr = &xhci->intr[v];
if (intr-... | true | qemu | 898248a32915024a4f01ce4f0c3519509fb703cb | static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v)
{
XHCIInterrupter *intr;
dma_addr_t erdp;
unsigned int dp_idx;
if (v >= xhci->numintrs) {
DPRINTF("intr nr out of range (%d >= %d)\n", v, xhci->numintrs);
return;
}
intr = &xhci->intr[v];
if (intr-... | {
"code": [
" dma_addr_t erdp;",
" unsigned int dp_idx;",
" erdp = xhci_addr64(intr->erdp_low, intr->erdp_high);",
" if (erdp < intr->er_start ||",
" erdp >= (intr->er_start + TRB_SIZE*intr->er_size)) {",
" DPRINTF(\"xhci: ERDP out of bounds: \"DMA_ADDR_FMT\"\\n\", er... | static void FUNC_0(XHCIState *VAR_0, XHCIEvent *VAR_1, int VAR_2)
{
XHCIInterrupter *intr;
dma_addr_t erdp;
unsigned int VAR_3;
if (VAR_2 >= VAR_0->numintrs) {
DPRINTF("intr nr out of range (%d >= %d)\n", VAR_2, VAR_0->numintrs);
return;
}
intr = &VAR_0->intr[VAR_2];
... | [
"static void FUNC_0(XHCIState *VAR_0, XHCIEvent *VAR_1, int VAR_2)\n{",
"XHCIInterrupter *intr;",
"dma_addr_t erdp;",
"unsigned int VAR_3;",
"if (VAR_2 >= VAR_0->numintrs) {",
"DPRINTF(\"intr nr out of range (%d >= %d)\\n\", VAR_2, VAR_0->numintrs);",
"return;",
"}",
"intr = &VAR_0->intr[VAR_2];",
... | [
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
18,552 | static void ehci_advance_state(EHCIState *ehci, int async)
{
EHCIQueue *q = NULL;
int again;
do {
switch(ehci_get_state(ehci, async)) {
case EST_WAITLISTHEAD:
again = ehci_state_waitlisthead(ehci, async);
break;
case EST_FETCHENTRY:
a... | true | qemu | 1ae3f2f178087711f9591350abad133525ba93f2 | static void ehci_advance_state(EHCIState *ehci, int async)
{
EHCIQueue *q = NULL;
int again;
do {
switch(ehci_get_state(ehci, async)) {
case EST_WAITLISTHEAD:
again = ehci_state_waitlisthead(ehci, async);
break;
case EST_FETCHENTRY:
a... | {
"code": [
" if (again < 0) {"
],
"line_no": [
159
]
} | static void FUNC_0(EHCIState *VAR_0, int VAR_1)
{
EHCIQueue *q = NULL;
int VAR_2;
do {
switch(ehci_get_state(VAR_0, VAR_1)) {
case EST_WAITLISTHEAD:
VAR_2 = ehci_state_waitlisthead(VAR_0, VAR_1);
break;
case EST_FETCHENTRY:
VAR_2 = eh... | [
"static void FUNC_0(EHCIState *VAR_0, int VAR_1)\n{",
"EHCIQueue *q = NULL;",
"int VAR_2;",
"do {",
"switch(ehci_get_state(VAR_0, VAR_1)) {",
"case EST_WAITLISTHEAD:\nVAR_2 = ehci_state_waitlisthead(VAR_0, VAR_1);",
"break;",
"case EST_FETCHENTRY:\nVAR_2 = ehci_state_fetchentry(VAR_0, VAR_1);",
"bre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
23,
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51,
53... |
18,553 | int ff_lpc_calc_coefs(LPCContext *s,
const int32_t *samples, int blocksize, int min_order,
int max_order, int precision,
int32_t coefs[][MAX_LPC_ORDER], int *shift,
enum FFLPCType lpc_type, int lpc_passes,
int ... | true | FFmpeg | 894319e010c8db4d47ba0ad830f9677b72d5ece9 | int ff_lpc_calc_coefs(LPCContext *s,
const int32_t *samples, int blocksize, int min_order,
int max_order, int precision,
int32_t coefs[][MAX_LPC_ORDER], int *shift,
enum FFLPCType lpc_type, int lpc_passes,
int ... | {
"code": [],
"line_no": []
} | int FUNC_0(LPCContext *VAR_0,
const int32_t *VAR_1, int VAR_2, int VAR_3,
int VAR_4, int VAR_5,
int32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7,
enum FFLPCType VAR_8, int VAR_9,
int VAR_10, int VAR_11, int VAR_12)
{... | [
"int FUNC_0(LPCContext *VAR_0,\nconst int32_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7,\nenum FFLPCType VAR_8, int VAR_9,\nint VAR_10, int VAR_11, int VAR_12)\n{",
"double VAR_13[MAX_LPC_ORDER+1];",
"double VAR_14[MAX_LPC_ORDER];",
"double VAR_15[MAX_LPC... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
16,
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],
[
25
],
[
... |
18,554 | void do_device_add(Monitor *mon, const QDict *qdict)
{
QemuOpts *opts;
opts = qemu_opts_parse(&qemu_device_opts,
qdict_get_str(qdict, "config"), "driver");
if (opts && !qdev_device_help(opts))
qdev_device_add(opts);
}
| true | qemu | 0f853a386739b22e541e6e65ed60a0cb37713340 | void do_device_add(Monitor *mon, const QDict *qdict)
{
QemuOpts *opts;
opts = qemu_opts_parse(&qemu_device_opts,
qdict_get_str(qdict, "config"), "driver");
if (opts && !qdev_device_help(opts))
qdev_device_add(opts);
}
| {
"code": [
" if (opts && !qdev_device_help(opts))",
" qdev_device_add(opts);"
],
"line_no": [
13,
15
]
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
QemuOpts *opts;
opts = qemu_opts_parse(&qemu_device_opts,
qdict_get_str(VAR_1, "config"), "driver");
if (opts && !qdev_device_help(opts))
qdev_device_add(opts);
}
| [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"QemuOpts *opts;",
"opts = qemu_opts_parse(&qemu_device_opts,\nqdict_get_str(VAR_1, \"config\"), \"driver\");",
"if (opts && !qdev_device_help(opts))\nqdev_device_add(opts);",
"}"
] | [
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
17
]
] |
18,555 | static void update_irq(struct xlx_pic *p)
{
uint32_t i;
/* level triggered interrupt */
if (p->regs[R_MER] & 2) {
p->regs[R_ISR] |= p->irq_pin_state & ~p->c_kind_of_intr;
}
/* Update the pending register. */
p->regs[R_IPR] = p->regs[R_ISR] & p->regs[R_IER];
/* Update ... | true | qemu | 0bc60bd7b34ad6e59b47dbf91179ba9427a85df7 | static void update_irq(struct xlx_pic *p)
{
uint32_t i;
if (p->regs[R_MER] & 2) {
p->regs[R_ISR] |= p->irq_pin_state & ~p->c_kind_of_intr;
}
p->regs[R_IPR] = p->regs[R_ISR] & p->regs[R_IER];
for (i = 0; i < 32; i++) {
if (p->regs[R_IPR] & (1 << i))
... | {
"code": [
" if (p->regs[R_IPR] & (1 << i))"
],
"line_no": [
29
]
} | static void FUNC_0(struct xlx_pic *VAR_0)
{
uint32_t i;
if (VAR_0->regs[R_MER] & 2) {
VAR_0->regs[R_ISR] |= VAR_0->irq_pin_state & ~VAR_0->c_kind_of_intr;
}
VAR_0->regs[R_IPR] = VAR_0->regs[R_ISR] & VAR_0->regs[R_IER];
for (i = 0; i < 32; i++) {
if (VA... | [
"static void FUNC_0(struct xlx_pic *VAR_0)\n{",
"uint32_t i;",
"if (VAR_0->regs[R_MER] & 2) {",
"VAR_0->regs[R_ISR] |= VAR_0->irq_pin_state & ~VAR_0->c_kind_of_intr;",
"}",
"VAR_0->regs[R_IPR] = VAR_0->regs[R_ISR] & VAR_0->regs[R_IER];",
"for (i = 0; i < 32; i++) {",
"if (VAR_0->regs[R_IPR] & (1 << i)... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
21
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
45
]
] |
18,558 | static void init_proc_e500 (CPUPPCState *env, int version)
{
uint32_t tlbncfg[2];
uint64_t ivor_mask = 0x0000000F0000FFFFULL;
#if !defined(CONFIG_USER_ONLY)
int i;
#endif
/* Time base */
gen_tbl(env);
/*
* XXX The e500 doesn't implement IVOR7 and IVOR9, but doesn't
* c... | true | qemu | a496e8eeba51351af136734e475c947a3673dded | static void init_proc_e500 (CPUPPCState *env, int version)
{
uint32_t tlbncfg[2];
uint64_t ivor_mask = 0x0000000F0000FFFFULL;
#if !defined(CONFIG_USER_ONLY)
int i;
#endif
gen_tbl(env);
if (version == fsl_e500mc) {
ivor_mask = 0x000003FE0000FFFFULL;
}
... | {
"code": [
" 0x00000000);"
],
"line_no": [
47
]
} | static void FUNC_0 (CPUPPCState *VAR_0, int VAR_1)
{
uint32_t tlbncfg[2];
uint64_t ivor_mask = 0x0000000F0000FFFFULL;
#if !defined(CONFIG_USER_ONLY)
int VAR_2;
#endif
gen_tbl(VAR_0);
if (VAR_1 == fsl_e500mc) {
ivor_mask = 0x000003FE0000FFFFULL;
}
gen_... | [
"static void FUNC_0 (CPUPPCState *VAR_0, int VAR_1)\n{",
"uint32_t tlbncfg[2];",
"uint64_t ivor_mask = 0x0000000F0000FFFFULL;",
"#if !defined(CONFIG_USER_ONLY)\nint VAR_2;",
"#endif\ngen_tbl(VAR_0);",
"if (VAR_1 == fsl_e500mc) {",
"ivor_mask = 0x000003FE0000FFFFULL;",
"}",
"gen_spr_BookE(VAR_0, ivor... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
19
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43,
45,
47
],
[
51,
53,
55,
57
],
[
61,
63
],
[
65
],
[
67
],
[
69
],
[... |
18,563 | static void interface_get_init_info(QXLInstance *sin, QXLDevInitInfo *info)
{
SimpleSpiceDisplay *ssd = container_of(sin, SimpleSpiceDisplay, qxl);
info->memslot_gen_bits = MEMSLOT_GENERATION_BITS;
info->memslot_id_bits = MEMSLOT_SLOT_BITS;
info->num_memslots = NUM_MEMSLOTS;
info->num_memsl... | true | qemu | ab9509cceabef28071e41bdfa073083859c949a7 | static void interface_get_init_info(QXLInstance *sin, QXLDevInitInfo *info)
{
SimpleSpiceDisplay *ssd = container_of(sin, SimpleSpiceDisplay, qxl);
info->memslot_gen_bits = MEMSLOT_GENERATION_BITS;
info->memslot_id_bits = MEMSLOT_SLOT_BITS;
info->num_memslots = NUM_MEMSLOTS;
info->num_memsl... | {
"code": [
" info->qxl_ram_size = ssd->bufsize;"
],
"line_no": [
19
]
} | static void FUNC_0(QXLInstance *VAR_0, QXLDevInitInfo *VAR_1)
{
SimpleSpiceDisplay *ssd = container_of(VAR_0, SimpleSpiceDisplay, qxl);
VAR_1->memslot_gen_bits = MEMSLOT_GENERATION_BITS;
VAR_1->memslot_id_bits = MEMSLOT_SLOT_BITS;
VAR_1->num_memslots = NUM_MEMSLOTS;
VAR_1->num_memslots_grou... | [
"static void FUNC_0(QXLInstance *VAR_0, QXLDevInitInfo *VAR_1)\n{",
"SimpleSpiceDisplay *ssd = container_of(VAR_0, SimpleSpiceDisplay, qxl);",
"VAR_1->memslot_gen_bits = MEMSLOT_GENERATION_BITS;",
"VAR_1->memslot_id_bits = MEMSLOT_SLOT_BITS;",
"VAR_1->num_memslots = NUM_MEMSLOTS;",
"VAR_1->num_memslots_g... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
18,564 | static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
{
MPCContext *c = s->priv_data;
int tag;
int64_t size, pos, ppos[2];
uint8_t *buf;
int i, t, seekd;
GetBitContext gb;
avio_seek(s->pb, off, SEEK_SET);
mpc8_get_chunk_header(s->pb, &tag, &size);
if(tag != TA... | true | FFmpeg | b61ba262a1e275f8129b7383d70fe48051b47fcf | static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
{
MPCContext *c = s->priv_data;
int tag;
int64_t size, pos, ppos[2];
uint8_t *buf;
int i, t, seekd;
GetBitContext gb;
avio_seek(s->pb, off, SEEK_SET);
mpc8_get_chunk_header(s->pb, &tag, &size);
if(tag != TA... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)
{
MPCContext *c = VAR_0->priv_data;
int VAR_2;
int64_t size, pos, ppos[2];
uint8_t *buf;
int VAR_3, VAR_4, VAR_5;
GetBitContext gb;
avio_seek(VAR_0->pb, VAR_1, SEEK_SET);
mpc8_get_chunk_header(VAR_0->pb, &VAR_2, &size);... | [
"static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)\n{",
"MPCContext *c = VAR_0->priv_data;",
"int VAR_2;",
"int64_t size, pos, ppos[2];",
"uint8_t *buf;",
"int VAR_3, VAR_4, VAR_5;",
"GetBitContext gb;",
"avio_seek(VAR_0->pb, VAR_1, SEEK_SET);",
"mpc8_get_chunk_header(VAR_0->pb, &VAR_2, &siz... | [
0,
0,
0,
0,
0,
0,
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
],
[
33,
36
],
[
38
],
[
40
],
[
42
],
[
44
],
[
48
],
[
50
],
[
52
],
[... |
18,565 | static void esp_do_dma(ESPState *s)
{
uint32_t len;
int to_device;
to_device = (s->ti_size < 0);
len = s->dma_left;
if (s->do_cmd) {
DPRINTF("command len %d + %d\n", s->cmdlen, len);
s->dma_memory_read(s->dma_opaque, &s->cmdbuf[s->cmdlen], len);
s->ti_size = 0;
... | true | qemu | 5c6c0e513600ba57c3e73b7151d3c0664438f7b5 | static void esp_do_dma(ESPState *s)
{
uint32_t len;
int to_device;
to_device = (s->ti_size < 0);
len = s->dma_left;
if (s->do_cmd) {
DPRINTF("command len %d + %d\n", s->cmdlen, len);
s->dma_memory_read(s->dma_opaque, &s->cmdbuf[s->cmdlen], len);
s->ti_size = 0;
... | {
"code": [
" s->current_dev->info->read_data(s->current_dev, 0);",
" s->current_dev->info->write_data(s->current_dev, 0);",
" s->current_dev->info->write_data(s->current_dev, 0);",
" s->current_dev->info->read_data(s->current_dev, 0);"
],
"line_no": [
... | static void FUNC_0(ESPState *VAR_0)
{
uint32_t len;
int VAR_1;
VAR_1 = (VAR_0->ti_size < 0);
len = VAR_0->dma_left;
if (VAR_0->do_cmd) {
DPRINTF("command len %d + %d\n", VAR_0->cmdlen, len);
VAR_0->dma_memory_read(VAR_0->dma_opaque, &VAR_0->cmdbuf[VAR_0->cmdlen], len);
... | [
"static void FUNC_0(ESPState *VAR_0)\n{",
"uint32_t len;",
"int VAR_1;",
"VAR_1 = (VAR_0->ti_size < 0);",
"len = VAR_0->dma_left;",
"if (VAR_0->do_cmd) {",
"DPRINTF(\"command len %d + %d\\n\", VAR_0->cmdlen, len);",
"VAR_0->dma_memory_read(VAR_0->dma_opaque, &VAR_0->cmdbuf[VAR_0->cmdlen], len);",
"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,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
18,566 | void ide_sector_write(IDEState *s)
{
int64_t sector_num;
int n;
s->status = READY_STAT | SEEK_STAT | BUSY_STAT;
sector_num = ide_get_sector(s);
#if defined(DEBUG_IDE)
printf("sector=%" PRId64 "\n", sector_num);
#endif
n = s->nsector;
if (n > s->req_nb_sectors) {
n = s->req_nb_sectors... | true | qemu | 58ac321135af890b503ebe56d0d00e184779918f | void ide_sector_write(IDEState *s)
{
int64_t sector_num;
int n;
s->status = READY_STAT | SEEK_STAT | BUSY_STAT;
sector_num = ide_get_sector(s);
#if defined(DEBUG_IDE)
printf("sector=%" PRId64 "\n", sector_num);
#endif
n = s->nsector;
if (n > s->req_nb_sectors) {
n = s->req_nb_sectors... | {
"code": [],
"line_no": []
} | void FUNC_0(IDEState *VAR_0)
{
int64_t sector_num;
int VAR_1;
VAR_0->status = READY_STAT | SEEK_STAT | BUSY_STAT;
sector_num = ide_get_sector(VAR_0);
#if defined(DEBUG_IDE)
printf("sector=%" PRId64 "\VAR_1", sector_num);
#endif
VAR_1 = VAR_0->nsector;
if (VAR_1 > VAR_0->req_nb_sectors) {
... | [
"void FUNC_0(IDEState *VAR_0)\n{",
"int64_t sector_num;",
"int VAR_1;",
"VAR_0->status = READY_STAT | SEEK_STAT | BUSY_STAT;",
"sector_num = ide_get_sector(VAR_0);",
"#if defined(DEBUG_IDE)\nprintf(\"sector=%\" PRId64 \"\\VAR_1\", sector_num);",
"#endif\nVAR_1 = VAR_0->nsector;",
"if (VAR_1 > VAR_0->r... | [
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
]
] |
18,567 | static void openrisc_sim_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
OpenRISCCPU *cpu = NULL;
MemoryRegion *ram;
int n;
if (!cpu_model) {
cpu_mode... | true | qemu | 4482e05cbbb7e50e476f6a9500cf0b38913bd939 | static void openrisc_sim_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
OpenRISCCPU *cpu = NULL;
MemoryRegion *ram;
int n;
if (!cpu_model) {
cpu_mode... | {
"code": [
" exit(1);",
" if (cpu == NULL) {",
" if (cpu == NULL) {",
" exit(1);",
" if (cpu == NULL) {",
" fprintf(stderr, \"Unable to find CPU definition!\\n\");",
" exit(1);",
" if (cpu == NULL) {",
" ... | static void FUNC_0(MachineState *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
OpenRISCCPU *cpu = NULL;
MemoryRegion *ram;
int VAR_3;
if (!VAR_1) {
VAR_1 = "or1200";
}
for (VAR_3 = 0; VAR_3 <... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"OpenRISCCPU *cpu = NULL;",
"MemoryRegion *ram;",
"int VAR_3;",
"if (!VAR_1) {",
"VAR_1 = \"or1200\";",
"}",
"for (VAR_3 = 0; VAR_3 < ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
... |
18,568 | static int decode_block_coeffs_internal(VP56RangeCoder *c, DCTELEM block[16],
uint8_t probs[16][3][NUM_DCT_TOKENS-1],
int i, uint8_t *token_prob, int16_t qmul[2])
{
goto skip_eob;
do {
int coeff;
if (!vp56_rac... | false | FFmpeg | 6163d880c0ac8b84b45d1f7a94719c5a0a6b5cb9 | static int decode_block_coeffs_internal(VP56RangeCoder *c, DCTELEM block[16],
uint8_t probs[16][3][NUM_DCT_TOKENS-1],
int i, uint8_t *token_prob, int16_t qmul[2])
{
goto skip_eob;
do {
int coeff;
if (!vp56_rac... | {
"code": [],
"line_no": []
} | static int FUNC_0(VP56RangeCoder *VAR_0, DCTELEM VAR_1[16],
uint8_t VAR_2[16][3][NUM_DCT_TOKENS-1],
int VAR_3, uint8_t *VAR_4, int16_t VAR_5[2])
{
goto skip_eob;
do {
int VAR_6;
if (!vp56_rac_get_prob_branchy(... | [
"static int FUNC_0(VP56RangeCoder *VAR_0, DCTELEM VAR_1[16],\nuint8_t VAR_2[16][3][NUM_DCT_TOKENS-1],\nint VAR_3, uint8_t *VAR_4, int16_t VAR_5[2])\n{",
"goto skip_eob;",
"do {",
"int VAR_6;",
"if (!vp56_rac_get_prob_branchy(VAR_0, VAR_4[0]))\nreturn VAR_3;",
"skip_eob:\nif (!vp56_rac_get_prob_branchy(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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
... |
18,569 | yuv2mono_X_c_template(SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrc,
const int16_t **chrVSrc, int chrFilterSize,
const int16_t **alpSrc, uin... | false | FFmpeg | 1e0e193240a8e47a980ac76b8b5af831b17b7928 | yuv2mono_X_c_template(SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrc,
const int16_t **chrVSrc, int chrFilterSize,
const int16_t **alpSrc, uin... | {
"code": [],
"line_no": []
} | FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,
const int16_t **VAR_2, int VAR_3,
const int16_t *VAR_4, const int16_t **VAR_5,
const int16_t **VAR_6, int VAR_7,
const int16_t **VAR_8, uint8_t *VAR_9, int VAR_10,
... | [
"FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t **VAR_2, int VAR_3,\nconst int16_t *VAR_4, const int16_t **VAR_5,\nconst int16_t **VAR_6, int VAR_7,\nconst int16_t **VAR_8, uint8_t *VAR_9, int VAR_10,\nint VAR_11, enum AVPixelFormat VAR_12)\n{",
"const uint8_t * const VAR_13=dither_8x8_220[VAR_11&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
18,570 | int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc= &s->rc_context;
int i;
char *error = NULL;
static const char *const_names[]={
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
"mcVar",
... | false | FFmpeg | 90901860c21468d6e9ae437c2bacb099c7bd3acf | int ff_rate_control_init(MpegEncContext *s)
{
RateControlContext *rcc= &s->rc_context;
int i;
char *error = NULL;
static const char *const_names[]={
"PI",
"E",
"iTex",
"pTex",
"tex",
"mv",
"fCode",
"iCount",
"mcVar",
... | {
"code": [],
"line_no": []
} | VAR_6intVAR_6 VAR_6ff_rate_control_initVAR_6(VAR_6MpegEncContextVAR_6 *VAR_6VAR_0VAR_6)
{
VAR_6RateControlContextVAR_6 *VAR_6rccVAR_6= &VAR_6VAR_0VAR_6->VAR_6rc_contextVAR_6;
VAR_6intVAR_6 VAR_6VAR_7VAR_6;
VAR_6charVAR_6 *VAR_6VAR_2VAR_6 = VAR_6NULLVAR_6;
VAR_6staticVAR_6 VAR_6constVAR_6 VAR_6charV... | [
"VAR_6intVAR_6 VAR_6ff_rate_control_initVAR_6(VAR_6MpegEncContextVAR_6 *VAR_6VAR_0VAR_6)\n{",
"VAR_6RateControlContextVAR_6 *VAR_6rccVAR_6= &VAR_6VAR_0VAR_6->VAR_6rc_contextVAR_6;",
"VAR_6intVAR_6 VAR_6VAR_7VAR_6;",
"VAR_6charVAR_6 *VAR_6VAR_2VAR_6 = VAR_6NULLVAR_6;",
"VAR_6staticVAR_6 VAR_6constVAR_6 VAR_6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
51,
53,
55,
57,
59,
61,
63
],
[
65
],
[
67,
69,
71,
73
... |
18,572 | bool sysbus_has_irq(SysBusDevice *dev, int n)
{
char *prop = g_strdup_printf("%s[%d]", SYSBUS_DEVICE_GPIO_IRQ, n);
ObjectProperty *r;
r = object_property_find(OBJECT(dev), prop, NULL);
return (r != NULL);
} | true | qemu | 84b5d556dc29c06402783e98ee0eaa3369eb48e1 | bool sysbus_has_irq(SysBusDevice *dev, int n)
{
char *prop = g_strdup_printf("%s[%d]", SYSBUS_DEVICE_GPIO_IRQ, n);
ObjectProperty *r;
r = object_property_find(OBJECT(dev), prop, NULL);
return (r != NULL);
} | {
"code": [],
"line_no": []
} | bool FUNC_0(SysBusDevice *dev, int n)
{
char *VAR_0 = g_strdup_printf("%s[%d]", SYSBUS_DEVICE_GPIO_IRQ, n);
ObjectProperty *r;
r = object_property_find(OBJECT(dev), VAR_0, NULL);
return (r != NULL);
} | [
"bool FUNC_0(SysBusDevice *dev, int n)\n{",
"char *VAR_0 = g_strdup_printf(\"%s[%d]\", SYSBUS_DEVICE_GPIO_IRQ, n);",
"ObjectProperty *r;",
"r = object_property_find(OBJECT(dev), VAR_0, NULL);",
"return (r != NULL);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
]
] |
18,573 | static int coroutine_fn bdrv_co_block_status(BlockDriverState *bs,
bool want_zero,
int64_t offset, int64_t bytes,
int64_t *pnum, int64_t *map,
... | true | qemu | d470ad42acfc73c45d3e8ed5311a491160b4c100 | static int coroutine_fn bdrv_co_block_status(BlockDriverState *bs,
bool want_zero,
int64_t offset, int64_t bytes,
int64_t *pnum, int64_t *map,
... | {
"code": [],
"line_no": []
} | static int VAR_0 bdrv_co_block_status(BlockDriverState *bs,
bool want_zero,
int64_t offset, int64_t bytes,
int64_t *pnum, int64_t *map,
... | [
"static int VAR_0 bdrv_co_block_status(BlockDriverState *bs,\nbool want_zero,\nint64_t offset, int64_t bytes,\nint64_t *pnum, int64_t *map,\nBlockDriverState **file)\n{",
"int64_t total_size;",
"int64_t n;",
"int ret;",
"int64_t local_map = 0;",
"BlockDriverState *local_file = NULL;",
"int64_t aligned_o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
18,574 | static void simple_string(void)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{... | true | qemu | aec4b054ea36c53c8b887da99f20010133b84378 | static void simple_string(void)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{... | {
"code": [
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_fro... | static void FUNC_0(void)
{
int VAR_0;
struct {
const char *encoded;
const char *decoded;
} VAR_1[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{}
}... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"struct {",
"const char *encoded;",
"const char *decoded;",
"} VAR_1[] = {",
"{ \"\\\"hello world\\\"\", \"hello world\" },",
"{ \"\\\"the quick brown fox jumped over the fence\\\"\",",
"\"the quick brown fox jumped over the fence\" },",
"{}",
"};",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
18,575 | static void spr_write_tbu(DisasContext *ctx, int sprn, int gprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbu(cpu_env, cpu_gpr[gprn]);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(ctx);
}
}
| true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static void spr_write_tbu(DisasContext *ctx, int sprn, int gprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbu(cpu_env, cpu_gpr[gprn]);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(ctx);
}
}
| {
"code": [
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" ... | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)
{
if (VAR_0->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbu(cpu_env, cpu_gpr[VAR_2]);
if (VAR_0->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(VAR_0);
}
}
| [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{",
"if (VAR_0->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_start();",
"}",
"gen_helper_store_tbu(cpu_env, cpu_gpr[VAR_2]);",
"if (VAR_0->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_end();",
"gen_stop_exception(VAR_0);",
"}",
"}"
] | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,576 | static int decode_block(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr)
{
EXRContext *s = avctx->priv_data;
AVFrame *const p = s->picture;
EXRThreadData *td = &s->thread_data[threadnr];
const uint8_t *channel_buffer[4] = { 0 };
const uint8_t *buf = s->buf;... | true | FFmpeg | 903be5e4f66268273dc6e3c42a7fdeaab32066ef | static int decode_block(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr)
{
EXRContext *s = avctx->priv_data;
AVFrame *const p = s->picture;
EXRThreadData *td = &s->thread_data[threadnr];
const uint8_t *channel_buffer[4] = { 0 };
const uint8_t *buf = s->buf;... | {
"code": [
" if (line_offset > buf_size - 20)",
" if (data_size <= 0 || data_size > buf_size)",
" if (line_offset > buf_size - 8)",
" if (data_size <= 0 || data_size > buf_size)"
],
"line_no": [
53,
75,
141,
75
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int VAR_2, int VAR_3)
{
EXRContext *s = VAR_0->priv_data;
AVFrame *const p = s->picture;
EXRThreadData *td = &s->thread_data[VAR_3];
const uint8_t *VAR_4[4] = { 0 };
const uint8_t *VAR_5 = s->VAR_5;
uint64_t li... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{",
"EXRContext *s = VAR_0->priv_data;",
"AVFrame *const p = s->picture;",
"EXRThreadData *td = &s->thread_data[VAR_3];",
"const uint8_t *VAR_4[4] = { 0 };",
"const uint8_t *VAR_5 = s->VAR_5;",
"uint64_t line_offset, uncompre... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
18,577 | void watchdog_pc_init(PCIBus *pci_bus)
{
if (watchdog)
watchdog->wdt_pc_init(pci_bus);
}
| true | qemu | 09aaa1602f9381c0e0fb539390b1793e51bdfc7b | void watchdog_pc_init(PCIBus *pci_bus)
{
if (watchdog)
watchdog->wdt_pc_init(pci_bus);
}
| {
"code": [
"void watchdog_pc_init(PCIBus *pci_bus)",
" if (watchdog)",
" watchdog->wdt_pc_init(pci_bus);"
],
"line_no": [
1,
5,
7
]
} | void FUNC_0(PCIBus *VAR_0)
{
if (watchdog)
watchdog->wdt_pc_init(VAR_0);
}
| [
"void FUNC_0(PCIBus *VAR_0)\n{",
"if (watchdog)\nwatchdog->wdt_pc_init(VAR_0);",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
18,579 | static void copy_bits(PutBitContext *pb,
const uint8_t *data, int size,
GetBitContext *gb, int nbits)
{
int rmn_bytes, rmn_bits;
rmn_bits = rmn_bytes = get_bits_left(gb);
if (rmn_bits < nbits)
rmn_bits &= 7; rmn_bytes >>= 3;
if ((rmn_bits = FF... | true | FFmpeg | e09ae22ab7d9af7f1cbfd2445fa71ad9e7c28ee3 | static void copy_bits(PutBitContext *pb,
const uint8_t *data, int size,
GetBitContext *gb, int nbits)
{
int rmn_bytes, rmn_bits;
rmn_bits = rmn_bytes = get_bits_left(gb);
if (rmn_bits < nbits)
rmn_bits &= 7; rmn_bytes >>= 3;
if ((rmn_bits = FF... | {
"code": [],
"line_no": []
} | static void FUNC_0(PutBitContext *VAR_0,
const uint8_t *VAR_1, int VAR_2,
GetBitContext *VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
VAR_6 = VAR_5 = get_bits_left(VAR_3);
if (VAR_6 < VAR_4)
VAR_6 &= 7; VAR_5 >>= 3;
if ((VAR_6 = FFMIN(VAR_6, VAR_4)) ... | [
"static void FUNC_0(PutBitContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2,\nGetBitContext *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"VAR_6 = VAR_5 = get_bits_left(VAR_3);",
"if (VAR_6 < VAR_4)\nVAR_6 &= 7; VAR_5 >>= 3;",
"if ((VAR_6 = FFMIN(VAR_6, VAR_4)) > 0)\nput_bits(VAR_0, VAR_6, get_bits(VAR_3, VAR... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15,
20
],
[
22,
24
],
[
26,
28
],
[
30
]
] |
18,581 | int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
{
ASFContext *asf = s->priv_data;
ASFStream *asf_st = 0;
for (;;) {
if(url_feof(pb))
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
|| asf->packet_segments < 1) {
... | false | FFmpeg | 1d0036b01f1860fdead35a6efcdc1d0beb4c3269 | int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
{
ASFContext *asf = s->priv_data;
ASFStream *asf_st = 0;
for (;;) {
if(url_feof(pb))
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
|| asf->packet_segments < 1) {
... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVPacket *VAR_2)
{
ASFContext *asf = VAR_0->priv_data;
ASFStream *asf_st = 0;
for (;;) {
if(url_feof(VAR_1))
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
|| asf->packet_segments < 1)... | [
"int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVPacket *VAR_2)\n{",
"ASFContext *asf = VAR_0->priv_data;",
"ASFStream *asf_st = 0;",
"for (;;) {",
"if(url_feof(VAR_1))\nreturn AVERROR_EOF;",
"if (asf->packet_size_left < FRAME_HEADER_SIZE\n|| asf->packet_segments < 1) {",
"int VAR_3 = asf->pa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,582 | static int xmv_read_close(AVFormatContext *s)
{
XMVDemuxContext *xmv = s->priv_data;
av_free(xmv->audio);
av_free(xmv->audio_tracks);
return 0;
}
| false | FFmpeg | d1016dccdcb10486245e5d7c186cc31af54b2a9c | static int xmv_read_close(AVFormatContext *s)
{
XMVDemuxContext *xmv = s->priv_data;
av_free(xmv->audio);
av_free(xmv->audio_tracks);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
XMVDemuxContext *xmv = VAR_0->priv_data;
av_free(xmv->audio);
av_free(xmv->audio_tracks);
return 0;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"XMVDemuxContext *xmv = VAR_0->priv_data;",
"av_free(xmv->audio);",
"av_free(xmv->audio_tracks);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
18,584 | static void mpeg1_encode_sequence_header(MpegEncContext *s)
{
unsigned int vbv_buffer_size;
unsigned int fps, v;
int i;
uint64_t time_code;
float best_aspect_error= 1E10;
float aspect_ratio= av_q2d(s->avctx->sample_aspect_ratio);
int constraint_parameter_f... | false | FFmpeg | baced9f5986a466c957456f5cf32a722d8b35512 | static void mpeg1_encode_sequence_header(MpegEncContext *s)
{
unsigned int vbv_buffer_size;
unsigned int fps, v;
int i;
uint64_t time_code;
float best_aspect_error= 1E10;
float aspect_ratio= av_q2d(s->avctx->sample_aspect_ratio);
int constraint_parameter_f... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext *VAR_0)
{
unsigned int VAR_1;
unsigned int VAR_2, VAR_3;
int VAR_4;
uint64_t time_code;
float VAR_5= 1E10;
float VAR_6= av_q2d(VAR_0->avctx->sample_aspect_ratio);
int VAR_7;
if(VAR_6==0.0) VAR_6= 1.0;
... | [
"static void FUNC_0(MpegEncContext *VAR_0)\n{",
"unsigned int VAR_1;",
"unsigned int VAR_2, VAR_3;",
"int VAR_4;",
"uint64_t time_code;",
"float VAR_5= 1E10;",
"float VAR_6= av_q2d(VAR_0->avctx->sample_aspect_ratio);",
"int VAR_7;",
"if(VAR_6==0.0) VAR_6= 1.0;",
"if (VAR_0->current_picture.key_fra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
57
... |
18,585 | int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
VP56Context *s = avctx->priv_data;
AVFrame *const p = s->frames[VP56_FRAME_CURRENT];
int remaining_buf_size = avpkt->size;
int av_uninit(al... | false | FFmpeg | feeb8ca56dc08bda19174502a687ae262ea3ee21 | int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
VP56Context *s = avctx->priv_data;
AVFrame *const p = s->frames[VP56_FRAME_CURRENT];
int remaining_buf_size = avpkt->size;
int av_uninit(al... | {
"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;
VP56Context *s = VAR_0->priv_data;
AVFrame *const p = s->frames[VP56_FRAME_CURRENT];
int VAR_5 = VAR_3->size;
int FUNC_1(alpha_offset);
int VAR_6, V... | [
"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;",
"VP56Context *s = VAR_0->priv_data;",
"AVFrame *const p = s->frames[VP56_FRAME_CURRENT];",
"int VAR_5 = VAR_3->size;",
"int FUNC_1(alpha_offset);",
"int VAR_6, VAR_7;",
"if (s->ha... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41,
43
],
[
47
],
[
49
],
[
51
... |
18,586 | static int vfio_get_device(VFIOGroup *group, const char *name,
VFIOPCIDevice *vdev)
{
struct vfio_device_info dev_info = { .argsz = sizeof(dev_info) };
struct vfio_region_info reg_info = { .argsz = sizeof(reg_info) };
struct vfio_irq_info irq_info = { .argsz = sizeof(irq_info... | false | qemu | b47d8efa9f430c332bf96ce6eede169eb48422ad | static int vfio_get_device(VFIOGroup *group, const char *name,
VFIOPCIDevice *vdev)
{
struct vfio_device_info dev_info = { .argsz = sizeof(dev_info) };
struct vfio_region_info reg_info = { .argsz = sizeof(reg_info) };
struct vfio_irq_info irq_info = { .argsz = sizeof(irq_info... | {
"code": [],
"line_no": []
} | static int FUNC_0(VFIOGroup *VAR_0, const char *VAR_1,
VFIOPCIDevice *VAR_2)
{
struct vfio_device_info VAR_3 = { .argsz = sizeof(VAR_3) };
struct vfio_region_info VAR_4 = { .argsz = sizeof(VAR_4) };
struct vfio_irq_info VAR_5 = { .argsz = sizeof(VAR_5) };
int VAR_6, VAR_... | [
"static int FUNC_0(VFIOGroup *VAR_0, const char *VAR_1,\nVFIOPCIDevice *VAR_2)\n{",
"struct vfio_device_info VAR_3 = { .argsz = sizeof(VAR_3) };",
"struct vfio_region_info VAR_4 = { .argsz = sizeof(VAR_4) };",
"struct vfio_irq_info VAR_5 = { .argsz = sizeof(VAR_5) };",
"int VAR_6, VAR_7;",
"VAR_6 = ioctl(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
18,587 | static void css_inject_io_interrupt(SubchDev *sch)
{
S390CPU *cpu = s390_cpu_addr2state(0);
uint8_t isc = (sch->curr_status.pmcw.flags & PMCW_FLAGS_MASK_ISC) >> 11;
trace_css_io_interrupt(sch->cssid, sch->ssid, sch->schid,
sch->curr_status.pmcw.intparm, isc, "");
s390_... | false | qemu | de13d2161473d02ae97ec0f8e4503147554892dd | static void css_inject_io_interrupt(SubchDev *sch)
{
S390CPU *cpu = s390_cpu_addr2state(0);
uint8_t isc = (sch->curr_status.pmcw.flags & PMCW_FLAGS_MASK_ISC) >> 11;
trace_css_io_interrupt(sch->cssid, sch->ssid, sch->schid,
sch->curr_status.pmcw.intparm, isc, "");
s390_... | {
"code": [],
"line_no": []
} | static void FUNC_0(SubchDev *VAR_0)
{
S390CPU *cpu = s390_cpu_addr2state(0);
uint8_t isc = (VAR_0->curr_status.pmcw.flags & PMCW_FLAGS_MASK_ISC) >> 11;
trace_css_io_interrupt(VAR_0->cssid, VAR_0->ssid, VAR_0->schid,
VAR_0->curr_status.pmcw.intparm, isc, "");
s390_io_in... | [
"static void FUNC_0(SubchDev *VAR_0)\n{",
"S390CPU *cpu = s390_cpu_addr2state(0);",
"uint8_t isc = (VAR_0->curr_status.pmcw.flags & PMCW_FLAGS_MASK_ISC) >> 11;",
"trace_css_io_interrupt(VAR_0->cssid, VAR_0->ssid, VAR_0->schid,\nVAR_0->curr_status.pmcw.intparm, isc, \"\");",
"s390_io_interrupt(cpu,\ncss_buil... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17,
19,
21,
23
],
[
25
]
] |
18,588 | static int bonito_initfn(PCIDevice *dev)
{
PCIBonitoState *s = DO_UPCAST(PCIBonitoState, dev, dev);
/* Bonito North Bridge, built on FPGA, VENDOR_ID/DEVICE_ID are "undefined" */
pci_config_set_vendor_id(dev->config, 0xdf53);
pci_config_set_device_id(dev->config, 0x00d5);
pci_config_set_class... | false | qemu | 51387f864c7421aba07b5b445cd7835bbc496a07 | static int bonito_initfn(PCIDevice *dev)
{
PCIBonitoState *s = DO_UPCAST(PCIBonitoState, dev, dev);
pci_config_set_vendor_id(dev->config, 0xdf53);
pci_config_set_device_id(dev->config, 0x00d5);
pci_config_set_class(dev->config, PCI_CLASS_BRIDGE_HOST);
pci_config_set_prog_interface(dev-... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
PCIBonitoState *s = DO_UPCAST(PCIBonitoState, VAR_0, VAR_0);
pci_config_set_vendor_id(VAR_0->config, 0xdf53);
pci_config_set_device_id(VAR_0->config, 0x00d5);
pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);
pci_config_set_prog_interface... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"PCIBonitoState *s = DO_UPCAST(PCIBonitoState, VAR_0, VAR_0);",
"pci_config_set_vendor_id(VAR_0->config, 0xdf53);",
"pci_config_set_device_id(VAR_0->config, 0x00d5);",
"pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);",
"pci_config_set_prog_interface(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
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
41,
43,
45
],
[
47
],
[
49
],
[
51,
53
],
[
59,
61,
63
],
... |
18,589 | static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)
{
int32_t offset;
int rs, rt, rd, sa;
uint32_t op, op1, op2;
int16_t imm;
/* make sure instructions are on a word boundary */
if (ctx->pc & 0x3) {
env->CP0_BadVAddr = ctx->pc;
generate_except... | false | qemu | df6126a7f21a1a032e41b15899ca29777399d5a2 | static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)
{
int32_t offset;
int rs, rt, rd, sa;
uint32_t op, op1, op2;
int16_t imm;
if (ctx->pc & 0x3) {
env->CP0_BadVAddr = ctx->pc;
generate_exception(ctx, EXCP_AdEL);
return;
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int *VAR_2)
{
int32_t offset;
int VAR_3, VAR_4, VAR_5, VAR_6;
uint32_t op, op1, op2;
int16_t imm;
if (VAR_1->pc & 0x3) {
VAR_0->CP0_BadVAddr = VAR_1->pc;
generate_exception(VAR_1, EXCP_AdEL);
retur... | [
"static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int *VAR_2)\n{",
"int32_t offset;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"uint32_t op, op1, op2;",
"int16_t imm;",
"if (VAR_1->pc & 0x3) {",
"VAR_0->CP0_BadVAddr = VAR_1->pc;",
"generate_exception(VAR_1, EXCP_AdEL);",
"return;",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
18,590 | static void stream_complete(BlockJob *job, void *opaque)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
StreamCompleteData *data = opaque;
BlockDriverState *bs = blk_bs(job->blk);
BlockDriverState *base = s->base;
Error *local_err = NULL;
if (!block_job_is_cancelled(&s... | false | qemu | 158c6492571c82c5632070c7ccee36b3dffd3ca9 | static void stream_complete(BlockJob *job, void *opaque)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
StreamCompleteData *data = opaque;
BlockDriverState *bs = blk_bs(job->blk);
BlockDriverState *base = s->base;
Error *local_err = NULL;
if (!block_job_is_cancelled(&s... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockJob *VAR_0, void *VAR_1)
{
StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);
StreamCompleteData *data = VAR_1;
BlockDriverState *bs = blk_bs(VAR_0->blk);
BlockDriverState *base = s->base;
Error *local_err = NULL;
if (!block_job_is_cancelled(&s->com... | [
"static void FUNC_0(BlockJob *VAR_0, void *VAR_1)\n{",
"StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);",
"StreamCompleteData *data = VAR_1;",
"BlockDriverState *bs = blk_bs(VAR_0->blk);",
"BlockDriverState *base = s->base;",
"Error *local_err = NULL;",
"if (!block_job_is_cancelled(&s->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
18,591 | static void img_snapshot(int argc, char **argv)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *filename, *snapshot_name = NULL;
int c, ret;
int action = 0;
qemu_timeval tv;
/* Parse commandline parameters */
for(;;) {
c = getopt(argc, argv, "la:c:d:h");
i... | false | qemu | 153859be1a0928d07ec2dc2b18847e32e180ff43 | static void img_snapshot(int argc, char **argv)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *filename, *snapshot_name = NULL;
int c, ret;
int action = 0;
qemu_timeval tv;
for(;;) {
c = getopt(argc, argv, "la:c:d:h");
if (c == -1)
break;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, char **VAR_1)
{
BlockDriverState *bs;
QEMUSnapshotInfo sn;
char *VAR_2, *VAR_3 = NULL;
int VAR_4, VAR_5;
int VAR_6 = 0;
qemu_timeval tv;
for(;;) {
VAR_4 = getopt(VAR_0, VAR_1, "la:VAR_4:d:h");
if (VAR_4 == -1)
break... | [
"static void FUNC_0(int VAR_0, char **VAR_1)\n{",
"BlockDriverState *bs;",
"QEMUSnapshotInfo sn;",
"char *VAR_2, *VAR_3 = NULL;",
"int VAR_4, VAR_5;",
"int VAR_6 = 0;",
"qemu_timeval tv;",
"for(;;) {",
"VAR_4 = getopt(VAR_0, VAR_1, \"la:VAR_4:d:h\");",
"if (VAR_4 == -1)\nbreak;",
"switch(VAR_4) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
18,592 | static void pack_yuv(TiffEncoderContext * s, uint8_t * dst, int lnum)
{
AVFrame *p = &s->picture;
int i, j, k;
int w = (s->width - 1) / s->subsampling[0] + 1;
uint8_t *pu = &p->data[1][lnum / s->subsampling[1] * p->linesize[1]];
uint8_t *pv = &p->data[2][lnum / s->subsampling[1] * p->linesize[... | false | FFmpeg | d04956344d38ddd77ec61042ce57cd9021491c83 | static void pack_yuv(TiffEncoderContext * s, uint8_t * dst, int lnum)
{
AVFrame *p = &s->picture;
int i, j, k;
int w = (s->width - 1) / s->subsampling[0] + 1;
uint8_t *pu = &p->data[1][lnum / s->subsampling[1] * p->linesize[1]];
uint8_t *pv = &p->data[2][lnum / s->subsampling[1] * p->linesize[... | {
"code": [],
"line_no": []
} | static void FUNC_0(TiffEncoderContext * VAR_0, uint8_t * VAR_1, int VAR_2)
{
AVFrame *p = &VAR_0->picture;
int VAR_3, VAR_4, VAR_5;
int VAR_6 = (VAR_0->width - 1) / VAR_0->subsampling[0] + 1;
uint8_t *pu = &p->data[1][VAR_2 / VAR_0->subsampling[1] * p->linesize[1]];
uint8_t *pv = &p->data[2][V... | [
"static void FUNC_0(TiffEncoderContext * VAR_0, uint8_t * VAR_1, int VAR_2)\n{",
"AVFrame *p = &VAR_0->picture;",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6 = (VAR_0->width - 1) / VAR_0->subsampling[0] + 1;",
"uint8_t *pu = &p->data[1][VAR_2 / VAR_0->subsampling[1] * p->linesize[1]];",
"uint8_t *pv = &p->data... | [
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
]
] |
18,593 | static inline void RENAME(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc,
uint8_t *dest, uint8_t *uDest, ui... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc,
uint8_t *dest, uint8_t *uDest, ui... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc,
uint8_t *dest, uint8_t *uDest, ui... | [
"static inline void FUNC_0(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,\nconst int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, const int16_t **alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, uint8_t *aDest, long dstW, long chrDstW)\n{",
"#if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17,
19,
21
],
[
23
],
[
25,
27
],
[
31,
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45,
47
],
[
51,
53
],
[
55
],
[... |
18,594 | static void do_svc_interrupt(CPUS390XState *env)
{
uint64_t mask, addr;
LowCore *lowcore;
hwaddr len = TARGET_PAGE_SIZE;
lowcore = cpu_physical_memory_map(env->psa, &len, 1);
lowcore->svc_code = cpu_to_be16(env->int_svc_code);
lowcore->svc_ilen = cpu_to_be16(env->int_svc_ilen);
l... | false | qemu | 4782a23b270ecbb9ce0ca6f3f1b60857a09cef0e | static void do_svc_interrupt(CPUS390XState *env)
{
uint64_t mask, addr;
LowCore *lowcore;
hwaddr len = TARGET_PAGE_SIZE;
lowcore = cpu_physical_memory_map(env->psa, &len, 1);
lowcore->svc_code = cpu_to_be16(env->int_svc_code);
lowcore->svc_ilen = cpu_to_be16(env->int_svc_ilen);
l... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUS390XState *VAR_0)
{
uint64_t mask, addr;
LowCore *lowcore;
hwaddr len = TARGET_PAGE_SIZE;
lowcore = cpu_physical_memory_map(VAR_0->psa, &len, 1);
lowcore->svc_code = cpu_to_be16(VAR_0->int_svc_code);
lowcore->svc_ilen = cpu_to_be16(VAR_0->int_svc_ilen);
low... | [
"static void FUNC_0(CPUS390XState *VAR_0)\n{",
"uint64_t mask, addr;",
"LowCore *lowcore;",
"hwaddr len = TARGET_PAGE_SIZE;",
"lowcore = cpu_physical_memory_map(VAR_0->psa, &len, 1);",
"lowcore->svc_code = cpu_to_be16(VAR_0->int_svc_code);",
"lowcore->svc_ilen = cpu_to_be16(VAR_0->int_svc_ilen);",
"lo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
]
] |
18,595 | void qmp_blockdev_snapshot_sync(bool has_device, const char *device,
bool has_node_name, const char *node_name,
const char *snapshot_file,
bool has_snapshot_node_name,
const char *snapshot... | false | qemu | 32bafa8fdd098d52fbf1102d5a5e48d29398c0aa | void qmp_blockdev_snapshot_sync(bool has_device, const char *device,
bool has_node_name, const char *node_name,
const char *snapshot_file,
bool has_snapshot_node_name,
const char *snapshot... | {
"code": [],
"line_no": []
} | void FUNC_0(bool VAR_0, const char *VAR_1,
bool VAR_2, const char *VAR_3,
const char *VAR_4,
bool VAR_5,
const char *VAR_6,
bool VAR_7, const char *VAR_8,
... | [
"void FUNC_0(bool VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nconst char *VAR_4,\nbool VAR_5,\nconst char *VAR_6,\nbool VAR_7, const char *VAR_8,\nbool VAR_9, NewImageMode VAR_10, Error **VAR_11)\n{",
"BlockdevSnapshotSync snapshot = {",
".VAR_0 = VAR_0,\n.VAR_1 = (char *) VAR_1,\n.VAR_2 = VAR_2,... | [
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
]
] |
18,599 | void *address_space_map(AddressSpace *as,
hwaddr addr,
hwaddr *plen,
bool is_write)
{
AddressSpaceDispatch *d = as->dispatch;
hwaddr len = *plen;
hwaddr todo = 0;
int l;
hwaddr page;
MemoryRegionSection *section;
... | false | qemu | 149f54b53b7666a3facd45e86eece60ce7d3b114 | void *address_space_map(AddressSpace *as,
hwaddr addr,
hwaddr *plen,
bool is_write)
{
AddressSpaceDispatch *d = as->dispatch;
hwaddr len = *plen;
hwaddr todo = 0;
int l;
hwaddr page;
MemoryRegionSection *section;
... | {
"code": [],
"line_no": []
} | void *FUNC_0(AddressSpace *VAR_0,
hwaddr VAR_1,
hwaddr *VAR_2,
bool VAR_3)
{
AddressSpaceDispatch *d = VAR_0->dispatch;
hwaddr len = *VAR_2;
hwaddr todo = 0;
int VAR_4;
hwaddr page;
MemoryRegionSection *section;
... | [
"void *FUNC_0(AddressSpace *VAR_0,\nhwaddr VAR_1,\nhwaddr *VAR_2,\nbool VAR_3)\n{",
"AddressSpaceDispatch *d = VAR_0->dispatch;",
"hwaddr len = *VAR_2;",
"hwaddr todo = 0;",
"int VAR_4;",
"hwaddr page;",
"MemoryRegionSection *section;",
"ram_addr_t raddr = RAM_ADDR_MAX;",
"ram_addr_t rlen;",
"void... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
18,600 | static void g364fb_ctrl_write(void *opaque,
target_phys_addr_t addr,
uint64_t val,
unsigned int size)
{
G364State *s = opaque;
trace_g364fb_write(addr, val);
if (addr >= REG_CLR_PAL && addr < REG_CLR_PAL + 0... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void g364fb_ctrl_write(void *opaque,
target_phys_addr_t addr,
uint64_t val,
unsigned int size)
{
G364State *s = opaque;
trace_g364fb_write(addr, val);
if (addr >= REG_CLR_PAL && addr < REG_CLR_PAL + 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0,
target_phys_addr_t VAR_1,
uint64_t VAR_2,
unsigned int VAR_3)
{
G364State *s = VAR_0;
trace_g364fb_write(VAR_1, VAR_2);
if (VAR_1 >= REG_CLR_PAL && VAR_1 < REG_CLR_PAL + 0x800... | [
"static void FUNC_0(void *VAR_0,\ntarget_phys_addr_t VAR_1,\nuint64_t VAR_2,\nunsigned int VAR_3)\n{",
"G364State *s = VAR_0;",
"trace_g364fb_write(VAR_1, VAR_2);",
"if (VAR_1 >= REG_CLR_PAL && VAR_1 < REG_CLR_PAL + 0x800) {",
"int VAR_5 = (VAR_1 - REG_CLR_PAL) >> 3;",
"s->color_palette[VAR_5][0] = (VAR_2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
18,601 | int kvm_arch_insert_hw_breakpoint(target_ulong addr,
target_ulong len, int type)
{
switch (type) {
case GDB_BREAKPOINT_HW:
len = 1;
break;
case GDB_WATCHPOINT_WRITE:
case GDB_WATCHPOINT_ACCESS:
switch (len) {
case 1:
... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | int kvm_arch_insert_hw_breakpoint(target_ulong addr,
target_ulong len, int type)
{
switch (type) {
case GDB_BREAKPOINT_HW:
len = 1;
break;
case GDB_WATCHPOINT_WRITE:
case GDB_WATCHPOINT_ACCESS:
switch (len) {
case 1:
... | {
"code": [],
"line_no": []
} | int FUNC_0(target_ulong VAR_0,
target_ulong VAR_1, int VAR_2)
{
switch (VAR_2) {
case GDB_BREAKPOINT_HW:
VAR_1 = 1;
break;
case GDB_WATCHPOINT_WRITE:
case GDB_WATCHPOINT_ACCESS:
switch (VAR_1) {
case 1:
break;
... | [
"int FUNC_0(target_ulong VAR_0,\ntarget_ulong VAR_1, int VAR_2)\n{",
"switch (VAR_2) {",
"case GDB_BREAKPOINT_HW:\nVAR_1 = 1;",
"break;",
"case GDB_WATCHPOINT_WRITE:\ncase GDB_WATCHPOINT_ACCESS:\nswitch (VAR_1) {",
"case 1:\nbreak;",
"case 2:\ncase 4:\ncase 8:\nif (VAR_0 & (VAR_1 - 1))\nreturn -EINVAL;"... | [
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
],
[
53,
55
... |
18,602 | void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque)
{
int i, found;
WaitObjects *w = &wait_objects;
found = 0;
for (i = 0; i < w->num; i++) {
if (w->events[i] == handle)
found = 1;
if (found) {
w->events[i] = w->events[i + 1];
... | false | qemu | d3b12f5dec4b27ebab58fb5797cb67bacced773b | void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque)
{
int i, found;
WaitObjects *w = &wait_objects;
found = 0;
for (i = 0; i < w->num; i++) {
if (w->events[i] == handle)
found = 1;
if (found) {
w->events[i] = w->events[i + 1];
... | {
"code": [],
"line_no": []
} | void FUNC_0(HANDLE VAR_0, WaitObjectFunc *VAR_1, void *VAR_2)
{
int VAR_3, VAR_4;
WaitObjects *w = &wait_objects;
VAR_4 = 0;
for (VAR_3 = 0; VAR_3 < w->num; VAR_3++) {
if (w->events[VAR_3] == VAR_0)
VAR_4 = 1;
if (VAR_4) {
w->events[VAR_3] = w->events[V... | [
"void FUNC_0(HANDLE VAR_0, WaitObjectFunc *VAR_1, void *VAR_2)\n{",
"int VAR_3, VAR_4;",
"WaitObjects *w = &wait_objects;",
"VAR_4 = 0;",
"for (VAR_3 = 0; VAR_3 < w->num; VAR_3++) {",
"if (w->events[VAR_3] == VAR_0)\nVAR_4 = 1;",
"if (VAR_4) {",
"w->events[VAR_3] = w->events[VAR_3 + 1];",
"w->VAR_1[... | [
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
]
] |
18,604 | static void vc1_interp_mc(VC1Context *v)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
H264ChromaContext *h264chroma = &v->h264chroma;
uint8_t *srcY, *srcU, *srcV;
int dxy, mx, my, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y;
int off, off_uv;
int v_edge_pos = s->v_edge_pos... | false | FFmpeg | 0d194ee51ed477f843900e657a7edbcbecdffa42 | static void vc1_interp_mc(VC1Context *v)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
H264ChromaContext *h264chroma = &v->h264chroma;
uint8_t *srcY, *srcU, *srcV;
int dxy, mx, my, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y;
int off, off_uv;
int v_edge_pos = s->v_edge_pos... | {
"code": [],
"line_no": []
} | static void FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
DSPContext *dsp = &VAR_0->s.dsp;
H264ChromaContext *h264chroma = &VAR_0->h264chroma;
uint8_t *srcY, *srcU, *srcV;
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11;
int VAR_12 =... | [
"static void FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"DSPContext *dsp = &VAR_0->s.dsp;",
"H264ChromaContext *h264chroma = &VAR_0->h264chroma;",
"uint8_t *srcY, *srcU, *srcV;",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11;",
"int VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,605 | static void s390_msi_ctrl_write(void *opaque, hwaddr addr, uint64_t data,
unsigned int size)
{
S390PCIBusDevice *pbdev;
uint32_t io_int_word;
uint32_t fid = data >> ZPCI_MSI_VEC_BITS;
uint32_t vec = data & ZPCI_MSI_VEC_MASK;
uint64_t ind_bit;
uint32_t sum_... | false | qemu | 5d1abf234462d13bef3617cc2c55b6815703ddf2 | static void s390_msi_ctrl_write(void *opaque, hwaddr addr, uint64_t data,
unsigned int size)
{
S390PCIBusDevice *pbdev;
uint32_t io_int_word;
uint32_t fid = data >> ZPCI_MSI_VEC_BITS;
uint32_t vec = data & ZPCI_MSI_VEC_MASK;
uint64_t ind_bit;
uint32_t sum_... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,
unsigned int VAR_3)
{
S390PCIBusDevice *pbdev;
uint32_t io_int_word;
uint32_t fid = VAR_2 >> ZPCI_MSI_VEC_BITS;
uint32_t vec = VAR_2 & ZPCI_MSI_VEC_MASK;
uint64_t ind_bit;
uint32_t sum_bit;
... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned int VAR_3)\n{",
"S390PCIBusDevice *pbdev;",
"uint32_t io_int_word;",
"uint32_t fid = VAR_2 >> ZPCI_MSI_VEC_BITS;",
"uint32_t vec = VAR_2 & ZPCI_MSI_VEC_MASK;",
"uint64_t ind_bit;",
"uint32_t sum_bit;",
"uint32_t e = 0;",
"DPRIN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
18,606 | static int qcow2_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc,
QEMUOptionParameter *options)
{
/* Calculate cluster_bits */
int... | false | qemu | 6744cbab8cd63b7ce72b3eee4f0055007acf0798 | static int qcow2_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc,
QEMUOptionParameter *options)
{
int cluster_bits;
cluster_... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, int64_t VAR_1,
const char *VAR_2, const char *VAR_3,
int VAR_4, size_t VAR_5, int VAR_6,
QEMUOptionParameter *VAR_7)
{
int VAR_8;
VAR_8 = ffs(VAR_5) - 1;
if (VAR_8 < MIN_CLUSTER_BITS ... | [
"static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, int VAR_6,\nQEMUOptionParameter *VAR_7)\n{",
"int VAR_8;",
"VAR_8 = ffs(VAR_5) - 1;",
"if (VAR_8 < MIN_CLUSTER_BITS || VAR_8 > MAX_CLUSTER_BITS ||\n(1 << VAR_8) != VAR_5)\n{",
"error_report(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
13
],
[
15
],
[
17,
19,
21
],
[
23,
25,
27
],
[
29
],
[
31
],
[
59
],
[
61
],
[
63
],
[
65
],
[
69
],
[
71
],
[
73
],
[
75
],
[
79
],
[... |
18,607 | static int virtio_mmio_set_guest_notifier(DeviceState *d, int n, bool assign,
bool with_irqfd)
{
VirtIOMMIOProxy *proxy = VIRTIO_MMIO(d);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);
VirtQ... | false | qemu | 2858bc68701e282c404ed04d65d4f065e4b40e52 | static int virtio_mmio_set_guest_notifier(DeviceState *d, int n, bool assign,
bool with_irqfd)
{
VirtIOMMIOProxy *proxy = VIRTIO_MMIO(d);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);
VirtQ... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0, int VAR_1, bool VAR_2,
bool VAR_3)
{
VirtIOMMIOProxy *proxy = VIRTIO_MMIO(VAR_0);
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);
VirtQueue *vq = virtio_... | [
"static int FUNC_0(DeviceState *VAR_0, int VAR_1, bool VAR_2,\nbool VAR_3)\n{",
"VirtIOMMIOProxy *proxy = VIRTIO_MMIO(VAR_0);",
"VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);",
"VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);",
"VirtQueue *vq = virtio_get_queue(vdev, VAR_1);",
"EventNot... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[... |
18,608 | static int vhdx_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVVHDXState *s = bs->opaque;
int ret = 0;
uint32_t i;
uint64_t signature;
uint32_t data_blocks_cnt, bitmap_blocks_cnt;
s->bat = NULL;
s->first_visible_write = true;
... | false | qemu | 0a43a1b5d7c33208120eeb2d98ebb9ab15dc2c87 | static int vhdx_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVVHDXState *s = bs->opaque;
int ret = 0;
uint32_t i;
uint64_t signature;
uint32_t data_blocks_cnt, bitmap_blocks_cnt;
s->bat = NULL;
s->first_visible_write = true;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVVHDXState *s = VAR_0->opaque;
int VAR_4 = 0;
uint32_t i;
uint64_t signature;
uint32_t data_blocks_cnt, bitmap_blocks_cnt;
s->bat = NULL;
s->first_visible_write = true;
... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVVHDXState *s = VAR_0->opaque;",
"int VAR_4 = 0;",
"uint32_t i;",
"uint64_t signature;",
"uint32_t data_blocks_cnt, bitmap_blocks_cnt;",
"s->bat = NULL;",
"s->first_visible_write = true;",
"qemu_co_mutex_in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
57
],
[
61
],
[... |
18,609 | void pci_register_bar(PCIDevice *pci_dev, int region_num,
pcibus_t size, int type,
PCIMapIORegionFunc *map_func)
{
PCIIORegion *r;
uint32_t addr;
uint64_t wmask;
if ((unsigned int)region_num >= PCI_NUM_REGIONS)
return;
if (... | false | qemu | 2bbb9c2f7f36d0457cda5f27d7e4422219b3acd8 | void pci_register_bar(PCIDevice *pci_dev, int region_num,
pcibus_t size, int type,
PCIMapIORegionFunc *map_func)
{
PCIIORegion *r;
uint32_t addr;
uint64_t wmask;
if ((unsigned int)region_num >= PCI_NUM_REGIONS)
return;
if (... | {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0, int VAR_1,
pcibus_t VAR_2, int VAR_3,
PCIMapIORegionFunc *VAR_4)
{
PCIIORegion *r;
uint32_t addr;
uint64_t wmask;
if ((unsigned int)VAR_1 >= PCI_NUM_REGIONS)
return;
if (VAR_2 & (VAR_2-1)) {
... | [
"void FUNC_0(PCIDevice *VAR_0, int VAR_1,\npcibus_t VAR_2, int VAR_3,\nPCIMapIORegionFunc *VAR_4)\n{",
"PCIIORegion *r;",
"uint32_t addr;",
"uint64_t wmask;",
"if ((unsigned int)VAR_1 >= PCI_NUM_REGIONS)\nreturn;",
"if (VAR_2 & (VAR_2-1)) {",
"fprintf(stderr, \"ERROR: PCI region VAR_2 must be pow2 \"\n\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
... |
18,610 | static void loadvm_postcopy_handle_run_bh(void *opaque)
{
Error *local_err = NULL;
HandleRunBhData *data = opaque;
/* TODO we should move all of this lot into postcopy_ram.c or a shared code
* in migration.c
*/
cpu_synchronize_all_post_init();
qemu_announce_self();
/* Ma... | false | qemu | 4417ab7adf1613799054be5afedf810fc2524ee8 | static void loadvm_postcopy_handle_run_bh(void *opaque)
{
Error *local_err = NULL;
HandleRunBhData *data = opaque;
cpu_synchronize_all_post_init();
qemu_announce_self();
bdrv_invalidate_cache_all(&local_err);
if (!local_err) {
blk_resume_after_migration(&l... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
Error *local_err = NULL;
HandleRunBhData *data = VAR_0;
cpu_synchronize_all_post_init();
qemu_announce_self();
bdrv_invalidate_cache_all(&local_err);
if (!local_err) {
blk_resume_after_migration(&local_err);
}
if... | [
"static void FUNC_0(void *VAR_0)\n{",
"Error *local_err = NULL;",
"HandleRunBhData *data = VAR_0;",
"cpu_synchronize_all_post_init();",
"qemu_announce_self();",
"bdrv_invalidate_cache_all(&local_err);",
"if (!local_err) {",
"blk_resume_after_migration(&local_err);",
"}",
"if (local_err) {",
"err... | [
0,
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
],
[
17
],
[
21
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[
59
],
[
63
],
[
65... |
18,611 | BlockAIOCB *bdrv_aio_writev(BlockDriverState *bs, int64_t sector_num,
QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_writev(bs, sector_num, nb_sectors, opaque);
return bdrv_co_aio_rw_vector(bs, sector_num... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | BlockAIOCB *bdrv_aio_writev(BlockDriverState *bs, int64_t sector_num,
QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_writev(bs, sector_num, nb_sectors, opaque);
return bdrv_co_aio_rw_vector(bs, sector_num... | {
"code": [],
"line_no": []
} | BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,
QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque)
{
trace_bdrv_aio_writev(bs, sector_num, nb_sectors, opaque);
return bdrv_co_aio_rw_vector(bs, sector_num, qiov, n... | [
"BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,\nQEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque)\n{",
"trace_bdrv_aio_writev(bs, sector_num, nb_sectors, opaque);",
"return bdrv_co_aio_rw_vector(bs, sector_num, qiov, nb_sectors, 0,\ncb, opaque, true);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15
],
[
17
]
] |
18,612 | void HELPER(srstu)(CPUS390XState *env, uint32_t r1, uint32_t r2)
{
uintptr_t ra = GETPC();
uint32_t len;
uint16_t v, c = env->regs[0];
uint64_t end, str, adj_end;
/* Bits 32-47 of R0 must be zero. */
if (env->regs[0] & 0xffff0000u) {
cpu_restore_state(ENV_GET_CPU(env), ra);
... | false | qemu | 8d2f850a5ab7579a852f23b28273940a47dfd7ff | void HELPER(srstu)(CPUS390XState *env, uint32_t r1, uint32_t r2)
{
uintptr_t ra = GETPC();
uint32_t len;
uint16_t v, c = env->regs[0];
uint64_t end, str, adj_end;
if (env->regs[0] & 0xffff0000u) {
cpu_restore_state(ENV_GET_CPU(env), ra);
program_interrupt(env, PGM_SPE... | {
"code": [],
"line_no": []
} | void FUNC_0(srstu)(CPUS390XState *env, uint32_t r1, uint32_t r2)
{
uintptr_t ra = GETPC();
uint32_t len;
uint16_t v, c = env->regs[0];
uint64_t end, str, adj_end;
if (env->regs[0] & 0xffff0000u) {
cpu_restore_state(ENV_GET_CPU(env), ra);
program_interrupt(env, PGM_SPE... | [
"void FUNC_0(srstu)(CPUS390XState *env, uint32_t r1, uint32_t r2)\n{",
"uintptr_t ra = GETPC();",
"uint32_t len;",
"uint16_t v, c = env->regs[0];",
"uint64_t end, str, adj_end;",
"if (env->regs[0] & 0xffff0000u) {",
"cpu_restore_state(ENV_GET_CPU(env), ra);",
"program_interrupt(env, PGM_SPECIFICATION,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
35
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
61
... |
18,616 | static void scsi_aio_complete(void *opaque, int ret)
{
SCSIDiskReq *r = (SCSIDiskReq *)opaque;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
assert(r->req.aiocb != NULL);
r->req.aiocb = NULL;
block_acct_done(bdrv_get_stats(s->qdev.conf.bs), &r->acct);
if (r->req.io_canc... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_aio_complete(void *opaque, int ret)
{
SCSIDiskReq *r = (SCSIDiskReq *)opaque;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
assert(r->req.aiocb != NULL);
r->req.aiocb = NULL;
block_acct_done(bdrv_get_stats(s->qdev.conf.bs), &r->acct);
if (r->req.io_canc... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
SCSIDiskReq *r = (SCSIDiskReq *)VAR_0;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
assert(r->req.aiocb != NULL);
r->req.aiocb = NULL;
block_acct_done(bdrv_get_stats(s->qdev.conf.bs), &r->acct);
if (r->req.io_canceled) {
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"SCSIDiskReq *r = (SCSIDiskReq *)VAR_0;",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);",
"assert(r->req.aiocb != NULL);",
"r->req.aiocb = NULL;",
"block_acct_done(bdrv_get_stats(s->qdev.conf.bs), &r->acct);",
"if (r->req.io_canceled) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43,
45
],
[
47
]
] |
18,617 | static void set_mem_path(Object *o, const char *str, Error **errp)
{
HostMemoryBackend *backend = MEMORY_BACKEND(o);
HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(o);
if (memory_region_size(&backend->mr)) {
error_setg(errp, "cannot change property value");
return;
}
if (f... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void set_mem_path(Object *o, const char *str, Error **errp)
{
HostMemoryBackend *backend = MEMORY_BACKEND(o);
HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(o);
if (memory_region_size(&backend->mr)) {
error_setg(errp, "cannot change property value");
return;
}
if (f... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)
{
HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);
HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(VAR_0);
if (memory_region_size(&backend->mr)) {
error_setg(VAR_2, "cannot change property value");
return;
}
... | [
"static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);",
"HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(VAR_0);",
"if (memory_region_size(&backend->mr)) {",
"error_setg(VAR_2, \"cannot change property value\");",
"return;",
"}",
... | [
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
]
] |
18,618 | static always_inline void gen_store_mem (DisasContext *ctx,
void (*tcg_gen_qemu_store)(TCGv t0, TCGv t1, int flags),
int ra, int rb, int32_t disp16,
int fp, int clear, int local)
{
TCGv ad... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static always_inline void gen_store_mem (DisasContext *ctx,
void (*tcg_gen_qemu_store)(TCGv t0, TCGv t1, int flags),
int ra, int rb, int32_t disp16,
int fp, int clear, int local)
{
TCGv ad... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0 (DisasContext *ctx,
void (*tcg_gen_qemu_store)(TCGv t0, TCGv t1, int flags),
int ra, int rb, int32_t disp16,
int fp, int clear, int local)
{
TCGv addr;
... | [
"static always_inline void FUNC_0 (DisasContext *ctx,\nvoid (*tcg_gen_qemu_store)(TCGv t0, TCGv t1, int flags),\nint ra, int rb, int32_t disp16,\nint fp, int clear, int local)\n{",
"TCGv addr;",
"if (local)\naddr = tcg_temp_local_new(TCG_TYPE_I64);",
"else\naddr = tcg_temp_new(TCG_TYPE_I64);",
"if (rb != 31... | [
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
],
[... |
18,622 | static int print_uint16(DeviceState *dev, Property *prop, char *dest, size_t len)
{
uint16_t *ptr = qdev_get_prop_ptr(dev, prop);
return snprintf(dest, len, "%" PRIu16, *ptr);
}
| true | qemu | 5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde | static int print_uint16(DeviceState *dev, Property *prop, char *dest, size_t len)
{
uint16_t *ptr = qdev_get_prop_ptr(dev, prop);
return snprintf(dest, len, "%" PRIu16, *ptr);
}
| {
"code": [
" uint16_t *ptr = qdev_get_prop_ptr(dev, prop);",
"static int print_uint16(DeviceState *dev, Property *prop, char *dest, size_t len)",
" uint16_t *ptr = qdev_get_prop_ptr(dev, prop);",
" return snprintf(dest, len, \"%\" PRIu16, *ptr);"
],
"line_no": [
5,
1,
5,
... | static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)
{
uint16_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);
return snprintf(VAR_2, VAR_3, "%" PRIu16, *ptr);
}
| [
"static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{",
"uint16_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);",
"return snprintf(VAR_2, VAR_3, \"%\" PRIu16, *ptr);",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,623 | static int get_sot(Jpeg2000DecoderContext *s, int n)
{
Jpeg2000TilePart *tp;
uint16_t Isot;
uint32_t Psot;
uint8_t TPsot;
if (bytestream2_get_bytes_left(&s->g) < 8)
Isot = bytestream2_get_be16u(&s->g); // Isot
if (Isot) {
avpriv_request_sample(s->avctx, "Support for more than ... | true | FFmpeg | d3cb302b88503c3111e25add196622110c056188 | static int get_sot(Jpeg2000DecoderContext *s, int n)
{
Jpeg2000TilePart *tp;
uint16_t Isot;
uint32_t Psot;
uint8_t TPsot;
if (bytestream2_get_bytes_left(&s->g) < 8)
Isot = bytestream2_get_be16u(&s->g);
if (Isot) {
avpriv_request_sample(s->avctx, "Support for more than one til... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)
{
Jpeg2000TilePart *tp;
uint16_t Isot;
uint32_t Psot;
uint8_t TPsot;
if (bytestream2_get_bytes_left(&VAR_0->g) < 8)
Isot = bytestream2_get_be16u(&VAR_0->g);
if (Isot) {
avpriv_request_sample(VAR_0->avctx, "Support fo... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)\n{",
"Jpeg2000TilePart *tp;",
"uint16_t Isot;",
"uint32_t Psot;",
"uint8_t TPsot;",
"if (bytestream2_get_bytes_left(&VAR_0->g) < 8)\nIsot = bytestream2_get_be16u(&VAR_0->g);",
"if (Isot) {",
"avpriv_request_sample(VAR_0->avctx, \"Support for... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7,
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
18,625 | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
{
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
/* make sure to only copy if it's a plain copy ROP */
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*s->cirrus_rop == cirru... | true | qemu | 50628d3479e4f9aa97e323506856e394fe7ad7a6 | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
{
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, height... | {
"code": [
" if (notify)",
" graphic_hw_update(s->vga.con);",
" qemu_console_copy(s->vga.con,",
"\t\t\t sx, sy, dx, dy,",
"\t\t\t s->cirrus_blt_width / depth,",
"\t\t\t s->cirrus_blt_height);"
],
"line_no": [
97,
99,
115,
117,
119,
121
]
} | static int FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5 = 0, VAR_6 = 0;
int VAR_7 = 0, VAR_8 = 0;
int VAR_9 = 0;
int VAR_10 = 0;
if (*VAR_0->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*VAR_0->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
... | [
"static int FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5 = 0, VAR_6 = 0;",
"int VAR_7 = 0, VAR_8 = 0;",
"int VAR_9 = 0;",
"int VAR_10 = 0;",
"if (*VAR_0->cirrus_rop == cirrus_bitblt_rop_fwd_src ||\n*VAR_0->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {",
"int 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,
1,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17,
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
53
],
[
63
],
[
65
],
[... |
18,626 | static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref)
{
AResampleContext *aresample = inlink->dst->priv;
const int n_in = insamplesref->audio->nb_samples;
int n_out = FFMAX(n_in * aresample->ratio * 2, 1);
AVFilterLink *const outlink = inlink->dst->outputs[0];
AVFil... | true | FFmpeg | 014058abeaa9da2c107a6348178431ea8c9b0bab | static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref)
{
AResampleContext *aresample = inlink->dst->priv;
const int n_in = insamplesref->audio->nb_samples;
int n_out = FFMAX(n_in * aresample->ratio * 2, 1);
AVFilterLink *const outlink = inlink->dst->outputs[0];
AVFil... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{
AResampleContext *aresample = VAR_0->dst->priv;
const int VAR_2 = VAR_1->audio->nb_samples;
int VAR_3 = FFMAX(VAR_2 * aresample->ratio * 2, 1);
AVFilterLink *const outlink = VAR_0->dst->outputs[0];
AVFilterBufferRef *outsample... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{",
"AResampleContext *aresample = VAR_0->dst->priv;",
"const int VAR_2 = VAR_1->audio->nb_samples;",
"int VAR_3 = FFMAX(VAR_2 * aresample->ratio * 2, 1);",
"AVFilterLink *const outlink = VAR_0->dst->outputs[0];",
"AVFilterBufferRef... | [
0,
0,
0,
0,
0,
0,
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
],... |
18,628 | static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order)
{
int sum, i, j;
int coeff_prec, qlevel;
int coeffs[pred_order];
// av_log(s->avctx, AV_LOG_DEBUG, " SUBFRAME LPC\n");
/* warm up samples */
// av_log(s->avctx, AV_LOG_DEBUG, " warm up samples... | false | FFmpeg | 9d656110966fbdde0fd1d2e685f3ed3633ba3596 | static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order)
{
int sum, i, j;
int coeff_prec, qlevel;
int coeffs[pred_order];
for (i = 0; i < pred_order; i++)
{
s->decoded[channel][i] = get_sbits(&s->gb, s->curr_bps);
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5;
int VAR_6, VAR_7;
int VAR_8[VAR_2];
for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++)
{
VAR_0->decoded[VAR_1][VAR_4] = get_sbits(&VAR_0->gb, VAR_0->curr_bps);
}
... | [
"static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8[VAR_2];",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++)",
"{",
"VAR_0->decoded[VAR_1][VAR_4] = get_sbits(&VAR_0->gb, VAR_0->curr_bps);",
"}",
"VAR_6 = get_bits(&VAR_0->gb, 4) + 1;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
18,630 | static int compare_floats(const float *a, const float *b, int len,
float max_diff)
{
int i;
for (i = 0; i < len; i++) {
if (fabsf(a[i] - b[i]) > max_diff) {
av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n",
i, a[i], b[i], a[i] ... | false | FFmpeg | e53c9065ca08a9153ecc73a6a8940bcc6d667e58 | static int compare_floats(const float *a, const float *b, int len,
float max_diff)
{
int i;
for (i = 0; i < len; i++) {
if (fabsf(a[i] - b[i]) > max_diff) {
av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n",
i, a[i], b[i], a[i] ... | {
"code": [],
"line_no": []
} | static int FUNC_0(const float *VAR_0, const float *VAR_1, int VAR_2,
float VAR_3)
{
int VAR_4;
for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {
if (fabsf(VAR_0[VAR_4] - VAR_1[VAR_4]) > VAR_3) {
av_log(NULL, AV_LOG_ERROR, "%d: %- .12f - %- .12f = % .12g\n",
... | [
"static int FUNC_0(const float *VAR_0, const float *VAR_1, int VAR_2,\nfloat VAR_3)\n{",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {",
"if (fabsf(VAR_0[VAR_4] - VAR_1[VAR_4]) > VAR_3) {",
"av_log(NULL, AV_LOG_ERROR, \"%d: %- .12f - %- .12f = % .12g\\n\",\nVAR_4, VAR_0[VAR_4], VAR_1[VAR_4], VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
18,631 | static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MTVDemuxContext *mtv = s->priv_data;
ByteIOContext *pb = s->pb;
int ret;
#if !HAVE_BIGENDIAN
int i;
#endif
if((url_ftell(pb) - s->data_offset + mtv->img_segment_size) % mtv->full_segment_size)
{
url_fskip(pb, MTV... | true | FFmpeg | 5eef7bcd09ab1f73df6c70923dfa3f4ccd5b4190 | static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MTVDemuxContext *mtv = s->priv_data;
ByteIOContext *pb = s->pb;
int ret;
#if !HAVE_BIGENDIAN
int i;
#endif
if((url_ftell(pb) - s->data_offset + mtv->img_segment_size) % mtv->full_segment_size)
{
url_fskip(pb, MTV... | {
"code": [
" if(ret != MTV_ASUBCHUNK_DATA_SIZE)",
" return AVERROR(EIO);",
" if(ret != mtv->img_segment_size)",
" return AVERROR(EIO);"
],
"line_no": [
29,
31,
47,
31
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MTVDemuxContext *mtv = VAR_0->priv_data;
ByteIOContext *pb = VAR_0->pb;
int VAR_2;
#if !HAVE_BIGENDIAN
int VAR_3;
#endif
if((url_ftell(pb) - VAR_0->data_offset + mtv->img_segment_size) % mtv->full_segment_size)
{
ur... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MTVDemuxContext *mtv = VAR_0->priv_data;",
"ByteIOContext *pb = VAR_0->pb;",
"int VAR_2;",
"#if !HAVE_BIGENDIAN\nint VAR_3;",
"#endif\nif((url_ftell(pb) - VAR_0->data_offset + mtv->img_segment_size) % mtv->full_segment_size)\n{",
"url_fsk... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15,
19,
21
],
[
23
],
[
27
],
[
29,
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
53,
69
],
[
71
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.