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 |
|---|---|---|---|---|---|---|---|---|---|---|
12,591 | static const unsigned char *seq_decode_op1(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst)
{
const unsigned char *color_table;
int b, i, len, bits;
GetBitContext gb;
unsigned char block[8 * 8];
len = *src++;
if (len & 0x80) {
switch (len & 3) {
case... | true | FFmpeg | 64263dd526ec25ede1591fc1144715a20cc7bc4e | static const unsigned char *seq_decode_op1(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst)
{
const unsigned char *color_table;
int b, i, len, bits;
GetBitContext gb;
unsigned char block[8 * 8];
len = *src++;
if (len & 0x80) {
switch (len & 3) {
case... | {
"code": [
"static const unsigned char *seq_decode_op1(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst)",
" src = seq_unpack_rle_block(src, block, sizeof(block));",
" src = seq_unpack_rle_block(src, block, sizeof(block));",
" bits = ff_log2_tab[len - 1]... | static const unsigned char *FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, unsigned char *VAR_2)
{
const unsigned char *VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7;
GetBitContext gb;
unsigned char VAR_8[8 * 8];
VAR_6 = *VAR_1++;
if (VAR_6 & 0x80) {
switch (VAR_6 & 3) {
... | [
"static const unsigned char *FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, unsigned char *VAR_2)\n{",
"const unsigned char *VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"GetBitContext gb;",
"unsigned char VAR_8[8 * 8];",
"VAR_6 = *VAR_1++;",
"if (VAR_6 & 0x80) {",
"switch (VAR_6 & 3) {",
... | [
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
12,592 | static void qed_commit_l2_update(void *opaque, int ret)
{
QEDAIOCB *acb = opaque;
BDRVQEDState *s = acb_to_s(acb);
CachedL2Table *l2_table = acb->request.l2_table;
qed_commit_l2_cache_entry(&s->l2_cache, l2_table);
/* This is guaranteed to succeed because we just committed the entry to the... | true | qemu | e4fc8781db7c49b0c5ac5d24762e17c59dfe0871 | static void qed_commit_l2_update(void *opaque, int ret)
{
QEDAIOCB *acb = opaque;
BDRVQEDState *s = acb_to_s(acb);
CachedL2Table *l2_table = acb->request.l2_table;
qed_commit_l2_cache_entry(&s->l2_cache, l2_table);
acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache,
... | {
"code": [
" l2_table->offset);",
" acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache,",
" l2_table->offset);"
],
"line_no": [
25,
23,
25
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
QEDAIOCB *acb = VAR_0;
BDRVQEDState *s = acb_to_s(acb);
CachedL2Table *l2_table = acb->request.l2_table;
qed_commit_l2_cache_entry(&s->l2_cache, l2_table);
acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache,
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"QEDAIOCB *acb = VAR_0;",
"BDRVQEDState *s = acb_to_s(acb);",
"CachedL2Table *l2_table = acb->request.l2_table;",
"qed_commit_l2_cache_entry(&s->l2_cache, l2_table);",
"acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache,\nl2_table->offset);",
"a... | [
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
23,
25
],
[
27
],
[
31
],
[
33
]
] |
12,593 | static void pci_qdev_unrealize(DeviceState *dev, Error **errp)
{
PCIDevice *pci_dev = PCI_DEVICE(dev);
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
pci_unregister_io_regions(pci_dev);
pci_del_option_rom(pci_dev);
if (pc->exit) {
pc->exit(pci_dev);
}
do_pci_unre... | true | qemu | 3936161f1fd72d1dfa577aaba910819c5e873260 | static void pci_qdev_unrealize(DeviceState *dev, Error **errp)
{
PCIDevice *pci_dev = PCI_DEVICE(dev);
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
pci_unregister_io_regions(pci_dev);
pci_del_option_rom(pci_dev);
if (pc->exit) {
pc->exit(pci_dev);
}
do_pci_unre... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
PCIDevice *pci_dev = PCI_DEVICE(VAR_0);
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
pci_unregister_io_regions(pci_dev);
pci_del_option_rom(pci_dev);
if (pc->exit) {
pc->exit(pci_dev);
}
do_pci_unregister_... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"PCIDevice *pci_dev = PCI_DEVICE(VAR_0);",
"PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);",
"pci_unregister_io_regions(pci_dev);",
"pci_del_option_rom(pci_dev);",
"if (pc->exit) {",
"pc->exit(pci_dev);",
"}",
"do_pci_unregister_device... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
26
],
[
28
]
] |
12,594 | static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
{
SliceContext *slice = link->dst->priv;
if (slice->use_random_h) {
slice->lcg_state = slice->lcg_state * 1664525 + 1013904223;
slice->h = 8 + (uint64_t)slice->lcg_state * 25 / UINT32_MAX;
}
/* ensure that s... | true | FFmpeg | bb6c67bb36b136de10256f0999128df4a42f9ffc | static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
{
SliceContext *slice = link->dst->priv;
if (slice->use_random_h) {
slice->lcg_state = slice->lcg_state * 1664525 + 1013904223;
slice->h = 8 + (uint64_t)slice->lcg_state * 25 / UINT32_MAX;
}
slice->h... | {
"code": [
" SliceContext *slice = link->dst->priv;",
"static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)",
" SliceContext *slice = link->dst->priv;",
" if (slice->use_random_h) {",
" slice->lcg_state = slice->lcg_state * 1664525 + 1013904223;",
" sli... | static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)
{
SliceContext *slice = VAR_0->dst->priv;
if (slice->use_random_h) {
slice->lcg_state = slice->lcg_state * 1664525 + 1013904223;
slice->h = 8 + (uint64_t)slice->lcg_state * 25 / UINT32_MAX;
}
slice->h = F... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{",
"SliceContext *slice = VAR_0->dst->priv;",
"if (slice->use_random_h) {",
"slice->lcg_state = slice->lcg_state * 1664525 + 1013904223;",
"slice->h = 8 + (uint64_t)slice->lcg_state * 25 / UINT32_MAX;",
"}",
"slice->h = FFMAX(8, slice->... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
12,595 | static void virtio_balloon_save(QEMUFile *f, void *opaque)
{
VirtIOBalloon *s = opaque;
virtio_save(&s->vdev, f);
qemu_put_be32(f, s->num_pages);
qemu_put_be32(f, s->actual);
qemu_put_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));
qemu_put_buffer(f, (uint8_t *)&s->... | true | qemu | 6d0ee85040e4d238e2483191fe6e74aebbecd5d5 | static void virtio_balloon_save(QEMUFile *f, void *opaque)
{
VirtIOBalloon *s = opaque;
virtio_save(&s->vdev, f);
qemu_put_be32(f, s->num_pages);
qemu_put_be32(f, s->actual);
qemu_put_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));
qemu_put_buffer(f, (uint8_t *)&s->... | {
"code": [
" qemu_put_buffer(f, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));",
" qemu_put_buffer(f, (uint8_t *)&s->stats_vq_offset, sizeof(size_t));",
" qemu_put_buffer(f, (uint8_t *)&s->stats_callback, sizeof(MonitorCompletion));",
" qemu_put_buffer(f, (uint8_t *)&s->stats_op... | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)
{
VirtIOBalloon *s = VAR_1;
virtio_save(&s->vdev, VAR_0);
qemu_put_be32(VAR_0, s->num_pages);
qemu_put_be32(VAR_0, s->actual);
qemu_put_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));
qemu_put_buffer(VAR_0, (uint8... | [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{",
"VirtIOBalloon *s = VAR_1;",
"virtio_save(&s->vdev, VAR_0);",
"qemu_put_be32(VAR_0, s->num_pages);",
"qemu_put_be32(VAR_0, s->actual);",
"qemu_put_buffer(VAR_0, (uint8_t *)&s->stats_vq_elem, sizeof(VirtQueueElement));",
"qemu_put_buffer(VAR_0, (uint... | [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
12,597 | static int inject_error(BlockDriverState *bs, BlkdebugRule *rule)
{
BDRVBlkdebugState *s = bs->opaque;
int error = rule->options.inject.error;
bool immediately = rule->options.inject.immediately;
if (rule->options.inject.once) {
QSIMPLEQ_REMOVE(&s->active_rules, rule, BlkdebugRule, activ... | true | qemu | e5c67ab552fb056827b5b40356c0ef235e975e7e | static int inject_error(BlockDriverState *bs, BlkdebugRule *rule)
{
BDRVBlkdebugState *s = bs->opaque;
int error = rule->options.inject.error;
bool immediately = rule->options.inject.immediately;
if (rule->options.inject.once) {
QSIMPLEQ_REMOVE(&s->active_rules, rule, BlkdebugRule, activ... | {
"code": [
" aio_bh_schedule_oneshot(bdrv_get_aio_context(bs), error_callback_bh,",
" qemu_coroutine_self());"
],
"line_no": [
25,
27
]
} | static int FUNC_0(BlockDriverState *VAR_0, BlkdebugRule *VAR_1)
{
BDRVBlkdebugState *s = VAR_0->opaque;
int VAR_2 = VAR_1->options.inject.VAR_2;
bool immediately = VAR_1->options.inject.immediately;
if (VAR_1->options.inject.once) {
QSIMPLEQ_REMOVE(&s->active_rules, VAR_1, BlkdebugRule, ... | [
"static int FUNC_0(BlockDriverState *VAR_0, BlkdebugRule *VAR_1)\n{",
"BDRVBlkdebugState *s = VAR_0->opaque;",
"int VAR_2 = VAR_1->options.inject.VAR_2;",
"bool immediately = VAR_1->options.inject.immediately;",
"if (VAR_1->options.inject.once) {",
"QSIMPLEQ_REMOVE(&s->active_rules, VAR_1, BlkdebugRule, a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
12,598 | static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext *c,
int representation_id, int final)
{
int i, start_index = 0, start_number = 1;
if (c->window_size) {
start_index = FFMAX(os->nb_segments - c->window_size, 0);
start_number ... | false | FFmpeg | 1cfde7abd0008e58fcd10f8804812e72a1a5295a | static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext *c,
int representation_id, int final)
{
int i, start_index = 0, start_number = 1;
if (c->window_size) {
start_index = FFMAX(os->nb_segments - c->window_size, 0);
start_number ... | {
"code": [],
"line_no": []
} | static void FUNC_0(OutputStream *VAR_0, AVIOContext *VAR_1, DASHContext *VAR_2,
int VAR_3, int VAR_4)
{
int VAR_5, VAR_6 = 0, VAR_7 = 1;
if (VAR_2->window_size) {
VAR_6 = FFMAX(VAR_0->nb_segments - VAR_2->window_size, 0);
VAR_7 = FFMAX(VAR_0->segment_inde... | [
"static void FUNC_0(OutputStream *VAR_0, AVIOContext *VAR_1, DASHContext *VAR_2,\nint VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6 = 0, VAR_7 = 1;",
"if (VAR_2->window_size) {",
"VAR_6 = FFMAX(VAR_0->nb_segments - VAR_2->window_size, 0);",
"VAR_7 = FFMAX(VAR_0->segment_index - VAR_2->window_size, 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
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
12,599 | static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
PTXContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const ... | false | FFmpeg | 2b53e696c864c4ade3c38707f8595e17a998bedc | static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
PTXContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3) {
const uint8_t *VAR_4 = VAR_3->VAR_1;
const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;
PTXContext * const s = VAR_0->priv_data;
AVFrame *picture = VAR_1;
AVFrame * const p = &s->pi... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;",
"PTXContext * const s = VAR_0->priv_data;",
"AVFrame *picture = VAR_1;",
"AVFrame * const p = &s->picture;",
"unsigned in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49,
51
... |
12,600 | static int alloc_sequence_buffers(DiracContext *s)
{
int sbwidth = DIVRNDUP(s->source.width, 4);
int sbheight = DIVRNDUP(s->source.height, 4);
int i, w, h, top_padding;
/* todo: think more about this / use or set Plane here */
for (i = 0; i < 3; i++) {
int max_xblen = MAX_BLOCKSIZ... | false | FFmpeg | 4a30f08505a4e85718896ff233c97be41a9754ca | static int alloc_sequence_buffers(DiracContext *s)
{
int sbwidth = DIVRNDUP(s->source.width, 4);
int sbheight = DIVRNDUP(s->source.height, 4);
int i, w, h, top_padding;
for (i = 0; i < 3; i++) {
int max_xblen = MAX_BLOCKSIZE >> (i ? s->chroma_x_shift : 0);
int max_yblen ... | {
"code": [],
"line_no": []
} | static int FUNC_0(DiracContext *VAR_0)
{
int VAR_1 = DIVRNDUP(VAR_0->source.width, 4);
int VAR_2 = DIVRNDUP(VAR_0->source.height, 4);
int VAR_3, VAR_4, VAR_5, VAR_6;
for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {
int VAR_7 = MAX_BLOCKSIZE >> (VAR_3 ? VAR_0->chroma_x_shift : 0);
i... | [
"static int FUNC_0(DiracContext *VAR_0)\n{",
"int VAR_1 = DIVRNDUP(VAR_0->source.width, 4);",
"int VAR_2 = DIVRNDUP(VAR_0->source.height, 4);",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {",
"int VAR_7 = MAX_BLOCKSIZE >> (VAR_3 ? VAR_0->chroma_x_shift : 0);",
"int 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51,
53
],
[
55
],
[
59
],
[
61
],
[... |
12,601 | static av_cold int vpx_init(AVCodecContext *avctx,
const struct vpx_codec_iface *iface)
{
VP8Context *ctx = avctx->priv_data;
struct vpx_codec_enc_cfg enccfg = { 0 };
int res;
av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
av_log(avctx, AV_LOG_VERBO... | false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int vpx_init(AVCodecContext *avctx,
const struct vpx_codec_iface *iface)
{
VP8Context *ctx = avctx->priv_data;
struct vpx_codec_enc_cfg enccfg = { 0 };
int res;
av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
av_log(avctx, AV_LOG_VERBO... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx,
const struct vpx_codec_iface *iface)
{
VP8Context *ctx = avctx->priv_data;
struct vpx_codec_enc_cfg VAR_0 = { 0 };
int VAR_1;
av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
av_log(avctx, AV_LOG_VERBOS... | [
"static av_cold int FUNC_0(AVCodecContext *avctx,\nconst struct vpx_codec_iface *iface)\n{",
"VP8Context *ctx = avctx->priv_data;",
"struct vpx_codec_enc_cfg VAR_0 = { 0 };",
"int VAR_1;",
"av_log(avctx, AV_LOG_INFO, \"%s\\n\", vpx_codec_version_str());",
"av_log(avctx, AV_LOG_VERBOSE, \"%s\\n\", vpx_code... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
],
[
53,
55
... |
12,602 | static int virtio_pci_start_ioeventfd(VirtIOPCIProxy *proxy)
{
int n, r;
if (!(proxy->flags & VIRTIO_PCI_FLAG_USE_IOEVENTFD) ||
proxy->ioeventfd_disabled ||
proxy->ioeventfd_started) {
return 0;
}
for (n = 0; n < VIRTIO_PCI_QUEUE_MAX; n++) {
if (!virtio_queue... | true | qemu | b36e391441906c36ed0856b69de84001860402bf | static int virtio_pci_start_ioeventfd(VirtIOPCIProxy *proxy)
{
int n, r;
if (!(proxy->flags & VIRTIO_PCI_FLAG_USE_IOEVENTFD) ||
proxy->ioeventfd_disabled ||
proxy->ioeventfd_started) {
return 0;
}
for (n = 0; n < VIRTIO_PCI_QUEUE_MAX; n++) {
if (!virtio_queue... | {
"code": [
"static int virtio_pci_start_ioeventfd(VirtIOPCIProxy *proxy)",
" return 0;",
" return 0;",
" virtio_pci_set_host_notifier_internal(proxy, n, false);",
" proxy->ioeventfd_disabled = true;",
" return r;",
" return 0;",
" virtio_pci_set_ho... | static int FUNC_0(VirtIOPCIProxy *VAR_0)
{
int VAR_1, VAR_2;
if (!(VAR_0->flags & VIRTIO_PCI_FLAG_USE_IOEVENTFD) ||
VAR_0->ioeventfd_disabled ||
VAR_0->ioeventfd_started) {
return 0;
}
for (VAR_1 = 0; VAR_1 < VIRTIO_PCI_QUEUE_MAX; VAR_1++) {
if (!virtio_queue... | [
"static int FUNC_0(VirtIOPCIProxy *VAR_0)\n{",
"int VAR_1, VAR_2;",
"if (!(VAR_0->flags & VIRTIO_PCI_FLAG_USE_IOEVENTFD) ||\nVAR_0->ioeventfd_disabled ||\nVAR_0->ioeventfd_started) {",
"return 0;",
"}",
"for (VAR_1 = 0; VAR_1 < VIRTIO_PCI_QUEUE_MAX; VAR_1++) {",
"if (!virtio_queue_get_num(VAR_0->vdev, V... | [
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
... |
12,603 | static void block_set_params(const MigrationParams *params, void *opaque)
{
block_mig_state.blk_enable = params->blk;
block_mig_state.shared_base = params->shared;
/* shared base means that blk_enable = 1 */
block_mig_state.blk_enable |= params->shared;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void block_set_params(const MigrationParams *params, void *opaque)
{
block_mig_state.blk_enable = params->blk;
block_mig_state.shared_base = params->shared;
block_mig_state.blk_enable |= params->shared;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(const MigrationParams *VAR_0, void *VAR_1)
{
block_mig_state.blk_enable = VAR_0->blk;
block_mig_state.shared_base = VAR_0->shared;
block_mig_state.blk_enable |= VAR_0->shared;
}
| [
"static void FUNC_0(const MigrationParams *VAR_0, void *VAR_1)\n{",
"block_mig_state.blk_enable = VAR_0->blk;",
"block_mig_state.shared_base = VAR_0->shared;",
"block_mig_state.blk_enable |= VAR_0->shared;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
]
] |
12,604 | static void show_packets(WriterContext *w, AVFormatContext *fmt_ctx)
{
AVPacket pkt;
AVFrame frame;
int i = 0;
av_init_packet(&pkt);
while (!av_read_frame(fmt_ctx, &pkt)) {
if (do_show_packets)
show_packet(w, fmt_ctx, &pkt, i++);
if (do_show_frames &&
... | true | FFmpeg | 7328c2fc2184476235ebc9a9b9247a986bdea1cf | static void show_packets(WriterContext *w, AVFormatContext *fmt_ctx)
{
AVPacket pkt;
AVFrame frame;
int i = 0;
av_init_packet(&pkt);
while (!av_read_frame(fmt_ctx, &pkt)) {
if (do_show_packets)
show_packet(w, fmt_ctx, &pkt, i++);
if (do_show_frames &&
... | {
"code": [
" av_destruct_packet(&pkt);"
],
"line_no": [
29
]
} | static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1)
{
AVPacket pkt;
AVFrame frame;
int VAR_2 = 0;
av_init_packet(&pkt);
while (!av_read_frame(VAR_1, &pkt)) {
if (do_show_packets)
show_packet(VAR_0, VAR_1, &pkt, VAR_2++);
if (do_show_frames &&
... | [
"static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1)\n{",
"AVPacket pkt;",
"AVFrame frame;",
"int VAR_2 = 0;",
"av_init_packet(&pkt);",
"while (!av_read_frame(VAR_1, &pkt)) {",
"if (do_show_packets)\nshow_packet(VAR_0, VAR_1, &pkt, VAR_2++);",
"if (do_show_frames &&\nget_video_frame(VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[... |
12,605 | static void bios_supports_mode(const char *pmutils_bin, const char *pmutils_arg,
const char *sysfile_str, Error **err)
{
pid_t pid;
ssize_t ret;
char *pmutils_path;
int status, pipefds[2];
if (pipe(pipefds) < 0) {
error_set(err, QERR_UNDEFINED_ERROR);... | true | qemu | dc8764f06155a7b3e635e02281b747a9e292127e | static void bios_supports_mode(const char *pmutils_bin, const char *pmutils_arg,
const char *sysfile_str, Error **err)
{
pid_t pid;
ssize_t ret;
char *pmutils_path;
int status, pipefds[2];
if (pipe(pipefds) < 0) {
error_set(err, QERR_UNDEFINED_ERROR);... | {
"code": [
" pid_t pid;",
" ssize_t ret;",
" int status, pipefds[2];",
" if (pipe(pipefds) < 0) {",
" error_set(err, QERR_UNDEFINED_ERROR);",
" struct sigaction act;",
" memset(&act, 0, sizeof(act));",
" act.sa_handler = SIG_DFL;",
" ... | static void FUNC_0(const char *VAR_0, const char *VAR_1,
const char *VAR_2, Error **VAR_3)
{
pid_t pid;
ssize_t ret;
char *VAR_4;
int VAR_5, VAR_6[2];
if (pipe(VAR_6) < 0) {
error_set(VAR_3, QERR_UNDEFINED_ERROR);
return;
}
VAR_4 ... | [
"static void FUNC_0(const char *VAR_0, const char *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{",
"pid_t pid;",
"ssize_t ret;",
"char *VAR_4;",
"int VAR_5, VAR_6[2];",
"if (pipe(VAR_6) < 0) {",
"error_set(VAR_3, QERR_UNDEFINED_ERROR);",
"return;",
"}",
"VAR_4 = g_find_program_in_path(VAR_0);",
"... | [
0,
1,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
1,
0,
0,
0,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
1,
1... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
12,606 | void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, uintptr_t start,
uintptr_t length)
{
uintptr_t addr;
if (tlb_is_dirty_ram(tlb_entry)) {
addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend;
if ((addr - start) < length) {
tlb_ent... | true | qemu | b0706b716769494f321a0d2bfd9fa9893992f995 | void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, uintptr_t start,
uintptr_t length)
{
uintptr_t addr;
if (tlb_is_dirty_ram(tlb_entry)) {
addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend;
if ((addr - start) < length) {
tlb_ent... | {
"code": [
"void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, uintptr_t start,",
" uintptr_t addr;",
" if (tlb_is_dirty_ram(tlb_entry)) {",
" addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend;",
"void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry, uintptr_t start,... | void FUNC_0(CPUTLBEntry *VAR_0, uintptr_t VAR_1,
uintptr_t VAR_2)
{
uintptr_t addr;
if (tlb_is_dirty_ram(VAR_0)) {
addr = (VAR_0->addr_write & TARGET_PAGE_MASK) + VAR_0->addend;
if ((addr - VAR_1) < VAR_2) {
VAR_0->addr_write |= TLB_NOTDIRTY;
... | [
"void FUNC_0(CPUTLBEntry *VAR_0, uintptr_t VAR_1,\nuintptr_t VAR_2)\n{",
"uintptr_t addr;",
"if (tlb_is_dirty_ram(VAR_0)) {",
"addr = (VAR_0->addr_write & TARGET_PAGE_MASK) + VAR_0->addend;",
"if ((addr - VAR_1) < VAR_2) {",
"VAR_0->addr_write |= TLB_NOTDIRTY;",
"}",
"}",
"}"
] | [
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
12,608 | static const char *scsi_command_name(uint8_t cmd)
{
static const char *names[] = {
[ TEST_UNIT_READY ] = "TEST_UNIT_READY",
[ REQUEST_SENSE ] = "REQUEST_SENSE",
[ FORMAT_UNIT ] = "FORMAT_UNIT",
[ READ_BLOCK_LIMITS ] = "READ_BLOCK_LIMITS",... | true | qemu | 5e30a07d6d70d3073ff61e6db79d61c2b688502f | static const char *scsi_command_name(uint8_t cmd)
{
static const char *names[] = {
[ TEST_UNIT_READY ] = "TEST_UNIT_READY",
[ REQUEST_SENSE ] = "REQUEST_SENSE",
[ FORMAT_UNIT ] = "FORMAT_UNIT",
[ READ_BLOCK_LIMITS ] = "READ_BLOCK_LIMITS",... | {
"code": [
" [ READ_CAPACITY ] = \"READ_CAPACITY\",",
" [ WRITE_VERIFY ] = \"WRITE_VERIFY\",",
" [ VERIFY ] = \"VERIFY\",",
" [ READ_LONG ] = \"READ_LONG\",",
" [ WRITE_LONG ] = \"WRITE_LONG\"... | static const char *FUNC_0(uint8_t VAR_0)
{
static const char *VAR_1[] = {
[ TEST_UNIT_READY ] = "TEST_UNIT_READY",
[ REQUEST_SENSE ] = "REQUEST_SENSE",
[ FORMAT_UNIT ] = "FORMAT_UNIT",
[ READ_BLOCK_LIMITS ] = "READ_BLOCK_LIMITS",
... | [
"static const char *FUNC_0(uint8_t VAR_0)\n{",
"static const char *VAR_1[] = {",
"[ TEST_UNIT_READY ] = \"TEST_UNIT_READY\",\n[ REQUEST_SENSE ] = \"REQUEST_SENSE\",\n[ FORMAT_UNIT ] = \"FORMAT_UNIT\",\n[ READ_BLOCK_LIMITS ] = \"READ_BLOCK_LIMITS\",\n[ REASSIGN_BLOCKS ... | [
0,
0,
1,
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,
59,
61,
63,
65,
67,
69,
71,
73,
75,
77,... |
12,609 | X264_close(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
if(x4->enc)
x264_encoder_close(x4->enc);
return 0;
} | true | FFmpeg | 5c4e97282f52d4045bd4498805f508ca50b313dd | X264_close(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
if(x4->enc)
x264_encoder_close(x4->enc);
return 0;
} | {
"code": [],
"line_no": []
} | FUNC_0(AVCodecContext *VAR_0)
{
X264Context *x4 = VAR_0->priv_data;
if(x4->enc)
x264_encoder_close(x4->enc);
return 0;
} | [
"FUNC_0(AVCodecContext *VAR_0)\n{",
"X264Context *x4 = VAR_0->priv_data;",
"if(x4->enc)\nx264_encoder_close(x4->enc);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4,
5
],
[
6
],
[
7
]
] |
12,610 | static void synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int length, int sb_min, int sb_max)
{
int sb, j, k, n, ch, run, channels;
int joined_stereo, zero_encoding, chs;
int type34_first;
float type34_div = 0;
float type34_predictor;
float samples[10], sign_bits[16];
... | false | FFmpeg | 7d74aaf6985e0f286e10c851e4d7e80fd687a774 | static void synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int length, int sb_min, int sb_max)
{
int sb, j, k, n, ch, run, channels;
int joined_stereo, zero_encoding, chs;
int type34_first;
float type34_div = 0;
float type34_predictor;
float samples[10], sign_bits[16];
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (QDM2Context *VAR_0, GetBitContext *VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12, VAR_13, VAR_14;
int VAR_15;
float VAR_16 = 0;
float VAR_17;
float VAR_18[10], VAR_19[16];
if (VAR_2 == 0) {
... | [
"static void FUNC_0 (QDM2Context *VAR_0, GetBitContext *VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12, VAR_13, VAR_14;",
"int VAR_15;",
"float VAR_16 = 0;",
"float VAR_17;",
"float VAR_18[10], VAR_19[16];",
"if (VAR_2 == 0) {",
"fo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
45,
47
],
[
49,
51
],
[
53,
55
],
[... |
12,611 | static void opt_target(const char *arg)
{
enum { PAL, NTSC, FILM, UNKNOWN } norm = UNKNOWN;
static const char *const frame_rates[] = {"25", "30000/1001", "24000/1001"};
if(!strncmp(arg, "pal-", 4)) {
norm = PAL;
arg += 4;
} else if(!strncmp(arg, "ntsc-", 5)) {
norm = NT... | false | FFmpeg | d1991f51f3298e91f9e4cca1f581b486fbd29ec3 | static void opt_target(const char *arg)
{
enum { PAL, NTSC, FILM, UNKNOWN } norm = UNKNOWN;
static const char *const frame_rates[] = {"25", "30000/1001", "24000/1001"};
if(!strncmp(arg, "pal-", 4)) {
norm = PAL;
arg += 4;
} else if(!strncmp(arg, "ntsc-", 5)) {
norm = NT... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
enum { PAL, NTSC, FILM, UNKNOWN } VAR_1 = UNKNOWN;
static const char *const VAR_2[] = {"25", "30000/1001", "24000/1001"};
if(!strncmp(VAR_0, "pal-", 4)) {
VAR_1 = PAL;
VAR_0 += 4;
} else if(!strncmp(VAR_0, "ntsc-", 5)) {
VAR_1 = N... | [
"static void FUNC_0(const char *VAR_0)\n{",
"enum { PAL, NTSC, FILM, UNKNOWN } VAR_1 = UNKNOWN;",
"static const char *const VAR_2[] = {\"25\", \"30000/1001\", \"24000/1001\"};",
"if(!strncmp(VAR_0, \"pal-\", 4)) {",
"VAR_1 = PAL;",
"VAR_0 += 4;",
"} else if(!strncmp(VAR_0, \"ntsc-\", 5)) {",
"VAR_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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
12,612 | static int decode_init(AVCodecContext *avctx)
{
LclContext * const c = (LclContext *)avctx->priv_data;
int basesize = avctx->width * avctx->height;
int zret; // Zlib return code
c->avctx = avctx;
avctx->has_b_frames = 0;
c->pic.data[0] = NULL;
#ifdef CONFIG_ZLIB
// Needed if z... | true | FFmpeg | c31b81216619e6b3d986ce63c82357993e10e8e9 | static int decode_init(AVCodecContext *avctx)
{
LclContext * const c = (LclContext *)avctx->priv_data;
int basesize = avctx->width * avctx->height;
int zret;
c->avctx = avctx;
avctx->has_b_frames = 0;
c->pic.data[0] = NULL;
#ifdef CONFIG_ZLIB
memset(&(c->zstream), 0, si... | {
"code": [
" int basesize = avctx->width * avctx->height;",
" if ((c->decomp_buf = av_malloc(c->decomp_size+4*8)) == NULL) {"
],
"line_no": [
7,
215
]
} | static int FUNC_0(AVCodecContext *VAR_0)
{
LclContext * const c = (LclContext *)VAR_0->priv_data;
int VAR_1 = VAR_0->width * VAR_0->height;
int VAR_2;
c->VAR_0 = VAR_0;
VAR_0->has_b_frames = 0;
c->pic.data[0] = NULL;
#ifdef CONFIG_ZLIB
memset(&(c->zstream), 0, sizeof(z_... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"LclContext * const c = (LclContext *)VAR_0->priv_data;",
"int VAR_1 = VAR_0->width * VAR_0->height;",
"int VAR_2;",
"c->VAR_0 = VAR_0;",
"VAR_0->has_b_frames = 0;",
"c->pic.data[0] = NULL;",
"#ifdef CONFIG_ZLIB\nmemset(&(c->zstream), 0, sizeof(z_stream))... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23,
27
],
[
29,
33
],
[
35
],
[
37
],
[
39
],
[
45,
47
],
[
49
],
[
51
],
[
57
],
[
59,
61
],
[
63
... |
12,613 | static void lsi_do_command(LSIState *s)
{
SCSIDevice *dev;
uint8_t buf[16];
uint32_t id;
int n;
DPRINTF("Send command len=%d\n", s->dbc);
if (s->dbc > 16)
s->dbc = 16;
pci_dma_read(PCI_DEVICE(s), s->dnad, buf, s->dbc);
s->sfbr = buf[0];
s->command_complete = 0;
... | true | qemu | 3c55fe2a13353b3ddf1db51c34ada23d161ee428 | static void lsi_do_command(LSIState *s)
{
SCSIDevice *dev;
uint8_t buf[16];
uint32_t id;
int n;
DPRINTF("Send command len=%d\n", s->dbc);
if (s->dbc > 16)
s->dbc = 16;
pci_dma_read(PCI_DEVICE(s), s->dnad, buf, s->dbc);
s->sfbr = buf[0];
s->command_complete = 0;
... | {
"code": [
" s->current = g_malloc0(sizeof(lsi_request));"
],
"line_no": [
45
]
} | static void FUNC_0(LSIState *VAR_0)
{
SCSIDevice *dev;
uint8_t buf[16];
uint32_t id;
int VAR_1;
DPRINTF("Send command len=%d\VAR_1", VAR_0->dbc);
if (VAR_0->dbc > 16)
VAR_0->dbc = 16;
pci_dma_read(PCI_DEVICE(VAR_0), VAR_0->dnad, buf, VAR_0->dbc);
VAR_0->sfbr = buf[0];... | [
"static void FUNC_0(LSIState *VAR_0)\n{",
"SCSIDevice *dev;",
"uint8_t buf[16];",
"uint32_t id;",
"int VAR_1;",
"DPRINTF(\"Send command len=%d\\VAR_1\", VAR_0->dbc);",
"if (VAR_0->dbc > 16)\nVAR_0->dbc = 16;",
"pci_dma_read(PCI_DEVICE(VAR_0), VAR_0->dnad, buf, VAR_0->dbc);",
"VAR_0->sfbr = buf[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
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
12,615 | static void use_high_update_speed(WmallDecodeCtx *s, int ich)
{
int ilms, recent, icoef;
s->update_speed[ich] = 16;
for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {
recent = s->cdlms[ich][ilms].recent;
if (s->bV3RTM) {
for (icoef = 0; icoef < s->cdlms[ich][ilms].order; ... | true | FFmpeg | 6cf31ef263d36f6b89d9b64f15ca81cef4f24901 | static void use_high_update_speed(WmallDecodeCtx *s, int ich)
{
int ilms, recent, icoef;
s->update_speed[ich] = 16;
for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {
recent = s->cdlms[ich][ilms].recent;
if (s->bV3RTM) {
for (icoef = 0; icoef < s->cdlms[ich][ilms].order; ... | {
"code": [
" for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {",
" for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {"
],
"line_no": [
9,
9
]
} | static void FUNC_0(WmallDecodeCtx *VAR_0, int VAR_1)
{
int VAR_2, VAR_3, VAR_4;
VAR_0->update_speed[VAR_1] = 16;
for (VAR_2 = VAR_0->cdlms_ttl[VAR_1]; VAR_2 >= 0; VAR_2--) {
VAR_3 = VAR_0->cdlms[VAR_1][VAR_2].VAR_3;
if (VAR_0->bV3RTM) {
for (VAR_4 = 0; VAR_4 < VAR_0->cdlms... | [
"static void FUNC_0(WmallDecodeCtx *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"VAR_0->update_speed[VAR_1] = 16;",
"for (VAR_2 = VAR_0->cdlms_ttl[VAR_1]; VAR_2 >= 0; VAR_2--) {",
"VAR_3 = VAR_0->cdlms[VAR_1][VAR_2].VAR_3;",
"if (VAR_0->bV3RTM) {",
"for (VAR_4 = 0; VAR_4 < VAR_0->cdlms[VAR_1][VAR... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,617 | static void dump_json_image_check(ImageCheck *check, bool quiet)
{
Error *local_err = NULL;
QString *str;
QmpOutputVisitor *ov = qmp_output_visitor_new();
QObject *obj;
visit_type_ImageCheck(qmp_output_get_visitor(ov), NULL, &check,
&local_err);
obj = qmp_output... | true | qemu | 911ee36d411ee9b3540855642b53219b6a974992 | static void dump_json_image_check(ImageCheck *check, bool quiet)
{
Error *local_err = NULL;
QString *str;
QmpOutputVisitor *ov = qmp_output_visitor_new();
QObject *obj;
visit_type_ImageCheck(qmp_output_get_visitor(ov), NULL, &check,
&local_err);
obj = qmp_output... | {
"code": [
" Error *local_err = NULL;",
" &local_err);",
" Error *local_err = NULL;",
" Error *local_err = NULL;"
],
"line_no": [
5,
15,
5,
5
]
} | static void FUNC_0(ImageCheck *VAR_0, bool VAR_1)
{
Error *local_err = NULL;
QString *str;
QmpOutputVisitor *ov = qmp_output_visitor_new();
QObject *obj;
visit_type_ImageCheck(qmp_output_get_visitor(ov), NULL, &VAR_0,
&local_err);
obj = qmp_output_get_qobject(ov... | [
"static void FUNC_0(ImageCheck *VAR_0, bool VAR_1)\n{",
"Error *local_err = NULL;",
"QString *str;",
"QmpOutputVisitor *ov = qmp_output_visitor_new();",
"QObject *obj;",
"visit_type_ImageCheck(qmp_output_get_visitor(ov), NULL, &VAR_0,\n&local_err);",
"obj = qmp_output_get_qobject(ov);",
"str = qobject... | [
0,
1,
0,
0,
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
]
] |
12,618 | static bool aux_bus_is_bridge(AUXBus *bus, DeviceState *dev)
{
return (dev == DEVICE(bus->bridge));
}
| true | qemu | e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f | static bool aux_bus_is_bridge(AUXBus *bus, DeviceState *dev)
{
return (dev == DEVICE(bus->bridge));
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(AUXBus *bus, DeviceState *dev)
{
return (dev == DEVICE(bus->bridge));
}
| [
"static bool FUNC_0(AUXBus *bus, DeviceState *dev)\n{",
"return (dev == DEVICE(bus->bridge));",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
12,619 | void ff_estimate_b_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
const int penalty_factor= c->mb_penalty_factor;
int fmin, bmin, dmin, fbmin, bimin, fimin;
int type=0;
const int xy = mb_y*s->mb_stride + mb_x;
init_... | false | FFmpeg | 5b4da8a38a5ed211df9504c85ce401c30af86b97 | void ff_estimate_b_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
const int penalty_factor= c->mb_penalty_factor;
int fmin, bmin, dmin, fbmin, bimin, fimin;
int type=0;
const int xy = mb_y*s->mb_stride + mb_x;
init_... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext * VAR_0,
int VAR_1, int VAR_2)
{
MotionEstContext * const c= &VAR_0->me;
const int VAR_3= c->mb_penalty_factor;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10=0;
const int VAR_11 = VAR_2*VAR_0->mb_stride + VAR_1;
init_ref(... | [
"void FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"const int VAR_3= c->mb_penalty_factor;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10=0;",
"const int VAR_11 = VAR_2*VAR_0->mb_stride + VAR_1;",
"init_ref(c, VAR_0->new_picture.f-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53,
55
],
[... |
12,620 | static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
{
int level, pred, code;
uint16_t *dc_val;
if (n < 4)
code = get_vlc2(&s->gb, dc_lum.table, DC_VLC_BITS, 1);
else
code = get_vlc2(&s->gb, dc_chrom.table, DC_VLC_BITS, 1);
if (code < 0 || code > 9 /... | false | FFmpeg | 6d71b3820759235c02493ac73ef5949b653ad29b | static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
{
int level, pred, code;
uint16_t *dc_val;
if (n < 4)
code = get_vlc2(&s->gb, dc_lum.table, DC_VLC_BITS, 1);
else
code = get_vlc2(&s->gb, dc_chrom.table, DC_VLC_BITS, 1);
if (code < 0 || code > 9 )... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
uint16_t *dc_val;
if (VAR_1 < 4)
VAR_5 = get_vlc2(&VAR_0->gb, dc_lum.table, DC_VLC_BITS, 1);
else
VAR_5 = get_vlc2(&VAR_0->gb, dc_chrom.table, DC_VLC_BITS, 1);
if (VAR_5 < 0... | [
"static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"uint16_t *dc_val;",
"if (VAR_1 < 4)\nVAR_5 = get_vlc2(&VAR_0->gb, dc_lum.table, DC_VLC_BITS, 1);",
"else\nVAR_5 = get_vlc2(&VAR_0->gb, dc_chrom.table, DC_VLC_BITS, 1);",
"if (VAR_5 < 0 || VAR_5 > 9 )... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
12,621 | static void check_pred8x8(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,
int codec, int chroma_format, int bit_depth)
{
int pred_mode;
for (pred_mode = 0; pred_mode < 11; pred_mode++) {
if (check_pred_func(h->pred8x8[pred_mode], (chroma_format == 2) ? "8x16" : "8x8",
... | false | FFmpeg | 515b69f8f8e9a24cfaee95d8c1f63f265d8582fe | static void check_pred8x8(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,
int codec, int chroma_format, int bit_depth)
{
int pred_mode;
for (pred_mode = 0; pred_mode < 11; pred_mode++) {
if (check_pred_func(h->pred8x8[pred_mode], (chroma_format == 2) ? "8x16" : "8x8",
... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6;
for (VAR_6 = 0; VAR_6 < 11; VAR_6++) {
if (check_pred_func(VAR_0->pred8x8[VAR_6], (VAR_4 == 2) ? "8x16" : "8x8",
pred8x8_mo... | [
"static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6;",
"for (VAR_6 = 0; VAR_6 < 11; VAR_6++) {",
"if (check_pred_func(VAR_0->pred8x8[VAR_6], (VAR_4 == 2) ? \"8x16\" : \"8x8\",\npred8x8_modes[VAR_3][VAR_6])) {",
"randomize_buffers();",... | [
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
]
] |
12,622 | int kvm_arch_remove_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp)
{
uint8_t int3;
if (cpu_memory_rw_debug(env, bp->pc, &int3, 1, 0) || int3 != 0xcc ||
cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 1))
return -EINVAL;
return 0;
}
| false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | int kvm_arch_remove_sw_breakpoint(CPUState *env, struct kvm_sw_breakpoint *bp)
{
uint8_t int3;
if (cpu_memory_rw_debug(env, bp->pc, &int3, 1, 0) || int3 != 0xcc ||
cpu_memory_rw_debug(env, bp->pc, (uint8_t *)&bp->saved_insn, 1, 1))
return -EINVAL;
return 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)
{
uint8_t int3;
if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, &int3, 1, 0) || int3 != 0xcc ||
cpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn, 1, 1))
return -EINVAL;
return 0;
}
| [
"int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)\n{",
"uint8_t int3;",
"if (cpu_memory_rw_debug(VAR_0, VAR_1->pc, &int3, 1, 0) || int3 != 0xcc ||\ncpu_memory_rw_debug(VAR_0, VAR_1->pc, (uint8_t *)&VAR_1->saved_insn, 1, 1))\nreturn -EINVAL;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
]
] |
12,623 | static void rtas_nvram_fetch(sPAPREnvironment *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
sPAPRNVRAM *nvram = spapr->nvram;
hwaddr offset, buffer, len;
int alen;
... | false | qemu | 210b580b106fa798149e28aa13c66b325a43204e | static void rtas_nvram_fetch(sPAPREnvironment *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
sPAPRNVRAM *nvram = spapr->nvram;
hwaddr offset, buffer, len;
int alen;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0,
uint32_t VAR_1, uint32_t VAR_2,
target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
sPAPRNVRAM *nvram = VAR_0->nvram;
hwaddr offset, buffer, len;
int VAR_6;
vo... | [
"static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"sPAPRNVRAM *nvram = VAR_0->nvram;",
"hwaddr offset, buffer, len;",
"int VAR_6;",
"void *VAR_7;",
"if ((VAR_2 != 3) || (VAR_4 != 2)) {",
"rtas_st(VAR_5, 0, -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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51,
53
... |
12,625 | int socket_connect(SocketAddressLegacy *addr, NonBlockingConnectHandler *callback,
void *opaque, Error **errp)
{
int fd;
switch (addr->type) {
case SOCKET_ADDRESS_LEGACY_KIND_INET:
fd = inet_connect_saddr(addr->u.inet.data, callback, opaque, errp);
break;
c... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | int socket_connect(SocketAddressLegacy *addr, NonBlockingConnectHandler *callback,
void *opaque, Error **errp)
{
int fd;
switch (addr->type) {
case SOCKET_ADDRESS_LEGACY_KIND_INET:
fd = inet_connect_saddr(addr->u.inet.data, callback, opaque, errp);
break;
c... | {
"code": [],
"line_no": []
} | int FUNC_0(SocketAddressLegacy *VAR_0, NonBlockingConnectHandler *VAR_1,
void *VAR_2, Error **VAR_3)
{
int VAR_4;
switch (VAR_0->type) {
case SOCKET_ADDRESS_LEGACY_KIND_INET:
VAR_4 = inet_connect_saddr(VAR_0->u.inet.data, VAR_1, VAR_2, VAR_3);
break;
case S... | [
"int FUNC_0(SocketAddressLegacy *VAR_0, NonBlockingConnectHandler *VAR_1,\nvoid *VAR_2, Error **VAR_3)\n{",
"int VAR_4;",
"switch (VAR_0->type) {",
"case SOCKET_ADDRESS_LEGACY_KIND_INET:\nVAR_4 = inet_connect_saddr(VAR_0->u.inet.data, VAR_1, VAR_2, VAR_3);",
"break;",
"case SOCKET_ADDRESS_LEGACY_KIND_UNIX... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
21,
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
53,
55
],
[
57... |
12,626 | static void validate_numa_cpus(void)
{
int i;
unsigned long *seen_cpus = bitmap_new(max_cpus);
for (i = 0; i < nb_numa_nodes; i++) {
if (bitmap_intersects(seen_cpus, numa_info[i].node_cpu, max_cpus)) {
bitmap_and(seen_cpus, seen_cpus,
numa_info[i].node_cpu... | false | qemu | ec78f8114bc4c133fc56fefa7f2af99725e42857 | static void validate_numa_cpus(void)
{
int i;
unsigned long *seen_cpus = bitmap_new(max_cpus);
for (i = 0; i < nb_numa_nodes; i++) {
if (bitmap_intersects(seen_cpus, numa_info[i].node_cpu, max_cpus)) {
bitmap_and(seen_cpus, seen_cpus,
numa_info[i].node_cpu... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
int VAR_0;
unsigned long *VAR_1 = bitmap_new(max_cpus);
for (VAR_0 = 0; VAR_0 < nb_numa_nodes; VAR_0++) {
if (bitmap_intersects(VAR_1, numa_info[VAR_0].node_cpu, max_cpus)) {
bitmap_and(VAR_1, VAR_1,
numa_info[VAR_0].node_cpu, ma... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"unsigned long *VAR_1 = bitmap_new(max_cpus);",
"for (VAR_0 = 0; VAR_0 < nb_numa_nodes; VAR_0++) {",
"if (bitmap_intersects(VAR_1, numa_info[VAR_0].node_cpu, max_cpus)) {",
"bitmap_and(VAR_1, VAR_1,\nnuma_info[VAR_0].node_cpu, max_cpus);",
"error_report(\"CPU... | [
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
],
[
41
],
[
43
],
[
45
],
[
47,
49... |
12,627 | void hmp_nbd_server_start(Monitor *mon, const QDict *qdict)
{
const char *uri = qdict_get_str(qdict, "uri");
bool writable = qdict_get_try_bool(qdict, "writable", false);
bool all = qdict_get_try_bool(qdict, "all", false);
Error *local_err = NULL;
BlockInfoList *block_list, *info;
SocketA... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | void hmp_nbd_server_start(Monitor *mon, const QDict *qdict)
{
const char *uri = qdict_get_str(qdict, "uri");
bool writable = qdict_get_try_bool(qdict, "writable", false);
bool all = qdict_get_try_bool(qdict, "all", false);
Error *local_err = NULL;
BlockInfoList *block_list, *info;
SocketA... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");
bool writable = qdict_get_try_bool(VAR_1, "writable", false);
bool all = qdict_get_try_bool(VAR_1, "all", false);
Error *local_err = NULL;
BlockInfoList *block_list, *info;
SocketAddressLe... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");",
"bool writable = qdict_get_try_bool(VAR_1, \"writable\", false);",
"bool all = qdict_get_try_bool(VAR_1, \"all\", false);",
"Error *local_err = NULL;",
"BlockInfoList *block_list, *info;",
"Sock... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
12,629 | static void RENAME(yuv2bgr24_2)(SwsContext *c, const uint16_t *buf0,
const uint16_t *buf1, const uint16_t *ubuf0,
const uint16_t *ubuf1, const uint16_t *vbuf0,
const uint16_t *vbuf1, const uint16_t *abuf0,
... | false | FFmpeg | 13a099799e89a76eb921ca452e1b04a7a28a9855 | static void RENAME(yuv2bgr24_2)(SwsContext *c, const uint16_t *buf0,
const uint16_t *buf1, const uint16_t *ubuf0,
const uint16_t *ubuf1, const uint16_t *vbuf0,
const uint16_t *vbuf1, const uint16_t *abuf0,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(yuv2bgr24_2)(SwsContext *c, const uint16_t *buf0,
const uint16_t *buf1, const uint16_t *ubuf0,
const uint16_t *ubuf1, const uint16_t *vbuf0,
const uint16_t *vbuf1, const uint16_t *abuf0,
... | [
"static void FUNC_0(yuv2bgr24_2)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *buf1, const uint16_t *ubuf0,\nconst uint16_t *ubuf1, const uint16_t *vbuf0,\nconst uint16_t *vbuf1, const uint16_t *abuf0,\nconst uint16_t *abuf1, uint8_t *dest,\nint dstW, int yalpha, int uvalpha, int y)\n{",
"__asm__ volatile... | [
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39
],
[
41
]
] |
12,630 | void cpu_dump_statistics (CPUState *env, FILE*f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#if defined(DO_PPC_STATISTICS)
opc_handler_t **t1, **t2, **t3, *handler;
int op1, op2, op3;
t1 = env->opcodes;
for (op1 = 0; op1 ... | false | qemu | 9a78eead0c74333a394c0f7bbfc4423ac746fcd5 | void cpu_dump_statistics (CPUState *env, FILE*f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#if defined(DO_PPC_STATISTICS)
opc_handler_t **t1, **t2, **t3, *handler;
int op1, op2, op3;
t1 = env->opcodes;
for (op1 = 0; op1 ... | {
"code": [],
"line_no": []
} | void FUNC_0 (CPUState *VAR_0, FILE*VAR_3,
int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),
int VAR_4)
{
#if defined(DO_PPC_STATISTICS)
opc_handler_t **t1, **t2, **t3, *handler;
int op1, op2, op3;
t1 = VAR_0->opcodes;
for (op1 = 0; op1 < 64;... | [
"void FUNC_0 (CPUState *VAR_0, FILE*VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nint VAR_4)\n{",
"#if defined(DO_PPC_STATISTICS)\nopc_handler_t **t1, **t2, **t3, *handler;",
"int op1, op2, op3;",
"t1 = VAR_0->opcodes;",
"for (op1 = 0; op1 < 64; op1++) {",
"handler = t1[op1];",
"if (is_ind... | [
0,
0,
0,
0,
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,
49,
51
... |
12,631 | static Suite *qint_suite(void)
{
Suite *s;
TCase *qint_public_tcase;
s = suite_create("QInt test-suite");
qint_public_tcase = tcase_create("Public Interface");
suite_add_tcase(s, qint_public_tcase);
tcase_add_test(qint_public_tcase, qint_from_int_test);
tcase_add_test(qint_public... | false | qemu | 65cdadd2e2de76f7db3bf6b7d8dd8c67abff9659 | static Suite *qint_suite(void)
{
Suite *s;
TCase *qint_public_tcase;
s = suite_create("QInt test-suite");
qint_public_tcase = tcase_create("Public Interface");
suite_add_tcase(s, qint_public_tcase);
tcase_add_test(qint_public_tcase, qint_from_int_test);
tcase_add_test(qint_public... | {
"code": [],
"line_no": []
} | static Suite *FUNC_0(void)
{
Suite *s;
TCase *qint_public_tcase;
s = suite_create("QInt test-suite");
qint_public_tcase = tcase_create("Public Interface");
suite_add_tcase(s, qint_public_tcase);
tcase_add_test(qint_public_tcase, qint_from_int_test);
tcase_add_test(qint_public_tca... | [
"static Suite *FUNC_0(void)\n{",
"Suite *s;",
"TCase *qint_public_tcase;",
"s = suite_create(\"QInt test-suite\");",
"qint_public_tcase = tcase_create(\"Public Interface\");",
"suite_add_tcase(s, qint_public_tcase);",
"tcase_add_test(qint_public_tcase, qint_from_int_test);",
"tcase_add_test(qint_publi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
12,632 | static void qmp_input_type_int64(Visitor *v, const char *name, int64_t *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QInt *qint;
if (!qobj) {
return;
}
qint = qobject_to_qin... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void qmp_input_type_int64(Visitor *v, const char *name, int64_t *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QInt *qint;
if (!qobj) {
return;
}
qint = qobject_to_qin... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, int64_t *VAR_2,
Error **VAR_3)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);
QInt *qint;
if (!qobj) {
return;
}
qint = qobject_to_qin... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, int64_t *VAR_2,\nError **VAR_3)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);",
"QInt *qint;",
"if (!qobj) {",
"return;",
"}",
"qint = qobject_to_qint(qobj);",
"if (!qint) {",
"er... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
12,633 | static gint ppc_cpu_compare_class_pvr_mask(gconstpointer a, gconstpointer b)
{
ObjectClass *oc = (ObjectClass *)a;
uint32_t pvr = *(uint32_t *)b;
PowerPCCPUClass *pcc = (PowerPCCPUClass *)a;
gint ret;
/* -cpu host does a PVR lookup during construction */
if (unlikely(strcmp(object_class... | false | qemu | 03ae4133ab8675d4c67e6fdc8032de7c53a89514 | static gint ppc_cpu_compare_class_pvr_mask(gconstpointer a, gconstpointer b)
{
ObjectClass *oc = (ObjectClass *)a;
uint32_t pvr = *(uint32_t *)b;
PowerPCCPUClass *pcc = (PowerPCCPUClass *)a;
gint ret;
if (unlikely(strcmp(object_class_get_name(oc),
TYPE_HOST_POW... | {
"code": [],
"line_no": []
} | static gint FUNC_0(gconstpointer a, gconstpointer b)
{
ObjectClass *oc = (ObjectClass *)a;
uint32_t pvr = *(uint32_t *)b;
PowerPCCPUClass *pcc = (PowerPCCPUClass *)a;
gint ret;
if (unlikely(strcmp(object_class_get_name(oc),
TYPE_HOST_POWERPC_CPU) == 0)) {
... | [
"static gint FUNC_0(gconstpointer a, gconstpointer b)\n{",
"ObjectClass *oc = (ObjectClass *)a;",
"uint32_t pvr = *(uint32_t *)b;",
"PowerPCCPUClass *pcc = (PowerPCCPUClass *)a;",
"gint ret;",
"if (unlikely(strcmp(object_class_get_name(oc),\nTYPE_HOST_POWERPC_CPU) == 0)) {",
"return -1;",
"}",
"if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
]
] |
12,634 | void cpu_resume_from_signal(CPUState *cpu, void *puc)
{
/* XXX: restore cpu registers saved in host registers */
cpu->exception_index = -1;
siglongjmp(cpu->jmp_env, 1);
}
| false | qemu | 6886b98036a8f8f5bce8b10756ce080084cef11b | void cpu_resume_from_signal(CPUState *cpu, void *puc)
{
cpu->exception_index = -1;
siglongjmp(cpu->jmp_env, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, void *VAR_1)
{
VAR_0->exception_index = -1;
siglongjmp(VAR_0->jmp_env, 1);
}
| [
"void FUNC_0(CPUState *VAR_0, void *VAR_1)\n{",
"VAR_0->exception_index = -1;",
"siglongjmp(VAR_0->jmp_env, 1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
9
],
[
11
],
[
13
]
] |
12,636 | void bdrv_replace_in_backing_chain(BlockDriverState *old, BlockDriverState *new)
{
assert(!bdrv_requests_pending(old));
assert(!bdrv_requests_pending(new));
bdrv_ref(old);
change_parent_backing_link(old, new);
bdrv_unref(old);
}
| false | qemu | 234ac1a9025bcfcc532449f72a97b3d4754d466c | void bdrv_replace_in_backing_chain(BlockDriverState *old, BlockDriverState *new)
{
assert(!bdrv_requests_pending(old));
assert(!bdrv_requests_pending(new));
bdrv_ref(old);
change_parent_backing_link(old, new);
bdrv_unref(old);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1)
{
assert(!bdrv_requests_pending(VAR_0));
assert(!bdrv_requests_pending(VAR_1));
bdrv_ref(VAR_0);
change_parent_backing_link(VAR_0, VAR_1);
bdrv_unref(VAR_0);
}
| [
"void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1)\n{",
"assert(!bdrv_requests_pending(VAR_0));",
"assert(!bdrv_requests_pending(VAR_1));",
"bdrv_ref(VAR_0);",
"change_parent_backing_link(VAR_0, VAR_1);",
"bdrv_unref(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
]
] |
12,637 | unsigned long virtio_load_direct(ulong rec_list1, ulong rec_list2,
ulong subchan_id, void *load_addr)
{
u8 status;
int sec = rec_list1;
int sec_num = ((rec_list2 >> 32) & 0xffff) + 1;
int sec_len = rec_list2 >> 48;
ulong addr = (ulong)load_addr;
if (sec_len != SECTOR_SIZE) {
... | false | qemu | abd696e4f74a9d30801c6ae2693efe4e5979c2f2 | unsigned long virtio_load_direct(ulong rec_list1, ulong rec_list2,
ulong subchan_id, void *load_addr)
{
u8 status;
int sec = rec_list1;
int sec_num = ((rec_list2 >> 32) & 0xffff) + 1;
int sec_len = rec_list2 >> 48;
ulong addr = (ulong)load_addr;
if (sec_len != SECTOR_SIZE) {
... | {
"code": [],
"line_no": []
} | unsigned long FUNC_0(ulong VAR_0, ulong VAR_1,
ulong VAR_2, void *VAR_3)
{
u8 status;
int VAR_4 = VAR_0;
int VAR_5 = ((VAR_1 >> 32) & 0xffff) + 1;
int VAR_6 = VAR_1 >> 48;
ulong addr = (ulong)VAR_3;
if (VAR_6 != SECTOR_SIZE) {
return -1;
}
sclp_print(".");
... | [
"unsigned long FUNC_0(ulong VAR_0, ulong VAR_1,\nulong VAR_2, void *VAR_3)\n{",
"u8 status;",
"int VAR_4 = VAR_0;",
"int VAR_5 = ((VAR_1 >> 32) & 0xffff) + 1;",
"int VAR_6 = VAR_1 >> 48;",
"ulong addr = (ulong)VAR_3;",
"if (VAR_6 != SECTOR_SIZE) {",
"return -1;",
"}",
"sclp_print(\".\");",
"stat... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
12,638 | void xen_init_display(int domid)
{
struct XenDevice *xfb, *xin;
struct XenFB *fb;
struct XenInput *in;
int i = 0;
wait_more:
i++;
main_loop_wait(true);
xfb = xen_be_find_xendev("vfb", domid, 0);
xin = xen_be_find_xendev("vkbd", domid, 0);
if (!xfb || !xin) {
if ... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | void xen_init_display(int domid)
{
struct XenDevice *xfb, *xin;
struct XenFB *fb;
struct XenInput *in;
int i = 0;
wait_more:
i++;
main_loop_wait(true);
xfb = xen_be_find_xendev("vfb", domid, 0);
xin = xen_be_find_xendev("vkbd", domid, 0);
if (!xfb || !xin) {
if ... | {
"code": [],
"line_no": []
} | void FUNC_0(int VAR_0)
{
struct XenDevice *VAR_1, *VAR_2;
struct XenFB *VAR_3;
struct XenInput *VAR_4;
int VAR_5 = 0;
wait_more:
VAR_5++;
main_loop_wait(true);
VAR_1 = xen_be_find_xendev("vfb", VAR_0, 0);
VAR_2 = xen_be_find_xendev("vkbd", VAR_0, 0);
if (!VAR_1 || !VAR_2... | [
"void FUNC_0(int VAR_0)\n{",
"struct XenDevice *VAR_1, *VAR_2;",
"struct XenFB *VAR_3;",
"struct XenInput *VAR_4;",
"int VAR_5 = 0;",
"wait_more:\nVAR_5++;",
"main_loop_wait(true);",
"VAR_1 = xen_be_find_xendev(\"vfb\", VAR_0, 0);",
"VAR_2 = xen_be_find_xendev(\"vkbd\", VAR_0, 0);",
"if (!VAR_1 ||... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47,
49,... |
12,639 | static int musicpal_lcd_init(SysBusDevice *dev)
{
musicpal_lcd_state *s = FROM_SYSBUS(musicpal_lcd_state, dev);
s->brightness = 7;
memory_region_init_io(&s->iomem, &musicpal_lcd_ops, s,
"musicpal-lcd", MP_LCD_SIZE);
sysbus_init_mmio(dev, &s->iomem);
s->con = gr... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static int musicpal_lcd_init(SysBusDevice *dev)
{
musicpal_lcd_state *s = FROM_SYSBUS(musicpal_lcd_state, dev);
s->brightness = 7;
memory_region_init_io(&s->iomem, &musicpal_lcd_ops, s,
"musicpal-lcd", MP_LCD_SIZE);
sysbus_init_mmio(dev, &s->iomem);
s->con = gr... | {
"code": [],
"line_no": []
} | static int FUNC_0(SysBusDevice *VAR_0)
{
musicpal_lcd_state *s = FROM_SYSBUS(musicpal_lcd_state, VAR_0);
s->brightness = 7;
memory_region_init_io(&s->iomem, &musicpal_lcd_ops, s,
"musicpal-lcd", MP_LCD_SIZE);
sysbus_init_mmio(VAR_0, &s->iomem);
s->con = graphic... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"musicpal_lcd_state *s = FROM_SYSBUS(musicpal_lcd_state, VAR_0);",
"s->brightness = 7;",
"memory_region_init_io(&s->iomem, &musicpal_lcd_ops, s,\n\"musicpal-lcd\", MP_LCD_SIZE);",
"sysbus_init_mmio(VAR_0, &s->iomem);",
"s->con = graphic_console_init(lcd_refresh... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
17
],
[
21,
23
],
[
25
],
[
29
],
[
33
],
[
35
]
] |
12,640 | static int mov_write_gmhd_tag(AVIOContext *pb)
{
avio_wb32(pb, 0x20); /* size */
ffio_wfourcc(pb, "gmhd");
avio_wb32(pb, 0x18); /* gmin size */
ffio_wfourcc(pb, "gmin");/* generic media info */
avio_wb32(pb, 0); /* version & flags */
avio_wb16(pb, 0x40); /* graphics mode = */
... | false | FFmpeg | ea60a11e8e2d818e8e56da4da3ff38e23a12bdff | static int mov_write_gmhd_tag(AVIOContext *pb)
{
avio_wb32(pb, 0x20);
ffio_wfourcc(pb, "gmhd");
avio_wb32(pb, 0x18);
ffio_wfourcc(pb, "gmin");
avio_wb32(pb, 0);
avio_wb16(pb, 0x40);
avio_wb16(pb, 0x8000);
avio_wb16(pb, 0x8000);
avio_wb16(pb, 0x8000);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0)
{
avio_wb32(VAR_0, 0x20);
ffio_wfourcc(VAR_0, "gmhd");
avio_wb32(VAR_0, 0x18);
ffio_wfourcc(VAR_0, "gmin");
avio_wb32(VAR_0, 0);
avio_wb16(VAR_0, 0x40);
avio_wb16(VAR_0, 0x8000);
avio_wb16(VAR_0, 0x8000);
avio_wb16(VAR_... | [
"static int FUNC_0(AVIOContext *VAR_0)\n{",
"avio_wb32(VAR_0, 0x20);",
"ffio_wfourcc(VAR_0, \"gmhd\");",
"avio_wb32(VAR_0, 0x18);",
"ffio_wfourcc(VAR_0, \"gmin\");",
"avio_wb32(VAR_0, 0);",
"avio_wb16(VAR_0, 0x40);",
"avio_wb16(VAR_0, 0x8000);",
"avio_wb16(VAR_0, 0x8000);",
"avio_wb16(VAR_0, 0x800... | [
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
]
] |
12,641 | int float64_le( float64 a, float64 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) )
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
) {
float_raise( float_flag_invalid STATUS_VAR);
retu... | false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | int float64_le( float64 a, float64 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) )
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
) {
float_raise( float_flag_invalid STATUS_VAR);
retu... | {
"code": [],
"line_no": []
} | int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) )
|| ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) )
) {
float_raise( float_flag_invalid STATUS... | [
"int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM )\n{",
"flag aSign, bSign;",
"if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) )\n|| ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) )\n) {",
"float_raise( float_flag_invalid STATUS_VAR);",
"retur... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
]
] |
12,643 | static int usb_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
USBDevice *dev = DO_UPCAST(USBDevice, qdev, qdev);
USBDeviceInfo *info = DO_UPCAST(USBDeviceInfo, qdev, base);
int rc;
pstrcpy(dev->product_desc, sizeof(dev->product_desc), info->product_desc);
dev->info = info;
dev->auto_a... | false | qemu | 891fb2cd4592b6fe76106a69e0ca40efbf82726a | static int usb_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
USBDevice *dev = DO_UPCAST(USBDevice, qdev, qdev);
USBDeviceInfo *info = DO_UPCAST(USBDeviceInfo, qdev, base);
int rc;
pstrcpy(dev->product_desc, sizeof(dev->product_desc), info->product_desc);
dev->info = info;
dev->auto_a... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)
{
USBDevice *dev = DO_UPCAST(USBDevice, VAR_0, VAR_0);
USBDeviceInfo *info = DO_UPCAST(USBDeviceInfo, VAR_0, VAR_1);
int VAR_2;
pstrcpy(dev->product_desc, sizeof(dev->product_desc), info->product_desc);
dev->info = info;
dev->auto... | [
"static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)\n{",
"USBDevice *dev = DO_UPCAST(USBDevice, VAR_0, VAR_0);",
"USBDeviceInfo *info = DO_UPCAST(USBDeviceInfo, VAR_0, VAR_1);",
"int VAR_2;",
"pstrcpy(dev->product_desc, sizeof(dev->product_desc), info->product_desc);",
"dev->info = info;",
"dev->a... | [
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
]
] |
12,644 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
int64_t length;
int64_t n;
int64_t ret, ret2;
length = bdrv_getle... | false | qemu | c3d8688470a33feb0ea78c006b4399d50c13185e | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
int64_t length;
int64_t n;
int64_t ret, ret2;
length = bdrv_getle... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
int64_t length;
int64_t n;
int64_t ret, ret2;
length = bdrv_getlength(bs... | [
"static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum)\n{",
"int64_t length;",
"int64_t n;",
"int64_t ret, ret2;",
"length = bdrv_getlength(bs);",
"if (length < 0) {",
"return length;",
"}",
"if (sector_num >= (length >> BDRV_SECTOR_BITS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
... |
12,646 | void *qemu_try_blockalign(BlockDriverState *bs, size_t size)
{
size_t align = bdrv_opt_mem_align(bs);
/* Ensure that NULL is never returned on success */
assert(align > 0);
if (size == 0) {
size = align;
}
return qemu_try_memalign(align, size);
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | void *qemu_try_blockalign(BlockDriverState *bs, size_t size)
{
size_t align = bdrv_opt_mem_align(bs);
assert(align > 0);
if (size == 0) {
size = align;
}
return qemu_try_memalign(align, size);
}
| {
"code": [],
"line_no": []
} | void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)
{
size_t align = bdrv_opt_mem_align(VAR_0);
assert(align > 0);
if (VAR_1 == 0) {
VAR_1 = align;
}
return qemu_try_memalign(align, VAR_1);
}
| [
"void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)\n{",
"size_t align = bdrv_opt_mem_align(VAR_0);",
"assert(align > 0);",
"if (VAR_1 == 0) {",
"VAR_1 = align;",
"}",
"return qemu_try_memalign(align, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
12,647 | float32 helper_fxtos(CPUSPARCState *env, int64_t src)
{
float32 ret;
clear_float_exceptions(env);
ret = int64_to_float32(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| false | qemu | 7385aed20db5d83979f683b9d0048674411e963c | float32 helper_fxtos(CPUSPARCState *env, int64_t src)
{
float32 ret;
clear_float_exceptions(env);
ret = int64_to_float32(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| {
"code": [],
"line_no": []
} | float32 FUNC_0(CPUSPARCState *env, int64_t src)
{
float32 ret;
clear_float_exceptions(env);
ret = int64_to_float32(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| [
"float32 FUNC_0(CPUSPARCState *env, int64_t src)\n{",
"float32 ret;",
"clear_float_exceptions(env);",
"ret = int64_to_float32(src, &env->fp_status);",
"check_ieee_exceptions(env);",
"return ret;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,649 | VirtIOSCSIReq *virtio_scsi_pop_req_vring(VirtIOSCSI *s,
VirtIOSCSIVring *vring)
{
VirtIOSCSIReq *req = virtio_scsi_init_req(s, NULL);
int r;
req->vring = vring;
r = vring_pop((VirtIODevice *)s, &vring->vring, &req->elem);
if (r < 0) {
virtio... | false | qemu | 51b19ebe4320f3dcd93cea71235c1219318ddfd2 | VirtIOSCSIReq *virtio_scsi_pop_req_vring(VirtIOSCSI *s,
VirtIOSCSIVring *vring)
{
VirtIOSCSIReq *req = virtio_scsi_init_req(s, NULL);
int r;
req->vring = vring;
r = vring_pop((VirtIODevice *)s, &vring->vring, &req->elem);
if (r < 0) {
virtio... | {
"code": [],
"line_no": []
} | VirtIOSCSIReq *FUNC_0(VirtIOSCSI *s,
VirtIOSCSIVring *vring)
{
VirtIOSCSIReq *req = virtio_scsi_init_req(s, NULL);
int VAR_0;
req->vring = vring;
VAR_0 = vring_pop((VirtIODevice *)s, &vring->vring, &req->elem);
if (VAR_0 < 0) {
virtio_scsi_f... | [
"VirtIOSCSIReq *FUNC_0(VirtIOSCSI *s,\nVirtIOSCSIVring *vring)\n{",
"VirtIOSCSIReq *req = virtio_scsi_init_req(s, NULL);",
"int VAR_0;",
"req->vring = vring;",
"VAR_0 = vring_pop((VirtIODevice *)s, &vring->vring, &req->elem);",
"if (VAR_0 < 0) {",
"virtio_scsi_free_req(req);",
"req = NULL;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
12,650 | uint64_t helper_fctiwz (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN conversion */
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64... | false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | uint64_t helper_fctiwz (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))... | {
"code": [],
"line_no": []
} | uint64_t FUNC_0 (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) {
... | [
"uint64_t FUNC_0 (uint64_t arg)\n{",
"CPU_DoubleU farg;",
"farg.ll = arg;",
"if (unlikely(float64_is_signaling_nan(farg.d))) {",
"farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);",
"} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) {",
"farg.ll =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27,
35
],
[
37,
39
],
[
41
],
[
43
]
] |
12,652 | void list_cpus(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
const char *optarg)
{
/* XXX: implement xxx_cpu_list for targets that still miss it */
#if defined(cpu_list_id)
cpu_list_id(f, cpu_fprintf, optarg);
#elif defined(cpu_list)
cpu_list(f, cpu_fprintf); /* deprecate... | false | qemu | 9a78eead0c74333a394c0f7bbfc4423ac746fcd5 | void list_cpus(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
const char *optarg)
{
#if defined(cpu_list_id)
cpu_list_id(f, cpu_fprintf, optarg);
#elif defined(cpu_list)
cpu_list(f, cpu_fprintf);
#endif
}
| {
"code": [],
"line_no": []
} | void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...),
const char *VAR_3)
{
#if defined(cpu_list_id)
cpu_list_id(VAR_2, VAR_1, VAR_3);
#elif defined(cpu_list)
cpu_list(VAR_2, VAR_1);
#endif
}
| [
"void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...),\nconst char *VAR_3)\n{",
"#if defined(cpu_list_id)\ncpu_list_id(VAR_2, VAR_1, VAR_3);",
"#elif defined(cpu_list)\ncpu_list(VAR_2, VAR_1);",
"#endif\n}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9,
11
],
[
13,
15
],
[
17,
19
]
] |
12,653 | static void qmp_deserialize(void **native_out, void *datap,
VisitorFunc visit, Error **errp)
{
QmpSerializeData *d = datap;
QString *output_json;
QObject *obj_orig, *obj;
obj_orig = qmp_output_get_qobject(d->qov);
output_json = qobject_to_json(obj_orig);
obj... | false | qemu | 3b098d56979d2f7fd707c5be85555d114353a28d | static void qmp_deserialize(void **native_out, void *datap,
VisitorFunc visit, Error **errp)
{
QmpSerializeData *d = datap;
QString *output_json;
QObject *obj_orig, *obj;
obj_orig = qmp_output_get_qobject(d->qov);
output_json = qobject_to_json(obj_orig);
obj... | {
"code": [],
"line_no": []
} | static void FUNC_0(void **VAR_0, void *VAR_1,
VisitorFunc VAR_2, Error **VAR_3)
{
QmpSerializeData *d = VAR_1;
QString *output_json;
QObject *obj_orig, *obj;
obj_orig = qmp_output_get_qobject(d->qov);
output_json = qobject_to_json(obj_orig);
obj = qobject_fr... | [
"static void FUNC_0(void **VAR_0, void *VAR_1,\nVisitorFunc VAR_2, Error **VAR_3)\n{",
"QmpSerializeData *d = VAR_1;",
"QString *output_json;",
"QObject *obj_orig, *obj;",
"obj_orig = qmp_output_get_qobject(d->qov);",
"output_json = qobject_to_json(obj_orig);",
"obj = qobject_from_json(qstring_get_str(o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
12,654 | static void scsi_read_complete(void * opaque, int ret)
{
SCSIGenericReq *r = (SCSIGenericReq *)opaque;
SCSIDevice *s = r->req.dev;
int len;
r->req.aiocb = NULL;
if (ret || r->req.io_canceled) {
scsi_command_complete(r, ret);
return;
}
len = r->io_header.dxfer_len ... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_read_complete(void * opaque, int ret)
{
SCSIGenericReq *r = (SCSIGenericReq *)opaque;
SCSIDevice *s = r->req.dev;
int len;
r->req.aiocb = NULL;
if (ret || r->req.io_canceled) {
scsi_command_complete(r, ret);
return;
}
len = r->io_header.dxfer_len ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void * VAR_0, int VAR_1)
{
SCSIGenericReq *r = (SCSIGenericReq *)VAR_0;
SCSIDevice *s = r->req.dev;
int VAR_2;
r->req.aiocb = NULL;
if (VAR_1 || r->req.io_canceled) {
scsi_command_complete(r, VAR_1);
return;
}
VAR_2 = r->io_header.dxfer_len - r-... | [
"static void FUNC_0(void * VAR_0, int VAR_1)\n{",
"SCSIGenericReq *r = (SCSIGenericReq *)VAR_0;",
"SCSIDevice *s = r->req.dev;",
"int VAR_2;",
"r->req.aiocb = NULL;",
"if (VAR_1 || r->req.io_canceled) {",
"scsi_command_complete(r, VAR_1);",
"return;",
"}",
"VAR_2 = r->io_header.dxfer_len - r->io_h... | [
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
12,655 | static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr) {
MpegEncContext * const s = &h->s;
const int mb_xy= mb_x + mb_y*s->mb_stride;
int linesize, uvlinesize;
int dir;
/* FIXME Implement deblocking filter for field MB */
if( h->sps.m... | false | FFmpeg | 19fe8b4100dfe0323e351e474c54293bb4ae576e | static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr) {
MpegEncContext * const s = &h->s;
const int mb_xy= mb_x + mb_y*s->mb_stride;
int linesize, uvlinesize;
int dir;
if( h->sps.mb_aff ) {
return;
}
linesize = s-... | {
"code": [],
"line_no": []
} | static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5) {
MpegEncContext * const s = &VAR_0->s;
const int VAR_6= VAR_1 + VAR_2*s->mb_stride;
int VAR_7, VAR_8;
int VAR_9;
if( VAR_0->sps.mb_aff ) {
return;
}
VAR_7 = ... | [
"static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5) {",
"MpegEncContext * const s = &VAR_0->s;",
"const int VAR_6= VAR_1 + VAR_2*s->mb_stride;",
"int VAR_7, VAR_8;",
"int VAR_9;",
"if( VAR_0->sps.mb_aff ) {",
"return;",
"}",
"VAR_7 = s->VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
49
],
[
53
],
[
55
],
[
57
... |
12,656 | int ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q,
AVPacket *pkt, const AVFrame *frame, int *got_packet)
{
int ret;
ret = encode_frame(avctx, q, frame);
if (ret < 0)
return ret;
if (!av_fifo_space(q->async_fifo) ||
(!frame && av_fifo_size(q->async_fi... | false | FFmpeg | a1335149fd610b16459d9281b611282cac51c950 | int ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q,
AVPacket *pkt, const AVFrame *frame, int *got_packet)
{
int ret;
ret = encode_frame(avctx, q, frame);
if (ret < 0)
return ret;
if (!av_fifo_space(q->async_fifo) ||
(!frame && av_fifo_size(q->async_fi... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1,
AVPacket *VAR_2, const AVFrame *VAR_3, int *VAR_4)
{
int VAR_5;
VAR_5 = encode_frame(VAR_0, VAR_1, VAR_3);
if (VAR_5 < 0)
return VAR_5;
if (!av_fifo_space(VAR_1->async_fifo) ||
(!VAR_3 && av_fifo_size(V... | [
"int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1,\nAVPacket *VAR_2, const AVFrame *VAR_3, int *VAR_4)\n{",
"int VAR_5;",
"VAR_5 = encode_frame(VAR_0, VAR_1, VAR_3);",
"if (VAR_5 < 0)\nreturn VAR_5;",
"if (!av_fifo_space(VAR_1->async_fifo) ||\n(!VAR_3 && av_fifo_size(VAR_1->async_fifo))) {",
"AVPack... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55,
57... |
12,657 | static int test_vector_dmul_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp,
const double *v1, double scale)
{
LOCAL_ALIGNED(32, double, cdst, [LEN]);
LOCAL_ALIGNED(32, double, odst, [LEN]);
int ret;
cdsp->vector_dmul_scalar(cdst, v1, scale, LEN);
... | false | FFmpeg | e53c9065ca08a9153ecc73a6a8940bcc6d667e58 | static int test_vector_dmul_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp,
const double *v1, double scale)
{
LOCAL_ALIGNED(32, double, cdst, [LEN]);
LOCAL_ALIGNED(32, double, odst, [LEN]);
int ret;
cdsp->vector_dmul_scalar(cdst, v1, scale, LEN);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,
const double *VAR_2, double VAR_3)
{
LOCAL_ALIGNED(32, double, cdst, [LEN]);
LOCAL_ALIGNED(32, double, odst, [LEN]);
int VAR_4;
VAR_1->vector_dmul_scalar(cdst, VAR_2, VAR_3, LEN);
VAR_0-... | [
"static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst double *VAR_2, double VAR_3)\n{",
"LOCAL_ALIGNED(32, double, cdst, [LEN]);",
"LOCAL_ALIGNED(32, double, odst, [LEN]);",
"int VAR_4;",
"VAR_1->vector_dmul_scalar(cdst, VAR_2, VAR_3, LEN);",
"VAR_0->vector_dmul_scalar(odst, VAR_2,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
]
] |
12,658 | static int mpegps_read_pes_header(AVFormatContext *s,
int64_t *ppos, int *pstart_code,
int64_t *ppts, int64_t *pdts)
{
MpegDemuxContext *m = s->priv_data;
int len, size, startcode, c, flags, header_len;
int64_t pts, dts, last_pos;
... | false | FFmpeg | e56cfad04b73be35ea8dcb5fd5e8451f6924aff1 | static int mpegps_read_pes_header(AVFormatContext *s,
int64_t *ppos, int *pstart_code,
int64_t *ppts, int64_t *pdts)
{
MpegDemuxContext *m = s->priv_data;
int len, size, startcode, c, flags, header_len;
int64_t pts, dts, last_pos;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
int64_t *VAR_1, int *VAR_2,
int64_t *VAR_3, int64_t *VAR_4)
{
MpegDemuxContext *m = VAR_0->priv_data;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
int64_t pts, dts, last_pos;
last_pos... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nint64_t *VAR_1, int *VAR_2,\nint64_t *VAR_3, int64_t *VAR_4)\n{",
"MpegDemuxContext *m = VAR_0->priv_data;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"int64_t pts, dts, last_pos;",
"last_pos = -1;",
"redo:\nm->header_state = 0xff;",
"VAR_6 = MAX_SYNC_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
23
],
[
25
],
[
27
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
12,659 | static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height,
int bpno, int bandno,
int vert_causal_ctx_csty_symbol)
{
int mask = 3 << (bpno - 1), y0, x, y;
for (y0 = 0; y0 < height; y0 += 4)
for (x = 0; x < width; x++)
... | false | FFmpeg | f1e173049ecc9de03817385ba8962d14cba779db | static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height,
int bpno, int bandno,
int vert_causal_ctx_csty_symbol)
{
int mask = 3 << (bpno - 1), y0, x, y;
for (y0 = 0; y0 < height; y0 += 4)
for (x = 0; x < width; x++)
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4,
int VAR_5)
{
int VAR_6 = 3 << (VAR_3 - 1), VAR_7, VAR_8, VAR_9;
for (VAR_7 = 0; VAR_7 < VAR_2; VAR_7 += 4)
for (VAR_8 = 0; VAR_8 < VAR_1; VAR_8++)
... | [
"static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5)\n{",
"int VAR_6 = 3 << (VAR_3 - 1), VAR_7, VAR_8, VAR_9;",
"for (VAR_7 = 0; VAR_7 < VAR_2; VAR_7 += 4)",
"for (VAR_8 = 0; VAR_8 < VAR_1; VAR_8++)",
"for (VAR_9 = VAR_7; VAR_9 < VAR_2 && VAR_9 < VAR_7 + 4; ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39,
41
],
[
45,
47
],
[
49
],
[
51
],
[
53
... |
12,660 | static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket *pkt,
AVPacketList **plast_pktl)
{
AVPacketList *pktl = av_mallocz(sizeof(AVPacketList));
if (!pktl)
return NULL;
if (*packet_buffer)
(*plast_pktl)->next = pktl;
else
*... | false | FFmpeg | d584533cf38141172e20bae5436629ee17c8ce50 | static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket *pkt,
AVPacketList **plast_pktl)
{
AVPacketList *pktl = av_mallocz(sizeof(AVPacketList));
if (!pktl)
return NULL;
if (*packet_buffer)
(*plast_pktl)->next = pktl;
else
*... | {
"code": [],
"line_no": []
} | static AVPacket *FUNC_0(AVPacketList **packet_buffer, AVPacket *pkt,
AVPacketList **plast_pktl)
{
AVPacketList *pktl = av_mallocz(sizeof(AVPacketList));
if (!pktl)
return NULL;
if (*packet_buffer)
(*plast_pktl)->next = pktl;
else
*packet_... | [
"static AVPacket *FUNC_0(AVPacketList **packet_buffer, AVPacket *pkt,\nAVPacketList **plast_pktl)\n{",
"AVPacketList *pktl = av_mallocz(sizeof(AVPacketList));",
"if (!pktl)\nreturn NULL;",
"if (*packet_buffer)\n(*plast_pktl)->next = pktl;",
"else\n*packet_buffer = pktl;",
"*plast_pktl = pktl;",
"pktl->p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
15,
17
],
[
19,
21
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
12,661 | static av_always_inline void h264_filter_mb_fast_internal(const H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static av_always_inline void h264_filter_mb_fast_internal(const H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | {
"code": [],
"line_no": []
} | static av_always_inline void FUNC_0(const H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | [
"static av_always_inline void FUNC_0(const H264Context *h,\nH264SliceContext *sl,\nint mb_x, int mb_y,\nuint8_t *img_y,\nuint8_t *img_cb,\nuint8_t *img_cr,\nunsigned int linesize,\nunsigned int uvlinesize,\nint pixel_shift)\n{",
"int VAR_0 = !(CONFIG_GRAY && (h->flags & AV_CODEC_FLAG_GRAY));",
"int VAR_1 = CHRO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
12,662 | static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){
ASFContext *asf = s->priv_data;
ASFStream *asfst;
int rsize = 1;
int num = avio_r8(pb);
int i;
int64_t ts0, ts1 av_unused;
asf->packet_segments--;
asf->packet_key_frame = num >> 7;
asf->stream_index = a... | false | FFmpeg | b7280cff9a7683395d7f899517b4aea8b52f12a4 | static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){
ASFContext *asf = s->priv_data;
ASFStream *asfst;
int rsize = 1;
int num = avio_r8(pb);
int i;
int64_t ts0, ts1 av_unused;
asf->packet_segments--;
asf->packet_key_frame = num >> 7;
asf->stream_index = a... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1){
ASFContext *asf = VAR_0->priv_data;
ASFStream *asfst;
int VAR_2 = 1;
int VAR_3 = avio_r8(VAR_1);
int VAR_4;
int64_t ts0, ts1 av_unused;
asf->packet_segments--;
asf->packet_key_frame = VAR_3 >> 7;
asf->stream_in... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1){",
"ASFContext *asf = VAR_0->priv_data;",
"ASFStream *asfst;",
"int VAR_2 = 1;",
"int VAR_3 = avio_r8(VAR_1);",
"int VAR_4;",
"int64_t ts0, ts1 av_unused;",
"asf->packet_segments--;",
"asf->packet_key_frame = VAR_3 >> 7;",
"asf->stream... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
12,665 | void HELPER(set_r13_banked)(CPUState *env, uint32_t mode, uint32_t val)
{
env->banked_r13[bank_number(mode)] = val;
}
| false | qemu | 39ea3d4eaf1ff300ee55946108394729bc053dfa | void HELPER(set_r13_banked)(CPUState *env, uint32_t mode, uint32_t val)
{
env->banked_r13[bank_number(mode)] = val;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(set_r13_banked)(CPUState *env, uint32_t mode, uint32_t val)
{
env->banked_r13[bank_number(mode)] = val;
}
| [
"void FUNC_0(set_r13_banked)(CPUState *env, uint32_t mode, uint32_t val)\n{",
"env->banked_r13[bank_number(mode)] = val;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
12,669 | static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8,
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUV... | false | FFmpeg | a0560d0477549eaaa7d002e013bd8376e80873e4 | static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8,
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUV... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext *VAR_0)
{
static const enum AVPixelFormat VAR_1[] = {
AV_PIX_FMT_GRAY8,
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P,
... | [
"static int FUNC_0(AVFilterContext *VAR_0)\n{",
"static const enum AVPixelFormat VAR_1[] = {",
"AV_PIX_FMT_GRAY8,\nAV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,\nAV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,\nAV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P,\nAV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P,\nAV_PIX_FMT_YUVJ440P, AV_PIX_FMT... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15,
17,
19,
21,
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41
]
] |
12,670 | static void monitor_call_handler(Monitor *mon, const mon_cmd_t *cmd,
const QDict *params)
{
QObject *data = NULL;
cmd->mhandler.cmd_new(mon, params, &data);
if (data)
cmd->user_print(mon, data);
qobject_decref(data);
}
| false | qemu | 25b422eb4051b9b7473feea1ae848f1e3b4f799f | static void monitor_call_handler(Monitor *mon, const mon_cmd_t *cmd,
const QDict *params)
{
QObject *data = NULL;
cmd->mhandler.cmd_new(mon, params, &data);
if (data)
cmd->user_print(mon, data);
qobject_decref(data);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, const mon_cmd_t *VAR_1,
const QDict *VAR_2)
{
QObject *data = NULL;
VAR_1->mhandler.cmd_new(VAR_0, VAR_2, &data);
if (data)
VAR_1->user_print(VAR_0, data);
qobject_decref(data);
}
| [
"static void FUNC_0(Monitor *VAR_0, const mon_cmd_t *VAR_1,\nconst QDict *VAR_2)\n{",
"QObject *data = NULL;",
"VAR_1->mhandler.cmd_new(VAR_0, VAR_2, &data);",
"if (data)\nVAR_1->user_print(VAR_0, data);",
"qobject_decref(data);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
19
],
[
21
]
] |
12,673 | static void m5206_mbar_update(m5206_mbar_state *s)
{
int irq;
int vector;
int level;
irq = m5206_find_pending_irq(s);
if (irq) {
int tmp;
tmp = s->icr[irq];
level = (tmp >> 2) & 7;
if (tmp & 0x80) {
/* Autovector. */
vector = 24 ... | false | qemu | 45876e913e169bf156a3fc36f21eb0adf6ec3671 | static void m5206_mbar_update(m5206_mbar_state *s)
{
int irq;
int vector;
int level;
irq = m5206_find_pending_irq(s);
if (irq) {
int tmp;
tmp = s->icr[irq];
level = (tmp >> 2) & 7;
if (tmp & 0x80) {
vector = 24 + level;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(m5206_mbar_state *VAR_0)
{
int VAR_1;
int VAR_2;
int VAR_3;
VAR_1 = m5206_find_pending_irq(VAR_0);
if (VAR_1) {
int VAR_4;
VAR_4 = VAR_0->icr[VAR_1];
VAR_3 = (VAR_4 >> 2) & 7;
if (VAR_4 & 0x80) {
VAR_2 = 24 + V... | [
"static void FUNC_0(m5206_mbar_state *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"VAR_1 = m5206_find_pending_irq(VAR_0);",
"if (VAR_1) {",
"int VAR_4;",
"VAR_4 = VAR_0->icr[VAR_1];",
"VAR_3 = (VAR_4 >> 2) & 7;",
"if (VAR_4 & 0x80) {",
"VAR_2 = 24 + VAR_3;",
"} else {",
"switch (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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[... |
12,675 | aio_ctx_check(GSource *source)
{
AioContext *ctx = (AioContext *) source;
QEMUBH *bh;
atomic_and(&ctx->notify_me, ~1);
aio_notify_accept(ctx);
for (bh = ctx->first_bh; bh; bh = bh->next) {
if (!bh->deleted && bh->scheduled) {
return true;
}
}
return... | false | qemu | 5b8bb3595a2941e9408021f1080e60ce86d677d2 | aio_ctx_check(GSource *source)
{
AioContext *ctx = (AioContext *) source;
QEMUBH *bh;
atomic_and(&ctx->notify_me, ~1);
aio_notify_accept(ctx);
for (bh = ctx->first_bh; bh; bh = bh->next) {
if (!bh->deleted && bh->scheduled) {
return true;
}
}
return... | {
"code": [],
"line_no": []
} | FUNC_0(GSource *VAR_0)
{
AioContext *ctx = (AioContext *) VAR_0;
QEMUBH *bh;
atomic_and(&ctx->notify_me, ~1);
aio_notify_accept(ctx);
for (bh = ctx->first_bh; bh; bh = bh->next) {
if (!bh->deleted && bh->scheduled) {
return true;
}
}
return aio_pend... | [
"FUNC_0(GSource *VAR_0)\n{",
"AioContext *ctx = (AioContext *) VAR_0;",
"QEMUBH *bh;",
"atomic_and(&ctx->notify_me, ~1);",
"aio_notify_accept(ctx);",
"for (bh = ctx->first_bh; bh; bh = bh->next) {",
"if (!bh->deleted && bh->scheduled) {",
"return true;",
"}",
"}",
"return aio_pending(ctx) || (ti... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,676 | static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s)
{
NetClientState *nc = qemu_get_queue(s->nic);
if (qemu_peer_has_vnet_hdr(nc)) {
return true;
}
VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated.");
return false;
}
| false | qemu | d6085e3ace20bc9b0fa625d8d79b22668710e217 | static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s)
{
NetClientState *nc = qemu_get_queue(s->nic);
if (qemu_peer_has_vnet_hdr(nc)) {
return true;
}
VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated.");
return false;
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(VMXNET3State *s)
{
NetClientState *nc = qemu_get_queue(s->nic);
if (qemu_peer_has_vnet_hdr(nc)) {
return true;
}
VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated.");
return false;
}
| [
"static bool FUNC_0(VMXNET3State *s)\n{",
"NetClientState *nc = qemu_get_queue(s->nic);",
"if (qemu_peer_has_vnet_hdr(nc)) {",
"return true;",
"}",
"VMW_WRPRN(\"Peer has no virtio extension. Task offloads will be emulated.\");",
"return false;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
]
] |
12,677 | static int get_cluster_offset(BlockDriverState *bs,
VmdkExtent *extent,
VmdkMetaData *m_data,
uint64_t offset,
bool allocate,
uint64_t *cluster_offset,
... | false | qemu | 524089bce43fd1cd3daaca979872451efa2cf7c6 | static int get_cluster_offset(BlockDriverState *bs,
VmdkExtent *extent,
VmdkMetaData *m_data,
uint64_t offset,
bool allocate,
uint64_t *cluster_offset,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
VmdkExtent *VAR_1,
VmdkMetaData *VAR_2,
uint64_t VAR_3,
bool VAR_4,
uint64_t *VAR_5,
uint64... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nVmdkExtent *VAR_1,\nVmdkMetaData *VAR_2,\nuint64_t VAR_3,\nbool VAR_4,\nuint64_t *VAR_5,\nuint64_t VAR_6,\nuint64_t VAR_7)\n{",
"unsigned int VAR_8, VAR_9, VAR_10;",
"int VAR_11, VAR_12, VAR_13;",
"uint32_t min_count, *l2_table;",
"bool zeroed = false;",
"int64... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[... |
12,678 | static void qxl_log_image(PCIQXLDevice *qxl, QXLPHYSICAL addr, int group_id)
{
QXLImage *image;
QXLImageDescriptor *desc;
image = qxl_phys2virt(qxl, addr, group_id);
desc = &image->descriptor;
fprintf(stderr, " (id %" PRIx64 " type %d flags %d width %d height %d",
desc->id, desc... | false | qemu | fae2afb10e3fdceab612c62a2b1e8b944ff578d9 | static void qxl_log_image(PCIQXLDevice *qxl, QXLPHYSICAL addr, int group_id)
{
QXLImage *image;
QXLImageDescriptor *desc;
image = qxl_phys2virt(qxl, addr, group_id);
desc = &image->descriptor;
fprintf(stderr, " (id %" PRIx64 " type %d flags %d width %d height %d",
desc->id, desc... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIQXLDevice *VAR_0, QXLPHYSICAL VAR_1, int VAR_2)
{
QXLImage *image;
QXLImageDescriptor *desc;
image = qxl_phys2virt(VAR_0, VAR_1, VAR_2);
desc = &image->descriptor;
fprintf(stderr, " (id %" PRIx64 " type %d flags %d width %d height %d",
desc->id, desc->type,... | [
"static void FUNC_0(PCIQXLDevice *VAR_0, QXLPHYSICAL VAR_1, int VAR_2)\n{",
"QXLImage *image;",
"QXLImageDescriptor *desc;",
"image = qxl_phys2virt(VAR_0, VAR_1, VAR_2);",
"desc = &image->descriptor;",
"fprintf(stderr, \" (id %\" PRIx64 \" type %d flags %d width %d height %d\",\ndesc->id, desc->type, desc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23,
25,
27,
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
12,679 | static BOOTPClient *get_new_addr(struct in_addr *paddr)
{
BOOTPClient *bc;
int i;
for(i = 0; i < NB_ADDR; i++) {
if (!bootp_clients[i].allocated)
goto found;
}
return NULL;
found:
bc = &bootp_clients[i];
bc->allocated = 1;
paddr->s_addr = htonl(ntohl(sp... | false | qemu | 0928a95ffe91862938cee997c9e30602fa7884ab | static BOOTPClient *get_new_addr(struct in_addr *paddr)
{
BOOTPClient *bc;
int i;
for(i = 0; i < NB_ADDR; i++) {
if (!bootp_clients[i].allocated)
goto found;
}
return NULL;
found:
bc = &bootp_clients[i];
bc->allocated = 1;
paddr->s_addr = htonl(ntohl(sp... | {
"code": [],
"line_no": []
} | static BOOTPClient *FUNC_0(struct in_addr *paddr)
{
BOOTPClient *bc;
int VAR_0;
for(VAR_0 = 0; VAR_0 < NB_ADDR; VAR_0++) {
if (!bootp_clients[VAR_0].allocated)
goto found;
}
return NULL;
found:
bc = &bootp_clients[VAR_0];
bc->allocated = 1;
paddr->s_add... | [
"static BOOTPClient *FUNC_0(struct in_addr *paddr)\n{",
"BOOTPClient *bc;",
"int VAR_0;",
"for(VAR_0 = 0; VAR_0 < NB_ADDR; VAR_0++) {",
"if (!bootp_clients[VAR_0].allocated)\ngoto found;",
"}",
"return NULL;",
"found:\nbc = &bootp_clients[VAR_0];",
"bc->allocated = 1;",
"paddr->s_addr = htonl(ntoh... | [
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
]
] |
12,681 | static uint64_t cchip_read(void *opaque, hwaddr addr, unsigned size)
{
CPUState *cpu = current_cpu;
TyphoonState *s = opaque;
uint64_t ret = 0;
if (addr & 4) {
return s->latch_tmp;
}
switch (addr) {
case 0x0000:
/* CSC: Cchip System Configuration Register. */
... | false | qemu | 678421650dc166cd6cb35bb2bc0baf1b481b40ca | static uint64_t cchip_read(void *opaque, hwaddr addr, unsigned size)
{
CPUState *cpu = current_cpu;
TyphoonState *s = opaque;
uint64_t ret = 0;
if (addr & 4) {
return s->latch_tmp;
}
switch (addr) {
case 0x0000:
break;
case 0x0040:
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size)
{
CPUState *cpu = current_cpu;
TyphoonState *s = opaque;
uint64_t ret = 0;
if (addr & 4) {
return s->latch_tmp;
}
switch (addr) {
case 0x0000:
break;
case 0x0040:
... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size)\n{",
"CPUState *cpu = current_cpu;",
"TyphoonState *s = opaque;",
"uint64_t ret = 0;",
"if (addr & 4) {",
"return s->latch_tmp;",
"}",
"switch (addr) {",
"case 0x0000:\nbreak;",
"case 0x0040:\nbreak;",
"case 0x0080:\nret = s->cchi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
31
],
[
35,
41
],
[
45,
49
],
[
51
],
[
55,
59
],
[
63,
65,
67,
69,
75
],
[
79,
83
],
[... |
12,682 | static int blk_init(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
int index, qflags, have_barriers, info = 0;
char *h;
/* read xenstore entries */
if (blkdev->params == NULL) {
blkdev->params = xenstore_read_be_str(&blkdev->xendev, "... | false | qemu | ad7171394f2fe3f9b5fe02f0c62496291a859a92 | static int blk_init(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
int index, qflags, have_barriers, info = 0;
char *h;
if (blkdev->params == NULL) {
blkdev->params = xenstore_read_be_str(&blkdev->xendev, "params");
h = strc... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct XenDevice *VAR_0)
{
struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);
int VAR_2, VAR_3, VAR_4, VAR_5 = 0;
char *VAR_6;
if (VAR_1->params == NULL) {
VAR_1->params = xenstore_read_be_str(&VAR_1->VAR_0, "params");
VAR_6 = strchr(VAR_1->... | [
"static int FUNC_0(struct XenDevice *VAR_0)\n{",
"struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);",
"int VAR_2, VAR_3, VAR_4, VAR_5 = 0;",
"char *VAR_6;",
"if (VAR_1->params == NULL) {",
"VAR_1->params = xenstore_read_be_str(&VAR_1->VAR_0, \"params\");",
"VAR_6 = strchr(VAR_1->pa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47,... |
12,683 | static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *section)
{
subpage_t *subpage;
hwaddr base = section->offset_within_address_space
& TARGET_PAGE_MASK;
MemoryRegionSection *existing = phys_page_find(d->phys_map, base,
... | false | qemu | 53cb28cbfea038f8ad50132dc8a684e638c7d48b | static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *section)
{
subpage_t *subpage;
hwaddr base = section->offset_within_address_space
& TARGET_PAGE_MASK;
MemoryRegionSection *existing = phys_page_find(d->phys_map, base,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AddressSpaceDispatch *VAR_0, MemoryRegionSection *VAR_1)
{
subpage_t *subpage;
hwaddr base = VAR_1->offset_within_address_space
& TARGET_PAGE_MASK;
MemoryRegionSection *existing = phys_page_find(VAR_0->phys_map, base,
next_m... | [
"static void FUNC_0(AddressSpaceDispatch *VAR_0, MemoryRegionSection *VAR_1)\n{",
"subpage_t *subpage;",
"hwaddr base = VAR_1->offset_within_address_space\n& TARGET_PAGE_MASK;",
"MemoryRegionSection *existing = phys_page_find(VAR_0->phys_map, base,\nnext_map.nodes, next_map.sections);",
"MemoryRegionSection... | [
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
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
12,684 | static void smbios_encode_uuid(struct smbios_uuid *uuid, const uint8_t *buf)
{
memcpy(uuid, buf, 16);
if (smbios_uuid_encoded) {
uuid->time_low = bswap32(uuid->time_low);
uuid->time_mid = bswap16(uuid->time_mid);
uuid->time_hi_and_version = bswap16(uuid->time_hi_and_version);
... | false | qemu | 9c5ce8db2e5c2769ed2fd3d91928dd1853b5ce7c | static void smbios_encode_uuid(struct smbios_uuid *uuid, const uint8_t *buf)
{
memcpy(uuid, buf, 16);
if (smbios_uuid_encoded) {
uuid->time_low = bswap32(uuid->time_low);
uuid->time_mid = bswap16(uuid->time_mid);
uuid->time_hi_and_version = bswap16(uuid->time_hi_and_version);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct smbios_uuid *VAR_0, const uint8_t *VAR_1)
{
memcpy(VAR_0, VAR_1, 16);
if (smbios_uuid_encoded) {
VAR_0->time_low = bswap32(VAR_0->time_low);
VAR_0->time_mid = bswap16(VAR_0->time_mid);
VAR_0->time_hi_and_version = bswap16(VAR_0->time_hi_and_version);
... | [
"static void FUNC_0(struct smbios_uuid *VAR_0, const uint8_t *VAR_1)\n{",
"memcpy(VAR_0, VAR_1, 16);",
"if (smbios_uuid_encoded) {",
"VAR_0->time_low = bswap32(VAR_0->time_low);",
"VAR_0->time_mid = bswap16(VAR_0->time_mid);",
"VAR_0->time_hi_and_version = bswap16(VAR_0->time_hi_and_version);",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
12,687 | static gboolean qemu_chr_be_generic_open_bh(gpointer opaque)
{
CharDriverState *s = opaque;
qemu_chr_be_event(s, CHR_EVENT_OPENED);
s->idle_tag = 0;
return FALSE;
}
| false | qemu | bd5c51ee6c4f1c79cae5ad2516d711a27b4ea8ec | static gboolean qemu_chr_be_generic_open_bh(gpointer opaque)
{
CharDriverState *s = opaque;
qemu_chr_be_event(s, CHR_EVENT_OPENED);
s->idle_tag = 0;
return FALSE;
}
| {
"code": [],
"line_no": []
} | static gboolean FUNC_0(gpointer opaque)
{
CharDriverState *s = opaque;
qemu_chr_be_event(s, CHR_EVENT_OPENED);
s->idle_tag = 0;
return FALSE;
}
| [
"static gboolean FUNC_0(gpointer opaque)\n{",
"CharDriverState *s = opaque;",
"qemu_chr_be_event(s, CHR_EVENT_OPENED);",
"s->idle_tag = 0;",
"return FALSE;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
12,688 | static void smc91c111_receive(void *opaque, const uint8_t *buf, size_t size)
{
smc91c111_state *s = (smc91c111_state *)opaque;
int status;
int packetsize;
uint32_t crc;
int packetnum;
uint8_t *p;
if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))
return;
/* Shor... | false | qemu | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 | static void smc91c111_receive(void *opaque, const uint8_t *buf, size_t size)
{
smc91c111_state *s = (smc91c111_state *)opaque;
int status;
int packetsize;
uint32_t crc;
int packetnum;
uint8_t *p;
if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))
return;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{
smc91c111_state *s = (smc91c111_state *)VAR_0;
int VAR_3;
int VAR_4;
uint32_t crc;
int VAR_5;
uint8_t *p;
if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))
return;
if (VAR_2 < 64)
... | [
"static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{",
"smc91c111_state *s = (smc91c111_state *)VAR_0;",
"int VAR_3;",
"int VAR_4;",
"uint32_t crc;",
"int VAR_5;",
"uint8_t *p;",
"if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))\nreturn;",
"if (VAR_2 < 64)\nVAR_4 = 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,
0,
0,
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
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
45,
47
],
[
49
],
[
51,
53
],
[
55
... |
12,689 | void acpi_add_table(GArray *table_offsets, GArray *table_data)
{
uint32_t offset = cpu_to_le32(table_data->len);
g_array_append_val(table_offsets, offset);
}
| false | qemu | 4678124bb9bfb49e93b83f95c4d2feeb443ea38b | void acpi_add_table(GArray *table_offsets, GArray *table_data)
{
uint32_t offset = cpu_to_le32(table_data->len);
g_array_append_val(table_offsets, offset);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(GArray *VAR_0, GArray *VAR_1)
{
uint32_t offset = cpu_to_le32(VAR_1->len);
g_array_append_val(VAR_0, offset);
}
| [
"void FUNC_0(GArray *VAR_0, GArray *VAR_1)\n{",
"uint32_t offset = cpu_to_le32(VAR_1->len);",
"g_array_append_val(VAR_0, offset);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
12,690 | int cpu_is_bsp(CPUState *env)
{
return env->cpuid_apic_id == 0;
}
| false | qemu | 6cb2996cef5e273ef370e690e84b5e1403f5c391 | int cpu_is_bsp(CPUState *env)
{
return env->cpuid_apic_id == 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0)
{
return VAR_0->cpuid_apic_id == 0;
}
| [
"int FUNC_0(CPUState *VAR_0)\n{",
"return VAR_0->cpuid_apic_id == 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
12,691 | static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
int64_t total_size = 0;
MOV_atom_t a;
int i;
int err = 0;
a.offset = atom.offset;
if (atom.size < 0)
atom.size = INT64_MAX;
while(((total_size + 8) < atom.size) && !url_feof(pb) && !err) {
... | false | FFmpeg | 8622613d9f74e0ce5e248905f3f554d26f6d6c06 | static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
int64_t total_size = 0;
MOV_atom_t a;
int i;
int err = 0;
a.offset = atom.offset;
if (atom.size < 0)
atom.size = INT64_MAX;
while(((total_size + 8) < atom.size) && !url_feof(pb) && !err) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)
{
int64_t total_size = 0;
MOV_atom_t a;
int VAR_3;
int VAR_4 = 0;
a.offset = VAR_2.offset;
if (VAR_2.size < 0)
VAR_2.size = INT64_MAX;
while(((total_size + 8) < VAR_2.size) && !url_feof(VAR_1) &... | [
"static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{",
"int64_t total_size = 0;",
"MOV_atom_t a;",
"int VAR_3;",
"int VAR_4 = 0;",
"a.offset = VAR_2.offset;",
"if (VAR_2.size < 0)\nVAR_2.size = INT64_MAX;",
"while(((total_size + 8) < VAR_2.size) && !url_feof(VAR_1) && !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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
12,692 | static int hyperv_handle_properties(CPUState *cs)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
if (cpu->hyperv_relaxed_timing) {
env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPERCALL_AVAILABLE;
}
if (cpu->hyperv_vapic) {
env->features[FEAT_HYPERV_EAX] |= HV_X... | false | qemu | 3ddcd2edc8ca708ccd808a78424b9aadebd4f7c4 | static int hyperv_handle_properties(CPUState *cs)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
if (cpu->hyperv_relaxed_timing) {
env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPERCALL_AVAILABLE;
}
if (cpu->hyperv_vapic) {
env->features[FEAT_HYPERV_EAX] |= HV_X... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
X86CPU *cpu = X86_CPU(VAR_0);
CPUX86State *env = &cpu->env;
if (cpu->hyperv_relaxed_timing) {
env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPERCALL_AVAILABLE;
}
if (cpu->hyperv_vapic) {
env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPER... | [
"static int FUNC_0(CPUState *VAR_0)\n{",
"X86CPU *cpu = X86_CPU(VAR_0);",
"CPUX86State *env = &cpu->env;",
"if (cpu->hyperv_relaxed_timing) {",
"env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPERCALL_AVAILABLE;",
"}",
"if (cpu->hyperv_vapic) {",
"env->features[FEAT_HYPERV_EAX] |= HV_X64_MSR_HYPERCALL_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
... |
12,693 | static void network_to_compress(RDMACompress *comp)
{
comp->value = ntohl(comp->value);
comp->block_idx = ntohl(comp->block_idx);
comp->offset = ntohll(comp->offset);
comp->length = ntohll(comp->length);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void network_to_compress(RDMACompress *comp)
{
comp->value = ntohl(comp->value);
comp->block_idx = ntohl(comp->block_idx);
comp->offset = ntohll(comp->offset);
comp->length = ntohll(comp->length);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(RDMACompress *VAR_0)
{
VAR_0->value = ntohl(VAR_0->value);
VAR_0->block_idx = ntohl(VAR_0->block_idx);
VAR_0->offset = ntohll(VAR_0->offset);
VAR_0->length = ntohll(VAR_0->length);
}
| [
"static void FUNC_0(RDMACompress *VAR_0)\n{",
"VAR_0->value = ntohl(VAR_0->value);",
"VAR_0->block_idx = ntohl(VAR_0->block_idx);",
"VAR_0->offset = ntohll(VAR_0->offset);",
"VAR_0->length = ntohll(VAR_0->length);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
12,694 | void spapr_drc_attach(sPAPRDRConnector *drc, DeviceState *d, void *fdt,
int fdt_start_offset, Error **errp)
{
trace_spapr_drc_attach(spapr_drc_index(drc));
if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(errp, "an attached device is still awaiting... | true | qemu | 82a93a1d307064f35c363f79b04b0a0149ac53d9 | void spapr_drc_attach(sPAPRDRConnector *drc, DeviceState *d, void *fdt,
int fdt_start_offset, Error **errp)
{
trace_spapr_drc_attach(spapr_drc_index(drc));
if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(errp, "an attached device is still awaiting... | {
"code": [
" if (spapr_drc_type(drc) != SPAPR_DR_CONNECTOR_TYPE_PCI) {",
" drc->awaiting_allocation = true;"
],
"line_no": [
37,
39
]
} | void FUNC_0(sPAPRDRConnector *VAR_0, DeviceState *VAR_1, void *VAR_2,
int VAR_3, Error **VAR_4)
{
trace_spapr_drc_attach(spapr_drc_index(VAR_0));
if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(VAR_4, "an attached device is still awaiting releas... | [
"void FUNC_0(sPAPRDRConnector *VAR_0, DeviceState *VAR_1, void *VAR_2,\nint VAR_3, Error **VAR_4)\n{",
"trace_spapr_drc_attach(spapr_drc_index(VAR_0));",
"if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {",
"error_setg(VAR_4, \"an attached device is still awaiting release\");",
"return;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45,
47,
49,
51
],
[
53... |
12,695 | int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const char *command, const char *arg, int flags, double ts)
{
int i;
if(!graph)
return 0;
for (i = 0; i < graph->nb_filters; i++) {
AVFilterContext *filter = graph->filters[i];
if(filter && (!strcmp(target, "a... | true | FFmpeg | 55d53cb59380bebea79ae8f99d4e119b2b006629 | int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const char *command, const char *arg, int flags, double ts)
{
int i;
if(!graph)
return 0;
for (i = 0; i < graph->nb_filters; i++) {
AVFilterContext *filter = graph->filters[i];
if(filter && (!strcmp(target, "a... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, double VAR_5)
{
int VAR_6;
if(!VAR_0)
return 0;
for (VAR_6 = 0; VAR_6 < VAR_0->nb_filters; VAR_6++) {
AVFilterContext *filter = VAR_0->filters[VAR_6];
if(filter && (!strcmp(VAR_1, "al... | [
"int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, double VAR_5)\n{",
"int VAR_6;",
"if(!VAR_0)\nreturn 0;",
"for (VAR_6 = 0; VAR_6 < VAR_0->nb_filters; VAR_6++) {",
"AVFilterContext *filter = VAR_0->filters[VAR_6];",
"if(filter && (!strcmp(VAR_1, \"all\"... | [
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
],
[
... |
12,696 | static av_cold int hevc_decode_init(AVCodecContext *avctx)
{
HEVCContext *s = avctx->priv_data;
int ret;
avctx->internal->allocate_progress = 1;
ret = hevc_init_context(avctx);
if (ret < 0)
return ret;
s->enable_parallel_tiles = 0;
s->sei.picture_timing.picture_struct ... | true | FFmpeg | c8cfbc6629c1fe5755b59a3bcfd95ad08b843a07 | static av_cold int hevc_decode_init(AVCodecContext *avctx)
{
HEVCContext *s = avctx->priv_data;
int ret;
avctx->internal->allocate_progress = 1;
ret = hevc_init_context(avctx);
if (ret < 0)
return ret;
s->enable_parallel_tiles = 0;
s->sei.picture_timing.picture_struct ... | {
"code": [
" ret = hevc_decode_extradata(s, avctx->extradata, avctx->extradata_size);"
],
"line_no": [
47
]
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
HEVCContext *s = avctx->priv_data;
int VAR_0;
avctx->internal->allocate_progress = 1;
VAR_0 = hevc_init_context(avctx);
if (VAR_0 < 0)
return VAR_0;
s->enable_parallel_tiles = 0;
s->sei.picture_timing.picture_struct = ... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"HEVCContext *s = avctx->priv_data;",
"int VAR_0;",
"avctx->internal->allocate_progress = 1;",
"VAR_0 = hevc_init_context(avctx);",
"if (VAR_0 < 0)\nreturn VAR_0;",
"s->enable_parallel_tiles = 0;",
"s->sei.picture_timing.picture_struct = 0;",
"s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35,
37
],
[
39,
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
... |
12,697 | void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx)
{
const int idct_algo= avctx->idct_algo;
ff_put_pixels_clamped = c->put_pixels_clamped;
ff_add_pixels_clamped = c->add_pixels_clamped;
if(idct_algo==FF_IDCT_ARM){
if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_ARM){
c->idct_put... | true | FFmpeg | 6ad1fa5a49320c101a62d24aa0e7df14c10d7612 | void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx)
{
const int idct_algo= avctx->idct_algo;
ff_put_pixels_clamped = c->put_pixels_clamped;
ff_add_pixels_clamped = c->add_pixels_clamped;
if(idct_algo==FF_IDCT_ARM){
if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_ARM){
c->idct_put... | {
"code": [],
"line_no": []
} | void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)
{
const int VAR_2= VAR_1->VAR_2;
ff_put_pixels_clamped = VAR_0->put_pixels_clamped;
ff_add_pixels_clamped = VAR_0->add_pixels_clamped;
if(VAR_2==FF_IDCT_ARM){
if(VAR_2==FF_IDCT_AUTO || VAR_2==FF_IDCT_ARM){
VAR_0->idct_put= j_rev_dct_ARM_p... | [
"void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{",
"const int VAR_2= VAR_1->VAR_2;",
"ff_put_pixels_clamped = VAR_0->put_pixels_clamped;",
"ff_add_pixels_clamped = VAR_0->add_pixels_clamped;",
"if(VAR_2==FF_IDCT_ARM){",
"if(VAR_2==FF_IDCT_AUTO || VAR_2==FF_IDCT_ARM){",
"VAR_0->idct_put= j_rev_d... | [
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
]
] |
12,698 | static void test_qemu_strtoull_underflow(void)
{
const char *str = "-99999999999999999999999999999999999999999999";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, -ERANGE);
g_assert_cm... | false | qemu | bc7c08a2c375acb7ae4d433054415588b176d34c | static void test_qemu_strtoull_underflow(void)
{
const char *str = "-99999999999999999999999999999999999999999999";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, -ERANGE);
g_assert_cm... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
const char *VAR_0 = "-99999999999999999999999999999999999999999999";
char VAR_1 = 'X';
const char *VAR_2 = &VAR_1;
uint64_t res = 999;
int VAR_3;
VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res);
g_assert_cmpint(VAR_3, ==, -ERANGE);
g_assert_cmpint(r... | [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = \"-99999999999999999999999999999999999999999999\";",
"char VAR_1 = 'X';",
"const char *VAR_2 = &VAR_1;",
"uint64_t res = 999;",
"int VAR_3;",
"VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res);",
"g_assert_cmpint(VAR_3, ==, -ERANGE);",
"g_assert_cmpin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
12,699 | static int vtd_remap_irq_get(IntelIOMMUState *iommu, uint16_t index, VTDIrq *irq)
{
VTD_IRTE irte = {};
int ret = 0;
ret = vtd_irte_get(iommu, index, &irte);
if (ret) {
return ret;
}
irq->trigger_mode = irte.trigger_mode;
irq->vector = irte.vector;
irq->delivery_mod... | false | qemu | ede9c94acf6cd1968de4188c0228b714ab871a86 | static int vtd_remap_irq_get(IntelIOMMUState *iommu, uint16_t index, VTDIrq *irq)
{
VTD_IRTE irte = {};
int ret = 0;
ret = vtd_irte_get(iommu, index, &irte);
if (ret) {
return ret;
}
irq->trigger_mode = irte.trigger_mode;
irq->vector = irte.vector;
irq->delivery_mod... | {
"code": [],
"line_no": []
} | static int FUNC_0(IntelIOMMUState *VAR_0, uint16_t VAR_1, VTDIrq *VAR_2)
{
VTD_IRTE irte = {};
int VAR_3 = 0;
VAR_3 = vtd_irte_get(VAR_0, VAR_1, &irte);
if (VAR_3) {
return VAR_3;
}
VAR_2->trigger_mode = irte.trigger_mode;
VAR_2->vector = irte.vector;
VAR_2->deliver... | [
"static int FUNC_0(IntelIOMMUState *VAR_0, uint16_t VAR_1, VTDIrq *VAR_2)\n{",
"VTD_IRTE irte = {};",
"int VAR_3 = 0;",
"VAR_3 = vtd_irte_get(VAR_0, VAR_1, &irte);",
"if (VAR_3) {",
"return VAR_3;",
"}",
"VAR_2->trigger_mode = irte.trigger_mode;",
"VAR_2->vector = irte.vector;",
"VAR_2->delivery_m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
47,
49,
51,
53... |
12,700 | static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets,
GArray *table_data, GArray *linker)
{
Aml *ssdt, *sb_scope, *dev;
acpi_add_table(table_offsets, table_data);
ssdt = init_aml_allocator();
acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));
... | false | qemu | 37ad223c515da2fe9f1c679768cb5ccaa42e57e1 | static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets,
GArray *table_data, GArray *linker)
{
Aml *ssdt, *sb_scope, *dev;
acpi_add_table(table_offsets, table_data);
ssdt = init_aml_allocator();
acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(GSList *VAR_0, GArray *VAR_1,
GArray *VAR_2, GArray *VAR_3)
{
Aml *ssdt, *sb_scope, *dev;
acpi_add_table(VAR_1, VAR_2);
ssdt = init_aml_allocator();
acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));
sb_scope = aml_scope("\\_SB");
... | [
"static void FUNC_0(GSList *VAR_0, GArray *VAR_1,\nGArray *VAR_2, GArray *VAR_3)\n{",
"Aml *ssdt, *sb_scope, *dev;",
"acpi_add_table(VAR_1, VAR_2);",
"ssdt = init_aml_allocator();",
"acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));",
"sb_scope = aml_scope(\"\\\\_SB\");",
"dev = aml_device(\"NVDR\");"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
25
],
[
51
],
[
55
],
[
57
],
[
61
],
[
65
],
[
69
],
[
73
],
[
75,
77,
79
],
[
81
],
[
83
]
] |
12,703 | static void nvdimm_build_structure_dcr(GArray *structures, DeviceState *dev)
{
NvdimmNfitControlRegion *nfit_dcr;
int slot = object_property_get_int(OBJECT(dev), PC_DIMM_SLOT_PROP,
NULL);
uint32_t sn = nvdimm_slot_to_sn(slot);
nfit_dcr = acpi_data_push(stru... | false | qemu | 20fdef58a0daa8da21438b79663f7ada2c59ebbc | static void nvdimm_build_structure_dcr(GArray *structures, DeviceState *dev)
{
NvdimmNfitControlRegion *nfit_dcr;
int slot = object_property_get_int(OBJECT(dev), PC_DIMM_SLOT_PROP,
NULL);
uint32_t sn = nvdimm_slot_to_sn(slot);
nfit_dcr = acpi_data_push(stru... | {
"code": [],
"line_no": []
} | static void FUNC_0(GArray *VAR_0, DeviceState *VAR_1)
{
NvdimmNfitControlRegion *nfit_dcr;
int VAR_2 = object_property_get_int(OBJECT(VAR_1), PC_DIMM_SLOT_PROP,
NULL);
uint32_t sn = nvdimm_slot_to_sn(VAR_2);
nfit_dcr = acpi_data_push(VAR_0, sizeof(*nfit_dcr... | [
"static void FUNC_0(GArray *VAR_0, DeviceState *VAR_1)\n{",
"NvdimmNfitControlRegion *nfit_dcr;",
"int VAR_2 = object_property_get_int(OBJECT(VAR_1), PC_DIMM_SLOT_PROP,\nNULL);",
"uint32_t sn = nvdimm_slot_to_sn(VAR_2);",
"nfit_dcr = acpi_data_push(VAR_0, sizeof(*nfit_dcr));",
"nfit_dcr->type = cpu_to_le1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
37,
39
],
[
41
],
[
43,
47
],
[
49
]
] |
12,705 | static void nam_writew (void *opaque, uint32_t addr, uint32_t val)
{
PCIAC97LinkState *d = opaque;
AC97LinkState *s = &d->ac97;
uint32_t index = addr - s->base[0];
s->cas = 0;
switch (index) {
case AC97_Reset:
mixer_reset (s);
break;
case AC97_Powerdown_Ctrl_Stat:
... | false | qemu | 10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b | static void nam_writew (void *opaque, uint32_t addr, uint32_t val)
{
PCIAC97LinkState *d = opaque;
AC97LinkState *s = &d->ac97;
uint32_t index = addr - s->base[0];
s->cas = 0;
switch (index) {
case AC97_Reset:
mixer_reset (s);
break;
case AC97_Powerdown_Ctrl_Stat:
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
PCIAC97LinkState *d = VAR_0;
AC97LinkState *s = &d->ac97;
uint32_t index = VAR_1 - s->base[0];
s->cas = 0;
switch (index) {
case AC97_Reset:
mixer_reset (s);
break;
case AC97_Powerdown_Ctrl_Stat:
... | [
"static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"PCIAC97LinkState *d = VAR_0;",
"AC97LinkState *s = &d->ac97;",
"uint32_t index = VAR_1 - s->base[0];",
"s->cas = 0;",
"switch (index) {",
"case AC97_Reset:\nmixer_reset (s);",
"break;",
"case AC97_Powerdown_Ctrl_Stat:\nVAR_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
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
... |
12,706 | pvscsi_cleanup_msi(PVSCSIState *s)
{
PCIDevice *d = PCI_DEVICE(s);
if (s->msi_used) {
msi_uninit(d);
}
}
| false | qemu | 269fe4c3ab0cf29329317eb868f8ec90ac761b41 | pvscsi_cleanup_msi(PVSCSIState *s)
{
PCIDevice *d = PCI_DEVICE(s);
if (s->msi_used) {
msi_uninit(d);
}
}
| {
"code": [],
"line_no": []
} | FUNC_0(PVSCSIState *VAR_0)
{
PCIDevice *d = PCI_DEVICE(VAR_0);
if (VAR_0->msi_used) {
msi_uninit(d);
}
}
| [
"FUNC_0(PVSCSIState *VAR_0)\n{",
"PCIDevice *d = PCI_DEVICE(VAR_0);",
"if (VAR_0->msi_used) {",
"msi_uninit(d);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,707 | static void exponents_from_scale_factors(MPADecodeContext *s,
GranuleDef *g,
int16_t *exponents)
{
const uint8_t *bstab, *pretab;
int len, i, j, k, l, v0, shift, gain, gains[3];
int16_t *exp_ptr;
exp_ptr = exponen... | false | FFmpeg | bc2d2757bb532fa260c373adb00f4e47766e3449 | static void exponents_from_scale_factors(MPADecodeContext *s,
GranuleDef *g,
int16_t *exponents)
{
const uint8_t *bstab, *pretab;
int len, i, j, k, l, v0, shift, gain, gains[3];
int16_t *exp_ptr;
exp_ptr = exponen... | {
"code": [],
"line_no": []
} | static void FUNC_0(MPADecodeContext *VAR_0,
GranuleDef *VAR_1,
int16_t *VAR_2)
{
const uint8_t *VAR_3, *pretab;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12[3];
int16_t *exp_ptr;
exp_ptr = ... | [
"static void FUNC_0(MPADecodeContext *VAR_0,\nGranuleDef *VAR_1,\nint16_t *VAR_2)\n{",
"const uint8_t *VAR_3, *pretab;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12[3];",
"int16_t *exp_ptr;",
"exp_ptr = VAR_2;",
"VAR_11 = VAR_1->global_gain - 210;",
"VAR_10 = VAR_1->scalefac_sc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
12,708 | static always_inline void check_cp1_3d(CPUState *env, DisasContext *ctx)
{
if (unlikely(!(env->fpu->fcr0 & (1 << FCR0_3D))))
generate_exception(ctx, EXCP_RI);
}
| false | qemu | 7385ac0ba2456159a52b9b2cbb5f6c71921d0c23 | static always_inline void check_cp1_3d(CPUState *env, DisasContext *ctx)
{
if (unlikely(!(env->fpu->fcr0 & (1 << FCR0_3D))))
generate_exception(ctx, EXCP_RI);
}
| {
"code": [],
"line_no": []
} | static always_inline void FUNC_0(CPUState *env, DisasContext *ctx)
{
if (unlikely(!(env->fpu->fcr0 & (1 << FCR0_3D))))
generate_exception(ctx, EXCP_RI);
}
| [
"static always_inline void FUNC_0(CPUState *env, DisasContext *ctx)\n{",
"if (unlikely(!(env->fpu->fcr0 & (1 << FCR0_3D))))\ngenerate_exception(ctx, EXCP_RI);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
12,709 | static bool linked_bp_matches(ARMCPU *cpu, int lbn)
{
CPUARMState *env = &cpu->env;
uint64_t bcr = env->cp15.dbgbcr[lbn];
int brps = extract32(cpu->dbgdidr, 24, 4);
int ctx_cmps = extract32(cpu->dbgdidr, 20, 4);
int bt;
uint32_t contextidr;
/* Links to unimplemented or non-context ... | false | qemu | 54bf36ed351c526cde0c853079f9ff1ab7e2ff89 | static bool linked_bp_matches(ARMCPU *cpu, int lbn)
{
CPUARMState *env = &cpu->env;
uint64_t bcr = env->cp15.dbgbcr[lbn];
int brps = extract32(cpu->dbgdidr, 24, 4);
int ctx_cmps = extract32(cpu->dbgdidr, 20, 4);
int bt;
uint32_t contextidr;
if (lbn > brps || lbn < (... | {
"code": [],
"line_no": []
} | static bool FUNC_0(ARMCPU *cpu, int lbn)
{
CPUARMState *env = &cpu->env;
uint64_t bcr = env->cp15.dbgbcr[lbn];
int VAR_0 = extract32(cpu->dbgdidr, 24, 4);
int VAR_1 = extract32(cpu->dbgdidr, 20, 4);
int VAR_2;
uint32_t contextidr;
if (lbn > VAR_0 || lbn < (VAR_0 - V... | [
"static bool FUNC_0(ARMCPU *cpu, int lbn)\n{",
"CPUARMState *env = &cpu->env;",
"uint64_t bcr = env->cp15.dbgbcr[lbn];",
"int VAR_0 = extract32(cpu->dbgdidr, 24, 4);",
"int VAR_1 = extract32(cpu->dbgdidr, 20, 4);",
"int VAR_2;",
"uint32_t contextidr;",
"if (lbn > VAR_0 || lbn < (VAR_0 - VAR_1)) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
47
],
[
49
],
[
53
],
[
65
],
[
69
],
[
71,
73
],
[
77
],
[... |
12,711 | static int vnc_display_disable_login(DisplayState *ds)
{
VncDisplay *vs = vnc_display;
if (!vs) {
return -1;
}
if (vs->password) {
g_free(vs->password);
}
vs->password = NULL;
if (vs->auth == VNC_AUTH_NONE) {
vs->auth = VNC_AUTH_VNC;
}
ret... | false | qemu | cf864569cd9134ee503ad9eb6be2881001c0ed80 | static int vnc_display_disable_login(DisplayState *ds)
{
VncDisplay *vs = vnc_display;
if (!vs) {
return -1;
}
if (vs->password) {
g_free(vs->password);
}
vs->password = NULL;
if (vs->auth == VNC_AUTH_NONE) {
vs->auth = VNC_AUTH_VNC;
}
ret... | {
"code": [],
"line_no": []
} | static int FUNC_0(DisplayState *VAR_0)
{
VncDisplay *vs = vnc_display;
if (!vs) {
return -1;
}
if (vs->password) {
g_free(vs->password);
}
vs->password = NULL;
if (vs->auth == VNC_AUTH_NONE) {
vs->auth = VNC_AUTH_VNC;
}
return 0;
}
| [
"static int FUNC_0(DisplayState *VAR_0)\n{",
"VncDisplay *vs = vnc_display;",
"if (!vs) {",
"return -1;",
"}",
"if (vs->password) {",
"g_free(vs->password);",
"}",
"vs->password = NULL;",
"if (vs->auth == VNC_AUTH_NONE) {",
"vs->auth = VNC_AUTH_VNC;",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
12,712 | int scsi_build_sense(uint8_t *in_buf, int in_len,
uint8_t *buf, int len, bool fixed)
{
bool fixed_in;
SCSISense sense;
if (!fixed && len < 8) {
return 0;
}
if (in_len == 0) {
sense.key = NO_SENSE;
sense.asc = 0;
sense.ascq = 0;
}... | false | qemu | 77e4743c94d2a926623e280913e05ad6c840791e | int scsi_build_sense(uint8_t *in_buf, int in_len,
uint8_t *buf, int len, bool fixed)
{
bool fixed_in;
SCSISense sense;
if (!fixed && len < 8) {
return 0;
}
if (in_len == 0) {
sense.key = NO_SENSE;
sense.asc = 0;
sense.ascq = 0;
}... | {
"code": [],
"line_no": []
} | int FUNC_0(uint8_t *VAR_0, int VAR_1,
uint8_t *VAR_2, int VAR_3, bool VAR_4)
{
bool fixed_in;
SCSISense sense;
if (!VAR_4 && VAR_3 < 8) {
return 0;
}
if (VAR_1 == 0) {
sense.key = NO_SENSE;
sense.asc = 0;
sense.ascq = 0;
} else {... | [
"int FUNC_0(uint8_t *VAR_0, int VAR_1,\nuint8_t *VAR_2, int VAR_3, bool VAR_4)\n{",
"bool fixed_in;",
"SCSISense sense;",
"if (!VAR_4 && VAR_3 < 8) {",
"return 0;",
"}",
"if (VAR_1 == 0) {",
"sense.key = NO_SENSE;",
"sense.asc = 0;",
"sense.ascq = 0;",
"} else {",
"fixed_in = (VAR_0[0] & 2) ==... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
12,713 | static int compare_sectors(const uint8_t *buf1, const uint8_t *buf2, int n,
int *pnum)
{
bool res;
int i;
if (n <= 0) {
*pnum = 0;
return 0;
}
res = !!memcmp(buf1, buf2, 512);
for(i = 1; i < n; i++) {
buf1 += 512;
buf2 += 512;
if (!!... | false | qemu | dc61cd3b144151024a247a109f360d2e2cab0f81 | static int compare_sectors(const uint8_t *buf1, const uint8_t *buf2, int n,
int *pnum)
{
bool res;
int i;
if (n <= 0) {
*pnum = 0;
return 0;
}
res = !!memcmp(buf1, buf2, 512);
for(i = 1; i < n; i++) {
buf1 += 512;
buf2 += 512;
if (!!... | {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2,
int *VAR_3)
{
bool res;
int VAR_4;
if (VAR_2 <= 0) {
*VAR_3 = 0;
return 0;
}
res = !!memcmp(VAR_0, VAR_1, 512);
for(VAR_4 = 1; VAR_4 < VAR_2; VAR_4++) {
VAR_0 += 512;
VAR_... | [
"static int FUNC_0(const uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2,\nint *VAR_3)\n{",
"bool res;",
"int VAR_4;",
"if (VAR_2 <= 0) {",
"*VAR_3 = 0;",
"return 0;",
"}",
"res = !!memcmp(VAR_0, VAR_1, 512);",
"for(VAR_4 = 1; VAR_4 < VAR_2; VAR_4++) {",
"VAR_0 += 512;",
"VAR_1 += 512;",
"if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
]
] |
12,714 | static void coroutine_fn bdrv_get_block_status_above_co_entry(void *opaque)
{
BdrvCoGetBlockStatusData *data = opaque;
data->ret = bdrv_co_get_block_status_above(data->bs, data->base,
data->sector_num,
data->nb_... | false | qemu | 67a0fd2a9bca204d2b39f910a97c7137636a0715 | static void coroutine_fn bdrv_get_block_status_above_co_entry(void *opaque)
{
BdrvCoGetBlockStatusData *data = opaque;
data->ret = bdrv_co_get_block_status_above(data->bs, data->base,
data->sector_num,
data->nb_... | {
"code": [],
"line_no": []
} | static void VAR_0 bdrv_get_block_status_above_co_entry(void *opaque)
{
BdrvCoGetBlockStatusData *data = opaque;
data->ret = bdrv_co_get_block_status_above(data->bs, data->base,
data->sector_num,
data->nb_sectors... | [
"static void VAR_0 bdrv_get_block_status_above_co_entry(void *opaque)\n{",
"BdrvCoGetBlockStatusData *data = opaque;",
"data->ret = bdrv_co_get_block_status_above(data->bs, data->base,\ndata->sector_num,\ndata->nb_sectors,\ndata->pnum);",
"data->done = true;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13,
15
],
[
17
],
[
19
]
] |
12,715 | static inline int target_rt_restore_ucontext(CPUM68KState *env,
struct target_ucontext *uc,
int *pd0)
{
int temp;
target_greg_t *gregs = uc->tuc_mcontext.gregs;
__get_user(temp, &uc->tuc_mcontext.version);
... | false | qemu | 7ccb84a91618eda626b12ce83d62cfe678cfc58f | static inline int target_rt_restore_ucontext(CPUM68KState *env,
struct target_ucontext *uc,
int *pd0)
{
int temp;
target_greg_t *gregs = uc->tuc_mcontext.gregs;
__get_user(temp, &uc->tuc_mcontext.version);
... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(CPUM68KState *VAR_0,
struct target_ucontext *VAR_1,
int *VAR_2)
{
int VAR_3;
target_greg_t *gregs = VAR_1->tuc_mcontext.gregs;
__get_user(VAR_3, &VAR_1->tuc_mcontext.version);
... | [
"static inline int FUNC_0(CPUM68KState *VAR_0,\nstruct target_ucontext *VAR_1,\nint *VAR_2)\n{",
"int VAR_3;",
"target_greg_t *gregs = VAR_1->tuc_mcontext.gregs;",
"__get_user(VAR_3, &VAR_1->tuc_mcontext.version);",
"if (VAR_3 != TARGET_MCONTEXT_VERSION)\ngoto badframe;",
"__get_user(VAR_0->dregs[0], &gre... | [
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
12,716 | void memory_region_init_ram_ptr(MemoryRegion *mr,
const char *name,
uint64_t size,
void *ptr)
{
memory_region_init(mr, name, size);
mr->ram = true;
mr->terminates = true;
mr->destructor = memory_regio... | false | qemu | 26a83ad0e793465b74a8b06a65f2f6fdc5615413 | void memory_region_init_ram_ptr(MemoryRegion *mr,
const char *name,
uint64_t size,
void *ptr)
{
memory_region_init(mr, name, size);
mr->ram = true;
mr->terminates = true;
mr->destructor = memory_regio... | {
"code": [],
"line_no": []
} | void FUNC_0(MemoryRegion *VAR_0,
const char *VAR_1,
uint64_t VAR_2,
void *VAR_3)
{
memory_region_init(VAR_0, VAR_1, VAR_2);
VAR_0->ram = true;
VAR_0->terminates = true;
VAR_0->destructor = memory_regi... | [
"void FUNC_0(MemoryRegion *VAR_0,\nconst char *VAR_1,\nuint64_t VAR_2,\nvoid *VAR_3)\n{",
"memory_region_init(VAR_0, VAR_1, VAR_2);",
"VAR_0->ram = true;",
"VAR_0->terminates = true;",
"VAR_0->destructor = memory_region_destructor_ram_from_ptr;",
"VAR_0->ram_addr = qemu_ram_alloc_from_ptr(VAR_2, VAR_3, VA... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.