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 |
|---|---|---|---|---|---|---|---|---|---|---|
27,249 | static int ehci_state_waitlisthead(EHCIState *ehci, int async)
{
EHCIqh qh;
int i = 0;
int again = 0;
uint32_t entry = ehci->asynclistaddr;
/* set reclamation flag at start event (4.8.6) */
if (async) {
ehci_set_usbsts(ehci, USBSTS_REC);
}
ehci_queues_rip_unused(eh... | false | qemu | 9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0 | static int ehci_state_waitlisthead(EHCIState *ehci, int async)
{
EHCIqh qh;
int i = 0;
int again = 0;
uint32_t entry = ehci->asynclistaddr;
if (async) {
ehci_set_usbsts(ehci, USBSTS_REC);
}
ehci_queues_rip_unused(ehci, async, 0);
for(i = 0; i < MAX_QH... | {
"code": [],
"line_no": []
} | static int FUNC_0(EHCIState *VAR_0, int VAR_1)
{
EHCIqh qh;
int VAR_2 = 0;
int VAR_3 = 0;
uint32_t entry = VAR_0->asynclistaddr;
if (VAR_1) {
ehci_set_usbsts(VAR_0, USBSTS_REC);
}
ehci_queues_rip_unused(VAR_0, VAR_1, 0);
for(VAR_2 = 0; VAR_2 < MAX_QH;... | [
"static int FUNC_0(EHCIState *VAR_0, int VAR_1)\n{",
"EHCIqh qh;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"uint32_t entry = VAR_0->asynclistaddr;",
"if (VAR_1) {",
"ehci_set_usbsts(VAR_0, USBSTS_REC);",
"}",
"ehci_queues_rip_unused(VAR_0, VAR_1, 0);",
"for(VAR_2 = 0; VAR_2 < MAX_QH; VAR_2++) {",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
27,250 | static void gen_rdhwr(DisasContext *ctx, int rt, int rd)
{
TCGv t0;
#if !defined(CONFIG_USER_ONLY)
/* The Linux kernel will emulate rdhwr if it's not supported natively.
Therefore only check the ISA in system mode. */
check_insn(ctx, ISA_MIPS32R2);
#endif
t0 = tcg_temp_new();
sw... | false | qemu | b00c72180c36510bf9b124e190bd520e3b7e1358 | static void gen_rdhwr(DisasContext *ctx, int rt, int rd)
{
TCGv t0;
#if !defined(CONFIG_USER_ONLY)
check_insn(ctx, ISA_MIPS32R2);
#endif
t0 = tcg_temp_new();
switch (rd) {
case 0:
gen_helper_rdhwr_cpunum(t0, cpu_env);
gen_store_gpr(t0, rt);
break;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)
{
TCGv t0;
#if !defined(CONFIG_USER_ONLY)
check_insn(VAR_0, ISA_MIPS32R2);
#endif
t0 = tcg_temp_new();
switch (VAR_2) {
case 0:
gen_helper_rdhwr_cpunum(t0, cpu_env);
gen_store_gpr(t0, VAR_1);
... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{",
"TCGv t0;",
"#if !defined(CONFIG_USER_ONLY)\ncheck_insn(VAR_0, ISA_MIPS32R2);",
"#endif\nt0 = tcg_temp_new();",
"switch (VAR_2) {",
"case 0:\ngen_helper_rdhwr_cpunum(t0, cpu_env);",
"gen_store_gpr(t0, VAR_1);",
"break;",
"case 1:\ng... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
[
55... |
27,251 | Aml *aml_shiftright(Aml *arg1, Aml *count)
{
Aml *var = aml_opcode(0x7A /* ShiftRightOp */);
aml_append(var, arg1);
aml_append(var, count);
build_append_byte(var->buf, 0x00); /* NullNameOp */
return var;
}
| false | qemu | 439e2a6e10ed7f5da819bf7dcaa54b8cfdbeab0d | Aml *aml_shiftright(Aml *arg1, Aml *count)
{
Aml *var = aml_opcode(0x7A );
aml_append(var, arg1);
aml_append(var, count);
build_append_byte(var->buf, 0x00);
return var;
}
| {
"code": [],
"line_no": []
} | Aml *FUNC_0(Aml *arg1, Aml *count)
{
Aml *var = aml_opcode(0x7A );
aml_append(var, arg1);
aml_append(var, count);
build_append_byte(var->buf, 0x00);
return var;
}
| [
"Aml *FUNC_0(Aml *arg1, Aml *count)\n{",
"Aml *var = aml_opcode(0x7A );",
"aml_append(var, arg1);",
"aml_append(var, count);",
"build_append_byte(var->buf, 0x00);",
"return var;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
27,252 | static ssize_t handle_aiocb_write_zeroes(RawPosixAIOData *aiocb)
{
int ret = -EOPNOTSUPP;
BDRVRawState *s = aiocb->bs->opaque;
if (s->has_write_zeroes == 0) {
return -ENOTSUP;
}
if (aiocb->aio_type & QEMU_AIO_BLKDEV) {
#ifdef BLKZEROOUT
do {
uint64_t range[2... | false | qemu | 37cc9f7f684ed035da63274daca1594c7ee16213 | static ssize_t handle_aiocb_write_zeroes(RawPosixAIOData *aiocb)
{
int ret = -EOPNOTSUPP;
BDRVRawState *s = aiocb->bs->opaque;
if (s->has_write_zeroes == 0) {
return -ENOTSUP;
}
if (aiocb->aio_type & QEMU_AIO_BLKDEV) {
#ifdef BLKZEROOUT
do {
uint64_t range[2... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(RawPosixAIOData *aiocb)
{
int VAR_0 = -EOPNOTSUPP;
BDRVRawState *s = aiocb->bs->opaque;
if (s->has_write_zeroes == 0) {
return -ENOTSUP;
}
if (aiocb->aio_type & QEMU_AIO_BLKDEV) {
#ifdef BLKZEROOUT
do {
uint64_t range[2] = { aiocb->aio_... | [
"static ssize_t FUNC_0(RawPosixAIOData *aiocb)\n{",
"int VAR_0 = -EOPNOTSUPP;",
"BDRVRawState *s = aiocb->bs->opaque;",
"if (s->has_write_zeroes == 0) {",
"return -ENOTSUP;",
"}",
"if (aiocb->aio_type & QEMU_AIO_BLKDEV) {",
"#ifdef BLKZEROOUT\ndo {",
"uint64_t range[2] = { aiocb->aio_offset, aiocb->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
... |
27,253 | int bdrv_open(BlockDriverState *bs, const char *filename, QDict *options,
int flags, BlockDriver *drv, Error **errp)
{
int ret;
/* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */
char tmp_filename[PATH_MAX + 1];
BlockDriverState *file = NULL;
QDict *file_optio... | false | qemu | 9fd3171af9d7de2777bf38ce79c2fe3dd6f9a49e | int bdrv_open(BlockDriverState *bs, const char *filename, QDict *options,
int flags, BlockDriver *drv, Error **errp)
{
int ret;
char tmp_filename[PATH_MAX + 1];
BlockDriverState *file = NULL;
QDict *file_options = NULL;
const char *drvname;
Error *local_err = NULL;
... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, QDict *VAR_2,
int VAR_3, BlockDriver *VAR_4, Error **VAR_5)
{
int VAR_6;
char VAR_7[PATH_MAX + 1];
BlockDriverState *file = NULL;
QDict *file_options = NULL;
const char *VAR_8;
Error *local_err = NULL;
... | [
"int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, QDict *VAR_2,\nint VAR_3, BlockDriver *VAR_4, Error **VAR_5)\n{",
"int VAR_6;",
"char VAR_7[PATH_MAX + 1];",
"BlockDriverState *file = NULL;",
"QDict *file_options = NULL;",
"const char *VAR_8;",
"Error *local_err = NULL;",
"if (VAR_2 == NULL) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
... |
27,255 | static void filter(struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int dst_stride[3], int src_stride[3], int width, int height){
int x, y, i;
for(i=0; i<3; i++){
p->frame->data[i]= src[i];
p->frame->linesize[i]= src_stride[i];
}
p->avctx_enc->me_cmp=
p->avctx_enc->m... | false | FFmpeg | 3a2b9911bffeffc3fc0541df3b4f6d492e122714 | static void filter(struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int dst_stride[3], int src_stride[3], int width, int height){
int x, y, i;
for(i=0; i<3; i++){
p->frame->data[i]= src[i];
p->frame->linesize[i]= src_stride[i];
}
p->avctx_enc->me_cmp=
p->avctx_enc->m... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct vf_priv_s *VAR_0, uint8_t *VAR_1[3], uint8_t *VAR_2[3], int VAR_3[3], int VAR_4[3], int VAR_5, int VAR_6){
int VAR_7, VAR_8, VAR_9;
for(VAR_9=0; VAR_9<3; VAR_9++){
VAR_0->frame->data[VAR_9]= VAR_2[VAR_9];
VAR_0->frame->linesize[VAR_9]= VAR_4[VAR_9];
}
... | [
"static void FUNC_0(struct vf_priv_s *VAR_0, uint8_t *VAR_1[3], uint8_t *VAR_2[3], int VAR_3[3], int VAR_4[3], int VAR_5, int VAR_6){",
"int VAR_7, VAR_8, VAR_9;",
"for(VAR_9=0; VAR_9<3; VAR_9++){",
"VAR_0->frame->data[VAR_9]= VAR_2[VAR_9];",
"VAR_0->frame->linesize[VAR_9]= VAR_4[VAR_9];",
"}",
"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
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49... |
27,258 | static void test_qga_config(gconstpointer data)
{
GError *error = NULL;
char *cwd, *cmd, *out, *err, *str, **strv, **argv = NULL;
char *env[2];
int status;
gsize n;
GKeyFile *kf;
cwd = g_get_current_dir();
cmd = g_strdup_printf("%s%cqemu-ga -D",
cwd,... | true | qemu | 1e2713384c58037ad44f716c31c08daca18862c5 | static void test_qga_config(gconstpointer data)
{
GError *error = NULL;
char *cwd, *cmd, *out, *err, *str, **strv, **argv = NULL;
char *env[2];
int status;
gsize n;
GKeyFile *kf;
cwd = g_get_current_dir();
cmd = g_strdup_printf("%s%cqemu-ga -D",
cwd,... | {
"code": [],
"line_no": []
} | static void FUNC_0(gconstpointer VAR_0)
{
GError *error = NULL;
char *VAR_1, *VAR_2, *VAR_3, *VAR_4, *VAR_5, **VAR_6, **VAR_7 = NULL;
char *VAR_8[2];
int VAR_9;
gsize n;
GKeyFile *kf;
VAR_1 = g_get_current_dir();
VAR_2 = g_strdup_printf("%s%cqemu-ga -D",
... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"GError *error = NULL;",
"char *VAR_1, *VAR_2, *VAR_3, *VAR_4, *VAR_5, **VAR_6, **VAR_7 = NULL;",
"char *VAR_8[2];",
"int VAR_9;",
"gsize n;",
"GKeyFile *kf;",
"VAR_1 = g_get_current_dir();",
"VAR_2 = g_strdup_printf(\"%s%cqemu-ga -D\",\nVAR_1, G_DIR_SEP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
26
],
[
29
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
27,260 | static int apc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0)
return AVERROR(EIO);
pkt->stream_index = 0;
return 0;
} | true | FFmpeg | 7effbee66cf457c62f795d9b9ed3a1110b364b89 | static int apc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0)
return AVERROR(EIO);
pkt->stream_index = 0;
return 0;
} | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
if (av_get_packet(VAR_0->pb, VAR_1, MAX_READ_SIZE) <= 0)
return AVERROR(EIO);
VAR_1->stream_index = 0;
return 0;
} | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"if (av_get_packet(VAR_0->pb, VAR_1, MAX_READ_SIZE) <= 0)\nreturn AVERROR(EIO);",
"VAR_1->stream_index = 0;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
10
],
[
12
],
[
14
]
] |
27,262 | void helper_fitoq(CPUSPARCState *env, int32_t src)
{
/* No possible exceptions converting int to long double. */
QT0 = int32_to_float128(src, &env->fp_status);
}
| false | qemu | 7385aed20db5d83979f683b9d0048674411e963c | void helper_fitoq(CPUSPARCState *env, int32_t src)
{
QT0 = int32_to_float128(src, &env->fp_status);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUSPARCState *VAR_0, int32_t VAR_1)
{
QT0 = int32_to_float128(VAR_1, &VAR_0->fp_status);
}
| [
"void FUNC_0(CPUSPARCState *VAR_0, int32_t VAR_1)\n{",
"QT0 = int32_to_float128(VAR_1, &VAR_0->fp_status);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
]
] |
27,263 | int gdbserver_start(const char *device)
{
GDBState *s;
char gdbstub_device_name[128];
CharDriverState *chr = NULL;
CharDriverState *mon_chr;
if (!device)
return -1;
if (strcmp(device, "none") != 0) {
if (strstart(device, "tcp:", NULL)) {
/* enforce require... | false | qemu | d0d7708ba29cbcc343364a46bff981e0ff88366f | int gdbserver_start(const char *device)
{
GDBState *s;
char gdbstub_device_name[128];
CharDriverState *chr = NULL;
CharDriverState *mon_chr;
if (!device)
return -1;
if (strcmp(device, "none") != 0) {
if (strstart(device, "tcp:", NULL)) {
snpr... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0)
{
GDBState *s;
char VAR_1[128];
CharDriverState *chr = NULL;
CharDriverState *mon_chr;
if (!VAR_0)
return -1;
if (strcmp(VAR_0, "none") != 0) {
if (strstart(VAR_0, "tcp:", NULL)) {
snprintf(VAR_1, sizeof(VAR_1),
... | [
"int FUNC_0(const char *VAR_0)\n{",
"GDBState *s;",
"char VAR_1[128];",
"CharDriverState *chr = NULL;",
"CharDriverState *mon_chr;",
"if (!VAR_0)\nreturn -1;",
"if (strcmp(VAR_0, \"none\") != 0) {",
"if (strstart(VAR_0, \"tcp:\", NULL)) {",
"snprintf(VAR_1, sizeof(VAR_1),\n\"%s,nowait,nodelay,server... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
27,265 | net_checksum_add_iov(const struct iovec *iov, const unsigned int iov_cnt,
uint32_t iov_off, uint32_t size)
{
size_t iovec_off, buf_off;
unsigned int i;
uint32_t res = 0;
uint32_t seq = 0;
iovec_off = 0;
buf_off = 0;
for (i = 0; i < iov_cnt && size; i++) {
... | false | qemu | eb700029c7836798046191d62d595363d92c84d4 | net_checksum_add_iov(const struct iovec *iov, const unsigned int iov_cnt,
uint32_t iov_off, uint32_t size)
{
size_t iovec_off, buf_off;
unsigned int i;
uint32_t res = 0;
uint32_t seq = 0;
iovec_off = 0;
buf_off = 0;
for (i = 0; i < iov_cnt && size; i++) {
... | {
"code": [],
"line_no": []
} | FUNC_0(const struct iovec *VAR_0, const unsigned int VAR_1,
uint32_t VAR_2, uint32_t VAR_3)
{
size_t iovec_off, buf_off;
unsigned int VAR_4;
uint32_t res = 0;
uint32_t seq = 0;
iovec_off = 0;
buf_off = 0;
for (VAR_4 = 0; VAR_4 < VAR_1 && VAR_3; VAR_4++) {
... | [
"FUNC_0(const struct iovec *VAR_0, const unsigned int VAR_1,\nuint32_t VAR_2, uint32_t VAR_3)\n{",
"size_t iovec_off, buf_off;",
"unsigned int VAR_4;",
"uint32_t res = 0;",
"uint32_t seq = 0;",
"iovec_off = 0;",
"buf_off = 0;",
"for (VAR_4 = 0; VAR_4 < VAR_1 && VAR_3; VAR_4++) {",
"if (VAR_2 < (iove... | [
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
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
27,267 | static inline int get_phys_addr(CPUARMState *env, target_ulong address,
int access_type, int is_user,
hwaddr *phys_ptr, int *prot,
target_ulong *page_size)
{
/* This is not entirely correct as get_phys_addr() can al... | false | qemu | 54bf36ed351c526cde0c853079f9ff1ab7e2ff89 | static inline int get_phys_addr(CPUARMState *env, target_ulong address,
int access_type, int is_user,
hwaddr *phys_ptr, int *prot,
target_ulong *page_size)
{
uint32_t sctlr = A32_BANKED_CURRENT_REG_GET(env... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1,
int VAR_2, int VAR_3,
hwaddr *VAR_4, int *VAR_5,
target_ulong *VAR_6)
{
uint32_t sctlr = A32_BANKED_CURRENT_REG_GET(VAR_0, sctlr);
... | [
"static inline int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1,\nint VAR_2, int VAR_3,\nhwaddr *VAR_4, int *VAR_5,\ntarget_ulong *VAR_6)\n{",
"uint32_t sctlr = A32_BANKED_CURRENT_REG_GET(VAR_0, sctlr);",
"if (VAR_1 < 0x02000000)\nVAR_1 += VAR_0->cp15.c13_fcse;",
"if ((sctlr & SCTLR_M) == 0) {",
"*VAR_4 = ... | [
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
],
[
23,
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51,
53
],
[
55
],
[
57,
59
],
[
61
],
[... |
27,268 | DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, 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, unit_id;
i... | false | qemu | 1960966d1b57628f730b66fe33cd2005846092e0 | DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, 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, unit_id;
i... | {
"code": [],
"line_no": []
} | DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi, 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;
int VAR_8, ... | [
"DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi, int *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 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
27,270 | static void test_visitor_in_struct(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_in_struct(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
TestStruct *p = NULL;
Visitor *v;
v = visitor_input_test_init(VAR_0, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);
g_assert_... | [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"TestStruct *p = NULL;",
"Visitor *v;",
"v = visitor_input_test_init(VAR_0, \"{ 'integer': -42, 'boolean': true, 'string': 'foo' }\");",
"visit_type_TestStruct(v, NULL, &p, &error_abort);",
"g_assert_cmpint(p->integer, ==, -42);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
]
] |
27,271 | static int msix_add_config(struct PCIDevice *pdev, unsigned short nentries,
unsigned bar_nr, unsigned bar_size)
{
int config_offset;
uint8_t *config;
uint32_t new_size;
if (nentries < 1 || nentries > PCI_MSIX_FLAGS_QSIZE + 1)
return -EINVAL;
if (bar_size ... | false | qemu | 393a98924eb00df76231384b86652e1d5f964d67 | static int msix_add_config(struct PCIDevice *pdev, unsigned short nentries,
unsigned bar_nr, unsigned bar_size)
{
int config_offset;
uint8_t *config;
uint32_t new_size;
if (nentries < 1 || nentries > PCI_MSIX_FLAGS_QSIZE + 1)
return -EINVAL;
if (bar_size ... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct PCIDevice *VAR_0, unsigned short VAR_1,
unsigned VAR_2, unsigned VAR_3)
{
int VAR_4;
uint8_t *config;
uint32_t new_size;
if (VAR_1 < 1 || VAR_1 > PCI_MSIX_FLAGS_QSIZE + 1)
return -EINVAL;
if (VAR_3 > 0x80000000)
return -E... | [
"static int FUNC_0(struct PCIDevice *VAR_0, unsigned short VAR_1,\nunsigned VAR_2, unsigned VAR_3)\n{",
"int VAR_4;",
"uint8_t *config;",
"uint32_t new_size;",
"if (VAR_1 < 1 || VAR_1 > PCI_MSIX_FLAGS_QSIZE + 1)\nreturn -EINVAL;",
"if (VAR_3 > 0x80000000)\nreturn -ENOSPC;",
"if (!VAR_3) {",
"new_size ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
51,
53
],
[... |
27,273 | void qmp_memsave(int64_t addr, int64_t size, const char *filename,
bool has_cpu, int64_t cpu_index, Error **errp)
{
FILE *f;
uint32_t l;
CPUState *cpu;
uint8_t buf[1024];
if (!has_cpu) {
cpu_index = 0;
}
cpu = qemu_get_cpu(cpu_index);
if (cpu == NU... | false | qemu | 2f4d0f5990ede025720e41fa473029e9ca85e8b8 | void qmp_memsave(int64_t addr, int64_t size, const char *filename,
bool has_cpu, int64_t cpu_index, Error **errp)
{
FILE *f;
uint32_t l;
CPUState *cpu;
uint8_t buf[1024];
if (!has_cpu) {
cpu_index = 0;
}
cpu = qemu_get_cpu(cpu_index);
if (cpu == NU... | {
"code": [],
"line_no": []
} | void FUNC_0(int64_t VAR_0, int64_t VAR_1, const char *VAR_2,
bool VAR_3, int64_t VAR_4, Error **VAR_5)
{
FILE *f;
uint32_t l;
CPUState *cpu;
uint8_t buf[1024];
if (!VAR_3) {
VAR_4 = 0;
}
cpu = qemu_get_cpu(VAR_4);
if (cpu == NULL) {
error_... | [
"void FUNC_0(int64_t VAR_0, int64_t VAR_1, const char *VAR_2,\nbool VAR_3, int64_t VAR_4, Error **VAR_5)\n{",
"FILE *f;",
"uint32_t l;",
"CPUState *cpu;",
"uint8_t buf[1024];",
"if (!VAR_3) {",
"VAR_4 = 0;",
"}",
"cpu = qemu_get_cpu(VAR_4);",
"if (cpu == NULL) {",
"error_set(VAR_5, QERR_INVALID_... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
51
... |
27,274 | static void xen_platform_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
k->init = xen_platform_initfn;
k->vendor_id = PCI_VENDOR_ID_XEN;
k->device_id = PCI_DEVICE_ID_XEN_PLATFORM;
k->class_id = PCI_CLASS_O... | false | qemu | 4098d49db549e20a2d87ca3cced28ace6e5864bf | static void xen_platform_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
k->init = xen_platform_initfn;
k->vendor_id = PCI_VENDOR_ID_XEN;
k->device_id = PCI_DEVICE_ID_XEN_PLATFORM;
k->class_id = PCI_CLASS_O... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);
k->init = xen_platform_initfn;
k->vendor_id = PCI_VENDOR_ID_XEN;
k->device_id = PCI_DEVICE_ID_XEN_PLATFORM;
k->class_id = PCI_CLASS_OTHERS << 8 | 0x8... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);",
"k->init = xen_platform_initfn;",
"k->vendor_id = PCI_VENDOR_ID_XEN;",
"k->device_id = PCI_DEVICE_ID_XEN_PLATFORM;",
"k->class_id = PCI_CLASS_OTHERS << 8 | ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
27,277 | int net_init_slirp(QemuOpts *opts,
Monitor *mon,
const char *name,
VLANState *vlan)
{
struct slirp_config_str *config;
const char *vhost;
const char *vhostname;
const char *vdhcp_start;
const char *vnamesrv;
const char *tftp_expo... | false | qemu | 62112d181ca33fea976100c4335dfc3e2f727e6c | int net_init_slirp(QemuOpts *opts,
Monitor *mon,
const char *name,
VLANState *vlan)
{
struct slirp_config_str *config;
const char *vhost;
const char *vhostname;
const char *vdhcp_start;
const char *vnamesrv;
const char *tftp_expo... | {
"code": [],
"line_no": []
} | int FUNC_0(QemuOpts *VAR_0,
Monitor *VAR_1,
const char *VAR_2,
VLANState *VAR_3)
{
struct slirp_config_str *VAR_4;
const char *VAR_5;
const char *VAR_6;
const char *VAR_7;
const char *VAR_8;
const char *VAR_9;
const char *VA... | [
"int FUNC_0(QemuOpts *VAR_0,\nMonitor *VAR_1,\nconst char *VAR_2,\nVLANState *VAR_3)\n{",
"struct slirp_config_str *VAR_4;",
"const char *VAR_5;",
"const char *VAR_6;",
"const char *VAR_7;",
"const char *VAR_8;",
"const char *VAR_9;",
"const char *VAR_10;",
"const char *VAR_11;",
"const char *VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
27,278 | static QOSState *qvirtio_9p_start(void)
{
const char *cmd = "-fsdev local,id=fsdev0,security_model=none,path=%s "
"-device virtio-9p-pci,fsdev=fsdev0,mount_tag=%s";
test_share = g_strdup("/tmp/qtest.XXXXXX");
g_assert_nonnull(mkdtemp(test_share));
return qtest_pc_boot(cmd... | false | qemu | 30ca440eec9fe1d7eec5a48addac656438778278 | static QOSState *qvirtio_9p_start(void)
{
const char *cmd = "-fsdev local,id=fsdev0,security_model=none,path=%s "
"-device virtio-9p-pci,fsdev=fsdev0,mount_tag=%s";
test_share = g_strdup("/tmp/qtest.XXXXXX");
g_assert_nonnull(mkdtemp(test_share));
return qtest_pc_boot(cmd... | {
"code": [],
"line_no": []
} | static QOSState *FUNC_0(void)
{
const char *VAR_0 = "-fsdev local,id=fsdev0,security_model=none,path=%s "
"-device virtio-9p-pci,fsdev=fsdev0,mount_tag=%s";
test_share = g_strdup("/tmp/qtest.XXXXXX");
g_assert_nonnull(mkdtemp(test_share));
return qtest_pc_boot(VAR_0, test... | [
"static QOSState *FUNC_0(void)\n{",
"const char *VAR_0 = \"-fsdev local,id=fsdev0,security_model=none,path=%s \"\n\"-device virtio-9p-pci,fsdev=fsdev0,mount_tag=%s\";",
"test_share = g_strdup(\"/tmp/qtest.XXXXXX\");",
"g_assert_nonnull(mkdtemp(test_share));",
"return qtest_pc_boot(VAR_0, test_share, mount_t... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
27,279 | static void test_read_without_media(void)
{
uint8_t ret;
ret = send_read_command();
g_assert(ret == 0);
}
| true | qemu | 6f442fe83821a06c5408056c7879e83a74f2ff32 | static void test_read_without_media(void)
{
uint8_t ret;
ret = send_read_command();
g_assert(ret == 0);
}
| {
"code": [
" ret = send_read_command();"
],
"line_no": [
9
]
} | static void FUNC_0(void)
{
uint8_t ret;
ret = send_read_command();
g_assert(ret == 0);
}
| [
"static void FUNC_0(void)\n{",
"uint8_t ret;",
"ret = send_read_command();",
"g_assert(ret == 0);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
27,280 | static void set_acpi_power_state(IPMIBmcSim *ibs,
uint8_t *cmd, unsigned int cmd_len,
uint8_t *rsp, unsigned int *rsp_len,
unsigned int max_rsp_len)
{
IPMI_CHECK_CMD_LEN(4);
ibs->acpi_power_state[0] = cmd[2];
ibs->acpi_powe... | true | qemu | 4f298a4b2957b7833bc607c951ca27c458d98d88 | static void set_acpi_power_state(IPMIBmcSim *ibs,
uint8_t *cmd, unsigned int cmd_len,
uint8_t *rsp, unsigned int *rsp_len,
unsigned int max_rsp_len)
{
IPMI_CHECK_CMD_LEN(4);
ibs->acpi_power_state[0] = cmd[2];
ibs->acpi_powe... | {
"code": [
" IPMI_CHECK_CMD_LEN(4);",
" IPMI_CHECK_CMD_LEN(4);",
" IPMI_CHECK_CMD_LEN(4);"
],
"line_no": [
11,
11,
11
]
} | static void FUNC_0(IPMIBmcSim *VAR_0,
uint8_t *VAR_1, unsigned int VAR_2,
uint8_t *VAR_3, unsigned int *VAR_4,
unsigned int VAR_5)
{
IPMI_CHECK_CMD_LEN(4);
VAR_0->acpi_power_state[0] = VAR_1[2];
VAR_0->acpi_power_state[1] =... | [
"static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{",
"IPMI_CHECK_CMD_LEN(4);",
"VAR_0->acpi_power_state[0] = VAR_1[2];",
"VAR_0->acpi_power_state[1] = VAR_1[3];",
"}"
] | [
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
27,281 | static void usb_uas_unrealize(USBDevice *dev, Error **errp)
{
UASDevice *uas = USB_UAS(dev);
qemu_bh_delete(uas->status_bh);
} | true | qemu | cd7bc87868d534f95e928cad98e2a52df7695771 | static void usb_uas_unrealize(USBDevice *dev, Error **errp)
{
UASDevice *uas = USB_UAS(dev);
qemu_bh_delete(uas->status_bh);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(USBDevice *VAR_0, Error **VAR_1)
{
UASDevice *uas = USB_UAS(VAR_0);
qemu_bh_delete(uas->status_bh);
} | [
"static void FUNC_0(USBDevice *VAR_0, Error **VAR_1)\n{",
"UASDevice *uas = USB_UAS(VAR_0);",
"qemu_bh_delete(uas->status_bh);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
]
] |
27,282 | static int sdp_parse(AVFormatContext *s, const char *content)
{
const char *p;
int letter;
/* Some SDP lines, particularly for Realmedia or ASF RTSP streams,
* contain long SDP lines containing complete ASF Headers (several
* kB) or arrays of MDPR (RM stream descriptor) headers plus
* ... | false | FFmpeg | c89658008705d949c319df3fa6f400c481ad73e1 | static int sdp_parse(AVFormatContext *s, const char *content)
{
const char *p;
int letter;
char buf[16384], *q;
SDPParseState sdp_parse_state, *s1 = &sdp_parse_state;
memset(s1, 0, sizeof(SDPParseState));
p = content;
for(;;) {
skip_spaces(&p);
l... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)
{
const char *VAR_2;
int VAR_3;
char VAR_4[16384], *VAR_5;
SDPParseState sdp_parse_state, *s1 = &sdp_parse_state;
memset(s1, 0, sizeof(SDPParseState));
VAR_2 = VAR_1;
for(;;) {
skip_spaces(&VAR_... | [
"static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)\n{",
"const char *VAR_2;",
"int VAR_3;",
"char VAR_4[16384], *VAR_5;",
"SDPParseState sdp_parse_state, *s1 = &sdp_parse_state;",
"memset(s1, 0, sizeof(SDPParseState));",
"VAR_2 = VAR_1;",
"for(;;) {",
"skip_spaces(&VAR_2);",
"VAR_3 = *V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
53
],
[
55
],
[
57,
59
],
[
61
],
... |
27,283 | static void flush_change(H264Context *h)
{
h->outputed_poc = h->next_outputed_poc = INT_MIN;
h->prev_interlaced_frame = 1;
idr(h);
h->prev_frame_num = -1;
if (h->s.current_picture_ptr)
h->s.current_picture_ptr->f.reference = 0;
h->s.first_field = 0;
memset(h->ref_list[0], 0,... | true | FFmpeg | aaa7d2fafcc375d8cdef25a289008821c9c2fbaa | static void flush_change(H264Context *h)
{
h->outputed_poc = h->next_outputed_poc = INT_MIN;
h->prev_interlaced_frame = 1;
idr(h);
h->prev_frame_num = -1;
if (h->s.current_picture_ptr)
h->s.current_picture_ptr->f.reference = 0;
h->s.first_field = 0;
memset(h->ref_list[0], 0,... | {
"code": [
" if (h->s.current_picture_ptr)"
],
"line_no": [
13
]
} | static void FUNC_0(H264Context *VAR_0)
{
VAR_0->outputed_poc = VAR_0->next_outputed_poc = INT_MIN;
VAR_0->prev_interlaced_frame = 1;
idr(VAR_0);
VAR_0->prev_frame_num = -1;
if (VAR_0->s.current_picture_ptr)
VAR_0->s.current_picture_ptr->f.reference = 0;
VAR_0->s.first_field = 0;
... | [
"static void FUNC_0(H264Context *VAR_0)\n{",
"VAR_0->outputed_poc = VAR_0->next_outputed_poc = INT_MIN;",
"VAR_0->prev_interlaced_frame = 1;",
"idr(VAR_0);",
"VAR_0->prev_frame_num = -1;",
"if (VAR_0->s.current_picture_ptr)\nVAR_0->s.current_picture_ptr->f.reference = 0;",
"VAR_0->s.first_field = 0;",
... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
27,284 | int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
const void *in,
void *out,
size_t len,
Error **errp)
{
QCryptoCipherNettle *ctx = cipher->opaque;
switch (cipher->mode) {
case QCRYPTO_CIPHE... | true | qemu | 3a661f1eabf7e8db66e28489884d9b54aacb94ea | int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
const void *in,
void *out,
size_t len,
Error **errp)
{
QCryptoCipherNettle *ctx = cipher->opaque;
switch (cipher->mode) {
case QCRYPTO_CIPHE... | {
"code": [
" ctx->alg_decrypt, ctx->niv, ctx->iv,"
],
"line_no": [
33
]
} | int FUNC_0(QCryptoCipher *VAR_0,
const void *VAR_1,
void *VAR_2,
size_t VAR_3,
Error **VAR_4)
{
QCryptoCipherNettle *ctx = VAR_0->opaque;
switch (VAR_0->mode) {
case QCRYPTO_CIPHER_MODE_ECB:... | [
"int FUNC_0(QCryptoCipher *VAR_0,\nconst void *VAR_1,\nvoid *VAR_2,\nsize_t VAR_3,\nError **VAR_4)\n{",
"QCryptoCipherNettle *ctx = VAR_0->opaque;",
"switch (VAR_0->mode) {",
"case QCRYPTO_CIPHER_MODE_ECB:\nctx->alg_decrypt(ctx->ctx_decrypt ? ctx->ctx_decrypt : ctx->ctx_encrypt,\nVAR_3, VAR_2, VAR_1);",
"br... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
17
],
[
19,
21,
23
],
[
25
],
[
29,
31,
33,
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
]
] |
27,285 | static void ahci_migrate(AHCIQState *from, AHCIQState *to, const char *uri)
{
QOSState *tmp = to->parent;
QPCIDevice *dev = to->dev;
char *uri_local = NULL;
if (uri == NULL) {
uri_local = g_strdup_printf("%s%s", "unix:", mig_socket);
uri = uri_local;
}
/* context wil... | true | qemu | e7c8526b2a1482a9b14319fda9f8ad4bfda5b958 | static void ahci_migrate(AHCIQState *from, AHCIQState *to, const char *uri)
{
QOSState *tmp = to->parent;
QPCIDevice *dev = to->dev;
char *uri_local = NULL;
if (uri == NULL) {
uri_local = g_strdup_printf("%s%s", "unix:", mig_socket);
uri = uri_local;
}
migrate(... | {
"code": [
" verify_state(to);"
],
"line_no": [
55
]
} | static void FUNC_0(AHCIQState *VAR_0, AHCIQState *VAR_1, const char *VAR_2)
{
QOSState *tmp = VAR_1->parent;
QPCIDevice *dev = VAR_1->dev;
char *VAR_3 = NULL;
if (VAR_2 == NULL) {
VAR_3 = g_strdup_printf("%s%s", "unix:", mig_socket);
VAR_2 = VAR_3;
}
migrate(VA... | [
"static void FUNC_0(AHCIQState *VAR_0, AHCIQState *VAR_1, const char *VAR_2)\n{",
"QOSState *tmp = VAR_1->parent;",
"QPCIDevice *dev = VAR_1->dev;",
"char *VAR_3 = NULL;",
"if (VAR_2 == NULL) {",
"VAR_3 = g_strdup_printf(\"%s%s\", \"unix:\", mig_socket);",
"VAR_2 = VAR_3;",
"}",
"migrate(VAR_0->pare... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
... |
27,286 | static int kvm_virtio_pci_vq_vector_unmask(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector,
MSIMessage msg)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
E... | true | qemu | 53510bfc1256711365cd2a841649f3ad5a79790f | static int kvm_virtio_pci_vq_vector_unmask(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector,
MSIMessage msg)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
E... | {
"code": [
" int ret;"
],
"line_no": [
17
]
} | static int FUNC_0(VirtIOPCIProxy *VAR_0,
unsigned int VAR_1,
unsigned int VAR_2,
MSIMessage VAR_3)
{
VirtQueue *vq = virtio_get_queue(VAR_0->vdev, VAR_1);
EventNotifier *n = virtio_queue... | [
"static int FUNC_0(VirtIOPCIProxy *VAR_0,\nunsigned int VAR_1,\nunsigned int VAR_2,\nMSIMessage VAR_3)\n{",
"VirtQueue *vq = virtio_get_queue(VAR_0->vdev, VAR_1);",
"EventNotifier *n = virtio_queue_get_guest_notifier(vq);",
"VirtIOIRQFD *irqfd = &VAR_0->vector_irqfd[VAR_2];",
"int VAR_4;",
"if (irqfd->VAR... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
41
],
[
43
],
[
47,
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
27,287 | static int vvfat_open(BlockDriverState *bs, const char* dirname, int flags)
{
BDRVVVFATState *s = bs->opaque;
int floppy = 0;
int i;
#ifdef DEBUG
vvv = s;
#endif
DLOG(if (stderr == NULL) {
stderr = fopen("vvfat.log", "a");
setbuf(stderr, NULL);
})
s->bs = bs;
s->fat_... | true | qemu | 273e4e03b3413fd489601cd9d8ba407ccb3b4130 | static int vvfat_open(BlockDriverState *bs, const char* dirname, int flags)
{
BDRVVVFATState *s = bs->opaque;
int floppy = 0;
int i;
#ifdef DEBUG
vvv = s;
#endif
DLOG(if (stderr == NULL) {
stderr = fopen("vvfat.log", "a");
setbuf(stderr, NULL);
})
s->bs = bs;
s->fat_... | {
"code": [
" int floppy = 0;",
" s->fat_type=16;",
" bs->cyls=1024; bs->heads=16; bs->secs=63;",
" if (strstr(dirname, \":floppy:\")) {",
"\tfloppy = 1;",
"\ts->fat_type = 12;",
"\ts->first_sectors_number = 1;",
"\ts->sectors_per_cluster=2;",
"\tbs->cyls = 80; bs->head... | static int FUNC_0(BlockDriverState *VAR_0, const char* VAR_1, int VAR_2)
{
BDRVVVFATState *s = VAR_0->opaque;
int VAR_3 = 0;
int VAR_4;
#ifdef DEBUG
vvv = s;
#endif
DLOG(if (stderr == NULL) {
stderr = fopen("vvfat.log", "a");
setbuf(stderr, NULL);
})
s->VAR_0 = VAR_0;
... | [
"static int FUNC_0(BlockDriverState *VAR_0, const char* VAR_1, int VAR_2)\n{",
"BDRVVVFATState *s = VAR_0->opaque;",
"int VAR_3 = 0;",
"int VAR_4;",
"#ifdef DEBUG\nvvv = s;",
"#endif\nDLOG(if (stderr == NULL) {",
"stderr = fopen(\"vvfat.log\", \"a\");",
"setbuf(stderr, NULL);",
"})",
"s->VAR_0 = V... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
39
],
[
43
],
[
47
],
[
51
],
[
55
],
[
57
],
[
59
],
[
61
... |
27,288 | VirtIODevice *virtio_scsi_init(DeviceState *dev, VirtIOSCSIConf *proxyconf)
{
VirtIOSCSI *s;
static int virtio_scsi_id;
size_t sz;
int i;
sz = sizeof(VirtIOSCSI) + proxyconf->num_queues * sizeof(VirtQueue *);
s = (VirtIOSCSI *)virtio_common_init("virtio-scsi", VIRTIO_ID_SCSI,
... | true | qemu | 619d7ae952bb61ec27ec21fe4a383a8d4dd4cd70 | VirtIODevice *virtio_scsi_init(DeviceState *dev, VirtIOSCSIConf *proxyconf)
{
VirtIOSCSI *s;
static int virtio_scsi_id;
size_t sz;
int i;
sz = sizeof(VirtIOSCSI) + proxyconf->num_queues * sizeof(VirtQueue *);
s = (VirtIOSCSI *)virtio_common_init("virtio-scsi", VIRTIO_ID_SCSI,
... | {
"code": [
" NULL);"
],
"line_no": [
47
]
} | VirtIODevice *FUNC_0(DeviceState *dev, VirtIOSCSIConf *proxyconf)
{
VirtIOSCSI *s;
static int VAR_0;
size_t sz;
int VAR_1;
sz = sizeof(VirtIOSCSI) + proxyconf->num_queues * sizeof(VirtQueue *);
s = (VirtIOSCSI *)virtio_common_init("virtio-scsi", VIRTIO_ID_SCSI,
... | [
"VirtIODevice *FUNC_0(DeviceState *dev, VirtIOSCSIConf *proxyconf)\n{",
"VirtIOSCSI *s;",
"static int VAR_0;",
"size_t sz;",
"int VAR_1;",
"sz = sizeof(VirtIOSCSI) + proxyconf->num_queues * sizeof(VirtQueue *);",
"s = (VirtIOSCSI *)virtio_common_init(\"virtio-scsi\", VIRTIO_ID_SCSI,\nsizeof(VirtIOSCSICo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51,
53
],
[
55
... |
27,289 | static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear,
double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta,
double precision, int ch... | true | FFmpeg | f9158b01d0f3effb58e87fb07db0382bc1e47de5 | static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear,
double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta,
double precision, int ch... | {
"code": [],
"line_no": []
} | static ResampleContext *FUNC_0(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear,
double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta,
double precision, int cheby){
... | [
"static ResampleContext *FUNC_0(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear,\ndouble cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta,\ndouble precision, int cheby){",
"double VAR_0 = cutoff0? cutoff0 : 0.97;",
"double VAR_1= FF... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7,
8,
9
],
[
10
],
[
11,
12
],
[
13
],
[
14
],
[
15
],
[
16,
17
],
[
18
],
[
19,
20
],
[
21
],
[
22,
23,
24
],
[
25
],... |
27,291 | static void test_properties(const char *path)
{
char *child_path;
QDict *response, *tuple;
QList *list;
QListEntry *entry;
g_test_message("Obtaining properties of %s", path);
response = qmp("{ 'execute': 'qom-list',"
" 'arguments': { 'path': '%s' } }", path);
g... | true | qemu | 0380aef323154205a7d838fb9953423621290d41 | static void test_properties(const char *path)
{
char *child_path;
QDict *response, *tuple;
QList *list;
QListEntry *entry;
g_test_message("Obtaining properties of %s", path);
response = qmp("{ 'execute': 'qom-list',"
" 'arguments': { 'path': '%s' } }", path);
g... | {
"code": [
"static void test_properties(const char *path)",
" if (strstart(qdict_get_str(tuple, \"type\"), \"child<\", NULL)) {",
" test_properties(child_path);"
],
"line_no": [
1,
33,
39
]
} | static void FUNC_0(const char *VAR_0)
{
char *VAR_1;
QDict *response, *tuple;
QList *list;
QListEntry *entry;
g_test_message("Obtaining properties of %s", VAR_0);
response = qmp("{ 'execute': 'qom-list',"
" 'arguments': { 'VAR_0': '%s' } }", VAR_0);
g_assert(re... | [
"static void FUNC_0(const char *VAR_0)\n{",
"char *VAR_1;",
"QDict *response, *tuple;",
"QList *list;",
"QListEntry *entry;",
"g_test_message(\"Obtaining properties of %s\", VAR_0);",
"response = qmp(\"{ 'execute': 'qom-list',\"",
"\" 'arguments': { 'VAR_0': '%s' } }\", VAR_0);",
"g_assert(response... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
27,292 | static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame, packet_s... | true | FFmpeg | 3ca5df36a50e3ffd3b24734725bf545617a627a8 | static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame, packet_s... | {
"code": [
" s->frame.nb_samples = 0;",
" *(AVFrame *)data = s->frame;",
" *got_frame_ptr = s->frame.nb_samples > 0;"
],
"line_no": [
19,
205,
207
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket* VAR_3)
{
WmallDecodeCtx *s = VAR_0->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
int VAR_6, VAR_7, VAR_8;
s->frame.nb_sam... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket* VAR_3)\n{",
"WmallDecodeCtx *s = VAR_0->priv_data;",
"GetBitContext* gb = &s->pgb;",
"const uint8_t* VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"int VAR_6, VAR_7, VAR_8;",
"s->frame.nb_samples = 0;",
"if (s->... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55,
57
],
[... |
27,293 | static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
const uint8_t *payload, int payload_size,
int64_t pts, int64_t dts, int key)
{
MpegTSWriteStream *ts_st = st->priv_data;
MpegTSWrite *ts = s->priv_data;
uint8_t buf[TS_PACKET_SIZE];... | true | FFmpeg | 60fcc19b9068614f25cf64dff5e4aa0e8dbff6a5 | static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
const uint8_t *payload, int payload_size,
int64_t pts, int64_t dts, int key)
{
MpegTSWriteStream *ts_st = st->priv_data;
MpegTSWrite *ts = s->priv_data;
uint8_t buf[TS_PACKET_SIZE];... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,
const uint8_t *VAR_2, int VAR_3,
int64_t VAR_4, int64_t VAR_5, int VAR_6)
{
MpegTSWriteStream *ts_st = VAR_1->priv_data;
MpegTSWrite *ts = VAR_0->priv_data;
uint8_t buf[TS_PACKET_SIZE]... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nint64_t VAR_4, int64_t VAR_5, int VAR_6)\n{",
"MpegTSWriteStream *ts_st = VAR_1->priv_data;",
"MpegTSWrite *ts = VAR_0->priv_data;",
"uint8_t buf[TS_PACKET_SIZE];",
"uint8_t *q;",
"int VAR_7, VAR_8, VAR_9, VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
... |
27,294 | static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
const QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c2)
{
DECLARE_ALIGNED(8, PPContext, c)= *c2; //copy to stack for faster access
int x,y;
#ifd... | false | FFmpeg | 93f4538363069b721c24417f3d38575274394845 | static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
const QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c2)
{
DECLARE_ALIGNED(8, PPContext, c)= *c2;
int x,y;
#ifdef TEMPLATE_PP_TIME_MODE
con... | {
"code": [],
"line_no": []
} | static void FUNC_0(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
const QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c2)
{
DECLARE_ALIGNED(8, PPContext, c)= *c2;
int VAR_0,VAR_1;
#ifdef TEMPLATE_PP_TIME_MODE
... | [
"static void FUNC_0(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,\nconst QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c2)\n{",
"DECLARE_ALIGNED(8, PPContext, c)= *c2;",
"int VAR_0,VAR_1;",
"#ifdef TEMPLATE_PP_TIME_MODE\nconst int VAR_2= TEMPLA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
27
],
[
29,
31
],
[
33,
37
],
[
39
],
[
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59
... |
27,295 | static char *choose_pix_fmts(OutputStream *ost)
{
if (ost->keep_pix_fmt) {
if (ost->filter)
avfilter_graph_set_auto_convert(ost->filter->graph->graph,
AVFILTER_AUTO_CONVERT_NONE);
if (ost->st->codec->pix_fmt == PIX_FMT_NONE)
... | true | FFmpeg | 432fe9a38afca9104c1c11942d21739e2a48ba96 | static char *choose_pix_fmts(OutputStream *ost)
{
if (ost->keep_pix_fmt) {
if (ost->filter)
avfilter_graph_set_auto_convert(ost->filter->graph->graph,
AVFILTER_AUTO_CONVERT_NONE);
if (ost->st->codec->pix_fmt == PIX_FMT_NONE)
... | {
"code": [
" } else if (ost->enc->pix_fmts) {"
],
"line_no": [
25
]
} | static char *FUNC_0(OutputStream *VAR_0)
{
if (VAR_0->keep_pix_fmt) {
if (VAR_0->filter)
avfilter_graph_set_auto_convert(VAR_0->filter->graph->graph,
AVFILTER_AUTO_CONVERT_NONE);
if (VAR_0->st->codec->pix_fmt == PIX_FMT_NONE)
... | [
"static char *FUNC_0(OutputStream *VAR_0)\n{",
"if (VAR_0->keep_pix_fmt) {",
"if (VAR_0->filter)\navfilter_graph_set_auto_convert(VAR_0->filter->graph->graph,\nAVFILTER_AUTO_CONVERT_NONE);",
"if (VAR_0->st->codec->pix_fmt == PIX_FMT_NONE)\nreturn NULL;",
"return av_strdup(av_get_pix_fmt_name(VAR_0->st->code... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
27,297 | static int xiph_handle_packet(AVFormatContext *ctx, PayloadContext *data,
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
const uint8_t *buf, int len, uint16_t seq,
int flags)
{
int ident, fragmented, tdt, num_pkts, p... | false | FFmpeg | a23379a0a68a6dd9a0e0d583e11b0c6f9b33f9ae | static int xiph_handle_packet(AVFormatContext *ctx, PayloadContext *data,
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
const uint8_t *buf, int len, uint16_t seq,
int flags)
{
int ident, fragmented, tdt, num_pkts, p... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,
AVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,
const uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,
int VAR_8)
{
int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13... | [
"static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,\nAVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,\nint VAR_8)\n{",
"int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"if (!VAR_5) {",
"if (!VAR_1->split_buf || VAR_1->split_pos + 2 > VAR_1->split_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
27,298 | static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,
const int linesizes[4])
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
int i;
for (i = 0; i < 4; i++) {
int plane = desc->comp[i].plane;
if (!data[plane] |... | false | FFmpeg | 37f573543c4fd7f44339e04d8d15b95118493ddd | static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,
const int linesizes[4])
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
int i;
for (i = 0; i < 4; i++) {
int plane = desc->comp[i].plane;
if (!data[plane] |... | {
"code": [],
"line_no": []
} | static int FUNC_0(uint8_t *VAR_0[4], enum AVPixelFormat VAR_1,
const int VAR_2[4])
{
const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1);
int VAR_4;
for (VAR_4 = 0; VAR_4 < 4; VAR_4++) {
int VAR_5 = VAR_3->comp[VAR_4].VAR_5;
if (!VAR_0[VAR_5]... | [
"static int FUNC_0(uint8_t *VAR_0[4], enum AVPixelFormat VAR_1,\nconst int VAR_2[4])\n{",
"const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1);",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < 4; VAR_4++) {",
"int VAR_5 = VAR_3->comp[VAR_4].VAR_5;",
"if (!VAR_0[VAR_5] || !VAR_2[VAR_5])\nreturn 0;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
25
],
[
27
]
] |
27,299 | static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcY;
int dxy, mx, my, src_x, src_y;
int off;
int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0;
int v_edge_pos = s->v_edge_pos >>... | false | FFmpeg | ae591aeea58d64399b8281be31dacec0de85ae04 | static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcY;
int dxy, mx, my, src_x, src_y;
int off;
int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0;
int v_edge_pos = s->v_edge_pos >>... | {
"code": [],
"line_no": []
} | static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2)
{
MpegEncContext *s = &VAR_0->s;
DSPContext *dsp = &VAR_0->s.dsp;
uint8_t *srcY;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8;
int VAR_9 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0;
int ... | [
"static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2)\n{",
"MpegEncContext *s = &VAR_0->s;",
"DSPContext *dsp = &VAR_0->s.dsp;",
"uint8_t *srcY;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8;",
"int VAR_9 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[... |
27,300 | int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset,
unsigned int bytes, QEMUIOVector *qiov,
BdrvRequestFlags flags)
{
int ret;
trace_blk_co_pwritev(blk, blk_bs(blk), offset, bytes, flags);
ret = blk_check_byte_request(b... | false | qemu | a03ef88f77af045a2eb9629b5ce774a3fb973c5e | int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset,
unsigned int bytes, QEMUIOVector *qiov,
BdrvRequestFlags flags)
{
int ret;
trace_blk_co_pwritev(blk, blk_bs(blk), offset, bytes, flags);
ret = blk_check_byte_request(b... | {
"code": [],
"line_no": []
} | int VAR_0 blk_co_pwritev(BlockBackend *blk, int64_t offset,
unsigned int bytes, QEMUIOVector *qiov,
BdrvRequestFlags flags)
{
int ret;
trace_blk_co_pwritev(blk, blk_bs(blk), offset, bytes, flags);
ret = blk_check_byte_request(blk, off... | [
"int VAR_0 blk_co_pwritev(BlockBackend *blk, int64_t offset,\nunsigned int bytes, QEMUIOVector *qiov,\nBdrvRequestFlags flags)\n{",
"int ret;",
"trace_blk_co_pwritev(blk, blk_bs(blk), offset, bytes, flags);",
"ret = blk_check_byte_request(blk, offset, bytes);",
"if (ret < 0) {",
"return ret;",
"}",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
27,301 | void monitor_protocol_event(MonitorEvent event, QObject *data)
{
QDict *qmp;
const char *event_name;
Monitor *mon;
assert(event < QEVENT_MAX);
switch (event) {
case QEVENT_DEBUG:
event_name = "DEBUG";
break;
case QEVENT_SHUTDOWN:
eve... | false | qemu | 23fabed13645fdf66473e458f318baa63be56b22 | void monitor_protocol_event(MonitorEvent event, QObject *data)
{
QDict *qmp;
const char *event_name;
Monitor *mon;
assert(event < QEVENT_MAX);
switch (event) {
case QEVENT_DEBUG:
event_name = "DEBUG";
break;
case QEVENT_SHUTDOWN:
eve... | {
"code": [],
"line_no": []
} | void FUNC_0(MonitorEvent VAR_0, QObject *VAR_1)
{
QDict *qmp;
const char *VAR_2;
Monitor *mon;
assert(VAR_0 < QEVENT_MAX);
switch (VAR_0) {
case QEVENT_DEBUG:
VAR_2 = "DEBUG";
break;
case QEVENT_SHUTDOWN:
VAR_2 = "SHUTDOWN";
... | [
"void FUNC_0(MonitorEvent VAR_0, QObject *VAR_1)\n{",
"QDict *qmp;",
"const char *VAR_2;",
"Monitor *mon;",
"assert(VAR_0 < QEVENT_MAX);",
"switch (VAR_0) {",
"case QEVENT_DEBUG:\nVAR_2 = \"DEBUG\";",
"break;",
"case QEVENT_SHUTDOWN:\nVAR_2 = \"SHUTDOWN\";",
"break;",
"case QEVENT_RESET:\nVAR_2 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
... |
27,302 | static int ppce500_prep_device_tree(MachineState *machine,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size)
{
DeviceTreeParams *p = g_new(D... | false | qemu | 903585dec63ee83bd8149006e31f92ea789b38e3 | static int ppce500_prep_device_tree(MachineState *machine,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size)
{
DeviceTreeParams *p = g_new(D... | {
"code": [],
"line_no": []
} | static int FUNC_0(MachineState *VAR_0,
PPCE500Params *VAR_1,
hwaddr VAR_2,
hwaddr VAR_3,
hwaddr VAR_4)
{
DeviceTreeParams *p = g_new(DeviceTreeParams, 1);
p->VAR... | [
"static int FUNC_0(MachineState *VAR_0,\nPPCE500Params *VAR_1,\nhwaddr VAR_2,\nhwaddr VAR_3,\nhwaddr VAR_4)\n{",
"DeviceTreeParams *p = g_new(DeviceTreeParams, 1);",
"p->VAR_0 = VAR_0;",
"p->VAR_1 = *VAR_1;",
"p->VAR_2 = VAR_2;",
"p->VAR_3 = VAR_3;",
"p->VAR_4 = VAR_4;",
"qemu_register_reset(ppce500_r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33,
35
],
[
37
]
] |
27,303 | int bdrv_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
{
BlockDriver *drv = bs->drv;
if (drv && drv->bdrv_ioctl)
return drv->bdrv_ioctl(bs, req, buf);
return -ENOTSUP;
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | int bdrv_ioctl(BlockDriverState *bs, unsigned long int req, void *buf)
{
BlockDriver *drv = bs->drv;
if (drv && drv->bdrv_ioctl)
return drv->bdrv_ioctl(bs, req, buf);
return -ENOTSUP;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, unsigned long int VAR_1, void *VAR_2)
{
BlockDriver *drv = VAR_0->drv;
if (drv && drv->FUNC_0)
return drv->FUNC_0(VAR_0, VAR_1, VAR_2);
return -ENOTSUP;
}
| [
"int FUNC_0(BlockDriverState *VAR_0, unsigned long int VAR_1, void *VAR_2)\n{",
"BlockDriver *drv = VAR_0->drv;",
"if (drv && drv->FUNC_0)\nreturn drv->FUNC_0(VAR_0, VAR_1, VAR_2);",
"return -ENOTSUP;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
]
] |
27,304 | void tb_invalidate_phys_addr(target_phys_addr_t addr)
{
ram_addr_t ram_addr;
MemoryRegionSection *section;
section = phys_page_find(addr >> TARGET_PAGE_BITS);
if (!(memory_region_is_ram(section->mr)
|| (section->mr->rom_device && section->mr->readable))) {
return;
}
... | false | qemu | ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43 | void tb_invalidate_phys_addr(target_phys_addr_t addr)
{
ram_addr_t ram_addr;
MemoryRegionSection *section;
section = phys_page_find(addr >> TARGET_PAGE_BITS);
if (!(memory_region_is_ram(section->mr)
|| (section->mr->rom_device && section->mr->readable))) {
return;
}
... | {
"code": [],
"line_no": []
} | void FUNC_0(target_phys_addr_t VAR_0)
{
ram_addr_t ram_addr;
MemoryRegionSection *section;
section = phys_page_find(VAR_0 >> TARGET_PAGE_BITS);
if (!(memory_region_is_ram(section->mr)
|| (section->mr->rom_device && section->mr->readable))) {
return;
}
ram_addr = (mem... | [
"void FUNC_0(target_phys_addr_t VAR_0)\n{",
"ram_addr_t ram_addr;",
"MemoryRegionSection *section;",
"section = phys_page_find(VAR_0 >> TARGET_PAGE_BITS);",
"if (!(memory_region_is_ram(section->mr)\n|| (section->mr->rom_device && section->mr->readable))) {",
"return;",
"}",
"ram_addr = (memory_region_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
]
] |
27,305 | static void scsi_generic_realize(SCSIDevice *s, Error **errp)
{
int rc;
int sg_version;
struct sg_scsi_id scsiid;
if (!s->conf.bs) {
error_setg(errp, "drive property not set");
return;
}
if (bdrv_get_on_error(s->conf.bs, 0) != BLOCKDEV_ON_ERROR_ENOSPC) {
err... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_generic_realize(SCSIDevice *s, Error **errp)
{
int rc;
int sg_version;
struct sg_scsi_id scsiid;
if (!s->conf.bs) {
error_setg(errp, "drive property not set");
return;
}
if (bdrv_get_on_error(s->conf.bs, 0) != BLOCKDEV_ON_ERROR_ENOSPC) {
err... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)
{
int VAR_2;
int VAR_3;
struct sg_scsi_id VAR_4;
if (!VAR_0->conf.bs) {
error_setg(VAR_1, "drive property not set");
return;
}
if (bdrv_get_on_error(VAR_0->conf.bs, 0) != BLOCKDEV_ON_ERROR_ENOSPC) {
error_... | [
"static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)\n{",
"int VAR_2;",
"int VAR_3;",
"struct sg_scsi_id VAR_4;",
"if (!VAR_0->conf.bs) {",
"error_setg(VAR_1, \"drive property not set\");",
"return;",
"}",
"if (bdrv_get_on_error(VAR_0->conf.bs, 0) != BLOCKDEV_ON_ERROR_ENOSPC) {",
"error_setg(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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47,
49,
51
... |
27,306 | static void pool_release_buffer(void *opaque, uint8_t *data)
{
BufferPoolEntry *buf = opaque;
AVBufferPool *pool = buf->pool;
if(CONFIG_MEMORY_POISONING)
memset(buf->data, 0x2a, pool->size);
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buff... | false | FFmpeg | 84be80698227366d970e045001e4b59e4f99f0a1 | static void pool_release_buffer(void *opaque, uint8_t *data)
{
BufferPoolEntry *buf = opaque;
AVBufferPool *pool = buf->pool;
if(CONFIG_MEMORY_POISONING)
memset(buf->data, 0x2a, pool->size);
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buff... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint8_t *VAR_1)
{
BufferPoolEntry *buf = VAR_0;
AVBufferPool *pool = buf->pool;
if(CONFIG_MEMORY_POISONING)
memset(buf->VAR_1, 0x2a, pool->size);
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buffer_pool_free(... | [
"static void FUNC_0(void *VAR_0, uint8_t *VAR_1)\n{",
"BufferPoolEntry *buf = VAR_0;",
"AVBufferPool *pool = buf->pool;",
"if(CONFIG_MEMORY_POISONING)\nmemset(buf->VAR_1, 0x2a, pool->size);",
"add_to_pool(buf);",
"if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))\nbuffer_pool_free(pool);",
"}"
... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19,
21
],
[
23
]
] |
27,307 | static void dec_load(DisasContext *dc)
{
TCGv t, *addr;
unsigned int size;
size = 1 << (dc->opcode & 3);
LOG_DIS("l %x %d\n", dc->opcode, size);
t_sync_flags(dc);
addr = compute_ldst_addr(dc, &t);
/* If we get a fault on a dslot, the jmpstate better be in sync. */
sync_jm... | false | qemu | 3aa80988430f41847e1b78d165440ac03503b6d0 | static void dec_load(DisasContext *dc)
{
TCGv t, *addr;
unsigned int size;
size = 1 << (dc->opcode & 3);
LOG_DIS("l %x %d\n", dc->opcode, size);
t_sync_flags(dc);
addr = compute_ldst_addr(dc, &t);
sync_jmpstate(dc);
if ((dc->env->pvr.regs[2] & PVR2_UNALIGNED_... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
TCGv t, *addr;
unsigned int VAR_1;
VAR_1 = 1 << (VAR_0->opcode & 3);
LOG_DIS("l %x %d\n", VAR_0->opcode, VAR_1);
t_sync_flags(VAR_0);
addr = compute_ldst_addr(VAR_0, &t);
sync_jmpstate(VAR_0);
if ((VAR_0->env->pvr.reg... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t, *addr;",
"unsigned int VAR_1;",
"VAR_1 = 1 << (VAR_0->opcode & 3);",
"LOG_DIS(\"l %x %d\\n\", VAR_0->opcode, VAR_1);",
"t_sync_flags(VAR_0);",
"addr = compute_ldst_addr(VAR_0, &t);",
"sync_jmpstate(VAR_0);",
"if ((VAR_0->env->pvr.regs[2] & PVR2_... | [
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
],
[
25
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53,
55
],
[
57
]
] |
27,308 | void ich9_lpc_pm_init(PCIDevice *lpc_pci, bool smm_enabled)
{
ICH9LPCState *lpc = ICH9_LPC_DEVICE(lpc_pci);
qemu_irq sci_irq;
sci_irq = qemu_allocate_irq(ich9_set_sci, lpc, 0);
ich9_pm_init(lpc_pci, &lpc->pm, smm_enabled, sci_irq);
ich9_lpc_reset(&lpc->d.qdev);
}
| false | qemu | 920557971b60e53c2f3f22e5d6c620ab1ed411fd | void ich9_lpc_pm_init(PCIDevice *lpc_pci, bool smm_enabled)
{
ICH9LPCState *lpc = ICH9_LPC_DEVICE(lpc_pci);
qemu_irq sci_irq;
sci_irq = qemu_allocate_irq(ich9_set_sci, lpc, 0);
ich9_pm_init(lpc_pci, &lpc->pm, smm_enabled, sci_irq);
ich9_lpc_reset(&lpc->d.qdev);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0, bool VAR_1)
{
ICH9LPCState *lpc = ICH9_LPC_DEVICE(VAR_0);
qemu_irq sci_irq;
sci_irq = qemu_allocate_irq(ich9_set_sci, lpc, 0);
ich9_pm_init(VAR_0, &lpc->pm, VAR_1, sci_irq);
ich9_lpc_reset(&lpc->d.qdev);
}
| [
"void FUNC_0(PCIDevice *VAR_0, bool VAR_1)\n{",
"ICH9LPCState *lpc = ICH9_LPC_DEVICE(VAR_0);",
"qemu_irq sci_irq;",
"sci_irq = qemu_allocate_irq(ich9_set_sci, lpc, 0);",
"ich9_pm_init(VAR_0, &lpc->pm, VAR_1, sci_irq);",
"ich9_lpc_reset(&lpc->d.qdev);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
27,309 | uint64_t helper_fctiw (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN conversion */
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64_... | false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | uint64_t helper_fctiw (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d)))... | {
"code": [],
"line_no": []
} | uint64_t FUNC_0 (uint64_t arg)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) {
... | [
"uint64_t FUNC_0 (uint64_t arg)\n{",
"CPU_DoubleU farg;",
"farg.ll = arg;",
"if (unlikely(float64_is_signaling_nan(farg.d))) {",
"farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);",
"} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) {",
"farg.ll =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27,
35
],
[
37,
39
],
[
41
],
[
43
]
] |
27,310 | static int ppc_hash64_pte_prot(PowerPCCPU *cpu,
ppc_slb_t *slb, ppc_hash_pte64_t pte)
{
CPUPPCState *env = &cpu->env;
unsigned pp, key;
/* Some pp bit combinations have undefined behaviour, so default
* to no access in those cases */
int prot = 0;
key = ... | false | qemu | 347a5c73bafd1b5872c9d3192a4d08f8aa1d5f5a | static int ppc_hash64_pte_prot(PowerPCCPU *cpu,
ppc_slb_t *slb, ppc_hash_pte64_t pte)
{
CPUPPCState *env = &cpu->env;
unsigned pp, key;
int prot = 0;
key = !!(msr_pr ? (slb->vsid & SLB_VSID_KP)
: (slb->vsid & SLB_VSID_KS));
pp = (pte.pte1... | {
"code": [],
"line_no": []
} | static int FUNC_0(PowerPCCPU *VAR_0,
ppc_slb_t *VAR_1, ppc_hash_pte64_t VAR_2)
{
CPUPPCState *env = &VAR_0->env;
unsigned VAR_3, VAR_4;
int VAR_5 = 0;
VAR_4 = !!(msr_pr ? (VAR_1->vsid & SLB_VSID_KP)
: (VAR_1->vsid & SLB_VSID_KS));
VAR_3 =... | [
"static int FUNC_0(PowerPCCPU *VAR_0,\nppc_slb_t *VAR_1, ppc_hash_pte64_t VAR_2)\n{",
"CPUPPCState *env = &VAR_0->env;",
"unsigned VAR_3, VAR_4;",
"int VAR_5 = 0;",
"VAR_4 = !!(msr_pr ? (VAR_1->vsid & SLB_VSID_KP)\n: (VAR_1->vsid & SLB_VSID_KS));",
"VAR_3 = (VAR_2.pte1 & HPTE64_R_PP) | ((VAR_2.pte1 & HPTE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
31,
33,
35,
37
],
[
39
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57,
59,... |
27,312 | static void exynos4210_mct_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
Exynos4210MCTState *s = (Exynos4210MCTState *)opaque;
int index; /* index in buffer which represents register set */
int shift;
int lt_i;
uint64_t new_frc;
uint32_t i;
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void exynos4210_mct_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
Exynos4210MCTState *s = (Exynos4210MCTState *)opaque;
int index;
int shift;
int lt_i;
uint64_t new_frc;
uint32_t i;
uint32_t old_val;
#ifdef DEBUG_MCT
static ui... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
Exynos4210MCTState *s = (Exynos4210MCTState *)VAR_0;
int VAR_4;
int VAR_5;
int VAR_6;
uint64_t new_frc;
uint32_t i;
uint32_t old_val;
#ifdef DEBUG_MCT
static uint32_t icntb_ma... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"Exynos4210MCTState *s = (Exynos4210MCTState *)VAR_0;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"uint64_t new_frc;",
"uint32_t i;",
"uint32_t old_val;",
"#ifdef DEBUG_MCT\nstatic uint32_t icntb_max[2] ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
35
],
[
39
],
[
43,
45
],
[
47
],
[
49
],
[
53,... |
27,313 | static int no_init_in (HWVoiceIn *hw, audsettings_t *as)
{
audio_pcm_init_info (&hw->info, as);
hw->samples = 1024;
return 0;
}
| false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static int no_init_in (HWVoiceIn *hw, audsettings_t *as)
{
audio_pcm_init_info (&hw->info, as);
hw->samples = 1024;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0 (HWVoiceIn *VAR_0, audsettings_t *VAR_1)
{
audio_pcm_init_info (&VAR_0->info, VAR_1);
VAR_0->samples = 1024;
return 0;
}
| [
"static int FUNC_0 (HWVoiceIn *VAR_0, audsettings_t *VAR_1)\n{",
"audio_pcm_init_info (&VAR_0->info, VAR_1);",
"VAR_0->samples = 1024;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
27,314 | uint32_t HELPER(stfle)(CPUS390XState *env, uint64_t addr)
{
uint64_t words[MAX_STFL_WORDS];
unsigned count_m1 = env->regs[0] & 0xff;
unsigned max_m1 = do_stfle(env, words);
unsigned i;
for (i = 0; i <= count_m1; ++i) {
cpu_stq_data(env, addr + 8 * i, words[i]);
}
env->re... | false | qemu | f74990a5d019751c545e9800a3376b6336e77d38 | uint32_t HELPER(stfle)(CPUS390XState *env, uint64_t addr)
{
uint64_t words[MAX_STFL_WORDS];
unsigned count_m1 = env->regs[0] & 0xff;
unsigned max_m1 = do_stfle(env, words);
unsigned i;
for (i = 0; i <= count_m1; ++i) {
cpu_stq_data(env, addr + 8 * i, words[i]);
}
env->re... | {
"code": [],
"line_no": []
} | uint32_t FUNC_0(stfle)(CPUS390XState *env, uint64_t addr)
{
uint64_t words[MAX_STFL_WORDS];
unsigned VAR_0 = env->regs[0] & 0xff;
unsigned VAR_1 = do_stfle(env, words);
unsigned VAR_2;
for (VAR_2 = 0; VAR_2 <= VAR_0; ++VAR_2) {
cpu_stq_data(env, addr + 8 * VAR_2, words[VAR_2]);
... | [
"uint32_t FUNC_0(stfle)(CPUS390XState *env, uint64_t addr)\n{",
"uint64_t words[MAX_STFL_WORDS];",
"unsigned VAR_0 = env->regs[0] & 0xff;",
"unsigned VAR_1 = do_stfle(env, words);",
"unsigned VAR_2;",
"for (VAR_2 = 0; VAR_2 <= VAR_0; ++VAR_2) {",
"cpu_stq_data(env, addr + 8 * VAR_2, words[VAR_2]);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
]
] |
27,315 | static void pxa2xx_fir_write(void *opaque, hwaddr addr,
uint64_t value64, unsigned size)
{
PXA2xxFIrState *s = (PXA2xxFIrState *) opaque;
uint32_t value = value64;
uint8_t ch;
switch (addr) {
case ICCR0:
s->control[0] = value;
if (!(value & (1 ... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static void pxa2xx_fir_write(void *opaque, hwaddr addr,
uint64_t value64, unsigned size)
{
PXA2xxFIrState *s = (PXA2xxFIrState *) opaque;
uint32_t value = value64;
uint8_t ch;
switch (addr) {
case ICCR0:
s->control[0] = value;
if (!(value & (1 ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
PXA2xxFIrState *s = (PXA2xxFIrState *) VAR_0;
uint32_t value = VAR_2;
uint8_t ch;
switch (VAR_1) {
case ICCR0:
s->control[0] = value;
if (!(value & (1 << 4)))
... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"PXA2xxFIrState *s = (PXA2xxFIrState *) VAR_0;",
"uint32_t value = VAR_2;",
"uint8_t ch;",
"switch (VAR_1) {",
"case ICCR0:\ns->control[0] = value;",
"if (!(value & (1 << 4)))\ns->rx_len = s->rx_start = 0;",
"if (!(va... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51
... |
27,316 | static void disas_thumb_insn(CPUARMState *env, DisasContext *s)
{
uint32_t val, insn, op, rm, rn, rd, shift, cond;
int32_t offset;
int i;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 addr;
if (s->condexec_mask) {
cond = s->condexec_cond;
if (cond != 0x0e) { /* Skip c... | false | qemu | 39fb730aed8c5f7b0058845cb9feac0d4b177985 | static void disas_thumb_insn(CPUARMState *env, DisasContext *s)
{
uint32_t val, insn, op, rm, rn, rd, shift, cond;
int32_t offset;
int i;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 addr;
if (s->condexec_mask) {
cond = s->condexec_cond;
if (cond != 0x0e) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUARMState *VAR_0, DisasContext *VAR_1)
{
uint32_t val, insn, op, rm, rn, rd, shift, cond;
int32_t offset;
int VAR_2;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 addr;
if (VAR_1->condexec_mask) {
cond = VAR_1->condexec_cond;
if (cond != 0x0e) {
... | [
"static void FUNC_0(CPUARMState *VAR_0, DisasContext *VAR_1)\n{",
"uint32_t val, insn, op, rm, rn, rd, shift, cond;",
"int32_t offset;",
"int VAR_2;",
"TCGv_i32 tmp;",
"TCGv_i32 tmp2;",
"TCGv_i32 addr;",
"if (VAR_1->condexec_mask) {",
"cond = VAR_1->condexec_cond;",
"if (cond != 0x0e) {",
"VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45,
49
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.