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 |
|---|---|---|---|---|---|---|---|---|---|---|
25,259 | static int qdev_add_one_global(QemuOpts *opts, void *opaque)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(opts, "driver");
g->property = qemu_opt_get(opts, "property");
g->value = qemu_opt_get(opts, "value");
oc = object_class_by_na... | true | qemu | dd98b71f4885814de9a64e7acc0e17b38ab7c38b | static int qdev_add_one_global(QemuOpts *opts, void *opaque)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(opts, "driver");
g->property = qemu_opt_get(opts, "property");
g->value = qemu_opt_get(opts, "value");
oc = object_class_by_na... | {
"code": [
" oc = object_class_by_name(g->driver);"
],
"line_no": [
19
]
} | static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(VAR_0, "driver");
g->property = qemu_opt_get(VAR_0, "property");
g->value = qemu_opt_get(VAR_0, "value");
oc = object_class_by_name(g->driv... | [
"static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)\n{",
"GlobalProperty *g;",
"ObjectClass *oc;",
"g = g_malloc0(sizeof(*g));",
"g->driver = qemu_opt_get(VAR_0, \"driver\");",
"g->property = qemu_opt_get(VAR_0, \"property\");",
"g->value = qemu_opt_get(VAR_0, \"value\");",
"oc = object_class_by_nam... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51... |
25,261 | void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
const ptrdiff_t dst_pitch)
{
int x, y, indx;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t b3_1... | true | FFmpeg | 8fb00b3e858b7a5aeccfe6bdfc10290c2121c3ec | void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
const ptrdiff_t dst_pitch)
{
int x, y, indx;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t b3_1... | {
"code": [
" p0 = tmp0 << 4;",
" p1 = tmp1 << 3;",
" p2 = (tmp0 + tmp2) << 3;",
" p3 = (tmp1 + tmp2 + b0_2) << 2;",
" p0 += (tmp0 + tmp1) << 3;",
" p1 += (tmp0 + tmp1 + b1_1 + b1_2) << 2;",
" ... | void FUNC_0(const IVIPlaneDesc *VAR_0, uint8_t *VAR_1,
const ptrdiff_t VAR_2)
{
int VAR_3, VAR_4, VAR_5;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t b3_1, b3_... | [
"void FUNC_0(const IVIPlaneDesc *VAR_0, uint8_t *VAR_1,\nconst ptrdiff_t VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;",
"int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;",
"int32_t b3_1, b3_2, b3_3, b3_4, b3_5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51,
53
],
[
57
],
[
59
],
[
61
... |
25,262 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vdev, "virtio-scsi", VIRTIO_ID_SCSI,
sizeof(VirtIOSCSIConfig));
s->cmd_vqs = g_malloc0(s->conf.num_q... | true | qemu | 91d670fbf9945ca4ecbd123affb36889e7fe8a5d | void virtio_scsi_common_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vdev, "virtio-scsi", VIRTIO_ID_SCSI,
sizeof(VirtIOSCSIConfig));
s->cmd_vqs = g_malloc0(s->conf.num_q... | {
"code": [
"void virtio_scsi_common_realize(DeviceState *dev, Error **errp)",
" virtio_scsi_handle_ctrl);",
" virtio_scsi_handle_event);",
" virtio_scsi_handle_cmd);"
],
"line_no": [
1,
... | void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);
int VAR_2;
virtio_init(vdev, "virtio-scsi", VIRTIO_ID_SCSI,
sizeof(VirtIOSCSIConfig));
s->cmd_vqs = g_malloc0(s->conf.num_queues * s... | [
"void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);",
"int VAR_2;",
"virtio_init(vdev, \"virtio-scsi\", VIRTIO_ID_SCSI,\nsizeof(VirtIOSCSIConfig));",
"s->cmd_vqs = g_malloc0(s->conf.num_queues * sizeof(VirtQue... | [
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
]
] |
25,264 | static CharDriverState *qemu_chr_open_udp_fd(int fd)
{
CharDriverState *chr = NULL;
NetCharDriver *s = NULL;
chr = qemu_chr_alloc();
s = g_malloc0(sizeof(NetCharDriver));
s->fd = fd;
s->chan = io_channel_from_socket(s->fd);
s->bufcnt = 0;
s->bufptr = 0;
chr->opaque = s;... | true | qemu | 2d528d45ecf5ee3c1a566a9f3d664464925ef830 | static CharDriverState *qemu_chr_open_udp_fd(int fd)
{
CharDriverState *chr = NULL;
NetCharDriver *s = NULL;
chr = qemu_chr_alloc();
s = g_malloc0(sizeof(NetCharDriver));
s->fd = fd;
s->chan = io_channel_from_socket(s->fd);
s->bufcnt = 0;
s->bufptr = 0;
chr->opaque = s;... | {
"code": [
" s = g_malloc0(sizeof(NetCharDriver));"
],
"line_no": [
13
]
} | static CharDriverState *FUNC_0(int fd)
{
CharDriverState *chr = NULL;
NetCharDriver *s = NULL;
chr = qemu_chr_alloc();
s = g_malloc0(sizeof(NetCharDriver));
s->fd = fd;
s->chan = io_channel_from_socket(s->fd);
s->bufcnt = 0;
s->bufptr = 0;
chr->opaque = s;
chr->chr... | [
"static CharDriverState *FUNC_0(int fd)\n{",
"CharDriverState *chr = NULL;",
"NetCharDriver *s = NULL;",
"chr = qemu_chr_alloc();",
"s = g_malloc0(sizeof(NetCharDriver));",
"s->fd = fd;",
"s->chan = io_channel_from_socket(s->fd);",
"s->bufcnt = 0;",
"s->bufptr = 0;",
"chr->opaque = s;",
"chr->ch... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
]
] |
25,267 | static int genh_read_packet(AVFormatContext *s, AVPacket *pkt)
{
AVCodecContext *codec = s->streams[0]->codec;
GENHDemuxContext *c = s->priv_data;
int ret;
if (c->dsp_int_type == 1 && codec->codec_id == AV_CODEC_ID_ADPCM_THP &&
codec->channels > 1) {
int i, ch;
if (av... | false | FFmpeg | acf23d9451e9ea014a4eddf2abdb476c4f33edc4 | static int genh_read_packet(AVFormatContext *s, AVPacket *pkt)
{
AVCodecContext *codec = s->streams[0]->codec;
GENHDemuxContext *c = s->priv_data;
int ret;
if (c->dsp_int_type == 1 && codec->codec_id == AV_CODEC_ID_ADPCM_THP &&
codec->channels > 1) {
int i, ch;
if (av... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
AVCodecContext *codec = VAR_0->streams[0]->codec;
GENHDemuxContext *c = VAR_0->priv_data;
int VAR_2;
if (c->dsp_int_type == 1 && codec->codec_id == AV_CODEC_ID_ADPCM_THP &&
codec->channels > 1) {
int VAR_3, VAR_4;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"AVCodecContext *codec = VAR_0->streams[0]->codec;",
"GENHDemuxContext *c = VAR_0->priv_data;",
"int VAR_2;",
"if (c->dsp_int_type == 1 && codec->codec_id == AV_CODEC_ID_ADPCM_THP &&\ncodec->channels > 1) {",
"int VAR_3, VAR_4;",
"if (avio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
25,268 | static void balloon_page(void *addr, int deflate)
{
#if defined(__linux__)
if (!kvm_enabled() || kvm_has_sync_mmu())
madvise(addr, TARGET_PAGE_SIZE,
deflate ? MADV_WILLNEED : MADV_DONTNEED);
#endif
}
| true | qemu | e78815a554adaa551d62a71be10ee2fcf128e473 | static void balloon_page(void *addr, int deflate)
{
#if defined(__linux__)
if (!kvm_enabled() || kvm_has_sync_mmu())
madvise(addr, TARGET_PAGE_SIZE,
deflate ? MADV_WILLNEED : MADV_DONTNEED);
#endif
}
| {
"code": [
"#endif",
"#endif",
" madvise(addr, TARGET_PAGE_SIZE,",
" deflate ? MADV_WILLNEED : MADV_DONTNEED);",
"#endif"
],
"line_no": [
13,
13,
9,
11,
13
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
#if defined(__linux__)
if (!kvm_enabled() || kvm_has_sync_mmu())
madvise(VAR_0, TARGET_PAGE_SIZE,
VAR_1 ? MADV_WILLNEED : MADV_DONTNEED);
#endif
}
| [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"#if defined(__linux__)\nif (!kvm_enabled() || kvm_has_sync_mmu())\nmadvise(VAR_0, TARGET_PAGE_SIZE,\nVAR_1 ? MADV_WILLNEED : MADV_DONTNEED);",
"#endif\n}"
] | [
0,
1,
1
] | [
[
1,
3
],
[
5,
7,
9,
11
],
[
13,
15
]
] |
25,269 | static void test_self(void)
{
Coroutine *coroutine;
coroutine = qemu_coroutine_create(verify_self);
qemu_coroutine_enter(coroutine, &coroutine);
}
| true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void test_self(void)
{
Coroutine *coroutine;
coroutine = qemu_coroutine_create(verify_self);
qemu_coroutine_enter(coroutine, &coroutine);
}
| {
"code": [
" coroutine = qemu_coroutine_create(verify_self);",
" qemu_coroutine_enter(coroutine, &coroutine);"
],
"line_no": [
9,
11
]
} | static void FUNC_0(void)
{
Coroutine *coroutine;
coroutine = qemu_coroutine_create(verify_self);
qemu_coroutine_enter(coroutine, &coroutine);
}
| [
"static void FUNC_0(void)\n{",
"Coroutine *coroutine;",
"coroutine = qemu_coroutine_create(verify_self);",
"qemu_coroutine_enter(coroutine, &coroutine);",
"}"
] | [
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
25,270 | static void gen_wrteei(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
if (ctx->opcode & 0x00008000) {
tcg_gen_ori_tl(cpu_msr, c... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_wrteei(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
if (ctx->opcode & 0x00008000) {
tcg_gen_ori_tl(cpu_msr, c... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
if (VAR_0->opcode & 0x00008000) {
tcg_gen_ori_tl(cpu_... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"if (VAR_0->opcode & 0x00008000) {",
"tcg_gen_ori_tl(cpu_msr, cp... | [
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
]
] |
25,272 | void qemu_put_be16(QEMUFile *f, unsigned int v)
{
qemu_put_byte(f, v >> 8);
qemu_put_byte(f, v);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | void qemu_put_be16(QEMUFile *f, unsigned int v)
{
qemu_put_byte(f, v >> 8);
qemu_put_byte(f, v);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QEMUFile *VAR_0, unsigned int VAR_1)
{
qemu_put_byte(VAR_0, VAR_1 >> 8);
qemu_put_byte(VAR_0, VAR_1);
}
| [
"void FUNC_0(QEMUFile *VAR_0, unsigned int VAR_1)\n{",
"qemu_put_byte(VAR_0, VAR_1 >> 8);",
"qemu_put_byte(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
25,273 | static void test_cancel(void)
{
WorkerTestData data[100];
int num_canceled;
int i;
/* Start more work items than there will be threads, to ensure
* the pool is full.
*/
test_submit_many();
/* Start long running jobs, to ensure we can cancel some. */
for (i = 0; i < 1... | true | qemu | 35ecde26018207fe723bec6efbd340db6e9c2d53 | static void test_cancel(void)
{
WorkerTestData data[100];
int num_canceled;
int i;
test_submit_many();
for (i = 0; i < 100; i++) {
data[i].n = 0;
data[i].ret = -EINPROGRESS;
data[i].aiocb = thread_pool_submit_aio(pool, long_cb, &data[i],
... | {
"code": [
" qemu_aio_wait_all();",
" qemu_aio_wait_all();",
" qemu_aio_wait_all();",
" qemu_aio_wait_all();"
],
"line_no": [
109,
109,
109,
109
]
} | static void FUNC_0(void)
{
WorkerTestData data[100];
int VAR_0;
int VAR_1;
test_submit_many();
for (VAR_1 = 0; VAR_1 < 100; VAR_1++) {
data[VAR_1].n = 0;
data[VAR_1].ret = -EINPROGRESS;
data[VAR_1].aiocb = thread_pool_submit_aio(pool, long_cb, &da... | [
"static void FUNC_0(void)\n{",
"WorkerTestData data[100];",
"int VAR_0;",
"int VAR_1;",
"test_submit_many();",
"for (VAR_1 = 0; VAR_1 < 100; VAR_1++) {",
"data[VAR_1].n = 0;",
"data[VAR_1].ret = -EINPROGRESS;",
"data[VAR_1].aiocb = thread_pool_submit_aio(pool, long_cb, &data[VAR_1],\ndone_cb, &data[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
19
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
45
],
[
47
],
[
49
],
[
59
],
[
61
],
[
63
],
[
69
],
[
71
],
[
73
],
[... |
25,274 | static void spr_write_tbl(DisasContext *ctx, int sprn, int gprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbl(cpu_env, cpu_gpr[gprn]);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(ctx);
}
}
| true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static void spr_write_tbl(DisasContext *ctx, int sprn, int gprn)
{
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbl(cpu_env, cpu_gpr[gprn]);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(ctx);
}
}
| {
"code": [
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" ... | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)
{
if (VAR_0->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_store_tbl(cpu_env, cpu_gpr[VAR_2]);
if (VAR_0->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_stop_exception(VAR_0);
}
}
| [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{",
"if (VAR_0->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_start();",
"}",
"gen_helper_store_tbl(cpu_env, cpu_gpr[VAR_2]);",
"if (VAR_0->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_end();",
"gen_stop_exception(VAR_0);",
"}",
"}"
] | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
25,275 | static void coroutine_fn commit_run(void *opaque)
{
CommitBlockJob *s = opaque;
BlockDriverState *active = s->active;
BlockDriverState *top = s->top;
BlockDriverState *base = s->base;
BlockDriverState *overlay_bs = NULL;
int64_t sector_num, end;
int ret = 0;
int n = 0;
void... | true | qemu | 6d759117d3fd28e38c49c56c9de206cc718d32fa | static void coroutine_fn commit_run(void *opaque)
{
CommitBlockJob *s = opaque;
BlockDriverState *active = s->active;
BlockDriverState *top = s->top;
BlockDriverState *base = s->base;
BlockDriverState *overlay_bs = NULL;
int64_t sector_num, end;
int ret = 0;
int n = 0;
void... | {
"code": [
" BlockDriverState *overlay_bs = NULL;",
" overlay_bs = bdrv_find_overlay(active, top);",
" if (s->orig_overlay_flags != bdrv_get_flags(overlay_bs)) {"
],
"line_no": [
13,
67,
195
]
} | static void VAR_0 commit_run(void *opaque)
{
CommitBlockJob *s = opaque;
BlockDriverState *active = s->active;
BlockDriverState *top = s->top;
BlockDriverState *base = s->base;
BlockDriverState *overlay_bs = NULL;
int64_t sector_num, end;
int ret = 0;
int n = 0;
void *buf;
... | [
"static void VAR_0 commit_run(void *opaque)\n{",
"CommitBlockJob *s = opaque;",
"BlockDriverState *active = s->active;",
"BlockDriverState *top = s->top;",
"BlockDriverState *base = s->base;",
"BlockDriverState *overlay_bs = NULL;",
"int64_t sector_num, end;",
"int ret = 0;",
"int n = 0;",
"void *... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
25,276 | static inline long double compute_read_bwidth(void)
{
assert(block_mig_state.total_time != 0);
return (block_mig_state.reads * BLOCK_SIZE)/ block_mig_state.total_time;
}
| true | qemu | 155eb9aa09249874b4ff49e94c58595ad82d3abb | static inline long double compute_read_bwidth(void)
{
assert(block_mig_state.total_time != 0);
return (block_mig_state.reads * BLOCK_SIZE)/ block_mig_state.total_time;
}
| {
"code": [
" return (block_mig_state.reads * BLOCK_SIZE)/ block_mig_state.total_time;"
],
"line_no": [
7
]
} | static inline long double FUNC_0(void)
{
assert(block_mig_state.total_time != 0);
return (block_mig_state.reads * BLOCK_SIZE)/ block_mig_state.total_time;
}
| [
"static inline long double FUNC_0(void)\n{",
"assert(block_mig_state.total_time != 0);",
"return (block_mig_state.reads * BLOCK_SIZE)/ block_mig_state.total_time;",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
25,277 | size_t v9fs_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
int bswap, const char *fmt, ...)
{
int i;
va_list ap;
size_t old_offset = offset;
va_start(ap, fmt);
for (i = 0; fmt[i]; i++) {
switch (fmt[i]) {
case 'b': {
uint8_t ... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | size_t v9fs_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
int bswap, const char *fmt, ...)
{
int i;
va_list ap;
size_t old_offset = offset;
va_start(ap, fmt);
for (i = 0; fmt[i]; i++) {
switch (fmt[i]) {
case 'b': {
uint8_t ... | {
"code": [],
"line_no": []
} | size_t FUNC_0(struct iovec *out_sg, int out_num, size_t offset,
int bswap, const char *fmt, ...)
{
int VAR_0;
va_list ap;
size_t old_offset = offset;
va_start(ap, fmt);
for (VAR_0 = 0; fmt[VAR_0]; VAR_0++) {
switch (fmt[VAR_0]) {
case 'b': {
... | [
"size_t FUNC_0(struct iovec *out_sg, int out_num, size_t offset,\nint bswap, const char *fmt, ...)\n{",
"int VAR_0;",
"va_list ap;",
"size_t old_offset = offset;",
"va_start(ap, fmt);",
"for (VAR_0 = 0; fmt[VAR_0]; VAR_0++) {",
"switch (fmt[VAR_0]) {",
"case 'b': {",
"uint8_t *valp = va_arg(ap, uint... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
25,279 | int coroutine_fn thread_pool_submit_co(ThreadPool *pool, ThreadPoolFunc *func,
void *arg)
{
ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS };
assert(qemu_in_coroutine());
thread_pool_submit_aio(pool, func, arg, thread_pool_co_cb, &tpc);
... | false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | int coroutine_fn thread_pool_submit_co(ThreadPool *pool, ThreadPoolFunc *func,
void *arg)
{
ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS };
assert(qemu_in_coroutine());
thread_pool_submit_aio(pool, func, arg, thread_pool_co_cb, &tpc);
... | {
"code": [],
"line_no": []
} | int VAR_0 thread_pool_submit_co(ThreadPool *pool, ThreadPoolFunc *func,
void *arg)
{
ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS };
assert(qemu_in_coroutine());
thread_pool_submit_aio(pool, func, arg, thread_pool_co_cb, &tpc);
qemu_c... | [
"int VAR_0 thread_pool_submit_co(ThreadPool *pool, ThreadPoolFunc *func,\nvoid *arg)\n{",
"ThreadPoolCo tpc = { .co = qemu_coroutine_self(), .ret = -EINPROGRESS };",
"assert(qemu_in_coroutine());",
"thread_pool_submit_aio(pool, func, arg, thread_pool_co_cb, &tpc);",
"qemu_coroutine_yield();",
"return tpc.... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,281 | int qcrypto_init(Error **errp G_GNUC_UNUSED)
{
return 0;
}
| false | qemu | 91bfcdb01d4869aa8f4cb67007827de63b8c2217 | int qcrypto_init(Error **errp G_GNUC_UNUSED)
{
return 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(Error **VAR_0 G_GNUC_UNUSED)
{
return 0;
}
| [
"int FUNC_0(Error **VAR_0 G_GNUC_UNUSED)\n{",
"return 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,282 | static av_cold int MPA_encode_init(AVCodecContext *avctx)
{
MpegAudioContext *s = avctx->priv_data;
int freq = avctx->sample_rate;
int bitrate = avctx->bit_rate;
int channels = avctx->channels;
int i, v, table;
float a;
if (channels <= 0 || channels > 2){
av_log(avctx, AV_... | false | FFmpeg | 2df0c32ea12ddfa72ba88309812bfb13b674130f | static av_cold int MPA_encode_init(AVCodecContext *avctx)
{
MpegAudioContext *s = avctx->priv_data;
int freq = avctx->sample_rate;
int bitrate = avctx->bit_rate;
int channels = avctx->channels;
int i, v, table;
float a;
if (channels <= 0 || channels > 2){
av_log(avctx, AV_... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
MpegAudioContext *s = avctx->priv_data;
int VAR_0 = avctx->sample_rate;
int VAR_1 = avctx->bit_rate;
int VAR_2 = avctx->VAR_2;
int VAR_3, VAR_7, VAR_5;
float VAR_6;
if (VAR_2 <= 0 || VAR_2 > 2){
av_log(avctx, AV_LOG_ERROR,... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"MpegAudioContext *s = avctx->priv_data;",
"int VAR_0 = avctx->sample_rate;",
"int VAR_1 = avctx->bit_rate;",
"int VAR_2 = avctx->VAR_2;",
"int VAR_3, VAR_7, VAR_5;",
"float VAR_6;",
"if (VAR_2 <= 0 || VAR_2 > 2){",
"av_log(avctx, AV_LOG_ERROR, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[... |
25,283 | BlockDriverState *check_to_replace_node(const char *node_name, Error **errp)
{
BlockDriverState *to_replace_bs = bdrv_find_node(node_name);
AioContext *aio_context;
if (!to_replace_bs) {
error_setg(errp, "Node name '%s' not found", node_name);
return NULL;
}
aio_context =... | false | qemu | e12f3784097a26a1ba51be420f41038b4c0ae5d1 | BlockDriverState *check_to_replace_node(const char *node_name, Error **errp)
{
BlockDriverState *to_replace_bs = bdrv_find_node(node_name);
AioContext *aio_context;
if (!to_replace_bs) {
error_setg(errp, "Node name '%s' not found", node_name);
return NULL;
}
aio_context =... | {
"code": [],
"line_no": []
} | BlockDriverState *FUNC_0(const char *node_name, Error **errp)
{
BlockDriverState *to_replace_bs = bdrv_find_node(node_name);
AioContext *aio_context;
if (!to_replace_bs) {
error_setg(errp, "Node name '%s' not found", node_name);
return NULL;
}
aio_context = bdrv_get_aio_c... | [
"BlockDriverState *FUNC_0(const char *node_name, Error **errp)\n{",
"BlockDriverState *to_replace_bs = bdrv_find_node(node_name);",
"AioContext *aio_context;",
"if (!to_replace_bs) {",
"error_setg(errp, \"Node name '%s' not found\", node_name);",
"return NULL;",
"}",
"aio_context = bdrv_get_aio_contex... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59,
61
],
... |
25,285 | static uint32_t ecc_mem_readb(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 00\n", addr);
return 0;
}
| false | qemu | 7c560456707bfe53eb1728fcde759be7d9418b62 | static uint32_t ecc_mem_readb(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 00\n", addr);
return 0;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 00\n", addr);
return 0;
}
| [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"printf(\"ECC: Unsupported read 0x\" TARGET_FMT_plx \" 00\\n\", addr);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
25,286 | static inline void gen_op_mov_reg_v(int ot, int reg, TCGv t0)
{
switch(ot) {
case OT_BYTE:
if (reg < 4 X86_64_DEF( || reg >= 8 || x86_64_hregs)) {
tcg_gen_deposit_tl(cpu_regs[reg], cpu_regs[reg], t0, 0, 8);
} else {
tcg_gen_deposit_tl(cpu_regs[reg - 4], cpu_regs[re... | false | qemu | 96d7073fb058e6f05257cd9041ffbbd736f6ccec | static inline void gen_op_mov_reg_v(int ot, int reg, TCGv t0)
{
switch(ot) {
case OT_BYTE:
if (reg < 4 X86_64_DEF( || reg >= 8 || x86_64_hregs)) {
tcg_gen_deposit_tl(cpu_regs[reg], cpu_regs[reg], t0, 0, 8);
} else {
tcg_gen_deposit_tl(cpu_regs[reg - 4], cpu_regs[re... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(int VAR_0, int VAR_1, TCGv VAR_2)
{
switch(VAR_0) {
case OT_BYTE:
if (VAR_1 < 4 X86_64_DEF( || VAR_1 >= 8 || x86_64_hregs)) {
tcg_gen_deposit_tl(cpu_regs[VAR_1], cpu_regs[VAR_1], VAR_2, 0, 8);
} else {
tcg_gen_deposit_tl(cpu_regs[VAR_1 - 4... | [
"static inline void FUNC_0(int VAR_0, int VAR_1, TCGv VAR_2)\n{",
"switch(VAR_0) {",
"case OT_BYTE:\nif (VAR_1 < 4 X86_64_DEF( || VAR_1 >= 8 || x86_64_hregs)) {",
"tcg_gen_deposit_tl(cpu_regs[VAR_1], cpu_regs[VAR_1], VAR_2, 0, 8);",
"} else {",
"tcg_gen_deposit_tl(cpu_regs[VAR_1 - 4], cpu_regs[VAR_1 - 4],... | [
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,
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47,
49
],
[
51
]
] |
25,287 | static int local_symlink(FsContext *fs_ctx, const char *oldpath,
V9fsPath *dir_path, const char *name, FsCred *credp)
{
int err = -1;
int serrno = 0;
char *newpath;
V9fsString fullname;
char buffer[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprint... | false | qemu | b97400caef60ccfb0bc81c59f8bd824c43a0d6c8 | static int local_symlink(FsContext *fs_ctx, const char *oldpath,
V9fsPath *dir_path, const char *name, FsCred *credp)
{
int err = -1;
int serrno = 0;
char *newpath;
V9fsString fullname;
char buffer[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprint... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
V9fsPath *VAR_2, const char *VAR_3, FsCred *VAR_4)
{
int VAR_5 = -1;
int VAR_6 = 0;
char *VAR_7;
V9fsString fullname;
char VAR_8[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullname, "... | [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nV9fsPath *VAR_2, const char *VAR_3, FsCred *VAR_4)\n{",
"int VAR_5 = -1;",
"int VAR_6 = 0;",
"char *VAR_7;",
"V9fsString fullname;",
"char VAR_8[PATH_MAX];",
"v9fs_string_init(&fullname);",
"v9fs_string_sprintf(&fullname, \"%s/%s\", VAR_2->data,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
25,288 | int socket_listen(SocketAddress *addr, Error **errp)
{
QemuOpts *opts;
int fd;
opts = qemu_opts_create(&socket_optslist, NULL, 0, &error_abort);
switch (addr->kind) {
case SOCKET_ADDRESS_KIND_INET:
inet_addr_to_opts(opts, addr->inet);
fd = inet_listen_opts(opts, 0, errp);
... | false | qemu | 2d32addae70987521578d8bb27c6b3f52cdcbdcb | int socket_listen(SocketAddress *addr, Error **errp)
{
QemuOpts *opts;
int fd;
opts = qemu_opts_create(&socket_optslist, NULL, 0, &error_abort);
switch (addr->kind) {
case SOCKET_ADDRESS_KIND_INET:
inet_addr_to_opts(opts, addr->inet);
fd = inet_listen_opts(opts, 0, errp);
... | {
"code": [],
"line_no": []
} | int FUNC_0(SocketAddress *VAR_0, Error **VAR_1)
{
QemuOpts *opts;
int VAR_2;
opts = qemu_opts_create(&socket_optslist, NULL, 0, &error_abort);
switch (VAR_0->kind) {
case SOCKET_ADDRESS_KIND_INET:
inet_addr_to_opts(opts, VAR_0->inet);
VAR_2 = inet_listen_opts(opts, 0, VAR_1... | [
"int FUNC_0(SocketAddress *VAR_0, Error **VAR_1)\n{",
"QemuOpts *opts;",
"int VAR_2;",
"opts = qemu_opts_create(&socket_optslist, NULL, 0, &error_abort);",
"switch (VAR_0->kind) {",
"case SOCKET_ADDRESS_KIND_INET:\ninet_addr_to_opts(opts, VAR_0->inet);",
"VAR_2 = inet_listen_opts(opts, 0, VAR_1);",
"b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53... |
25,289 | static int qcow_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcowState *s = bs->opaque;
unsigned int len, i, shift;
int ret;
QCowHeader header;
Error *local_err = NULL;
bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file,
... | false | qemu | d85f4222b4681da7ebf8a90b26e085a68fa2c55a | static int qcow_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcowState *s = bs->opaque;
unsigned int len, i, shift;
int ret;
QCowHeader header;
Error *local_err = NULL;
bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVQcowState *s = VAR_0->opaque;
unsigned int VAR_4, VAR_5, VAR_6;
int VAR_7;
QCowHeader header;
Error *local_err = NULL;
VAR_0->file = bdrv_open_child(NULL, VAR_1, "file", VAR_0,... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"unsigned int VAR_4, VAR_5, VAR_6;",
"int VAR_7;",
"QCowHeader header;",
"Error *local_err = NULL;",
"VAR_0->file = bdrv_open_child(NULL, VAR_1, \"file\", VAR_0, &child_file,\nf... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
25,290 | static void sigp_restart(CPUState *cs, run_on_cpu_data arg)
{
S390CPU *cpu = S390_CPU(cs);
SigpInfo *si = arg.host_ptr;
struct kvm_s390_irq irq = {
.type = KVM_S390_RESTART,
};
switch (s390_cpu_get_state(cpu)) {
case CPU_STATE_STOPPED:
/* the restart irq has to be deli... | false | qemu | eabcea18f835178c1f8f088f88bf00e379f09438 | static void sigp_restart(CPUState *cs, run_on_cpu_data arg)
{
S390CPU *cpu = S390_CPU(cs);
SigpInfo *si = arg.host_ptr;
struct kvm_s390_irq irq = {
.type = KVM_S390_RESTART,
};
switch (s390_cpu_get_state(cpu)) {
case CPU_STATE_STOPPED:
cpu_synchronize_state(c... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)
{
S390CPU *cpu = S390_CPU(VAR_0);
SigpInfo *si = VAR_1.host_ptr;
struct kvm_s390_irq VAR_2 = {
.type = KVM_S390_RESTART,
};
switch (s390_cpu_get_state(cpu)) {
case CPU_STATE_STOPPED:
cpu_synchronize_s... | [
"static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{",
"S390CPU *cpu = S390_CPU(VAR_0);",
"SigpInfo *si = VAR_1.host_ptr;",
"struct kvm_s390_irq VAR_2 = {",
".type = KVM_S390_RESTART,\n};",
"switch (s390_cpu_get_state(cpu)) {",
"case CPU_STATE_STOPPED:\ncpu_synchronize_state(VAR_0);",
"do_re... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
17
],
[
19,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
25,291 | void qemu_purge_queued_packets(VLANClientState *vc)
{
VLANPacket *packet, *next;
TAILQ_FOREACH_SAFE(packet, &vc->vlan->send_queue, entry, next) {
if (packet->sender == vc) {
TAILQ_REMOVE(&vc->vlan->send_queue, packet, entry);
qemu_free(packet);
}
}
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void qemu_purge_queued_packets(VLANClientState *vc)
{
VLANPacket *packet, *next;
TAILQ_FOREACH_SAFE(packet, &vc->vlan->send_queue, entry, next) {
if (packet->sender == vc) {
TAILQ_REMOVE(&vc->vlan->send_queue, packet, entry);
qemu_free(packet);
}
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(VLANClientState *VAR_0)
{
VLANPacket *packet, *next;
TAILQ_FOREACH_SAFE(packet, &VAR_0->vlan->send_queue, entry, next) {
if (packet->sender == VAR_0) {
TAILQ_REMOVE(&VAR_0->vlan->send_queue, packet, entry);
qemu_free(packet);
}
}
}
| [
"void FUNC_0(VLANClientState *VAR_0)\n{",
"VLANPacket *packet, *next;",
"TAILQ_FOREACH_SAFE(packet, &VAR_0->vlan->send_queue, entry, next) {",
"if (packet->sender == VAR_0) {",
"TAILQ_REMOVE(&VAR_0->vlan->send_queue, packet, entry);",
"qemu_free(packet);",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
25,292 | static void mips_tlb_flush_extra (CPUState *env, int first)
{
/* Discard entries from env->tlb[first] onwards. */
while (env->tlb_in_use > first) {
invalidate_tlb(--env->tlb_in_use, 0);
}
}
| false | qemu | 2ee4aed86ff2ba38a0e1846de18a9aec38d73015 | static void mips_tlb_flush_extra (CPUState *env, int first)
{
while (env->tlb_in_use > first) {
invalidate_tlb(--env->tlb_in_use, 0);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUState *VAR_0, int VAR_1)
{
while (VAR_0->tlb_in_use > VAR_1) {
invalidate_tlb(--VAR_0->tlb_in_use, 0);
}
}
| [
"static void FUNC_0 (CPUState *VAR_0, int VAR_1)\n{",
"while (VAR_0->tlb_in_use > VAR_1) {",
"invalidate_tlb(--VAR_0->tlb_in_use, 0);",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
25,293 | void ff_avg_h264_qpel8_mc32_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_and_aver_dst_8w_msa(src - (2 * stride) - 2,
stride, dst, stride, 8, 1);
}
| false | FFmpeg | 72dbc610be3272ba36603f78a39cc2d2d8fe0cc3 | void ff_avg_h264_qpel8_mc32_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_and_aver_dst_8w_msa(src - (2 * stride) - 2,
stride, dst, stride, 8, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_midh_qrt_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2,
VAR_2, VAR_0, VAR_2, 8, 1);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_midh_qrt_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 8, 1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
25,294 | DeviceState *exynos4210_uart_create(target_phys_addr_t addr,
int fifo_size,
int channel,
CharDriverState *chr,
qemu_irq irq)
{
DeviceState *dev;
SysBusDevice *bus;
c... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | DeviceState *exynos4210_uart_create(target_phys_addr_t addr,
int fifo_size,
int channel,
CharDriverState *chr,
qemu_irq irq)
{
DeviceState *dev;
SysBusDevice *bus;
c... | {
"code": [],
"line_no": []
} | DeviceState *FUNC_0(target_phys_addr_t addr,
int fifo_size,
int channel,
CharDriverState *chr,
qemu_irq irq)
{
DeviceState *dev;
SysBusDevice *bus;
const char VAR_0[... | [
"DeviceState *FUNC_0(target_phys_addr_t addr,\nint fifo_size,\nint channel,\nCharDriverState *chr,\nqemu_irq irq)\n{",
"DeviceState *dev;",
"SysBusDevice *bus;",
"const char VAR_0[] = \"serial\";",
"char VAR_1[ARRAY_SIZE(VAR_0) + 1];",
"dev = qdev_create(NULL, \"exynos4210.uart\");",
"if (!chr) {",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
25,295 | static VncClientInfo *qmp_query_vnc_client(const VncState *client)
{
struct sockaddr_storage sa;
socklen_t salen = sizeof(sa);
char host[NI_MAXHOST];
char serv[NI_MAXSERV];
VncClientInfo *info;
if (getpeername(client->csock, (struct sockaddr *)&sa, &salen) < 0) {
return NULL;
... | false | qemu | ddf21908961073199f3d186204da4810f2ea150b | static VncClientInfo *qmp_query_vnc_client(const VncState *client)
{
struct sockaddr_storage sa;
socklen_t salen = sizeof(sa);
char host[NI_MAXHOST];
char serv[NI_MAXSERV];
VncClientInfo *info;
if (getpeername(client->csock, (struct sockaddr *)&sa, &salen) < 0) {
return NULL;
... | {
"code": [],
"line_no": []
} | static VncClientInfo *FUNC_0(const VncState *client)
{
struct sockaddr_storage VAR_0;
socklen_t salen = sizeof(VAR_0);
char VAR_1[NI_MAXHOST];
char VAR_2[NI_MAXSERV];
VncClientInfo *info;
if (getpeername(client->csock, (struct sockaddr *)&VAR_0, &salen) < 0) {
return NULL;
... | [
"static VncClientInfo *FUNC_0(const VncState *client)\n{",
"struct sockaddr_storage VAR_0;",
"socklen_t salen = sizeof(VAR_0);",
"char VAR_1[NI_MAXHOST];",
"char VAR_2[NI_MAXSERV];",
"VncClientInfo *info;",
"if (getpeername(client->csock, (struct sockaddr *)&VAR_0, &salen) < 0) {",
"return NULL;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25,
27,
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
25,296 | static void deblocking_filter_CTB(HEVCContext *s, int x0, int y0)
{
uint8_t *src;
int x, y, x_end, y_end, chroma;
int c_tc[2], beta[2], tc[2];
uint8_t no_p[2] = { 0 };
uint8_t no_q[2] = { 0 };
int log2_ctb_size = s->sps->log2_ctb_size;
int ctb_size = 1 << log2_ctb_size;
... | false | FFmpeg | 73bb8f61d48dbf7237df2e9cacd037f12b84b00a | static void deblocking_filter_CTB(HEVCContext *s, int x0, int y0)
{
uint8_t *src;
int x, y, x_end, y_end, chroma;
int c_tc[2], beta[2], tc[2];
uint8_t no_p[2] = { 0 };
uint8_t no_q[2] = { 0 };
int log2_ctb_size = s->sps->log2_ctb_size;
int ctb_size = 1 << log2_ctb_size;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2)
{
uint8_t *src;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8[2], VAR_9[2], VAR_10[2];
uint8_t no_p[2] = { 0 };
uint8_t no_q[2] = { 0 };
int VAR_11 = VAR_0->sps->VAR_11;
int VAR_12 = 1 << VAR_11;
int VAR_13... | [
"static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2)\n{",
"uint8_t *src;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8[2], VAR_9[2], VAR_10[2];",
"uint8_t no_p[2] = { 0 };",
"uint8_t no_q[2] = { 0 };",
"int VAR_11 = VAR_0->sps->VAR_11;",
"int VAR_12 = 1 << VAR_11;",
"int VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
25,297 | static inline void mix_2f_2r_to_dolby(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] -= output[3][i];
output[2][i] += output[4][i];
}
memset(output[3], 0, sizeof(output[3]));
memset(output[... | false | FFmpeg | 486637af8ef29ec215e0e0b7ecd3b5470f0e04e5 | static inline void mix_2f_2r_to_dolby(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] -= output[3][i];
output[2][i] += output[4][i];
}
memset(output[3], 0, sizeof(output[3]));
memset(output[... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1;
float (*VAR_2)[256] = VAR_0->audio_block.block_output;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_2[1][VAR_1] -= VAR_2[3][VAR_1];
VAR_2[2][VAR_1] += VAR_2[4][VAR_1];
}
memset(VAR_2[3], 0, sizeof(VAR_2[3]));
... | [
"static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1;",
"float (*VAR_2)[256] = VAR_0->audio_block.block_output;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_2[1][VAR_1] -= VAR_2[3][VAR_1];",
"VAR_2[2][VAR_1] += VAR_2[4][VAR_1];",
"}",
"memset(VAR_2[3], 0, sizeof(VAR_2[3]));",
"me... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
25,298 | int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
{
QSVFrame *cur;
MFXVideoENCODE_Close(q->session);
if (q->internal_session)
MFXClose(q->internal_session);
q->session = NULL;
q->internal_session = NULL;
cur = q->work_frames;
while (cur) {
q... | false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
{
QSVFrame *cur;
MFXVideoENCODE_Close(q->session);
if (q->internal_session)
MFXClose(q->internal_session);
q->session = NULL;
q->internal_session = NULL;
cur = q->work_frames;
while (cur) {
q... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1)
{
QSVFrame *cur;
MFXVideoENCODE_Close(VAR_1->session);
if (VAR_1->internal_session)
MFXClose(VAR_1->internal_session);
VAR_1->session = NULL;
VAR_1->internal_session = NULL;
cur = VAR_1->work_frames;
while ... | [
"int FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1)\n{",
"QSVFrame *cur;",
"MFXVideoENCODE_Close(VAR_1->session);",
"if (VAR_1->internal_session)\nMFXClose(VAR_1->internal_session);",
"VAR_1->session = NULL;",
"VAR_1->internal_session = NULL;",
"cur = VAR_1->work_frames;",
"while (cur) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
... |
25,299 | static av_cold int raw_encode_init(AVCodecContext *avctx)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
a... | false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int raw_encode_init(AVCodecContext *avctx)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
a... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
const AVPixFmtDescriptor *VAR_0 = av_pix_fmt_desc_get(avctx->pix_fmt);
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->co... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"const AVPixFmtDescriptor *VAR_0 = av_pix_fmt_desc_get(avctx->pix_fmt);",
"avctx->coded_frame = av_frame_alloc();",
"if (!avctx->coded_frame)\nreturn AVERROR(ENOMEM);",
"avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;",
"avctx->coded_fra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
]
] |
25,300 | int ff_audio_mix(AudioMix *am, AudioData *src)
{
int use_generic = 1;
int len = src->nb_samples;
int i, j;
/* determine whether to use the optimized function based on pointer and
samples alignment in both the input and output */
if (am->has_optimized_func) {
int aligned_len ... | true | FFmpeg | 3d95d27376e59de14f984e7a22a52e066d85df35 | int ff_audio_mix(AudioMix *am, AudioData *src)
{
int use_generic = 1;
int len = src->nb_samples;
int i, j;
if (am->has_optimized_func) {
int aligned_len = FFALIGN(len, am->samples_align);
if (!(src->ptr_align % am->ptr_align) &&
src->samples_align >= aligned... | {
"code": [
" uint8_t *data0[AVRESAMPLE_MAX_CHANNELS];"
],
"line_no": [
45
]
} | int FUNC_0(AudioMix *VAR_0, AudioData *VAR_1)
{
int VAR_2 = 1;
int VAR_3 = VAR_1->nb_samples;
int VAR_4, VAR_5;
if (VAR_0->has_optimized_func) {
int VAR_6 = FFALIGN(VAR_3, VAR_0->samples_align);
if (!(VAR_1->ptr_align % VAR_0->ptr_align) &&
VAR_1->samples_al... | [
"int FUNC_0(AudioMix *VAR_0, AudioData *VAR_1)\n{",
"int VAR_2 = 1;",
"int VAR_3 = VAR_1->nb_samples;",
"int VAR_4, VAR_5;",
"if (VAR_0->has_optimized_func) {",
"int VAR_6 = FFALIGN(VAR_3, VAR_0->samples_align);",
"if (!(VAR_1->ptr_align % VAR_0->ptr_align) &&\nVAR_1->samples_align >= VAR_6) {",
"VAR_... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
41
],
[
43
],
[
45
],
[
49,
51
],
[
53
],
[
55,... |
25,301 | static int ahci_dma_set_inactive(IDEDMA *dma)
{
AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma);
DPRINTF(ad->port_no, "dma done\n");
/* update d2h status */
ahci_write_fis_d2h(ad, NULL);
ad->dma_cb = NULL;
/* maybe we still have something to process, check later */
ad->check... | true | qemu | 4d29b50a41810684ad34e44352a630eb1dd94b58 | static int ahci_dma_set_inactive(IDEDMA *dma)
{
AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma);
DPRINTF(ad->port_no, "dma done\n");
ahci_write_fis_d2h(ad, NULL);
ad->dma_cb = NULL;
ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
qemu_bh_schedule(ad->check_bh);
... | {
"code": [
" ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);",
" qemu_bh_schedule(ad->check_bh);"
],
"line_no": [
25,
27
]
} | static int FUNC_0(IDEDMA *VAR_0)
{
AHCIDevice *ad = DO_UPCAST(AHCIDevice, VAR_0, VAR_0);
DPRINTF(ad->port_no, "VAR_0 done\n");
ahci_write_fis_d2h(ad, NULL);
ad->dma_cb = NULL;
ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
qemu_bh_schedule(ad->check_bh);
ret... | [
"static int FUNC_0(IDEDMA *VAR_0)\n{",
"AHCIDevice *ad = DO_UPCAST(AHCIDevice, VAR_0, VAR_0);",
"DPRINTF(ad->port_no, \"VAR_0 done\\n\");",
"ahci_write_fis_d2h(ad, NULL);",
"ad->dma_cb = NULL;",
"ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);",
"qemu_bh_schedule(ad->check_bh);",
"return 0;",
"}"... | [
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
15
],
[
19
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
25,302 | DriveInfo *drive_init(QemuOpts *opts, void *opaque,
int *fatal_error)
{
const char *buf;
const char *file = NULL;
char devname[128];
const char *serial;
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id,... | true | qemu | 016f5cf6ff465411733878a17c8f8febb7668321 | DriveInfo *drive_init(QemuOpts *opts, void *opaque,
int *fatal_error)
{
const char *buf;
const char *file = NULL;
char devname[128];
const char *serial;
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id,... | {
"code": [],
"line_no": []
} | DriveInfo *FUNC_0(QemuOpts *opts, void *opaque,
int *fatal_error)
{
const char *VAR_0;
const char *VAR_1 = NULL;
char VAR_2[128];
const char *VAR_3;
const char *VAR_4 = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } VAR_5;
int VAR_6, VAR_7;
... | [
"DriveInfo *FUNC_0(QemuOpts *opts, void *opaque,\nint *fatal_error)\n{",
"const char *VAR_0;",
"const char *VAR_1 = NULL;",
"char VAR_2[128];",
"const char *VAR_3;",
"const char *VAR_4 = \"\";",
"BlockInterfaceType type;",
"enum { MEDIA_DISK, MEDIA_CDROM } VAR_5;",
"int VAR_6, VAR_7;",
"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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
25,303 | static void mm_decode_intra(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size)
{
int i, x, y;
i=0; x=0; y=0;
while(i<buf_size) {
int run_length, color;
if (buf[i] & 0x80) {
run_length = 1;
color = buf[i];
i++;
... | false | FFmpeg | 091bc6ca8c643bfece2c70ff2404c7b31574e1f1 | static void mm_decode_intra(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size)
{
int i, x, y;
i=0; x=0; y=0;
while(i<buf_size) {
int run_length, color;
if (buf[i] & 0x80) {
run_length = 1;
color = buf[i];
i++;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7;
VAR_5=0; VAR_6=0; VAR_7=0;
while(VAR_5<VAR_4) {
int VAR_8, VAR_9;
if (VAR_3[VAR_5] & 0x80) {
VAR_8 = 1;
VAR_9 = VAR_3[VAR_5];
... | [
"static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7;",
"VAR_5=0; VAR_6=0; VAR_7=0;",
"while(VAR_5<VAR_4) {",
"int VAR_8, VAR_9;",
"if (VAR_3[VAR_5] & 0x80) {",
"VAR_8 = 1;",
"VAR_9 = VAR_3[VAR_5];",
"VAR_5++;",
"}else{",
"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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
47,
49
],
[
51... |
25,304 | milkymist_init(QEMUMachineInitArgs *args)
{
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
LM32CPU *cpu;
CPULM32State *env;
int kernel_size;
... | true | qemu | f41152bd9d01ab327c19a3828bb7896d67cf0752 | milkymist_init(QEMUMachineInitArgs *args)
{
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
LM32CPU *cpu;
CPULM32State *env;
int kernel_size;
... | {
"code": [],
"line_no": []
} | FUNC_0(QEMUMachineInitArgs *VAR_0)
{
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
LM32CPU *cpu;
CPULM32State *env;
int VAR_5;
DriveInfo *dinfo;
MemoryRegion *address_space_mem = get_system_memo... | [
"FUNC_0(QEMUMachineInitArgs *VAR_0)\n{",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"LM32CPU *cpu;",
"CPULM32State *env;",
"int VAR_5;",
"DriveInfo *dinfo;",
"MemoryRegion *address_space_mem = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],... |
25,305 | void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
static int print_prefix=1;
static int count;
static char line[1024], prev[1024];
static int is_atty;
AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
if(level>av_log_level)
return;
line[0]=0;
#unde... | true | FFmpeg | 0247bdee2581a6857a24c5ff297f01d3a3112b11 | void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
static int print_prefix=1;
static int count;
static char line[1024], prev[1024];
static int is_atty;
AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
if(level>av_log_level)
return;
line[0]=0;
#unde... | {
"code": [
" static char line[1024], prev[1024];",
" if(print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev)){",
" strcpy(prev, line);"
],
"line_no": [
9,
59,
81
]
} | void FUNC_0(void* VAR_0, int VAR_1, const char* VAR_2, va_list VAR_3)
{
static int VAR_4=1;
static int VAR_5;
static char VAR_6[1024], VAR_7[1024];
static int VAR_8;
AVClass* avc= VAR_0 ? *(AVClass**)VAR_0 : NULL;
if(VAR_1>av_log_level)
return;
VAR_6[0]=0;
#undef fprintf
... | [
"void FUNC_0(void* VAR_0, int VAR_1, const char* VAR_2, va_list VAR_3)\n{",
"static int VAR_4=1;",
"static int VAR_5;",
"static char VAR_6[1024], VAR_7[1024];",
"static int VAR_8;",
"AVClass* avc= VAR_0 ? *(AVClass**)VAR_0 : NULL;",
"if(VAR_1>av_log_level)\nreturn;",
"VAR_6[0]=0;",
"#undef fprintf\n... | [
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,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
... |
25,307 | static int bt_hci_name_req(struct bt_hci_s *hci, bdaddr_t *bdaddr)
{
struct bt_device_s *slave;
evt_remote_name_req_complete params;
int len;
for (slave = hci->device.net->slave; slave; slave = slave->next)
if (slave->page_scan && !bacmp(&slave->bd_addr, bdaddr))
break;
... | true | qemu | e5fda03839e3c61b01d6c60de5625501d01c69d0 | static int bt_hci_name_req(struct bt_hci_s *hci, bdaddr_t *bdaddr)
{
struct bt_device_s *slave;
evt_remote_name_req_complete params;
int len;
for (slave = hci->device.net->slave; slave; slave = slave->next)
if (slave->page_scan && !bacmp(&slave->bd_addr, bdaddr))
break;
... | {
"code": [
" int len;",
" len = snprintf(params.name, sizeof(params.name),",
" \"%s\", slave->lmp_name ?: \"\");",
" memset(params.name + len, 0, sizeof(params.name) - len);"
],
"line_no": [
9,
33,
35,
37
]
} | static int FUNC_0(struct bt_hci_s *VAR_0, bdaddr_t *VAR_1)
{
struct bt_device_s *VAR_2;
evt_remote_name_req_complete params;
int VAR_3;
for (VAR_2 = VAR_0->device.net->VAR_2; VAR_2; VAR_2 = VAR_2->next)
if (VAR_2->page_scan && !bacmp(&VAR_2->bd_addr, VAR_1))
break;
if (... | [
"static int FUNC_0(struct bt_hci_s *VAR_0, bdaddr_t *VAR_1)\n{",
"struct bt_device_s *VAR_2;",
"evt_remote_name_req_complete params;",
"int VAR_3;",
"for (VAR_2 = VAR_0->device.net->VAR_2; VAR_2; VAR_2 = VAR_2->next)",
"if (VAR_2->page_scan && !bacmp(&VAR_2->bd_addr, VAR_1))\nbreak;",
"if (!VAR_2)\nretu... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
]
] |
25,308 | int av_opt_is_set_to_default(void *obj, const AVOption *o)
{
int64_t i64;
double d, d2;
float f;
AVRational q;
int ret, w, h;
char *str;
void *dst;
if (!o || !obj)
return AVERROR(EINVAL);
dst = ((uint8_t*)obj) + o->offset;
switch (o->type) {
case AV... | false | FFmpeg | eb74839caa2c50018b1d5a88a43c3da9f4345a8d | int av_opt_is_set_to_default(void *obj, const AVOption *o)
{
int64_t i64;
double d, d2;
float f;
AVRational q;
int ret, w, h;
char *str;
void *dst;
if (!o || !obj)
return AVERROR(EINVAL);
dst = ((uint8_t*)obj) + o->offset;
switch (o->type) {
case AV... | {
"code": [],
"line_no": []
} | int FUNC_0(void *VAR_0, const AVOption *VAR_1)
{
int64_t i64;
double VAR_2, VAR_3;
float VAR_4;
AVRational q;
int VAR_5, VAR_6, VAR_7;
char *VAR_8;
void *VAR_9;
if (!VAR_1 || !VAR_0)
return AVERROR(EINVAL);
VAR_9 = ((uint8_t*)VAR_0) + VAR_1->offset;
swit... | [
"int FUNC_0(void *VAR_0, const AVOption *VAR_1)\n{",
"int64_t i64;",
"double VAR_2, VAR_3;",
"float VAR_4;",
"AVRational q;",
"int VAR_5, VAR_6, VAR_7;",
"char *VAR_8;",
"void *VAR_9;",
"if (!VAR_1 || !VAR_0)\nreturn AVERROR(EINVAL);",
"VAR_9 = ((uint8_t*)VAR_0) + VAR_1->offset;",
"switch (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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
31
],
[
33,
35
],
[
37,
39,
41,
43,
45,
47,
49,
51
],
[
53
],
[
55,
57
... |
25,309 | static int indeo3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
unsigned char *buf, int buf_size)
{
Indeo3DecodeContext *s=avctx->priv_data;
unsigned char *src, *dest;
int y;
/* no supplementary picture */
if (... | false | FFmpeg | 934982c4ace1a3d5d627b518782ed092a456c49e | static int indeo3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
unsigned char *buf, int buf_size)
{
Indeo3DecodeContext *s=avctx->priv_data;
unsigned char *src, *dest;
int y;
if (buf_size == 0) {
retu... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
unsigned char *VAR_3, int VAR_4)
{
Indeo3DecodeContext *s=VAR_0->priv_data;
unsigned char *VAR_5, *VAR_6;
int VAR_7;
if (VAR_4 == 0) {
return 0;
}
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nunsigned char *VAR_3, int VAR_4)\n{",
"Indeo3DecodeContext *s=VAR_0->priv_data;",
"unsigned char *VAR_5, *VAR_6;",
"int VAR_7;",
"if (VAR_4 == 0) {",
"return 0;",
"}",
"iv_decode_frame(s, VAR_3, VAR_4);",
"if(s->frame.VAR_1[0])\nVA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
25,311 | void ff_h261_loop_filter(MpegEncContext *s){
H261Context * h= (H261Context*)s;
const int linesize = s->linesize;
const int uvlinesize= s->uvlinesize;
uint8_t *dest_y = s->dest[0];
uint8_t *dest_cb= s->dest[1];
uint8_t *dest_cr= s->dest[2];
if(!(IS_FIL (h->mtype)))
return;
... | false | FFmpeg | ed16c2dbf47cdd7c48825b4da6e7036698e5dde1 | void ff_h261_loop_filter(MpegEncContext *s){
H261Context * h= (H261Context*)s;
const int linesize = s->linesize;
const int uvlinesize= s->uvlinesize;
uint8_t *dest_y = s->dest[0];
uint8_t *dest_cb= s->dest[1];
uint8_t *dest_cr= s->dest[2];
if(!(IS_FIL (h->mtype)))
return;
... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0){
H261Context * h= (H261Context*)VAR_0;
const int VAR_1 = VAR_0->VAR_1;
const int VAR_2= VAR_0->VAR_2;
uint8_t *dest_y = VAR_0->dest[0];
uint8_t *dest_cb= VAR_0->dest[1];
uint8_t *dest_cr= VAR_0->dest[2];
if(!(IS_FIL (h->mtype)))
return;
... | [
"void FUNC_0(MpegEncContext *VAR_0){",
"H261Context * h= (H261Context*)VAR_0;",
"const int VAR_1 = VAR_0->VAR_1;",
"const int VAR_2= VAR_0->VAR_2;",
"uint8_t *dest_y = VAR_0->dest[0];",
"uint8_t *dest_cb= VAR_0->dest[1];",
"uint8_t *dest_cr= VAR_0->dest[2];",
"if(!(IS_FIL (h->mtype)))\nreturn;",
"V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
25,312 | static gboolean check_old_packet_regular(void *opaque)
{
CompareState *s = opaque;
/* if have old packet we will notify checkpoint */
colo_old_packet_check(s);
return TRUE;
}
| false | qemu | dd321ecfc2e82e6f9578b986060b1aa3f036bd98 | static gboolean check_old_packet_regular(void *opaque)
{
CompareState *s = opaque;
colo_old_packet_check(s);
return TRUE;
}
| {
"code": [],
"line_no": []
} | static gboolean FUNC_0(void *opaque)
{
CompareState *s = opaque;
colo_old_packet_check(s);
return TRUE;
}
| [
"static gboolean FUNC_0(void *opaque)\n{",
"CompareState *s = opaque;",
"colo_old_packet_check(s);",
"return TRUE;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15
],
[
17
]
] |
25,313 | float64 helper_fsqrtd(CPUSPARCState *env, float64 src)
{
float64 ret;
clear_float_exceptions(env);
ret = float64_sqrt(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| false | qemu | 7385aed20db5d83979f683b9d0048674411e963c | float64 helper_fsqrtd(CPUSPARCState *env, float64 src)
{
float64 ret;
clear_float_exceptions(env);
ret = float64_sqrt(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| {
"code": [],
"line_no": []
} | float64 FUNC_0(CPUSPARCState *env, float64 src)
{
float64 ret;
clear_float_exceptions(env);
ret = float64_sqrt(src, &env->fp_status);
check_ieee_exceptions(env);
return ret;
}
| [
"float64 FUNC_0(CPUSPARCState *env, float64 src)\n{",
"float64 ret;",
"clear_float_exceptions(env);",
"ret = float64_sqrt(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
]
] |
25,314 | static int local_mknod(FsContext *ctx, const char *path, mode_t mode, dev_t dev)
{
return mknod(rpath(ctx, path), mode, dev);
}
| false | qemu | 1c29331248d82e5a9caaf7974756a9d8bd5cd1e5 | static int local_mknod(FsContext *ctx, const char *path, mode_t mode, dev_t dev)
{
return mknod(rpath(ctx, path), mode, dev);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, const char *VAR_1, mode_t VAR_2, dev_t VAR_3)
{
return mknod(rpath(VAR_0, VAR_1), VAR_2, VAR_3);
}
| [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1, mode_t VAR_2, dev_t VAR_3)\n{",
"return mknod(rpath(VAR_0, VAR_1), VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,315 | int ioinst_handle_msch(CPUS390XState *env, uint64_t reg1, uint32_t ipb)
{
int cssid, ssid, schid, m;
SubchDev *sch;
SCHIB *schib;
uint64_t addr;
int ret = -ENODEV;
int cc;
hwaddr len = sizeof(*schib);
if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {
... | false | qemu | 71ed827abd57dc7947ce3316118d0e601e70fac9 | int ioinst_handle_msch(CPUS390XState *env, uint64_t reg1, uint32_t ipb)
{
int cssid, ssid, schid, m;
SubchDev *sch;
SCHIB *schib;
uint64_t addr;
int ret = -ENODEV;
int cc;
hwaddr len = sizeof(*schib);
if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint32_t VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
SubchDev *sch;
SCHIB *schib;
uint64_t addr;
int VAR_7 = -ENODEV;
int VAR_8;
hwaddr len = sizeof(*schib);
if (ioinst_disassemble_sch_ident(VAR_1, &VAR_6, &VAR_3, &VAR_4, &VAR_5)) ... | [
"int FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint32_t VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"SubchDev *sch;",
"SCHIB *schib;",
"uint64_t addr;",
"int VAR_7 = -ENODEV;",
"int VAR_8;",
"hwaddr len = sizeof(*schib);",
"if (ioinst_disassemble_sch_ident(VAR_1, &VAR_6, &VAR_3, &VAR_4, &VAR_5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
25,316 | static void v9fs_readlink(void *opaque)
{
V9fsPDU *pdu = opaque;
size_t offset = 7;
V9fsString target;
int32_t fid;
int err = 0;
V9fsFidState *fidp;
pdu_unmarshal(pdu, offset, "d", &fid);
trace_v9fs_readlink(pdu->tag, pdu->id, fid);
fidp = get_fid(pdu, fid);
if (fidp... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | static void v9fs_readlink(void *opaque)
{
V9fsPDU *pdu = opaque;
size_t offset = 7;
V9fsString target;
int32_t fid;
int err = 0;
V9fsFidState *fidp;
pdu_unmarshal(pdu, offset, "d", &fid);
trace_v9fs_readlink(pdu->tag, pdu->id, fid);
fidp = get_fid(pdu, fid);
if (fidp... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
V9fsPDU *pdu = VAR_0;
size_t offset = 7;
V9fsString target;
int32_t fid;
int VAR_1 = 0;
V9fsFidState *fidp;
pdu_unmarshal(pdu, offset, "d", &fid);
trace_v9fs_readlink(pdu->tag, pdu->id, fid);
fidp = get_fid(pdu, fid);
if (fidp == NUL... | [
"static void FUNC_0(void *VAR_0)\n{",
"V9fsPDU *pdu = VAR_0;",
"size_t offset = 7;",
"V9fsString target;",
"int32_t fid;",
"int VAR_1 = 0;",
"V9fsFidState *fidp;",
"pdu_unmarshal(pdu, offset, \"d\", &fid);",
"trace_v9fs_readlink(pdu->tag, pdu->id, fid);",
"fidp = get_fid(pdu, fid);",
"if (fidp =... | [
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
25,317 | static void gt64120_write_config(PCIDevice *d, uint32_t address, uint32_t val,
int len)
{
#ifdef TARGET_WORDS_BIGENDIAN
val = bswap32(val);
#endif
pci_default_write_config(d, address, val, len);
}
| false | qemu | 1931e26054fdf2b1b84091f0b9662979eb6931ec | static void gt64120_write_config(PCIDevice *d, uint32_t address, uint32_t val,
int len)
{
#ifdef TARGET_WORDS_BIGENDIAN
val = bswap32(val);
#endif
pci_default_write_config(d, address, val, len);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2,
int VAR_3)
{
#ifdef TARGET_WORDS_BIGENDIAN
VAR_2 = bswap32(VAR_2);
#endif
pci_default_write_config(VAR_0, VAR_1, VAR_2, VAR_3);
}
| [
"static void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2,\nint VAR_3)\n{",
"#ifdef TARGET_WORDS_BIGENDIAN\nVAR_2 = bswap32(VAR_2);",
"#endif\npci_default_write_config(VAR_0, VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11,
13
],
[
15
]
] |
25,318 | static void arm_thiswdog_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
arm_mptimer_state *s = (arm_mptimer_state *)opaque;
int id = get_current_cpu(s);
timerblock_write(&s->timerblock[id * 2 + 1], addr, value, size);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void arm_thiswdog_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
arm_mptimer_state *s = (arm_mptimer_state *)opaque;
int id = get_current_cpu(s);
timerblock_write(&s->timerblock[id * 2 + 1], addr, value, size);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
arm_mptimer_state *s = (arm_mptimer_state *)VAR_0;
int VAR_4 = get_current_cpu(s);
timerblock_write(&s->timerblock[VAR_4 * 2 + 1], VAR_1, VAR_2, VAR_3);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"arm_mptimer_state *s = (arm_mptimer_state *)VAR_0;",
"int VAR_4 = get_current_cpu(s);",
"timerblock_write(&s->timerblock[VAR_4 * 2 + 1], VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
25,319 | static void rtc_save_td(QEMUFile *f, void *opaque)
{
RTCState *s = opaque;
qemu_put_be32(f, s->irq_coalesced);
qemu_put_be32(f, s->period);
}
| false | qemu | 048c74c4379789d03c857cea038ec00d95b68eaf | static void rtc_save_td(QEMUFile *f, void *opaque)
{
RTCState *s = opaque;
qemu_put_be32(f, s->irq_coalesced);
qemu_put_be32(f, s->period);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)
{
RTCState *s = VAR_1;
qemu_put_be32(VAR_0, s->irq_coalesced);
qemu_put_be32(VAR_0, s->period);
}
| [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{",
"RTCState *s = VAR_1;",
"qemu_put_be32(VAR_0, s->irq_coalesced);",
"qemu_put_be32(VAR_0, s->period);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
25,320 | static void scsi_realize(SCSIDevice *dev, Error **errp)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
Error *err = NULL;
if (!s->qdev.conf.bs) {
error_setg(errp, "drive property not set");
return;
}
if (!(s->features & (1 << SCSI_DISK_F_REMOVABLE)) &&
... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_realize(SCSIDevice *dev, Error **errp)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
Error *err = NULL;
if (!s->qdev.conf.bs) {
error_setg(errp, "drive property not set");
return;
}
if (!(s->features & (1 << SCSI_DISK_F_REMOVABLE)) &&
... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);
Error *err = NULL;
if (!s->qdev.conf.bs) {
error_setg(VAR_1, "drive property not set");
return;
}
if (!(s->features & (1 << SCSI_DISK_F_REMOVABLE)) &&
... | [
"static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);",
"Error *err = NULL;",
"if (!s->qdev.conf.bs) {",
"error_setg(VAR_1, \"drive property not set\");",
"return;",
"}",
"if (!(s->features & (1 << SCSI_DISK_F_REMOVABLE)) &&\n!bdrv_is_ins... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
... |
25,321 | static void ahci_shutdown(AHCIQState *ahci)
{
QOSState *qs = ahci->parent;
ahci_clean_mem(ahci);
free_ahci_device(ahci->dev);
g_free(ahci);
qtest_shutdown(qs);
}
| false | qemu | debaaa114a8877a939533ba846e64168fb287b7b | static void ahci_shutdown(AHCIQState *ahci)
{
QOSState *qs = ahci->parent;
ahci_clean_mem(ahci);
free_ahci_device(ahci->dev);
g_free(ahci);
qtest_shutdown(qs);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AHCIQState *VAR_0)
{
QOSState *qs = VAR_0->parent;
ahci_clean_mem(VAR_0);
free_ahci_device(VAR_0->dev);
g_free(VAR_0);
qtest_shutdown(qs);
}
| [
"static void FUNC_0(AHCIQState *VAR_0)\n{",
"QOSState *qs = VAR_0->parent;",
"ahci_clean_mem(VAR_0);",
"free_ahci_device(VAR_0->dev);",
"g_free(VAR_0);",
"qtest_shutdown(qs);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,322 | int udp_set_remote_url(URLContext *h, const char *uri)
{
UDPContext *s = h->priv_data;
char hostname[256];
int port;
url_split(NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
/* set the destination address */
if (resolve_host(&s->dest_addr.sin_addr, hostname) < 0)
... | false | FFmpeg | 6ba5cbc699e77cae66bb719354fa142114b64eab | int udp_set_remote_url(URLContext *h, const char *uri)
{
UDPContext *s = h->priv_data;
char hostname[256];
int port;
url_split(NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);
if (resolve_host(&s->dest_addr.sin_addr, hostname) < 0)
return AVERROR_IO;
s->de... | {
"code": [],
"line_no": []
} | int FUNC_0(URLContext *VAR_0, const char *VAR_1)
{
UDPContext *s = VAR_0->priv_data;
char VAR_2[256];
int VAR_3;
url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3, NULL, 0, VAR_1);
if (resolve_host(&s->dest_addr.sin_addr, VAR_2) < 0)
return AVERROR_IO;
s->dest_addr.si... | [
"int FUNC_0(URLContext *VAR_0, const char *VAR_1)\n{",
"UDPContext *s = VAR_0->priv_data;",
"char VAR_2[256];",
"int VAR_3;",
"url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3, NULL, 0, VAR_1);",
"if (resolve_host(&s->dest_addr.sin_addr, VAR_2) < 0)\nreturn AVERROR_IO;",
"s->dest_addr.sin_family = AF_INE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
25,323 | int cpu_signal_handler(int host_signum, void *pinfo,
void *puc)
{
siginfo_t *info = pinfo;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
ucontext_t *uc = puc;
#else
ucontext_t *uc = puc;
#endif
unsigned long pc;
int is_write;
pc = IAR_sig(uc);
i... | false | qemu | a78b1299f1bbb9608e3e3a36a7f16cf700a2789d | int cpu_signal_handler(int host_signum, void *pinfo,
void *puc)
{
siginfo_t *info = pinfo;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
ucontext_t *uc = puc;
#else
ucontext_t *uc = puc;
#endif
unsigned long pc;
int is_write;
pc = IAR_sig(uc);
i... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, void *VAR_1,
void *VAR_2)
{
siginfo_t *info = VAR_1;
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
ucontext_t *uc = VAR_2;
#else
ucontext_t *uc = VAR_2;
#endif
unsigned long VAR_3;
int VAR_4;
VAR_3 = IAR_sig(uc);
VAR_4 = 0;... | [
"int FUNC_0(int VAR_0, void *VAR_1,\nvoid *VAR_2)\n{",
"siginfo_t *info = VAR_1;",
"#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)\nucontext_t *uc = VAR_2;",
"#else\nucontext_t *uc = VAR_2;",
"#endif\nunsigned long VAR_3;",
"int VAR_4;",
"VAR_3 = IAR_sig(uc);",
"VAR_4 = 0;",
"#if 0\nif (DSI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47,
49,
51
],
[
53
... |
25,326 | static void net_socket_connected(int fd, Error *err, void *opaque)
{
socket_connect_data *c = opaque;
NetSocketState *s;
char *addr_str = NULL;
Error *local_error = NULL;
addr_str = socket_address_to_string(c->saddr, &local_error);
if (addr_str == NULL) {
error_report_err(local... | false | qemu | 6701e5514beab7b781a10424a94e9850c707287c | static void net_socket_connected(int fd, Error *err, void *opaque)
{
socket_connect_data *c = opaque;
NetSocketState *s;
char *addr_str = NULL;
Error *local_error = NULL;
addr_str = socket_address_to_string(c->saddr, &local_error);
if (addr_str == NULL) {
error_report_err(local... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, Error *VAR_1, void *VAR_2)
{
socket_connect_data *c = VAR_2;
NetSocketState *s;
char *VAR_3 = NULL;
Error *local_error = NULL;
VAR_3 = socket_address_to_string(c->saddr, &local_error);
if (VAR_3 == NULL) {
error_report_err(local_error);
cl... | [
"static void FUNC_0(int VAR_0, Error *VAR_1, void *VAR_2)\n{",
"socket_connect_data *c = VAR_2;",
"NetSocketState *s;",
"char *VAR_3 = NULL;",
"Error *local_error = NULL;",
"VAR_3 = socket_address_to_string(c->saddr, &local_error);",
"if (VAR_3 == NULL) {",
"error_report_err(local_error);",
"closeso... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
47,
49
],
[
51
... |
25,327 | void OPPROTO op_decw_ECX(void)
{
ECX = (ECX & ~0xffff) | ((ECX - 1) & 0xffff);
}
| false | qemu | 6e0d8677cb443e7408c0b7a25a93c6596d7fa380 | void OPPROTO op_decw_ECX(void)
{
ECX = (ECX & ~0xffff) | ((ECX - 1) & 0xffff);
}
| {
"code": [],
"line_no": []
} | void VAR_0 op_decw_ECX(void)
{
ECX = (ECX & ~0xffff) | ((ECX - 1) & 0xffff);
}
| [
"void VAR_0 op_decw_ECX(void)\n{",
"ECX = (ECX & ~0xffff) | ((ECX - 1) & 0xffff);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,328 | static int vnc_auth_sasl_check_access(VncState *vs)
{
const void *val;
int err;
err = sasl_getprop(vs->sasl.conn, SASL_USERNAME, &val);
if (err != SASL_OK) {
VNC_DEBUG("cannot query SASL username on connection %d (%s)\n",
err, sasl_errstring(err, NULL, NULL));
return -1;
}
if (... | false | qemu | 76655d6dece88bd00e190956e8e4285b682edcbb | static int vnc_auth_sasl_check_access(VncState *vs)
{
const void *val;
int err;
err = sasl_getprop(vs->sasl.conn, SASL_USERNAME, &val);
if (err != SASL_OK) {
VNC_DEBUG("cannot query SASL username on connection %d (%s)\n",
err, sasl_errstring(err, NULL, NULL));
return -1;
}
if (... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0)
{
const void *VAR_1;
int VAR_2;
VAR_2 = sasl_getprop(VAR_0->sasl.conn, SASL_USERNAME, &VAR_1);
if (VAR_2 != SASL_OK) {
VNC_DEBUG("cannot query SASL username on connection %d (%s)\n",
VAR_2, sasl_errstring(VAR_2, NULL, NULL));
return -1;
}
if (... | [
"static int FUNC_0(VncState *VAR_0)\n{",
"const void *VAR_1;",
"int VAR_2;",
"VAR_2 = sasl_getprop(VAR_0->sasl.conn, SASL_USERNAME, &VAR_1);",
"if (VAR_2 != SASL_OK) {",
"VNC_DEBUG(\"cannot query SASL username on connection %d (%s)\\n\",\nVAR_2, sasl_errstring(VAR_2, NULL, NULL));",
"return -1;",
"}",... | [
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
],
[
39
],
[
41
]
] |
25,329 | ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request)
{
uint8_t buf[NBD_REQUEST_SIZE];
ssize_t ret;
TRACE("Sending request to server: "
"{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64
", .type=%" PRIu32 " }",
request->from, request->len,... | false | qemu | b626b51a6721e53817155af720243f59072e424f | ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request)
{
uint8_t buf[NBD_REQUEST_SIZE];
ssize_t ret;
TRACE("Sending request to server: "
"{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64
", .type=%" PRIu32 " }",
request->from, request->len,... | {
"code": [],
"line_no": []
} | ssize_t FUNC_0(QIOChannel *ioc, struct nbd_request *request)
{
uint8_t buf[NBD_REQUEST_SIZE];
ssize_t ret;
TRACE("Sending request to server: "
"{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64
", .type=%" PRIu32 " }",
request->from, request->len, request->... | [
"ssize_t FUNC_0(QIOChannel *ioc, struct nbd_request *request)\n{",
"uint8_t buf[NBD_REQUEST_SIZE];",
"ssize_t ret;",
"TRACE(\"Sending request to server: \"\n\"{ .from = %\" PRIu64\", .len = %\" PRIu32 \", .handle = %\" PRIu64",
"\", .type=%\" PRIu32 \" }\",",
"request->from, request->len, request->handle,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
25,330 | static void json_message_process_token(JSONLexer *lexer, QString *token, JSONTokenType type, int x, int y)
{
JSONMessageParser *parser = container_of(lexer, JSONMessageParser, lexer);
QDict *dict;
if (type == JSON_OPERATOR) {
switch (qstring_get_str(token)[0]) {
case '{':
... | true | qemu | 4f2d31fbc0bfdf41feea7d1be49f4f7ffa005534 | static void json_message_process_token(JSONLexer *lexer, QString *token, JSONTokenType type, int x, int y)
{
JSONMessageParser *parser = container_of(lexer, JSONMessageParser, lexer);
QDict *dict;
if (type == JSON_OPERATOR) {
switch (qstring_get_str(token)[0]) {
case '{':
... | {
"code": [
" parser->bracket_count > MAX_NESTING ||",
" parser->brace_count > MAX_NESTING) {"
],
"line_no": [
87,
89
]
} | static void FUNC_0(JSONLexer *VAR_0, QString *VAR_1, JSONTokenType VAR_2, int VAR_3, int VAR_4)
{
JSONMessageParser *parser = container_of(VAR_0, JSONMessageParser, VAR_0);
QDict *dict;
if (VAR_2 == JSON_OPERATOR) {
switch (qstring_get_str(VAR_1)[0]) {
case '{':
parser->... | [
"static void FUNC_0(JSONLexer *VAR_0, QString *VAR_1, JSONTokenType VAR_2, int VAR_3, int VAR_4)\n{",
"JSONMessageParser *parser = container_of(VAR_0, JSONMessageParser, VAR_0);",
"QDict *dict;",
"if (VAR_2 == JSON_OPERATOR) {",
"switch (qstring_get_str(VAR_1)[0]) {",
"case '{':",
"parser->brace_count++... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
... |
25,331 | static bool gen_wsr_ccompare(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
uint32_t id = sr - CCOMPARE;
bool ret = false;
if (id < dc->config->nccompare) {
uint32_t int_bit = 1 << dc->config->timerint[id];
TCGv_i32 tmp = tcg_const_i32(id);
tcg_gen_mov_i32(cpu_SR[sr], v);
... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static bool gen_wsr_ccompare(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
uint32_t id = sr - CCOMPARE;
bool ret = false;
if (id < dc->config->nccompare) {
uint32_t int_bit = 1 << dc->config->timerint[id];
TCGv_i32 tmp = tcg_const_i32(id);
tcg_gen_mov_i32(cpu_SR[sr], v);
... | {
"code": [
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_... | static bool FUNC_0(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
uint32_t id = sr - CCOMPARE;
bool ret = false;
if (id < dc->config->nccompare) {
uint32_t int_bit = 1 << dc->config->timerint[id];
TCGv_i32 tmp = tcg_const_i32(id);
tcg_gen_mov_i32(cpu_SR[sr], v);
tcg... | [
"static bool FUNC_0(DisasContext *dc, uint32_t sr, TCGv_i32 v)\n{",
"uint32_t id = sr - CCOMPARE;",
"bool ret = false;",
"if (id < dc->config->nccompare) {",
"uint32_t int_bit = 1 << dc->config->timerint[id];",
"TCGv_i32 tmp = tcg_const_i32(id);",
"tcg_gen_mov_i32(cpu_SR[sr], v);",
"tcg_gen_andi_i32(c... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
25,332 | static void vnc_write_pixels_generic(VncState *vs, void *pixels1, int size)
{
uint8_t buf[4];
if (vs->depth == 4) {
uint32_t *pixels = pixels1;
int n, i;
n = size >> 2;
for(i = 0; i < n; i++) {
vnc_convert_pixel(vs, buf, pixels[i]);
vnc_write(vs... | true | qemu | 6cec5487990bf3f1f22b3fcb871978255e92ae0d | static void vnc_write_pixels_generic(VncState *vs, void *pixels1, int size)
{
uint8_t buf[4];
if (vs->depth == 4) {
uint32_t *pixels = pixels1;
int n, i;
n = size >> 2;
for(i = 0; i < n; i++) {
vnc_convert_pixel(vs, buf, pixels[i]);
vnc_write(vs... | {
"code": [
" if (vs->depth == 4) {",
" vnc_write(vs, buf, vs->pix_bpp);",
" } else if (vs->depth == 2) {",
" vnc_write(vs, buf, vs->pix_bpp);",
" } else if (vs->depth == 1) {",
" vnc_write(vs, buf, vs->pix_bpp);",
" if (vs->depth == 4) {",
... | static void FUNC_0(VncState *VAR_0, void *VAR_1, int VAR_2)
{
uint8_t buf[4];
if (VAR_0->depth == 4) {
uint32_t *pixels = VAR_1;
int VAR_5, VAR_5;
VAR_5 = VAR_2 >> 2;
for(VAR_5 = 0; VAR_5 < VAR_5; VAR_5++) {
vnc_convert_pixel(VAR_0, buf, pixels[VAR_5]);
... | [
"static void FUNC_0(VncState *VAR_0, void *VAR_1, int VAR_2)\n{",
"uint8_t buf[4];",
"if (VAR_0->depth == 4) {",
"uint32_t *pixels = VAR_1;",
"int VAR_5, VAR_5;",
"VAR_5 = VAR_2 >> 2;",
"for(VAR_5 = 0; VAR_5 < VAR_5; VAR_5++) {",
"vnc_convert_pixel(VAR_0, buf, pixels[VAR_5]);",
"vnc_write(VAR_0, buf... | [
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
25,333 | static int parse_tonal(DCALbrDecoder *s, int group)
{
unsigned int amp[DCA_LBR_CHANNELS_TOTAL];
unsigned int phs[DCA_LBR_CHANNELS_TOTAL];
unsigned int diff, main_amp, shift;
int sf, sf_idx, ch, main_ch, freq;
int ch_nbits = av_ceil_log2(s->nchannels_total);
// Parse subframes for this g... | true | FFmpeg | 61f70416f8542cc86c84ae6e0342ba10a35d7cba | static int parse_tonal(DCALbrDecoder *s, int group)
{
unsigned int amp[DCA_LBR_CHANNELS_TOTAL];
unsigned int phs[DCA_LBR_CHANNELS_TOTAL];
unsigned int diff, main_amp, shift;
int sf, sf_idx, ch, main_ch, freq;
int ch_nbits = av_ceil_log2(s->nchannels_total);
for (sf = 0; sf < 1 << ... | {
"code": [
" if (freq >> (5 - group) > s->nsubbands * 4 - 5) {"
],
"line_no": [
63
]
} | static int FUNC_0(DCALbrDecoder *VAR_0, int VAR_1)
{
unsigned int VAR_2[DCA_LBR_CHANNELS_TOTAL];
unsigned int VAR_3[DCA_LBR_CHANNELS_TOTAL];
unsigned int VAR_4, VAR_5, VAR_6;
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12 = av_ceil_log2(VAR_0->nchannels_total);
for (VAR_7 = 0... | [
"static int FUNC_0(DCALbrDecoder *VAR_0, int VAR_1)\n{",
"unsigned int VAR_2[DCA_LBR_CHANNELS_TOTAL];",
"unsigned int VAR_3[DCA_LBR_CHANNELS_TOTAL];",
"unsigned int VAR_4, VAR_5, VAR_6;",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12 = av_ceil_log2(VAR_0->nchannels_total);",
"for (VAR_7 = 0; V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
25,334 | static uint64_t mv88w8618_eth_read(void *opaque, hwaddr offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
case MP... | true | qemu | cf143ad35018c5fc1da6365b45acda2b34aba90a | static uint64_t mv88w8618_eth_read(void *opaque, hwaddr offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
case MP... | {
"code": [
" case MP_ETH_CTDP0 ... MP_ETH_CTDP3:",
" case MP_ETH_CTDP0 ... MP_ETH_CTDP3:"
],
"line_no": [
69,
69
]
} | static uint64_t FUNC_0(void *opaque, hwaddr offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
case MP_ETH_PHY1_BM... | [
"static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{",
"mv88w8618_eth_state *s = opaque;",
"switch (offset) {",
"case MP_ETH_SMIR:\nif (s->smir & MP_ETH_SMIR_OPCODE) {",
"switch (s->smir & MP_ETH_SMIR_ADDR) {",
"case MP_ETH_PHY1_BMSR:\nreturn MP_PHY_BMSR_LINK | MP_PHY_BMSR_AUTONEG |\nMP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21,
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[
57,
59... |
25,335 | static int make_cdt16_entry(int p1, int p2, int16_t *cdt)
{
int r, b, lo;
b = cdt[p2];
r = cdt[p1] << 11;
lo = b + r;
return (lo + (lo << 16)) << 1;
}
| true | FFmpeg | cf818be4f2f1e06bf63da3a6b55a4c3620952070 | static int make_cdt16_entry(int p1, int p2, int16_t *cdt)
{
int r, b, lo;
b = cdt[p2];
r = cdt[p1] << 11;
lo = b + r;
return (lo + (lo << 16)) << 1;
}
| {
"code": [
" return (lo + (lo << 16)) << 1;"
],
"line_no": [
15
]
} | static int FUNC_0(int VAR_0, int VAR_1, int16_t *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
VAR_4 = VAR_2[VAR_1];
VAR_3 = VAR_2[VAR_0] << 11;
VAR_5 = VAR_4 + VAR_3;
return (VAR_5 + (VAR_5 << 16)) << 1;
}
| [
"static int FUNC_0(int VAR_0, int VAR_1, int16_t *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"VAR_4 = VAR_2[VAR_1];",
"VAR_3 = VAR_2[VAR_0] << 11;",
"VAR_5 = VAR_4 + VAR_3;",
"return (VAR_5 + (VAR_5 << 16)) << 1;",
"}"
] | [
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,336 | 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 (is_async_return(data)) {
/*
* Asynchronous commands have no initial return data but th... | true | qemu | bb89c2e901b1a0c1cb6b94392cae1f98e6660ed7 | 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 (is_async_return(data)) {
if (monitor_ctrl_mode(mon) && monitor_has_error(mon)) {... | {
"code": [
" cmd->mhandler.cmd_new(mon, params, &data);"
],
"line_no": [
11
]
} | 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 (is_async_return(data)) {
if (monitor_ctrl_mode(VAR_0) && monitor_has_error(VAR_0)) {
... | [
"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 (is_async_return(data)) {",
"if (monitor_ctrl_mode(VAR_0) && monitor_has_error(VAR_0)) {",
"monitor_protocol_emitter(VAR_0, NULL);",
"}",
... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
49
],
[
51
]
] |
25,337 | static inline int64_t get_image_offset(BlockDriverState *bs, uint64_t offset,
bool write)
{
BDRVVPCState *s = bs->opaque;
uint64_t bitmap_offset, block_offset;
uint32_t pagetable_index, offset_in_block;
pagetable_index = offset / s->block_size;
offset_... | true | qemu | cfc87e00c22ab4ea0262c9771c803ed03d754001 | static inline int64_t get_image_offset(BlockDriverState *bs, uint64_t offset,
bool write)
{
BDRVVPCState *s = bs->opaque;
uint64_t bitmap_offset, block_offset;
uint32_t pagetable_index, offset_in_block;
pagetable_index = offset / s->block_size;
offset_... | {
"code": [
" bool write)",
" bdrv_pwrite_sync(bs->file, bitmap_offset, bitmap, s->bitmap_size);"
],
"line_no": [
3,
53
]
} | static inline int64_t FUNC_0(BlockDriverState *bs, uint64_t offset,
bool write)
{
BDRVVPCState *s = bs->opaque;
uint64_t bitmap_offset, block_offset;
uint32_t pagetable_index, offset_in_block;
pagetable_index = offset / s->block_size;
offset_in_block =... | [
"static inline int64_t FUNC_0(BlockDriverState *bs, uint64_t offset,\nbool write)\n{",
"BDRVVPCState *s = bs->opaque;",
"uint64_t bitmap_offset, block_offset;",
"uint32_t pagetable_index, offset_in_block;",
"pagetable_index = offset / s->block_size;",
"offset_in_block = offset % s->block_size;",
"if (pa... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[
61
]
] |
25,338 | static void openpic_tmr_write(void *opaque, hwaddr addr, uint64_t val,
unsigned len)
{
OpenPICState *opp = opaque;
int idx;
DPRINTF("%s: addr %08x <= %08x\n", __func__, addr, val);
if (addr & 0xF)
return;
idx = (addr >> 6) & 0x3;
addr = addr & 0... | true | qemu | af7e9e74c6a62a5bcd911726a9e88d28b61490e0 | static void openpic_tmr_write(void *opaque, hwaddr addr, uint64_t val,
unsigned len)
{
OpenPICState *opp = opaque;
int idx;
DPRINTF("%s: addr %08x <= %08x\n", __func__, addr, val);
if (addr & 0xF)
return;
idx = (addr >> 6) & 0x3;
addr = addr & 0... | {
"code": [
" if (addr & 0xF)",
" if (addr & 0xF)",
" if (addr & 0xF)",
" if (addr & 0xF)",
" if (addr & 0xF)",
" if (addr & 0xF)",
" if (addr & 0xF)"
],
"line_no": [
15,
15,
15,
15,
15,
15,
15
]
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,
unsigned VAR_3)
{
OpenPICState *opp = VAR_0;
int VAR_4;
DPRINTF("%s: VAR_1 %08x <= %08x\n", __func__, VAR_1, VAR_2);
if (VAR_1 & 0xF)
return;
VAR_4 = (VAR_1 >> 6) & 0x3;
VAR_1 = VAR_1... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{",
"OpenPICState *opp = VAR_0;",
"int VAR_4;",
"DPRINTF(\"%s: VAR_1 %08x <= %08x\\n\", __func__, VAR_1, VAR_2);",
"if (VAR_1 & 0xF)\nreturn;",
"VAR_4 = (VAR_1 >> 6) & 0x3;",
"VAR_1 = VAR_1 & 0x30;",
"if (VAR_1 == 0x0) {"... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43,
45,
47
],
[
49
],
[
51
],
[
53
... |
25,339 | int load_vmstate(const char *name, Error **errp)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int ret;
AioContext *aio_context;
MigrationIncomingState *mis = migration_incoming_get_current();
if (!bdrv_all_can_snapshot(&bs)) {
error_setg(errp,
... | true | qemu | aedbe19297907143f17b733a7ff0e0534377bed1 | int load_vmstate(const char *name, Error **errp)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int ret;
AioContext *aio_context;
MigrationIncomingState *mis = migration_incoming_get_current();
if (!bdrv_all_can_snapshot(&bs)) {
error_setg(errp,
... | {
"code": [
" qemu_system_reset(VMRESET_SILENT);",
" qemu_system_reset(VMRESET_SILENT);"
],
"line_no": [
119,
119
]
} | int FUNC_0(const char *VAR_0, Error **VAR_1)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int VAR_2;
AioContext *aio_context;
MigrationIncomingState *mis = migration_incoming_get_current();
if (!bdrv_all_can_snapshot(&bs)) {
error_setg(VAR_1,
... | [
"int FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"BlockDriverState *bs, *bs_vm_state;",
"QEMUSnapshotInfo sn;",
"QEMUFile *f;",
"int VAR_2;",
"AioContext *aio_context;",
"MigrationIncomingState *mis = migration_incoming_get_current();",
"if (!bdrv_all_can_snapshot(&bs)) {",
"error_setg(VAR_1,\n\"D... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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
],
[
47
],
[
49
... |
25,340 | CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,
void (*init)(struct CharDriverState *s),
Error **errp)
{
CharDriver *cd;
CharDriverState *chr;
GSList *i;
if (qemu_opts_id(opts) == NULL) {
error_setg(errp, "... | true | qemu | dc2c4eca89ec5ee7b7a4c2563c991a14a7c5ee84 | CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,
void (*init)(struct CharDriverState *s),
Error **errp)
{
CharDriver *cd;
CharDriverState *chr;
GSList *i;
if (qemu_opts_id(opts) == NULL) {
error_setg(errp, "... | {
"code": [
" const char *bid = NULL;",
" if (error_is_set(errp)) {",
" goto qapi_out;"
],
"line_no": [
73,
93,
95
]
} | CharDriverState *FUNC_0(QemuOpts *opts,
void (*init)(struct CharDriverState *s),
Error **errp)
{
CharDriver *cd;
CharDriverState *chr;
GSList *i;
if (qemu_opts_id(opts) == NULL) {
error_setg(errp, "chardev: no VAR_... | [
"CharDriverState *FUNC_0(QemuOpts *opts,\nvoid (*init)(struct CharDriverState *s),\nError **errp)\n{",
"CharDriver *cd;",
"CharDriverState *chr;",
"GSList *i;",
"if (qemu_opts_id(opts) == NULL) {",
"error_setg(errp, \"chardev: no VAR_0 specified\");",
"goto err;",
"}",
"if (qemu_opt_get(opts, \"back... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
25,341 | void ff_estimate_p_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
uint8_t *pix, *ppix;
int sum, mx, my, dmin;
int varc; ///< the variance of the block (sum of squared (p[y][x]-average))
int vard; ... | true | FFmpeg | e708afd3c026a9eb547dab07781320a7e2564312 | void ff_estimate_p_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
uint8_t *pix, *ppix;
int sum, mx, my, dmin;
int varc;
int vard;
int P[10][2];
const int shift= 1+s->quarter_sample;
... | {
"code": [
" varc = s->dsp.pix_norm1(pix, s->linesize) - (((unsigned)(sum*sum))>>8) + 500;",
" int mean= (sum+128)>>8;"
],
"line_no": [
61,
385
]
} | void FUNC_0(MpegEncContext * VAR_0,
int VAR_1, int VAR_2)
{
MotionEstContext * const c= &VAR_0->me;
uint8_t *pix, *ppix;
int VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7;
int VAR_8;
int VAR_9[10][2];
const int VAR_10= 1+VAR_0->quarter... | [
"void FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"uint8_t *pix, *ppix;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7;",
"int VAR_8;",
"int VAR_9[10][2];",
"const int VAR_10= 1+VAR_0->quarter_sample;",
"int VAR_11=0;",
"Picture * const pi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
25,342 | static int init_directory(BDRVVVFATState* s,const char* dirname)
{
bootsector_t* bootsector=(bootsector_t*)&(s->first_sectors[(s->first_sectors_number-1)*0x200]);
unsigned int i;
unsigned int cluster;
memset(&(s->first_sectors[0]),0,0x40*0x200);
/* TODO: if FAT32, this is probably wrong */... | true | qemu | 0b7a4a97119eefc2c39c5f34602df9e1cc0f493b | static int init_directory(BDRVVVFATState* s,const char* dirname)
{
bootsector_t* bootsector=(bootsector_t*)&(s->first_sectors[(s->first_sectors_number-1)*0x200]);
unsigned int i;
unsigned int cluster;
memset(&(s->first_sectors[0]),0,0x40*0x200);
s->sectors_per_fat=0xfc;
s->secto... | {
"code": [
" s->sectors_per_fat=0xfc;"
],
"line_no": [
19
]
} | static int FUNC_0(BDRVVVFATState* VAR_0,const char* VAR_1)
{
bootsector_t* bootsector=(bootsector_t*)&(VAR_0->first_sectors[(VAR_0->first_sectors_number-1)*0x200]);
unsigned int VAR_2;
unsigned int VAR_3;
memset(&(VAR_0->first_sectors[0]),0,0x40*0x200);
VAR_0->sectors_per_fat=0xfc;
... | [
"static int FUNC_0(BDRVVVFATState* VAR_0,const char* VAR_1)\n{",
"bootsector_t* bootsector=(bootsector_t*)&(VAR_0->first_sectors[(VAR_0->first_sectors_number-1)*0x200]);",
"unsigned int VAR_2;",
"unsigned int VAR_3;",
"memset(&(VAR_0->first_sectors[0]),0,0x40*0x200);",
"VAR_0->sectors_per_fat=0xfc;",
"V... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
59
],
[... |
25,343 | static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[8], int qp[2] ) {
int i;
for( i = 0; i < 8; i++, pix += stride) {
int index_a;
int alpha;
int beta;
int qp_index;
int bS_index = i;
if( bS[bS_index] == 0 ) {
... | false | FFmpeg | 082cf97106e2e94a969877d4f8c05c1e526acf54 | static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[8], int qp[2] ) {
int i;
for( i = 0; i < 8; i++, pix += stride) {
int index_a;
int alpha;
int beta;
int qp_index;
int bS_index = i;
if( bS[bS_index] == 0 ) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[8], int VAR_4[2] ) {
int VAR_5;
for( VAR_5 = 0; VAR_5 < 8; VAR_5++, VAR_1 += VAR_2) {
int VAR_6;
int VAR_7;
int VAR_8;
int VAR_9;
int VAR_10 = VAR_5;
if( VAR_3[VAR_10] == ... | [
"static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[8], int VAR_4[2] ) {",
"int VAR_5;",
"for( VAR_5 = 0; VAR_5 < 8; VAR_5++, VAR_1 += VAR_2) {",
"int VAR_6;",
"int VAR_7;",
"int VAR_8;",
"int VAR_9;",
"int VAR_10 = VAR_5;",
"if( VAR_3[VAR_10] == 0 ) {",
"continue;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
25,345 | int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
{
int ret;
AVStream *st;
ff_read_frame_flush(s);
if(flags & AVSEEK_FLAG_BYTE)
return seek_frame_byte(s, stream_index, timestamp, flags);
if(stream_index < 0){
stream_index= av_find_def... | false | FFmpeg | 0041cdba98d5b636a8d912352dd3d8ca72bba4ce | int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
{
int ret;
AVStream *st;
ff_read_frame_flush(s);
if(flags & AVSEEK_FLAG_BYTE)
return seek_frame_byte(s, stream_index, timestamp, flags);
if(stream_index < 0){
stream_index= av_find_def... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)
{
int VAR_4;
AVStream *st;
ff_read_frame_flush(VAR_0);
if(VAR_3 & AVSEEK_FLAG_BYTE)
return seek_frame_byte(VAR_0, VAR_1, VAR_2, VAR_3);
if(VAR_1 < 0){
VAR_1= av_find_default_stream_index(VAR_0);
... | [
"int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{",
"int VAR_4;",
"AVStream *st;",
"ff_read_frame_flush(VAR_0);",
"if(VAR_3 & AVSEEK_FLAG_BYTE)\nreturn seek_frame_byte(VAR_0, VAR_1, VAR_2, VAR_3);",
"if(VAR_1 < 0){",
"VAR_1= av_find_default_stream_index(VAR_0);",
"if(VAR_1 < ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25,
27
],
[
31
],
[
35
],
[
37
],
[
43,
45
],
[
47,
49
],
[
51
],
[
53
],
[
55
],
[
59,
61
],
... |
25,346 | static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
const char *in, int x1, int y1, int x2, int y2)
{
char c, *param, buffer[128], tmp[128];
int len, tag_close, sptr = 1, line_start = 1, an = 0, end = 0;
SrtStack stack[16];
stack[0].tag[0]... | false | FFmpeg | b9a07e787bd09036b96370bb87fdf841fe380f9f | static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
const char *in, int x1, int y1, int x2, int y2)
{
char c, *param, buffer[128], tmp[128];
int len, tag_close, sptr = 1, line_start = 1, an = 0, end = 0;
SrtStack stack[16];
stack[0].tag[0]... | {
"code": [],
"line_no": []
} | static const char *FUNC_0(AVCodecContext *VAR_0, char *VAR_1, char *VAR_2,
const char *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7)
{
char VAR_8, *VAR_9, VAR_10[128], VAR_11[128];
int VAR_12, VAR_13, VAR_14 = 1, VAR_15 = 1, VAR_16 = 0, VAR_17 = 0;
SrtStack stack[16];... | [
"static const char *FUNC_0(AVCodecContext *VAR_0, char *VAR_1, char *VAR_2,\nconst char *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{",
"char VAR_8, *VAR_9, VAR_10[128], VAR_11[128];",
"int VAR_12, VAR_13, VAR_14 = 1, VAR_15 = 1, VAR_16 = 0, VAR_17 = 0;",
"SrtStack stack[16];",
"stack[0].tag[0] = 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
25,349 | int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
{
AVMetadata *m= *pm;
AVMetadataTag *tag= av_metadata_get(m, key, NULL, AV_METADATA_MATCH_CASE);
if(!m)
m=*pm= av_mallocz(sizeof(*m));
if(tag){
av_free(tag->value);
av_free(tag->key);
*t... | false | FFmpeg | a181981eb49fc20d1a701fcfebda5cec70def295 | int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
{
AVMetadata *m= *pm;
AVMetadataTag *tag= av_metadata_get(m, key, NULL, AV_METADATA_MATCH_CASE);
if(!m)
m=*pm= av_mallocz(sizeof(*m));
if(tag){
av_free(tag->value);
av_free(tag->key);
*t... | {
"code": [],
"line_no": []
} | int FUNC_0(AVMetadata **VAR_0, const char *VAR_1, const char *VAR_2)
{
AVMetadata *m= *VAR_0;
AVMetadataTag *tag= av_metadata_get(m, VAR_1, NULL, AV_METADATA_MATCH_CASE);
if(!m)
m=*VAR_0= av_mallocz(sizeof(*m));
if(tag){
av_free(tag->VAR_2);
av_free(tag->VAR_1);
... | [
"int FUNC_0(AVMetadata **VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"AVMetadata *m= *VAR_0;",
"AVMetadataTag *tag= av_metadata_get(m, VAR_1, NULL, AV_METADATA_MATCH_CASE);",
"if(!m)\nm=*VAR_0= av_mallocz(sizeof(*m));",
"if(tag){",
"av_free(tag->VAR_2);",
"av_free(tag->VAR_1);",
"*tag= m->elems[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
25,350 | static void zynq_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filena... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void zynq_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filena... | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
ObjectClass *cpu_oc;
ARMCPU *cpu;
MemoryRegion *address_space_... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"ObjectClass *cpu_oc;",
"ARMCPU *cpu;",
"MemoryRegion *address_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
... |
25,351 | static void tcg_out_brcond(TCGContext *s, TCGMemOp ext, TCGCond c, TCGArg a,
TCGArg b, bool b_const, int label)
{
TCGLabel *l = &s->labels[label];
intptr_t offset;
bool need_cmp;
if (b_const && b == 0 && (c == TCG_COND_EQ || c == TCG_COND_NE)) {
need_cmp = fal... | false | qemu | bec1631100323fac0900aea71043d5c4e22fc2fa | static void tcg_out_brcond(TCGContext *s, TCGMemOp ext, TCGCond c, TCGArg a,
TCGArg b, bool b_const, int label)
{
TCGLabel *l = &s->labels[label];
intptr_t offset;
bool need_cmp;
if (b_const && b == 0 && (c == TCG_COND_EQ || c == TCG_COND_NE)) {
need_cmp = fal... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGMemOp VAR_1, TCGCond VAR_2, TCGArg VAR_3,
TCGArg VAR_4, bool VAR_5, int VAR_6)
{
TCGLabel *l = &VAR_0->labels[VAR_6];
intptr_t offset;
bool need_cmp;
if (VAR_5 && VAR_4 == 0 && (VAR_2 == TCG_COND_EQ || VAR_2 == TCG_COND_NE)) {
... | [
"static void FUNC_0(TCGContext *VAR_0, TCGMemOp VAR_1, TCGCond VAR_2, TCGArg VAR_3,\nTCGArg VAR_4, bool VAR_5, int VAR_6)\n{",
"TCGLabel *l = &VAR_0->labels[VAR_6];",
"intptr_t offset;",
"bool need_cmp;",
"if (VAR_5 && VAR_4 == 0 && (VAR_2 == TCG_COND_EQ || VAR_2 == TCG_COND_NE)) {",
"need_cmp = false;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[... |
25,352 | static target_ulong h_vio_signal(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode,
target_ulong *args)
{
target_ulong reg = args[0];
target_ulong mode = args[1];
VIOsPAPRDevice *dev = spapr_vio_find_by_reg(spapr->vio_bus, reg... | false | qemu | 3954d33ab7f82f5a5fa0ced231849920265a5fec | static target_ulong h_vio_signal(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode,
target_ulong *args)
{
target_ulong reg = args[0];
target_ulong mode = args[1];
VIOsPAPRDevice *dev = spapr_vio_find_by_reg(spapr->vio_bus, reg... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode,
target_ulong *args)
{
target_ulong reg = args[0];
target_ulong mode = args[1];
VIOsPAPRDevice *dev = spapr_vio_find_by_reg(spapr->vio_bus, reg);
... | [
"static target_ulong FUNC_0(CPUState *env, sPAPREnvironment *spapr,\ntarget_ulong opcode,\ntarget_ulong *args)\n{",
"target_ulong reg = args[0];",
"target_ulong mode = args[1];",
"VIOsPAPRDevice *dev = spapr_vio_find_by_reg(spapr->vio_bus, reg);",
"VIOsPAPRDeviceInfo *info;",
"if (!dev) {",
"return H_PA... | [
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
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
]
] |
25,354 | static TCGArg do_constant_folding(int op, TCGArg x, TCGArg y)
{
TCGArg res = do_constant_folding_2(op, x, y);
#if TCG_TARGET_REG_BITS == 64
if (op_bits(op) == 32) {
res &= 0xffffffff;
}
#endif
return res;
}
| false | qemu | 25c4d9cc845fb58f624dae8c0f690e20c70e7a1d | static TCGArg do_constant_folding(int op, TCGArg x, TCGArg y)
{
TCGArg res = do_constant_folding_2(op, x, y);
#if TCG_TARGET_REG_BITS == 64
if (op_bits(op) == 32) {
res &= 0xffffffff;
}
#endif
return res;
}
| {
"code": [],
"line_no": []
} | static TCGArg FUNC_0(int op, TCGArg x, TCGArg y)
{
TCGArg res = do_constant_folding_2(op, x, y);
#if TCG_TARGET_REG_BITS == 64
if (op_bits(op) == 32) {
res &= 0xffffffff;
}
#endif
return res;
}
| [
"static TCGArg FUNC_0(int op, TCGArg x, TCGArg y)\n{",
"TCGArg res = do_constant_folding_2(op, x, y);",
"#if TCG_TARGET_REG_BITS == 64\nif (op_bits(op) == 32) {",
"res &= 0xffffffff;",
"}",
"#endif\nreturn res;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
]
] |
25,355 | static int64_t seek_to_sector(BDRVParallelsState *s, int64_t sector_num)
{
uint32_t index, offset;
index = sector_num / s->tracks;
offset = sector_num % s->tracks;
/* not allocated */
if ((index >= s->catalog_size) || (s->catalog_bitmap[index] == 0))
return -1;
return (uint64... | false | qemu | 369f7de9d57e4dd2f312255fc12271d5749c0a4e | static int64_t seek_to_sector(BDRVParallelsState *s, int64_t sector_num)
{
uint32_t index, offset;
index = sector_num / s->tracks;
offset = sector_num % s->tracks;
if ((index >= s->catalog_size) || (s->catalog_bitmap[index] == 0))
return -1;
return (uint64_t)s->catalog_bitma... | {
"code": [],
"line_no": []
} | static int64_t FUNC_0(BDRVParallelsState *s, int64_t sector_num)
{
uint32_t index, offset;
index = sector_num / s->tracks;
offset = sector_num % s->tracks;
if ((index >= s->catalog_size) || (s->catalog_bitmap[index] == 0))
return -1;
return (uint64_t)s->catalog_bitmap[index]... | [
"static int64_t FUNC_0(BDRVParallelsState *s, int64_t sector_num)\n{",
"uint32_t index, offset;",
"index = sector_num / s->tracks;",
"offset = sector_num % s->tracks;",
"if ((index >= s->catalog_size) || (s->catalog_bitmap[index] == 0))\nreturn -1;",
"return (uint64_t)s->catalog_bitmap[index] * s->off_mul... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
17,
19
],
[
21
],
[
23
]
] |
25,356 | int load_image_targphys(const char *filename,
target_phys_addr_t addr, uint64_t max_sz)
{
int size;
size = get_image_size(filename);
if (size > max_sz) {
return -1;
}
if (size > 0) {
rom_add_file_fixed(filename, addr, -1);
}
return size;
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | int load_image_targphys(const char *filename,
target_phys_addr_t addr, uint64_t max_sz)
{
int size;
size = get_image_size(filename);
if (size > max_sz) {
return -1;
}
if (size > 0) {
rom_add_file_fixed(filename, addr, -1);
}
return size;
... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0,
target_phys_addr_t VAR_1, uint64_t VAR_2)
{
int VAR_3;
VAR_3 = get_image_size(VAR_0);
if (VAR_3 > VAR_2) {
return -1;
}
if (VAR_3 > 0) {
rom_add_file_fixed(VAR_0, VAR_1, -1);
}
return VAR_3;
}
| [
"int FUNC_0(const char *VAR_0,\ntarget_phys_addr_t VAR_1, uint64_t VAR_2)\n{",
"int VAR_3;",
"VAR_3 = get_image_size(VAR_0);",
"if (VAR_3 > VAR_2) {",
"return -1;",
"}",
"if (VAR_3 > 0) {",
"rom_add_file_fixed(VAR_0, VAR_1, -1);",
"}",
"return VAR_3;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
25,358 | static uint64_t vfio_bar_read(void *opaque,
hwaddr addr, unsigned size)
{
VFIOBAR *bar = opaque;
union {
uint8_t byte;
uint16_t word;
uint32_t dword;
uint64_t qword;
} buf;
uint64_t data = 0;
if (pread(bar->fd, &buf, size, ba... | false | qemu | 82ca891283a08cddd659b534592fe00f2159bc74 | static uint64_t vfio_bar_read(void *opaque,
hwaddr addr, unsigned size)
{
VFIOBAR *bar = opaque;
union {
uint8_t byte;
uint16_t word;
uint32_t dword;
uint64_t qword;
} buf;
uint64_t data = 0;
if (pread(bar->fd, &buf, size, ba... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque,
hwaddr addr, unsigned size)
{
VFIOBAR *bar = opaque;
union {
uint8_t byte;
uint16_t word;
uint32_t dword;
uint64_t qword;
} VAR_0;
uint64_t data = 0;
if (pread(bar->fd, &VAR_0, size, bar->... | [
"static uint64_t FUNC_0(void *opaque,\nhwaddr addr, unsigned size)\n{",
"VFIOBAR *bar = opaque;",
"union {",
"uint8_t byte;",
"uint16_t word;",
"uint32_t dword;",
"uint64_t qword;",
"} VAR_0;",
"uint64_t data = 0;",
"if (pread(bar->fd, &VAR_0, size, bar->fd_offset + addr) != size) {",
"error_rep... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
... |
25,359 | static int l2tpv3_can_send(void *opaque)
{
NetL2TPV3State *s = opaque;
return qemu_can_send_packet(&s->nc);
}
| false | qemu | 95b1416ae93106923f733941e52dfe55c4318643 | static int l2tpv3_can_send(void *opaque)
{
NetL2TPV3State *s = opaque;
return qemu_can_send_packet(&s->nc);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
NetL2TPV3State *s = VAR_0;
return qemu_can_send_packet(&s->nc);
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"NetL2TPV3State *s = VAR_0;",
"return qemu_can_send_packet(&s->nc);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
25,360 | static void extract_common_blockdev_options(QemuOpts *opts, int *bdrv_flags,
const char **throttling_group, ThrottleConfig *throttle_cfg,
BlockdevDetectZeroesOptions *detect_zeroes, Error **errp)
{
const char *discard;
Error *local_error = NULL;
const char *aio;
if (bdrv_flags) {
... | false | qemu | d5851089a8a77d5c23e8d5fffb5b99265009ba62 | static void extract_common_blockdev_options(QemuOpts *opts, int *bdrv_flags,
const char **throttling_group, ThrottleConfig *throttle_cfg,
BlockdevDetectZeroesOptions *detect_zeroes, Error **errp)
{
const char *discard;
Error *local_error = NULL;
const char *aio;
if (bdrv_flags) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QemuOpts *VAR_0, int *VAR_1,
const char **VAR_2, ThrottleConfig *VAR_3,
BlockdevDetectZeroesOptions *VAR_4, Error **VAR_5)
{
const char *VAR_6;
Error *local_error = NULL;
const char *VAR_7;
if (VAR_1) {
if (!qemu_opt_get_bool(VAR_0, "read-only", false)) {
... | [
"static void FUNC_0(QemuOpts *VAR_0, int *VAR_1,\nconst char **VAR_2, ThrottleConfig *VAR_3,\nBlockdevDetectZeroesOptions *VAR_4, Error **VAR_5)\n{",
"const char *VAR_6;",
"Error *local_error = NULL;",
"const char *VAR_7;",
"if (VAR_1) {",
"if (!qemu_opt_get_bool(VAR_0, \"read-only\", false)) {",
"*VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
25,361 | static inline void tcg_out_dat_rI(TCGContext *s, int cond, int opc, TCGArg dst,
TCGArg lhs, TCGArg rhs, int rhs_is_const)
{
/* Emit either the reg,imm or reg,reg form of a data-processing insn.
* rhs must satisfy the "rI" constraint.
*/
if (rhs_is_const) {
... | false | qemu | eabb7b91b36b202b4dac2df2d59d698e3aff197a | static inline void tcg_out_dat_rI(TCGContext *s, int cond, int opc, TCGArg dst,
TCGArg lhs, TCGArg rhs, int rhs_is_const)
{
if (rhs_is_const) {
int rot = encode_imm(rhs);
assert(rot >= 0);
tcg_out_dat_imm(s, cond, opc, dst, lhs, rotl(rhs, rot... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, TCGArg VAR_3,
TCGArg VAR_4, TCGArg VAR_5, int VAR_6)
{
if (VAR_6) {
int VAR_7 = encode_imm(VAR_5);
assert(VAR_7 >= 0);
tcg_out_dat_imm(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, rotl(... | [
"static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, TCGArg VAR_3,\nTCGArg VAR_4, TCGArg VAR_5, int VAR_6)\n{",
"if (VAR_6) {",
"int VAR_7 = encode_imm(VAR_5);",
"assert(VAR_7 >= 0);",
"tcg_out_dat_imm(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, rotl(VAR_5, VAR_7) | (VAR_7 << 7));",
"} else {",
"t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
25,362 | static always_inline void gen_bcond (DisasContext *ctx,
TCGCond cond,
int ra, int32_t disp16, int mask)
{
int l1, l2;
l1 = gen_new_label();
l2 = gen_new_label();
if (likely(ra != 31)) {
if (mask) {
T... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static always_inline void gen_bcond (DisasContext *ctx,
TCGCond cond,
int ra, int32_t disp16, int mask)
{
int l1, l2;
l1 = gen_new_label();
l2 = gen_new_label();
if (likely(ra != 31)) {
if (mask) {
T... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0 (DisasContext *ctx,
TCGCond cond,
int ra, int32_t disp16, int mask)
{
int VAR_0, VAR_1;
VAR_0 = gen_new_label();
VAR_1 = gen_new_label();
if (likely(ra != 31)) {
if (mask) {
... | [
"static always_inline void FUNC_0 (DisasContext *ctx,\nTCGCond cond,\nint ra, int32_t disp16, int mask)\n{",
"int VAR_0, VAR_1;",
"VAR_0 = gen_new_label();",
"VAR_1 = gen_new_label();",
"if (likely(ra != 31)) {",
"if (mask) {",
"TCGv tmp = tcg_temp_new(TCG_TYPE_I64);",
"tcg_gen_andi_i64(tmp, cpu_ir[ra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
25,364 | void qemu_aio_set_event_notifier(EventNotifier *notifier,
EventNotifierHandler *io_read,
AioFlushEventNotifierHandler *io_flush)
{
qemu_aio_set_fd_handler(event_notifier_get_fd(notifier),
(IOHandler *)io_read, NULL,
... | false | qemu | 82cbbdc6a0958b49c77639a60906e30d02e6bb7b | void qemu_aio_set_event_notifier(EventNotifier *notifier,
EventNotifierHandler *io_read,
AioFlushEventNotifierHandler *io_flush)
{
qemu_aio_set_fd_handler(event_notifier_get_fd(notifier),
(IOHandler *)io_read, NULL,
... | {
"code": [],
"line_no": []
} | void FUNC_0(EventNotifier *VAR_0,
EventNotifierHandler *VAR_1,
AioFlushEventNotifierHandler *VAR_2)
{
qemu_aio_set_fd_handler(event_notifier_get_fd(VAR_0),
(IOHandler *)VAR_1, NULL,
(AioFl... | [
"void FUNC_0(EventNotifier *VAR_0,\nEventNotifierHandler *VAR_1,\nAioFlushEventNotifierHandler *VAR_2)\n{",
"qemu_aio_set_fd_handler(event_notifier_get_fd(VAR_0),\n(IOHandler *)VAR_1, NULL,\n(AioFlushHandler *)VAR_2, VAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15
]
] |
25,365 | uint32_t HELPER(lpebr)(CPUS390XState *env, uint32_t f1, uint32_t f2)
{
float32 v1;
float32 v2 = env->fregs[f2].d;
v1 = float32_abs(v2);
env->fregs[f1].d = v1;
return set_cc_nz_f32(v1);
}
| false | qemu | 5d7fd045cafeac1831c1999cb9e1251b7906c6b2 | uint32_t HELPER(lpebr)(CPUS390XState *env, uint32_t f1, uint32_t f2)
{
float32 v1;
float32 v2 = env->fregs[f2].d;
v1 = float32_abs(v2);
env->fregs[f1].d = v1;
return set_cc_nz_f32(v1);
}
| {
"code": [],
"line_no": []
} | uint32_t FUNC_0(lpebr)(CPUS390XState *env, uint32_t f1, uint32_t f2)
{
float32 v1;
float32 v2 = env->fregs[f2].d;
v1 = float32_abs(v2);
env->fregs[f1].d = v1;
return set_cc_nz_f32(v1);
}
| [
"uint32_t FUNC_0(lpebr)(CPUS390XState *env, uint32_t f1, uint32_t f2)\n{",
"float32 v1;",
"float32 v2 = env->fregs[f2].d;",
"v1 = float32_abs(v2);",
"env->fregs[f1].d = v1;",
"return set_cc_nz_f32(v1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,366 | uint64_t helper_fsel (uint64_t arg1, uint64_t arg2, uint64_t arg3)
{
CPU_DoubleU farg1;
farg1.ll = arg1;
if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d))
return arg2;
else
return arg3;
}
| false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | uint64_t helper_fsel (uint64_t arg1, uint64_t arg2, uint64_t arg3)
{
CPU_DoubleU farg1;
farg1.ll = arg1;
if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d))
return arg2;
else
return arg3;
}
| {
"code": [],
"line_no": []
} | uint64_t FUNC_0 (uint64_t arg1, uint64_t arg2, uint64_t arg3)
{
CPU_DoubleU farg1;
farg1.ll = arg1;
if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d))
return arg2;
else
return arg3;
}
| [
"uint64_t FUNC_0 (uint64_t arg1, uint64_t arg2, uint64_t arg3)\n{",
"CPU_DoubleU farg1;",
"farg1.ll = arg1;",
"if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d))\nreturn arg2;",
"else\nreturn arg3;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
17,
19
],
[
21
]
] |
25,367 | static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed)
{
int dir;
size_t len = 0, pktlen = 0;
#ifdef DEBUG_PACKET
const char *str = NULL;
#endif
int pid;
int ret;
int i;
USBDevice *dev;
struct ohci_td td;
uint32_t addr;
int flag_r;
int completion;
... | false | qemu | 079d0b7f1eedcc634c371fe05b617fdc55c8b762 | static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed)
{
int dir;
size_t len = 0, pktlen = 0;
#ifdef DEBUG_PACKET
const char *str = NULL;
#endif
int pid;
int ret;
int i;
USBDevice *dev;
struct ohci_td td;
uint32_t addr;
int flag_r;
int completion;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(OHCIState *VAR_0, struct ohci_ed *VAR_1)
{
int VAR_2;
size_t len = 0, pktlen = 0;
#ifdef DEBUG_PACKET
const char *str = NULL;
#endif
int VAR_3;
int VAR_4;
int VAR_5;
USBDevice *dev;
struct ohci_td VAR_6;
uint32_t addr;
int VAR_7;
int VAR_8;
... | [
"static int FUNC_0(OHCIState *VAR_0, struct ohci_ed *VAR_1)\n{",
"int VAR_2;",
"size_t len = 0, pktlen = 0;",
"#ifdef DEBUG_PACKET\nconst char *str = NULL;",
"#endif\nint VAR_3;",
"int VAR_4;",
"int VAR_5;",
"USBDevice *dev;",
"struct ohci_td VAR_6;",
"uint32_t addr;",
"int VAR_7;",
"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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
... |
25,369 | static int txd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt) {
GetByteContext gb;
AVFrame * const p = data;
unsigned int version, w, h, d3d_format, depth, stride, flags;
unsigned int y, v;
uint8_t *ptr;
uint32_t *pal;
int... | false | FFmpeg | daea3209693f28328ca553fb33fdf8fc2ab42044 | static int txd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt) {
GetByteContext gb;
AVFrame * const p = data;
unsigned int version, w, h, d3d_format, depth, stride, flags;
unsigned int y, v;
uint8_t *ptr;
uint32_t *pal;
int... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3) {
GetByteContext gb;
AVFrame * const p = VAR_1;
unsigned int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
unsigned int VAR_11, VAR_12;
uint8_t *ptr;
uint32_t *pal;
int ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {",
"GetByteContext gb;",
"AVFrame * const p = VAR_1;",
"unsigned int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"unsigned int VAR_11, VAR_12;",
"uint8_t *ptr;",
"uint32_t *pal;",
"int VAR_13;",
"bytestream... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[... |
25,371 | static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
{
al_data *ad = ctx->priv_data;
int error=0;
const char *error_msg;
ALCint nb_samples;
/* Get number of samples available */
alcGetIntegerv(ad->device, ALC_CAPTURE_SAMPLES, (ALCsizei) sizeof(ALCint), &nb_samples);
if (erro... | false | FFmpeg | bf8bcd3b2b51c4d3f0a157e80a8c96c8542217b0 | static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
{
al_data *ad = ctx->priv_data;
int error=0;
const char *error_msg;
ALCint nb_samples;
alcGetIntegerv(ad->device, ALC_CAPTURE_SAMPLES, (ALCsizei) sizeof(ALCint), &nb_samples);
if (error = al_get_error(ad->device, &error_m... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext* VAR_0, AVPacket *VAR_1)
{
al_data *ad = VAR_0->priv_data;
int VAR_2=0;
const char *VAR_3;
ALCint nb_samples;
alcGetIntegerv(ad->device, ALC_CAPTURE_SAMPLES, (ALCsizei) sizeof(ALCint), &nb_samples);
if (VAR_2 = al_get_error(ad->device, &VAR_3)) go... | [
"static int FUNC_0(AVFormatContext* VAR_0, AVPacket *VAR_1)\n{",
"al_data *ad = VAR_0->priv_data;",
"int VAR_2=0;",
"const char *VAR_3;",
"ALCint nb_samples;",
"alcGetIntegerv(ad->device, ALC_CAPTURE_SAMPLES, (ALCsizei) sizeof(ALCint), &nb_samples);",
"if (VAR_2 = al_get_error(ad->device, &VAR_3)) goto ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
25
],
[
27
],
[
33
],
[
35
],
[
39
],
[
41,
45,
47
],
[
49,
51
],
[
53
],
[
55
]
] |
25,372 | static int read_header(FFV1Context *f){
uint8_t state[CONTEXT_SIZE];
int i, j, context_count;
RangeCoder * const c= &f->slice_context[0]->c;
memset(state, 128, sizeof(state));
if(f->version < 2){
f->version= get_symbol(c, state, 0);
f->ac= f->avctx->coder_type= get_symbol(... | false | FFmpeg | d7a4c43f1830a23f8acd71bea567f7908a99a539 | static int read_header(FFV1Context *f){
uint8_t state[CONTEXT_SIZE];
int i, j, context_count;
RangeCoder * const c= &f->slice_context[0]->c;
memset(state, 128, sizeof(state));
if(f->version < 2){
f->version= get_symbol(c, state, 0);
f->ac= f->avctx->coder_type= get_symbol(... | {
"code": [],
"line_no": []
} | static int FUNC_0(FFV1Context *VAR_0){
uint8_t state[CONTEXT_SIZE];
int VAR_1, VAR_2, VAR_3;
RangeCoder * const c= &VAR_0->slice_context[0]->c;
memset(state, 128, sizeof(state));
if(VAR_0->version < 2){
VAR_0->version= get_symbol(c, state, 0);
VAR_0->ac= VAR_0->avctx->code... | [
"static int FUNC_0(FFV1Context *VAR_0){",
"uint8_t state[CONTEXT_SIZE];",
"int VAR_1, VAR_2, VAR_3;",
"RangeCoder * const c= &VAR_0->slice_context[0]->c;",
"memset(state, 128, sizeof(state));",
"if(VAR_0->version < 2){",
"VAR_0->version= get_symbol(c, state, 0);",
"VAR_0->ac= VAR_0->avctx->coder_type=... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
25,373 | static void avc_loopfilter_cb_or_cr_intra_edge_hor_msa(uint8_t *data_cb_or_cr,
uint8_t alpha_in,
uint8_t beta_in,
uint32_t img_width)
{
v16u8 alph... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | static void avc_loopfilter_cb_or_cr_intra_edge_hor_msa(uint8_t *data_cb_or_cr,
uint8_t alpha_in,
uint8_t beta_in,
uint32_t img_width)
{
v16u8 alph... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
uint8_t VAR_1,
uint8_t VAR_2,
uint32_t VAR_3)
{
v16u8 alpha, beta;
v16u8 is_less_than;
v8i16 p0_or_q0... | [
"static void FUNC_0(uint8_t *VAR_0,\nuint8_t VAR_1,\nuint8_t VAR_2,\nuint32_t VAR_3)\n{",
"v16u8 alpha, beta;",
"v16u8 is_less_than;",
"v8i16 p0_or_q0, q0_or_p0;",
"v16u8 p1_or_q1_org, p0_or_q0_org, q0_or_p0_org, q1_or_p1_org;",
"v16i8 zero = { 0 };",
"v16u8 p0_asub_q0, p1_asub_p0, q1_asub_q0;",
"v16u... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[... |
25,374 | static void gen_cli(DisasContext *ctx)
{
/* Cache line invalidate: privileged and treated as no-op */
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
#endif
... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_cli(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
#endif
}
| {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
#endif
}
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"#endif\n}"
] | [
0,
1,
1,
1,
0,
0,
1
] | [
[
1,
3
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
]
] |
25,376 | void palette8tobgr15(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
{
unsigned i;
for(i=0; i<num_pixels; i++)
((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]);
}
| true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | void palette8tobgr15(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
{
unsigned i;
for(i=0; i<num_pixels; i++)
((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]);
}
| {
"code": [
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"void palette8tobgr15(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)",
"\tunsigned i;",
"\tunsigned i;",
"\tuns... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)
{
unsigned VAR_4;
for(VAR_4=0; VAR_4<VAR_2; VAR_4++)
((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]);
}
| [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned VAR_2, const uint8_t *VAR_3)\n{",
"unsigned VAR_4;",
"for(VAR_4=0; VAR_4<VAR_2; VAR_4++)",
"((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]);",
"}"
] | [
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
25,377 | static int decode_interrupt_cb(void *ctx)
{
return received_nb_signals > transcode_init_done;
}
| true | FFmpeg | 76d8c77430e9e0110623705bfb54d922cc2ac3ea | static int decode_interrupt_cb(void *ctx)
{
return received_nb_signals > transcode_init_done;
}
| {
"code": [
" return received_nb_signals > transcode_init_done;"
],
"line_no": [
5
]
} | static int FUNC_0(void *VAR_0)
{
return received_nb_signals > transcode_init_done;
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"return received_nb_signals > transcode_init_done;",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,378 | static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset)
{
MXFContext *mxf = arg;
switch (tag) {
case 0x1901:
mxf->packages_count = avio_rb32(pb);
mxf->packages_refs = av_calloc(mxf->packages_count, sizeof(UID));
if (!m... | true | FFmpeg | 0834f2056c7f1a0c09129802a003465e0ebcc9b8 | static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset)
{
MXFContext *mxf = arg;
switch (tag) {
case 0x1901:
mxf->packages_count = avio_rb32(pb);
mxf->packages_refs = av_calloc(mxf->packages_count, sizeof(UID));
if (!m... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4, int64_t VAR_5)
{
MXFContext *mxf = VAR_0;
switch (VAR_2) {
case 0x1901:
mxf->packages_count = avio_rb32(VAR_1);
mxf->packages_refs = av_calloc(mxf->packages_count, sizeof(UID));
if (!mxf->pa... | [
"static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4, int64_t VAR_5)\n{",
"MXFContext *mxf = VAR_0;",
"switch (VAR_2) {",
"case 0x1901:\nmxf->packages_count = avio_rb32(VAR_1);",
"mxf->packages_refs = av_calloc(mxf->packages_count, sizeof(UID));",
"if (!mxf->packages_refs)\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
14
],
[
16
],
[
18,
20
],
[
22
],
[
24
],
[
26
],
[
28
],
[
30
],
[
32
]
] |
25,379 | void qmp_cont(Error **errp)
{
Error *local_err = NULL;
if (runstate_check(RUN_STATE_INMIGRATE)) {
error_set(errp, QERR_MIGRATION_EXPECTED);
return;
} else if (runstate_check(RUN_STATE_INTERNAL_ERROR) ||
runstate_check(RUN_STATE_SHUTDOWN)) {
error_set(errp, QE... | true | qemu | 1e9981465f05a0f103d7e09afd975c9c0ff6d132 | void qmp_cont(Error **errp)
{
Error *local_err = NULL;
if (runstate_check(RUN_STATE_INMIGRATE)) {
error_set(errp, QERR_MIGRATION_EXPECTED);
return;
} else if (runstate_check(RUN_STATE_INTERNAL_ERROR) ||
runstate_check(RUN_STATE_SHUTDOWN)) {
error_set(errp, QE... | {
"code": [
" if (runstate_check(RUN_STATE_INMIGRATE)) {",
" error_set(errp, QERR_MIGRATION_EXPECTED);",
" } else if (runstate_check(RUN_STATE_INTERNAL_ERROR) ||",
" vm_start();"
],
"line_no": [
9,
11,
15,
45
]
} | void FUNC_0(Error **VAR_0)
{
Error *local_err = NULL;
if (runstate_check(RUN_STATE_INMIGRATE)) {
error_set(VAR_0, QERR_MIGRATION_EXPECTED);
return;
} else if (runstate_check(RUN_STATE_INTERNAL_ERROR) ||
runstate_check(RUN_STATE_SHUTDOWN)) {
error_set(VAR_0, Q... | [
"void FUNC_0(Error **VAR_0)\n{",
"Error *local_err = NULL;",
"if (runstate_check(RUN_STATE_INMIGRATE)) {",
"error_set(VAR_0, QERR_MIGRATION_EXPECTED);",
"return;",
"} else if (runstate_check(RUN_STATE_INTERNAL_ERROR) ||",
"runstate_check(RUN_STATE_SHUTDOWN)) {",
"error_set(VAR_0, QERR_RESET_REQUIRED);... | [
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.