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,369 | static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){
int count, y, x, i, j, split, best_mean, best_score, best_count;
int best_vector[6];
int block_sum[7]= {0, 0, 0, 0, 0, 0};
int w= 2<<((level+2)>>1);
... | false | FFmpeg | e62b3dd210f19c337fc541758079fceeadabc208 | static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){
int count, y, x, i, j, split, best_mean, best_score, best_count;
int best_vector[6];
int block_sum[7]= {0, 0, 0, 0, 0, 0};
int w= 2<<((level+2)>>1);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(SVQ1Context *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2, FUNC_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8){
int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;
int VAR_18[6];
int VAR_19[7]= {0, 0, 0, 0, 0, 0};
int VAR_20= 2<<((VAR_5+2)>>1);
... | [
"static int FUNC_0(SVQ1Context *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2, FUNC_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8){",
"int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;",
"int VAR_18[6];",
"int VAR_19[7]= {0, 0, 0, 0, 0, 0};",
"int VAR_20= 2<<((VAR_5+2)>>1);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
18,370 | int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* frame)
{
V4L2Buffer* avbuf = NULL;
/* if we are draining, we are no longer inputing data, therefore enable a
* timeout so we can dequeue and flag the last valid buffer.
*
* blocks until:
* 1. decoded frame available
... | false | FFmpeg | 5d5de3eba4c7890c2e8077f5b4ae569671d11cf8 | int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* frame)
{
V4L2Buffer* avbuf = NULL;
avbuf = v4l2_dequeue_v4l2buf(ctx, ctx_to_m2mctx(ctx)->draining ? 200 : -1);
if (!avbuf) {
if (ctx->done)
return AVERROR_EOF;
return AVERROR(EAGAIN);
}... | {
"code": [],
"line_no": []
} | int FUNC_0(V4L2Context* VAR_0, AVFrame* VAR_1)
{
V4L2Buffer* avbuf = NULL;
avbuf = v4l2_dequeue_v4l2buf(VAR_0, ctx_to_m2mctx(VAR_0)->draining ? 200 : -1);
if (!avbuf) {
if (VAR_0->done)
return AVERROR_EOF;
return AVERROR(EAGAIN);
}
return ... | [
"int FUNC_0(V4L2Context* VAR_0, AVFrame* VAR_1)\n{",
"V4L2Buffer* avbuf = NULL;",
"avbuf = v4l2_dequeue_v4l2buf(VAR_0, ctx_to_m2mctx(VAR_0)->draining ? 200 : -1);",
"if (!avbuf) {",
"if (VAR_0->done)\nreturn AVERROR_EOF;",
"return AVERROR(EAGAIN);",
"}",
"return ff_v4l2_buffer_buf_to_avframe(VAR_1, av... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
23
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
18,372 | int ff_h264_decode_mb_cabac(H264Context *h) {
MpegEncContext * const s = &h->s;
int mb_xy;
int mb_type, partition_count, cbp = 0;
int dct8x8_allowed= h->pps.transform_8x8_mode;
mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->frame_num, s->mb... | false | FFmpeg | c988f97566cdf536ba0dcbc0d77d885456852060 | int ff_h264_decode_mb_cabac(H264Context *h) {
MpegEncContext * const s = &h->s;
int mb_xy;
int mb_type, partition_count, cbp = 0;
int dct8x8_allowed= h->pps.transform_8x8_mode;
mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->frame_num, s->mb... | {
"code": [],
"line_no": []
} | int FUNC_0(H264Context *VAR_0) {
MpegEncContext * const s = &VAR_0->s;
int VAR_1;
int VAR_2, VAR_3, VAR_4 = 0;
int VAR_5= VAR_0->pps.transform_8x8_mode;
VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", VAR_0->frame_num, s->mb_x, s->mb_y);
... | [
"int FUNC_0(H264Context *VAR_0) {",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_1;",
"int VAR_2, VAR_3, VAR_4 = 0;",
"int VAR_5= VAR_0->pps.transform_8x8_mode;",
"VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride;",
"tprintf(s->avctx, \"pic:%d mb:%d/%d\\n\", VAR_0->frame_num, s->mb_x, s->mb_y)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[... |
18,373 | static int parse_read_interval(const char *interval_spec,
ReadInterval *interval)
{
int ret = 0;
char *next, *p, *spec = av_strdup(interval_spec);
if (!spec)
return AVERROR(ENOMEM);
if (!*spec) {
av_log(NULL, AV_LOG_ERROR, "Invalid empty interval ... | true | FFmpeg | 7fb4b0368de18fc150e72a9190a4c87827d2d9d2 | static int parse_read_interval(const char *interval_spec,
ReadInterval *interval)
{
int ret = 0;
char *next, *p, *spec = av_strdup(interval_spec);
if (!spec)
return AVERROR(ENOMEM);
if (!*spec) {
av_log(NULL, AV_LOG_ERROR, "Invalid empty interval ... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0,
ReadInterval *VAR_1)
{
int VAR_2 = 0;
char *VAR_3, *VAR_4, *VAR_5 = av_strdup(VAR_0);
if (!VAR_5)
return AVERROR(ENOMEM);
if (!*VAR_5) {
av_log(NULL, AV_LOG_ERROR, "Invalid empty VAR_1 specification\n");
... | [
"static int FUNC_0(const char *VAR_0,\nReadInterval *VAR_1)\n{",
"int VAR_2 = 0;",
"char *VAR_3, *VAR_4, *VAR_5 = av_strdup(VAR_0);",
"if (!VAR_5)\nreturn AVERROR(ENOMEM);",
"if (!*VAR_5) {",
"av_log(NULL, AV_LOG_ERROR, \"Invalid empty VAR_1 specification\\n\");",
"VAR_2 = AVERROR(EINVAL);",
"goto end... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
18,374 | static uint32_t qvirtio_pci_get_guest_features(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readl(dev->pdev, dev->addr + VIRTIO_PCI_GUEST_FEATURES);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static uint32_t qvirtio_pci_get_guest_features(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readl(dev->pdev, dev->addr + VIRTIO_PCI_GUEST_FEATURES);
}
| {
"code": [
" return qpci_io_readl(dev->pdev, dev->addr + VIRTIO_PCI_GUEST_FEATURES);"
],
"line_no": [
7
]
} | static uint32_t FUNC_0(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readl(dev->pdev, dev->addr + VIRTIO_PCI_GUEST_FEATURES);
}
| [
"static uint32_t FUNC_0(QVirtioDevice *d)\n{",
"QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;",
"return qpci_io_readl(dev->pdev, dev->addr + VIRTIO_PCI_GUEST_FEATURES);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,375 | bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
VirtIOSCSICommon *vs = &s->parent_obj;
SCSIDevice *d;
int rc;
rc = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size,
sizeof(VirtIOSCSICmdResp) + vs->sense_size);
if ... | true | qemu | a8f2e5c8fffbaf7fbd4f0efc8efbeebade78008f | bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
VirtIOSCSICommon *vs = &s->parent_obj;
SCSIDevice *d;
int rc;
rc = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size,
sizeof(VirtIOSCSICmdResp) + vs->sense_size);
if ... | {
"code": [
"bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req)"
],
"line_no": [
1
]
} | bool FUNC_0(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
VirtIOSCSICommon *vs = &s->parent_obj;
SCSIDevice *d;
int VAR_0;
VAR_0 = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size,
sizeof(VirtIOSCSICmdResp) + vs->sense_size);
if (VAR_0 < 0) {
... | [
"bool FUNC_0(VirtIOSCSI *s, VirtIOSCSIReq *req)\n{",
"VirtIOSCSICommon *vs = &s->parent_obj;",
"SCSIDevice *d;",
"int VAR_0;",
"VAR_0 = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size,\nsizeof(VirtIOSCSICmdResp) + vs->sense_size);",
"if (VAR_0 < 0) {",
"if (VAR_0 == -ENOTSUP) {",
"v... | [
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
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
18,376 | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid)
{
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
av_log(mxf->fc, AV_LOG_ERROR, "unsupported primer pack item length\n");
return -1;
... | true | FFmpeg | fd34dbea58e097609ff09cf7dcc59f74930195d3 | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid)
{
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
av_log(mxf->fc, AV_LOG_ERROR, "unsupported primer pack item length\n");
return -1;
... | {
"code": [
"static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid)"
],
"line_no": [
1
]
} | static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)
{
MXFContext *mxf = VAR_0;
int VAR_5 = avio_rb32(VAR_1);
int VAR_6 = avio_rb32(VAR_1);
if (VAR_6 != 18) {
av_log(mxf->fc, AV_LOG_ERROR, "unsupported primer pack item length\n");
return -1;
}... | [
"static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)\n{",
"MXFContext *mxf = VAR_0;",
"int VAR_5 = avio_rb32(VAR_1);",
"int VAR_6 = avio_rb32(VAR_1);",
"if (VAR_6 != 18) {",
"av_log(mxf->fc, AV_LOG_ERROR, \"unsupported primer pack item length\\n\");",
"return -1;",
"}",... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
]
] |
18,377 | void qmp_transaction(BlockdevActionList *dev_list, Error **errp)
{
int ret = 0;
BlockdevActionList *dev_entry = dev_list;
BlkTransactionStates *states, *next;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionStates) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
/* drain all i/o bef... | true | qemu | 870f5681c9dbafc738082b1fd48e0cc013bf43c7 | void qmp_transaction(BlockdevActionList *dev_list, Error **errp)
{
int ret = 0;
BlockdevActionList *dev_entry = dev_list;
BlkTransactionStates *states, *next;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionStates) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
bdrv_drain_all... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockdevActionList *VAR_0, Error **VAR_1)
{
int VAR_2 = 0;
BlockdevActionList *dev_entry = VAR_0;
BlkTransactionStates *states, *next;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionStates) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
bdrv_drain_all();
... | [
"void FUNC_0(BlockdevActionList *VAR_0, Error **VAR_1)\n{",
"int VAR_2 = 0;",
"BlockdevActionList *dev_entry = VAR_0;",
"BlkTransactionStates *states, *next;",
"QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionStates) snap_bdrv_states;",
"QSIMPLEQ_INIT(&snap_bdrv_states);",
"bdrv_drain_all();",
"while (N... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
21
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53
],
[
55
... |
18,378 | static int genh_read_header(AVFormatContext *s)
{
unsigned start_offset, header_size, codec, coef_type, coef[2];
GENHDemuxContext *c = s->priv_data;
av_unused unsigned coef_splitted[2];
int align, ch, ret;
AVStream *st;
avio_skip(s->pb, 4);
st = avformat_new_stream(s, NULL);
... | true | FFmpeg | 5b0ae88ca6b3eb85dbda1762f16f1b5e7c3aa014 | static int genh_read_header(AVFormatContext *s)
{
unsigned start_offset, header_size, codec, coef_type, coef[2];
GENHDemuxContext *c = s->priv_data;
av_unused unsigned coef_splitted[2];
int align, ch, ret;
AVStream *st;
avio_skip(s->pb, 4);
st = avformat_new_stream(s, NULL);
... | {
"code": [
" if (st->codecpar->channels <= 0)"
],
"line_no": [
33
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
unsigned VAR_1, VAR_2, VAR_3, VAR_4, VAR_5[2];
GENHDemuxContext *c = VAR_0->priv_data;
av_unused unsigned coef_splitted[2];
int VAR_6, VAR_7, VAR_8;
AVStream *st;
avio_skip(VAR_0->pb, 4);
st = avformat_new_stream(VAR_0, NULL);
if (... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"unsigned VAR_1, VAR_2, VAR_3, VAR_4, VAR_5[2];",
"GENHDemuxContext *c = VAR_0->priv_data;",
"av_unused unsigned coef_splitted[2];",
"int VAR_6, VAR_7, VAR_8;",
"AVStream *st;",
"avio_skip(VAR_0->pb, 4);",
"st = avformat_new_stream(VAR_0, NULL);",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
18,379 | static void virtio_scsi_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
dc->exit = virtio_scsi_device_exit;
dc->props = virtio_scsi_properties;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
vdc->i... | true | qemu | e3c9d76acc984218264bbc6435b0c09f959ed9b8 | static void virtio_scsi_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
dc->exit = virtio_scsi_device_exit;
dc->props = virtio_scsi_properties;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
vdc->i... | {
"code": [
" dc->exit = virtio_scsi_device_exit;"
],
"line_no": [
9
]
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(VAR_0);
dc->exit = virtio_scsi_device_exit;
dc->props = virtio_scsi_properties;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
vdc->init = virtio_sc... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(VAR_0);",
"dc->exit = virtio_scsi_device_exit;",
"dc->props = virtio_scsi_properties;",
"set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);",
"vdc->init = virt... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
18,380 | static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s,
Jpeg2000CodingStyle *codsty,
Jpeg2000ResLevel *rlevel, int precno,
int layno, uint8_t *expn, int numgbits)
{
int bandno, cblkno, ret, nb_code_blocks... | true | FFmpeg | 3b8617429014301b26b587a5e537910746d3377a | static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s,
Jpeg2000CodingStyle *codsty,
Jpeg2000ResLevel *rlevel, int precno,
int layno, uint8_t *expn, int numgbits)
{
int bandno, cblkno, ret, nb_code_blocks... | {
"code": [
" if (!cblk->npasses)",
" cblk->nonzerobits = expn[bandno] + numgbits - 1 -"
],
"line_no": [
73,
75
]
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0,
Jpeg2000CodingStyle *VAR_1,
Jpeg2000ResLevel *VAR_2, int VAR_3,
int VAR_4, uint8_t *VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9, VAR_10;
if (!(VAR_9 = ge... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0,\nJpeg2000CodingStyle *VAR_1,\nJpeg2000ResLevel *VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9, VAR_10;",
"if (!(VAR_9 = get_bits(VAR_0, 1))) {",
"jpeg2000_flush(VAR_0);",
"return 0;",
"} else if (VAR_9 < 0)",
"ret... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
55,
57
],
[... |
18,381 | void v9fs_device_unrealize_common(V9fsState *s, Error **errp)
{
g_free(s->tag);
g_free(s->ctx.fs_root);
| true | qemu | 702dbcc274e2ca43be20ba64c758c0ca57dab91d | void v9fs_device_unrealize_common(V9fsState *s, Error **errp)
{
g_free(s->tag);
g_free(s->ctx.fs_root);
| {
"code": [],
"line_no": []
} | void FUNC_0(V9fsState *VAR_0, Error **VAR_1)
{
g_free(VAR_0->tag);
g_free(VAR_0->ctx.fs_root);
| [
"void FUNC_0(V9fsState *VAR_0, Error **VAR_1)\n{",
"g_free(VAR_0->tag);",
"g_free(VAR_0->ctx.fs_root);"
] | [
0,
0,
0
] | [
[
1,
3
],
[
8
],
[
10
]
] |
18,382 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
HandleOutput ctrl, HandleOutput evt,
HandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vde... | true | qemu | 93bd49aff9081bbe9440192db9da3676941f77a3 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
HandleOutput ctrl, HandleOutput evt,
HandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vde... | {
"code": [],
"line_no": []
} | void FUNC_0(DeviceState *VAR_0, Error **VAR_1,
HandleOutput VAR_2, HandleOutput VAR_3,
HandleOutput VAR_4)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);
int VAR_5;
virtio_init(vdev, "... | [
"void FUNC_0(DeviceState *VAR_0, Error **VAR_1,\nHandleOutput VAR_2, HandleOutput VAR_3,\nHandleOutput VAR_4)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);",
"int VAR_5;",
"virtio_init(vdev, \"virtio-scsi\", VIRTIO_ID_SCSI,\nsizeof(VirtIOSCSIConfig));",... | [
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
],
[
32
],
[
34
],
[
36
],
[
38
],
[
40
],
[
44,
46
],
[
48,
50
],
[
52
],
[
54,
56
... |
18,383 | static int rpza_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
RpzaContext *s = avctx->priv_data;
int ret;
bytestream2_init(&s->gb, avpkt->data, avpkt->size);
if ((ret = ff_reget_buffer(avctx, s->fra... | false | FFmpeg | 60f50374f1955442dc987abc4a6c61c2109620c2 | static int rpza_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
RpzaContext *s = avctx->priv_data;
int ret;
bytestream2_init(&s->gb, avpkt->data, avpkt->size);
if ((ret = ff_reget_buffer(avctx, s->fra... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
RpzaContext *s = VAR_0->priv_data;
int VAR_4;
bytestream2_init(&s->gb, VAR_3->VAR_1, VAR_3->size);
if ((VAR_4 = ff_reget_buffer(VAR_0, s->frame)) < 0)... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"RpzaContext *s = VAR_0->priv_data;",
"int VAR_4;",
"bytestream2_init(&s->gb, VAR_3->VAR_1, VAR_3->size);",
"if ((VAR_4 = ff_reget_buffer(VAR_0, s->frame)) < 0) {",
"av_log(VAR_0, AV_LOG_ERROR, \"reget_buffer() fail... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33,
35
],
[
39
],
[
45
],
[
47
]
] |
18,385 | static int decode_cell_data(Cell *cell, uint8_t *block, uint8_t *ref_block,
int pitch, int h_zoom, int v_zoom, int mode,
const vqEntry *delta[2], int swap_quads[2],
const uint8_t **data_ptr, const uint8_t *last_ptr)
{
int ... | true | FFmpeg | e4d4044339b9c3b0f45f7203cd026eda3c0414c0 | static int decode_cell_data(Cell *cell, uint8_t *block, uint8_t *ref_block,
int pitch, int h_zoom, int v_zoom, int mode,
const vqEntry *delta[2], int swap_quads[2],
const uint8_t **data_ptr, const uint8_t *last_ptr)
{
int ... | {
"code": [],
"line_no": []
} | static int FUNC_0(Cell *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6,
const vqEntry *VAR_7[2], int VAR_8[2],
const uint8_t **VAR_9, const uint8_t *VAR_10)
{
int VAR_11, VAR_12, VAR_13, ... | [
"static int FUNC_0(Cell *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6,\nconst vqEntry *VAR_7[2], int VAR_8[2],\nconst uint8_t **VAR_9, const uint8_t *VAR_10)\n{",
"int VAR_11, VAR_12, VAR_13, VAR_14;",
"int VAR_15 = 0;",
"uint8_t code, *dst, *ref... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,386 | static void superh_cpu_realizefn(DeviceState *dev, Error **errp)
{
SuperHCPU *cpu = SUPERH_CPU(dev);
SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(dev);
cpu_reset(CPU(cpu));
scc->parent_realize(dev, errp);
}
| true | qemu | 14a10fc39923b3af07c8c46d22cb20843bee3a72 | static void superh_cpu_realizefn(DeviceState *dev, Error **errp)
{
SuperHCPU *cpu = SUPERH_CPU(dev);
SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(dev);
cpu_reset(CPU(cpu));
scc->parent_realize(dev, errp);
}
| {
"code": [
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset... | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
SuperHCPU *cpu = SUPERH_CPU(VAR_0);
SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(VAR_0);
cpu_reset(CPU(cpu));
scc->parent_realize(VAR_0, VAR_1);
}
| [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"SuperHCPU *cpu = SUPERH_CPU(VAR_0);",
"SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(VAR_0);",
"cpu_reset(CPU(cpu));",
"scc->parent_realize(VAR_0, VAR_1);",
"}"
] | [
0,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
]
] |
18,387 | static void http_log(char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (logfile)
vfprintf(logfile, fmt, ap);
va_end(ap);
}
| true | FFmpeg | 7434ba6d53b9a8858a6f965d9a4e60b5eb1316fe | static void http_log(char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (logfile)
vfprintf(logfile, fmt, ap);
va_end(ap);
}
| {
"code": [
" if (logfile)"
],
"line_no": [
11
]
} | static void FUNC_0(char *VAR_0, ...)
{
va_list ap;
va_start(ap, VAR_0);
if (logfile)
vfprintf(logfile, VAR_0, ap);
va_end(ap);
}
| [
"static void FUNC_0(char *VAR_0, ...)\n{",
"va_list ap;",
"va_start(ap, VAR_0);",
"if (logfile)\nvfprintf(logfile, VAR_0, ap);",
"va_end(ap);",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
]
] |
18,388 | void HELPER(access_check_cp_reg)(CPUARMState *env, void *rip)
{
const ARMCPRegInfo *ri = rip;
switch (ri->accessfn(env, ri)) {
case CP_ACCESS_OK:
return;
case CP_ACCESS_TRAP:
case CP_ACCESS_TRAP_UNCATEGORIZED:
/* These cases will eventually need to generate different
... | true | qemu | 8bcbf37caa87ba89bc391bad70039f942a98c7e3 | void HELPER(access_check_cp_reg)(CPUARMState *env, void *rip)
{
const ARMCPRegInfo *ri = rip;
switch (ri->accessfn(env, ri)) {
case CP_ACCESS_OK:
return;
case CP_ACCESS_TRAP:
case CP_ACCESS_TRAP_UNCATEGORIZED:
break;
default:
g_assert_not_reached()... | {
"code": [
"void HELPER(access_check_cp_reg)(CPUARMState *env, void *rip)"
],
"line_no": [
1
]
} | void FUNC_0(access_check_cp_reg)(CPUARMState *env, void *rip)
{
const ARMCPRegInfo *VAR_0 = rip;
switch (VAR_0->accessfn(env, VAR_0)) {
case CP_ACCESS_OK:
return;
case CP_ACCESS_TRAP:
case CP_ACCESS_TRAP_UNCATEGORIZED:
break;
default:
g_assert_not_... | [
"void FUNC_0(access_check_cp_reg)(CPUARMState *env, void *rip)\n{",
"const ARMCPRegInfo *VAR_0 = rip;",
"switch (VAR_0->accessfn(env, VAR_0)) {",
"case CP_ACCESS_OK:\nreturn;",
"case CP_ACCESS_TRAP:\ncase CP_ACCESS_TRAP_UNCATEGORIZED:\nbreak;",
"default:\ng_assert_not_reached();",
"}",
"raise_exceptio... | [
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
]
] |
18,389 | static void skip_block (uint8_t *current, uint8_t *previous, int pitch, int x, int y) {
uint8_t *src;
uint8_t *dst;
int i;
src = &previous[x + y*pitch];
dst = current;
for (i=0; i < 16; i++) {
memcpy (dst, src, 16);
src += pitch;
dst += pitch;
}
}
| false | FFmpeg | 82dd7d0dec29ee59af91ce18c29eb151b363ff37 | static void skip_block (uint8_t *current, uint8_t *previous, int pitch, int x, int y) {
uint8_t *src;
uint8_t *dst;
int i;
src = &previous[x + y*pitch];
dst = current;
for (i=0; i < 16; i++) {
memcpy (dst, src, 16);
src += pitch;
dst += pitch;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4) {
uint8_t *src;
uint8_t *dst;
int VAR_5;
src = &VAR_1[VAR_3 + VAR_4*VAR_2];
dst = VAR_0;
for (VAR_5=0; VAR_5 < 16; VAR_5++) {
memcpy (dst, src, 16);
src += VAR_2;
dst += VAR_2;
}
}
| [
"static void FUNC_0 (uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4) {",
"uint8_t *src;",
"uint8_t *dst;",
"int\t VAR_5;",
"src = &VAR_1[VAR_3 + VAR_4*VAR_2];",
"dst = VAR_0;",
"for (VAR_5=0; VAR_5 < 16; VAR_5++) {",
"memcpy (dst, src, 16);",
"src += VAR_2;",
"dst += VAR_2;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
18,391 | static int mlp_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
MLPParseContext *mp = s->priv_data;
int sync_present;
uint8_t parity_bits;
int next;... | true | FFmpeg | 2a672652bb70fe6ae1c711f80678f9a513732ee1 | static int mlp_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
MLPParseContext *mp = s->priv_data;
int sync_present;
uint8_t parity_bits;
int next;... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecParserContext *VAR_0,
AVCodecContext *VAR_1,
const uint8_t **VAR_10, int *VAR_10,
const uint8_t *VAR_4, int VAR_5)
{
MLPParseContext *mp = VAR_0->priv_data;
int VAR_6;
uint8_t parity_bits;
int VAR_7;
int... | [
"static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_10, int *VAR_10,\nconst uint8_t *VAR_4, int VAR_5)\n{",
"MLPParseContext *mp = VAR_0->priv_data;",
"int VAR_6;",
"uint8_t parity_bits;",
"int VAR_7;",
"int VAR_8, VAR_9 = 0;",
"*VAR_10 = 0;",
"if (VAR_5 == 0)\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
31
],
[
37
],
[
39
],
[
41,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
18,392 | void ppc_translate_init(void)
{
int i;
char* p;
size_t cpu_reg_names_size;
static int done_init = 0;
if (done_init)
return;
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
p = cpu_reg_names;
cpu_reg_names_size = sizeof(cpu_reg_names);
for (i = 0; i < 8; i++) {
snp... | true | qemu | 697ab892786d47008807a49f57b2fd86adfcd098 | void ppc_translate_init(void)
{
int i;
char* p;
size_t cpu_reg_names_size;
static int done_init = 0;
if (done_init)
return;
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
p = cpu_reg_names;
cpu_reg_names_size = sizeof(cpu_reg_names);
for (i = 0; i < 8; i++) {
snp... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
int VAR_0;
char* VAR_1;
size_t cpu_reg_names_size;
static int VAR_2 = 0;
if (VAR_2)
return;
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
VAR_1 = cpu_reg_names;
cpu_reg_names_size = sizeof(cpu_reg_names);
for (VAR_0 = 0; VAR_0 < 8; VAR_0++) {
... | [
"void FUNC_0(void)\n{",
"int VAR_0;",
"char* VAR_1;",
"size_t cpu_reg_names_size;",
"static int VAR_2 = 0;",
"if (VAR_2)\nreturn;",
"cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, \"env\");",
"VAR_1 = cpu_reg_names;",
"cpu_reg_names_size = sizeof(cpu_reg_names);",
"for (VAR_0 = 0; VAR_0 < 8; 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
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7,
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14,
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21,
22
],
[
... |
18,393 | void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc, uint32_t devfn, int bar)
{
hc->dev = qpci_device_find(pcibus, devfn);
g_assert(hc->dev != NULL);
qpci_device_enable(hc->dev);
hc->base = qpci_iomap(hc->dev, bar, NULL);
g_assert(hc->base != NULL);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc, uint32_t devfn, int bar)
{
hc->dev = qpci_device_find(pcibus, devfn);
g_assert(hc->dev != NULL);
qpci_device_enable(hc->dev);
hc->base = qpci_iomap(hc->dev, bar, NULL);
g_assert(hc->base != NULL);
}
| {
"code": [
" hc->base = qpci_iomap(hc->dev, bar, NULL);",
" g_assert(hc->base != NULL);"
],
"line_no": [
11,
13
]
} | void FUNC_0(QPCIBus *VAR_0, struct qhc *VAR_1, uint32_t VAR_2, int VAR_3)
{
VAR_1->dev = qpci_device_find(VAR_0, VAR_2);
g_assert(VAR_1->dev != NULL);
qpci_device_enable(VAR_1->dev);
VAR_1->base = qpci_iomap(VAR_1->dev, VAR_3, NULL);
g_assert(VAR_1->base != NULL);
}
| [
"void FUNC_0(QPCIBus *VAR_0, struct qhc *VAR_1, uint32_t VAR_2, int VAR_3)\n{",
"VAR_1->dev = qpci_device_find(VAR_0, VAR_2);",
"g_assert(VAR_1->dev != NULL);",
"qpci_device_enable(VAR_1->dev);",
"VAR_1->base = qpci_iomap(VAR_1->dev, VAR_3, NULL);",
"g_assert(VAR_1->base != NULL);",
"}"
] | [
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,394 | static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
{
const char *hdlr, *descr = NULL, *hdlr_type = NULL;
int64_t pos = avio_tell(pb);
if (!track) { /* no media --> data handler */
hdlr = (track->mode == MODE_MOV) ? "mhlr" : "\0\0\0\0";
if (track->enc->codec_type == A... | true | FFmpeg | 40393ac568db345b0388e1c99fc89f41a5b08037 | static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
{
const char *hdlr, *descr = NULL, *hdlr_type = NULL;
int64_t pos = avio_tell(pb);
if (!track) {
hdlr = (track->mode == MODE_MOV) ? "mhlr" : "\0\0\0\0";
if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1)
{
const char *VAR_2, *VAR_3 = NULL, *VAR_4 = NULL;
int64_t pos = avio_tell(VAR_0);
if (!VAR_1) {
VAR_2 = (VAR_1->mode == MODE_MOV) ? "mhlr" : "\0\0\0\0";
if (VAR_1->enc->codec_type == AVMEDIA_TYPE_VIDEO) {
VAR_4... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1)\n{",
"const char *VAR_2, *VAR_3 = NULL, *VAR_4 = NULL;",
"int64_t pos = avio_tell(VAR_0);",
"if (!VAR_1) {",
"VAR_2 = (VAR_1->mode == MODE_MOV) ? \"mhlr\" : \"\\0\\0\\0\\0\";",
"if (VAR_1->enc->codec_type == AVMEDIA_TYPE_VIDEO) {",
"VAR_4 = \"vide\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51... |
18,395 | static coroutine_fn void nbd_co_client_start(void *opaque)
{
NBDClientNewData *data = opaque;
NBDClient *client = data->client;
NBDExport *exp = client->exp;
if (exp) {
nbd_export_get(exp);
QTAILQ_INSERT_TAIL(&exp->clients, client, next);
}
qemu_co_mutex_init(&client->... | true | qemu | 0c9390d978cbf61e8f16c9f580fa96b305c43568 | static coroutine_fn void nbd_co_client_start(void *opaque)
{
NBDClientNewData *data = opaque;
NBDClient *client = data->client;
NBDExport *exp = client->exp;
if (exp) {
nbd_export_get(exp);
QTAILQ_INSERT_TAIL(&exp->clients, client, next);
}
qemu_co_mutex_init(&client->... | {
"code": [
" client_close(client);",
" client_close(client);"
],
"line_no": [
27,
27
]
} | static coroutine_fn void FUNC_0(void *opaque)
{
NBDClientNewData *data = opaque;
NBDClient *client = data->client;
NBDExport *exp = client->exp;
if (exp) {
nbd_export_get(exp);
QTAILQ_INSERT_TAIL(&exp->clients, client, next);
}
qemu_co_mutex_init(&client->send_lock);
... | [
"static coroutine_fn void FUNC_0(void *opaque)\n{",
"NBDClientNewData *data = opaque;",
"NBDClient *client = data->client;",
"NBDExport *exp = client->exp;",
"if (exp) {",
"nbd_export_get(exp);",
"QTAILQ_INSERT_TAIL(&exp->clients, client, next);",
"}",
"qemu_co_mutex_init(&client->send_lock);",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39,
41
],
[
43
]
] |
18,396 | static inline int vfp_exceptbits_from_host(int host_bits)
{
int target_bits = 0;
if (host_bits & float_flag_invalid)
target_bits |= 1;
if (host_bits & float_flag_divbyzero)
target_bits |= 2;
if (host_bits & float_flag_overflow)
target_bits |= 4;
if (host_bits & flo... | true | qemu | 36802b6b1ed7887aeae5d027f86a969400f8824a | static inline int vfp_exceptbits_from_host(int host_bits)
{
int target_bits = 0;
if (host_bits & float_flag_invalid)
target_bits |= 1;
if (host_bits & float_flag_divbyzero)
target_bits |= 2;
if (host_bits & float_flag_overflow)
target_bits |= 4;
if (host_bits & flo... | {
"code": [
" if (host_bits & float_flag_underflow)"
],
"line_no": [
21
]
} | static inline int FUNC_0(int VAR_0)
{
int VAR_1 = 0;
if (VAR_0 & float_flag_invalid)
VAR_1 |= 1;
if (VAR_0 & float_flag_divbyzero)
VAR_1 |= 2;
if (VAR_0 & float_flag_overflow)
VAR_1 |= 4;
if (VAR_0 & float_flag_underflow)
VAR_1 |= 8;
if (VAR_0 & float... | [
"static inline int FUNC_0(int VAR_0)\n{",
"int VAR_1 = 0;",
"if (VAR_0 & float_flag_invalid)\nVAR_1 |= 1;",
"if (VAR_0 & float_flag_divbyzero)\nVAR_1 |= 2;",
"if (VAR_0 & float_flag_overflow)\nVAR_1 |= 4;",
"if (VAR_0 & float_flag_underflow)\nVAR_1 |= 8;",
"if (VAR_0 & float_flag_inexact)\nVAR_1 |= 0x10... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
]
] |
18,397 | const char *memory_region_name(const MemoryRegion *mr)
{
return object_get_canonical_path_component(OBJECT(mr));
}
| true | qemu | 302fa283789a2f9b1199c327047cfad2258a23a2 | const char *memory_region_name(const MemoryRegion *mr)
{
return object_get_canonical_path_component(OBJECT(mr));
}
| {
"code": [
" return object_get_canonical_path_component(OBJECT(mr));"
],
"line_no": [
5
]
} | const char *FUNC_0(const MemoryRegion *VAR_0)
{
return object_get_canonical_path_component(OBJECT(VAR_0));
}
| [
"const char *FUNC_0(const MemoryRegion *VAR_0)\n{",
"return object_get_canonical_path_component(OBJECT(VAR_0));",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,398 | static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row,
AVFrame *frame, int x, int y)
{
int shift1 = ctx->bit_depth == 10;
int dct_linesize_luma = frame->linesize[0];
int dct_linesize_chroma = frame->linesize[1];
uint8_t *dest_y, *dest_u, *... | true | FFmpeg | b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8 | static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row,
AVFrame *frame, int x, int y)
{
int shift1 = ctx->bit_depth == 10;
int dct_linesize_luma = frame->linesize[0];
int dct_linesize_chroma = frame->linesize[1];
uint8_t *dest_y, *dest_u, *... | {
"code": [
" ctx->decode_dct_block(ctx, row, i);"
],
"line_no": [
71
]
} | static int FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1,
AVFrame *VAR_2, int VAR_3, int VAR_4)
{
int VAR_5 = VAR_0->bit_depth == 10;
int VAR_6 = VAR_2->linesize[0];
int VAR_7 = VAR_2->linesize[1];
uint8_t *dest_y, *dest_u, *dest_v;
int VAR_8, VAR_9;... | [
"static int FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1,\nAVFrame *VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5 = VAR_0->bit_depth == 10;",
"int VAR_6 = VAR_2->linesize[0];",
"int VAR_7 = VAR_2->linesize[1];",
"uint8_t *dest_y, *dest_u, *dest_v;",
"int VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
... |
18,399 | static void wmv2_idct_col(short * b)
{
int s1,s2;
int a0,a1,a2,a3,a4,a5,a6,a7;
/*step 1, with extended precision*/
a1 = (W1*b[8*1]+W7*b[8*7] + 4)>>3;
a7 = (W7*b[8*1]-W1*b[8*7] + 4)>>3;
a5 = (W5*b[8*5]+W3*b[8*3] + 4)>>3;
a3 = (W3*b[8*5]-W5*b[8*3] + 4)>>3;
a2 = (W2*b[8*2]+W6*b[8*6... | true | FFmpeg | e6bc38fd49c94726b45d5d5cc2b756ad8ec49ee0 | static void wmv2_idct_col(short * b)
{
int s1,s2;
int a0,a1,a2,a3,a4,a5,a6,a7;
a1 = (W1*b[8*1]+W7*b[8*7] + 4)>>3;
a7 = (W7*b[8*1]-W1*b[8*7] + 4)>>3;
a5 = (W5*b[8*5]+W3*b[8*3] + 4)>>3;
a3 = (W3*b[8*5]-W5*b[8*3] + 4)>>3;
a2 = (W2*b[8*2]+W6*b[8*6] + 4)>>3;
a6 = (W6*b[8*2]-W2*... | {
"code": [
" int s1,s2;",
" int a0,a1,a2,a3,a4,a5,a6,a7;",
" s2 = (181*(a1-a5-a7+a3)+128)>>8;",
"static void wmv2_idct_col(short * b)",
" int s1,s2;",
" int a0,a1,a2,a3,a4,a5,a6,a7;",
" a1 = (W1*b[8*1]+W7*b[8*7] + 4)>>3;",
" a7 = (W7*b[8*1]-W1*b[8*7] + 4)>>3;",
... | static void FUNC_0(short * VAR_0)
{
int VAR_1,VAR_2;
int VAR_3,VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10;
VAR_4 = (W1*VAR_0[8*1]+W7*VAR_0[8*7] + 4)>>3;
VAR_10 = (W7*VAR_0[8*1]-W1*VAR_0[8*7] + 4)>>3;
VAR_8 = (W5*VAR_0[8*5]+W3*VAR_0[8*3] + 4)>>3;
VAR_6 = (W3*VAR_0[8*5]-W5*VAR_0[8*3] ... | [
"static void FUNC_0(short * VAR_0)\n{",
"int VAR_1,VAR_2;",
"int VAR_3,VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10;",
"VAR_4 = (W1*VAR_0[8*1]+W7*VAR_0[8*7] + 4)>>3;",
"VAR_10 = (W7*VAR_0[8*1]-W1*VAR_0[8*7] + 4)>>3;",
"VAR_8 = (W5*VAR_0[8*5]+W3*VAR_0[8*3] + 4)>>3;",
"VAR_6 = (W3*VAR_0[8*5]-W5*VAR_0[8*3] +... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49... |
18,400 | static void bonito_writel(void *opaque, hwaddr addr,
uint64_t val, unsigned size)
{
PCIBonitoState *s = opaque;
uint32_t saddr;
int reset = 0;
saddr = (addr - BONITO_REGBASE) >> 2;
DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val, saddr);
... | true | qemu | 0ca4f94195cce77b624edc6d9abcf14a3bf01f06 | static void bonito_writel(void *opaque, hwaddr addr,
uint64_t val, unsigned size)
{
PCIBonitoState *s = opaque;
uint32_t saddr;
int reset = 0;
saddr = (addr - BONITO_REGBASE) >> 2;
DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val, saddr);
... | {
"code": [
" saddr = (addr - BONITO_REGBASE) >> 2;",
" saddr = (addr - BONITO_REGBASE) >> 2;"
],
"line_no": [
15,
15
]
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
PCIBonitoState *s = VAR_0;
uint32_t saddr;
int VAR_4 = 0;
saddr = (VAR_1 - BONITO_REGBASE) >> 2;
DPRINTF("FUNC_0 "TARGET_FMT_plx" VAR_2 %x saddr %x\n", VAR_1, VAR_2, saddr);
swit... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"PCIBonitoState *s = VAR_0;",
"uint32_t saddr;",
"int VAR_4 = 0;",
"saddr = (VAR_1 - BONITO_REGBASE) >> 2;",
"DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\" VAR_2 %x saddr %x\\n\", VAR_1, VAR_2, saddr);",
"switch (saddr) {",
"ca... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69
... |
18,401 | static int init_resampler(AVCodecContext *input_codec_context,
AVCodecContext *output_codec_context,
SwrContext **resample_context)
{
/**
* Only initialize the resampler if it is necessary, i.e.,
* if and only if the sample formats differ.
*/... | true | FFmpeg | ba728c1a2527a02f239fdfaf118a618b758721db | static int init_resampler(AVCodecContext *input_codec_context,
AVCodecContext *output_codec_context,
SwrContext **resample_context)
{
if (input_codec_context->sample_fmt != output_codec_context->sample_fmt ||
input_codec_context->channels ... | {
"code": [
" if (input_codec_context->sample_fmt != output_codec_context->sample_fmt ||",
" input_codec_context->channels != output_codec_context->channels) {"
],
"line_no": [
17,
19
]
} | static int FUNC_0(AVCodecContext *VAR_0,
AVCodecContext *VAR_1,
SwrContext **VAR_2)
{
if (VAR_0->sample_fmt != VAR_1->sample_fmt ||
VAR_0->channels != VAR_1->channels) {
int VAR_3;
*VAR_2 = swr_all... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nAVCodecContext *VAR_1,\nSwrContext **VAR_2)\n{",
"if (VAR_0->sample_fmt != VAR_1->sample_fmt ||\nVAR_0->channels != VAR_1->channels) {",
"int VAR_3;",
"*VAR_2 = swr_alloc_set_opts(NULL,\nav_get_default_channel_layout(VAR_1->channels),\nVAR_1->sample_fmt,\nVAR_1->samp... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
17,
19
],
[
21
],
[
39,
41,
43,
45,
47,
49,
51,
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
73
],
[
79
],
[
81
],
[
83
],
[
85
],
[
87
],
[
89... |
18,403 | static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
{
int ret = -EINVAL, idx;
struct rdma_cm_id *listen_id;
char ip[40] = "unknown";
struct addrinfo *res;
char port_str[16];
for (idx = 0; idx < RDMA_WRID_MAX; idx++) {
rdma->wr_data[idx].control_len = 0;
rdm... | true | qemu | 7fc5b13fd7b05babc7bcad9dcb8281ae202a9494 | static int qemu_rdma_dest_init(RDMAContext *rdma, Error **errp)
{
int ret = -EINVAL, idx;
struct rdma_cm_id *listen_id;
char ip[40] = "unknown";
struct addrinfo *res;
char port_str[16];
for (idx = 0; idx < RDMA_WRID_MAX; idx++) {
rdma->wr_data[idx].control_len = 0;
rdm... | {
"code": [
" struct addrinfo *res;",
" return -1;",
" return -1;",
" struct addrinfo *res;",
" struct addrinfo *e;",
" ret = getaddrinfo(rdma->host, port_str, NULL, &res);",
" ERROR(errp, \"could not getaddrinfo address %s\", rdma->host);",
... | static int FUNC_0(RDMAContext *VAR_0, Error **VAR_1)
{
int VAR_2 = -EINVAL, VAR_3;
struct rdma_cm_id *VAR_4;
char VAR_5[40] = "unknown";
struct addrinfo *VAR_6;
char VAR_7[16];
for (VAR_3 = 0; VAR_3 < RDMA_WRID_MAX; VAR_3++) {
VAR_0->wr_data[VAR_3].control_len = 0;
VAR... | [
"static int FUNC_0(RDMAContext *VAR_0, Error **VAR_1)\n{",
"int VAR_2 = -EINVAL, VAR_3;",
"struct rdma_cm_id *VAR_4;",
"char VAR_5[40] = \"unknown\";",
"struct addrinfo *VAR_6;",
"char VAR_7[16];",
"for (VAR_3 = 0; VAR_3 < RDMA_WRID_MAX; VAR_3++) {",
"VAR_0->wr_data[VAR_3].control_len = 0;",
"VAR_0-... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,404 | static int msmpeg4v12_decode_mb(MpegEncContext *s, int16_t block[6][64])
{
int cbp, code, i;
uint32_t * const mb_type_ptr = &s->current_picture.mb_type[s->mb_x + s->mb_y*s->mb_stride];
if (s->pict_type == AV_PICTURE_TYPE_P) {
if (s->use_skip_mb_code) {
if (get_bits1(&s->gb)) {
... | true | FFmpeg | 1121d9270783b284a70af317d8785eac7df1b72f | static int msmpeg4v12_decode_mb(MpegEncContext *s, int16_t block[6][64])
{
int cbp, code, i;
uint32_t * const mb_type_ptr = &s->current_picture.mb_type[s->mb_x + s->mb_y*s->mb_stride];
if (s->pict_type == AV_PICTURE_TYPE_P) {
if (s->use_skip_mb_code) {
if (get_bits1(&s->gb)) {
... | {
"code": [
" cbp= get_vlc2(&s->gb, ff_h263_intra_MCBPC_vlc.table, INTRA_MCBPC_VLC_BITS, 1);"
],
"line_no": [
79
]
} | static int FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[6][64])
{
int VAR_2, VAR_3, VAR_4;
uint32_t * const mb_type_ptr = &VAR_0->current_picture.mb_type[VAR_0->mb_x + VAR_0->mb_y*VAR_0->mb_stride];
if (VAR_0->pict_type == AV_PICTURE_TYPE_P) {
if (VAR_0->use_skip_mb_code) {
if (ge... | [
"static int FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[6][64])\n{",
"int VAR_2, VAR_3, VAR_4;",
"uint32_t * const mb_type_ptr = &VAR_0->current_picture.mb_type[VAR_0->mb_x + VAR_0->mb_y*VAR_0->mb_stride];",
"if (VAR_0->pict_type == AV_PICTURE_TYPE_P) {",
"if (VAR_0->use_skip_mb_code) {",
"if (get_bits1(&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
... |
18,406 | static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
{
const uint8_t *frame_start = frame;
const uint8_t *frame_end = frame + width * height;
int mask = 0x10000, bitbuf = 0;
int v, count, segments;
unsigned offset;
segments = bytestream2_get_le32(gb);
... | true | FFmpeg | 12936a4585bc293c0f88327d6840f49e8e744b62 | static int decode_tsw1(GetByteContext *gb, uint8_t *frame, int width, int height)
{
const uint8_t *frame_start = frame;
const uint8_t *frame_end = frame + width * height;
int mask = 0x10000, bitbuf = 0;
int v, count, segments;
unsigned offset;
segments = bytestream2_get_le32(gb);
... | {
"code": [
" int v, count, segments;"
],
"line_no": [
11
]
} | static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)
{
const uint8_t *VAR_4 = VAR_1;
const uint8_t *VAR_5 = VAR_1 + VAR_2 * VAR_3;
int VAR_6 = 0x10000, VAR_7 = 0;
int VAR_8, VAR_9, VAR_10;
unsigned VAR_11;
VAR_10 = bytestream2_get_le32(VAR_0);
VAR_11 =... | [
"static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_1;",
"const uint8_t *VAR_5 = VAR_1 + VAR_2 * VAR_3;",
"int VAR_6 = 0x10000, VAR_7 = 0;",
"int VAR_8, VAR_9, VAR_10;",
"unsigned VAR_11;",
"VAR_10 = bytestream2_get_le32(VAR_0);",
"VAR_11 ... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
... |
18,407 | static int qpel_motion_search(MpegEncContext * s,
int *mx_ptr, int *my_ptr, int dmin,
int src_index, int ref_index,
int size, int h)
{
MotionEstContext * const c= &s->me;
const int mx = *mx_ptr;
... | true | FFmpeg | 0da6315a70396572319e6e8726159b6f4f3ead3f | static int qpel_motion_search(MpegEncContext * s,
int *mx_ptr, int *my_ptr, int dmin,
int src_index, int ref_index,
int size, int h)
{
MotionEstContext * const c= &s->me;
const int mx = *mx_ptr;
... | {
"code": [
" const int t2= nx*nx*(tr + tl - 2*t) + 4*nx*(tr-tl) + 32*t;",
" const int c2= nx*nx*( r + l - 2*c) + 4*nx*( r- l) + 32*c;",
" const int b2= nx*nx*(br + bl - 2*b) + 4*nx*(br-bl) + 32*b;",
" int score= ny*ny*(b2 + ... | static int FUNC_0(MpegEncContext * VAR_0,
int *VAR_1, int *VAR_2, int VAR_3,
int VAR_4, int VAR_5,
int VAR_6, int VAR_7)
{
MotionEstContext * const VAR_24= &VAR_0->me;
const int VAR_8 = *VAR_1;
... | [
"static int FUNC_0(MpegEncContext * VAR_0,\nint *VAR_1, int *VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{",
"MotionEstContext * const VAR_24= &VAR_0->me;",
"const int VAR_8 = *VAR_1;",
"const int VAR_9 = *VAR_2;",
"const int VAR_10= VAR_24->sub_penalty_factor;",
"const int VAR_11= 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,
1,
1,
1,
1,
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
],
[
31,
33
],
[
37
],
[
39
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
... |
18,408 | void migrate_fd_error(MigrationState *s)
{
trace_migrate_fd_error();
assert(s->to_dst_file == NULL);
migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,
MIGRATION_STATUS_FAILED);
notifier_list_notify(&migration_state_notifiers, s);
}
| true | qemu | d59ce6f34434bf47a9b26138c908650bf9a24be1 | void migrate_fd_error(MigrationState *s)
{
trace_migrate_fd_error();
assert(s->to_dst_file == NULL);
migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,
MIGRATION_STATUS_FAILED);
notifier_list_notify(&migration_state_notifiers, s);
}
| {
"code": [
"void migrate_fd_error(MigrationState *s)",
" trace_migrate_fd_error();"
],
"line_no": [
1,
5
]
} | void FUNC_0(MigrationState *VAR_0)
{
trace_migrate_fd_error();
assert(VAR_0->to_dst_file == NULL);
migrate_set_state(&VAR_0->state, MIGRATION_STATUS_SETUP,
MIGRATION_STATUS_FAILED);
notifier_list_notify(&migration_state_notifiers, VAR_0);
}
| [
"void FUNC_0(MigrationState *VAR_0)\n{",
"trace_migrate_fd_error();",
"assert(VAR_0->to_dst_file == NULL);",
"migrate_set_state(&VAR_0->state, MIGRATION_STATUS_SETUP,\nMIGRATION_STATUS_FAILED);",
"notifier_list_notify(&migration_state_notifiers, VAR_0);",
"}"
] | [
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
]
] |
18,410 | static uint32_t rtl8139_TxStatus_read(RTL8139State *s, uint8_t addr, int size)
{
uint32_t reg = (addr - TxStatus0) / 4;
uint32_t offset = addr & 0x3;
uint32_t ret = 0;
if (addr & (size - 1)) {
DPRINTF("not implemented read for TxStatus addr=0x%x size=0x%x\n", addr,
size)... | true | qemu | 3e48dd4a2d48aabafe22ce3611d65544d0234a69 | static uint32_t rtl8139_TxStatus_read(RTL8139State *s, uint8_t addr, int size)
{
uint32_t reg = (addr - TxStatus0) / 4;
uint32_t offset = addr & 0x3;
uint32_t ret = 0;
if (addr & (size - 1)) {
DPRINTF("not implemented read for TxStatus addr=0x%x size=0x%x\n", addr,
size)... | {
"code": [
"static uint32_t rtl8139_TxStatus_read(RTL8139State *s, uint8_t addr, int size)",
" uint32_t reg = (addr - TxStatus0) / 4;",
" DPRINTF(\"not implemented read for TxStatus addr=0x%x size=0x%x\\n\", addr,",
" size);",
" ret = (s->TxStatus[reg] >> offset * ... | static uint32_t FUNC_0(RTL8139State *s, uint8_t addr, int size)
{
uint32_t reg = (addr - TxStatus0) / 4;
uint32_t offset = addr & 0x3;
uint32_t ret = 0;
if (addr & (size - 1)) {
DPRINTF("not implemented read for TxStatus addr=0x%x size=0x%x\n", addr,
size);
retu... | [
"static uint32_t FUNC_0(RTL8139State *s, uint8_t addr, int size)\n{",
"uint32_t reg = (addr - TxStatus0) / 4;",
"uint32_t offset = addr & 0x3;",
"uint32_t ret = 0;",
"if (addr & (size - 1)) {",
"DPRINTF(\"not implemented read for TxStatus addr=0x%x size=0x%x\\n\", addr,\nsize);",
"return ret;",
"}",
... | [
1,
1,
0,
0,
0,
1,
0,
0,
0,
1,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31,
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
18,414 | static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable;
int quant_mat, blk_size_changed = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
ctx->gop_flags... | true | FFmpeg | a82468514048fb87d9bf38689866bc3b9aaccd02 | static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable;
int quant_mat, blk_size_changed = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
ctx->gop_flags... | {
"code": [
" result = ff_ivi_init_planes(ctx->planes, &pic_conf, 0);"
],
"line_no": [
115
]
} | static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11 = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
VAR_0->gop_flags = get_bits(&VAR_0->gb, 8);
V... | [
"static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11 = 0;",
"IVIBandDesc *band, *band1, *band2;",
"IVIPicConfig pic_conf;",
"VAR_0->gop_flags = get_bits(&VAR_0->gb, 8);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
],
[
57
... |
18,415 | static void virtio_gpu_cleanup_mapping(struct virtio_gpu_simple_resource *res)
{
virtio_gpu_cleanup_mapping_iov(res->iov, res->iov_cnt);
g_free(res->iov);
res->iov = NULL;
res->iov_cnt = 0;
}
| true | qemu | 7f3be0f20ff8d976ab982cc06026cac0600f1fb6 | static void virtio_gpu_cleanup_mapping(struct virtio_gpu_simple_resource *res)
{
virtio_gpu_cleanup_mapping_iov(res->iov, res->iov_cnt);
g_free(res->iov);
res->iov = NULL;
res->iov_cnt = 0;
}
| {
"code": [
" g_free(res->iov);"
],
"line_no": [
7
]
} | static void FUNC_0(struct virtio_gpu_simple_resource *VAR_0)
{
virtio_gpu_cleanup_mapping_iov(VAR_0->iov, VAR_0->iov_cnt);
g_free(VAR_0->iov);
VAR_0->iov = NULL;
VAR_0->iov_cnt = 0;
}
| [
"static void FUNC_0(struct virtio_gpu_simple_resource *VAR_0)\n{",
"virtio_gpu_cleanup_mapping_iov(VAR_0->iov, VAR_0->iov_cnt);",
"g_free(VAR_0->iov);",
"VAR_0->iov = NULL;",
"VAR_0->iov_cnt = 0;",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
18,416 | static int get_packet(URLContext *s, int for_header)
{
RTMPContext *rt = s->priv_data;
int ret;
uint8_t *p;
const uint8_t *next;
uint32_t data_size;
uint32_t ts, cts, pts=0;
if (rt->state == STATE_STOPPED)
return AVERROR_EOF;
for (;;) {
RTMPPacket rpkt = { ... | false | FFmpeg | add41decd94b2d3581a3715ba10f27168b8cdb1b | static int get_packet(URLContext *s, int for_header)
{
RTMPContext *rt = s->priv_data;
int ret;
uint8_t *p;
const uint8_t *next;
uint32_t data_size;
uint32_t ts, cts, pts=0;
if (rt->state == STATE_STOPPED)
return AVERROR_EOF;
for (;;) {
RTMPPacket rpkt = { ... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0, int VAR_1)
{
RTMPContext *rt = VAR_0->priv_data;
int VAR_2;
uint8_t *p;
const uint8_t *VAR_3;
uint32_t data_size;
uint32_t ts, cts, pts=0;
if (rt->state == STATE_STOPPED)
return AVERROR_EOF;
for (;;) {
RTMPPacket rpkt = ... | [
"static int FUNC_0(URLContext *VAR_0, int VAR_1)\n{",
"RTMPContext *rt = VAR_0->priv_data;",
"int VAR_2;",
"uint8_t *p;",
"const uint8_t *VAR_3;",
"uint32_t data_size;",
"uint32_t ts, cts, pts=0;",
"if (rt->state == STATE_STOPPED)\nreturn AVERROR_EOF;",
"for (;;) {",
"RTMPPacket rpkt = { 0 };",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,417 | static int pcm_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
int n, sample_size, v;
const short *samples;
unsigned char *dst;
const uint8_t *srcu8;
const int16_t *samples_int16_t;
const int32_t *samples_int32_t;
con... | false | FFmpeg | 06af335a33a771bad05dc1873c3f9d8e84abfb45 | static int pcm_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
int n, sample_size, v;
const short *samples;
unsigned char *dst;
const uint8_t *srcu8;
const int16_t *samples_int16_t;
const int32_t *samples_int32_t;
con... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
unsigned char *VAR_1, int VAR_2, void *VAR_3)
{
int VAR_4, VAR_5, VAR_6;
const short *VAR_7;
unsigned char *VAR_8;
const uint8_t *VAR_9;
const int16_t *VAR_10;
const int32_t *VAR_11;
const int64_t *VAR_12;
con... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2, void *VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"const short *VAR_7;",
"unsigned char *VAR_8;",
"const uint8_t *VAR_9;",
"const int16_t *VAR_10;",
"const int32_t *VAR_11;",
"const int64_t *VAR_12;",
"const uint16_t *VAR_13;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[... |
18,418 | static int exif_add_metadata(AVCodecContext *avctx, int count, int type,
const char *name, const char *sep,
GetByteContext *gb, int le,
AVDictionary **metadata)
{
switch(type) {
case 0:
av_log(avctx, AV_LOG_WAR... | false | FFmpeg | ce87711df563a9d2d0537a062b86bb91b15ea1a0 | static int exif_add_metadata(AVCodecContext *avctx, int count, int type,
const char *name, const char *sep,
GetByteContext *gb, int le,
AVDictionary **metadata)
{
switch(type) {
case 0:
av_log(avctx, AV_LOG_WAR... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2,
const char *VAR_3, const char *VAR_4,
GetByteContext *VAR_5, int VAR_6,
AVDictionary **VAR_7)
{
switch(VAR_2) {
case 0:
av_log(VAR_0, AV_LOG_WARNIN... | [
"static int FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2,\nconst char *VAR_3, const char *VAR_4,\nGetByteContext *VAR_5, int VAR_6,\nAVDictionary **VAR_7)\n{",
"switch(VAR_2) {",
"case 0:\nav_log(VAR_0, AV_LOG_WARNING,\n\"Invalid TIFF tag VAR_2 0 found for %s with size %d\\n\",\nVAR_3, VAR_1);",
"return... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51
... |
18,420 | static int mtv_probe(AVProbeData *p)
{
if(p->buf_size < 3)
return 0;
/* Magic is 'AMV' */
if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V')
return 0;
return AVPROBE_SCORE_MAX;
}
| false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int mtv_probe(AVProbeData *p)
{
if(p->buf_size < 3)
return 0;
if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V')
return 0;
return AVPROBE_SCORE_MAX;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if(VAR_0->buf_size < 3)
return 0;
if(*(VAR_0->buf) != 'A' || *(VAR_0->buf+1) != 'M' || *(VAR_0->buf+2) != 'V')
return 0;
return AVPROBE_SCORE_MAX;
}
| [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if(VAR_0->buf_size < 3)\nreturn 0;",
"if(*(VAR_0->buf) != 'A' || *(VAR_0->buf+1) != 'M' || *(VAR_0->buf+2) != 'V')\nreturn 0;",
"return AVPROBE_SCORE_MAX;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
15,
17
],
[
21
],
[
23
]
] |
18,421 | static int vmd_probe(AVProbeData *p)
{
if (p->buf_size < 2)
return 0;
/* check if the first 2 bytes of the file contain the appropriate size
* of a VMD header chunk */
if (AV_RL16(&p->buf[0]) != VMD_HEADER_SIZE - 2)
return 0;
/* only return half certainty since this chec... | false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int vmd_probe(AVProbeData *p)
{
if (p->buf_size < 2)
return 0;
if (AV_RL16(&p->buf[0]) != VMD_HEADER_SIZE - 2)
return 0;
return AVPROBE_SCORE_MAX / 2;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if (VAR_0->buf_size < 2)
return 0;
if (AV_RL16(&VAR_0->buf[0]) != VMD_HEADER_SIZE - 2)
return 0;
return AVPROBE_SCORE_MAX / 2;
}
| [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if (VAR_0->buf_size < 2)\nreturn 0;",
"if (AV_RL16(&VAR_0->buf[0]) != VMD_HEADER_SIZE - 2)\nreturn 0;",
"return AVPROBE_SCORE_MAX / 2;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
15,
17
],
[
23
],
[
25
]
] |
18,422 | voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
{
VocDecContext *voc = s->priv_data;
AVCodecContext *dec = st->codec;
ByteIOContext *pb = s->pb;
VocType type;
int size, tmp_codec;
int sample_rate = 0;
int channels = 1;
while (!voc->remaining_size)... | false | FFmpeg | f61cbc22d3ce8ec0e2644d0fa565413c057deaa0 | voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
{
VocDecContext *voc = s->priv_data;
AVCodecContext *dec = st->codec;
ByteIOContext *pb = s->pb;
VocType type;
int size, tmp_codec;
int sample_rate = 0;
int channels = 1;
while (!voc->remaining_size)... | {
"code": [],
"line_no": []
} | FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVStream *VAR_2, int VAR_3)
{
VocDecContext *voc = VAR_0->priv_data;
AVCodecContext *dec = VAR_2->codec;
ByteIOContext *pb = VAR_0->pb;
VocType type;
int VAR_4, VAR_5;
int VAR_6 = 0;
int VAR_7 = 1;
while (!voc->remaining_size) {
... | [
"FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVStream *VAR_2, int VAR_3)\n{",
"VocDecContext *voc = VAR_0->priv_data;",
"AVCodecContext *dec = VAR_2->codec;",
"ByteIOContext *pb = VAR_0->pb;",
"VocType type;",
"int VAR_4, VAR_5;",
"int VAR_6 = 0;",
"int VAR_7 = 1;",
"while (!voc->remaining_size)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,... |
18,423 | static inline int mjpeg_decode_dc(MJpegDecodeContext *s, int dc_index)
{
int code;
code = get_vlc2(&s->gb, s->vlcs[0][dc_index].table, 9, 2);
if (code < 0) {
av_log(s->avctx, AV_LOG_WARNING,
"mjpeg_decode_dc: bad vlc: %d:%d (%p)\n",
0, dc_index, &s->vlcs[0][dc_in... | true | FFmpeg | 6d6eabd399eb20b69d10234ef746f2d3d4c72dcb | static inline int mjpeg_decode_dc(MJpegDecodeContext *s, int dc_index)
{
int code;
code = get_vlc2(&s->gb, s->vlcs[0][dc_index].table, 9, 2);
if (code < 0) {
av_log(s->avctx, AV_LOG_WARNING,
"mjpeg_decode_dc: bad vlc: %d:%d (%p)\n",
0, dc_index, &s->vlcs[0][dc_in... | {
"code": [
" if (code < 0) {"
],
"line_no": [
9
]
} | static inline int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1)
{
int VAR_2;
VAR_2 = get_vlc2(&VAR_0->gb, VAR_0->vlcs[0][VAR_1].table, 9, 2);
if (VAR_2 < 0) {
av_log(VAR_0->avctx, AV_LOG_WARNING,
"FUNC_0: bad vlc: %d:%d (%p)\n",
0, VAR_1, &VAR_0->vlcs[0][VAR_1]);
... | [
"static inline int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"VAR_2 = get_vlc2(&VAR_0->gb, VAR_0->vlcs[0][VAR_1].table, 9, 2);",
"if (VAR_2 < 0) {",
"av_log(VAR_0->avctx, AV_LOG_WARNING,\n\"FUNC_0: bad vlc: %d:%d (%p)\\n\",\n0, VAR_1, &VAR_0->vlcs[0][VAR_1]);",
"return 0xffff;",
"}... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31
]
] |
18,424 | static void palmte_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
MemoryRegion *address_space_mem = g... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void palmte_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
MemoryRegion *address_space_mem = g... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(MachineState *VAR_0)
{
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
MemoryRegion *address_space_mem = get_system_memory();
struct omap_mpu_state_s *VAR_5;
int VAR_6 = 0x00800... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"MemoryRegion *address_space_mem = get_system_memory();",
"struct omap_mpu_state_s *VAR_5;",
"int VAR_6 = 0x... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
43,
45
],
[
47
],
[... |
18,428 | static void aio_signal_handler(int signum)
{
#if !defined(QEMU_IMG) && !defined(QEMU_NBD)
CPUState *env = cpu_single_env;
if (env) {
/* stop the currently executing cpu because a timer occured */
cpu_interrupt(env, CPU_INTERRUPT_EXIT);
#ifdef USE_KQEMU
if (env->kqemu_enabled) {
... | true | qemu | baf35cb90204d75404892aa4e52628ae7a00669b | static void aio_signal_handler(int signum)
{
#if !defined(QEMU_IMG) && !defined(QEMU_NBD)
CPUState *env = cpu_single_env;
if (env) {
cpu_interrupt(env, CPU_INTERRUPT_EXIT);
#ifdef USE_KQEMU
if (env->kqemu_enabled) {
kqemu_cpu_interrupt(env);
}
#endif
... | {
"code": [
"static void aio_signal_handler(int signum)",
"#if !defined(QEMU_IMG) && !defined(QEMU_NBD)",
" CPUState *env = cpu_single_env;",
" if (env) {",
" cpu_interrupt(env, CPU_INTERRUPT_EXIT);",
"#ifdef USE_KQEMU",
" if (env->kqemu_enabled) {",
" kq... | static void FUNC_0(int VAR_0)
{
#if !defined(QEMU_IMG) && !defined(QEMU_NBD)
CPUState *env = cpu_single_env;
if (env) {
cpu_interrupt(env, CPU_INTERRUPT_EXIT);
#ifdef USE_KQEMU
if (env->kqemu_enabled) {
kqemu_cpu_interrupt(env);
}
#endif
}
#endif
}
| [
"static void FUNC_0(int VAR_0)\n{",
"#if !defined(QEMU_IMG) && !defined(QEMU_NBD)\nCPUState *env = cpu_single_env;",
"if (env) {",
"cpu_interrupt(env, CPU_INTERRUPT_EXIT);",
"#ifdef USE_KQEMU\nif (env->kqemu_enabled) {",
"kqemu_cpu_interrupt(env);",
"}",
"#endif\n}",
"#endif\n}"
] | [
1,
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29
]
] |
18,429 | static int mov_read_mfra(MOVContext *c, AVIOContext *f)
{
int64_t stream_size = avio_size(f);
int64_t original_pos = avio_tell(f);
int64_t seek_ret;
int32_t mfra_size;
int ret = -1;
if ((seek_ret = avio_seek(f, stream_size - 4, SEEK_SET)) < 0) {
ret = seek_ret;
goto fail... | true | FFmpeg | db42d93a61be26873be6115c57f5921b4dfdec14 | static int mov_read_mfra(MOVContext *c, AVIOContext *f)
{
int64_t stream_size = avio_size(f);
int64_t original_pos = avio_tell(f);
int64_t seek_ret;
int32_t mfra_size;
int ret = -1;
if ((seek_ret = avio_seek(f, stream_size - 4, SEEK_SET)) < 0) {
ret = seek_ret;
goto fail... | {
"code": [
" ret = 0;",
" while (!read_tfra(c, f)) {"
],
"line_no": [
57,
61
]
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1)
{
int64_t stream_size = avio_size(VAR_1);
int64_t original_pos = avio_tell(VAR_1);
int64_t seek_ret;
int32_t mfra_size;
int VAR_2 = -1;
if ((seek_ret = avio_seek(VAR_1, stream_size - 4, SEEK_SET)) < 0) {
VAR_2 = seek_ret;
... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1)\n{",
"int64_t stream_size = avio_size(VAR_1);",
"int64_t original_pos = avio_tell(VAR_1);",
"int64_t seek_ret;",
"int32_t mfra_size;",
"int VAR_2 = -1;",
"if ((seek_ret = avio_seek(VAR_1, stream_size - 4, SEEK_SET)) < 0) {",
"VAR_2 = seek_ret;"... | [
0,
0,
0,
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
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
18,430 | static int qemu_save_device_state(QEMUFile *f)
{
SaveStateEntry *se;
qemu_put_be32(f, QEMU_VM_FILE_MAGIC);
qemu_put_be32(f, QEMU_VM_FILE_VERSION);
cpu_synchronize_all_states();
QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
if (se->is_ram) {
continue;
}
if ((... | true | qemu | f68945d42bab700d95b87f62e0898606ce2421ed | static int qemu_save_device_state(QEMUFile *f)
{
SaveStateEntry *se;
qemu_put_be32(f, QEMU_VM_FILE_MAGIC);
qemu_put_be32(f, QEMU_VM_FILE_VERSION);
cpu_synchronize_all_states();
QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
if (se->is_ram) {
continue;
}
if ((... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0)
{
SaveStateEntry *se;
qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC);
qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION);
cpu_synchronize_all_states();
QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
if (se->is_ram) {
continue;
}
if ((!se-... | [
"static int FUNC_0(QEMUFile *VAR_0)\n{",
"SaveStateEntry *se;",
"qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC);",
"qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION);",
"cpu_synchronize_all_states();",
"QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {",
"if (se->is_ram) {",
"continue;",
"}",
"if ((!se->ops ... | [
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
]
] |
18,431 | void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src,
int stride, int h, int x, int y) {
POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - x) * (8 - y)),
(( ... | true | FFmpeg | f5b2476fd322a4d36fde912cb2a30a850bd77f43 | void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src,
int stride, int h, int x, int y) {
POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - x) * (8 - y)),
(( ... | {
"code": [
" vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;",
" vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;"
],
"line_no": [
43,
43
]
} | void FUNC_0(uint8_t * VAR_0, uint8_t * VAR_1,
int VAR_2, int VAR_3, int VAR_4, int VAR_5) {
POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - VAR_4) * (8 - VAR_5)),
(( V... | [
"void FUNC_0(uint8_t * VAR_0, uint8_t * VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5) {",
"POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);",
"DECLARE_ALIGNED_16(signed int, ABCD[4]) =\n{((8 - VAR_4) * (8 - VAR_5)),",
"(( VAR_4) * (8 - VAR_5)),\n((8 - VAR_4) * ( VAR_5)),\n(( VAR_4) * ( V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[... |
18,432 | static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd, const char **p,
int line_num, FFServerStream **pstream)
{
char arg[1024], arg2[1024];
FFServerStream *stream;
int val;
av_assert0(pstream);
stream = *pstream;
if (... | true | FFmpeg | 3f07dd6e392bf35a478203dc60fcbd36dfdd42aa | static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd, const char **p,
int line_num, FFServerStream **pstream)
{
char arg[1024], arg2[1024];
FFServerStream *stream;
int val;
av_assert0(pstream);
stream = *pstream;
if (... | {
"code": [
" if (av_dict_set(&config->video_conf, cmd, \"1\", 0) < 0)",
" if (av_dict_set(&config->video_conf, \"VideoTag\", \"arg\", 0) < 0)"
],
"line_no": [
439,
501
]
} | static int FUNC_0(FFServerConfig *VAR_0, const char *VAR_1, const char **VAR_2,
int VAR_3, FFServerStream **VAR_4)
{
char VAR_5[1024], VAR_6[1024];
FFServerStream *stream;
int VAR_7;
av_assert0(VAR_4);
stream = *VAR_4;
if (!av_strcasecmp(VAR_1,... | [
"static int FUNC_0(FFServerConfig *VAR_0, const char *VAR_1, const char **VAR_2,\nint VAR_3, FFServerStream **VAR_4)\n{",
"char VAR_5[1024], VAR_6[1024];",
"FFServerStream *stream;",
"int VAR_7;",
"av_assert0(VAR_4);",
"stream = *VAR_4;",
"if (!av_strcasecmp(VAR_1, \"<Stream\")) {",
"char *VAR_8;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,433 | static inline abi_long host_to_target_sockaddr(abi_ulong target_addr,
struct sockaddr *addr,
socklen_t len)
{
struct target_sockaddr *target_saddr;
if (len == 0) {
return 0;
}
target_saddr ... | true | qemu | 6860710cc3864382a898c847d722f950b5e01a6e | static inline abi_long host_to_target_sockaddr(abi_ulong target_addr,
struct sockaddr *addr,
socklen_t len)
{
struct target_sockaddr *target_saddr;
if (len == 0) {
return 0;
}
target_saddr ... | {
"code": [],
"line_no": []
} | static inline abi_long FUNC_0(abi_ulong target_addr,
struct sockaddr *addr,
socklen_t len)
{
struct target_sockaddr *VAR_0;
if (len == 0) {
return 0;
}
VAR_0 = lock_user(VERIFY_WRITE, targe... | [
"static inline abi_long FUNC_0(abi_ulong target_addr,\nstruct sockaddr *addr,\nsocklen_t len)\n{",
"struct target_sockaddr *VAR_0;",
"if (len == 0) {",
"return 0;",
"}",
"VAR_0 = lock_user(VERIFY_WRITE, target_addr, len, 0);",
"if (!VAR_0)\nreturn -TARGET_EFAULT;",
"memcpy(VAR_0, addr, len);",
"if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
22
],
[
24,
26
],
[
28
],
[
30,
32
],
[
34
],
[
36
],
[
38
],
[
40
],
[
42
],
[
44
],
[
46
],
[
48
],
[
50
... |
18,434 | void kvm_set_phys_mem(target_phys_addr_t start_addr,
ram_addr_t size,
ram_addr_t phys_offset)
{
KVMState *s = kvm_state;
ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK;
KVMSlot *mem;
if (start_addr & ~TARGET_PAGE_MASK) {
fprintf(stderr, "... | true | qemu | 6152e2ae4344ec8c849393da3f76f2263cc55766 | void kvm_set_phys_mem(target_phys_addr_t start_addr,
ram_addr_t size,
ram_addr_t phys_offset)
{
KVMState *s = kvm_state;
ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK;
KVMSlot *mem;
if (start_addr & ~TARGET_PAGE_MASK) {
fprintf(stderr, "... | {
"code": [
" KVMSlot *mem;",
" mem = kvm_lookup_slot(s, start_addr);",
" if (mem) {",
" if (flags >= IO_MEM_UNASSIGNED) {",
" mem->memory_size = 0;",
" mem->start_addr = start_addr;",
" mem->phys_offset = 0;",
" mem->flags = ... | void FUNC_0(target_phys_addr_t VAR_0,
ram_addr_t VAR_1,
ram_addr_t VAR_2)
{
KVMState *s = kvm_state;
ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK;
KVMSlot *mem;
if (VAR_0 & ~TARGET_PAGE_MASK) {
fprintf(stderr, "Only page-aligned memory slots ... | [
"void FUNC_0(target_phys_addr_t VAR_0,\nram_addr_t VAR_1,\nram_addr_t VAR_2)\n{",
"KVMState *s = kvm_state;",
"ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK;",
"KVMSlot *mem;",
"if (VAR_0 & ~TARGET_PAGE_MASK) {",
"fprintf(stderr, \"Only page-aligned memory slots supported\\n\");",
"abort();",
"}",
"V... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53,... |
18,435 | static void vfio_put_device(VFIOPCIDevice *vdev)
{
g_free(vdev->vbasedev.name);
if (vdev->msix) {
g_free(vdev->msix);
vdev->msix = NULL;
}
vfio_put_base_device(&vdev->vbasedev);
} | true | qemu | 3a4dbe6aa934370a92372528c1255ee1504965ee | static void vfio_put_device(VFIOPCIDevice *vdev)
{
g_free(vdev->vbasedev.name);
if (vdev->msix) {
g_free(vdev->msix);
vdev->msix = NULL;
}
vfio_put_base_device(&vdev->vbasedev);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(VFIOPCIDevice *VAR_0)
{
g_free(VAR_0->vbasedev.name);
if (VAR_0->msix) {
g_free(VAR_0->msix);
VAR_0->msix = NULL;
}
vfio_put_base_device(&VAR_0->vbasedev);
} | [
"static void FUNC_0(VFIOPCIDevice *VAR_0)\n{",
"g_free(VAR_0->vbasedev.name);",
"if (VAR_0->msix) {",
"g_free(VAR_0->msix);",
"VAR_0->msix = NULL;",
"}",
"vfio_put_base_device(&VAR_0->vbasedev);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
10
],
[
12
],
[
14
],
[
16
],
[
18
]
] |
18,436 | static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer,
const char *model, const char *name,
const char *ifname, const char *script,
const char *downscript, const char *vhostfdname,
... | true | qemu | 1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25 | static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer,
const char *model, const char *name,
const char *ifname, const char *script,
const char *downscript, const char *vhostfdname,
... | {
"code": [
" options.force = tap->has_vhostforce && tap->vhostforce;"
],
"line_no": [
79
]
} | static void FUNC_0(const NetdevTapOptions *VAR_0, NetClientState *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5,
const char *VAR_6, const char *VAR_7,
int VAR_8, in... | [
"static void FUNC_0(const NetdevTapOptions *VAR_0, NetClientState *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, const char *VAR_7,\nint VAR_8, int VAR_9, Error **VAR_10)\n{",
"Error *err = NULL;",
"TAPState *s = net_tap_fd_init(VAR_1, VAR_2, VAR_3, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47,
49
],
[
53
],
[... |
18,440 | void qemu_iovec_concat_iov(QEMUIOVector *dst,
struct iovec *src_iov, unsigned int src_cnt,
size_t soffset, size_t sbytes)
{
int i;
size_t done;
assert(dst->nalloc != -1);
for (i = 0, done = 0; done < sbytes && i < src_cnt; i++) {
if (soffset ... | true | qemu | facf98ad987a38d97e12511f81375380b407a828 | void qemu_iovec_concat_iov(QEMUIOVector *dst,
struct iovec *src_iov, unsigned int src_cnt,
size_t soffset, size_t sbytes)
{
int i;
size_t done;
assert(dst->nalloc != -1);
for (i = 0, done = 0; done < sbytes && i < src_cnt; i++) {
if (soffset ... | {
"code": [],
"line_no": []
} | void FUNC_0(QEMUIOVector *VAR_0,
struct iovec *VAR_1, unsigned int VAR_2,
size_t VAR_3, size_t VAR_4)
{
int VAR_5;
size_t done;
assert(VAR_0->nalloc != -1);
for (VAR_5 = 0, done = 0; done < VAR_4 && VAR_5 < VAR_2; VAR_5++) {
if (VAR_3 < VAR_1... | [
"void FUNC_0(QEMUIOVector *VAR_0,\nstruct iovec *VAR_1, unsigned int VAR_2,\nsize_t VAR_3, size_t VAR_4)\n{",
"int VAR_5;",
"size_t done;",
"assert(VAR_0->nalloc != -1);",
"for (VAR_5 = 0, done = 0; done < VAR_4 && VAR_5 < VAR_2; VAR_5++) {",
"if (VAR_3 < VAR_1[VAR_5].iov_len) {",
"size_t len = MIN(VAR_... | [
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
]
] |
18,441 | void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
{
Error *errp = NULL;
int paging = qdict_get_try_bool(qdict, "paging", 0);
const char *file = qdict_get_str(qdict, "filename");
bool has_begin = qdict_haskey(qdict, "begin");
bool has_length = qdict_haskey(qdict, "length");
int6... | true | qemu | b53ccc30c40df52d192e469a86c188a8649c6df3 | void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)
{
Error *errp = NULL;
int paging = qdict_get_try_bool(qdict, "paging", 0);
const char *file = qdict_get_str(qdict, "filename");
bool has_begin = qdict_haskey(qdict, "begin");
bool has_length = qdict_haskey(qdict, "length");
int6... | {
"code": [
" &errp);"
],
"line_no": [
43
]
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
Error *errp = NULL;
int VAR_2 = qdict_get_try_bool(VAR_1, "VAR_2", 0);
const char *VAR_3 = qdict_get_str(VAR_1, "filename");
bool has_begin = qdict_haskey(VAR_1, "begin");
bool has_length = qdict_haskey(VAR_1, "length");
int64_t begin = 0;... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"Error *errp = NULL;",
"int VAR_2 = qdict_get_try_bool(VAR_1, \"VAR_2\", 0);",
"const char *VAR_3 = qdict_get_str(VAR_1, \"filename\");",
"bool has_begin = qdict_haskey(VAR_1, \"begin\");",
"bool has_length = qdict_haskey(VAR_1, \"length\");",
"int64... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[... |
18,442 | static int encode_picture_ls(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
JpeglsContext * const s = avctx->priv_data;
AVFrame *pict = data;
AVFrame * const p= (AVFrame*)&s->picture;
const int near = avctx->prediction_method;
PutBitContext pb, pb2;
GetBitContext gb;... | true | FFmpeg | c8aee695c50f879186ca5f9cbaefb076a0d0343f | static int encode_picture_ls(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
JpeglsContext * const s = avctx->priv_data;
AVFrame *pict = data;
AVFrame * const p= (AVFrame*)&s->picture;
const int near = avctx->prediction_method;
PutBitContext pb, pb2;
GetBitContext gb;... | {
"code": [
" size = put_bits_count(&pb2) >> 3;",
" while(get_bits_count(&gb) < size * 8){"
],
"line_no": [
229,
233
]
} | static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3){
JpeglsContext * const s = VAR_0->priv_data;
AVFrame *pict = VAR_3;
AVFrame * const p= (AVFrame*)&s->picture;
const int VAR_4 = VAR_0->prediction_method;
PutBitContext pb, pb2;
GetBitContext gb;
uin... | [
"static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3){",
"JpeglsContext * const s = VAR_0->priv_data;",
"AVFrame *pict = VAR_3;",
"AVFrame * const p= (AVFrame*)&s->picture;",
"const int VAR_4 = VAR_0->prediction_method;",
"PutBitContext pb, pb2;",
"GetBitContext gb;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47,
49
],
[... |
18,443 | void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int endy, int status){
const int start_i= clip(startx + starty * s->mb_width , 0, s->mb_num-1);
const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num);
const int start_xy= s->mb_index2xy[start_i];
const int en... | true | FFmpeg | 04cfef21ff25e30005d3b2a42bc145324e580a2f | void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int endy, int status){
const int start_i= clip(startx + starty * s->mb_width , 0, s->mb_num-1);
const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num);
const int start_xy= s->mb_index2xy[start_i];
const int en... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5){
const int VAR_6= clip(VAR_1 + VAR_2 * VAR_0->mb_width , 0, VAR_0->mb_num-1);
const int VAR_7 = clip(VAR_3 + VAR_4 * VAR_0->mb_width , 0, VAR_0->mb_num);
const int VAR_8= VAR_0->mb_index2xy[VAR_6];
const... | [
"void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5){",
"const int VAR_6= clip(VAR_1 + VAR_2 * VAR_0->mb_width , 0, VAR_0->mb_num-1);",
"const int VAR_7 = clip(VAR_3 + VAR_4 * VAR_0->mb_width , 0, VAR_0->mb_num);",
"const int VAR_8= VAR_0->mb_index2xy[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
] | [
[
1
],
[
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
... |
18,444 | static int rtsp_parse_request(HTTPContext *c)
{
const char *p, *p1, *p2;
char cmd[32];
char url[1024];
char protocol[32];
char line[1024];
int len;
RTSPMessageHeader header1 = { 0 }, *header = &header1;
c->buffer_ptr[0] = '\0';
p = c->buffer;
get_word(cmd, sizeof(c... | false | FFmpeg | 33d6f90e3e0241939ea0be9ca9e1f335942081c8 | static int rtsp_parse_request(HTTPContext *c)
{
const char *p, *p1, *p2;
char cmd[32];
char url[1024];
char protocol[32];
char line[1024];
int len;
RTSPMessageHeader header1 = { 0 }, *header = &header1;
c->buffer_ptr[0] = '\0';
p = c->buffer;
get_word(cmd, sizeof(c... | {
"code": [],
"line_no": []
} | static int FUNC_0(HTTPContext *VAR_0)
{
const char *VAR_1, *VAR_2, *VAR_3;
char VAR_4[32];
char VAR_5[1024];
char VAR_6[32];
char VAR_7[1024];
int VAR_8;
RTSPMessageHeader header1 = { 0 }, *header = &header1;
VAR_0->buffer_ptr[0] = '\0';
VAR_1 = VAR_0->buffer;
get_... | [
"static int FUNC_0(HTTPContext *VAR_0)\n{",
"const char *VAR_1, *VAR_2, *VAR_3;",
"char VAR_4[32];",
"char VAR_5[1024];",
"char VAR_6[32];",
"char VAR_7[1024];",
"int VAR_8;",
"RTSPMessageHeader header1 = { 0 }, *header = &header1;",
"VAR_0->buffer_ptr[0] = '\\0';",
"VAR_1 = VAR_0->buffer;",
"ge... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
... |
18,445 | bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)
{
assert(cookie->type < BDRV_MAX_IOTYPE);
bs->stats.nr_bytes[cookie->type] += cookie->bytes;
bs->stats.nr_ops[cookie->type]++;
bs->stats.total_time_ns[cookie->type] += get_clock() -
cookie-... | true | qemu | 5e5a94b60518002e8ecc7afa78a9e7565b23e38f | bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)
{
assert(cookie->type < BDRV_MAX_IOTYPE);
bs->stats.nr_bytes[cookie->type] += cookie->bytes;
bs->stats.nr_ops[cookie->type]++;
bs->stats.total_time_ns[cookie->type] += get_clock() -
cookie-... | {
"code": [
"bdrv_acct_done(BlockDriverState *bs, BlockAcctCookie *cookie)",
" assert(cookie->type < BDRV_MAX_IOTYPE);",
" bs->stats.nr_bytes[cookie->type] += cookie->bytes;",
" bs->stats.nr_ops[cookie->type]++;",
" bs->stats.total_time_ns[cookie->type] += get_clock() -",
" ... | FUNC_0(BlockDriverState *VAR_0, BlockAcctCookie *VAR_1)
{
assert(VAR_1->type < BDRV_MAX_IOTYPE);
VAR_0->stats.nr_bytes[VAR_1->type] += VAR_1->bytes;
VAR_0->stats.nr_ops[VAR_1->type]++;
VAR_0->stats.total_time_ns[VAR_1->type] += get_clock() -
VAR_1->st... | [
"FUNC_0(BlockDriverState *VAR_0, BlockAcctCookie *VAR_1)\n{",
"assert(VAR_1->type < BDRV_MAX_IOTYPE);",
"VAR_0->stats.nr_bytes[VAR_1->type] += VAR_1->bytes;",
"VAR_0->stats.nr_ops[VAR_1->type]++;",
"VAR_0->stats.total_time_ns[VAR_1->type] += get_clock() -\nVAR_1->start_time_ns;",
"}"
] | [
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
]
] |
18,446 | static inline void idct4row(DCTELEM *row)
{
int c0, c1, c2, c3, a0, a1, a2, a3;
//const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
a0 = row[0];
a1 = row[1];
a2 = row[2];
a3 = row[3];
c0 = (a0 + a2)*R3 + (1 << (R_SHIFT - 1));
c2 = (a0 - a2)*R3 + (1 << (R_SHIFT - 1));
c1 = a1... | true | FFmpeg | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 | static inline void idct4row(DCTELEM *row)
{
int c0, c1, c2, c3, a0, a1, a2, a3;
a0 = row[0];
a1 = row[1];
a2 = row[2];
a3 = row[3];
c0 = (a0 + a2)*R3 + (1 << (R_SHIFT - 1));
c2 = (a0 - a2)*R3 + (1 << (R_SHIFT - 1));
c1 = a1 * R1 + a3 * R2;
c3 = a1 * R2 - a3 * R1;
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(DCTELEM *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
VAR_5 = VAR_0[0];
VAR_6 = VAR_0[1];
VAR_7 = VAR_0[2];
VAR_8 = VAR_0[3];
VAR_1 = (VAR_5 + VAR_7)*R3 + (1 << (R_SHIFT - 1));
VAR_3 = (VAR_5 - VAR_7)*R3 + (1 << (R_SHIFT - 1))... | [
"static inline void FUNC_0(DCTELEM *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"VAR_5 = VAR_0[0];",
"VAR_6 = VAR_0[1];",
"VAR_7 = VAR_0[2];",
"VAR_8 = VAR_0[3];",
"VAR_1 = (VAR_5 + VAR_7)*R3 + (1 << (R_SHIFT - 1));",
"VAR_3 = (VAR_5 - VAR_7)*R3 + (1 << (R_SHIFT - 1));",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
18,448 | static void dump_stream_format(AVFormatContext *ic, int i,
int index, int is_output)
{
char buf[256];
int flags = (is_output ? ic->oformat->flags : ic->iformat->flags);
AVStream *st = ic->streams[i];
int g = av_gcd(st->time_base.num, st->time_base.den);
AVDictionaryEnt... | true | FFmpeg | 75511c293add07db1cca58dcd8b08c33fc2f1075 | static void dump_stream_format(AVFormatContext *ic, int i,
int index, int is_output)
{
char buf[256];
int flags = (is_output ? ic->oformat->flags : ic->iformat->flags);
AVStream *st = ic->streams[i];
int g = av_gcd(st->time_base.num, st->time_base.den);
AVDictionaryEnt... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, int VAR_1,
int VAR_2, int VAR_3)
{
char VAR_4[256];
int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5);
AVStream *st = VAR_0->streams[VAR_1];
int VAR_6 = av_gcd(st->time_base.num, st->time_base.den);
AVDiction... | [
"static void FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint VAR_2, int VAR_3)\n{",
"char VAR_4[256];",
"int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5);",
"AVStream *st = VAR_0->streams[VAR_1];",
"int VAR_6 = av_gcd(st->time_base.num, st->time_base.den);",
"AVDictionaryEntry *lang = 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
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
13,
14
],
[
15,
16
],
[
17,
18
],
[
19
],
[
20,
21
],
[
22
],
[
23,
24,
25,
26
],
[
27,
... |
18,449 | int rom_load_all(void)
{
target_phys_addr_t addr = 0;
int memtype;
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (addr < rom->min)
addr = rom->min;
if (rom->max) {
/* load address range */
if (rom->align) {
addr += (rom->... | true | qemu | 15ff7705444ab9663189946d6d648431e0649df1 | int rom_load_all(void)
{
target_phys_addr_t addr = 0;
int memtype;
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (addr < rom->min)
addr = rom->min;
if (rom->max) {
if (rom->align) {
addr += (rom->align-1);
... | {
"code": [
" return -1;"
],
"line_no": [
41
]
} | int FUNC_0(void)
{
target_phys_addr_t addr = 0;
int VAR_0;
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (addr < rom->min)
addr = rom->min;
if (rom->max) {
if (rom->align) {
addr += (rom->align-1);
addr ... | [
"int FUNC_0(void)\n{",
"target_phys_addr_t addr = 0;",
"int VAR_0;",
"Rom *rom;",
"QTAILQ_FOREACH(rom, &roms, next) {",
"if (addr < rom->min)\naddr = rom->min;",
"if (rom->max) {",
"if (rom->align) {",
"addr += (rom->align-1);",
"addr &= ~(rom->align-1);",
"}",
"if (addr + rom->romsize > rom->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,... |
18,450 | static uint32_t vmsvga_value_read(void *opaque, uint32_t address)
{
uint32_t caps;
struct vmsvga_state_s *s = opaque;
DisplaySurface *surface = qemu_console_surface(s->vga.con);
uint32_t ret;
switch (s->index) {
case SVGA_REG_ID:
ret = s->svgaid;
break;
case SVG... | true | qemu | eb2f9b024d68884a3b25e63e4dbf90b67f8da236 | static uint32_t vmsvga_value_read(void *opaque, uint32_t address)
{
uint32_t caps;
struct vmsvga_state_s *s = opaque;
DisplaySurface *surface = qemu_console_surface(s->vga.con);
uint32_t ret;
switch (s->index) {
case SVGA_REG_ID:
ret = s->svgaid;
break;
case SVG... | {
"code": [
" ret = surface_width(surface);",
" ret = surface_height(surface);",
" ret = s->depth;",
" ret = (s->depth + 7) & ~7;",
" ret = surface->pf.rmask;",
" ret = surface->pf.gmask;",
" ret = surface->pf.bmask;",
" ret = s->... | static uint32_t FUNC_0(void *opaque, uint32_t address)
{
uint32_t caps;
struct vmsvga_state_s *VAR_0 = opaque;
DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con);
uint32_t ret;
switch (VAR_0->index) {
case SVGA_REG_ID:
ret = VAR_0->svgaid;
break;
cas... | [
"static uint32_t FUNC_0(void *opaque, uint32_t address)\n{",
"uint32_t caps;",
"struct vmsvga_state_s *VAR_0 = opaque;",
"DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con);",
"uint32_t ret;",
"switch (VAR_0->index) {",
"case SVGA_REG_ID:\nret = VAR_0->svgaid;",
"break;",
"case SVGA_REG_... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
25,
27
],
[
29
],
[
33,
35
],
[
37
],
[
41,
43
],
[
45
],
[
49,
51
],
[
53
],
[
57,
59
... |
18,452 | static uint32_t pxa2xx_gpio_read(void *opaque, target_phys_addr_t offset)
{
struct pxa2xx_gpio_info_s *s = (struct pxa2xx_gpio_info_s *) opaque;
uint32_t ret;
int bank;
offset -= s->base;
if (offset >= 0x200)
return 0;
bank = pxa2xx_gpio_regs[offset].bank;
switch (pxa2xx_gpio_regs[of... | true | qemu | 2b76bdc965ba7b4f27133cb345101d9535ddaa79 | static uint32_t pxa2xx_gpio_read(void *opaque, target_phys_addr_t offset)
{
struct pxa2xx_gpio_info_s *s = (struct pxa2xx_gpio_info_s *) opaque;
uint32_t ret;
int bank;
offset -= s->base;
if (offset >= 0x200)
return 0;
bank = pxa2xx_gpio_regs[offset].bank;
switch (pxa2xx_gpio_regs[of... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
struct pxa2xx_gpio_info_s *VAR_0 = (struct pxa2xx_gpio_info_s *) opaque;
uint32_t ret;
int VAR_1;
offset -= VAR_0->base;
if (offset >= 0x200)
return 0;
VAR_1 = pxa2xx_gpio_regs[offset].VAR_1;
switch (pxa2xx_gpio_regs[o... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"struct pxa2xx_gpio_info_s *VAR_0 = (struct pxa2xx_gpio_info_s *) opaque;",
"uint32_t ret;",
"int VAR_1;",
"offset -= VAR_0->base;",
"if (offset >= 0x200)\nreturn 0;",
"VAR_1 = pxa2xx_gpio_regs[offset].VAR_1;",
"switch (pxa2xx_gpio_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7,
8
],
[
9
],
[
10
],
[
11,
12
],
[
13,
14
],
[
15,
16
],
[
17,
18
],
[
19,
20
],
[
21,
22,
23
],
[
24,
25
],
[
... |
18,453 | void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
unsigned i;
for(i=0; 3*i<src_size; i++)
{
dst[4*i + 0] = src[3*i + 2];
dst[4*i + 1] = src[3*i + 1];
dst[4*i + 2] = src[3*i + 0];
dst[4*i + 3] = 0;
}
}
| true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
unsigned i;
for(i=0; 3*i<src_size; i++)
{
dst[4*i + 0] = src[3*i + 2];
dst[4*i + 1] = src[3*i + 1];
dst[4*i + 2] = src[3*i + 0];
dst[4*i + 3] = 0;
}
}
| {
"code": [
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)",
"\tunsigned i;",
"\tunsigne... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)
{
unsigned VAR_3;
for(VAR_3=0; 3*VAR_3<VAR_2; VAR_3++)
{
VAR_1[4*VAR_3 + 0] = VAR_0[3*VAR_3 + 2];
VAR_1[4*VAR_3 + 1] = VAR_0[3*VAR_3 + 1];
VAR_1[4*VAR_3 + 2] = VAR_0[3*VAR_3 + 0];
VAR_1[4*VAR_3 + 3] = 0;
}
}
| [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{",
"unsigned VAR_3;",
"for(VAR_3=0; 3*VAR_3<VAR_2; VAR_3++)",
"{",
"VAR_1[4*VAR_3 + 0] = VAR_0[3*VAR_3 + 2];",
"VAR_1[4*VAR_3 + 1] = VAR_0[3*VAR_3 + 1];",
"VAR_1[4*VAR_3 + 2] = VAR_0[3*VAR_3 + 0];",
"VAR_1[4*VAR_3 + 3] = 0;",
"... | [
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,454 | int qcrypto_init(Error **errp)
{
#ifdef CONFIG_GNUTLS
int ret;
ret = gnutls_global_init();
if (ret < 0) {
error_setg(errp,
"Unable to initialize GNUTLS library: %s",
gnutls_strerror(ret));
return -1;
}
#ifdef DEBUG_GNUTLS
gnutls_globa... | true | qemu | 373166636b9f07c60d7c32610bd346acf7d143e9 | int qcrypto_init(Error **errp)
{
#ifdef CONFIG_GNUTLS
int ret;
ret = gnutls_global_init();
if (ret < 0) {
error_setg(errp,
"Unable to initialize GNUTLS library: %s",
gnutls_strerror(ret));
return -1;
}
#ifdef DEBUG_GNUTLS
gnutls_globa... | {
"code": [
"#ifdef QCRYPTO_INIT_GCRYPT_THREADS",
" gcry_control(GCRYCTL_SET_THREAD_CBS, &qcrypto_gcrypt_thread_impl);"
],
"line_no": [
45,
47
]
} | int FUNC_0(Error **VAR_0)
{
#ifdef CONFIG_GNUTLS
int ret;
ret = gnutls_global_init();
if (ret < 0) {
error_setg(VAR_0,
"Unable to initialize GNUTLS library: %s",
gnutls_strerror(ret));
return -1;
}
#ifdef DEBUG_GNUTLS
gnutls_global_se... | [
"int FUNC_0(Error **VAR_0)\n{",
"#ifdef CONFIG_GNUTLS\nint ret;",
"ret = gnutls_global_init();",
"if (ret < 0) {",
"error_setg(VAR_0,\n\"Unable to initialize GNUTLS library: %s\",\ngnutls_strerror(ret));",
"return -1;",
"}",
"#ifdef DEBUG_GNUTLS\ngnutls_global_set_log_level(10);",
"gnutls_global_set... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[... |
18,455 | libAVFilter_QueryVendorInfo(libAVFilter *this, wchar_t **info)
{
dshowdebug("libAVFilter_QueryVendorInfo(%p)\n", this);
if (!info)
return E_POINTER;
*info = wcsdup(L"libAV");
return S_OK;
}
| true | FFmpeg | 18ce63a60e1bffc35b4df5d8a4f9a1ff1a96cb9a | libAVFilter_QueryVendorInfo(libAVFilter *this, wchar_t **info)
{
dshowdebug("libAVFilter_QueryVendorInfo(%p)\n", this);
if (!info)
return E_POINTER;
*info = wcsdup(L"libAV");
return S_OK;
}
| {
"code": [
" *info = wcsdup(L\"libAV\");",
" return S_OK;"
],
"line_no": [
13,
17
]
} | FUNC_0(libAVFilter *VAR_0, wchar_t **VAR_1)
{
dshowdebug("FUNC_0(%p)\n", VAR_0);
if (!VAR_1)
return E_POINTER;
*VAR_1 = wcsdup(L"libAV");
return S_OK;
}
| [
"FUNC_0(libAVFilter *VAR_0, wchar_t **VAR_1)\n{",
"dshowdebug(\"FUNC_0(%p)\\n\", VAR_0);",
"if (!VAR_1)\nreturn E_POINTER;",
"*VAR_1 = wcsdup(L\"libAV\");",
"return S_OK;",
"}"
] | [
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
17
],
[
19
]
] |
18,456 | static int compute_mb_distortion(CinepakEncContext *s, AVPicture *a, AVPicture *b)
{
int x, y, p, d, ret = 0;
for(y = 0; y < MB_SIZE; y++) {
for(x = 0; x < MB_SIZE; x++) {
d = a->data[0][x + y*a->linesize[0]] - b->data[0][x + y*b->linesize[0]];
ret += d*d;
}
... | true | FFmpeg | 7da9f4523159670d577a2808d4481e64008a8894 | static int compute_mb_distortion(CinepakEncContext *s, AVPicture *a, AVPicture *b)
{
int x, y, p, d, ret = 0;
for(y = 0; y < MB_SIZE; y++) {
for(x = 0; x < MB_SIZE; x++) {
d = a->data[0][x + y*a->linesize[0]] - b->data[0][x + y*b->linesize[0]];
ret += d*d;
}
... | {
"code": [
" if(s->pix_fmt == AV_PIX_FMT_YUV420P) {",
" if(s->pix_fmt == AV_PIX_FMT_YUV420P) {",
" if(s->pix_fmt == AV_PIX_FMT_YUV420P) {",
" if(s->pix_fmt == AV_PIX_FMT_YUV420P) {",
" return ret;"
],
"line_no": [
23,
23,
23,
23,
45
]
} | static int FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, AVPicture *VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7 = 0;
for(VAR_4 = 0; VAR_4 < MB_SIZE; VAR_4++) {
for(VAR_3 = 0; VAR_3 < MB_SIZE; VAR_3++) {
VAR_6 = VAR_1->data[0][VAR_3 + VAR_4*VAR_1->linesize[0]] - VAR_2->data[0][... | [
"static int FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, AVPicture *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7 = 0;",
"for(VAR_4 = 0; VAR_4 < MB_SIZE; VAR_4++) {",
"for(VAR_3 = 0; VAR_3 < MB_SIZE; VAR_3++) {",
"VAR_6 = VAR_1->data[0][VAR_3 + VAR_4*VAR_1->linesize[0]] - VAR_2->data[0][VAR_3 + V... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47... |
18,458 | static VirtIOSerialBus *virtser_bus_new(DeviceState *dev)
{
VirtIOSerialBus *bus;
bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL));
bus->qbus.allow_hotplug = 1;
return bus;
}
| true | qemu | 5e52e5f903b2648c59030637e1610b32e965d615 | static VirtIOSerialBus *virtser_bus_new(DeviceState *dev)
{
VirtIOSerialBus *bus;
bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL));
bus->qbus.allow_hotplug = 1;
return bus;
}
| {
"code": [
" VirtIOSerialBus *bus;",
"static VirtIOSerialBus *virtser_bus_new(DeviceState *dev)",
" VirtIOSerialBus *bus;",
" bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL));",
" bus->qbus.allow_hotplug = 1;",
" return bus;"
],
"line_no": [
5... | static VirtIOSerialBus *FUNC_0(DeviceState *dev)
{
VirtIOSerialBus *bus;
bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL));
bus->qbus.allow_hotplug = 1;
return bus;
}
| [
"static VirtIOSerialBus *FUNC_0(DeviceState *dev)\n{",
"VirtIOSerialBus *bus;",
"bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL));",
"bus->qbus.allow_hotplug = 1;",
"return bus;",
"}"
] | [
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
18,459 | static int vp8_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr)
{
VP8Context *s = avctx->priv_data;
VP8ThreadData *td = &s->thread_data[jobnr];
VP8ThreadData *next_td = NULL, *prev_td = NULL;
VP8Frame *curframe = s->curframe;
... | true | FFmpeg | ac4b32df71bd932838043a4838b86d11e169707f | static int vp8_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr)
{
VP8Context *s = avctx->priv_data;
VP8ThreadData *td = &s->thread_data[jobnr];
VP8ThreadData *next_td = NULL, *prev_td = NULL;
VP8Frame *curframe = s->curframe;
... | {
"code": [
"static int vp8_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata,",
" int jobnr, int threadnr)",
" vp8_decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr);",
" vp8_filter_mb_row(avctx, tdata, jobnr, threadnr);",
" ... | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int VAR_2, int VAR_3)
{
VP8Context *s = VAR_0->priv_data;
VP8ThreadData *td = &s->thread_data[VAR_2];
VP8ThreadData *next_td = NULL, *prev_td = NULL;
VP8Frame *curframe = s->curframe;
int VAR_4, VAR_5 = ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{",
"VP8Context *s = VAR_0->priv_data;",
"VP8ThreadData *td = &s->thread_data[VAR_2];",
"VP8ThreadData *next_td = NULL, *prev_td = NULL;",
"VP8Frame *curframe = s->curframe;",
"int VAR_4, VAR_5 = s->VAR_5;",
"td->thread_nr = ... | [
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
53
... |
18,460 | void rgb24tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{
long i;
for(i=0; 3*i<src_size; i++)
{
#ifdef WORDS_BIGENDIAN
/* RGB24 (= R,G,B) -> BGR32 (= A,R,G,B) */
dst[4*i + 0] = 0;
dst[4*i + 1] = src[3*i + 0];
dst[4*i + 2] = src[3*i + 1];
dst[4*i + 3] = src[3*i + 2];
#else
... | true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | void rgb24tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{
long i;
for(i=0; 3*i<src_size; i++)
{
#ifdef WORDS_BIGENDIAN
dst[4*i + 0] = 0;
dst[4*i + 1] = src[3*i + 0];
dst[4*i + 2] = src[3*i + 1];
dst[4*i + 3] = src[3*i + 2];
#else
dst[4*i + 0] = src[3*i + 2];
dst[4*i ... | {
"code": [
"\tlong i;",
"\t\t#ifdef WORDS_BIGENDIAN",
"\t\t#else",
"\t\t#endif",
"\tlong i;",
"\t\t#ifdef WORDS_BIGENDIAN",
"\t\t#else",
"\t\t#endif",
"\tlong i;",
"\tlong i;",
"\tlong i;",
"\tlong i;",
"\tlong i;",
"\tlong i;",
"\tlong i;",
"\t\t#ifdef... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)
{
long VAR_3;
for(VAR_3=0; 3*VAR_3<VAR_2; VAR_3++)
{
#ifdef WORDS_BIGENDIAN
VAR_1[4*VAR_3 + 0] = 0;
VAR_1[4*VAR_3 + 1] = VAR_0[3*VAR_3 + 0];
VAR_1[4*VAR_3 + 2] = VAR_0[3*VAR_3 + 1];
VAR_1[4*VAR_3 + 3] = VAR_0[3*VAR_3 + 2];
#... | [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)\n{",
"long VAR_3;",
"for(VAR_3=0; 3*VAR_3<VAR_2; VAR_3++)",
"{",
"#ifdef WORDS_BIGENDIAN\nVAR_1[4*VAR_3 + 0] = 0;",
"VAR_1[4*VAR_3 + 1] = VAR_0[3*VAR_3 + 0];",
"VAR_1[4*VAR_3 + 2] = VAR_0[3*VAR_3 + 1];",
"VAR_1[4*VAR_3 + 3] = VAR_0[3*VAR_3... | [
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
]
] |
18,461 | static int ea_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
EaDemuxContext *ea = s->priv_data;
ByteIOContext *pb = s->pb;
int ret = 0;
int packet_read = 0;
unsigned int chunk_type, chunk_size;
int key = 0;
int av_uninit(num_samples);
while (!packe... | true | FFmpeg | f772b7fa7d57cba2e81727c7af29110f9556f06f | static int ea_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
EaDemuxContext *ea = s->priv_data;
ByteIOContext *pb = s->pb;
int ret = 0;
int packet_read = 0;
unsigned int chunk_type, chunk_size;
int key = 0;
int av_uninit(num_samples);
while (!packe... | {
"code": [
" if (ret != chunk_size)",
" ret = AVERROR(EIO);",
" else {",
" if (ret != chunk_size)",
" ret = AVERROR_IO;",
" else {"
],
"line_no": [
71,
73,
75,
71,
195,
75
]
} | static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{
EaDemuxContext *ea = VAR_0->priv_data;
ByteIOContext *pb = VAR_0->pb;
int VAR_2 = 0;
int VAR_3 = 0;
unsigned int VAR_4, VAR_5;
int VAR_6 = 0;
int FUNC_1(num_samples);
while (!VAR_3) {
... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{",
"EaDemuxContext *ea = VAR_0->priv_data;",
"ByteIOContext *pb = VAR_0->pb;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"unsigned int VAR_4, VAR_5;",
"int VAR_6 = 0;",
"int FUNC_1(num_samples);",
"while (!VAR_3) {",
"VAR_4 = get_le32(pb);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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
],
[
35,
39
],
[
41
],
[
43,
45,
47,
49,
51
],
[
53
],
[
55
... |
18,463 | static void decode_interframe_v4a(AVCodecContext *avctx, uint8_t *src,
uint32_t size)
{
Hnm4VideoContext *hnm = avctx->priv_data;
GetByteContext gb;
uint32_t writeoffset = 0, offset;
uint8_t tag, count, previous, delta;
bytestream2_init(&gb, src, size);
... | false | FFmpeg | 4d7d9a57825ee7a6394d361b5c5b6f16422b361c | static void decode_interframe_v4a(AVCodecContext *avctx, uint8_t *src,
uint32_t size)
{
Hnm4VideoContext *hnm = avctx->priv_data;
GetByteContext gb;
uint32_t writeoffset = 0, offset;
uint8_t tag, count, previous, delta;
bytestream2_init(&gb, src, size);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,
uint32_t VAR_2)
{
Hnm4VideoContext *hnm = VAR_0->priv_data;
GetByteContext gb;
uint32_t writeoffset = 0, offset;
uint8_t tag, count, previous, delta;
bytestream2_init(&gb, VAR_1, VAR_2);
while... | [
"static void FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,\nuint32_t VAR_2)\n{",
"Hnm4VideoContext *hnm = VAR_0->priv_data;",
"GetByteContext gb;",
"uint32_t writeoffset = 0, offset;",
"uint8_t tag, count, previous, delta;",
"bytestream2_init(&gb, VAR_1, VAR_2);",
"while (bytestream2_tell(&gb) < VAR_2) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
18,465 | static void roqvideo_decode_frame(RoqContext *ri)
{
unsigned int chunk_id = 0, chunk_arg = 0;
unsigned long chunk_size = 0;
int i, j, k, nv1, nv2, vqflg = 0, vqflg_pos = -1;
int vqid, bpos, xpos, ypos, xp, yp, x, y, mx, my;
int frame_stats[2][4] = {{0},{0}};
roq_qcell *qcell;
const u... | false | FFmpeg | 7a7b1f5c4d4127ff78bed67e786d03560a9cc199 | static void roqvideo_decode_frame(RoqContext *ri)
{
unsigned int chunk_id = 0, chunk_arg = 0;
unsigned long chunk_size = 0;
int i, j, k, nv1, nv2, vqflg = 0, vqflg_pos = -1;
int vqid, bpos, xpos, ypos, xp, yp, x, y, mx, my;
int frame_stats[2][4] = {{0},{0}};
roq_qcell *qcell;
const u... | {
"code": [],
"line_no": []
} | static void FUNC_0(RoqContext *VAR_0)
{
unsigned int VAR_1 = 0, VAR_2 = 0;
unsigned long VAR_3 = 0;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0, VAR_10 = -1;
int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20;
int VAR_21[2][4] = {{0},{0}};
roq_qcell *q... | [
"static void FUNC_0(RoqContext *VAR_0)\n{",
"unsigned int VAR_1 = 0, VAR_2 = 0;",
"unsigned long VAR_3 = 0;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0, VAR_10 = -1;",
"int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20;",
"int VAR_21[2][4] = {{0},{0}};",
"roq_qce... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[... |
18,466 | static void build_udp_url(char *buf, int buf_size,
const char *hostname, int port,
int local_port, int ttl)
{
snprintf(buf, buf_size, "udp://%s:%d", hostname, port);
if (local_port >= 0)
url_add_option(buf, buf_size, "localport=%d", local_port);
... | false | FFmpeg | fc9b22dd2e5de851a89245b5357e710b93587278 | static void build_udp_url(char *buf, int buf_size,
const char *hostname, int port,
int local_port, int ttl)
{
snprintf(buf, buf_size, "udp:
if (local_port >= 0)
url_add_option(buf, buf_size, "localport=%d", local_port);
if (ttl >= 0)
... | {
"code": [],
"line_no": []
} | static void FUNC_0(char *VAR_0, int VAR_1,
const char *VAR_2, int VAR_3,
int VAR_4, int VAR_5)
{
snprintf(VAR_0, VAR_1, "udp:
if (VAR_4 >= 0)
url_add_option(VAR_0, VAR_1, "localport=%d", VAR_4);
if (VAR_5 >= 0)
url_add_option(VAR_0,... | [
"static void FUNC_0(char *VAR_0, int VAR_1,\nconst char *VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{",
"snprintf(VAR_0, VAR_1, \"udp:\nif (VAR_4 >= 0)\nurl_add_option(VAR_0, VAR_1, \"localport=%d\", VAR_4);",
"if (VAR_5 >= 0)\nurl_add_option(VAR_0, VAR_1, \"VAR_5=%d\", VAR_5);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15,
17
],
[
19
]
] |
18,467 | static av_cold int wavpack_encode_init(AVCodecContext *avctx)
{
WavPackEncodeContext *s = avctx->priv_data;
s->avctx = avctx;
if (!avctx->frame_size) {
int block_samples;
if (!(avctx->sample_rate & 1))
block_samples = avctx->sample_rate / 2;
else
... | false | FFmpeg | ddad09397247f523d7cc66c7f4ed7ea6894cc40e | static av_cold int wavpack_encode_init(AVCodecContext *avctx)
{
WavPackEncodeContext *s = avctx->priv_data;
s->avctx = avctx;
if (!avctx->frame_size) {
int block_samples;
if (!(avctx->sample_rate & 1))
block_samples = avctx->sample_rate / 2;
else
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
WavPackEncodeContext *s = avctx->priv_data;
s->avctx = avctx;
if (!avctx->frame_size) {
int VAR_0;
if (!(avctx->sample_rate & 1))
VAR_0 = avctx->sample_rate / 2;
else
VAR_0 = avctx->sample_rate;
... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"WavPackEncodeContext *s = avctx->priv_data;",
"s->avctx = avctx;",
"if (!avctx->frame_size) {",
"int VAR_0;",
"if (!(avctx->sample_rate & 1))\nVAR_0 = avctx->sample_rate / 2;",
"else\nVAR_0 = avctx->sample_rate;",
"while (VAR_0 * avctx->channels ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21,
23
],
[
27,
29
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55... |
18,468 | static int sub2video_prepare(InputStream *ist)
{
AVFormatContext *avf = input_files[ist->file_index]->ctx;
int i, w, h;
/* Compute the size of the canvas for the subtitles stream.
If the subtitles codec has set a size, use it. Otherwise use the
maximum dimensions of the video streams i... | false | FFmpeg | 72237ef6e933527be7855cb266a2a4df4dcb8096 | static int sub2video_prepare(InputStream *ist)
{
AVFormatContext *avf = input_files[ist->file_index]->ctx;
int i, w, h;
w = ist->dec_ctx->width;
h = ist->dec_ctx->height;
if (!(w && h)) {
for (i = 0; i < avf->nb_streams; i++) {
if (avf->streams[i]->codec->code... | {
"code": [],
"line_no": []
} | static int FUNC_0(InputStream *VAR_0)
{
AVFormatContext *avf = input_files[VAR_0->file_index]->ctx;
int VAR_1, VAR_2, VAR_3;
VAR_2 = VAR_0->dec_ctx->width;
VAR_3 = VAR_0->dec_ctx->height;
if (!(VAR_2 && VAR_3)) {
for (VAR_1 = 0; VAR_1 < avf->nb_streams; VAR_1++) {
... | [
"static int FUNC_0(InputStream *VAR_0)\n{",
"AVFormatContext *avf = input_files[VAR_0->file_index]->ctx;",
"int VAR_1, VAR_2, VAR_3;",
"VAR_2 = VAR_0->dec_ctx->width;",
"VAR_3 = VAR_0->dec_ctx->height;",
"if (!(VAR_2 && VAR_3)) {",
"for (VAR_1 = 0; VAR_1 < avf->nb_streams; VAR_1++) {",
"if (avf->strea... | [
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
18,469 | static int arm946_prbs_read(CPUARMState *env, const ARMCPRegInfo *ri,
uint64_t *value)
{
if (ri->crm > 8) {
return EXCP_UDEF;
}
*value = env->cp15.c6_region[ri->crm];
return 0;
}
| true | qemu | 599d64f6dc10f267a45e7abebfcafd8e7626585b | static int arm946_prbs_read(CPUARMState *env, const ARMCPRegInfo *ri,
uint64_t *value)
{
if (ri->crm > 8) {
return EXCP_UDEF;
}
*value = env->cp15.c6_region[ri->crm];
return 0;
}
| {
"code": [
" if (ri->crm > 8) {",
" if (ri->crm > 8) {"
],
"line_no": [
7,
7
]
} | static int FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,
uint64_t *VAR_2)
{
if (VAR_1->crm > 8) {
return EXCP_UDEF;
}
*VAR_2 = VAR_0->cp15.c6_region[VAR_1->crm];
return 0;
}
| [
"static int FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t *VAR_2)\n{",
"if (VAR_1->crm > 8) {",
"return EXCP_UDEF;",
"}",
"*VAR_2 = VAR_0->cp15.c6_region[VAR_1->crm];",
"return 0;",
"}"
] | [
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
18,470 | static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int ret;
if (!pbuf)
return ff_poll_frame(ctx->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
if (!nb_sam... | true | FFmpeg | 20c86571ccc71412781d4a4813e4693e0c42aec6 | static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int ret;
if (!pbuf)
return ff_poll_frame(ctx->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
if (!nb_sam... | {
"code": [
"static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)"
],
"line_no": [
1
]
} | static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef **VAR_1, int VAR_2)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int VAR_3;
if (!VAR_1)
return ff_poll_frame(VAR_0->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
if (!VAR_2)
... | [
"static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef **VAR_1, int VAR_2)\n{",
"AVFilterBufferRef *buf;",
"AVFrame *frame;",
"int VAR_3;",
"if (!VAR_1)\nreturn ff_poll_frame(VAR_0->inputs[0]);",
"frame = av_frame_alloc();",
"if (!frame)\nreturn AVERROR(ENOMEM);",
"if (!VAR_2)\nVAR_3 = av_buffer... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21,
23
],
[
27,
29
],
[
31,
33
],
[
37,
39
],
[
43
],
[
45,
47,
49,
51
],
[
53
],
[
55,
57,
59,
61,
63
... |
18,471 | int cpu_ppc_register (CPUPPCState *env, ppc_def_t *def)
{
env->msr_mask = def->msr_mask;
env->mmu_model = def->mmu_model;
env->excp_model = def->excp_model;
env->bus_model = def->bus_model;
env->bfd_mach = def->bfd_mach;
if (create_ppc_opcodes(env, def) < 0)
return -1;
init_... | true | qemu | 12de9a396acbc95e25c5d60ed097cc55777eaaed | int cpu_ppc_register (CPUPPCState *env, ppc_def_t *def)
{
env->msr_mask = def->msr_mask;
env->mmu_model = def->mmu_model;
env->excp_model = def->excp_model;
env->bus_model = def->bus_model;
env->bfd_mach = def->bfd_mach;
if (create_ppc_opcodes(env, def) < 0)
return -1;
init_... | {
"code": [
"#endif",
"#endif",
" case POWERPC_MMU_64BRIDGE:",
" case POWERPC_MMU_64BRIDGE:",
" mmu_model = \"PowerPC 64 bridge\";",
" break;"
],
"line_no": [
99,
99,
93,
93,
95,
33
]
} | int FUNC_0 (CPUPPCState *VAR_0, ppc_def_t *VAR_1)
{
VAR_0->msr_mask = VAR_1->msr_mask;
VAR_0->mmu_model = VAR_1->mmu_model;
VAR_0->excp_model = VAR_1->excp_model;
VAR_0->bus_model = VAR_1->bus_model;
VAR_0->bfd_mach = VAR_1->bfd_mach;
if (create_ppc_opcodes(VAR_0, VAR_1) < 0)
ret... | [
"int FUNC_0 (CPUPPCState *VAR_0, ppc_def_t *VAR_1)\n{",
"VAR_0->msr_mask = VAR_1->msr_mask;",
"VAR_0->mmu_model = VAR_1->mmu_model;",
"VAR_0->excp_model = VAR_1->excp_model;",
"VAR_0->bus_model = VAR_1->bus_model;",
"VAR_0->bfd_mach = VAR_1->bfd_mach;",
"if (create_ppc_opcodes(VAR_0, VAR_1) < 0)\nreturn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[... |
18,473 | static uint64_t unin_data_read(void *opaque, hwaddr addr,
unsigned len)
{
UNINState *s = opaque;
PCIHostState *phb = PCI_HOST_BRIDGE(s);
uint32_t val;
val = pci_data_read(phb->bus,
unin_get_config_reg(phb->config_reg, addr),
... | true | qemu | 2f448e415f364d0ec4c5556993e44ca183e31c5c | static uint64_t unin_data_read(void *opaque, hwaddr addr,
unsigned len)
{
UNINState *s = opaque;
PCIHostState *phb = PCI_HOST_BRIDGE(s);
uint32_t val;
val = pci_data_read(phb->bus,
unin_get_config_reg(phb->config_reg, addr),
... | {
"code": [
" UNIN_DPRINTF(\"read addr %\" TARGET_FMT_plx \" len %d val %x\\n\","
],
"line_no": [
21
]
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned len)
{
UNINState *s = opaque;
PCIHostState *phb = PCI_HOST_BRIDGE(s);
uint32_t val;
val = pci_data_read(phb->bus,
unin_get_config_reg(phb->config_reg, addr),
... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned len)\n{",
"UNINState *s = opaque;",
"PCIHostState *phb = PCI_HOST_BRIDGE(s);",
"uint32_t val;",
"val = pci_data_read(phb->bus,\nunin_get_config_reg(phb->config_reg, addr),\nlen);",
"UNIN_DPRINTF(\"read addr %\" TARGET_FMT_plx \" len %d val %x\\n... | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
21,
23
],
[
25
],
[
27
]
] |
18,475 | static void pc_fw_cfg_guest_info(PcGuestInfo *guest_info)
{
PcRomPciInfo *info;
if (!guest_info->has_pci_info || !guest_info->fw_cfg) {
return;
}
info = g_malloc(sizeof *info);
info->w32_min = cpu_to_le64(guest_info->pci_info.w32.begin);
info->w32_max = cpu_to_le64(guest_info->... | true | qemu | 398489018183d613306ab022653552247d93919f | static void pc_fw_cfg_guest_info(PcGuestInfo *guest_info)
{
PcRomPciInfo *info;
if (!guest_info->has_pci_info || !guest_info->fw_cfg) {
return;
}
info = g_malloc(sizeof *info);
info->w32_min = cpu_to_le64(guest_info->pci_info.w32.begin);
info->w32_max = cpu_to_le64(guest_info->... | {
"code": [
" info->w32_min = cpu_to_le64(guest_info->pci_info.w32.begin);",
" info->w32_max = cpu_to_le64(guest_info->pci_info.w32.end);",
" info->w64_min = cpu_to_le64(guest_info->pci_info.w64.begin);",
" info->w64_max = cpu_to_le64(guest_info->pci_info.w64.end);"
],
"line_no": [
... | static void FUNC_0(PcGuestInfo *VAR_0)
{
PcRomPciInfo *info;
if (!VAR_0->has_pci_info || !VAR_0->fw_cfg) {
return;
}
info = g_malloc(sizeof *info);
info->w32_min = cpu_to_le64(VAR_0->pci_info.w32.begin);
info->w32_max = cpu_to_le64(VAR_0->pci_info.w32.end);
info->w64_min =... | [
"static void FUNC_0(PcGuestInfo *VAR_0)\n{",
"PcRomPciInfo *info;",
"if (!VAR_0->has_pci_info || !VAR_0->fw_cfg) {",
"return;",
"}",
"info = g_malloc(sizeof *info);",
"info->w32_min = cpu_to_le64(VAR_0->pci_info.w32.begin);",
"info->w32_max = cpu_to_le64(VAR_0->pci_info.w32.end);",
"info->w64_min = ... | [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
]
] |
18,476 | static void set_sel_time(IPMIBmcSim *ibs,
uint8_t *cmd, unsigned int cmd_len,
uint8_t *rsp, unsigned int *rsp_len,
unsigned int max_rsp_len)
{
uint32_t val;
struct ipmi_time now;
IPMI_CHECK_CMD_LEN(6);
val = cmd[2] | (c... | true | qemu | 4f298a4b2957b7833bc607c951ca27c458d98d88 | static void set_sel_time(IPMIBmcSim *ibs,
uint8_t *cmd, unsigned int cmd_len,
uint8_t *rsp, unsigned int *rsp_len,
unsigned int max_rsp_len)
{
uint32_t val;
struct ipmi_time now;
IPMI_CHECK_CMD_LEN(6);
val = cmd[2] | (c... | {
"code": [
" IPMI_CHECK_CMD_LEN(6);"
],
"line_no": [
17
]
} | static void FUNC_0(IPMIBmcSim *VAR_0,
uint8_t *VAR_1, unsigned int VAR_2,
uint8_t *VAR_3, unsigned int *VAR_4,
unsigned int VAR_5)
{
uint32_t val;
struct ipmi_time VAR_6;
IPMI_CHECK_CMD_LEN(6);
val = VAR_1[2] | (VAR_1[3... | [
"static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{",
"uint32_t val;",
"struct ipmi_time VAR_6;",
"IPMI_CHECK_CMD_LEN(6);",
"val = VAR_1[2] | (VAR_1[3] << 8) | (VAR_1[4] << 16) | (VAR_1[5] << 24);",
"ipmi_gettime(&VAR_6)... | [
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
18,478 | static inline void vring_used_write(VirtQueue *vq, VRingUsedElem *uelem,
int i)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingUsed, ring[i]);
virtio_tswap32s(vq->vdev, &uelem->id);
virtio_tswap32s(vq->vdev, &ue... | true | qemu | e0e2d644096c79a71099b176d08f465f6803a8b1 | static inline void vring_used_write(VirtQueue *vq, VRingUsedElem *uelem,
int i)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingUsed, ring[i]);
virtio_tswap32s(vq->vdev, &uelem->id);
virtio_tswap32s(vq->vdev, &ue... | {
"code": [
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-... | static inline void FUNC_0(VirtQueue *VAR_0, VRingUsedElem *VAR_1,
int VAR_2)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&VAR_0->vring.caches);
hwaddr pa = offsetof(VRingUsed, ring[VAR_2]);
virtio_tswap32s(VAR_0->vdev, &VAR_1->id);
virtio_tswap32s(VAR_0-... | [
"static inline void FUNC_0(VirtQueue *VAR_0, VRingUsedElem *VAR_1,\nint VAR_2)\n{",
"VRingMemoryRegionCaches *caches = atomic_rcu_read(&VAR_0->vring.caches);",
"hwaddr pa = offsetof(VRingUsed, ring[VAR_2]);",
"virtio_tswap32s(VAR_0->vdev, &VAR_1->id);",
"virtio_tswap32s(VAR_0->vdev, &VAR_1->len);",
"addre... | [
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
18,479 | static void integratorcm_init(int memsz, uint32_t flash_offset)
{
int iomemtype;
integratorcm_state *s;
s = (integratorcm_state *)qemu_mallocz(sizeof(integratorcm_state));
s->cm_osc = 0x01000048;
/* ??? What should the high bits of this value be? */
s->cm_auxosc = 0x0007feff;
s->c... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | static void integratorcm_init(int memsz, uint32_t flash_offset)
{
int iomemtype;
integratorcm_state *s;
s = (integratorcm_state *)qemu_mallocz(sizeof(integratorcm_state));
s->cm_osc = 0x01000048;
s->cm_auxosc = 0x0007feff;
s->cm_sdram = 0x00011122;
if (memsz >= 256) {
... | {
"code": [
" cpu_register_physical_memory(0x10000000, 0x007fffff, iomemtype);"
],
"line_no": [
63
]
} | static void FUNC_0(int VAR_0, uint32_t VAR_1)
{
int VAR_2;
integratorcm_state *s;
s = (integratorcm_state *)qemu_mallocz(sizeof(integratorcm_state));
s->cm_osc = 0x01000048;
s->cm_auxosc = 0x0007feff;
s->cm_sdram = 0x00011122;
if (VAR_0 >= 256) {
integrator_spd[31] =... | [
"static void FUNC_0(int VAR_0, uint32_t VAR_1)\n{",
"int VAR_2;",
"integratorcm_state *s;",
"s = (integratorcm_state *)qemu_mallocz(sizeof(integratorcm_state));",
"s->cm_osc = 0x01000048;",
"s->cm_auxosc = 0x0007feff;",
"s->cm_sdram = 0x00011122;",
"if (VAR_0 >= 256) {",
"integrator_spd[31] = 64;",
... | [
0,
0,
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,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
18,480 | static int mlib_YUV2ARGB420_32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
assert(srcStride[1] == srcStride[2]);
mlib_VideoColorYUV2A... | true | FFmpeg | 428098165de4c3edfe42c1b7f00627d287015863 | static int mlib_YUV2ARGB420_32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
assert(srcStride[1] == srcStride[2]);
mlib_VideoColorYUV2A... | {
"code": [
" int srcSliceH, uint8_t* dst[], int dstStride[]){",
"\tsrcStride[1] *= 2;",
"\tsrcStride[2] *= 2;",
"\t\t\t srcSliceH, dstStride[0], srcStride[0], srcStride[1]);",
" int srcSliceH, uint8_t* dst[], int dstStride[]){",
"\tsrcStride[1] *= 2;",
"\tsrcSt... | static int FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3,
int VAR_4, uint8_t* VAR_5[], int VAR_6[]){
if(VAR_0->srcFormat == PIX_FMT_YUV422P){
VAR_2[1] *= 2;
VAR_2[2] *= 2;
}
assert(VAR_2[1] == VAR_2[2]);
mlib_VideoColorYUV2ARGB420(VAR_5[0]+VAR_3*VAR_6[0], V... | [
"static int FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_5[], int VAR_6[]){",
"if(VAR_0->srcFormat == PIX_FMT_YUV422P){",
"VAR_2[1] *= 2;",
"VAR_2[2] *= 2;",
"}",
"assert(VAR_2[1] == VAR_2[2]);",
"mlib_VideoColorYUV2ARGB420(VAR_5[0]+VAR_3*VAR_6[0], VAR_1[0... | [
1,
0,
1,
1,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23
],
[
25
]
] |
18,482 | int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt, int is_vp7)
{
VP8Context *s = avctx->priv_data;
int ret, i, referenced, num_jobs;
enum AVDiscard skip_thresh;
VP8Frame *av_uninit(curframe), *prev_frame;
if (is_vp7)
ret = vp7_deco... | true | FFmpeg | 6b5d3fb26fb4be48e4966e4b1d97c2165538d4ef | int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt, int is_vp7)
{
VP8Context *s = avctx->priv_data;
int ret, i, referenced, num_jobs;
enum AVDiscard skip_thresh;
VP8Frame *av_uninit(curframe), *prev_frame;
if (is_vp7)
ret = vp7_deco... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3, int VAR_4)
{
VP8Context *s = VAR_0->priv_data;
int VAR_5, VAR_6, VAR_7, VAR_8;
enum AVDiscard VAR_9;
VP8Frame *av_uninit(curframe), *prev_frame;
if (VAR_4)
VAR_5 = vp7_decode_frame_header(s, VAR... | [
"int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3, int VAR_4)\n{",
"VP8Context *s = VAR_0->priv_data;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"enum AVDiscard VAR_9;",
"VP8Frame *av_uninit(curframe), *prev_frame;",
"if (VAR_4)\nVAR_5 = vp7_decode_frame_header(s, VAR_3->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,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8,
9
],
[
10,
11
],
[
12,
13
],
[
14
],
[
15,
16
],
[
17,
18,
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],
[
... |
18,483 | static void execute_async(DWORD WINAPI (*func)(LPVOID), LPVOID opaque,
Error **errp)
{
Error *local_err = NULL;
if (error_is_set(errp)) {
return;
}
HANDLE thread = CreateThread(NULL, 0, func, opaque, 0, NULL);
if (!thread) {
error_set(&local_err, ... | true | qemu | 5e54769c921a3d8cd8858444f5a3fa62cc44260e | static void execute_async(DWORD WINAPI (*func)(LPVOID), LPVOID opaque,
Error **errp)
{
Error *local_err = NULL;
if (error_is_set(errp)) {
return;
}
HANDLE thread = CreateThread(NULL, 0, func, opaque, 0, NULL);
if (!thread) {
error_set(&local_err, ... | {
"code": [
" if (error_is_set(errp)) {",
" if (error_is_set(errp)) {",
" if (error_is_set(errp)) {"
],
"line_no": [
11,
11,
11
]
} | static void FUNC_0(DWORD VAR_0 (*func)(LPVOID), LPVOID VAR_1,
Error **VAR_2)
{
Error *local_err = NULL;
if (error_is_set(VAR_2)) {
return;
}
HANDLE thread = CreateThread(NULL, 0, func, VAR_1, 0, NULL);
if (!thread) {
error_set(&local_err, QERR_QGA... | [
"static void FUNC_0(DWORD VAR_0 (*func)(LPVOID), LPVOID VAR_1,\nError **VAR_2)\n{",
"Error *local_err = NULL;",
"if (error_is_set(VAR_2)) {",
"return;",
"}",
"HANDLE thread = CreateThread(NULL, 0, func, VAR_1, 0, NULL);",
"if (!thread) {",
"error_set(&local_err, QERR_QGA_COMMAND_FAILED,\n\"failed to d... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
]
] |
18,484 | static void spr_read_tbu(DisasContext *ctx, int gprn, int sprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_load_tbu(cpu_gpr[gprn], cpu_env);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(ctx);
}
}
| true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static void spr_read_tbu(DisasContext *ctx, int gprn, int sprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_load_tbu(cpu_gpr[gprn], cpu_env);
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_load_tbu(cpu_gpr[VAR_1], cpu_env);
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_load_tbu(cpu_gpr[VAR_1], cpu_env);",
"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,485 | static void vector_fmul_window_mips(float *dst, const float *src0,
const float *src1, const float *win, int len)
{
int i, j;
/*
* variables used in inline assembler
*/
float * dst_i, * dst_j, * dst_i2, * dst_j2;
float temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
... | true | FFmpeg | dfa920807494f0bc505aa090e036b531daa604ad | static void vector_fmul_window_mips(float *dst, const float *src0,
const float *src1, const float *win, int len)
{
int i, j;
float * dst_i, * dst_j, * dst_i2, * dst_j2;
float temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
dst += len;
win += len;
src0 += len;... | {
"code": [
" const float *src1, const float *win, int len)",
" int i, j;",
" float * dst_i, * dst_j, * dst_i2, * dst_j2;",
" float temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;",
" dst += len;",
" win += len;",
" src0 += len;",
" for (i = -len, j... | static void FUNC_0(float *VAR_0, const float *VAR_1,
const float *VAR_2, const float *VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
float * VAR_7, * VAR_8, * VAR_9, * VAR_10;
float VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18;
VAR_0 += VAR_4;
VAR_3 += VAR_4;
... | [
"static void FUNC_0(float *VAR_0, const float *VAR_1,\nconst float *VAR_2, const float *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"float * VAR_7, * VAR_8, * VAR_9, * VAR_10;",
"float VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18;",
"VAR_0 += VAR_4;",
"VAR_3 += VAR_4;",
"VAR_1 += VAR... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45,
47,
49,
51,
53,
57,
59,
61,
63,
67,
69,
71,
73,
77... |
18,486 | static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth,
unsigned size)
{
unsigned i, j;
CodeBook cb = { 0 };
if (!can_safely_read(gb, size * 34))
return cb;
if (size >= INT_MAX / sizeof(MacroBlock))
return cb;
cb.blocks = av_ma... | true | FFmpeg | 3d7817048cb387de87600f2152075f78b37b60a6 | static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth,
unsigned size)
{
unsigned i, j;
CodeBook cb = { 0 };
if (!can_safely_read(gb, size * 34))
return cb;
if (size >= INT_MAX / sizeof(MacroBlock))
return cb;
cb.blocks = av_ma... | {
"code": [
" if (!can_safely_read(gb, size * 34))"
],
"line_no": [
13
]
} | static CodeBook FUNC_0(GetBitContext* gb, unsigned depth,
unsigned size)
{
unsigned VAR_0, VAR_1;
CodeBook cb = { 0 };
if (!can_safely_read(gb, size * 34))
return cb;
if (size >= INT_MAX / sizeof(MacroBlock))
return cb;
cb.blocks = av_mal... | [
"static CodeBook FUNC_0(GetBitContext* gb, unsigned depth,\nunsigned size)\n{",
"unsigned VAR_0, VAR_1;",
"CodeBook cb = { 0 };",
"if (!can_safely_read(gb, size * 34))\nreturn cb;",
"if (size >= INT_MAX / sizeof(MacroBlock))\nreturn cb;",
"cb.blocks = av_malloc(size ? size * sizeof(MacroBlock) : 1);",
"... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
19,
21
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55
... |
18,487 | static inline void RENAME(hScale)(int16_t *dst, int dstW, const uint8_t *src, int srcW, int xInc,
const int16_t *filter, const int16_t *filterPos, int filterSize)
{
#if COMPILE_TEMPLATE_MMX
assert(filterSize % 4 == 0 && filterSize>0);
if (filterSize==4) { // Always true fo... | true | FFmpeg | c3ab0004ae4dffc32494ae84dd15cfaa909a7884 | static inline void RENAME(hScale)(int16_t *dst, int dstW, const uint8_t *src, int srcW, int xInc,
const int16_t *filter, const int16_t *filterPos, int filterSize)
{
#if COMPILE_TEMPLATE_MMX
assert(filterSize % 4 == 0 && filterSize>0);
if (filterSize==4) {
x86_reg... | {
"code": [
" const int16_t *filter, const int16_t *filterPos, int filterSize)"
],
"line_no": [
3
]
} | static inline void FUNC_0(hScale)(int16_t *dst, int dstW, const uint8_t *src, int srcW, int xInc,
const int16_t *filter, const int16_t *filterPos, int filterSize)
{
#if COMPILE_TEMPLATE_MMX
assert(filterSize % 4 == 0 && filterSize>0);
if (filterSize==4) {
x86_reg... | [
"static inline void FUNC_0(hScale)(int16_t *dst, int dstW, const uint8_t *src, int srcW, int xInc,\nconst int16_t *filter, const int16_t *filterPos, int filterSize)\n{",
"#if COMPILE_TEMPLATE_MMX\nassert(filterSize % 4 == 0 && filterSize>0);",
"if (filterSize==4) {",
"x86_reg counter= -2*dstW;",
"filter-= c... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,... |
18,489 | YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48be, PIX_FMT_RGB48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, PIX_FMT_RGB48LE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)
static av_always_inline void
yuv2rgb_write(uint8_t *_dest, int i, int Y1, int... | true | FFmpeg | 77d88b872d8cbb42738ede2d4fc098c16f204236 | YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48be, PIX_FMT_RGB48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, PIX_FMT_RGB48LE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)
static av_always_inline void
yuv2rgb_write(uint8_t *_dest, int i, int Y1, int... | {
"code": [
"yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,",
" int U, int V, int A1, int A2,"
],
"line_no": [
13,
15
]
} | YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48be, PIX_FMT_RGB48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, PIX_FMT_RGB48LE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)
static av_always_inline void
yuv2rgb_write(uint8_t *_dest, int i, int Y1, int... | [
"YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48be, PIX_FMT_RGB48BE)\nYUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, PIX_FMT_RGB48LE)\nYUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)\nYUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)\nstatic av_always_inline void\nyuv2rgb_write(uint8_t *_dest, int i, int Y1, ... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
11,
13,
15,
17,
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[
55
],
[
57
],
[
59
],
... |
18,490 | static void musb_rx_packet_complete(USBPacket *packey, void *opaque)
{
/* Unfortunately we can't use packey->devep because that's the remote
* endpoint number and may be different than our local. */
MUSBEndPoint *ep = (MUSBEndPoint *) opaque;
int epnum = ep->epnum;
MUSBState *s = ep->musb;
... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static void musb_rx_packet_complete(USBPacket *packey, void *opaque)
{
MUSBEndPoint *ep = (MUSBEndPoint *) opaque;
int epnum = ep->epnum;
MUSBState *s = ep->musb;
ep->fifostart[1] = 0;
ep->fifolen[1] = 0;
#ifdef CLEAR_NAK
if (ep->status[1] != USB_RET_NAK) {
#endif
e... | {
"code": [
" packey->len = 0;",
" packey->len, musb_rx_packet_complete, 1);",
" packey->len = ep->status[1];"
],
"line_no": [
61,
89,
139
]
} | static void FUNC_0(USBPacket *VAR_0, void *VAR_1)
{
MUSBEndPoint *ep = (MUSBEndPoint *) VAR_1;
int VAR_2 = ep->VAR_2;
MUSBState *s = ep->musb;
ep->fifostart[1] = 0;
ep->fifolen[1] = 0;
#ifdef CLEAR_NAK
if (ep->status[1] != USB_RET_NAK) {
#endif
ep->csr[1] &= ~MGC_M_... | [
"static void FUNC_0(USBPacket *VAR_0, void *VAR_1)\n{",
"MUSBEndPoint *ep = (MUSBEndPoint *) VAR_1;",
"int VAR_2 = ep->VAR_2;",
"MUSBState *s = ep->musb;",
"ep->fifostart[1] = 0;",
"ep->fifolen[1] = 0;",
"#ifdef CLEAR_NAK\nif (ep->status[1] != USB_RET_NAK) {",
"#endif\nep->csr[1] &= ~MGC_M_RXCSR_H_REQ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39,
45,
47
],
[
49,
51,
53
],
[
57
],
[
59
],
[
61
],
[
6... |
18,491 | static int process_requests(int sock)
{
int flags;
int size = 0;
int retval = 0;
uint64_t offset;
ProxyHeader header;
int mode, uid, gid;
V9fsString name, value;
struct timespec spec[2];
V9fsString oldpath, path;
struct iovec in_iovec, out_iovec;
in_iovec.iov_ba... | true | qemu | 24df3371d97a7516605aef8abbc253a8c162b211 | static int process_requests(int sock)
{
int flags;
int size = 0;
int retval = 0;
uint64_t offset;
ProxyHeader header;
int mode, uid, gid;
V9fsString name, value;
struct timespec spec[2];
V9fsString oldpath, path;
struct iovec in_iovec, out_iovec;
in_iovec.iov_ba... | {
"code": [
" retval = qemu_utimens(path.data, spec);"
],
"line_no": [
209
]
} | static int FUNC_0(int VAR_0)
{
int VAR_1;
int VAR_2 = 0;
int VAR_3 = 0;
uint64_t offset;
ProxyHeader header;
int VAR_4, VAR_5, VAR_6;
V9fsString name, value;
struct timespec VAR_7[2];
V9fsString oldpath, path;
struct iovec VAR_8, VAR_9;
VAR_8.iov_base = g_mallo... | [
"static int FUNC_0(int VAR_0)\n{",
"int VAR_1;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"uint64_t offset;",
"ProxyHeader header;",
"int VAR_4, VAR_5, VAR_6;",
"V9fsString name, value;",
"struct timespec VAR_7[2];",
"V9fsString oldpath, path;",
"struct iovec VAR_8, VAR_9;",
"VAR_8.iov_base = g_ma... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,492 | static av_cold int pcx_init(AVCodecContext *avctx) {
PCXContext *s = avctx->priv_data;
avcodec_get_frame_defaults(&s->picture);
avctx->coded_frame= &s->picture;
return 0;
}
| true | FFmpeg | 8cd1c0febe88b757e915e9af15559575c21ca728 | static av_cold int pcx_init(AVCodecContext *avctx) {
PCXContext *s = avctx->priv_data;
avcodec_get_frame_defaults(&s->picture);
avctx->coded_frame= &s->picture;
return 0;
}
| {
"code": [
"static av_cold int pcx_init(AVCodecContext *avctx) {"
],
"line_no": [
1
]
} | static av_cold int FUNC_0(AVCodecContext *avctx) {
PCXContext *s = avctx->priv_data;
avcodec_get_frame_defaults(&s->picture);
avctx->coded_frame= &s->picture;
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx) {",
"PCXContext *s = avctx->priv_data;",
"avcodec_get_frame_defaults(&s->picture);",
"avctx->coded_frame= &s->picture;",
"return 0;",
"}"
] | [
1,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
13
],
[
15
]
] |
18,494 | static void find_compressor(char * compressor_name, int len, MOVTrack *track)
{
AVDictionaryEntry *encoder;
int xdcam_res = (track->par->width == 1280 && track->par->height == 720)
|| (track->par->width == 1440 && track->par->height == 1080)
|| (track->par->width == 192... | true | FFmpeg | 77bc507f6f001b9f5fa75c664106261bd8f2c971 | static void find_compressor(char * compressor_name, int len, MOVTrack *track)
{
AVDictionaryEntry *encoder;
int xdcam_res = (track->par->width == 1280 && track->par->height == 720)
|| (track->par->width == 1440 && track->par->height == 1080)
|| (track->par->width == 192... | {
"code": [
" int rate = av_q2d(find_fps(NULL, st));"
],
"line_no": [
27
]
} | static void FUNC_0(char * VAR_0, int VAR_1, MOVTrack *VAR_2)
{
AVDictionaryEntry *encoder;
int VAR_3 = (VAR_2->par->width == 1280 && VAR_2->par->height == 720)
|| (VAR_2->par->width == 1440 && VAR_2->par->height == 1080)
|| (VAR_2->par->width == 1920 && VAR_2->par->heig... | [
"static void FUNC_0(char * VAR_0, int VAR_1, MOVTrack *VAR_2)\n{",
"AVDictionaryEntry *encoder;",
"int VAR_3 = (VAR_2->par->width == 1280 && VAR_2->par->height == 720)\n|| (VAR_2->par->width == 1440 && VAR_2->par->height == 1080)\n|| (VAR_2->par->width == 1920 && VAR_2->par->height == 1080);",
"if (VAR_2->mo... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[... |
18,495 | const char *print_wrid(int wrid)
{
if (wrid >= RDMA_WRID_RECV_CONTROL) {
return wrid_desc[RDMA_WRID_RECV_CONTROL];
}
return wrid_desc[wrid];
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | const char *print_wrid(int wrid)
{
if (wrid >= RDMA_WRID_RECV_CONTROL) {
return wrid_desc[RDMA_WRID_RECV_CONTROL];
}
return wrid_desc[wrid];
}
| {
"code": [],
"line_no": []
} | const char *FUNC_0(int VAR_0)
{
if (VAR_0 >= RDMA_WRID_RECV_CONTROL) {
return wrid_desc[RDMA_WRID_RECV_CONTROL];
}
return wrid_desc[VAR_0];
}
| [
"const char *FUNC_0(int VAR_0)\n{",
"if (VAR_0 >= RDMA_WRID_RECV_CONTROL) {",
"return wrid_desc[RDMA_WRID_RECV_CONTROL];",
"}",
"return wrid_desc[VAR_0];",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.