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,499 | enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
const char *filename, const char *mime_type,
enum AVMediaType type)
{
if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) {
fmt = av_guess_... | true | FFmpeg | 98e42a249e7891d295228ff19892450ba1f09092 | enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
const char *filename, const char *mime_type,
enum AVMediaType type)
{
if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) {
fmt = av_guess_... | {
"code": [
" fmt = av_guess_format(NULL, filename, NULL);"
],
"line_no": [
11
]
} | enum AVCodecID FUNC_0(AVOutputFormat *VAR_0, const char *VAR_1,
const char *VAR_2, const char *VAR_3,
enum AVMediaType VAR_4)
{
if (av_match_name("segment", VAR_0->name) || av_match_name("ssegment", VAR_0->name)) {
VAR_0 = av_guess_format(NULL... | [
"enum AVCodecID FUNC_0(AVOutputFormat *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nenum AVMediaType VAR_4)\n{",
"if (av_match_name(\"segment\", VAR_0->name) || av_match_name(\"ssegment\", VAR_0->name)) {",
"VAR_0 = av_guess_format(NULL, VAR_2, NULL);",
"}",
"if (VAR_4 == AVMEDIA_TYPE_V... | [
0,
0,
1,
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
],
[
43,
45
],
[
47,
49
],
[
51
]
] |
25,502 | static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st)
{
AVIOContext *pb = s->pb;
int ret;
/* parse fmt header */
*st = av_new_stream(s, 0);
if (!*st)
return AVERROR(ENOMEM);
ff_get_wav_header(pb, (*st)->codec, size);
if (ret < 0)
return r... | true | FFmpeg | e9f4001a30c563a840614048629055769f6f7020 | static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st)
{
AVIOContext *pb = s->pb;
int ret;
*st = av_new_stream(s, 0);
if (!*st)
return AVERROR(ENOMEM);
ff_get_wav_header(pb, (*st)->codec, size);
if (ret < 0)
return ret;
(*st)->need_p... | {
"code": [
" ff_get_wav_header(pb, (*st)->codec, size);"
],
"line_no": [
21
]
} | static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, AVStream **VAR_2)
{
AVIOContext *pb = VAR_0->pb;
int VAR_3;
*VAR_2 = av_new_stream(VAR_0, 0);
if (!*VAR_2)
return AVERROR(ENOMEM);
ff_get_wav_header(pb, (*VAR_2)->codec, VAR_1);
if (VAR_3 < 0)
return VAR_... | [
"static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, AVStream **VAR_2)\n{",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_3;",
"*VAR_2 = av_new_stream(VAR_0, 0);",
"if (!*VAR_2)\nreturn AVERROR(ENOMEM);",
"ff_get_wav_header(pb, (*VAR_2)->codec, VAR_1);",
"if (VAR_3 < 0)\nreturn VAR_3;",
"(*VAR_2)->nee... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27
],
[
31
],
[
35
],
[
37
]
] |
25,503 | static int get_float64(QEMUFile *f, void *pv, size_t size)
{
float64 *v = pv;
*v = make_float64(qemu_get_be64(f));
return 0;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_float64(QEMUFile *f, void *pv, size_t size)
{
float64 *v = pv;
*v = make_float64(qemu_get_be64(f));
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
float64 *v = VAR_1;
*v = make_float64(qemu_get_be64(VAR_0));
return 0;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"float64 *v = VAR_1;",
"*v = make_float64(qemu_get_be64(VAR_0));",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
25,504 | static int chunk_mux_init(AVFormatContext *s)
{
WebMChunkContext *wc = s->priv_data;
AVFormatContext *oc;
int ret;
ret = avformat_alloc_output_context2(&wc->avf, wc->oformat, NULL, NULL);
if (ret < 0)
return ret;
oc = wc->avf;
oc->interrupt_callback = s->interrupt_callba... | true | FFmpeg | ccb8f674995ded871ac725833b5efefce0ad63de | static int chunk_mux_init(AVFormatContext *s)
{
WebMChunkContext *wc = s->priv_data;
AVFormatContext *oc;
int ret;
ret = avformat_alloc_output_context2(&wc->avf, wc->oformat, NULL, NULL);
if (ret < 0)
return ret;
oc = wc->avf;
oc->interrupt_callback = s->interrupt_callba... | {
"code": [
" oc->priv_data = av_mallocz(oc->oformat->priv_data_size);",
" if (!oc->priv_data) {",
" avio_close(oc->pb);",
" return AVERROR(ENOMEM);"
],
"line_no": [
31,
33,
35,
37
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
WebMChunkContext *wc = VAR_0->priv_data;
AVFormatContext *oc;
int VAR_1;
VAR_1 = avformat_alloc_output_context2(&wc->avf, wc->oformat, NULL, NULL);
if (VAR_1 < 0)
return VAR_1;
oc = wc->avf;
oc->interrupt_callback = VAR_0->inte... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"WebMChunkContext *wc = VAR_0->priv_data;",
"AVFormatContext *oc;",
"int VAR_1;",
"VAR_1 = avformat_alloc_output_context2(&wc->avf, wc->oformat, NULL, NULL);",
"if (VAR_1 < 0)\nreturn VAR_1;",
"oc = wc->avf;",
"oc->interrupt_callback = VAR_0->interrupt_c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
25,507 | void commit_active_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *base, int64_t speed,
BlockdevOnError on_error,
BlockCompletionFunc *cb,
void *opaque, Error **errp)
{
int64_t length, base_le... | false | qemu | b49f7ead8d222bcb8df0388f3177002f3e33d046 | void commit_active_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *base, int64_t speed,
BlockdevOnError on_error,
BlockCompletionFunc *cb,
void *opaque, Error **errp)
{
int64_t length, base_le... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,
BlockDriverState *VAR_2, int64_t VAR_3,
BlockdevOnError VAR_4,
BlockCompletionFunc *VAR_5,
void *VAR_6, Error **VAR_7)
{
int64_t length, base_length;
... | [
"void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nBlockDriverState *VAR_2, int64_t VAR_3,\nBlockdevOnError VAR_4,\nBlockCompletionFunc *VAR_5,\nvoid *VAR_6, Error **VAR_7)\n{",
"int64_t length, base_length;",
"int VAR_8;",
"int VAR_9;",
"Error *local_err = NULL;",
"VAR_8 = bdrv_get_flags(VAR_2);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53,
55
... |
25,508 | static void virtio_blk_handle_flush(VirtIOBlockReq *req, MultiReqBuffer *mrb)
{
block_acct_start(bdrv_get_stats(req->dev->bs), &req->acct, 0,
BLOCK_ACCT_FLUSH);
/*
* Make sure all outstanding writes are posted to the backing device.
*/
virtio_submit_multiwrite(req->de... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void virtio_blk_handle_flush(VirtIOBlockReq *req, MultiReqBuffer *mrb)
{
block_acct_start(bdrv_get_stats(req->dev->bs), &req->acct, 0,
BLOCK_ACCT_FLUSH);
virtio_submit_multiwrite(req->dev->bs, mrb);
bdrv_aio_flush(req->dev->bs, virtio_blk_flush_complete, req);
}... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOBlockReq *VAR_0, MultiReqBuffer *VAR_1)
{
block_acct_start(bdrv_get_stats(VAR_0->dev->bs), &VAR_0->acct, 0,
BLOCK_ACCT_FLUSH);
virtio_submit_multiwrite(VAR_0->dev->bs, VAR_1);
bdrv_aio_flush(VAR_0->dev->bs, virtio_blk_flush_complete, VAR_0);
}
| [
"static void FUNC_0(VirtIOBlockReq *VAR_0, MultiReqBuffer *VAR_1)\n{",
"block_acct_start(bdrv_get_stats(VAR_0->dev->bs), &VAR_0->acct, 0,\nBLOCK_ACCT_FLUSH);",
"virtio_submit_multiwrite(VAR_0->dev->bs, VAR_1);",
"bdrv_aio_flush(VAR_0->dev->bs, virtio_blk_flush_complete, VAR_0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
17
],
[
19
],
[
21
]
] |
25,509 | static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2,
TCGv_i64 addr, int size, int is_pair)
{
/* if (env->exclusive_addr == addr && env->exclusive_val == [addr]
* && (!is_pair || env->exclusive_high == [addr + datasize])) {
* [addr] = {Rt};
... | false | qemu | 2399d4e7cec22ecf1c51062d2ebfd45220dbaace | static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2,
TCGv_i64 addr, int size, int is_pair)
{
TCGLabel *fail_label = gen_new_label();
TCGLabel *done_label = gen_new_label();
TCGv_i64 tmp;
tcg_gen_brcond_i64(TCG_COND_... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,
TCGv_i64 VAR_4, int VAR_5, int VAR_6)
{
TCGLabel *fail_label = gen_new_label();
TCGLabel *done_label = gen_new_label();
TCGv_i64 tmp;
tcg_gen_brcond_i64(TCG_COND_N... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nTCGv_i64 VAR_4, int VAR_5, int VAR_6)\n{",
"TCGLabel *fail_label = gen_new_label();",
"TCGLabel *done_label = gen_new_label();",
"TCGv_i64 tmp;",
"tcg_gen_brcond_i64(TCG_COND_NE, VAR_4, cpu_exclusive_addr, fail_label);",
"tmp = tcg... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59,
61,
63,
65
],
[
67
],
[
69
],
[
71,
73
],
... |
25,511 | void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables *tables)
{
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
GArray *table_offsets;
unsigned dsdt, rsdt;
GArray *tables_blob = tables->table_data;
table_offsets = g_array_new(false, true /* clear */,
... | false | qemu | cb51ac2ffe3649eb8f5c65dccc2012f0ba2c6b12 | void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables *tables)
{
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
GArray *table_offsets;
unsigned dsdt, rsdt;
GArray *tables_blob = tables->table_data;
table_offsets = g_array_new(false, true ,
... | {
"code": [],
"line_no": []
} | void FUNC_0(VirtMachineState *VAR_0, AcpiBuildTables *VAR_1)
{
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0);
GArray *table_offsets;
unsigned VAR_2, VAR_3;
GArray *tables_blob = VAR_1->table_data;
table_offsets = g_array_new(false, true ,
size... | [
"void FUNC_0(VirtMachineState *VAR_0, AcpiBuildTables *VAR_1)\n{",
"VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0);",
"GArray *table_offsets;",
"unsigned VAR_2, VAR_3;",
"GArray *tables_blob = VAR_1->table_data;",
"table_offsets = g_array_new(false, true ,\nsizeof(uint32_t));",
"bios_linker_loade... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59
],
[
63
],
[... |
25,512 | static void versatile_init(QEMUMachineInitArgs *args, int board_id)
{
ARMCPU *cpu;
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
qemu_irq *cpu_pic;
qemu_irq pic[32];
qemu_irq sic[32];
DeviceState *dev, *sysctl;
SysBusDevice *busdev;
... | false | qemu | 5fb8084f31e9df7f0b2d63cfd3d10645d29b5eab | static void versatile_init(QEMUMachineInitArgs *args, int board_id)
{
ARMCPU *cpu;
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
qemu_irq *cpu_pic;
qemu_irq pic[32];
qemu_irq sic[32];
DeviceState *dev, *sysctl;
SysBusDevice *busdev;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUMachineInitArgs *VAR_0, int VAR_1)
{
ARMCPU *cpu;
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
qemu_irq *cpu_pic;
qemu_irq pic[32];
qemu_irq sic[32];
DeviceState *dev, *sysctl;
SysBusDevice *busdev;
DeviceSta... | [
"static void FUNC_0(QEMUMachineInitArgs *VAR_0, int VAR_1)\n{",
"ARMCPU *cpu;",
"MemoryRegion *sysmem = get_system_memory();",
"MemoryRegion *ram = g_new(MemoryRegion, 1);",
"qemu_irq *cpu_pic;",
"qemu_irq pic[32];",
"qemu_irq sic[32];",
"DeviceState *dev, *sysctl;",
"SysBusDevice *busdev;",
"Devi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,513 | static int interp(RA144Context *ractx, int16_t *out, int block_num,
int copyold, int energy)
{
int work[10];
int a = block_num + 1;
int b = NBLOCKS - a;
int x;
// Interpolate block coefficients from the this frame forth block and
// last frame forth block
for (x=... | false | FFmpeg | 6c9c8b06b32013c58101f27991eae251bf4eb485 | static int interp(RA144Context *ractx, int16_t *out, int block_num,
int copyold, int energy)
{
int work[10];
int a = block_num + 1;
int b = NBLOCKS - a;
int x;
for (x=0; x<30; x++)
out[x] = (a * ractx->lpc_coef[0][x] + b * ractx->lpc_coef[1][x])>> 2;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(RA144Context *VAR_0, int16_t *VAR_1, int VAR_2,
int VAR_3, int VAR_4)
{
int VAR_5[10];
int VAR_6 = VAR_2 + 1;
int VAR_7 = NBLOCKS - VAR_6;
int VAR_8;
for (VAR_8=0; VAR_8<30; VAR_8++)
VAR_1[VAR_8] = (VAR_6 * VAR_0->lpc_coef[0][VAR_8] +... | [
"static int FUNC_0(RA144Context *VAR_0, int16_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{",
"int VAR_5[10];",
"int VAR_6 = VAR_2 + 1;",
"int VAR_7 = NBLOCKS - VAR_6;",
"int VAR_8;",
"for (VAR_8=0; VAR_8<30; VAR_8++)",
"VAR_1[VAR_8] = (VAR_6 * VAR_0->lpc_coef[0][VAR_8] + VAR_7 * VAR_0->lpc_coef[1][VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
25,514 | sorecvfrom(so)
struct socket *so;
{
struct sockaddr_in addr;
int addrlen = sizeof(struct sockaddr_in);
DEBUG_CALL("sorecvfrom");
DEBUG_ARG("so = %lx", (long)so);
if (so->so_type == IPPROTO_ICMP) { /* This is a "ping" reply */
char buff[256];
int len;
len = recvfrom(so->s, buff, 256, 0,
... | false | qemu | 242acf3af4605adce933906bdc053b2414181ec7 | sorecvfrom(so)
struct socket *so;
{
struct sockaddr_in addr;
int addrlen = sizeof(struct sockaddr_in);
DEBUG_CALL("sorecvfrom");
DEBUG_ARG("so = %lx", (long)so);
if (so->so_type == IPPROTO_ICMP) {
char buff[256];
int len;
len = recvfrom(so->s, buff, 256, 0,
(struct sockaddr *)&add... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
struct socket *VAR_0;
{
struct sockaddr_in VAR_1;
int VAR_2 = sizeof(struct sockaddr_in);
DEBUG_CALL("FUNC_0");
DEBUG_ARG("VAR_0 = %lx", (long)VAR_0);
if (VAR_0->so_type == IPPROTO_ICMP) {
char VAR_3[256];
int VAR_6;
VAR_6 = recvfrom(VAR_0->s, VAR_3, 256, 0,
(struct ... | [
"FUNC_0(VAR_0)\nstruct socket *VAR_0;",
"{",
"struct sockaddr_in VAR_1;",
"int VAR_2 = sizeof(struct sockaddr_in);",
"DEBUG_CALL(\"FUNC_0\");",
"DEBUG_ARG(\"VAR_0 = %lx\", (long)VAR_0);",
"if (VAR_0->so_type == IPPROTO_ICMP) {",
"char VAR_3[256];",
"int VAR_6;",
"VAR_6 = recvfrom(VAR_0->s, VAR_3, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47,
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
25,516 | char *qmp_human_monitor_command(const char *command_line, bool has_cpu_index,
int64_t cpu_index, Error **errp)
{
char *output = NULL;
Monitor *old_mon, hmp;
memset(&hmp, 0, sizeof(hmp));
hmp.outbuf = qstring_new();
hmp.skip_flush = true;
old_mon = cur_... | false | qemu | b01fe89e91268c6b02720735643020746610e6d8 | char *qmp_human_monitor_command(const char *command_line, bool has_cpu_index,
int64_t cpu_index, Error **errp)
{
char *output = NULL;
Monitor *old_mon, hmp;
memset(&hmp, 0, sizeof(hmp));
hmp.outbuf = qstring_new();
hmp.skip_flush = true;
old_mon = cur_... | {
"code": [],
"line_no": []
} | char *FUNC_0(const char *VAR_0, bool VAR_1,
int64_t VAR_2, Error **VAR_3)
{
char *VAR_4 = NULL;
Monitor *old_mon, hmp;
memset(&hmp, 0, sizeof(hmp));
hmp.outbuf = qstring_new();
hmp.skip_flush = true;
old_mon = cur_mon;
cur_mon = &hmp;
if (V... | [
"char *FUNC_0(const char *VAR_0, bool VAR_1,\nint64_t VAR_2, Error **VAR_3)\n{",
"char *VAR_4 = NULL;",
"Monitor *old_mon, hmp;",
"memset(&hmp, 0, sizeof(hmp));",
"hmp.outbuf = qstring_new();",
"hmp.skip_flush = true;",
"old_mon = cur_mon;",
"cur_mon = &hmp;",
"if (VAR_1) {",
"int VAR_5 = monitor_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53
... |
25,517 | static void do_screen_dump(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
vga_screen_dump(argv[1]);
}
| false | qemu | 9307c4c1d93939db9b04117b654253af5113dc21 | static void do_screen_dump(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
vga_screen_dump(argv[1]);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, const char **VAR_1)
{
if (VAR_0 != 2) {
help_cmd(VAR_1[0]);
return;
}
vga_screen_dump(VAR_1[1]);
}
| [
"static void FUNC_0(int VAR_0, const char **VAR_1)\n{",
"if (VAR_0 != 2) {",
"help_cmd(VAR_1[0]);",
"return;",
"}",
"vga_screen_dump(VAR_1[1]);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
25,518 | static int rndis_get_response(USBNetState *s, uint8_t *buf)
{
int ret = 0;
struct rndis_response *r = s->rndis_resp.tqh_first;
if (!r)
return ret;
TAILQ_REMOVE(&s->rndis_resp, r, entries);
ret = r->length;
memcpy(buf, r->buf, r->length);
qemu_free(r);
return ret;
... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static int rndis_get_response(USBNetState *s, uint8_t *buf)
{
int ret = 0;
struct rndis_response *r = s->rndis_resp.tqh_first;
if (!r)
return ret;
TAILQ_REMOVE(&s->rndis_resp, r, entries);
ret = r->length;
memcpy(buf, r->buf, r->length);
qemu_free(r);
return ret;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBNetState *VAR_0, uint8_t *VAR_1)
{
int VAR_2 = 0;
struct rndis_response *VAR_3 = VAR_0->rndis_resp.tqh_first;
if (!VAR_3)
return VAR_2;
TAILQ_REMOVE(&VAR_0->rndis_resp, VAR_3, entries);
VAR_2 = VAR_3->length;
memcpy(VAR_1, VAR_3->VAR_1, VAR_3->length);
... | [
"static int FUNC_0(USBNetState *VAR_0, uint8_t *VAR_1)\n{",
"int VAR_2 = 0;",
"struct rndis_response *VAR_3 = VAR_0->rndis_resp.tqh_first;",
"if (!VAR_3)\nreturn VAR_2;",
"TAILQ_REMOVE(&VAR_0->rndis_resp, VAR_3, entries);",
"VAR_2 = VAR_3->length;",
"memcpy(VAR_1, VAR_3->VAR_1, VAR_3->length);",
"qemu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
25,520 | START_TEST(single_quote_string)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "'hello world'", "hello world" },
{ "'the quick brown fox \\' jumped over the fence'",
"the quick brown fox ' jumped over the fence" },
... | false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(single_quote_string)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "'hello world'", "hello world" },
{ "'the quick brown fox \\' jumped over the fence'",
"the quick brown fox ' jumped over the fence" },
... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
int VAR_1;
struct {
const char *encoded;
const char *decoded;
} VAR_2[] = {
{ "'hello world'", "hello world" },
{ "'the quick brown fox \\' jumped over the fence'",
"the quick brown fox ' jumped over the fence" },
{}
};
... | [
"FUNC_0(VAR_0)\n{",
"int VAR_1;",
"struct {",
"const char *encoded;",
"const char *decoded;",
"} VAR_2[] = {",
"{ \"'hello world'\", \"hello world\" },",
"{ \"'the quick brown fox \\\\' jumped over the fence'\",",
"\"the quick brown fox ' jumped over the fence\" },",
"{}",
"};",
"for (VAR_1 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
... |
25,521 | static inline void compute_hflags(CPUMIPSState *env)
{
env->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 |
MIPS_HFLAG_F64 | MIPS_HFLAG_FPU | MIPS_HFLAG_KSU |
MIPS_HFLAG_UX);
if (!(env->CP0_Status & (1 << CP0St_EXL)) &&
!(env->CP0_Status & ... | false | qemu | 03e6e5017757645f00b2f3b4f3a257973985e455 | static inline void compute_hflags(CPUMIPSState *env)
{
env->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 |
MIPS_HFLAG_F64 | MIPS_HFLAG_FPU | MIPS_HFLAG_KSU |
MIPS_HFLAG_UX);
if (!(env->CP0_Status & (1 << CP0St_EXL)) &&
!(env->CP0_Status & ... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(CPUMIPSState *VAR_0)
{
VAR_0->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 |
MIPS_HFLAG_F64 | MIPS_HFLAG_FPU | MIPS_HFLAG_KSU |
MIPS_HFLAG_UX);
if (!(VAR_0->CP0_Status & (1 << CP0St_EXL)) &&
!(VAR_0->CP0_Status & ... | [
"static inline void FUNC_0(CPUMIPSState *VAR_0)\n{",
"VAR_0->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 |\nMIPS_HFLAG_F64 | MIPS_HFLAG_FPU | MIPS_HFLAG_KSU |\nMIPS_HFLAG_UX);",
"if (!(VAR_0->CP0_Status & (1 << CP0St_EXL)) &&\n!(VAR_0->CP0_Status & (1 << CP0St_ERL)) &&\n!(VAR_0->hflags & MIPS_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21,
23,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47
],
[
49
],
[... |
25,522 | static void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq)
{
V9fsVirtioState *v = (V9fsVirtioState *)vdev;
V9fsState *s = &v->state;
V9fsPDU *pdu;
ssize_t len;
while ((pdu = pdu_alloc(s))) {
struct {
uint32_t size_le;
uint8_t id;
uint16_t ... | false | qemu | 51b19ebe4320f3dcd93cea71235c1219318ddfd2 | static void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq)
{
V9fsVirtioState *v = (V9fsVirtioState *)vdev;
V9fsState *s = &v->state;
V9fsPDU *pdu;
ssize_t len;
while ((pdu = pdu_alloc(s))) {
struct {
uint32_t size_le;
uint8_t id;
uint16_t ... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
V9fsVirtioState *v = (V9fsVirtioState *)VAR_0;
V9fsState *s = &v->state;
V9fsPDU *pdu;
ssize_t len;
while ((pdu = pdu_alloc(s))) {
struct {
uint32_t size_le;
uint8_t id;
uint16_t tag_l... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"V9fsVirtioState *v = (V9fsVirtioState *)VAR_0;",
"V9fsState *s = &v->state;",
"V9fsPDU *pdu;",
"ssize_t len;",
"while ((pdu = pdu_alloc(s))) {",
"struct {",
"uint32_t size_le;",
"uint8_t id;",
"uint16_t tag_le;",
"} QEMU_PACKED 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49,... |
25,523 | hwaddr ppc_hash64_get_phys_page_debug(CPUPPCState *env, target_ulong addr)
{
struct mmu_ctx_hash64 ctx;
if (unlikely(ppc_hash64_get_physical_address(env, &ctx, addr, 0, ACCESS_INT)
!= 0)) {
return -1;
}
return ctx.raddr & TARGET_PAGE_MASK;
}
| false | qemu | 91cda45b69e45a089f9989979a65db3f710c9925 | hwaddr ppc_hash64_get_phys_page_debug(CPUPPCState *env, target_ulong addr)
{
struct mmu_ctx_hash64 ctx;
if (unlikely(ppc_hash64_get_physical_address(env, &ctx, addr, 0, ACCESS_INT)
!= 0)) {
return -1;
}
return ctx.raddr & TARGET_PAGE_MASK;
}
| {
"code": [],
"line_no": []
} | hwaddr FUNC_0(CPUPPCState *env, target_ulong addr)
{
struct mmu_ctx_hash64 VAR_0;
if (unlikely(ppc_hash64_get_physical_address(env, &VAR_0, addr, 0, ACCESS_INT)
!= 0)) {
return -1;
}
return VAR_0.raddr & TARGET_PAGE_MASK;
}
| [
"hwaddr FUNC_0(CPUPPCState *env, target_ulong addr)\n{",
"struct mmu_ctx_hash64 VAR_0;",
"if (unlikely(ppc_hash64_get_physical_address(env, &VAR_0, addr, 0, ACCESS_INT)\n!= 0)) {",
"return -1;",
"}",
"return VAR_0.raddr & TARGET_PAGE_MASK;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
25,524 | int ff_framesync_request_frame(FFFrameSync *fs, AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
int input, ret;
if ((ret = ff_framesync_process_frame(fs, 0)) < 0)
return ret;
if (ret > 0)
return 0;
if (fs->eof)
return AVERROR_EOF;
input = fs->in_... | false | FFmpeg | 3b64e3ea45c580c5e158c086f2eb7c65635fc33b | int ff_framesync_request_frame(FFFrameSync *fs, AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
int input, ret;
if ((ret = ff_framesync_process_frame(fs, 0)) < 0)
return ret;
if (ret > 0)
return 0;
if (fs->eof)
return AVERROR_EOF;
input = fs->in_... | {
"code": [],
"line_no": []
} | int FUNC_0(FFFrameSync *VAR_0, AVFilterLink *VAR_1)
{
AVFilterContext *ctx = VAR_1->src;
int VAR_2, VAR_3;
if ((VAR_3 = ff_framesync_process_frame(VAR_0, 0)) < 0)
return VAR_3;
if (VAR_3 > 0)
return 0;
if (VAR_0->eof)
return AVERROR_EOF;
VAR_2 = VAR_0->in_requ... | [
"int FUNC_0(FFFrameSync *VAR_0, AVFilterLink *VAR_1)\n{",
"AVFilterContext *ctx = VAR_1->src;",
"int VAR_2, VAR_3;",
"if ((VAR_3 = ff_framesync_process_frame(VAR_0, 0)) < 0)\nreturn VAR_3;",
"if (VAR_3 > 0)\nreturn 0;",
"if (VAR_0->eof)\nreturn AVERROR_EOF;",
"VAR_2 = VAR_0->in_request;",
"VAR_3 = ff_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
25,525 | int pcilg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
CPUS390XState *env = &cpu->env;
S390PCIBusDevice *pbdev;
uint64_t offset;
uint64_t data;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
... | false | qemu | 5d1abf234462d13bef3617cc2c55b6815703ddf2 | int pcilg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
CPUS390XState *env = &cpu->env;
S390PCIBusDevice *pbdev;
uint64_t offset;
uint64_t data;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
... | {
"code": [],
"line_no": []
} | int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2)
{
CPUS390XState *env = &VAR_0->env;
S390PCIBusDevice *pbdev;
uint64_t offset;
uint64_t data;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(VAR_0));
if (env->psw.mask & PSW_MASK_PSTATE) {
... | [
"int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2)\n{",
"CPUS390XState *env = &VAR_0->env;",
"S390PCIBusDevice *pbdev;",
"uint64_t offset;",
"uint64_t data;",
"uint8_t len;",
"uint32_t fh;",
"uint8_t pcias;",
"cpu_synchronize_state(CPU(VAR_0));",
"if (env->psw.mask & PSW_MASK_PSTATE) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
25,527 | static Jpeg2000TgtNode *ff_jpeg2000_tag_tree_init(int w, int h)
{
int pw = w, ph = h;
Jpeg2000TgtNode *res, *t, *t2;
int32_t tt_size;
tt_size = tag_tree_size(w, h);
if (tt_size == -1)
return NULL;
t = res = av_mallocz_array(tt_size, sizeof(*t));
if (!res)
return... | false | FFmpeg | 84a6bc23570c17ce91071e41431103f709c0d595 | static Jpeg2000TgtNode *ff_jpeg2000_tag_tree_init(int w, int h)
{
int pw = w, ph = h;
Jpeg2000TgtNode *res, *t, *t2;
int32_t tt_size;
tt_size = tag_tree_size(w, h);
if (tt_size == -1)
return NULL;
t = res = av_mallocz_array(tt_size, sizeof(*t));
if (!res)
return... | {
"code": [],
"line_no": []
} | static Jpeg2000TgtNode *FUNC_0(int w, int h)
{
int VAR_0 = w, VAR_1 = h;
Jpeg2000TgtNode *res, *t, *t2;
int32_t tt_size;
tt_size = tag_tree_size(w, h);
if (tt_size == -1)
return NULL;
t = res = av_mallocz_array(tt_size, sizeof(*t));
if (!res)
return NULL;
... | [
"static Jpeg2000TgtNode *FUNC_0(int w, int h)\n{",
"int VAR_0 = w, VAR_1 = h;",
"Jpeg2000TgtNode *res, *t, *t2;",
"int32_t tt_size;",
"tt_size = tag_tree_size(w, h);",
"if (tt_size == -1)\nreturn NULL;",
"t = res = av_mallocz_array(tt_size, sizeof(*t));",
"if (!res)\nreturn NULL;",
"while (w > 1 || ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
... |
25,529 | int kvm_arch_put_registers(CPUState *cs, int level)
{
struct kvm_one_reg reg;
uint32_t fpr;
uint64_t val;
int i;
int ret;
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
/* If we are in AArch32 mode then we need to copy the AArch32 regs to the
* AArch64 regist... | true | qemu | 25b9fb107bc1f6735fdb3fce537792f5db95f78d | int kvm_arch_put_registers(CPUState *cs, int level)
{
struct kvm_one_reg reg;
uint32_t fpr;
uint64_t val;
int i;
int ret;
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
if (!is_a64(env)) {
aarch64_sync_32_to_64(env);
}
for (i = 0; i <... | {
"code": [
" reg.addr = (uintptr_t) &env->banked_spsr[i - 1];",
" reg.addr = (uintptr_t) &env->banked_spsr[i - 1];"
],
"line_no": [
151,
151
]
} | int FUNC_0(CPUState *VAR_0, int VAR_1)
{
struct kvm_one_reg VAR_2;
uint32_t fpr;
uint64_t val;
int VAR_3;
int VAR_4;
ARMCPU *cpu = ARM_CPU(VAR_0);
CPUARMState *env = &cpu->env;
if (!is_a64(env)) {
aarch64_sync_32_to_64(env);
}
for (VAR_3 = 0; V... | [
"int FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"struct kvm_one_reg VAR_2;",
"uint32_t fpr;",
"uint64_t val;",
"int VAR_3;",
"int VAR_4;",
"ARMCPU *cpu = ARM_CPU(VAR_0);",
"CPUARMState *env = &cpu->env;",
"if (!is_a64(env)) {",
"aarch64_sync_32_to_64(env);",
"}",
"for (VAR_3 = 0; VAR_3 < 31; 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,
1,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
61
... |
25,531 | static void sdl_refresh(DisplayState *ds)
{
SDL_Event ev1, *ev = &ev1;
int mod_state;
int buttonstate = SDL_GetMouseState(NULL, NULL);
if (last_vm_running != vm_running) {
last_vm_running = vm_running;
sdl_update_caption();
}
vga_hw_update();
SDL_EnableUNICODE(!... | false | qemu | 5b08fc106d3146ddc1447d82d4770fc402fc363b | static void sdl_refresh(DisplayState *ds)
{
SDL_Event ev1, *ev = &ev1;
int mod_state;
int buttonstate = SDL_GetMouseState(NULL, NULL);
if (last_vm_running != vm_running) {
last_vm_running = vm_running;
sdl_update_caption();
}
vga_hw_update();
SDL_EnableUNICODE(!... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisplayState *VAR_0)
{
SDL_Event ev1, *ev = &ev1;
int VAR_1;
int VAR_2 = SDL_GetMouseState(NULL, NULL);
if (last_vm_running != vm_running) {
last_vm_running = vm_running;
sdl_update_caption();
}
vga_hw_update();
SDL_EnableUNICODE(!is_graphic_c... | [
"static void FUNC_0(DisplayState *VAR_0)\n{",
"SDL_Event ev1, *ev = &ev1;",
"int VAR_1;",
"int VAR_2 = SDL_GetMouseState(NULL, NULL);",
"if (last_vm_running != vm_running) {",
"last_vm_running = vm_running;",
"sdl_update_caption();",
"}",
"vga_hw_update();",
"SDL_EnableUNICODE(!is_graphic_console(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47,
49
],
[
51
... |
25,532 | static int bdrv_check_byte_request(BlockDriverState *bs, int64_t offset,
size_t size)
{
int64_t len;
if (size > INT_MAX) {
return -EIO;
}
if (!bdrv_is_inserted(bs))
return -ENOMEDIUM;
if (bs->growable)
return 0;
len = ... | false | qemu | 75af1f34cd5b07c3c7fcf86dfc99a42de48a600d | static int bdrv_check_byte_request(BlockDriverState *bs, int64_t offset,
size_t size)
{
int64_t len;
if (size > INT_MAX) {
return -EIO;
}
if (!bdrv_is_inserted(bs))
return -ENOMEDIUM;
if (bs->growable)
return 0;
len = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
size_t VAR_2)
{
int64_t len;
if (VAR_2 > INT_MAX) {
return -EIO;
}
if (!bdrv_is_inserted(VAR_0))
return -ENOMEDIUM;
if (VAR_0->growable)
return 0;
len = bdrv_ge... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nsize_t VAR_2)\n{",
"int64_t len;",
"if (VAR_2 > INT_MAX) {",
"return -EIO;",
"}",
"if (!bdrv_is_inserted(VAR_0))\nreturn -ENOMEDIUM;",
"if (VAR_0->growable)\nreturn 0;",
"len = bdrv_getlength(VAR_0);",
"if (VAR_1 < 0)\nreturn -EIO;",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
31
],
[
35,
37
],
[
41,
43
],
[
47
],
[
49
]
] |
25,533 | static int planarRgb16ToRgb16Wrapper(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
const uint16_t *src102[] = { (uint16_t *)src[1], (uint16_t *)src[0], (uint16_t *)s... | false | FFmpeg | 7800b09ece52490dda4c46fbd8e93f92e8438428 | static int planarRgb16ToRgb16Wrapper(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
const uint16_t *src102[] = { (uint16_t *)src[1], (uint16_t *)src[0], (uint16_t *)s... | {
"code": [],
"line_no": []
} | static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],
int VAR_2[], int VAR_3, int VAR_4,
uint8_t *VAR_5[], int VAR_6[])
{
const uint16_t *VAR_7[] = { (uint16_t *)VAR_1[1], (uint16_t *)VAR_1[0], (uint16_t *)VAR_1[2] };
const ui... | [
"static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],\nint VAR_2[], int VAR_3, int VAR_4,\nuint8_t *VAR_5[], int VAR_6[])\n{",
"const uint16_t *VAR_7[] = { (uint16_t *)VAR_1[1], (uint16_t *)VAR_1[0], (uint16_t *)VAR_1[2] };",
"const uint16_t *VAR_8[] = { (uint16_t *)VAR_1[2], (uint16_t *)VAR_1[0], (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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31,
33,
35
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
25,534 | void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int i;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_num, 1);
for(i=0; i<h; i++) {
*((uint32_t*)(block )) = (((const stru... | false | FFmpeg | e45a2872fafe631c14aee9f79d0963d68c4fc1fd | void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int i;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_num, 1);
for(i=0; i<h; i++) {
*((uint32_t*)(block )) = (((const stru... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int VAR_6;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_num, 1);
for(VAR_6=0; VAR_6<VAR_3; VAR_6++) {
*((uint32_t*)(VAR_0 )) = (((const... | [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"POWERPC_TBL_DECLARE(altivec_put_pixels16_num, 1);",
"#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nint VAR_6;",
"POWERPC_TBL_START_COUNT(altivec_put_pixels16_num, 1);",
"for(VAR_6=0; VAR_6<VAR_3; VAR_6++) {",
"*((uint32_t*)(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
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
53
],
[
55
... |
25,535 | static ssize_t vnc_tls_pull(gnutls_transport_ptr_t transport,
void *data,
size_t len) {
struct VncState *vs = (struct VncState *)transport;
int ret;
retry:
ret = recv(vs->csock, data, len, 0);
if (ret < 0) {
if (errno == EINTR)
go... | false | qemu | 5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b | static ssize_t vnc_tls_pull(gnutls_transport_ptr_t transport,
void *data,
size_t len) {
struct VncState *vs = (struct VncState *)transport;
int ret;
retry:
ret = recv(vs->csock, data, len, 0);
if (ret < 0) {
if (errno == EINTR)
go... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(gnutls_transport_ptr_t transport,
void *data,
size_t len) {
struct VncState *VAR_0 = (struct VncState *)transport;
int VAR_1;
retry:
VAR_1 = recv(VAR_0->csock, data, len, 0);
if (VAR_1 < 0) {
if (errno == EINTR)
... | [
"static ssize_t FUNC_0(gnutls_transport_ptr_t transport,\nvoid *data,\nsize_t len) {",
"struct VncState *VAR_0 = (struct VncState *)transport;",
"int VAR_1;",
"retry:\nVAR_1 = recv(VAR_0->csock, data, len, 0);",
"if (VAR_1 < 0) {",
"if (errno == EINTR)\ngoto retry;",
"return -1;",
"}",
"return VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
25,536 | static bool pcie_aer_msg_root_port(PCIDevice *dev, const PCIEAERMsg *msg)
{
bool msg_sent;
uint16_t cmd;
uint8_t *aer_cap;
uint32_t root_cmd;
uint32_t root_status;
bool msi_trigger;
msg_sent = false;
cmd = pci_get_word(dev->config + PCI_COMMAND);
aer_cap = dev->config + d... | false | qemu | c3f33667a64a6de0b92106c862247d97d81490ef | static bool pcie_aer_msg_root_port(PCIDevice *dev, const PCIEAERMsg *msg)
{
bool msg_sent;
uint16_t cmd;
uint8_t *aer_cap;
uint32_t root_cmd;
uint32_t root_status;
bool msi_trigger;
msg_sent = false;
cmd = pci_get_word(dev->config + PCI_COMMAND);
aer_cap = dev->config + d... | {
"code": [],
"line_no": []
} | static bool FUNC_0(PCIDevice *dev, const PCIEAERMsg *msg)
{
bool msg_sent;
uint16_t cmd;
uint8_t *aer_cap;
uint32_t root_cmd;
uint32_t root_status;
bool msi_trigger;
msg_sent = false;
cmd = pci_get_word(dev->config + PCI_COMMAND);
aer_cap = dev->config + dev->exp.aer_cap;... | [
"static bool FUNC_0(PCIDevice *dev, const PCIEAERMsg *msg)\n{",
"bool msg_sent;",
"uint16_t cmd;",
"uint8_t *aer_cap;",
"uint32_t root_cmd;",
"uint32_t root_status;",
"bool msi_trigger;",
"msg_sent = false;",
"cmd = pci_get_word(dev->config + PCI_COMMAND);",
"aer_cap = dev->config + dev->exp.aer_c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
51
],
[
57
],
[
59,
61
],
[
63
],
[
65
],
[... |
25,537 | static void put_pci_irq_state(QEMUFile *f, void *pv, size_t size)
{
int i;
PCIDevice *s = container_of(pv, PCIDevice, config);
for (i = 0; i < PCI_NUM_PINS; ++i) {
qemu_put_be32(f, pci_irq_state(s, i));
}
}
| false | qemu | c3f8f61157625d0bb5bfc135047573de48fdc675 | static void put_pci_irq_state(QEMUFile *f, void *pv, size_t size)
{
int i;
PCIDevice *s = container_of(pv, PCIDevice, config);
for (i = 0; i < PCI_NUM_PINS; ++i) {
qemu_put_be32(f, pci_irq_state(s, i));
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
int VAR_3;
PCIDevice *s = container_of(VAR_1, PCIDevice, config);
for (VAR_3 = 0; VAR_3 < PCI_NUM_PINS; ++VAR_3) {
qemu_put_be32(VAR_0, pci_irq_state(s, VAR_3));
}
}
| [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"int VAR_3;",
"PCIDevice *s = container_of(VAR_1, PCIDevice, config);",
"for (VAR_3 = 0; VAR_3 < PCI_NUM_PINS; ++VAR_3) {",
"qemu_put_be32(VAR_0, pci_irq_state(s, VAR_3));",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,538 | static void data_plane_blk_remove_notifier(Notifier *n, void *data)
{
VirtIOBlockDataPlane *s = container_of(n, VirtIOBlockDataPlane,
remove_notifier);
assert(s->conf->conf.blk == data);
data_plane_remove_op_blockers(s);
}
| false | qemu | 348295838384941d1e5420d10e57366c4e303d45 | static void data_plane_blk_remove_notifier(Notifier *n, void *data)
{
VirtIOBlockDataPlane *s = container_of(n, VirtIOBlockDataPlane,
remove_notifier);
assert(s->conf->conf.blk == data);
data_plane_remove_op_blockers(s);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{
VirtIOBlockDataPlane *s = container_of(VAR_0, VirtIOBlockDataPlane,
remove_notifier);
assert(s->conf->conf.blk == VAR_1);
data_plane_remove_op_blockers(s);
}
| [
"static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{",
"VirtIOBlockDataPlane *s = container_of(VAR_0, VirtIOBlockDataPlane,\nremove_notifier);",
"assert(s->conf->conf.blk == VAR_1);",
"data_plane_remove_op_blockers(s);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
]
] |
25,539 | static int nbd_co_send_request(NbdClientSession *s,
struct nbd_request *request,
QEMUIOVector *qiov, int offset)
{
AioContext *aio_context;
int rc, ret;
qemu_co_mutex_lock(&s->send_mutex);
s->send_coroutine = qemu_coroutine_self();
aio_context = bdrv_get_aio_context(s->bs);
ai... | false | qemu | f53a829bb9ef14be800556cbc02d8b20fc1050a7 | static int nbd_co_send_request(NbdClientSession *s,
struct nbd_request *request,
QEMUIOVector *qiov, int offset)
{
AioContext *aio_context;
int rc, ret;
qemu_co_mutex_lock(&s->send_mutex);
s->send_coroutine = qemu_coroutine_self();
aio_context = bdrv_get_aio_context(s->bs);
ai... | {
"code": [],
"line_no": []
} | static int FUNC_0(NbdClientSession *VAR_0,
struct nbd_request *VAR_1,
QEMUIOVector *VAR_2, int VAR_3)
{
AioContext *aio_context;
int VAR_4, VAR_5;
qemu_co_mutex_lock(&VAR_0->send_mutex);
VAR_0->send_coroutine = qemu_coroutine_self();
aio_context = bdrv_get_aio_context(VAR_0->bs);
... | [
"static int FUNC_0(NbdClientSession *VAR_0,\nstruct nbd_request *VAR_1,\nQEMUIOVector *VAR_2, int VAR_3)\n{",
"AioContext *aio_context;",
"int VAR_4, VAR_5;",
"qemu_co_mutex_lock(&VAR_0->send_mutex);",
"VAR_0->send_coroutine = qemu_coroutine_self();",
"aio_context = bdrv_get_aio_context(VAR_0->bs);",
"a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
25,540 | static uint64_t ac97_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistAC97State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_AC97_CTRL:
case R_AC97_ADDR:
case R_AC97_DATAOUT:
case R_AC97_DATAIN:
case R_D_C... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t ac97_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistAC97State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_AC97_CTRL:
case R_AC97_ADDR:
case R_AC97_DATAOUT:
case R_AC97_DATAIN:
case R_D_C... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistAC97State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_AC97_CTRL:
case R_AC97_ADDR:
case R_AC97_DATAOUT:
case R_AC97_DATAIN:
case R_D_CTRL... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"MilkymistAC97State *s = opaque;",
"uint32_t r = 0;",
"addr >>= 2;",
"switch (addr) {",
"case R_AC97_CTRL:\ncase R_AC97_ADDR:\ncase R_AC97_DATAOUT:\ncase R_AC97_DATAIN:\ncase R_D_CTRL:\ncase R_D_ADDR:\ncase R_D_REMAINING:\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37
],
[
39
],
[
43,
45,
47
],
[
49
],
[
51
],
[
55
],
[
59
],
[
61
]
] |
25,541 | static void spr_write_ibatu_h (void *opaque, int sprn)
{
DisasContext *ctx = opaque;
gen_op_store_ibatu((sprn - SPR_IBAT4U) / 2);
RET_STOP(ctx);
}
| false | qemu | e1833e1f96456fd8fc17463246fe0b2050e68efb | static void spr_write_ibatu_h (void *opaque, int sprn)
{
DisasContext *ctx = opaque;
gen_op_store_ibatu((sprn - SPR_IBAT4U) / 2);
RET_STOP(ctx);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, int VAR_1)
{
DisasContext *ctx = VAR_0;
gen_op_store_ibatu((VAR_1 - SPR_IBAT4U) / 2);
RET_STOP(ctx);
}
| [
"static void FUNC_0 (void *VAR_0, int VAR_1)\n{",
"DisasContext *ctx = VAR_0;",
"gen_op_store_ibatu((VAR_1 - SPR_IBAT4U) / 2);",
"RET_STOP(ctx);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
25,542 | static int find_partition(BlockBackend *blk, int partition,
off_t *offset, off_t *size)
{
struct partition_record mbr[4];
uint8_t data[512];
int i;
int ext_partnum = 4;
int ret;
if ((ret = blk_read(blk, 0, data, 1)) < 0) {
error_report("error while re... | false | qemu | bd31c214c328bc6a2b2f5567623d964b65c8f44c | static int find_partition(BlockBackend *blk, int partition,
off_t *offset, off_t *size)
{
struct partition_record mbr[4];
uint8_t data[512];
int i;
int ext_partnum = 4;
int ret;
if ((ret = blk_read(blk, 0, data, 1)) < 0) {
error_report("error while re... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockBackend *VAR_0, int VAR_1,
off_t *VAR_2, off_t *VAR_3)
{
struct partition_record VAR_4[4];
uint8_t data[512];
int VAR_5;
int VAR_6 = 4;
int VAR_7;
if ((VAR_7 = blk_read(VAR_0, 0, data, 1)) < 0) {
error_report("error while readin... | [
"static int FUNC_0(BlockBackend *VAR_0, int VAR_1,\noff_t *VAR_2, off_t *VAR_3)\n{",
"struct partition_record VAR_4[4];",
"uint8_t data[512];",
"int VAR_5;",
"int VAR_6 = 4;",
"int VAR_7;",
"if ((VAR_7 = blk_read(VAR_0, 0, data, 1)) < 0) {",
"error_report(\"error while reading: %s\", strerror(-VAR_7))... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
25,543 | static void sun4m_common_init(int ram_size, int boot_device, DisplayState *ds,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model,
unsigned int machine, int max_ram)
{
... | false | qemu | b3ceef24f4fee8d5ed96b8c4a5d3e80c0a651f0b | static void sun4m_common_init(int ram_size, int boot_device, DisplayState *ds,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model,
unsigned int machine, int max_ram)
{
... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, int VAR_1, DisplayState *VAR_2,
const char *VAR_3, const char *VAR_4,
const char *VAR_5, const char *VAR_6,
unsigned int VAR_7, int VAR_8)
{
if ((unsigned int)VAR_0 > (unsigned int)VAR_8) {
... | [
"static void FUNC_0(int VAR_0, int VAR_1, DisplayState *VAR_2,\nconst char *VAR_3, const char *VAR_4,\nconst char *VAR_5, const char *VAR_6,\nunsigned int VAR_7, int VAR_8)\n{",
"if ((unsigned int)VAR_0 > (unsigned int)VAR_8) {",
"fprintf(stderr, \"qemu: Too much memory for this VAR_7: %d, maximum %d\\n\",\n(un... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
27,
29,
31
],
[
33
]
] |
25,544 | static always_inline void _cpu_ppc_store_hdecr (CPUState *env, uint32_t hdecr,
uint32_t value, int is_excp)
{
ppc_tb_t *tb_env = env->tb_env;
__cpu_ppc_store_decr(env, &tb_env->hdecr_next, tb_env->hdecr_timer,
&cpu_ppc_hdecr_excp, h... | false | qemu | b172c56a6d849554f7e43adc95983a9d6c042689 | static always_inline void _cpu_ppc_store_hdecr (CPUState *env, uint32_t hdecr,
uint32_t value, int is_excp)
{
ppc_tb_t *tb_env = env->tb_env;
__cpu_ppc_store_decr(env, &tb_env->hdecr_next, tb_env->hdecr_timer,
&cpu_ppc_hdecr_excp, h... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0 (CPUState *env, uint32_t hdecr,
uint32_t value, int is_excp)
{
ppc_tb_t *tb_env = env->tb_env;
__cpu_ppc_store_decr(env, &tb_env->hdecr_next, tb_env->hdecr_timer,
&cpu_ppc_hdecr_excp, hdecr, value, i... | [
"static always_inline void FUNC_0 (CPUState *env, uint32_t hdecr,\nuint32_t value, int is_excp)\n{",
"ppc_tb_t *tb_env = env->tb_env;",
"__cpu_ppc_store_decr(env, &tb_env->hdecr_next, tb_env->hdecr_timer,\n&cpu_ppc_hdecr_excp, hdecr, value, is_excp);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
]
] |
25,545 | static int nvdec_vp9_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
{
VP9SharedContext *h = avctx->priv_data;
const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt);
NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
CUVIDPICPARAMS *pp =... | false | FFmpeg | 4c7b023d56e09a78a587d036db1b64bf7c493b3d | static int nvdec_vp9_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
{
VP9SharedContext *h = avctx->priv_data;
const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt);
NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
CUVIDPICPARAMS *pp =... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, uint32_t VAR_2)
{
VP9SharedContext *h = VAR_0->priv_data;
const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0->sw_pix_fmt);
NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data;
CUVIDPICPARAMS *pp = &ctx->pic_params... | [
"static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, uint32_t VAR_2)\n{",
"VP9SharedContext *h = VAR_0->priv_data;",
"const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0->sw_pix_fmt);",
"NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data;",
"CUVIDPICPARAMS *pp = &ctx->pic_par... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
43
],
[
45,
47,
49,
53
],
[
55,
57,
61... |
25,546 | void qmp_disable_command(const char *name)
{
QmpCommand *cmd;
QTAILQ_FOREACH(cmd, &qmp_commands, node) {
if (strcmp(cmd->name, name) == 0) {
cmd->enabled = false;
return;
}
}
}
| false | qemu | f22d85e9e67262db34504f4079745f9843da6a92 | void qmp_disable_command(const char *name)
{
QmpCommand *cmd;
QTAILQ_FOREACH(cmd, &qmp_commands, node) {
if (strcmp(cmd->name, name) == 0) {
cmd->enabled = false;
return;
}
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0)
{
QmpCommand *cmd;
QTAILQ_FOREACH(cmd, &qmp_commands, node) {
if (strcmp(cmd->VAR_0, VAR_0) == 0) {
cmd->enabled = false;
return;
}
}
}
| [
"void FUNC_0(const char *VAR_0)\n{",
"QmpCommand *cmd;",
"QTAILQ_FOREACH(cmd, &qmp_commands, node) {",
"if (strcmp(cmd->VAR_0, VAR_0) == 0) {",
"cmd->enabled = false;",
"return;",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
25,547 | static void ref405ep_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
char *filename;
ppc4xx_bd_info_... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void ref405ep_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
char *filename;
ppc4xx_bd_info_... | {
"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;
char *VAR_4;
ppc4xx_bd_info_t bd;
CPUPPCState *env;
qemu_irq *pic;
MemoryRegion *bios;
... | [
"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;",
"char *VAR_4;",
"ppc4xx_bd_info_t bd;",
"CPUPPCState *env;",
"qemu_irq *pic;",
"MemoryRegion *bios;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
45
... |
25,548 | static int v9fs_synth_opendir(FsContext *ctx,
V9fsPath *fs_path, V9fsFidOpenState *fs)
{
V9fsSynthOpenState *synth_open;
V9fsSynthNode *node = *(V9fsSynthNode **)fs_path->data;
synth_open = g_malloc(sizeof(*synth_open));
synth_open->node = node;
node->open_count... | false | qemu | 364031f17932814484657e5551ba12957d993d7e | static int v9fs_synth_opendir(FsContext *ctx,
V9fsPath *fs_path, V9fsFidOpenState *fs)
{
V9fsSynthOpenState *synth_open;
V9fsSynthNode *node = *(V9fsSynthNode **)fs_path->data;
synth_open = g_malloc(sizeof(*synth_open));
synth_open->node = node;
node->open_count... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0,
V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)
{
V9fsSynthOpenState *synth_open;
V9fsSynthNode *node = *(V9fsSynthNode **)VAR_1->data;
synth_open = g_malloc(sizeof(*synth_open));
synth_open->node = node;
node->open_count++;
VA... | [
"static int FUNC_0(FsContext *VAR_0,\nV9fsPath *VAR_1, V9fsFidOpenState *VAR_2)\n{",
"V9fsSynthOpenState *synth_open;",
"V9fsSynthNode *node = *(V9fsSynthNode **)VAR_1->data;",
"synth_open = g_malloc(sizeof(*synth_open));",
"synth_open->node = node;",
"node->open_count++;",
"VAR_2->private = synth_open;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
25,552 | static void raw_reopen_commit(BDRVReopenState *state)
{
BDRVRawState *new_s = state->opaque;
BDRVRawState *s = state->bs->opaque;
memcpy(s, new_s, sizeof(BDRVRawState));
g_free(state->opaque);
state->opaque = NULL;
}
| false | qemu | 2e6fc7eb1a4af1b127df5f07b8bb28af891946fa | static void raw_reopen_commit(BDRVReopenState *state)
{
BDRVRawState *new_s = state->opaque;
BDRVRawState *s = state->bs->opaque;
memcpy(s, new_s, sizeof(BDRVRawState));
g_free(state->opaque);
state->opaque = NULL;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BDRVReopenState *VAR_0)
{
BDRVRawState *new_s = VAR_0->opaque;
BDRVRawState *s = VAR_0->bs->opaque;
memcpy(s, new_s, sizeof(BDRVRawState));
g_free(VAR_0->opaque);
VAR_0->opaque = NULL;
}
| [
"static void FUNC_0(BDRVReopenState *VAR_0)\n{",
"BDRVRawState *new_s = VAR_0->opaque;",
"BDRVRawState *s = VAR_0->bs->opaque;",
"memcpy(s, new_s, sizeof(BDRVRawState));",
"g_free(VAR_0->opaque);",
"VAR_0->opaque = NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
]
] |
25,553 | static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
int width, int height)
{
DrawTextContext *dtext = ctx->priv;
uint32_t code = 0, prev_code = 0;
int x = 0, y = 0, i = 0, ret;
int max_text_line_w = 0, len;
int box_w, box_h;
char *text = dtext->text... | true | FFmpeg | 7457da3698c641212bb921cfb0aa0e7853fdda48 | static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
int width, int height)
{
DrawTextContext *dtext = ctx->priv;
uint32_t code = 0, prev_code = 0;
int x = 0, y = 0, i = 0, ret;
int max_text_line_w = 0, len;
int box_w, box_h;
char *text = dtext->text... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1,
int VAR_2, int VAR_3)
{
DrawTextContext *dtext = VAR_0->priv;
uint32_t code = 0, prev_code = 0;
int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7;
int VAR_8 = 0, VAR_9;
int VAR_10, VAR_11;
char *VAR_12 = dt... | [
"static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1,\nint VAR_2, int VAR_3)\n{",
"DrawTextContext *dtext = VAR_0->priv;",
"uint32_t code = 0, prev_code = 0;",
"int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7;",
"int VAR_8 = 0, VAR_9;",
"int VAR_10, VAR_11;",
"char *VAR_12 = dtext->VAR_12;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
49
... |
25,554 | static int av_thread_message_queue_recv_locked(AVThreadMessageQueue *mq,
void *msg,
unsigned flags)
{
while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) {
if ((flags & AV_THREAD_MESSAGE_NONBLOCK))
... | true | FFmpeg | bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd | static int av_thread_message_queue_recv_locked(AVThreadMessageQueue *mq,
void *msg,
unsigned flags)
{
while (!mq->err_recv && av_fifo_size(mq->fifo) < mq->elsize) {
if ((flags & AV_THREAD_MESSAGE_NONBLOCK))
... | {
"code": [
" pthread_cond_wait(&mq->cond, &mq->lock);",
" pthread_cond_signal(&mq->cond);",
" pthread_cond_wait(&mq->cond, &mq->lock);",
" pthread_cond_signal(&mq->cond);"
],
"line_no": [
15,
25,
15,
25
]
} | static int FUNC_0(AVThreadMessageQueue *VAR_0,
void *VAR_1,
unsigned VAR_2)
{
while (!VAR_0->err_recv && av_fifo_size(VAR_0->fifo) < VAR_0->elsize) {
if ((VAR_2 & AV_THREAD_MESSAGE_NONBLOCK))
retu... | [
"static int FUNC_0(AVThreadMessageQueue *VAR_0,\nvoid *VAR_1,\nunsigned VAR_2)\n{",
"while (!VAR_0->err_recv && av_fifo_size(VAR_0->fifo) < VAR_0->elsize) {",
"if ((VAR_2 & AV_THREAD_MESSAGE_NONBLOCK))\nreturn AVERROR(EAGAIN);",
"pthread_cond_wait(&VAR_0->cond, &VAR_0->lock);",
"}",
"if (av_fifo_size(VAR_... | [
0,
0,
0,
1,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
25,556 | static int blkdebug_debug_resume(BlockDriverState *bs, const char *tag)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugSuspendedReq *r;
QLIST_FOREACH(r, &s->suspended_reqs, next) {
if (!strcmp(r->tag, tag)) {
qemu_coroutine_enter(r->co, NULL);
return 0;
}
... | true | qemu | c547e5640d5b0993cdfb252331065c1a1d813bd8 | static int blkdebug_debug_resume(BlockDriverState *bs, const char *tag)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugSuspendedReq *r;
QLIST_FOREACH(r, &s->suspended_reqs, next) {
if (!strcmp(r->tag, tag)) {
qemu_coroutine_enter(r->co, NULL);
return 0;
}
... | {
"code": [
" BlkdebugSuspendedReq *r;",
" QLIST_FOREACH(r, &s->suspended_reqs, next) {",
" BlkdebugSuspendedReq *r;",
" QLIST_FOREACH(r, &s->suspended_reqs, next) {"
],
"line_no": [
7,
11,
7,
11
]
} | static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)
{
BDRVBlkdebugState *s = VAR_0->opaque;
BlkdebugSuspendedReq *r;
QLIST_FOREACH(r, &s->suspended_reqs, next) {
if (!strcmp(r->VAR_1, VAR_1)) {
qemu_coroutine_enter(r->co, NULL);
return 0;
}
}
... | [
"static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)\n{",
"BDRVBlkdebugState *s = VAR_0->opaque;",
"BlkdebugSuspendedReq *r;",
"QLIST_FOREACH(r, &s->suspended_reqs, next) {",
"if (!strcmp(r->VAR_1, VAR_1)) {",
"qemu_coroutine_enter(r->co, NULL);",
"return 0;",
"}",
"}",
"return -ENOENT;"... | [
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
25,558 | static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb)
{
BlockRequest *blkreq;
uint64_t sector;
sector = virtio_ldq_p(VIRTIO_DEVICE(req->dev), &req->out.sector);
bdrv_acct_start(req->dev->bs, &req->acct, req->qiov.size, BDRV_ACCT_WRITE);
trace_virtio_blk_handle_wri... | true | qemu | 42e38c1fd0199155d32f3464aedce282d3d7f6a1 | static void virtio_blk_handle_write(VirtIOBlockReq *req, MultiReqBuffer *mrb)
{
BlockRequest *blkreq;
uint64_t sector;
sector = virtio_ldq_p(VIRTIO_DEVICE(req->dev), &req->out.sector);
bdrv_acct_start(req->dev->bs, &req->acct, req->qiov.size, BDRV_ACCT_WRITE);
trace_virtio_blk_handle_wri... | {
"code": [
" bdrv_acct_start(req->dev->bs, &req->acct, req->qiov.size, BDRV_ACCT_WRITE);",
" virtio_blk_rw_complete(req, -EIO);",
" virtio_blk_rw_complete(req, -EIO);"
],
"line_no": [
15,
25,
25
]
} | static void FUNC_0(VirtIOBlockReq *VAR_0, MultiReqBuffer *VAR_1)
{
BlockRequest *blkreq;
uint64_t sector;
sector = virtio_ldq_p(VIRTIO_DEVICE(VAR_0->dev), &VAR_0->out.sector);
bdrv_acct_start(VAR_0->dev->bs, &VAR_0->acct, VAR_0->qiov.size, BDRV_ACCT_WRITE);
trace_virtio_blk_handle_write(... | [
"static void FUNC_0(VirtIOBlockReq *VAR_0, MultiReqBuffer *VAR_1)\n{",
"BlockRequest *blkreq;",
"uint64_t sector;",
"sector = virtio_ldq_p(VIRTIO_DEVICE(VAR_0->dev), &VAR_0->out.sector);",
"bdrv_acct_start(VAR_0->dev->bs, &VAR_0->acct, VAR_0->qiov.size, BDRV_ACCT_WRITE);",
"trace_virtio_blk_handle_write(V... | [
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53... |
25,559 | static int ppce500_load_device_tree(MachineState *machine,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size,
... | true | qemu | 2343dd11a673597aa59813fd0cac2ae42e2e0312 | static int ppce500_load_device_tree(MachineState *machine,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MachineState *VAR_0,
PPCE500Params *VAR_1,
hwaddr VAR_2,
hwaddr VAR_3,
hwaddr VAR_4,
hwaddr VAR_5,
... | [
"static int FUNC_0(MachineState *VAR_0,\nPPCE500Params *VAR_1,\nhwaddr VAR_2,\nhwaddr VAR_3,\nhwaddr VAR_4,\nhwaddr VAR_5,\nhwaddr VAR_6,\nbool VAR_7)\n{",
"CPUPPCState *env = first_cpu->env_ptr;",
"int VAR_8 = -1;",
"uint64_t mem_reg_property[] = { 0, cpu_to_be64(VAR_0->ram_size) };",
"int VAR_9;",
"void... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
25,560 | pvscsi_on_cmd_setup_rings(PVSCSIState *s)
{
PVSCSICmdDescSetupRings *rc =
(PVSCSICmdDescSetupRings *) s->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");
pvscsi_dbg_dump_tx_rings_config(rc);
pvscsi_ring_init_data(&s->rings, rc);
s->rings_info_valid = TRUE;
... | true | qemu | 3e831b40e015ba34dfb55ff11f767001839425ff | pvscsi_on_cmd_setup_rings(PVSCSIState *s)
{
PVSCSICmdDescSetupRings *rc =
(PVSCSICmdDescSetupRings *) s->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");
pvscsi_dbg_dump_tx_rings_config(rc);
pvscsi_ring_init_data(&s->rings, rc);
s->rings_info_valid = TRUE;
... | {
"code": [
" pvscsi_ring_init_data(&s->rings, rc);"
],
"line_no": [
17
]
} | FUNC_0(PVSCSIState *VAR_0)
{
PVSCSICmdDescSetupRings *rc =
(PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");
pvscsi_dbg_dump_tx_rings_config(rc);
pvscsi_ring_init_data(&VAR_0->rings, rc);
VAR_0->rings_info_valid = TRUE;
r... | [
"FUNC_0(PVSCSIState *VAR_0)\n{",
"PVSCSICmdDescSetupRings *rc =\n(PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data;",
"trace_pvscsi_on_cmd_arrived(\"PVSCSI_CMD_SETUP_RINGS\");",
"pvscsi_dbg_dump_tx_rings_config(rc);",
"pvscsi_ring_init_data(&VAR_0->rings, rc);",
"VAR_0->rings_info_valid = TRUE;",
"return... | [
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
25,561 | void ff_snow_vertical_compose97i_mmx(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, IDWTELEM *b5, int width){
long i = width;
while(i & 15)
{
i--;
b4[i] -= (W_DM*(b3[i] + b5[i])+W_DO)>>W_DS;
b3[i] -= (W_CM*(b2[i] + b4[i])+W_CO)>>W_CS;
b2[i] += (W... | true | FFmpeg | cefa5999534de75686607891b4c06f5b8bd99991 | void ff_snow_vertical_compose97i_mmx(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, IDWTELEM *b5, int width){
long i = width;
while(i & 15)
{
i--;
b4[i] -= (W_DM*(b3[i] + b5[i])+W_DO)>>W_DS;
b3[i] -= (W_CM*(b2[i] + b4[i])+W_CO)>>W_CS;
b2[i] += (W... | {
"code": [
" snow_vertical_compose_mmx_load(\"%4\",\"mm0\",\"mm2\",\"mm4\",\"mm6\")",
" snow_vertical_compose_mmx_add(\"%6\",\"mm0\",\"mm2\",\"mm4\",\"mm6\")",
" snow_vertical_compose_mmx_move(\"mm0\",\"mm2\",\"mm4\",\"mm6\",\"mm1\",\"mm3\",\"mm5\",\"mm7\")",
" snow_vertic... | void FUNC_0(IDWTELEM *VAR_0, IDWTELEM *VAR_1, IDWTELEM *VAR_2, IDWTELEM *VAR_3, IDWTELEM *VAR_4, IDWTELEM *VAR_5, int VAR_6){
long VAR_7 = VAR_6;
while(VAR_7 & 15)
{
VAR_7--;
VAR_4[VAR_7] -= (W_DM*(VAR_3[VAR_7] + VAR_5[VAR_7])+W_DO)>>W_DS;
VAR_3[VAR_7] -= (W_CM*(VAR_2[VAR_7] + ... | [
"void FUNC_0(IDWTELEM *VAR_0, IDWTELEM *VAR_1, IDWTELEM *VAR_2, IDWTELEM *VAR_3, IDWTELEM *VAR_4, IDWTELEM *VAR_5, int VAR_6){",
"long VAR_7 = VAR_6;",
"while(VAR_7 & 15)\n{",
"VAR_7--;",
"VAR_4[VAR_7] -= (W_DM*(VAR_3[VAR_7] + VAR_5[VAR_7])+W_DO)>>W_DS;",
"VAR_3[VAR_7] -= (W_CM*(VAR_2[VAR_7] + VAR_4[VAR_7... | [
0,
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,
31,
33,
35,
37,
39,
43,
45,
47,
51,
53,
55,
57,
59,
61,
63,
65,... |
25,562 | static int parse_add_fd(QemuOpts *opts, void *opaque)
{
int fd, dupfd, flags;
int64_t fdset_id;
const char *fd_opaque = NULL;
fd = qemu_opt_get_number(opts, "fd", -1);
fdset_id = qemu_opt_get_number(opts, "set", -1);
fd_opaque = qemu_opt_get(opts, "opaque");
if (fd < 0) {
... | true | qemu | 636a30a890c50f734c90ee929e16492fbc6c73e3 | static int parse_add_fd(QemuOpts *opts, void *opaque)
{
int fd, dupfd, flags;
int64_t fdset_id;
const char *fd_opaque = NULL;
fd = qemu_opt_get_number(opts, "fd", -1);
fdset_id = qemu_opt_get_number(opts, "set", -1);
fd_opaque = qemu_opt_get(opts, "opaque");
if (fd < 0) {
... | {
"code": [
" monitor_fdset_add_fd(dupfd, true, fdset_id, fd_opaque ? true : false,",
" fd_opaque, NULL);"
],
"line_no": [
109,
111
]
} | static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
int64_t fdset_id;
const char *VAR_5 = NULL;
VAR_2 = qemu_opt_get_number(VAR_0, "VAR_2", -1);
fdset_id = qemu_opt_get_number(VAR_0, "set", -1);
VAR_5 = qemu_opt_get(VAR_0, "VAR_1");
if (VAR_2 < 0) {
... | [
"static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"int64_t fdset_id;",
"const char *VAR_5 = NULL;",
"VAR_2 = qemu_opt_get_number(VAR_0, \"VAR_2\", -1);",
"fdset_id = qemu_opt_get_number(VAR_0, \"set\", -1);",
"VAR_5 = qemu_opt_get(VAR_0, \"VAR_1\");",
"if (VAR_2 < 0) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
53
],
[
55
],
[
57,
59
],
[... |
25,563 | void av_thread_message_flush(AVThreadMessageQueue *mq)
{
#if HAVE_THREADS
int used, off;
void *free_func = mq->free_func;
pthread_mutex_lock(&mq->lock);
used = av_fifo_size(mq->fifo);
if (free_func)
for (off = 0; off < used; off += mq->elsize)
av_fifo_generic_peek_at(m... | true | FFmpeg | bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd | void av_thread_message_flush(AVThreadMessageQueue *mq)
{
#if HAVE_THREADS
int used, off;
void *free_func = mq->free_func;
pthread_mutex_lock(&mq->lock);
used = av_fifo_size(mq->fifo);
if (free_func)
for (off = 0; off < used; off += mq->elsize)
av_fifo_generic_peek_at(m... | {
"code": [
" pthread_cond_broadcast(&mq->cond);",
" pthread_cond_broadcast(&mq->cond);",
" pthread_cond_broadcast(&mq->cond);"
],
"line_no": [
25,
25,
25
]
} | void FUNC_0(AVThreadMessageQueue *VAR_0)
{
#if HAVE_THREADS
int used, off;
void *free_func = VAR_0->free_func;
pthread_mutex_lock(&VAR_0->lock);
used = av_fifo_size(VAR_0->fifo);
if (free_func)
for (off = 0; off < used; off += VAR_0->elsize)
av_fifo_generic_peek_at(VAR... | [
"void FUNC_0(AVThreadMessageQueue *VAR_0)\n{",
"#if HAVE_THREADS\nint used, off;",
"void *free_func = VAR_0->free_func;",
"pthread_mutex_lock(&VAR_0->lock);",
"used = av_fifo_size(VAR_0->fifo);",
"if (free_func)\nfor (off = 0; off < used; off += VAR_0->elsize)",
"av_fifo_generic_peek_at(VAR_0->fifo, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
]
] |
25,564 | int av_open_input_stream(AVFormatContext **ic_ptr,
AVIOContext *pb, const char *filename,
AVInputFormat *fmt, AVFormatParameters *ap)
{
int err;
AVDictionary *opts;
AVFormatContext *ic;
AVFormatParameters default_ap;
if(!ap){
ap=&d... | true | FFmpeg | 4e59c8ecf1433b85b539c5e89bb68cfe8b839866 | int av_open_input_stream(AVFormatContext **ic_ptr,
AVIOContext *pb, const char *filename,
AVInputFormat *fmt, AVFormatParameters *ap)
{
int err;
AVDictionary *opts;
AVFormatContext *ic;
AVFormatParameters default_ap;
if(!ap){
ap=&d... | {
"code": [
" ic = avformat_alloc_context();"
],
"line_no": [
33
]
} | int FUNC_0(AVFormatContext **VAR_0,
AVIOContext *VAR_1, const char *VAR_2,
AVInputFormat *VAR_3, AVFormatParameters *VAR_4)
{
int VAR_5;
AVDictionary *opts;
AVFormatContext *ic;
AVFormatParameters default_ap;
if(!VAR_4){
VAR_4=&def... | [
"int FUNC_0(AVFormatContext **VAR_0,\nAVIOContext *VAR_1, const char *VAR_2,\nAVInputFormat *VAR_3, AVFormatParameters *VAR_4)\n{",
"int VAR_5;",
"AVDictionary *opts;",
"AVFormatContext *ic;",
"AVFormatParameters default_ap;",
"if(!VAR_4){",
"VAR_4=&default_ap;",
"memset(VAR_4, 0, sizeof(default_ap));... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51
... |
25,565 | void hmp_info_local_apic(Monitor *mon, const QDict *qdict)
{
x86_cpu_dump_local_apic_state(mon_get_cpu(), (FILE *)mon, monitor_fprintf,
CPU_DUMP_FPU);
}
| true | qemu | 854e67fea6a6f181163a5467fc9ba04de8d181bb | void hmp_info_local_apic(Monitor *mon, const QDict *qdict)
{
x86_cpu_dump_local_apic_state(mon_get_cpu(), (FILE *)mon, monitor_fprintf,
CPU_DUMP_FPU);
}
| {
"code": [
" x86_cpu_dump_local_apic_state(mon_get_cpu(), (FILE *)mon, monitor_fprintf,"
],
"line_no": [
5
]
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
x86_cpu_dump_local_apic_state(mon_get_cpu(), (FILE *)VAR_0, monitor_fprintf,
CPU_DUMP_FPU);
}
| [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"x86_cpu_dump_local_apic_state(mon_get_cpu(), (FILE *)VAR_0, monitor_fprintf,\nCPU_DUMP_FPU);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
25,567 | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
{
if (!mon)
return;
if (mon->mc && !mon->mc->print_enabled) {
qemu_error_new(QERR_UNDEFINED_ERROR);
} else {
char buf[4096];
vsnprintf(buf, sizeof(buf), fmt, ap);
monitor_puts(mon, buf);
}... | false | qemu | b8b08266bd58d26e9c6b529ab4130c13eaed3406 | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
{
if (!mon)
return;
if (mon->mc && !mon->mc->print_enabled) {
qemu_error_new(QERR_UNDEFINED_ERROR);
} else {
char buf[4096];
vsnprintf(buf, sizeof(buf), fmt, ap);
monitor_puts(mon, buf);
}... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const char *VAR_1, va_list VAR_2)
{
if (!VAR_0)
return;
if (VAR_0->mc && !VAR_0->mc->print_enabled) {
qemu_error_new(QERR_UNDEFINED_ERROR);
} else {
char VAR_3[4096];
vsnprintf(VAR_3, sizeof(VAR_3), VAR_1, VAR_2);
monitor_puts(VA... | [
"void FUNC_0(Monitor *VAR_0, const char *VAR_1, va_list VAR_2)\n{",
"if (!VAR_0)\nreturn;",
"if (VAR_0->mc && !VAR_0->mc->print_enabled) {",
"qemu_error_new(QERR_UNDEFINED_ERROR);",
"} else {",
"char VAR_3[4096];",
"vsnprintf(VAR_3, sizeof(VAR_3), VAR_1, VAR_2);",
"monitor_puts(VAR_0, VAR_3);",
"}",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
25,568 | static void piix4_acpi_system_hot_add_init(MemoryRegion *parent,
PCIBus *bus, PIIX4PMState *s)
{
memory_region_init_io(&s->io_gpe, OBJECT(s), &piix4_gpe_ops, s,
"acpi-gpe0", GPE_LEN);
memory_region_add_subregion(parent, GPE_BASE, &s->io_g... | false | qemu | 80db0e7822962554c91bef05d784c898e8ab1c3c | static void piix4_acpi_system_hot_add_init(MemoryRegion *parent,
PCIBus *bus, PIIX4PMState *s)
{
memory_region_init_io(&s->io_gpe, OBJECT(s), &piix4_gpe_ops, s,
"acpi-gpe0", GPE_LEN);
memory_region_add_subregion(parent, GPE_BASE, &s->io_g... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegion *VAR_0,
PCIBus *VAR_1, PIIX4PMState *VAR_2)
{
memory_region_init_io(&VAR_2->io_gpe, OBJECT(VAR_2), &piix4_gpe_ops, VAR_2,
"acpi-gpe0", GPE_LEN);
memory_region_add_subregion(VAR_0, GPE_BASE, &VAR_2->io_gpe);... | [
"static void FUNC_0(MemoryRegion *VAR_0,\nPCIBus *VAR_1, PIIX4PMState *VAR_2)\n{",
"memory_region_init_io(&VAR_2->io_gpe, OBJECT(VAR_2), &piix4_gpe_ops, VAR_2,\n\"acpi-gpe0\", GPE_LEN);",
"memory_region_add_subregion(VAR_0, GPE_BASE, &VAR_2->io_gpe);",
"acpi_pcihp_init(OBJECT(VAR_2), &VAR_2->acpi_pci_hotplug,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
15,
17
],
[
21
],
[
23,
25,
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
25,569 | long do_sigreturn(CPUX86State *env)
{
struct sigframe *frame;
abi_ulong frame_addr = env->regs[R_ESP] - 8;
target_sigset_t target_set;
sigset_t set;
int eax, i;
#if defined(DEBUG_SIGNAL)
fprintf(stderr, "do_sigreturn\n");
#endif
if (!lock_user_struct(VERIFY_READ, frame, frame_add... | false | qemu | 1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3 | long do_sigreturn(CPUX86State *env)
{
struct sigframe *frame;
abi_ulong frame_addr = env->regs[R_ESP] - 8;
target_sigset_t target_set;
sigset_t set;
int eax, i;
#if defined(DEBUG_SIGNAL)
fprintf(stderr, "do_sigreturn\n");
#endif
if (!lock_user_struct(VERIFY_READ, frame, frame_add... | {
"code": [],
"line_no": []
} | long FUNC_0(CPUX86State *VAR_0)
{
struct sigframe *VAR_1;
abi_ulong frame_addr = VAR_0->regs[R_ESP] - 8;
target_sigset_t target_set;
sigset_t set;
int VAR_2, VAR_3;
#if defined(DEBUG_SIGNAL)
fprintf(stderr, "FUNC_0\n");
#endif
if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr,... | [
"long FUNC_0(CPUX86State *VAR_0)\n{",
"struct sigframe *VAR_1;",
"abi_ulong frame_addr = VAR_0->regs[R_ESP] - 8;",
"target_sigset_t target_set;",
"sigset_t set;",
"int VAR_2, VAR_3;",
"#if defined(DEBUG_SIGNAL)\nfprintf(stderr, \"FUNC_0\\n\");",
"#endif\nif (!lock_user_struct(VERIFY_READ, VAR_1, frame... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21,
23,
25
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
51,
53
],
[
55
],
[
57
... |
25,572 | static ssize_t vc_sendv_compat(VLANClientState *vc, const struct iovec *iov,
int iovcnt)
{
uint8_t buffer[4096];
size_t offset = 0;
int i;
for (i = 0; i < iovcnt; i++) {
size_t len;
len = MIN(sizeof(buffer) - offset, iov[i].iov_len);
me... | false | qemu | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 | static ssize_t vc_sendv_compat(VLANClientState *vc, const struct iovec *iov,
int iovcnt)
{
uint8_t buffer[4096];
size_t offset = 0;
int i;
for (i = 0; i < iovcnt; i++) {
size_t len;
len = MIN(sizeof(buffer) - offset, iov[i].iov_len);
me... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(VLANClientState *vc, const struct iovec *iov,
int iovcnt)
{
uint8_t buffer[4096];
size_t offset = 0;
int VAR_0;
for (VAR_0 = 0; VAR_0 < iovcnt; VAR_0++) {
size_t len;
len = MIN(sizeof(buffer) - offset, iov[VAR_0].iov_len);
... | [
"static ssize_t FUNC_0(VLANClientState *vc, const struct iovec *iov,\nint iovcnt)\n{",
"uint8_t buffer[4096];",
"size_t offset = 0;",
"int VAR_0;",
"for (VAR_0 = 0; VAR_0 < iovcnt; VAR_0++) {",
"size_t len;",
"len = MIN(sizeof(buffer) - offset, iov[VAR_0].iov_len);",
"memcpy(buffer + offset, iov[VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
]
] |
25,573 | void do_blockdev_backup(BlockdevBackup *backup, BlockJobTxn *txn, Error **errp)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!backup->has_speed) {
backup->speed = 0;
}
if (!backup->has_on_source_error) {
... | false | qemu | 13b9414b5798539e2dbb87a570d96184fe21edf4 | void do_blockdev_backup(BlockdevBackup *backup, BlockJobTxn *txn, Error **errp)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!backup->has_speed) {
backup->speed = 0;
}
if (!backup->has_on_source_error) {
... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockdevBackup *VAR_0, BlockJobTxn *VAR_1, Error **VAR_2)
{
BlockDriverState *bs;
BlockDriverState *target_bs;
Error *local_err = NULL;
AioContext *aio_context;
if (!VAR_0->has_speed) {
VAR_0->speed = 0;
}
if (!VAR_0->has_on_source_error) {
VAR_0->on_s... | [
"void FUNC_0(BlockdevBackup *VAR_0, BlockJobTxn *VAR_1, Error **VAR_2)\n{",
"BlockDriverState *bs;",
"BlockDriverState *target_bs;",
"Error *local_err = NULL;",
"AioContext *aio_context;",
"if (!VAR_0->has_speed) {",
"VAR_0->speed = 0;",
"}",
"if (!VAR_0->has_on_source_error) {",
"VAR_0->on_source... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43
],
[
45
... |
25,575 | static void input_visitor_test_add(const char *testpath,
TestInputVisitorData *data,
void (*test_func)(TestInputVisitorData *data, const void *user_data))
{
g_test_add(testpath, TestInputVisitorData, data, NULL, test_func,
vis... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void input_visitor_test_add(const char *testpath,
TestInputVisitorData *data,
void (*test_func)(TestInputVisitorData *data, const void *user_data))
{
g_test_add(testpath, TestInputVisitorData, data, NULL, test_func,
vis... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0,
TestInputVisitorData *VAR_3,
void (*VAR_2)(TestInputVisitorData *VAR_3, const void *VAR_3))
{
g_test_add(VAR_0, TestInputVisitorData, VAR_3, NULL, VAR_2,
visitor_input_teardown);
}
| [
"static void FUNC_0(const char *VAR_0,\nTestInputVisitorData *VAR_3,\nvoid (*VAR_2)(TestInputVisitorData *VAR_3, const void *VAR_3))\n{",
"g_test_add(VAR_0, TestInputVisitorData, VAR_3, NULL, VAR_2,\nvisitor_input_teardown);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
]
] |
25,579 | static void spapr_populate_pa_features(PowerPCCPU *cpu, void *fdt, int offset,
bool legacy_guest)
{
CPUPPCState *env = &cpu->env;
uint8_t pa_features_206[] = { 6, 0,
0xf6, 0x1f, 0xc7, 0x00, 0x80, 0xc0 };
uint8_t pa_features_207[] = { 24, 0,
0xf6,... | false | qemu | ee76a09fc72cfbfab2bb5529320ef7e460adffd8 | static void spapr_populate_pa_features(PowerPCCPU *cpu, void *fdt, int offset,
bool legacy_guest)
{
CPUPPCState *env = &cpu->env;
uint8_t pa_features_206[] = { 6, 0,
0xf6, 0x1f, 0xc7, 0x00, 0x80, 0xc0 };
uint8_t pa_features_207[] = { 24, 0,
0xf6,... | {
"code": [],
"line_no": []
} | static void FUNC_0(PowerPCCPU *VAR_0, void *VAR_1, int VAR_2,
bool VAR_3)
{
CPUPPCState *env = &VAR_0->env;
uint8_t pa_features_206[] = { 6, 0,
0xf6, 0x1f, 0xc7, 0x00, 0x80, 0xc0 };
uint8_t pa_features_207[] = { 24, 0,
0xf6, 0x1f, 0xc7, 0xc0, 0x8... | [
"static void FUNC_0(PowerPCCPU *VAR_0, void *VAR_1, int VAR_2,\nbool VAR_3)\n{",
"CPUPPCState *env = &VAR_0->env;",
"uint8_t pa_features_206[] = { 6, 0,",
"0xf6, 0x1f, 0xc7, 0x00, 0x80, 0xc0 };",
"uint8_t pa_features_207[] = { 24, 0,",
"0xf6, 0x1f, 0xc7, 0xc0, 0x80, 0xf0,\n0x80, 0x00, 0x00, 0x00, 0x00, 0x... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29,
33,
37,
41,
45,
49,
53,
57,
61,
65,
69,
71
],
[
73
],
[
75
],
[
79
],
[
81
],
[... |
25,581 | void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque,
Error **errp)
{
BlockJob *job;
if (bs->job || bdrv_in_use(bs)) {
error_set(errp, QERR_DEVICE_IN_USE, bdrv_get_device_name(bs));
... | false | qemu | c83c66c3b58893a4dc056e272822beb88fe9ec7f | void *block_job_create(const BlockJobType *job_type, BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque,
Error **errp)
{
BlockJob *job;
if (bs->job || bdrv_in_use(bs)) {
error_set(errp, QERR_DEVICE_IN_USE, bdrv_get_device_name(bs));
... | {
"code": [],
"line_no": []
} | void *FUNC_0(const BlockJobType *VAR_0, BlockDriverState *VAR_1,
BlockDriverCompletionFunc *VAR_2, void *VAR_3,
Error **VAR_4)
{
BlockJob *job;
if (VAR_1->job || bdrv_in_use(VAR_1)) {
error_set(VAR_4, QERR_DEVICE_IN_USE, bdrv_get_device_name(VAR_1));... | [
"void *FUNC_0(const BlockJobType *VAR_0, BlockDriverState *VAR_1,\nBlockDriverCompletionFunc *VAR_2, void *VAR_3,\nError **VAR_4)\n{",
"BlockJob *job;",
"if (VAR_1->job || bdrv_in_use(VAR_1)) {",
"error_set(VAR_4, QERR_DEVICE_IN_USE, bdrv_get_device_name(VAR_1));",
"return NULL;",
"}",
"bdrv_set_in_use(... | [
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
25,582 | int bdrv_is_snapshot(BlockDriverState *bs)
{
return !!(bs->open_flags & BDRV_O_SNAPSHOT);
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | int bdrv_is_snapshot(BlockDriverState *bs)
{
return !!(bs->open_flags & BDRV_O_SNAPSHOT);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0)
{
return !!(VAR_0->open_flags & BDRV_O_SNAPSHOT);
}
| [
"int FUNC_0(BlockDriverState *VAR_0)\n{",
"return !!(VAR_0->open_flags & BDRV_O_SNAPSHOT);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,584 | static void nvdimm_init_fit_buffer(NvdimmFitBuffer *fit_buf)
{
qemu_mutex_init(&fit_buf->lock);
fit_buf->fit = g_array_new(false, true /* clear */, 1);
}
| false | qemu | 12f86b5b3e1bdf75e0a467d771c16cc42f3a1f1a | static void nvdimm_init_fit_buffer(NvdimmFitBuffer *fit_buf)
{
qemu_mutex_init(&fit_buf->lock);
fit_buf->fit = g_array_new(false, true , 1);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(NvdimmFitBuffer *VAR_0)
{
qemu_mutex_init(&VAR_0->lock);
VAR_0->fit = g_array_new(false, true , 1);
}
| [
"static void FUNC_0(NvdimmFitBuffer *VAR_0)\n{",
"qemu_mutex_init(&VAR_0->lock);",
"VAR_0->fit = g_array_new(false, true , 1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
25,587 | static void test_cipher(const void *opaque)
{
const QCryptoCipherTestData *data = opaque;
QCryptoCipher *cipher;
Error *err = NULL;
uint8_t *key, *iv, *ciphertext, *plaintext, *outtext;
size_t nkey, niv, nciphertext, nplaintext;
char *outtexthex;
g_test_message("foo");
nkey ... | true | qemu | 019c2ab8623daee210df8b1085a33b1e83c9ee11 | static void test_cipher(const void *opaque)
{
const QCryptoCipherTestData *data = opaque;
QCryptoCipher *cipher;
Error *err = NULL;
uint8_t *key, *iv, *ciphertext, *plaintext, *outtext;
size_t nkey, niv, nciphertext, nplaintext;
char *outtexthex;
g_test_message("foo");
nkey ... | {
"code": [
" Error *err = NULL;",
" g_test_message(\"foo\");",
" &err);",
" g_assert(err == NULL);",
" &err) == 0);",
" g_assert(err == NULL);",
" &err) == 0);",
" g_assert(err == NULL);"... | static void FUNC_0(const void *VAR_0)
{
const QCryptoCipherTestData *VAR_1 = VAR_0;
QCryptoCipher *cipher;
Error *err = NULL;
uint8_t *key, *iv, *ciphertext, *plaintext, *outtext;
size_t nkey, niv, nciphertext, nplaintext;
char *VAR_2;
g_test_message("foo");
nkey = unhex_str... | [
"static void FUNC_0(const void *VAR_0)\n{",
"const QCryptoCipherTestData *VAR_1 = VAR_0;",
"QCryptoCipher *cipher;",
"Error *err = NULL;",
"uint8_t *key, *iv, *ciphertext, *plaintext, *outtext;",
"size_t nkey, niv, nciphertext, nplaintext;",
"char *VAR_2;",
"g_test_message(\"foo\");",
"nkey = unhex_... | [
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
41,
43,
45,
47
],
[
49
],
[
51
],
[
57
],
... |
25,588 | static uint64_t pmsav5_insn_ap_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_insn);
}
| true | qemu | 7e09797c299712cafa7bc05dd57c1b13afcc6039 | static uint64_t pmsav5_insn_ap_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_insn);
}
| {
"code": [
" return simple_mpu_ap_bits(env->cp15.c5_insn);"
],
"line_no": [
5
]
} | static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_insn);
}
| [
"static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)\n{",
"return simple_mpu_ap_bits(env->cp15.c5_insn);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,589 | static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
if (avctx->channels > 1) {
av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n",
avctx->channels);
return -1;
if (avctx->sample_rate != 8000) {
av_log(avctx, AV_LOG_ERROR, "Sample rat... | true | FFmpeg | a8bdf2405c6027f45a899eaaa6ba74e97c1c2701 | static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
if (avctx->channels > 1) {
av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n",
avctx->channels);
return -1;
if (avctx->sample_rate != 8000) {
av_log(avctx, AV_LOG_ERROR, "Sample rat... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx) {
if (avctx->channels > 1) {
av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n",
avctx->channels);
return -1;
if (avctx->sample_rate != 8000) {
av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz req... | [
"static av_cold int FUNC_0(AVCodecContext *avctx) {",
"if (avctx->channels > 1) {",
"av_log(avctx, AV_LOG_ERROR, \"Mono required for GSM, got %d channels\\n\",\navctx->channels);",
"return -1;",
"if (avctx->sample_rate != 8000) {",
"av_log(avctx, AV_LOG_ERROR, \"Sample rate 8000Hz required for GSM, got %d... | [
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
],
[
14
],
[
16,
18
],
[
20,
22
],
[
25,
27,
29
],
[
31,
33
],
[
35,
37
],
[
42
],
[
46
],
[
48,
50
],
[
52
],
[
54
],
[
56
],
[... |
25,590 | static void avc_wgt_4x2_msa(uint8_t *data,
int32_t stride,
int32_t log2_denom,
int32_t src_weight,
int32_t offset_in)
{
uint32_t data0, data1;
v16u8 zero = { 0 };
v16u8 src0, src1;
v4... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | static void avc_wgt_4x2_msa(uint8_t *data,
int32_t stride,
int32_t log2_denom,
int32_t src_weight,
int32_t offset_in)
{
uint32_t data0, data1;
v16u8 zero = { 0 };
v16u8 src0, src1;
v4... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
int32_t VAR_1,
int32_t VAR_2,
int32_t VAR_3,
int32_t VAR_4)
{
uint32_t data0, data1;
v16u8 zero = { 0 };
v16u8 src0, src1;
v4i32 res0, res1;
v8... | [
"static void FUNC_0(uint8_t *VAR_0,\nint32_t VAR_1,\nint32_t VAR_2,\nint32_t VAR_3,\nint32_t VAR_4)\n{",
"uint32_t data0, data1;",
"v16u8 zero = { 0 };",
"v16u8 src0, src1;",
"v4i32 res0, res1;",
"v8i16 temp0, temp1;",
"v16u8 vec0, vec1;",
"v8i16 wgt, denom, offset;",
"VAR_4 <<= (VAR_2);",
"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,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
... |
25,591 | static int quorum_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQuorumState *s = bs->opaque;
Error *local_err = NULL;
QemuOpts *opts;
bool *opened;
QDict *sub = NULL;
QList *list = NULL;
const QListEntry *lentry;
int i;
in... | true | qemu | a9db86b223030bd40bdd81b160788196bc95fe6f | static int quorum_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQuorumState *s = bs->opaque;
Error *local_err = NULL;
QemuOpts *opts;
bool *opened;
QDict *sub = NULL;
QList *list = NULL;
const QListEntry *lentry;
int i;
in... | {
"code": [
" int i;",
" BDRVQuorumState *s = bs->opaque;",
" ret = quorum_valid_threshold(s->threshold, s->num_children, &local_err);",
" if (qemu_opt_get_bool(opts, QUORUM_OPT_BLKVERIFY, false) &&",
" s->num_children == 2 && s->threshold == 2) {",
" s->is_blkverify ... | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVQuorumState *s = VAR_0->opaque;
Error *local_err = NULL;
QemuOpts *opts;
bool *opened;
QDict *sub = NULL;
QList *list = NULL;
const QListEntry *VAR_4;
int VAR_5;
... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVQuorumState *s = VAR_0->opaque;",
"Error *local_err = NULL;",
"QemuOpts *opts;",
"bool *opened;",
"QDict *sub = NULL;",
"QList *list = NULL;",
"const QListEntry *VAR_4;",
"int VAR_5;",
"int VAR_6 = 0;",
... | [
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
1,
1,
1,
0,
1,
1,
1,
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
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
51
... |
25,592 | void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output,
const FFTSample *input, FFTSample *tmp)
{
long n8, n4, n2, n;
x86_reg k;
const uint16_t *revtab = s->fft.revtab;
const FFTSample *tcos = s->tcos;
const FFTSample *tsin = s->tsin;
const FFTSample *in1, *in2... | true | FFmpeg | b9fa32082c71013e90eab9e9997967d2939cf4a6 | void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output,
const FFTSample *input, FFTSample *tmp)
{
long n8, n4, n2, n;
x86_reg k;
const uint16_t *revtab = s->fft.revtab;
const FFTSample *tcos = s->tcos;
const FFTSample *tsin = s->tsin;
const FFTSample *in1, *in2... | {
"code": [
"void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output,",
" const FFTSample *input, FFTSample *tmp)",
" long n8, n4, n2, n;",
" n8 = n >> 3;",
" long n8, n4, n2, n;",
" n8 = n >> 3;",
" n8 = n >> 3;"
],
"line_no": [
1,
3,
... | void FUNC_0(MDCTContext *VAR_0, FFTSample *VAR_1,
const FFTSample *VAR_2, FFTSample *VAR_3)
{
long VAR_4, VAR_5, VAR_6, VAR_7;
x86_reg k;
const uint16_t *VAR_8 = VAR_0->fft.VAR_8;
const FFTSample *VAR_9 = VAR_0->VAR_9;
const FFTSample *VAR_10 = VAR_0->VAR_10;
cons... | [
"void FUNC_0(MDCTContext *VAR_0, FFTSample *VAR_1,\nconst FFTSample *VAR_2, FFTSample *VAR_3)\n{",
"long VAR_4, VAR_5, VAR_6, VAR_7;",
"x86_reg k;",
"const uint16_t *VAR_8 = VAR_0->fft.VAR_8;",
"const FFTSample *VAR_9 = VAR_0->VAR_9;",
"const FFTSample *VAR_10 = VAR_0->VAR_10;",
"const FFTSample *VAR_11... | [
1,
1,
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
43,
45,
47,
49,
51,
53,
55,
57,... |
25,594 | void ff_put_h264_qpel8_mc01_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_8w_msa(src - (stride * 2), stride, dst, stride, 8, 0);
}
| false | FFmpeg | 6796a1dd8c14843b77925cb83a3ef88706ae1dd0 | void ff_put_h264_qpel8_mc01_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_8w_msa(src - (stride * 2), stride, dst, stride, 8, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_vt_qrt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8, 0);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_vt_qrt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
25,595 | int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret = 0;
/* If there is a user-supplied mutex locking routine, call it. */
if (ff_lockmgr_cb) {
if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
return -1;
}
entangled_thread_counter+... | false | FFmpeg | 8b00ab0113a8ca40429e0a06331be83996963a9e | int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret = 0;
if (ff_lockmgr_cb) {
if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
return -1;
}
entangled_thread_counter++;
if(entangled_thread_counter != 1){
av_log(avctx,... | {
"code": [],
"line_no": []
} | int VAR_0 avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret = 0;
if (ff_lockmgr_cb) {
if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))
return -1;
}
entangled_thread_counter++;
if(entangled_thread_counter != 1){
av_log(avctx, AV_LOG_ERROR,... | [
"int VAR_0 avcodec_open(AVCodecContext *avctx, AVCodec *codec)\n{",
"int ret = 0;",
"if (ff_lockmgr_cb) {",
"if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))\nreturn -1;",
"}",
"entangled_thread_counter++;",
"if(entangled_thread_counter != 1){",
"av_log(avctx, AV_LOG_ERROR, \"insufficient thread lo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
25,596 | static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
int *got_frame_ptr)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb, s_gb;
int n, res, n_samples = 480;
double lsps[MAX_FRAMES][MAX_LSPS];
const double *mean_lsf = s->lsps == 16 ?
... | false | FFmpeg | 3deb4b54a24f8cddce463d9f5751b01efeb976af | static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
int *got_frame_ptr)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb, s_gb;
int n, res, n_samples = 480;
double lsps[MAX_FRAMES][MAX_LSPS];
const double *mean_lsf = s->lsps == 16 ?
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,
int *VAR_2)
{
WMAVoiceContext *s = VAR_0->priv_data;
GetBitContext *gb = &s->gb, s_gb;
int VAR_3, VAR_4, VAR_5 = 480;
double VAR_6[MAX_FRAMES][MAX_LSPS];
const double *VAR_7 = s->VAR_6 == 16 ?
wmavoi... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nint *VAR_2)\n{",
"WMAVoiceContext *s = VAR_0->priv_data;",
"GetBitContext *gb = &s->gb, s_gb;",
"int VAR_3, VAR_4, VAR_5 = 480;",
"double VAR_6[MAX_FRAMES][MAX_LSPS];",
"const double *VAR_7 = s->VAR_6 == 16 ?\nwmavoice_mean_lsf16[s->lsp_def_mode] ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
25,597 | static void virtual_css_bridge_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = virtual_css_bridge_init;
dc->no_user = 1;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void virtual_css_bridge_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = virtual_css_bridge_init;
dc->no_user = 1;
}
| {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);
k->init = virtual_css_bridge_init;
dc->no_user = 1;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);",
"k->init = virtual_css_bridge_init;",
"dc->no_user = 1;",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
25,598 | static void free_picture(MpegEncContext *s, Picture *pic){
int i;
if(pic->data[0] && pic->type!=FF_BUFFER_TYPE_SHARED){
free_frame_buffer(s, pic);
}
av_freep(&pic->mb_var);
av_freep(&pic->mc_mb_var);
av_freep(&pic->mb_mean);
av_freep(&pic->mbskip_table);
av_freep(&pi... | true | FFmpeg | 5029a406334ad0eaf92130e23d596e405a8a5aa0 | static void free_picture(MpegEncContext *s, Picture *pic){
int i;
if(pic->data[0] && pic->type!=FF_BUFFER_TYPE_SHARED){
free_frame_buffer(s, pic);
}
av_freep(&pic->mb_var);
av_freep(&pic->mc_mb_var);
av_freep(&pic->mb_mean);
av_freep(&pic->mbskip_table);
av_freep(&pi... | {
"code": [
" av_freep(&pic->qscale_table);"
],
"line_no": [
23
]
} | static void FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1){
int VAR_2;
if(VAR_1->data[0] && VAR_1->type!=FF_BUFFER_TYPE_SHARED){
free_frame_buffer(VAR_0, VAR_1);
}
av_freep(&VAR_1->mb_var);
av_freep(&VAR_1->mc_mb_var);
av_freep(&VAR_1->mb_mean);
av_freep(&VAR_1->mbskip_tab... | [
"static void FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1){",
"int VAR_2;",
"if(VAR_1->data[0] && VAR_1->type!=FF_BUFFER_TYPE_SHARED){",
"free_frame_buffer(VAR_0, VAR_1);",
"}",
"av_freep(&VAR_1->mb_var);",
"av_freep(&VAR_1->mc_mb_var);",
"av_freep(&VAR_1->mb_mean);",
"av_freep(&VAR_1->mbskip_table)... | [
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
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
... |
25,599 | static void tracked_request_begin(BdrvTrackedRequest *req,
BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, bool is_write)
{
*req = (BdrvTrackedRequest){
.bs = bs,
.sector_num = sect... | true | qemu | 5f8b6491f20732e0a31e64bbf75b62def579e044 | static void tracked_request_begin(BdrvTrackedRequest *req,
BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, bool is_write)
{
*req = (BdrvTrackedRequest){
.bs = bs,
.sector_num = sect... | {
"code": [],
"line_no": []
} | static void FUNC_0(BdrvTrackedRequest *VAR_0,
BlockDriverState *VAR_1,
int64_t VAR_2,
int VAR_3, bool VAR_4)
{
*VAR_0 = (BdrvTrackedRequest){
.VAR_1 = VAR_1,
.VAR_2 = VAR_2,
.VAR_3 =... | [
"static void FUNC_0(BdrvTrackedRequest *VAR_0,\nBlockDriverState *VAR_1,\nint64_t VAR_2,\nint VAR_3, bool VAR_4)\n{",
"*VAR_0 = (BdrvTrackedRequest){",
".VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_3 = VAR_3,\n.VAR_4 = VAR_4,\n};",
"qemu_co_queue_init(&VAR_0->wait_queue);",
"QLIST_INSERT_HEAD(&VAR_1->tracked_requ... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13,
15,
17,
19,
22
],
[
26
],
[
30
],
[
32
]
] |
25,601 | static int mov_read_close(AVFormatContext *s)
{
int i;
MOVContext *mov = s->priv_data;
for(i=0; i<mov->total_streams; i++)
mov_free_stream_context(mov->streams[i]);
for(i=0; i<s->nb_streams; i++)
av_free(s->streams[i]);
return 0;
}
| true | FFmpeg | 4533d2d67f28860304cdaa8aa0b3db85f368810e | static int mov_read_close(AVFormatContext *s)
{
int i;
MOVContext *mov = s->priv_data;
for(i=0; i<mov->total_streams; i++)
mov_free_stream_context(mov->streams[i]);
for(i=0; i<s->nb_streams; i++)
av_free(s->streams[i]);
return 0;
}
| {
"code": [
" av_free(s->streams[i]);"
],
"line_no": [
15
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int VAR_1;
MOVContext *mov = VAR_0->priv_data;
for(VAR_1=0; VAR_1<mov->total_streams; VAR_1++)
mov_free_stream_context(mov->streams[VAR_1]);
for(VAR_1=0; VAR_1<VAR_0->nb_streams; VAR_1++)
av_free(VAR_0->streams[VAR_1]);
return 0;
}... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int VAR_1;",
"MOVContext *mov = VAR_0->priv_data;",
"for(VAR_1=0; VAR_1<mov->total_streams; VAR_1++)",
"mov_free_stream_context(mov->streams[VAR_1]);",
"for(VAR_1=0; VAR_1<VAR_0->nb_streams; VAR_1++)",
"av_free(VAR_0->streams[VAR_1]);",
"return 0;",
"... | [
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
25,603 | static int aac_decode_frame(AVCodecContext *avccontext, void *data,
int *data_size, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AACContext *ac = avccontext->priv_data;
ChannelElement *che = NULL, *che_prev = NULL;
GetBitContext ... | true | FFmpeg | 7caee063a0b71a2b9bdd21f508bb39b6b7a83ceb | static int aac_decode_frame(AVCodecContext *avccontext, void *data,
int *data_size, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AACContext *ac = avccontext->priv_data;
ChannelElement *che = NULL, *che_prev = NULL;
GetBitContext ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
AACContext *ac = VAR_0->priv_data;
ChannelElement *che = NULL, *che_prev = NULL;
GetBitContext gb;
enum RawDataBl... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"AACContext *ac = VAR_0->priv_data;",
"ChannelElement *che = NULL, *che_prev = NULL;",
"GetBitContext gb;",
"enum RawDataBlockType VAR_6, VAR_7 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,604 | static inline void dv_guess_qnos(EncBlockInfo* blks, int* qnos)
{
int size[5];
int i, j, k, a, prev, a2;
EncBlockInfo* b;
size[4]= 1<<24;
do {
b = blks;
for (i=0; i<5; i++) {
if (!qnos[i])
continue;
qnos[i]--;
size[i] = 0;
... | true | FFmpeg | 6df5f6ae51ca3e9f3af760066bc7b3423677a8b4 | static inline void dv_guess_qnos(EncBlockInfo* blks, int* qnos)
{
int size[5];
int i, j, k, a, prev, a2;
EncBlockInfo* b;
size[4]= 1<<24;
do {
b = blks;
for (i=0; i<5; i++) {
if (!qnos[i])
continue;
qnos[i]--;
size[i] = 0;
... | {
"code": [
" size[4]= 1<<24;",
" for(a2=a+1; b->next[k] >= mb_area_start[a2+1]; a2++);"
],
"line_no": [
13,
57
]
} | static inline void FUNC_0(EncBlockInfo* VAR_0, int* VAR_1)
{
int VAR_2[5];
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
EncBlockInfo* b;
VAR_2[4]= 1<<24;
do {
b = VAR_0;
for (VAR_3=0; VAR_3<5; VAR_3++) {
if (!VAR_1[VAR_3])
continue;
VAR... | [
"static inline void FUNC_0(EncBlockInfo* VAR_0, int* VAR_1)\n{",
"int VAR_2[5];",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"EncBlockInfo* b;",
"VAR_2[4]= 1<<24;",
"do {",
"b = VAR_0;",
"for (VAR_3=0; VAR_3<5; VAR_3++) {",
"if (!VAR_1[VAR_3])\ncontinue;",
"VAR_1[VAR_3]--;",
"VAR_2[VAR_3] ... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,605 | static av_cold int hnm_decode_init(AVCodecContext *avctx)
{
Hnm4VideoContext *hnm = avctx->priv_data;
if (avctx->extradata_size < 1) {
av_log(avctx, AV_LOG_ERROR,
"Extradata missing, decoder requires version number\n");
return AVERROR_INVALIDDATA;
}
hnm->versio... | false | FFmpeg | bd8d28e2d2713f0368ee6b7dbb5ec251cbc162ac | static av_cold int hnm_decode_init(AVCodecContext *avctx)
{
Hnm4VideoContext *hnm = avctx->priv_data;
if (avctx->extradata_size < 1) {
av_log(avctx, AV_LOG_ERROR,
"Extradata missing, decoder requires version number\n");
return AVERROR_INVALIDDATA;
}
hnm->versio... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
Hnm4VideoContext *hnm = avctx->priv_data;
if (avctx->extradata_size < 1) {
av_log(avctx, AV_LOG_ERROR,
"Extradata missing, decoder requires version number\n");
return AVERROR_INVALIDDATA;
}
hnm->version = avc... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"Hnm4VideoContext *hnm = avctx->priv_data;",
"if (avctx->extradata_size < 1) {",
"av_log(avctx, AV_LOG_ERROR,\n\"Extradata missing, decoder requires version number\\n\");",
"return AVERROR_INVALIDDATA;",
"}",
"hnm->version = avctx->extradata[0];",... | [
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
],
[
45
],
[
47
],
... |
25,606 | static int coroutine_fn bdrv_aligned_preadv(BlockDriverState *bs,
BdrvTrackedRequest *req, int64_t offset, unsigned int bytes,
int64_t align, QEMUIOVector *qiov, int flags)
{
BlockDriver *drv = bs->drv;
int ret;
int64_t sector_num = offset >> BDRV_SECTOR_BITS;
unsigned int nb_sectors = ... | true | qemu | 33f461e0c5d8efa21ef7e746be561fc57a1df106 | static int coroutine_fn bdrv_aligned_preadv(BlockDriverState *bs,
BdrvTrackedRequest *req, int64_t offset, unsigned int bytes,
int64_t align, QEMUIOVector *qiov, int flags)
{
BlockDriver *drv = bs->drv;
int ret;
int64_t sector_num = offset >> BDRV_SECTOR_BITS;
unsigned int nb_sectors = ... | {
"code": [
" ret = drv->bdrv_co_readv(bs, sector_num,",
" MIN(nb_sectors, max_nb_sectors), qiov);"
],
"line_no": [
113,
115
]
} | static int VAR_0 bdrv_aligned_preadv(BlockDriverState *bs,
BdrvTrackedRequest *req, int64_t offset, unsigned int bytes,
int64_t align, QEMUIOVector *qiov, int flags)
{
BlockDriver *drv = bs->drv;
int ret;
int64_t sector_num = offset >> BDRV_SECTOR_BITS;
unsigned int nb_sectors = bytes >... | [
"static int VAR_0 bdrv_aligned_preadv(BlockDriverState *bs,\nBdrvTrackedRequest *req, int64_t offset, unsigned int bytes,\nint64_t align, QEMUIOVector *qiov, int flags)\n{",
"BlockDriver *drv = bs->drv;",
"int ret;",
"int64_t sector_num = offset >> BDRV_SECTOR_BITS;",
"unsigned int nb_sectors = bytes >> BDR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
29
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59
],
[
61
],
[
63
],
[
67
],
[
69
... |
25,607 | static uint16_t nvme_identify_ns(NvmeCtrl *n, NvmeIdentify *c)
{
NvmeNamespace *ns;
uint32_t nsid = le32_to_cpu(c->nsid);
uint64_t prp1 = le64_to_cpu(c->prp1);
uint64_t prp2 = le64_to_cpu(c->prp2);
if (nsid == 0 || nsid > n->num_namespaces) {
return NVME_INVALID_NSID | NVME_DNR;
... | true | qemu | 1ee24514aed34760fb2863d98bea3a1b705d9c9f | static uint16_t nvme_identify_ns(NvmeCtrl *n, NvmeIdentify *c)
{
NvmeNamespace *ns;
uint32_t nsid = le32_to_cpu(c->nsid);
uint64_t prp1 = le64_to_cpu(c->prp1);
uint64_t prp2 = le64_to_cpu(c->prp2);
if (nsid == 0 || nsid > n->num_namespaces) {
return NVME_INVALID_NSID | NVME_DNR;
... | {
"code": [
" if (nsid == 0 || nsid > n->num_namespaces) {",
" if (nsid == 0 || nsid > n->num_namespaces) {"
],
"line_no": [
15,
15
]
} | static uint16_t FUNC_0(NvmeCtrl *n, NvmeIdentify *c)
{
NvmeNamespace *ns;
uint32_t nsid = le32_to_cpu(c->nsid);
uint64_t prp1 = le64_to_cpu(c->prp1);
uint64_t prp2 = le64_to_cpu(c->prp2);
if (nsid == 0 || nsid > n->num_namespaces) {
return NVME_INVALID_NSID | NVME_DNR;
}
... | [
"static uint16_t FUNC_0(NvmeCtrl *n, NvmeIdentify *c)\n{",
"NvmeNamespace *ns;",
"uint32_t nsid = le32_to_cpu(c->nsid);",
"uint64_t prp1 = le64_to_cpu(c->prp1);",
"uint64_t prp2 = le64_to_cpu(c->prp2);",
"if (nsid == 0 || nsid > n->num_namespaces) {",
"return NVME_INVALID_NSID | NVME_DNR;",
"}",
"ns... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
]
] |
25,608 | void dpy_gfx_replace_surface(QemuConsole *con,
DisplaySurface *surface)
{
DisplayState *s = con->ds;
DisplaySurface *old_surface = con->surface;
DisplayChangeListener *dcl;
con->surface = surface;
QLIST_FOREACH(dcl, &s->listeners, next) {
if (con != (dcl->con ? d... | true | qemu | 6905b93447a42e606dfd126b90f75f4cd3c6fe94 | void dpy_gfx_replace_surface(QemuConsole *con,
DisplaySurface *surface)
{
DisplayState *s = con->ds;
DisplaySurface *old_surface = con->surface;
DisplayChangeListener *dcl;
con->surface = surface;
QLIST_FOREACH(dcl, &s->listeners, next) {
if (con != (dcl->con ? d... | {
"code": [],
"line_no": []
} | void FUNC_0(QemuConsole *VAR_0,
DisplaySurface *VAR_1)
{
DisplayState *s = VAR_0->ds;
DisplaySurface *old_surface = VAR_0->VAR_1;
DisplayChangeListener *dcl;
VAR_0->VAR_1 = VAR_1;
QLIST_FOREACH(dcl, &s->listeners, next) {
if (VAR_0 != (dcl->VAR_0 ? dcl->VAR_0 : a... | [
"void FUNC_0(QemuConsole *VAR_0,\nDisplaySurface *VAR_1)\n{",
"DisplayState *s = VAR_0->ds;",
"DisplaySurface *old_surface = VAR_0->VAR_1;",
"DisplayChangeListener *dcl;",
"VAR_0->VAR_1 = VAR_1;",
"QLIST_FOREACH(dcl, &s->listeners, next) {",
"if (VAR_0 != (dcl->VAR_0 ? dcl->VAR_0 : active_console)) {",
... | [
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
]
] |
25,609 | static int tqi_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
const uint8_t *buf_end = buf+buf_size;
TqiContext *t = avctx->priv_data;
Mpe... | true | FFmpeg | 3b55429d5692dd782d8b3ce6a19819305157d1b8 | static int tqi_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
const uint8_t *buf_end = buf+buf_size;
TqiContext *t = avctx->priv_data;
Mpe... | {
"code": [
" av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);"
],
"line_no": [
53
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
const uint8_t *VAR_6 = VAR_4+VAR_5;
TqiContext *t = VAR_0->priv_data;
MpegEncContext *s =... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"const uint8_t *VAR_6 = VAR_4+VAR_5;",
"TqiContext *t = VAR_0->priv_data;",
"MpegEncContext *s = &t->s;",
"s->width = AV_RL16(&VAR_4[0]);",
"s... | [
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
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55,... |
25,611 | static void patch_call(VAPICROMState *s, X86CPU *cpu, target_ulong ip,
uint32_t target)
{
uint32_t offset;
offset = cpu_to_le32(target - ip - 5);
patch_byte(cpu, ip, 0xe8); /* call near */
cpu_memory_rw_debug(CPU(cpu), ip + 1, (void *)&offset, sizeof(offset), 1);
}
| true | qemu | cb58a6d3611b2d0ff4ed29bb6b659c95a23cb2d5 | static void patch_call(VAPICROMState *s, X86CPU *cpu, target_ulong ip,
uint32_t target)
{
uint32_t offset;
offset = cpu_to_le32(target - ip - 5);
patch_byte(cpu, ip, 0xe8);
cpu_memory_rw_debug(CPU(cpu), ip + 1, (void *)&offset, sizeof(offset), 1);
}
| {
"code": [
"static void patch_call(VAPICROMState *s, X86CPU *cpu, target_ulong ip,",
" uint32_t target)"
],
"line_no": [
1,
3
]
} | static void FUNC_0(VAPICROMState *VAR_0, X86CPU *VAR_1, target_ulong VAR_2,
uint32_t VAR_3)
{
uint32_t offset;
offset = cpu_to_le32(VAR_3 - VAR_2 - 5);
patch_byte(VAR_1, VAR_2, 0xe8);
cpu_memory_rw_debug(CPU(VAR_1), VAR_2 + 1, (void *)&offset, sizeof(offset), 1);
}
| [
"static void FUNC_0(VAPICROMState *VAR_0, X86CPU *VAR_1, target_ulong VAR_2,\nuint32_t VAR_3)\n{",
"uint32_t offset;",
"offset = cpu_to_le32(VAR_3 - VAR_2 - 5);",
"patch_byte(VAR_1, VAR_2, 0xe8);",
"cpu_memory_rw_debug(CPU(VAR_1), VAR_2 + 1, (void *)&offset, sizeof(offset), 1);",
"}"
] | [
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,612 | static void sbr_dequant(SpectralBandReplication *sbr, int id_aac)
{
int k, e;
int ch;
if (id_aac == TYPE_CPE && sbr->bs_coupling) {
float alpha = sbr->data[0].bs_amp_res ? 1.0f : 0.5f;
float pan_offset = sbr->data[0].bs_amp_res ? 12.0f : 24.0f;
for (e = 1; e <= sbr->d... | true | FFmpeg | 8978c743fb1d1f5a0d6dbdd83ff05817f8a41230 | static void sbr_dequant(SpectralBandReplication *sbr, int id_aac)
{
int k, e;
int ch;
if (id_aac == TYPE_CPE && sbr->bs_coupling) {
float alpha = sbr->data[0].bs_amp_res ? 1.0f : 0.5f;
float pan_offset = sbr->data[0].bs_amp_res ? 12.0f : 24.0f;
for (e = 1; e <= sbr->d... | {
"code": [
" float fac = temp1 / (1.0f + temp2);",
" float fac = temp1 / (1.0f + temp2);",
" for (k = 0; k < sbr->n[sbr->data[ch].bs_freq_res[e]]; k++)"
],
"line_no": [
25,
25,
61
]
} | static void FUNC_0(SpectralBandReplication *VAR_0, int VAR_1)
{
int VAR_2, VAR_3;
int VAR_4;
if (VAR_1 == TYPE_CPE && VAR_0->bs_coupling) {
float VAR_5 = VAR_0->data[0].bs_amp_res ? 1.0f : 0.5f;
float VAR_6 = VAR_0->data[0].bs_amp_res ? 12.0f : 24.0f;
for (VAR_3 = 1; ... | [
"static void FUNC_0(SpectralBandReplication *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3;",
"int VAR_4;",
"if (VAR_1 == TYPE_CPE && VAR_0->bs_coupling) {",
"float VAR_5 = VAR_0->data[0].bs_amp_res ? 1.0f : 0.5f;",
"float VAR_6 = VAR_0->data[0].bs_amp_res ? 12.0f : 24.0f;",
"for (VAR_3 = 1; VAR_3 <= ... | [
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,
1,
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... |
25,613 | static inline int16_t logadd(int16_t a, int16_t b)
{
int16_t c = a - b;
uint8_t address = FFMIN((ABS(c) >> 1), 255);
return ((c >= 0) ? (a + latab[address]) : (b + latab[address]));
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline int16_t logadd(int16_t a, int16_t b)
{
int16_t c = a - b;
uint8_t address = FFMIN((ABS(c) >> 1), 255);
return ((c >= 0) ? (a + latab[address]) : (b + latab[address]));
}
| {
"code": [],
"line_no": []
} | static inline int16_t FUNC_0(int16_t a, int16_t b)
{
int16_t c = a - b;
uint8_t address = FFMIN((ABS(c) >> 1), 255);
return ((c >= 0) ? (a + latab[address]) : (b + latab[address]));
}
| [
"static inline int16_t FUNC_0(int16_t a, int16_t b)\n{",
"int16_t c = a - b;",
"uint8_t address = FFMIN((ABS(c) >> 1), 255);",
"return ((c >= 0) ? (a + latab[address]) : (b + latab[address]));",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
]
] |
25,614 | static void range_merge(Range *range1, Range *range2)
{
if (range1->end < range2->end) {
range1->end = range2->end;
}
if (range1->begin > range2->begin) {
range1->begin = range2->begin;
}
}
| true | qemu | db486cc334aafd3dbdaf107388e37fc3d6d3e171 | static void range_merge(Range *range1, Range *range2)
{
if (range1->end < range2->end) {
range1->end = range2->end;
}
if (range1->begin > range2->begin) {
range1->begin = range2->begin;
}
}
| {
"code": [
"static void range_merge(Range *range1, Range *range2)",
" if (range1->end < range2->end) {",
" range1->end = range2->end;",
" if (range1->begin > range2->begin) {",
" range1->begin = range2->begin;"
],
"line_no": [
1,
5,
7,
11,
13
]
} | static void FUNC_0(Range *VAR_0, Range *VAR_1)
{
if (VAR_0->end < VAR_1->end) {
VAR_0->end = VAR_1->end;
}
if (VAR_0->begin > VAR_1->begin) {
VAR_0->begin = VAR_1->begin;
}
}
| [
"static void FUNC_0(Range *VAR_0, Range *VAR_1)\n{",
"if (VAR_0->end < VAR_1->end) {",
"VAR_0->end = VAR_1->end;",
"}",
"if (VAR_0->begin > VAR_1->begin) {",
"VAR_0->begin = VAR_1->begin;",
"}",
"}"
] | [
1,
1,
1,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
25,615 | static int write_manifest(AVFormatContext *s, int final)
{
DASHContext *c = s->priv_data;
AVIOContext *out;
char temp_filename[1024];
int ret, i;
AVDictionaryEntry *title = av_dict_get(s->metadata, "title", NULL, 0);
snprintf(temp_filename, sizeof(temp_filename), "%s.tmp", s->filename);... | true | FFmpeg | e65849a70bfb401306038d41ebd8b5750deb3cfd | static int write_manifest(AVFormatContext *s, int final)
{
DASHContext *c = s->priv_data;
AVIOContext *out;
char temp_filename[1024];
int ret, i;
AVDictionaryEntry *title = av_dict_get(s->metadata, "title", NULL, 0);
snprintf(temp_filename, sizeof(temp_filename), "%s.tmp", s->filename);... | {
"code": [
" avio_printf(out, \"\\tsuggestedPresentationDelay=\\\"PT%dS\\\"\\n\", c->last_duration / AV_TIME_BASE);"
],
"line_no": [
61
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)
{
DASHContext *c = VAR_0->priv_data;
AVIOContext *out;
char VAR_2[1024];
int VAR_3, VAR_4;
AVDictionaryEntry *title = av_dict_get(VAR_0->metadata, "title", NULL, 0);
snprintf(VAR_2, sizeof(VAR_2), "%VAR_0.tmp", VAR_0->filename);
... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{",
"DASHContext *c = VAR_0->priv_data;",
"AVIOContext *out;",
"char VAR_2[1024];",
"int VAR_3, VAR_4;",
"AVDictionaryEntry *title = av_dict_get(VAR_0->metadata, \"title\", NULL, 0);",
"snprintf(VAR_2, sizeof(VAR_2), \"%VAR_0.tmp\", VAR_0->filename)... | [
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
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35,
37,
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
25,616 | static int get_scale_factor(H264SliceContext *sl,
int poc, int poc1, int i)
{
int poc0 = sl->ref_list[0][i].poc;
int td = av_clip_int8(poc1 - poc0);
if (td == 0 || sl->ref_list[0][i].parent->long_ref) {
return 256;
} else {
int tb = av_clip_int8(poc - ... | true | FFmpeg | a557ae8d52ce1cfaf3be5cdb13728b7b2b9512b9 | static int get_scale_factor(H264SliceContext *sl,
int poc, int poc1, int i)
{
int poc0 = sl->ref_list[0][i].poc;
int td = av_clip_int8(poc1 - poc0);
if (td == 0 || sl->ref_list[0][i].parent->long_ref) {
return 256;
} else {
int tb = av_clip_int8(poc - ... | {
"code": [
" int td = av_clip_int8(poc1 - poc0);"
],
"line_no": [
9
]
} | static int FUNC_0(H264SliceContext *VAR_0,
int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4 = VAR_0->ref_list[0][VAR_3].VAR_1;
int VAR_5 = av_clip_int8(VAR_2 - VAR_4);
if (VAR_5 == 0 || VAR_0->ref_list[0][VAR_3].parent->long_ref) {
return 256;
} else {
int... | [
"static int FUNC_0(H264SliceContext *VAR_0,\nint VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4 = VAR_0->ref_list[0][VAR_3].VAR_1;",
"int VAR_5 = av_clip_int8(VAR_2 - VAR_4);",
"if (VAR_5 == 0 || VAR_0->ref_list[0][VAR_3].parent->long_ref) {",
"return 256;",
"} else {",
"int VAR_6 = av_clip_int8(VAR_1 - V... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
25,617 | static int ppc_hash64_pte_prot(CPUPPCState *env,
ppc_slb_t *slb, ppc_hash_pte64_t pte)
{
unsigned pp, key;
/* Some pp bit combinations have undefined behaviour, so default
* to no access in those cases */
int prot = 0;
key = !!(msr_pr ? (slb->vsid & SLB_VSID_... | false | qemu | 57d0a39d98b0d0e4712e736084667bcb5aed3474 | static int ppc_hash64_pte_prot(CPUPPCState *env,
ppc_slb_t *slb, ppc_hash_pte64_t pte)
{
unsigned pp, key;
int prot = 0;
key = !!(msr_pr ? (slb->vsid & SLB_VSID_KP)
: (slb->vsid & SLB_VSID_KS));
pp = (pte.pte1 & HPTE64_R_PP) | ((pte.pte1 & HPT... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUPPCState *VAR_0,
ppc_slb_t *VAR_1, ppc_hash_pte64_t VAR_2)
{
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 = (VAR_2.pte1 & HPTE64_R_PP) | ((VAR_... | [
"static int FUNC_0(CPUPPCState *VAR_0,\nppc_slb_t *VAR_1, ppc_hash_pte64_t VAR_2)\n{",
"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 & HPTE64_R_PP0) >> 61);",
"if (VAR_4 == ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
13
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29,
31,
33,
35
],
[
37
],
[
41,
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55,
57,
59
],
... |
25,618 | static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt)
{
int got_picture, i;
if (packet_queue_get(&is->videoq, pkt, 1) < 0)
return -1;
if (pkt->data == flush_pkt.data) {
avcodec_flush_buffers(is->video_st->codec);
SDL_LockMutex(is->pictq_... | false | FFmpeg | 349b65eee2fd5590b7e511c915dcd2d3aef3960e | static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt)
{
int got_picture, i;
if (packet_queue_get(&is->videoq, pkt, 1) < 0)
return -1;
if (pkt->data == flush_pkt.data) {
avcodec_flush_buffers(is->video_st->codec);
SDL_LockMutex(is->pictq_... | {
"code": [],
"line_no": []
} | static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, int64_t *VAR_2, AVPacket *VAR_3)
{
int VAR_4, VAR_5;
if (packet_queue_get(&VAR_0->videoq, VAR_3, 1) < 0)
return -1;
if (VAR_3->data == flush_pkt.data) {
avcodec_flush_buffers(VAR_0->video_st->codec);
SDL_LockMutex(VAR_... | [
"static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, int64_t *VAR_2, AVPacket *VAR_3)\n{",
"int VAR_4, VAR_5;",
"if (packet_queue_get(&VAR_0->videoq, VAR_3, 1) < 0)\nreturn -1;",
"if (VAR_3->data == flush_pkt.data) {",
"avcodec_flush_buffers(VAR_0->video_st->codec);",
"SDL_LockMutex(VAR_0->pictq_mutex);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
25,620 | static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,
uint32_t value)
{
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
int pad_offset, byte_offset;
int prev_value;
switch (addr) {
case 0x030 ... 0x140: /* CONTROL_PADCONF - only used in the POP */
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_sysctl_write8(void *opaque, target_phys_addr_t addr,
uint32_t value)
{
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
int pad_offset, byte_offset;
int prev_value;
switch (addr) {
case 0x030 ... 0x140:
pad_offset = (addr - 0x30) >> 2;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{
struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *) VAR_0;
int VAR_4, VAR_5;
int VAR_6;
switch (VAR_1) {
case 0x030 ... 0x140:
VAR_4 = (VAR_1 - 0x30) >> 2;
VAR_5 = (VAR_1 - 0x30... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{",
"struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *) VAR_0;",
"int VAR_4, VAR_5;",
"int VAR_6;",
"switch (VAR_1) {",
"case 0x030 ... 0x140:\nVAR_4 = (VAR_1 - 0x30) >> 2;",
"VAR_5 = (VAR_1 - 0x30) & (4 - 1);",
"VAR_6 = ... | [
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
],
[
37,
39
],
[
41
],
[
43
],
[
45
]
] |
25,621 | static void l2tpv3_update_fd_handler(NetL2TPV3State *s)
{
qemu_set_fd_handler2(s->fd,
s->read_poll ? l2tpv3_can_send : NULL,
s->read_poll ? net_l2tpv3_send : NULL,
s->write_poll ? l2tpv3_writable : NULL,
s)... | false | qemu | 95b1416ae93106923f733941e52dfe55c4318643 | static void l2tpv3_update_fd_handler(NetL2TPV3State *s)
{
qemu_set_fd_handler2(s->fd,
s->read_poll ? l2tpv3_can_send : NULL,
s->read_poll ? net_l2tpv3_send : NULL,
s->write_poll ? l2tpv3_writable : NULL,
s)... | {
"code": [],
"line_no": []
} | static void FUNC_0(NetL2TPV3State *VAR_0)
{
qemu_set_fd_handler2(VAR_0->fd,
VAR_0->read_poll ? l2tpv3_can_send : NULL,
VAR_0->read_poll ? net_l2tpv3_send : NULL,
VAR_0->write_poll ? l2tpv3_writable : NULL,
... | [
"static void FUNC_0(NetL2TPV3State *VAR_0)\n{",
"qemu_set_fd_handler2(VAR_0->fd,\nVAR_0->read_poll ? l2tpv3_can_send : NULL,\nVAR_0->read_poll ? net_l2tpv3_send : NULL,\nVAR_0->write_poll ? l2tpv3_writable : NULL,\nVAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13
],
[
15
]
] |
25,623 | void bdrv_set_boot_sector(BlockDriverState *bs, const uint8_t *data, int size)
{
bs->boot_sector_enabled = 1;
if (size > 512)
size = 512;
memcpy(bs->boot_sector_data, data, size);
memset(bs->boot_sector_data + size, 0, 512 - size);
}
| false | qemu | 4fc9af53d88c0a2a810704a06cb39a7182982e4e | void bdrv_set_boot_sector(BlockDriverState *bs, const uint8_t *data, int size)
{
bs->boot_sector_enabled = 1;
if (size > 512)
size = 512;
memcpy(bs->boot_sector_data, data, size);
memset(bs->boot_sector_data + size, 0, 512 - size);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
VAR_0->boot_sector_enabled = 1;
if (VAR_2 > 512)
VAR_2 = 512;
memcpy(VAR_0->boot_sector_data, VAR_1, VAR_2);
memset(VAR_0->boot_sector_data + VAR_2, 0, 512 - VAR_2);
}
| [
"void FUNC_0(BlockDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"VAR_0->boot_sector_enabled = 1;",
"if (VAR_2 > 512)\nVAR_2 = 512;",
"memcpy(VAR_0->boot_sector_data, VAR_1, VAR_2);",
"memset(VAR_0->boot_sector_data + VAR_2, 0, 512 - VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
]
] |
25,626 | void helper_sysexit(CPUX86State *env, int dflag)
{
int cpl;
cpl = env->hflags & HF_CPL_MASK;
if (env->sysenter_cs == 0 || cpl != 0) {
raise_exception_err(env, EXCP0D_GPF, 0);
}
cpu_x86_set_cpl(env, 3);
#ifdef TARGET_X86_64
if (dflag == 2) {
cpu_x86_load_seg_cache(env,... | false | qemu | 7848c8d19f8556666df25044bbd5d8b29439c368 | void helper_sysexit(CPUX86State *env, int dflag)
{
int cpl;
cpl = env->hflags & HF_CPL_MASK;
if (env->sysenter_cs == 0 || cpl != 0) {
raise_exception_err(env, EXCP0D_GPF, 0);
}
cpu_x86_set_cpl(env, 3);
#ifdef TARGET_X86_64
if (dflag == 2) {
cpu_x86_load_seg_cache(env,... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUX86State *VAR_0, int VAR_1)
{
int VAR_2;
VAR_2 = VAR_0->hflags & HF_CPL_MASK;
if (VAR_0->sysenter_cs == 0 || VAR_2 != 0) {
raise_exception_err(VAR_0, EXCP0D_GPF, 0);
}
cpu_x86_set_cpl(VAR_0, 3);
#ifdef TARGET_X86_64
if (VAR_1 == 2) {
cpu_x86_load_seg_ca... | [
"void FUNC_0(CPUX86State *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"VAR_2 = VAR_0->hflags & HF_CPL_MASK;",
"if (VAR_0->sysenter_cs == 0 || VAR_2 != 0) {",
"raise_exception_err(VAR_0, EXCP0D_GPF, 0);",
"}",
"cpu_x86_set_cpl(VAR_0, 3);",
"#ifdef TARGET_X86_64\nif (VAR_1 == 2) {",
"cpu_x86_load_seg_cache(V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25,
27,
29,
31,
33
],
[
35,
37,
39,
41,
43
],
[
45
],
[
47,
49
],
[
51,
53,
55,
57... |
25,627 | static int slirp_guestfwd(SlirpState *s, const char *config_str,
int legacy_format)
{
struct in_addr server = { .s_addr = 0 };
struct GuestFwd *fwd;
const char *p;
char buf[128];
char *end;
int port;
p = config_str;
if (legacy_format) {
if (... | false | qemu | a9899996c8bc8eb7686f64207ef2ce1137dd125b | static int slirp_guestfwd(SlirpState *s, const char *config_str,
int legacy_format)
{
struct in_addr server = { .s_addr = 0 };
struct GuestFwd *fwd;
const char *p;
char buf[128];
char *end;
int port;
p = config_str;
if (legacy_format) {
if (... | {
"code": [],
"line_no": []
} | static int FUNC_0(SlirpState *VAR_0, const char *VAR_1,
int VAR_2)
{
struct in_addr VAR_3 = { .s_addr = 0 };
struct GuestFwd *VAR_4;
const char *VAR_5;
char VAR_6[128];
char *VAR_7;
int VAR_8;
VAR_5 = VAR_1;
if (VAR_2) {
if (get_str_sep(VAR_... | [
"static int FUNC_0(SlirpState *VAR_0, const char *VAR_1,\nint VAR_2)\n{",
"struct in_addr VAR_3 = { .s_addr = 0 };",
"struct GuestFwd *VAR_4;",
"const char *VAR_5;",
"char VAR_6[128];",
"char *VAR_7;",
"int VAR_8;",
"VAR_5 = VAR_1;",
"if (VAR_2) {",
"if (get_str_sep(VAR_6, sizeof(VAR_6), &VAR_5, '... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
25,628 | BlockAIOCB *laio_submit(BlockDriverState *bs, LinuxAioState *s, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque, int type)
{
struct qemu_laiocb *laiocb;
struct iocb *iocbs;
off_t offset = sector_num * 512;
laiocb = qemu_aio_g... | false | qemu | 2174f12bdeb3974141784e14bbb7ad8c53178cd9 | BlockAIOCB *laio_submit(BlockDriverState *bs, LinuxAioState *s, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque, int type)
{
struct qemu_laiocb *laiocb;
struct iocb *iocbs;
off_t offset = sector_num * 512;
laiocb = qemu_aio_g... | {
"code": [],
"line_no": []
} | BlockAIOCB *FUNC_0(BlockDriverState *bs, LinuxAioState *s, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockCompletionFunc *cb, void *opaque, int type)
{
struct qemu_laiocb *VAR_0;
struct iocb *VAR_1;
off_t offset = sector_num * 512;
VAR_0 = qemu_aio_get(&lai... | [
"BlockAIOCB *FUNC_0(BlockDriverState *bs, LinuxAioState *s, int fd,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque, int type)\n{",
"struct qemu_laiocb *VAR_0;",
"struct iocb *VAR_1;",
"off_t offset = sector_num * 512;",
"VAR_0 = qemu_aio_get(&laio_aiocb_info,... | [
0,
0,
0,
0,
0,
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
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
51,
53,
55
... |
25,629 | static int X264_frame(AVCodecContext *ctx, uint8_t *buf,
int bufsize, void *data)
{
X264Context *x4 = ctx->priv_data;
AVFrame *frame = data;
x264_nal_t *nal;
int nnal, i;
x264_picture_t pic_out;
x4->pic.img.i_csp = X264_CSP_I420;
x4->pic.img.i_plane = 3;
... | false | FFmpeg | 76d81909ae65f5a771e3a58d6a5d6bb58bfed995 | static int X264_frame(AVCodecContext *ctx, uint8_t *buf,
int bufsize, void *data)
{
X264Context *x4 = ctx->priv_data;
AVFrame *frame = data;
x264_nal_t *nal;
int nnal, i;
x264_picture_t pic_out;
x4->pic.img.i_csp = X264_CSP_I420;
x4->pic.img.i_plane = 3;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,
int VAR_2, void *VAR_3)
{
X264Context *x4 = VAR_0->priv_data;
AVFrame *frame = VAR_3;
x264_nal_t *nal;
int VAR_4, VAR_5;
x264_picture_t pic_out;
x4->pic.img.i_csp = X264_CSP_I420;
x4->pic.img.i_plane ... | [
"static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, void *VAR_3)\n{",
"X264Context *x4 = VAR_0->priv_data;",
"AVFrame *frame = VAR_3;",
"x264_nal_t *nal;",
"int VAR_4, VAR_5;",
"x264_picture_t pic_out;",
"x4->pic.img.i_csp = X264_CSP_I420;",
"x4->pic.img.i_plane = 3;",
"if (frame... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51
],
[
53,... |
25,630 | static void v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name);
fidp = get_fid... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | static void v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name);
fidp = get_fid... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name);
fidp = get_fid(pdu, f... | [
"static void FUNC_0(void *VAR_0)\n{",
"int32_t fid;",
"ssize_t err = 0;",
"size_t offset = 7;",
"V9fsString name;",
"int32_t newdirfid;",
"V9fsFidState *fidp;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"pdu_unmarshal(pdu, offset, \"dds\", &fid, &newdirfid, &name);",
"fidp = get_fid(pdu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
25,631 | static int coroutine_fn cow_co_is_allocated(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *num_same)
{
int64_t bitnum = sector_num + sizeof(struct cow_header_v2) * 8;
uint64_t offset = (bitnum / 8) & -BDRV_SECTOR_SIZE;
bool first = true;
int changed = 0, same = 0;
do... | false | qemu | 550830f9351291c585c963204ad9127998b1c1ce | static int coroutine_fn cow_co_is_allocated(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *num_same)
{
int64_t bitnum = sector_num + sizeof(struct cow_header_v2) * 8;
uint64_t offset = (bitnum / 8) & -BDRV_SECTOR_SIZE;
bool first = true;
int changed = 0, same = 0;
do... | {
"code": [],
"line_no": []
} | static int VAR_0 cow_co_is_allocated(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *num_same)
{
int64_t bitnum = sector_num + sizeof(struct cow_header_v2) * 8;
uint64_t offset = (bitnum / 8) & -BDRV_SECTOR_SIZE;
bool first = true;
int changed = 0, same = 0;
do {
... | [
"static int VAR_0 cow_co_is_allocated(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *num_same)\n{",
"int64_t bitnum = sector_num + sizeof(struct cow_header_v2) * 8;",
"uint64_t offset = (bitnum / 8) & -BDRV_SECTOR_SIZE;",
"bool first = true;",
"int changed = 0, same = 0;",
"do {",
"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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
25,632 | void os_setup_post(void)
{
int fd = 0;
if (daemonize) {
uint8_t status = 0;
ssize_t len;
again1:
len = write(daemon_pipe, &status, 1);
if (len == -1 && (errno == EINTR)) {
goto again1;
}
if (len != 1) {
exit(1);
... | false | qemu | ccea25f1c7cd3f0b12d878a5294620f5478729f8 | void os_setup_post(void)
{
int fd = 0;
if (daemonize) {
uint8_t status = 0;
ssize_t len;
again1:
len = write(daemon_pipe, &status, 1);
if (len == -1 && (errno == EINTR)) {
goto again1;
}
if (len != 1) {
exit(1);
... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
int VAR_0 = 0;
if (daemonize) {
uint8_t status = 0;
ssize_t len;
again1:
len = write(daemon_pipe, &status, 1);
if (len == -1 && (errno == EINTR)) {
goto again1;
}
if (len != 1) {
exit(1);
}
... | [
"void FUNC_0(void)\n{",
"int VAR_0 = 0;",
"if (daemonize) {",
"uint8_t status = 0;",
"ssize_t len;",
"again1:\nlen = write(daemon_pipe, &status, 1);",
"if (len == -1 && (errno == EINTR)) {",
"goto again1;",
"}",
"if (len != 1) {",
"exit(1);",
"}",
"if (chdir(\"/\")) {",
"perror(\"not able ... | [
0,
0,
0,
0,
0,
0,
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
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.