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 |
|---|---|---|---|---|---|---|---|---|---|---|
21,241 | int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors)
{
Coroutine *co;
DiscardCo rwco = {
.bs = bs,
.sector_num = sector_num,
.nb_sectors = nb_sectors,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
/* Fast-path if already in corou... | true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors)
{
Coroutine *co;
DiscardCo rwco = {
.bs = bs,
.sector_num = sector_num,
.nb_sectors = nb_sectors,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
bdrv_discard_co_entry(... | {
"code": [
" qemu_coroutine_enter(co, &rwco);",
" co = qemu_coroutine_create(bdrv_discard_co_entry);",
" qemu_coroutine_enter(co, &rwco);"
],
"line_no": [
35,
33,
35
]
} | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)
{
Coroutine *co;
DiscardCo rwco = {
.VAR_0 = VAR_0,
.VAR_1 = VAR_1,
.VAR_2 = VAR_2,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
bdrv_discard_co_entry(&rwco);
} else {
... | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)\n{",
"Coroutine *co;",
"DiscardCo rwco = {",
".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.ret = NOT_DONE,\n};",
"if (qemu_in_coroutine()) {",
"bdrv_discard_co_entry(&rwco);",
"} else {",
"AioContext *aio_context = bdrv_get_aio_cont... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13,
15,
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
21,242 | static void cg3_realizefn(DeviceState *dev, Error **errp)
{
SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
CG3State *s = CG3(dev);
int ret;
char *fcode_filename;
/* FCode ROM */
vmstate_register_ram_global(&s->rom);
fcode_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, CG3_ROM_FILE);
... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void cg3_realizefn(DeviceState *dev, Error **errp)
{
SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
CG3State *s = CG3(dev);
int ret;
char *fcode_filename;
vmstate_register_ram_global(&s->rom);
fcode_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, CG3_ROM_FILE);
if (fcode_file... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);
CG3State *s = CG3(VAR_0);
int VAR_2;
char *VAR_3;
vmstate_register_ram_global(&s->rom);
VAR_3 = qemu_find_file(QEMU_FILE_TYPE_BIOS, CG3_ROM_FILE);
if (VAR_3) {
VAR_2 = ... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);",
"CG3State *s = CG3(VAR_0);",
"int VAR_2;",
"char *VAR_3;",
"vmstate_register_ram_global(&s->rom);",
"VAR_3 = qemu_find_file(QEMU_FILE_TYPE_BIOS, CG3_ROM_FILE);",
"if (VAR_3) {",
"VAR_2 = load_im... | [
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
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
21,243 | static void virtio_gpu_set_scanout(VirtIOGPU *g,
struct virtio_gpu_ctrl_command *cmd)
{
struct virtio_gpu_simple_resource *res;
struct virtio_gpu_scanout *scanout;
pixman_format_code_t format;
uint32_t offset;
int bpp;
struct virtio_gpu_set_scanout ss;
... | true | qemu | dd248ed7e204ee8a1873914e02b8b526e8f1b80d | static void virtio_gpu_set_scanout(VirtIOGPU *g,
struct virtio_gpu_ctrl_command *cmd)
{
struct virtio_gpu_simple_resource *res;
struct virtio_gpu_scanout *scanout;
pixman_format_code_t format;
uint32_t offset;
int bpp;
struct virtio_gpu_set_scanout ss;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_ctrl_command *VAR_1)
{
struct virtio_gpu_simple_resource *VAR_2;
struct virtio_gpu_scanout *VAR_3;
pixman_format_code_t format;
uint32_t offset;
int VAR_4;
struct FUNC_0 VAR_5;
VIRTIO_GPU_FIL... | [
"static void FUNC_0(VirtIOGPU *VAR_0,\nstruct virtio_gpu_ctrl_command *VAR_1)\n{",
"struct virtio_gpu_simple_resource *VAR_2;",
"struct virtio_gpu_scanout *VAR_3;",
"pixman_format_code_t format;",
"uint32_t offset;",
"int VAR_4;",
"struct FUNC_0 VAR_5;",
"VIRTIO_GPU_FILL_CMD(VAR_5);",
"trace_virtio_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
21,244 | void kbd_put_keycode(int keycode)
{
QEMUPutKbdEntry *entry = QTAILQ_FIRST(&kbd_handlers);
if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) {
return;
}
if (entry) {
entry->put_kbd(entry->opaque, keycode);
}
}
| true | qemu | 4282c8277013dc5613b8f27845f6121b66b7cbff | void kbd_put_keycode(int keycode)
{
QEMUPutKbdEntry *entry = QTAILQ_FIRST(&kbd_handlers);
if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) {
return;
}
if (entry) {
entry->put_kbd(entry->opaque, keycode);
}
}
| {
"code": [
" if (entry) {"
],
"line_no": [
15
]
} | void FUNC_0(int VAR_0)
{
QEMUPutKbdEntry *entry = QTAILQ_FIRST(&kbd_handlers);
if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) {
return;
}
if (entry) {
entry->put_kbd(entry->opaque, VAR_0);
}
}
| [
"void FUNC_0(int VAR_0)\n{",
"QEMUPutKbdEntry *entry = QTAILQ_FIRST(&kbd_handlers);",
"if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) {",
"return;",
"}",
"if (entry) {",
"entry->put_kbd(entry->opaque, VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
21,245 | static av_cold int libx265_encode_init(AVCodecContext *avctx)
{
libx265Context *ctx = avctx->priv_data;
ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);
if (!ctx->api)
ctx->api = x265_api_get(0);
ctx->params = ctx->api->param_alloc();
if (!ctx->params) ... | true | FFmpeg | 3e4357eb822c8bcaf9743dde008f5774d1356e74 | static av_cold int libx265_encode_init(AVCodecContext *avctx)
{
libx265Context *ctx = avctx->priv_data;
ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);
if (!ctx->api)
ctx->api = x265_api_get(0);
ctx->params = ctx->api->param_alloc();
if (!ctx->params) ... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
libx265Context *ctx = avctx->priv_data;
ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);
if (!ctx->api)
ctx->api = x265_api_get(0);
ctx->params = ctx->api->param_alloc();
if (!ctx->params) {
av... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"libx265Context *ctx = avctx->priv_data;",
"ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth);",
"if (!ctx->api)\nctx->api = x265_api_get(0);",
"ctx->params = ctx->api->param_alloc();",
"if (!ctx->params) {",
"av_log(avctx,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
28
],
[
30
],
[
34
],
[
36
],
[
38
],
[
40
],
[
44
],
[
46
],
[
48
],
[
50
],
[
54
],
... |
21,246 | static void nbd_coroutine_end(BlockDriverState *bs,
NBDRequest *request)
{
NBDClientSession *s = nbd_get_client_session(bs);
int i = HANDLE_TO_INDEX(s, request->handle);
s->recv_coroutine[i] = NULL;
s->in_flight--;
qemu_co_queue_next(&s->free_sema);
/* K... | true | qemu | 6bdcc018a6ed760b9dfe43539124e420aed83092 | static void nbd_coroutine_end(BlockDriverState *bs,
NBDRequest *request)
{
NBDClientSession *s = nbd_get_client_session(bs);
int i = HANDLE_TO_INDEX(s, request->handle);
s->recv_coroutine[i] = NULL;
s->in_flight--;
qemu_co_queue_next(&s->free_sema);
... | {
"code": [
" s->in_flight--;",
" qemu_co_queue_next(&s->free_sema);"
],
"line_no": [
15,
17
]
} | static void FUNC_0(BlockDriverState *VAR_0,
NBDRequest *VAR_1)
{
NBDClientSession *s = nbd_get_client_session(VAR_0);
int VAR_2 = HANDLE_TO_INDEX(s, VAR_1->handle);
s->recv_coroutine[VAR_2] = NULL;
s->in_flight--;
qemu_co_queue_next(&s->free_sema);
... | [
"static void FUNC_0(BlockDriverState *VAR_0,\nNBDRequest *VAR_1)\n{",
"NBDClientSession *s = nbd_get_client_session(VAR_0);",
"int VAR_2 = HANDLE_TO_INDEX(s, VAR_1->handle);",
"s->recv_coroutine[VAR_2] = NULL;",
"s->in_flight--;",
"qemu_co_queue_next(&s->free_sema);",
"if (s->read_reply_co) {",
"aio_c... | [
0,
0,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
21,247 | static int dump_init(DumpState *s, int fd, bool has_format,
DumpGuestMemoryFormat format, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
/* kdump-compressed is co... | true | qemu | 2928207ac1bb2751a1554ea0f9a9641179f51488 | static int dump_init(DumpState *s, int fd, bool has_format,
DumpGuestMemoryFormat format, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
if (has_format && f... | {
"code": [
" memory_mapping_list_init(&s->list);",
" guest_phys_blocks_free(&s->guest_phys_blocks);",
" if (s->resume) {",
" vm_start();"
],
"line_no": [
125,
317,
321,
323
]
} | static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2,
DumpGuestMemoryFormat VAR_3, bool VAR_4, bool VAR_5,
int64_t VAR_6, int64_t VAR_7, Error **VAR_8)
{
CPUState *cpu;
int VAR_9;
Error *err = NULL;
int VAR_10;
if (VAR_2 && VAR_3 != DUMP... | [
"static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2,\nDumpGuestMemoryFormat VAR_3, bool VAR_4, bool VAR_5,\nint64_t VAR_6, int64_t VAR_7, Error **VAR_8)\n{",
"CPUState *cpu;",
"int VAR_9;",
"Error *err = NULL;",
"int VAR_10;",
"if (VAR_2 && VAR_3 != DUMP_GUEST_MEMORY_FORMAT_ELF) {",
"assert(!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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
21,248 | static int64_t ff_read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))
{
return wrap_timestamp(s->streams[stream_index], read_timestamp(s, stream_index, ppos, pos_lim... | false | FFmpeg | 695a766bff4cd8414a84e58159506d72b4e44892 | static int64_t ff_read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))
{
return wrap_timestamp(s->streams[stream_index], read_timestamp(s, stream_index, ppos, pos_lim... | {
"code": [],
"line_no": []
} | static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))
{
return wrap_timestamp(s->streams[stream_index], read_timestamp(s, stream_index, ppos, pos_limit));
}
| [
"static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,\nint64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))\n{",
"return wrap_timestamp(s->streams[stream_index], read_timestamp(s, stream_index, ppos, pos_limit));",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
21,249 | gboolean vnc_client_io(QIOChannel *ioc G_GNUC_UNUSED,
GIOCondition condition, void *opaque)
{
VncState *vs = opaque;
if (condition & G_IO_IN) {
vnc_client_read(vs);
}
if (condition & G_IO_OUT) {
vnc_client_write(vs);
}
return TRUE;
}
| true | qemu | ea697449884d83b83fefbc9cd87bdde0c94b49d6 | gboolean vnc_client_io(QIOChannel *ioc G_GNUC_UNUSED,
GIOCondition condition, void *opaque)
{
VncState *vs = opaque;
if (condition & G_IO_IN) {
vnc_client_read(vs);
}
if (condition & G_IO_OUT) {
vnc_client_write(vs);
}
return TRUE;
}
| {
"code": [
" vnc_client_read(vs);"
],
"line_no": [
11
]
} | gboolean FUNC_0(QIOChannel *ioc G_GNUC_UNUSED,
GIOCondition condition, void *opaque)
{
VncState *vs = opaque;
if (condition & G_IO_IN) {
vnc_client_read(vs);
}
if (condition & G_IO_OUT) {
vnc_client_write(vs);
}
return TRUE;
}
| [
"gboolean FUNC_0(QIOChannel *ioc G_GNUC_UNUSED,\nGIOCondition condition, void *opaque)\n{",
"VncState *vs = opaque;",
"if (condition & G_IO_IN) {",
"vnc_client_read(vs);",
"}",
"if (condition & G_IO_OUT) {",
"vnc_client_write(vs);",
"}",
"return TRUE;",
"}"
] | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,252 | float128 float128_scalbn( float128 a, int n STATUS_PARAM )
{
flag aSign;
int32 aExp;
uint64_t aSig0, aSig1;
aSig1 = extractFloat128Frac1( a );
aSig0 = extractFloat128Frac0( a );
aExp = extractFloat128Exp( a );
aSign = extractFloat128Sign( a );
if ( aExp == 0x7FFF ) {
... | true | qemu | 326b9e98a391d542cc33c4c91782ff4ba51edfc5 | float128 float128_scalbn( float128 a, int n STATUS_PARAM )
{
flag aSign;
int32 aExp;
uint64_t aSig0, aSig1;
aSig1 = extractFloat128Frac1( a );
aSig0 = extractFloat128Frac0( a );
aExp = extractFloat128Exp( a );
aSign = extractFloat128Sign( a );
if ( aExp == 0x7FFF ) {
... | {
"code": [
" int32 aExp;"
],
"line_no": [
7
]
} | float128 FUNC_0( float128 a, int n STATUS_PARAM )
{
flag aSign;
int32 aExp;
uint64_t aSig0, aSig1;
aSig1 = extractFloat128Frac1( a );
aSig0 = extractFloat128Frac0( a );
aExp = extractFloat128Exp( a );
aSign = extractFloat128Sign( a );
if ( aExp == 0x7FFF ) {
return a;... | [
"float128 FUNC_0( float128 a, int n STATUS_PARAM )\n{",
"flag aSign;",
"int32 aExp;",
"uint64_t aSig0, aSig1;",
"aSig1 = extractFloat128Frac1( a );",
"aSig0 = extractFloat128Frac0( a );",
"aExp = extractFloat128Exp( a );",
"aSign = extractFloat128Sign( a );",
"if ( aExp == 0x7FFF ) {",
"return a;"... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39,
41
],
[
45
]
] |
21,253 | static void process_synthesis_subpackets(QDM2Context *q, QDM2SubPNode *list)
{
QDM2SubPNode *nodes[4];
nodes[0] = qdm2_search_subpacket_type_in_list(list, 9);
if (nodes[0] != NULL)
process_subpacket_9(q, nodes[0]);
nodes[1] = qdm2_search_subpacket_type_in_list(list, 10);
if (nodes... | false | FFmpeg | 4b1f5e5090abed6c618c8ba380cd7d28d140f867 | static void process_synthesis_subpackets(QDM2Context *q, QDM2SubPNode *list)
{
QDM2SubPNode *nodes[4];
nodes[0] = qdm2_search_subpacket_type_in_list(list, 9);
if (nodes[0] != NULL)
process_subpacket_9(q, nodes[0]);
nodes[1] = qdm2_search_subpacket_type_in_list(list, 10);
if (nodes... | {
"code": [],
"line_no": []
} | static void FUNC_0(QDM2Context *VAR_0, QDM2SubPNode *VAR_1)
{
QDM2SubPNode *nodes[4];
nodes[0] = qdm2_search_subpacket_type_in_list(VAR_1, 9);
if (nodes[0] != NULL)
process_subpacket_9(VAR_0, nodes[0]);
nodes[1] = qdm2_search_subpacket_type_in_list(VAR_1, 10);
if (nodes[1] != NULL... | [
"static void FUNC_0(QDM2Context *VAR_0, QDM2SubPNode *VAR_1)\n{",
"QDM2SubPNode *nodes[4];",
"nodes[0] = qdm2_search_subpacket_type_in_list(VAR_1, 9);",
"if (nodes[0] != NULL)\nprocess_subpacket_9(VAR_0, nodes[0]);",
"nodes[1] = qdm2_search_subpacket_type_in_list(VAR_1, 10);",
"if (nodes[1] != NULL)\nproc... | [
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
],
[
29
],
[
31,
33
],
[
35,
37
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
]
] |
21,254 | static int ffm_read_data(AVFormatContext *s,
uint8_t *buf, int size, int header)
{
FFMContext *ffm = s->priv_data;
AVIOContext *pb = s->pb;
int len, fill_size, size1, frame_offset, id;
int64_t last_pos = -1;
size1 = size;
while (size > 0) {
redo:
... | false | FFmpeg | dc55477a64cefebf8dcc611f026be71382814ae2 | static int ffm_read_data(AVFormatContext *s,
uint8_t *buf, int size, int header)
{
FFMContext *ffm = s->priv_data;
AVIOContext *pb = s->pb;
int len, fill_size, size1, frame_offset, id;
int64_t last_pos = -1;
size1 = size;
while (size > 0) {
redo:
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
uint8_t *VAR_1, int VAR_2, int VAR_3)
{
FFMContext *ffm = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
int64_t last_pos = -1;
VAR_6 = VAR_2;
while (VAR_2 > 0) {
redo:
... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nuint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"FFMContext *ffm = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"int64_t last_pos = -1;",
"VAR_6 = VAR_2;",
"while (VAR_2 > 0) {",
"redo:\nVAR_4 = ffm->packet_end - f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,255 | static int udp_close(URLContext *h)
{
UDPContext *s = h->priv_data;
int ret;
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
closesocket(s->udp_fd);
av_fifo_free(s->fifo);
#if HAVE_PTHREADS
if (s->thre... | false | FFmpeg | 281bde27894f994d0982ab9283f15d6073ae352c | static int udp_close(URLContext *h)
{
UDPContext *s = h->priv_data;
int ret;
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
closesocket(s->udp_fd);
av_fifo_free(s->fifo);
#if HAVE_PTHREADS
if (s->thre... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0)
{
UDPContext *s = VAR_0->priv_data;
int VAR_1;
if (s->is_multicast && (VAR_0->flags & AVIO_FLAG_READ))
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
closesocket(s->udp_fd);
av_fifo_free(s->fifo);
#if HAVE_PTHREADS
... | [
"static int FUNC_0(URLContext *VAR_0)\n{",
"UDPContext *s = VAR_0->priv_data;",
"int VAR_1;",
"if (s->is_multicast && (VAR_0->flags & AVIO_FLAG_READ))\nudp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);",
"closesocket(s->udp_fd);",
"av_fifo_free(s->fifo);",
"#if HAVE_PTHREADS\nif (s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
]
] |
21,257 | static void gen_sse(CPUX86State *env, DisasContext *s, int b,
target_ulong pc_start, int rex_r)
{
int b1, op1_offset, op2_offset, is_xmm, val;
int modrm, mod, rm, reg;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0_eppt sse_f... | false | qemu | e3af7c788b73a6495eb9d94992ef11f6ad6f3c56 | static void gen_sse(CPUX86State *env, DisasContext *s, int b,
target_ulong pc_start, int rex_r)
{
int b1, op1_offset, op2_offset, is_xmm, val;
int modrm, mod, rm, reg;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0_eppt sse_f... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUX86State *VAR_0, DisasContext *VAR_1, int VAR_2,
target_ulong VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0... | [
"static void FUNC_0(CPUX86State *VAR_0, DisasContext *VAR_1, int VAR_2,\ntarget_ulong VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"SSEFunc_0_epp sse_fn_epp;",
"SSEFunc_0_eppi sse_fn_eppi;",
"SSEFunc_0_ppi sse_fn_ppi;",
"SSEFunc_0_eppt sse_fn_ep... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,258 | void kvmppc_check_papr_resize_hpt(Error **errp)
{
if (!kvm_enabled()) {
return;
}
/* TODO: Check for resize-capable KVM implementations */
error_setg(errp,
"Hash page table resizing not available with this KVM version");
}
| false | qemu | b55d295e3ec98e46f5b39d50e4a3a9725b4289b3 | void kvmppc_check_papr_resize_hpt(Error **errp)
{
if (!kvm_enabled()) {
return;
}
error_setg(errp,
"Hash page table resizing not available with this KVM version");
}
| {
"code": [],
"line_no": []
} | void FUNC_0(Error **VAR_0)
{
if (!kvm_enabled()) {
return;
}
error_setg(VAR_0,
"Hash page table resizing not available with this KVM version");
}
| [
"void FUNC_0(Error **VAR_0)\n{",
"if (!kvm_enabled()) {",
"return;",
"}",
"error_setg(VAR_0,\n\"Hash page table resizing not available with this KVM version\");",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17,
19
],
[
21
]
] |
21,259 | static void v9fs_walk(void *opaque)
{
int name_idx;
V9fsQID *qids = NULL;
int i, err = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat stbuf;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *newfidp = NULL... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | static void v9fs_walk(void *opaque)
{
int name_idx;
V9fsQID *qids = NULL;
int i, err = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat stbuf;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *newfidp = NULL... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int VAR_1;
V9fsQID *qids = NULL;
int VAR_2, VAR_3 = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat VAR_4;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *newfidp = NULL;... | [
"static void FUNC_0(void *VAR_0)\n{",
"int VAR_1;",
"V9fsQID *qids = NULL;",
"int VAR_2, VAR_3 = 0;",
"V9fsPath dpath, path;",
"uint16_t nwnames;",
"struct stat VAR_4;",
"size_t offset = 7;",
"int32_t fid, newfid;",
"V9fsString *wnames = NULL;",
"V9fsFidState *fidp;",
"V9fsFidState *newfidp = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
21,260 | static int mmu_translate_pte(CPUS390XState *env, target_ulong vaddr,
uint64_t asc, uint64_t pt_entry,
target_ulong *raddr, int *flags, int rw, bool exc)
{
if (pt_entry & _PAGE_INVALID) {
DPRINTF("%s: PTE=0x%" PRIx64 " invalid\n", __func__, pt_en... | false | qemu | b4ecbf8071022a2042624baaff78cab2bf7e94af | static int mmu_translate_pte(CPUS390XState *env, target_ulong vaddr,
uint64_t asc, uint64_t pt_entry,
target_ulong *raddr, int *flags, int rw, bool exc)
{
if (pt_entry & _PAGE_INVALID) {
DPRINTF("%s: PTE=0x%" PRIx64 " invalid\n", __func__, pt_en... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,
uint64_t VAR_2, uint64_t VAR_3,
target_ulong *VAR_4, int *VAR_5, int VAR_6, bool VAR_7)
{
if (VAR_3 & _PAGE_INVALID) {
DPRINTF("%s: PTE=0x%" PRIx64 " invalid\n", __func__, VAR_3);
... | [
"static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,\nuint64_t VAR_2, uint64_t VAR_3,\ntarget_ulong *VAR_4, int *VAR_5, int VAR_6, bool VAR_7)\n{",
"if (VAR_3 & _PAGE_INVALID) {",
"DPRINTF(\"%s: PTE=0x%\" PRIx64 \" invalid\\n\", __func__, VAR_3);",
"trigger_page_fault(VAR_0, VAR_1, PGM_PAGE_TRANS, VAR... | [
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
],
[
29
],
[
33
],
[
37
],
[
39
]
] |
21,262 | static void dbdma_cmdptr_load(DBDMA_channel *ch)
{
DBDMA_DPRINTF("dbdma_cmdptr_load 0x%08x\n",
be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO]));
cpu_physical_memory_read(be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO]),
(uint8_t*)&ch->current, sizeof(dbdma_cmd));
}
| false | qemu | ad674e53b5cce265fadafbde2c6a4f190345cd00 | static void dbdma_cmdptr_load(DBDMA_channel *ch)
{
DBDMA_DPRINTF("dbdma_cmdptr_load 0x%08x\n",
be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO]));
cpu_physical_memory_read(be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO]),
(uint8_t*)&ch->current, sizeof(dbdma_cmd));
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DBDMA_channel *VAR_0)
{
DBDMA_DPRINTF("FUNC_0 0x%08x\n",
be32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO]));
cpu_physical_memory_read(be32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO]),
(uint8_t*)&VAR_0->current, sizeof(dbdma_cmd));
}
| [
"static void FUNC_0(DBDMA_channel *VAR_0)\n{",
"DBDMA_DPRINTF(\"FUNC_0 0x%08x\\n\",\nbe32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO]));",
"cpu_physical_memory_read(be32_to_cpu(VAR_0->regs[DBDMA_CMDPTR_LO]),\n(uint8_t*)&VAR_0->current, sizeof(dbdma_cmd));",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
]
] |
21,263 | static int img_check(int argc, char **argv)
{
int c, ret;
const char *filename, *fmt;
BlockDriverState *bs;
BdrvCheckResult result;
int fix = 0;
int flags = BDRV_O_FLAGS;
fmt = NULL;
for(;;) {
c = getopt(argc, argv, "f:hr:");
if (c == -1) {
break... | false | qemu | 058f8f16db0c1c528b665a6283457f019c8b0926 | static int img_check(int argc, char **argv)
{
int c, ret;
const char *filename, *fmt;
BlockDriverState *bs;
BdrvCheckResult result;
int fix = 0;
int flags = BDRV_O_FLAGS;
fmt = NULL;
for(;;) {
c = getopt(argc, argv, "f:hr:");
if (c == -1) {
break... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, char **VAR_1)
{
int VAR_2, VAR_3;
const char *VAR_4, *VAR_5;
BlockDriverState *bs;
BdrvCheckResult result;
int VAR_6 = 0;
int VAR_7 = BDRV_O_FLAGS;
VAR_5 = NULL;
for(;;) {
VAR_2 = getopt(VAR_0, VAR_1, "f:hr:");
if (VAR_2 == -1) {
... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"int VAR_2, VAR_3;",
"const char *VAR_4, *VAR_5;",
"BlockDriverState *bs;",
"BdrvCheckResult result;",
"int VAR_6 = 0;",
"int VAR_7 = BDRV_O_FLAGS;",
"VAR_5 = NULL;",
"for(;;) {",
"VAR_2 = getopt(VAR_0, VAR_1, \"f:hr:\");",
"if (VAR_2 == -1) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[... |
21,264 | static void decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx,
PTLCommon *ptl)
{
int i;
ptl->profile_space = get_bits(gb, 2);
ptl->tier_flag = get_bits1(gb);
ptl->profile_idc = get_bits(gb, 5);
if (ptl->profile_idc == FF_PROFILE_H... | false | FFmpeg | 1ecb63cd1c1a4ddc5efed4abbc3158b969d8c5e4 | static void decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx,
PTLCommon *ptl)
{
int i;
ptl->profile_space = get_bits(gb, 2);
ptl->tier_flag = get_bits1(gb);
ptl->profile_idc = get_bits(gb, 5);
if (ptl->profile_idc == FF_PROFILE_H... | {
"code": [],
"line_no": []
} | static void FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,
PTLCommon *VAR_2)
{
int VAR_3;
VAR_2->profile_space = get_bits(VAR_0, 2);
VAR_2->tier_flag = get_bits1(VAR_0);
VAR_2->profile_idc = get_bits(VAR_0, 5);
if (VAR_2->profile_idc == FF_PR... | [
"static void FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nPTLCommon *VAR_2)\n{",
"int VAR_3;",
"VAR_2->profile_space = get_bits(VAR_0, 2);",
"VAR_2->tier_flag = get_bits1(VAR_0);",
"VAR_2->profile_idc = get_bits(VAR_0, 5);",
"if (VAR_2->profile_idc == FF_PROFILE_HEVC_MAIN)\nav_log(VAR_1, AV_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25,
27
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
... |
21,265 | xen_igd_passthrough_isa_bridge_create(XenPCIPassthroughState *s,
XenHostPCIDevice *dev)
{
uint16_t gpu_dev_id;
PCIDevice *d = &s->dev;
gpu_dev_id = dev->device_id;
igd_passthrough_isa_bridge_create(d->bus, gpu_dev_id);
}
| false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | xen_igd_passthrough_isa_bridge_create(XenPCIPassthroughState *s,
XenHostPCIDevice *dev)
{
uint16_t gpu_dev_id;
PCIDevice *d = &s->dev;
gpu_dev_id = dev->device_id;
igd_passthrough_isa_bridge_create(d->bus, gpu_dev_id);
}
| {
"code": [],
"line_no": []
} | FUNC_0(XenPCIPassthroughState *VAR_0,
XenHostPCIDevice *VAR_1)
{
uint16_t gpu_dev_id;
PCIDevice *d = &VAR_0->VAR_1;
gpu_dev_id = VAR_1->device_id;
igd_passthrough_isa_bridge_create(d->bus, gpu_dev_id);
}
| [
"FUNC_0(XenPCIPassthroughState *VAR_0,\nXenHostPCIDevice *VAR_1)\n{",
"uint16_t gpu_dev_id;",
"PCIDevice *d = &VAR_0->VAR_1;",
"gpu_dev_id = VAR_1->device_id;",
"igd_passthrough_isa_bridge_create(d->bus, gpu_dev_id);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
21,266 | qemu_irq spapr_allocate_irq(uint32_t hint, uint32_t *irq_num,
enum xics_irq_type type)
{
uint32_t irq;
qemu_irq qirq;
if (hint) {
irq = hint;
/* FIXME: we should probably check for collisions somehow */
} else {
irq = spapr->next_irq++;
... | false | qemu | a307d59434ba78b97544b42b8cfd24a1b62e39a6 | qemu_irq spapr_allocate_irq(uint32_t hint, uint32_t *irq_num,
enum xics_irq_type type)
{
uint32_t irq;
qemu_irq qirq;
if (hint) {
irq = hint;
} else {
irq = spapr->next_irq++;
}
qirq = xics_assign_irq(spapr->icp, irq, type);
... | {
"code": [],
"line_no": []
} | qemu_irq FUNC_0(uint32_t hint, uint32_t *irq_num,
enum xics_irq_type type)
{
uint32_t irq;
qemu_irq qirq;
if (hint) {
irq = hint;
} else {
irq = spapr->next_irq++;
}
qirq = xics_assign_irq(spapr->icp, irq, type);
if (!qirq)... | [
"qemu_irq FUNC_0(uint32_t hint, uint32_t *irq_num,\nenum xics_irq_type type)\n{",
"uint32_t irq;",
"qemu_irq qirq;",
"if (hint) {",
"irq = hint;",
"} else {",
"irq = spapr->next_irq++;",
"}",
"qirq = xics_assign_irq(spapr->icp, irq, type);",
"if (!qirq) {",
"return NULL;",
"}",
"if (irq_num)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
21,268 | static void omap_mcbsp_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
switch (size) {
case 2: return omap_mcbsp_writeh(opaque, addr, value);
case 4: return omap_mcbsp_writew(opaque, addr, value);
default: return omap_badwidth_write16(opaq... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_mcbsp_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
switch (size) {
case 2: return omap_mcbsp_writeh(opaque, addr, value);
case 4: return omap_mcbsp_writew(opaque, addr, value);
default: return omap_badwidth_write16(opaq... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
switch (VAR_3) {
case 2: return omap_mcbsp_writeh(VAR_0, VAR_1, VAR_2);
case 4: return omap_mcbsp_writew(VAR_0, VAR_1, VAR_2);
default: return omap_badwidth_write16(VAR_0, VAR_1... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"switch (VAR_3) {",
"case 2: return omap_mcbsp_writeh(VAR_0, VAR_1, VAR_2);",
"case 4: return omap_mcbsp_writew(VAR_0, VAR_1, VAR_2);",
"default: return omap_badwidth_write16(VAR_0, VAR_1, VAR_2);",
"}",
"}"... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
21,269 | vnc_display_setup_auth(VncDisplay *vs,
bool password,
bool sasl,
bool tls,
bool x509)
{
/*
* We have a choice of 3 authentication options
*
* 1. none
* 2. vnc
* 3. sasl
*
... | false | qemu | f9148c8ae7b1515776699387b4d59864f302c77d | vnc_display_setup_auth(VncDisplay *vs,
bool password,
bool sasl,
bool tls,
bool x509)
{
if (password) {
if (tls) {
vs->auth ... | {
"code": [],
"line_no": []
} | FUNC_0(VncDisplay *VAR_0,
bool VAR_1,
bool VAR_2,
bool VAR_3,
bool VAR_4)
{
if (VAR_1) {
if (VAR_3) {
VAR_0->auth = VNC_AUTH... | [
"FUNC_0(VncDisplay *VAR_0,\nbool VAR_1,\nbool VAR_2,\nbool VAR_3,\nbool VAR_4)\n{",
"if (VAR_1) {",
"if (VAR_3) {",
"VAR_0->auth = VNC_AUTH_VENCRYPT;",
"if (VAR_4) {",
"VNC_DEBUG(\"Initializing VNC server with VAR_4 VAR_1 auth\\n\");",
"VAR_0->subauth = VNC_AUTH_VENCRYPT_X509VNC;",
"} else {",
"VNC_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
81
],
[
83
],
[
85
],
[
87
],
[
89
],
[
91
],
[
93
],
[
95
],
[
97
],
[
99
],
[
101
],
[
103
],
[
105
],
[
107
],
[
109
],
[
111
],
[
... |
21,270 | void usb_info(Monitor *mon)
{
USBBus *bus;
USBDevice *dev;
USBPort *port;
if (TAILQ_EMPTY(&busses)) {
monitor_printf(mon, "USB support not enabled\n");
return;
}
TAILQ_FOREACH(bus, &busses, next) {
TAILQ_FOREACH(port, &bus->used, next) {
dev = p... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void usb_info(Monitor *mon)
{
USBBus *bus;
USBDevice *dev;
USBPort *port;
if (TAILQ_EMPTY(&busses)) {
monitor_printf(mon, "USB support not enabled\n");
return;
}
TAILQ_FOREACH(bus, &busses, next) {
TAILQ_FOREACH(port, &bus->used, next) {
dev = p... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0)
{
USBBus *bus;
USBDevice *dev;
USBPort *port;
if (TAILQ_EMPTY(&busses)) {
monitor_printf(VAR_0, "USB support not enabled\n");
return;
}
TAILQ_FOREACH(bus, &busses, next) {
TAILQ_FOREACH(port, &bus->used, next) {
dev =... | [
"void FUNC_0(Monitor *VAR_0)\n{",
"USBBus *bus;",
"USBDevice *dev;",
"USBPort *port;",
"if (TAILQ_EMPTY(&busses)) {",
"monitor_printf(VAR_0, \"USB support not enabled\\n\");",
"return;",
"}",
"TAILQ_FOREACH(bus, &busses, next) {",
"TAILQ_FOREACH(port, &bus->used, next) {",
"dev = port->dev;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
]
] |
21,271 | void tcg_gen_brcond_i64(TCGCond cond, TCGv_i64 arg1, TCGv_i64 arg2, int label)
{
if (cond == TCG_COND_ALWAYS) {
tcg_gen_br(label);
} else if (cond != TCG_COND_NEVER) {
if (TCG_TARGET_REG_BITS == 32) {
tcg_gen_op6ii_i32(INDEX_op_brcond2_i32, TCGV_LOW(arg1),
... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | void tcg_gen_brcond_i64(TCGCond cond, TCGv_i64 arg1, TCGv_i64 arg2, int label)
{
if (cond == TCG_COND_ALWAYS) {
tcg_gen_br(label);
} else if (cond != TCG_COND_NEVER) {
if (TCG_TARGET_REG_BITS == 32) {
tcg_gen_op6ii_i32(INDEX_op_brcond2_i32, TCGV_LOW(arg1),
... | {
"code": [],
"line_no": []
} | void FUNC_0(TCGCond VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2, int VAR_3)
{
if (VAR_0 == TCG_COND_ALWAYS) {
tcg_gen_br(VAR_3);
} else if (VAR_0 != TCG_COND_NEVER) {
if (TCG_TARGET_REG_BITS == 32) {
tcg_gen_op6ii_i32(INDEX_op_brcond2_i32, TCGV_LOW(VAR_1),
... | [
"void FUNC_0(TCGCond VAR_0, TCGv_i64 VAR_1, TCGv_i64 VAR_2, int VAR_3)\n{",
"if (VAR_0 == TCG_COND_ALWAYS) {",
"tcg_gen_br(VAR_3);",
"} else if (VAR_0 != TCG_COND_NEVER) {",
"if (TCG_TARGET_REG_BITS == 32) {",
"tcg_gen_op6ii_i32(INDEX_op_brcond2_i32, TCGV_LOW(VAR_1),\nTCGV_HIGH(VAR_1), TCGV_LOW(VAR_2),\nT... | [
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
]
] |
21,272 | static QList *channel_list_get(void)
{
return NULL;
}
| false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | static QList *channel_list_get(void)
{
return NULL;
}
| {
"code": [],
"line_no": []
} | static QList *FUNC_0(void)
{
return NULL;
}
| [
"static QList *FUNC_0(void)\n{",
"return NULL;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
21,273 | static int ssd0323_init(SSISlave *dev)
{
ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, dev);
s->col_end = 63;
s->row_end = 79;
s->con = graphic_console_init(ssd0323_update_display,
ssd0323_invalidate_display,
NULL, NULL, s);... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static int ssd0323_init(SSISlave *dev)
{
ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, dev);
s->col_end = 63;
s->row_end = 79;
s->con = graphic_console_init(ssd0323_update_display,
ssd0323_invalidate_display,
NULL, NULL, s);... | {
"code": [],
"line_no": []
} | static int FUNC_0(SSISlave *VAR_0)
{
ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, VAR_0);
s->col_end = 63;
s->row_end = 79;
s->con = graphic_console_init(ssd0323_update_display,
ssd0323_invalidate_display,
NULL, NULL, s);
... | [
"static int FUNC_0(SSISlave *VAR_0)\n{",
"ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, VAR_0);",
"s->col_end = 63;",
"s->row_end = 79;",
"s->con = graphic_console_init(ssd0323_update_display,\nssd0323_invalidate_display,\nNULL, NULL, s);",
"qemu_console_resize(s->con, 128 * MAGNIFY, 64 * MAGNIFY);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15,
17
],
[
19
],
[
23
],
[
27,
29
],
[
31
],
[
33
]
] |
21,274 | static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,
int sector_size)
{
s->lba = lba;
s->packet_transfer_size = nb_sectors * sector_size;
s->elementary_transfer_size = 0;
s->io_buffer_index = sector_size;
s->cd_sector_size = sector_size;
... | false | qemu | 41a2b9596c9ed2a827e16e749632752dd2686647 | static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,
int sector_size)
{
s->lba = lba;
s->packet_transfer_size = nb_sectors * sector_size;
s->elementary_transfer_size = 0;
s->io_buffer_index = sector_size;
s->cd_sector_size = sector_size;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,
int VAR_3)
{
VAR_0->VAR_1 = VAR_1;
VAR_0->packet_transfer_size = VAR_2 * VAR_3;
VAR_0->elementary_transfer_size = 0;
VAR_0->io_buffer_index = VAR_3;
VAR_0->cd_sector_size = VAR_3;
VAR_0->status... | [
"static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,\nint VAR_3)\n{",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->packet_transfer_size = VAR_2 * VAR_3;",
"VAR_0->elementary_transfer_size = 0;",
"VAR_0->io_buffer_index = VAR_3;",
"VAR_0->cd_sector_size = VAR_3;",
"VAR_0->status = READY_STAT;",
"ide_atapi_cm... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
21,275 | static void vc1_inv_trans_8x4_c(uint8_t *dest, int linesize, DCTELEM *block)
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst;
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
src = block;
dst = block;
for(i = 0; i < 4; i++){
t1 = 12 * (src[0] + src[4]) + 4;... | false | FFmpeg | af796ba4b827a88912f9a9c59d1a57704a6fff38 | static void vc1_inv_trans_8x4_c(uint8_t *dest, int linesize, DCTELEM *block)
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst;
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
src = block;
dst = block;
for(i = 0; i < 4; i++){
t1 = 12 * (src[0] + src[4]) + 4;... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)
{
int VAR_3;
register int VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10,VAR_11;
DCTELEM *src, *dst;
const uint8_t *VAR_12 = ff_cropTbl + MAX_NEG_CROP;
src = VAR_2;
dst = VAR_2;
for(VAR_3 = 0; VAR_3 < 4; VAR_3++){
V... | [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{",
"int VAR_3;",
"register int VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10,VAR_11;",
"DCTELEM *src, *dst;",
"const uint8_t *VAR_12 = ff_cropTbl + MAX_NEG_CROP;",
"src = VAR_2;",
"dst = VAR_2;",
"for(VAR_3 = 0; VAR_3 < 4; VAR_3++){",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
21,276 | static void platform_fixed_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
{
PCIXenPlatformState *s = opaque;
switch (addr) {
case 0: {
PCIDevice *pci_dev = PCI_DEVICE(s);
/* Unplug devices. Value is a bitmask of which devices to
unplug, with bit 0 the disk devi... | false | qemu | ae4d2eb273b167dad748ea4249720319240b1ac2 | static void platform_fixed_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
{
PCIXenPlatformState *s = opaque;
switch (addr) {
case 0: {
PCIDevice *pci_dev = PCI_DEVICE(s);
if (val & UNPLUG_ALL_DISKS) {
DPRINTF("unplug disks\n");
pci_un... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
PCIXenPlatformState *s = VAR_0;
switch (VAR_1) {
case 0: {
PCIDevice *pci_dev = PCI_DEVICE(s);
if (VAR_2 & UNPLUG_ALL_DISKS) {
DPRINTF("unplug disks\n");
pci_unplug_disks(pci_dev... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"PCIXenPlatformState *s = VAR_0;",
"switch (VAR_1) {",
"case 0: {",
"PCIDevice *pci_dev = PCI_DEVICE(s);",
"if (VAR_2 & UNPLUG_ALL_DISKS) {",
"DPRINTF(\"unplug disks\\n\");",
"pci_unplug_disks(pci_dev->bus);",
"}",
"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
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
... |
21,277 | static int xen_pt_msgctrl_reg_write(XenPCIPassthroughState *s,
XenPTReg *cfg_entry, uint16_t *val,
uint16_t dev_value, uint16_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
XenPTMSI *msi = s->msi;
uint16_t writable_mask = 0;
... | false | qemu | e2779de053b64f023de382fd87b3596613d47d1e | static int xen_pt_msgctrl_reg_write(XenPCIPassthroughState *s,
XenPTReg *cfg_entry, uint16_t *val,
uint16_t dev_value, uint16_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
XenPTMSI *msi = s->msi;
uint16_t writable_mask = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenPCIPassthroughState *VAR_0,
XenPTReg *VAR_1, uint16_t *VAR_2,
uint16_t VAR_3, uint16_t VAR_4)
{
XenPTRegInfo *reg = VAR_1->reg;
XenPTMSI *msi = VAR_0->msi;
uint16_t writable_mask = 0;
uint16_t throughable... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0,\nXenPTReg *VAR_1, uint16_t *VAR_2,\nuint16_t VAR_3, uint16_t VAR_4)\n{",
"XenPTRegInfo *reg = VAR_1->reg;",
"XenPTMSI *msi = VAR_0->msi;",
"uint16_t writable_mask = 0;",
"uint16_t throughable_mask = get_throughable_mask(VAR_0, reg, VAR_4);",
"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,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
41
],
[
47
],
[
51
],
[
55
],
[
57
],
[
69
],
[
71
],
[
73
... |
21,278 | static void qcow2_refresh_limits(BlockDriverState *bs, Error **errp)
{
BDRVQcow2State *s = bs->opaque;
if (bs->encrypted) {
/* Encryption works on a sector granularity */
bs->request_alignment = BDRV_SECTOR_SIZE;
}
bs->bl.pwrite_zeroes_alignment = s->cluster_size;
}
| false | qemu | a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 | static void qcow2_refresh_limits(BlockDriverState *bs, Error **errp)
{
BDRVQcow2State *s = bs->opaque;
if (bs->encrypted) {
bs->request_alignment = BDRV_SECTOR_SIZE;
}
bs->bl.pwrite_zeroes_alignment = s->cluster_size;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)
{
BDRVQcow2State *s = VAR_0->opaque;
if (VAR_0->encrypted) {
VAR_0->request_alignment = BDRV_SECTOR_SIZE;
}
VAR_0->bl.pwrite_zeroes_alignment = s->cluster_size;
}
| [
"static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"if (VAR_0->encrypted) {",
"VAR_0->request_alignment = BDRV_SECTOR_SIZE;",
"}",
"VAR_0->bl.pwrite_zeroes_alignment = s->cluster_size;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
21,279 | static void set_string(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
char **ptr = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
char *str;
if (dev->realized) {
q... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void set_string(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
char **ptr = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
char *str;
if (dev->realized) {
q... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,
const char *VAR_3, Error **VAR_4)
{
DeviceState *dev = DEVICE(VAR_0);
Property *prop = VAR_2;
char **VAR_5 = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
char *VAR_6;
if (dev->realized) {
... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{",
"DeviceState *dev = DEVICE(VAR_0);",
"Property *prop = VAR_2;",
"char **VAR_5 = qdev_get_prop_ptr(dev, prop);",
"Error *local_err = NULL;",
"char *VAR_6;",
"if (dev->realized) {",
"qdev_prop_set_aft... | [
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
21,283 | void OPPROTO op_idivb_AL_T0(void)
{
int num, den, q, r;
num = (int16_t)EAX;
den = (int8_t)T0;
if (den == 0) {
raise_exception(EXCP00_DIVZ);
}
q = (num / den) & 0xff;
r = (num % den) & 0xff;
EAX = (EAX & ~0xffff) | (r << 8) | q;
}
| true | qemu | 45bbbb466cf4a6280076ea5a51f67ef5bedee345 | void OPPROTO op_idivb_AL_T0(void)
{
int num, den, q, r;
num = (int16_t)EAX;
den = (int8_t)T0;
if (den == 0) {
raise_exception(EXCP00_DIVZ);
}
q = (num / den) & 0xff;
r = (num % den) & 0xff;
EAX = (EAX & ~0xffff) | (r << 8) | q;
}
| {
"code": [
" q = (num / den) & 0xff;",
" q = (num / den) & 0xff;"
],
"line_no": [
19,
19
]
} | void VAR_0 op_idivb_AL_T0(void)
{
int num, den, q, r;
num = (int16_t)EAX;
den = (int8_t)T0;
if (den == 0) {
raise_exception(EXCP00_DIVZ);
}
q = (num / den) & 0xff;
r = (num % den) & 0xff;
EAX = (EAX & ~0xffff) | (r << 8) | q;
}
| [
"void VAR_0 op_idivb_AL_T0(void)\n{",
"int num, den, q, r;",
"num = (int16_t)EAX;",
"den = (int8_t)T0;",
"if (den == 0) {",
"raise_exception(EXCP00_DIVZ);",
"}",
"q = (num / den) & 0xff;",
"r = (num % den) & 0xff;",
"EAX = (EAX & ~0xffff) | (r << 8) | q;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
21,285 | static int print_uint8(DeviceState *dev, Property *prop, char *dest, size_t len)
{
uint8_t *ptr = qdev_get_prop_ptr(dev, prop);
return snprintf(dest, len, "%" PRIu8, *ptr);
}
| true | qemu | 5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde | static int print_uint8(DeviceState *dev, Property *prop, char *dest, size_t len)
{
uint8_t *ptr = qdev_get_prop_ptr(dev, prop);
return snprintf(dest, len, "%" PRIu8, *ptr);
}
| {
"code": [
" uint8_t *ptr = qdev_get_prop_ptr(dev, prop);",
"static int print_uint8(DeviceState *dev, Property *prop, char *dest, size_t len)",
" uint8_t *ptr = qdev_get_prop_ptr(dev, prop);",
" return snprintf(dest, len, \"%\" PRIu8, *ptr);"
],
"line_no": [
5,
1,
5,
7
... | static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)
{
uint8_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);
return snprintf(VAR_2, VAR_3, "%" PRIu8, *ptr);
}
| [
"static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{",
"uint8_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);",
"return snprintf(VAR_2, VAR_3, \"%\" PRIu8, *ptr);",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
21,286 | static int init_image(TiffContext *s, ThreadFrame *frame)
{
int ret;
switch (s->planar * 1000 + s->bpp * 10 + s->bppcount) {
case 11:
if (!s->palette_is_set) {
s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
break;
}
case 21:
case 41:
case 81:
... | true | FFmpeg | ab1e4312887d8e560d027803871b55b883910714 | static int init_image(TiffContext *s, ThreadFrame *frame)
{
int ret;
switch (s->planar * 1000 + s->bpp * 10 + s->bppcount) {
case 11:
if (!s->palette_is_set) {
s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
break;
}
case 21:
case 41:
case 81:
... | {
"code": [
" if((desc->flags & AV_PIX_FMT_FLAG_RGB) || desc->nb_components < 3) {"
],
"line_no": [
151
]
} | static int FUNC_0(TiffContext *VAR_0, ThreadFrame *VAR_1)
{
int VAR_2;
switch (VAR_0->planar * 1000 + VAR_0->bpp * 10 + VAR_0->bppcount) {
case 11:
if (!VAR_0->palette_is_set) {
VAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
break;
}
case 21:
case 4... | [
"static int FUNC_0(TiffContext *VAR_0, ThreadFrame *VAR_1)\n{",
"int VAR_2;",
"switch (VAR_0->planar * 1000 + VAR_0->bpp * 10 + VAR_0->bppcount) {",
"case 11:\nif (!VAR_0->palette_is_set) {",
"VAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;",
"break;",
"}",
"case 21:\ncase 41:\ncase 81:\nVAR_0->avctx->p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
... |
21,287 | static int connect_to_sdog(const char *addr, const char *port)
{
char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
int fd, ret;
struct addrinfo hints, *res, *res0;
if (!addr) {
addr = SD_DEFAULT_ADDR;
port = SD_DEFAULT_PORT;
}
memset(&hints, 0, sizeof(hints));
hints.ai_s... | true | qemu | a7e47d4bfcbf256fae06891a8599950ff8e1b61b | static int connect_to_sdog(const char *addr, const char *port)
{
char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
int fd, ret;
struct addrinfo hints, *res, *res0;
if (!addr) {
addr = SD_DEFAULT_ADDR;
port = SD_DEFAULT_PORT;
}
memset(&hints, 0, sizeof(hints));
hints.ai_s... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, const char *VAR_1)
{
char VAR_2[NI_MAXHOST], sbuf[NI_MAXSERV];
int VAR_3, VAR_4;
struct addrinfo VAR_5, *VAR_6, *VAR_7;
if (!VAR_0) {
VAR_0 = SD_DEFAULT_ADDR;
VAR_1 = SD_DEFAULT_PORT;
}
memset(&VAR_5, 0, sizeof(VAR_5));
VAR_5... | [
"static int FUNC_0(const char *VAR_0, const char *VAR_1)\n{",
"char VAR_2[NI_MAXHOST], sbuf[NI_MAXSERV];",
"int VAR_3, VAR_4;",
"struct addrinfo VAR_5, *VAR_6, *VAR_7;",
"if (!VAR_0) {",
"VAR_0 = SD_DEFAULT_ADDR;",
"VAR_1 = SD_DEFAULT_PORT;",
"}",
"memset(&VAR_5, 0, sizeof(VAR_5));",
"VAR_5.ai_soc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
45,
47
],
[
49
],
[
51
... |
21,289 | int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame;
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_default_get_buffer) {
av_log(avctx, AV_LOG... | true | FFmpeg | e2ff436ef64589de8486517352e17f513886e15b | int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame;
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_default_get_buffer) {
av_log(avctx, AV_LOG... | {
"code": [
" av_log(avctx, AV_LOG_ERROR, \"A custom get_buffer() cannot be used with \"",
" \"avcodec_decode_audio3()\\n\");",
" return AVERROR(EINVAL);"
],
"line_no": [
17,
19,
21
]
} | int VAR_0 avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame;
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_default_get_buffer) {
av_log(avctx, AV_LOG_ERROR, "A cus... | [
"int VAR_0 avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,\nint *frame_size_ptr,\nAVPacket *avpkt)\n{",
"AVFrame frame;",
"int ret, got_frame = 0;",
"if (avctx->get_buffer != avcodec_default_get_buffer) {",
"av_log(avctx, AV_LOG_ERROR, \"A custom get_buffer() cannot be used with \"\n\"avcodec... | [
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
55
... |
21,291 | static int qemu_chr_open_win_con(QemuOpts *opts, CharDriverState **chr)
{
return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE), chr);
}
| true | qemu | 1f51470d044852592922f91000e741c381582cdc | static int qemu_chr_open_win_con(QemuOpts *opts, CharDriverState **chr)
{
return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE), chr);
}
| {
"code": [
"static int qemu_chr_open_win_con(QemuOpts *opts, CharDriverState **chr)",
" return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE), chr);"
],
"line_no": [
1,
5
]
} | static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)
{
return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE), VAR_1);
}
| [
"static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)\n{",
"return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE), VAR_1);",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
21,292 | static void dca_exss_parse_header(DCAContext *s)
{
int asset_size[8];
int ss_index;
int blownup;
int num_audiop = 1;
int num_assets = 1;
int active_ss_mask[8];
int i, j;
int start_posn;
int hdrsize;
uint32_t mkr;
if (get_bits_left(&s->gb) < 52)
return;
start_posn ... | true | FFmpeg | 62a9725bc95ef3c5101e2a9e74668cc1ecbd8819 | static void dca_exss_parse_header(DCAContext *s)
{
int asset_size[8];
int ss_index;
int blownup;
int num_audiop = 1;
int num_assets = 1;
int active_ss_mask[8];
int i, j;
int start_posn;
int hdrsize;
uint32_t mkr;
if (get_bits_left(&s->gb) < 52)
return;
start_posn ... | {
"code": [],
"line_no": []
} | static void FUNC_0(DCAContext *VAR_0)
{
int VAR_1[8];
int VAR_2;
int VAR_3;
int VAR_4 = 1;
int VAR_5 = 1;
int VAR_6[8];
int VAR_7, VAR_8;
int VAR_9;
int VAR_10;
uint32_t mkr;
if (get_bits_left(&VAR_0->gb) < 52)
return;
VAR_9 = get_bits_count(&VAR_0->gb) - 32;
... | [
"static void FUNC_0(DCAContext *VAR_0)\n{",
"int VAR_1[8];",
"int VAR_2;",
"int VAR_3;",
"int VAR_4 = 1;",
"int VAR_5 = 1;",
"int VAR_6[8];",
"int VAR_7, VAR_8;",
"int VAR_9;",
"int VAR_10;",
"uint32_t mkr;",
"if (get_bits_left(&VAR_0->gb) < 52)\nreturn;",
"VAR_9 = get_bits_count(&VAR_0->gb)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13,
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
... |
21,293 | static int idcin_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
IdcinDemuxContext *idcin = s->priv_data;
AVStream *st;
unsigned int width, height;
unsigned int sample_rate, bytes_per_sample, channels;
/* get the 5 header parameters */
width = avio_rl32(pb);
height = avio_rl32... | true | FFmpeg | b0c96e06134d5c2aa3fa4f0951834c982ee99e3b | static int idcin_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
IdcinDemuxContext *idcin = s->priv_data;
AVStream *st;
unsigned int width, height;
unsigned int sample_rate, bytes_per_sample, channels;
width = avio_rl32(pb);
height = avio_rl32(pb);
sample_rate = avio_rl32... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
IdcinDemuxContext *idcin = VAR_0->priv_data;
AVStream *st;
unsigned int VAR_1, VAR_2;
unsigned int VAR_3, VAR_4, VAR_5;
VAR_1 = avio_rl32(pb);
VAR_2 = avio_rl32(pb);
VAR_3 = avio_rl32(pb);
VAR_4 = avio_rl32... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"IdcinDemuxContext *idcin = VAR_0->priv_data;",
"AVStream *st;",
"unsigned int VAR_1, VAR_2;",
"unsigned int VAR_3, VAR_4, VAR_5;",
"VAR_1 = avio_rl32(pb);",
"VAR_2 = avio_rl32(pb);",
"VAR_3 = avio_rl32(pb);",
"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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15,
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
21,294 | static void xilinx_enet_init(Object *obj)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(obj);
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
object_property_add_link(obj, "axistream-connected", TYPE_STREAM_SLAVE,
(Object **) &s->tx_data_dev, &error_abort);
object_property_add_link(... | true | qemu | 9561fda8d90e176bef598ba87c42a1bd6ad03ef7 | static void xilinx_enet_init(Object *obj)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(obj);
SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
object_property_add_link(obj, "axistream-connected", TYPE_STREAM_SLAVE,
(Object **) &s->tx_data_dev, &error_abort);
object_property_add_link(... | {
"code": [
" (Object **) &s->tx_data_dev, &error_abort);",
" (Object **) &s->tx_control_dev, &error_abort);"
],
"line_no": [
13,
19
]
} | static void FUNC_0(Object *VAR_0)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(VAR_0);
SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);
object_property_add_link(VAR_0, "axistream-connected", TYPE_STREAM_SLAVE,
(Object **) &s->tx_data_dev, &error_abort);
object_property_add_link(VA... | [
"static void FUNC_0(Object *VAR_0)\n{",
"XilinxAXIEnet *s = XILINX_AXI_ENET(VAR_0);",
"SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);",
"object_property_add_link(VAR_0, \"axistream-connected\", TYPE_STREAM_SLAVE,\n(Object **) &s->tx_data_dev, &error_abort);",
"object_property_add_link(VAR_0, \"axistream-control... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17,
19
],
[
23,
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
41
],
[
45
],
[
47
],
[
49
]
] |
21,295 | static int update_size(AVCodecContext *ctx, int w, int h, enum AVPixelFormat fmt)
{
VP9Context *s = ctx->priv_data;
uint8_t *p;
int bytesperpixel = s->bytesperpixel;
av_assert0(w > 0 && h > 0);
if (s->intra_pred_data[0] && w == ctx->width && h == ctx->height && ctx->pix_fmt == fmt)
... | true | FFmpeg | fd8b90f5f63de12c1ee1ec1cbe99791c5629c582 | static int update_size(AVCodecContext *ctx, int w, int h, enum AVPixelFormat fmt)
{
VP9Context *s = ctx->priv_data;
uint8_t *p;
int bytesperpixel = s->bytesperpixel;
av_assert0(w > 0 && h > 0);
if (s->intra_pred_data[0] && w == ctx->width && h == ctx->height && ctx->pix_fmt == fmt)
... | {
"code": [
" ff_vp9dsp_init(&s->dsp, s->bpp);"
],
"line_no": [
103
]
} | static int FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2, enum AVPixelFormat VAR_3)
{
VP9Context *s = VAR_0->priv_data;
uint8_t *p;
int VAR_4 = s->VAR_4;
av_assert0(VAR_1 > 0 && VAR_2 > 0);
if (s->intra_pred_data[0] && VAR_1 == VAR_0->width && VAR_2 == VAR_0->height && VAR_0->pix_fmt ... | [
"static int FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2, enum AVPixelFormat VAR_3)\n{",
"VP9Context *s = VAR_0->priv_data;",
"uint8_t *p;",
"int VAR_4 = s->VAR_4;",
"av_assert0(VAR_1 > 0 && VAR_2 > 0);",
"if (s->intra_pred_data[0] && VAR_1 == VAR_0->width && VAR_2 == VAR_0->height && VAR_0->pix_fmt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
47,
49
],
[
51,
53
],
[
55
],
[... |
21,297 | static TRBCCode xhci_reset_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
USBDevice *dev;
trace_usb_xhci_ep_reset(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
if (epid < 1 || epid > ... | true | qemu | 75cc1c1fcba1987bdf3979c4289ab756c2b15742 | static TRBCCode xhci_reset_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
USBDevice *dev;
trace_usb_xhci_ep_reset(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
if (epid < 1 || epid > ... | {
"code": [
" USBDevice *dev;",
" dev = xhci->slots[slotid-1].uport->dev;",
" if (!dev) {"
],
"line_no": [
11,
83,
85
]
} | static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
USBDevice *dev;
trace_usb_xhci_ep_reset(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
if (epid < 1 || epid > 31) {
... | [
"static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,\nunsigned int epid)\n{",
"XHCISlot *slot;",
"XHCIEPContext *epctx;",
"USBDevice *dev;",
"trace_usb_xhci_ep_reset(slotid, epid);",
"assert(slotid >= 1 && slotid <= xhci->numslots);",
"if (epid < 1 || epid > 31) {",
"fprintf(stderr, \"xhci: b... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51,
53
],
[
55
... |
21,298 | static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence)
{
MMSHContext *mmsh = h->priv_data;
MMSContext *mms = &mmsh->mms;
if(pos == 0 && whence == SEEK_CUR)
return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;
return AVERROR(ENOSYS)... | true | FFmpeg | 830f7f189f7b41221b29d40e8127cf54a140ae86 | static int64_t mmsh_seek(URLContext *h, int64_t pos, int whence)
{
MMSHContext *mmsh = h->priv_data;
MMSContext *mms = &mmsh->mms;
if(pos == 0 && whence == SEEK_CUR)
return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;
return AVERROR(ENOSYS)... | {
"code": [
" return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;"
],
"line_no": [
13
]
} | static int64_t FUNC_0(URLContext *h, int64_t pos, int whence)
{
MMSHContext *mmsh = h->priv_data;
MMSContext *mms = &mmsh->mms;
if(pos == 0 && whence == SEEK_CUR)
return mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;
return AVERROR(ENOSYS);
... | [
"static int64_t FUNC_0(URLContext *h, int64_t pos, int whence)\n{",
"MMSHContext *mmsh = h->priv_data;",
"MMSContext *mms = &mmsh->mms;",
"if(pos == 0 && whence == SEEK_CUR)\nreturn mms->asf_header_read_size + mms->remaining_in_len + mmsh->chunk_seq * mms->asf_packet_len;",
"return AVERROR(ENOSYS);",
"}... | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
]
] |
21,299 | static void kmvc_decode_inter_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h)
{
BitBuf bb;
int res, val;
int i, j;
int bx, by;
int l0x, l1x, l0y, l1y;
int mx, my;
kmvc_init_getbits(bb, src);
for (by = 0; by < h; by += 8)
for (bx = 0; bx < w; bx += 8) {
... | true | FFmpeg | ad3161ec1d70291efcf40121d703ef73c0b08e5b | static void kmvc_decode_inter_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h)
{
BitBuf bb;
int res, val;
int i, j;
int bx, by;
int l0x, l1x, l0y, l1y;
int mx, my;
kmvc_init_getbits(bb, src);
for (by = 0; by < h; by += 8)
for (bx = 0; bx < w; bx += 8) {
... | {
"code": [
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
"static void kmv... | static void FUNC_0(KmvcContext * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)
{
BitBuf bb;
int VAR_4, VAR_5;
int VAR_6, VAR_7;
int VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15;
kmvc_init_getbits(bb, VAR_1);
for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9 ... | [
"static void FUNC_0(KmvcContext * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)\n{",
"BitBuf bb;",
"int VAR_4, VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15;",
"kmvc_init_getbits(bb, VAR_1);",
"for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,... |
21,300 | static void tlb_flush_by_mmuidx_async_work(CPUState *cpu, run_on_cpu_data data)
{
CPUArchState *env = cpu->env_ptr;
unsigned long mmu_idx_bitmask = data.host_int;
int mmu_idx;
assert_cpu_is_self(cpu);
tb_lock();
tlb_debug("start: mmu_idx:0x%04lx\n", mmu_idx_bitmask);
for (mmu... | true | qemu | f3ced3c59287dabc253f83f0c70aa4934470c15e | static void tlb_flush_by_mmuidx_async_work(CPUState *cpu, run_on_cpu_data data)
{
CPUArchState *env = cpu->env_ptr;
unsigned long mmu_idx_bitmask = data.host_int;
int mmu_idx;
assert_cpu_is_self(cpu);
tb_lock();
tlb_debug("start: mmu_idx:0x%04lx\n", mmu_idx_bitmask);
for (mmu... | {
"code": [
" memset(cpu->tb_jmp_cache, 0, sizeof(cpu->tb_jmp_cache));",
" memset(cpu->tb_jmp_cache, 0, sizeof(cpu->tb_jmp_cache));"
],
"line_no": [
45,
45
]
} | static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)
{
CPUArchState *env = VAR_0->env_ptr;
unsigned long VAR_2 = VAR_1.host_int;
int VAR_3;
assert_cpu_is_self(VAR_0);
tb_lock();
tlb_debug("start: VAR_3:0x%04lx\n", VAR_2);
for (VAR_3 = 0; VAR_3 < NB_MMU_MODES; VAR_3++) {... | [
"static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{",
"CPUArchState *env = VAR_0->env_ptr;",
"unsigned long VAR_2 = VAR_1.host_int;",
"int VAR_3;",
"assert_cpu_is_self(VAR_0);",
"tb_lock();",
"tlb_debug(\"start: VAR_3:0x%04lx\\n\", VAR_2);",
"for (VAR_3 = 0; VAR_3 < NB_MMU_MODES; VAR_3++) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
53
],
[
55
]
] |
21,301 | static int encode_hq_slice(AVCodecContext *avctx, void *arg)
{
SliceArgs *slice_dat = arg;
VC2EncContext *s = slice_dat->ctx;
PutBitContext *pb = &slice_dat->pb;
const int slice_x = slice_dat->x;
const int slice_y = slice_dat->y;
const int quant_idx = slice_dat->quant_idx;
const int ... | true | FFmpeg | 9c1aa14bf0b88da9f91dc114519e725cbd69180e | static int encode_hq_slice(AVCodecContext *avctx, void *arg)
{
SliceArgs *slice_dat = arg;
VC2EncContext *s = slice_dat->ctx;
PutBitContext *pb = &slice_dat->pb;
const int slice_x = slice_dat->x;
const int slice_y = slice_dat->y;
const int quant_idx = slice_dat->quant_idx;
const int ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)
{
SliceArgs *slice_dat = VAR_1;
VC2EncContext *s = slice_dat->ctx;
PutBitContext *pb = &slice_dat->pb;
const int VAR_2 = slice_dat->x;
const int VAR_3 = slice_dat->y;
const int VAR_4 = slice_dat->VAR_4;
const int VAR_5 = slice_dat... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)\n{",
"SliceArgs *slice_dat = VAR_1;",
"VC2EncContext *s = slice_dat->ctx;",
"PutBitContext *pb = &slice_dat->pb;",
"const int VAR_2 = slice_dat->x;",
"const int VAR_3 = slice_dat->y;",
"const int VAR_4 = slice_dat->VAR_4;",
"const int VAR_5 = slic... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
33
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
... |
21,303 | int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
{
RTSPState *rt = s->priv_data;
RTSPMessageHeader reply1, *reply = &reply1;
int i;
char *sdp;
AVFormatContext sdp_ctx, *ctx_array[1];
s->start_time_realtime = av_gettime();
/* Announce the stream */
sdp =... | true | FFmpeg | d9c0510e22821baa364306d867ffac45da0620c8 | int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
{
RTSPState *rt = s->priv_data;
RTSPMessageHeader reply1, *reply = &reply1;
int i;
char *sdp;
AVFormatContext sdp_ctx, *ctx_array[1];
s->start_time_realtime = av_gettime();
sdp = av_mallocz(SDP_MAX_SIZE)... | {
"code": [
" AVStream *st = s->streams[i];",
" st->priv_data = rtsp_st;"
],
"line_no": [
91,
105
]
} | int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)
{
RTSPState *rt = VAR_0->priv_data;
RTSPMessageHeader reply1, *reply = &reply1;
int VAR_2;
char *VAR_3;
AVFormatContext sdp_ctx, *ctx_array[1];
VAR_0->start_time_realtime = av_gettime();
VAR_3 = av_mallocz(SDP_MAX_SIZE);... | [
"int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)\n{",
"RTSPState *rt = VAR_0->priv_data;",
"RTSPMessageHeader reply1, *reply = &reply1;",
"int VAR_2;",
"char *VAR_3;",
"AVFormatContext sdp_ctx, *ctx_array[1];",
"VAR_0->start_time_realtime = av_gettime();",
"VAR_3 = av_mallocz(SDP_MAX_SIZE);",
... | [
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,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
23
],
[
25,
27
],
[
53
],
[
55,
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71,
73,
75
... |
21,304 | static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
{
SMJPEGContext *sc = s->priv_data;
uint32_t dtype, ret, size, timestamp;
int64_t pos;
if (s->pb->eof_reached)
return AVERROR_EOF;
pos = avio_tell(s->pb);
dtype = avio_rl32(s->pb);
switch (dtype) {
cas... | false | FFmpeg | 366484fff1720977b8591e3a90fbef9f4885e53c | static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
{
SMJPEGContext *sc = s->priv_data;
uint32_t dtype, ret, size, timestamp;
int64_t pos;
if (s->pb->eof_reached)
return AVERROR_EOF;
pos = avio_tell(s->pb);
dtype = avio_rl32(s->pb);
switch (dtype) {
cas... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
SMJPEGContext *sc = VAR_0->priv_data;
uint32_t dtype, ret, size, timestamp;
int64_t pos;
if (VAR_0->pb->eof_reached)
return AVERROR_EOF;
pos = avio_tell(VAR_0->pb);
dtype = avio_rl32(VAR_0->pb);
switch (dtype) ... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"SMJPEGContext *sc = VAR_0->priv_data;",
"uint32_t dtype, ret, size, timestamp;",
"int64_t pos;",
"if (VAR_0->pb->eof_reached)\nreturn AVERROR_EOF;",
"pos = avio_tell(VAR_0->pb);",
"dtype = avio_rl32(VAR_0->pb);",
"switch (dtype) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[... |
21,305 | static void apic_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
{
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void apic_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
{
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{",
"}"
] | [
0,
0
] | [
[
1,
3
],
[
5
]
] |
21,307 | static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
int flags)
{
unsigned int e1, e2;
uint32_t *p;
e1 = (addr << 16) | (limit & 0xffff);
e2 = ((addr >> 16) & 0xff) | (addr & 0xff000000) | (limit & 0x000f0000);
e2 |= flags;
p = ptr;
p[0] = ts... | false | qemu | d538e8f50d89a66ae14a2cf351d2e0e5365d463b | static void write_dt(void *ptr, unsigned long addr, unsigned long limit,
int flags)
{
unsigned int e1, e2;
uint32_t *p;
e1 = (addr << 16) | (limit & 0xffff);
e2 = ((addr >> 16) & 0xff) | (addr & 0xff000000) | (limit & 0x000f0000);
e2 |= flags;
p = ptr;
p[0] = ts... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, unsigned long VAR_1, unsigned long VAR_2,
int VAR_3)
{
unsigned int VAR_4, VAR_5;
uint32_t *p;
VAR_4 = (VAR_1 << 16) | (VAR_2 & 0xffff);
VAR_5 = ((VAR_1 >> 16) & 0xff) | (VAR_1 & 0xff000000) | (VAR_2 & 0x000f0000);
VAR_5 |= VAR_3;
p = ... | [
"static void FUNC_0(void *VAR_0, unsigned long VAR_1, unsigned long VAR_2,\nint VAR_3)\n{",
"unsigned int VAR_4, VAR_5;",
"uint32_t *p;",
"VAR_4 = (VAR_1 << 16) | (VAR_2 & 0xffff);",
"VAR_5 = ((VAR_1 >> 16) & 0xff) | (VAR_1 & 0xff000000) | (VAR_2 & 0x000f0000);",
"VAR_5 |= VAR_3;",
"p = VAR_0;",
"p[0]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,308 | static int vdi_co_write(BlockDriverState *bs,
int64_t sector_num, const uint8_t *buf, int nb_sectors)
{
BDRVVdiState *s = bs->opaque;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t sector_in_block;
uint32_t n_sectors;
uint32_t bmap_first = VDI_UNALLOCATED;
uint32_t bmap... | false | qemu | eb9566d13e30dd7e20d978632a13915cbdb9a668 | static int vdi_co_write(BlockDriverState *bs,
int64_t sector_num, const uint8_t *buf, int nb_sectors)
{
BDRVVdiState *s = bs->opaque;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t sector_in_block;
uint32_t n_sectors;
uint32_t bmap_first = VDI_UNALLOCATED;
uint32_t bmap... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
int64_t VAR_1, const uint8_t *VAR_2, int VAR_3)
{
BDRVVdiState *s = VAR_0->opaque;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t sector_in_block;
uint32_t n_sectors;
uint32_t bmap_first = VDI_UNALLOCATED;
uint32_t bmap_last = ... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, const uint8_t *VAR_2, int VAR_3)\n{",
"BDRVVdiState *s = VAR_0->opaque;",
"uint32_t bmap_entry;",
"uint32_t block_index;",
"uint32_t sector_in_block;",
"uint32_t n_sectors;",
"uint32_t bmap_first = VDI_UNALLOCATED;",
"uint32_t bmap_last = VDI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
],
[... |
21,309 | static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,
Error **errp)
{
VGACommonState *s = opaque;
DisplaySurface *surface = qemu_console_surface(s->con);
if (cswitch) {
vga_invalidate_display(s);
}
graphic_hw_update(s->con);
... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,
Error **errp)
{
VGACommonState *s = opaque;
DisplaySurface *surface = qemu_console_surface(s->con);
if (cswitch) {
vga_invalidate_display(s);
}
graphic_hw_update(s->con);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,
Error **VAR_3)
{
VGACommonState *s = VAR_0;
DisplaySurface *surface = qemu_console_surface(s->con);
if (VAR_2) {
vga_invalidate_display(s);
}
graphic_hw_update(s->con);
ppm_save(VAR_1, s... | [
"static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,\nError **VAR_3)\n{",
"VGACommonState *s = VAR_0;",
"DisplaySurface *surface = qemu_console_surface(s->con);",
"if (VAR_2) {",
"vga_invalidate_display(s);",
"}",
"graphic_hw_update(s->con);",
"ppm_save(VAR_1, surface, VAR_3);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,310 | static uint64_t omap_tcmi_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
uint32_t ret;
if (size != 4) {
return omap_badwidth_read32(opaque, addr);
}
switch (addr) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t omap_tcmi_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
uint32_t ret;
if (size != 4) {
return omap_badwidth_read32(opaque, addr);
}
switch (addr) {
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
struct omap_mpu_state_s *VAR_0 = (struct omap_mpu_state_s *) opaque;
uint32_t ret;
if (size != 4) {
return omap_badwidth_read32(opaque, addr);
}
switch (addr) {
case... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"struct omap_mpu_state_s *VAR_0 = (struct omap_mpu_state_s *) opaque;",
"uint32_t ret;",
"if (size != 4) {",
"return omap_badwidth_read32(opaque, addr);",
"}",
"switch (addr) {",
"case 0x00:\ncase 0x04:\ncase 0x08:\nca... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51
],
[
55,
57
],
[
59
],
[
63
],
[
65
... |
21,312 | static int vc1_decode_p_mb(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i, j;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp; /* cbp decoding stuff */
int mqdiff, mquant; /* MB quantization */
int ttmb = v->ttfrm; /* MB Transform type */
... | false | FFmpeg | 3992526b3c43278945d00fac6e2ba5cb8f810ef3 | static int vc1_decode_p_mb(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i, j;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp;
int mqdiff, mquant;
int ttmb = v->ttfrm;
int mb_has_coeffs = 1;
int dmv_x, dmv_y;
int index, inde... | {
"code": [],
"line_no": []
} | static int FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
GetBitContext *gb = &s->gb;
int VAR_1, VAR_2;
int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;
int VAR_4;
int VAR_5, VAR_6;
int VAR_7 = VAR_0->ttfrm;
int VAR_8 = 1;
int VAR_9, VAR_10;
int VAR_11,... | [
"static int FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"GetBitContext *gb = &s->gb;",
"int VAR_1, VAR_2;",
"int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;",
"int VAR_4;",
"int VAR_5, VAR_6;",
"int VAR_7 = VAR_0->ttfrm;",
"int VAR_8 = 1;",
"int VAR_9, VAR_10;",
"int VAR_11, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45,
47
],
[... |
21,314 | static void s390_pcihost_init_as(S390pciState *s)
{
int i;
S390PCIBusDevice *pbdev;
for (i = 0; i < PCI_SLOT_MAX; i++) {
pbdev = &s->pbdev[i];
memory_region_init(&pbdev->mr, OBJECT(s),
"iommu-root-s390", UINT64_MAX);
address_space_init(&pbdev->as,... | false | qemu | 67d5cd9722b230027d3d4267ae6069c5d8a65463 | static void s390_pcihost_init_as(S390pciState *s)
{
int i;
S390PCIBusDevice *pbdev;
for (i = 0; i < PCI_SLOT_MAX; i++) {
pbdev = &s->pbdev[i];
memory_region_init(&pbdev->mr, OBJECT(s),
"iommu-root-s390", UINT64_MAX);
address_space_init(&pbdev->as,... | {
"code": [],
"line_no": []
} | static void FUNC_0(S390pciState *VAR_0)
{
int VAR_1;
S390PCIBusDevice *pbdev;
for (VAR_1 = 0; VAR_1 < PCI_SLOT_MAX; VAR_1++) {
pbdev = &VAR_0->pbdev[VAR_1];
memory_region_init(&pbdev->mr, OBJECT(VAR_0),
"iommu-root-s390", UINT64_MAX);
address_spac... | [
"static void FUNC_0(S390pciState *VAR_0)\n{",
"int VAR_1;",
"S390PCIBusDevice *pbdev;",
"for (VAR_1 = 0; VAR_1 < PCI_SLOT_MAX; VAR_1++) {",
"pbdev = &VAR_0->pbdev[VAR_1];",
"memory_region_init(&pbdev->mr, OBJECT(VAR_0),\n\"iommu-root-s390\", UINT64_MAX);",
"address_space_init(&pbdev->as, &pbdev->mr, \"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
31
]
] |
21,315 | static uint64_t tmu2_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistTMU2State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_CTL:
case R_HMESHLAST:
case R_VMESHLAST:
case R_BRIGHTNESS:
case R_CHROMAKEY:
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t tmu2_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistTMU2State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_CTL:
case R_HMESHLAST:
case R_VMESHLAST:
case R_BRIGHTNESS:
case R_CHROMAKEY:
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
MilkymistTMU2State *s = opaque;
uint32_t r = 0;
addr >>= 2;
switch (addr) {
case R_CTL:
case R_HMESHLAST:
case R_VMESHLAST:
case R_BRIGHTNESS:
case R_CHROMAKEY:
... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"MilkymistTMU2State *s = opaque;",
"uint32_t r = 0;",
"addr >>= 2;",
"switch (addr) {",
"case R_CTL:\ncase R_HMESHLAST:\ncase R_VMESHLAST:\ncase R_BRIGHTNESS:\ncase R_CHROMAKEY:\ncase R_VERTICESADDR:\ncase R_TEXFBUF:\ncase... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55
],
[
57
],
[
61,
63,
65
],
[
67
... |
21,316 | static void icount_adjust_vm(void *opaque)
{
timer_mod(icount_vm_timer,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
NANOSECONDS_PER_SECOND / 10);
icount_adjust();
}
| false | qemu | b39e3f34c9de7ead6a11a74aa2de78baf41d81a7 | static void icount_adjust_vm(void *opaque)
{
timer_mod(icount_vm_timer,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
NANOSECONDS_PER_SECOND / 10);
icount_adjust();
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
timer_mod(icount_vm_timer,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
NANOSECONDS_PER_SECOND / 10);
icount_adjust();
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"timer_mod(icount_vm_timer,\nqemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +\nNANOSECONDS_PER_SECOND / 10);",
"icount_adjust();",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
13
]
] |
21,317 | static int qcow_is_allocated(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, int *pnum)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
cluster_offset = get_cluster_offset(bs, sector_num << 9, 0, 0, 0, 0);
index_in_cl... | false | qemu | f8a2e5e3ca6146d4cc66a4750daf44a0cf043319 | static int qcow_is_allocated(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, int *pnum)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
cluster_offset = get_cluster_offset(bs, sector_num << 9, 0, 0, 0, 0);
index_in_cl... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
int VAR_2, int *VAR_3)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_4, VAR_5;
uint64_t cluster_offset;
cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0, 0, 0, 0);
VAR_4 = VAR_1 & (s->cluster_sector... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, int *VAR_3)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_4, VAR_5;",
"uint64_t cluster_offset;",
"cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0, 0, 0, 0);",
"VAR_4 = VAR_1 & (s->cluster_sectors - 1);",
"VAR_5 = s->cl... | [
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
]
] |
21,318 | static uint64_t mv88w8618_eth_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t mv88w8618_eth_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,
unsigned size)
{
mv88w8618_eth_state *s = opaque;
switch (offset) {
case MP_ETH_SMIR:
if (s->smir & MP_ETH_SMIR_OPCODE) {
switch (s->smir & MP_ETH_SMIR_ADDR) {
case MP... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{",
"mv88w8618_eth_state *s = opaque;",
"switch (offset) {",
"case MP_ETH_SMIR:\nif (s->smir & MP_ETH_SMIR_OPCODE) {",
"switch (s->smir & MP_ETH_SMIR_ADDR) {",
"case MP_ETH_PHY1_BMSR:\nreturn MP_PHY_BMSR_LINK | MP_PHY_BMSR_A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21,
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[
57,
59... |
21,320 | static void blockdev_backup_prepare(BlkActionState *common, Error **errp)
{
BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common);
BlockdevBackup *backup;
BlockBackend *blk, *target;
Error *local_err = NULL;
assert(common->action->type == TRANSACTION_ACTION_KIND_BLOCKDE... | false | qemu | 32bafa8fdd098d52fbf1102d5a5e48d29398c0aa | static void blockdev_backup_prepare(BlkActionState *common, Error **errp)
{
BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, common, common);
BlockdevBackup *backup;
BlockBackend *blk, *target;
Error *local_err = NULL;
assert(common->action->type == TRANSACTION_ACTION_KIND_BLOCKDE... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1)
{
BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0);
BlockdevBackup *backup;
BlockBackend *blk, *target;
Error *local_err = NULL;
assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_BLOCKDEV_BACKUP);
back... | [
"static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1)\n{",
"BlockdevBackupState *state = DO_UPCAST(BlockdevBackupState, VAR_0, VAR_0);",
"BlockdevBackup *backup;",
"BlockBackend *blk, *target;",
"Error *local_err = NULL;",
"assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_BLOCKDEV_BACKUP);",
"b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,321 | static ExitStatus gen_call_pal(DisasContext *ctx, int palcode)
{
/* We're emulating OSF/1 PALcode. Many of these are trivial access
to internal cpu registers. */
/* Unprivileged PAL call */
if (palcode >= 0x80 && palcode < 0xC0) {
switch (palcode) {
case 0x86:
... | false | qemu | ba96394e20ad033a10eb790fdf2377e2a8892feb | static ExitStatus gen_call_pal(DisasContext *ctx, int palcode)
{
if (palcode >= 0x80 && palcode < 0xC0) {
switch (palcode) {
case 0x86:
break;
case 0x9E:
tcg_gen_mov_i64(cpu_ir[IR_V0], cpu_unique);
... | {
"code": [],
"line_no": []
} | static ExitStatus FUNC_0(DisasContext *ctx, int palcode)
{
if (palcode >= 0x80 && palcode < 0xC0) {
switch (palcode) {
case 0x86:
break;
case 0x9E:
tcg_gen_mov_i64(cpu_ir[IR_V0], cpu_unique);
... | [
"static ExitStatus FUNC_0(DisasContext *ctx, int palcode)\n{",
"if (palcode >= 0x80 && palcode < 0xC0) {",
"switch (palcode) {",
"case 0x86:\nbreak;",
"case 0x9E:\ntcg_gen_mov_i64(cpu_ir[IR_V0], cpu_unique);",
"break;",
"case 0x9F:\ntcg_gen_mov_i64(cpu_unique, cpu_ir[IR_A0]);",
"break;",
"default:\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
13
],
[
15
],
[
17,
23
],
[
25,
29
],
[
31
],
[
33,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53,
57
],
[
59
],
[
61,
67
],
[
69,
75
],
... |
21,322 | static void tcg_out_ri32(TCGContext *s, int const_arg, TCGArg arg)
{
if (const_arg) {
assert(const_arg == 1);
tcg_out8(s, TCG_CONST);
tcg_out32(s, arg);
} else {
tcg_out_r(s, arg);
}
}
| false | qemu | eabb7b91b36b202b4dac2df2d59d698e3aff197a | static void tcg_out_ri32(TCGContext *s, int const_arg, TCGArg arg)
{
if (const_arg) {
assert(const_arg == 1);
tcg_out8(s, TCG_CONST);
tcg_out32(s, arg);
} else {
tcg_out_r(s, arg);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, int VAR_1, TCGArg VAR_2)
{
if (VAR_1) {
assert(VAR_1 == 1);
tcg_out8(VAR_0, TCG_CONST);
tcg_out32(VAR_0, VAR_2);
} else {
tcg_out_r(VAR_0, VAR_2);
}
}
| [
"static void FUNC_0(TCGContext *VAR_0, int VAR_1, TCGArg VAR_2)\n{",
"if (VAR_1) {",
"assert(VAR_1 == 1);",
"tcg_out8(VAR_0, TCG_CONST);",
"tcg_out32(VAR_0, VAR_2);",
"} else {",
"tcg_out_r(VAR_0, VAR_2);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
21,323 | static void hybrid6_cx(float (*in)[2], float (*out)[32][2], const float (*filter)[7][2], int len)
{
int i, j, ssb;
int N = 8;
float temp[8][2];
for (i = 0; i < len; i++, in++) {
for (ssb = 0; ssb < N; ssb++) {
float sum_re = filter[ssb][6][0] * in[6][0], sum_im = filter[ssb]... | false | FFmpeg | bf1945af301aff54c33352e75f17aec6cb5269d7 | static void hybrid6_cx(float (*in)[2], float (*out)[32][2], const float (*filter)[7][2], int len)
{
int i, j, ssb;
int N = 8;
float temp[8][2];
for (i = 0; i < len; i++, in++) {
for (ssb = 0; ssb < N; ssb++) {
float sum_re = filter[ssb][6][0] * in[6][0], sum_im = filter[ssb]... | {
"code": [],
"line_no": []
} | static void FUNC_0(float (*VAR_0)[2], float (*VAR_1)[32][2], const float (*VAR_2)[7][2], int VAR_3)
{
int VAR_4, VAR_5, VAR_6;
int VAR_7 = 8;
float VAR_8[8][2];
for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++, VAR_0++) {
for (VAR_6 = 0; VAR_6 < VAR_7; VAR_6++) {
float VAR_9 = VAR_2[V... | [
"static void FUNC_0(float (*VAR_0)[2], float (*VAR_1)[32][2], const float (*VAR_2)[7][2], int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"int VAR_7 = 8;",
"float VAR_8[8][2];",
"for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++, VAR_0++) {",
"for (VAR_6 = 0; VAR_6 < VAR_7; VAR_6++) {",
"float VAR_9 = VAR_2[VAR_6][6][... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
21,325 | static int qsort_strcmp(const void *a, const void *b)
{
return strcmp(a, b);
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | static int qsort_strcmp(const void *a, const void *b)
{
return strcmp(a, b);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const void *VAR_0, const void *VAR_1)
{
return strcmp(VAR_0, VAR_1);
}
| [
"static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{",
"return strcmp(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
21,326 | static uint32_t mb_add_cmdline(MultibootState *s, const char *cmdline)
{
target_phys_addr_t p = s->offset_cmdlines;
char *b = (char *)s->mb_buf + p;
get_opt_value(b, strlen(cmdline) + 1, cmdline);
s->offset_cmdlines += strlen(b) + 1;
return s->mb_buf_phys + p;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t mb_add_cmdline(MultibootState *s, const char *cmdline)
{
target_phys_addr_t p = s->offset_cmdlines;
char *b = (char *)s->mb_buf + p;
get_opt_value(b, strlen(cmdline) + 1, cmdline);
s->offset_cmdlines += strlen(b) + 1;
return s->mb_buf_phys + p;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(MultibootState *s, const char *cmdline)
{
target_phys_addr_t p = s->offset_cmdlines;
char *VAR_0 = (char *)s->mb_buf + p;
get_opt_value(VAR_0, strlen(cmdline) + 1, cmdline);
s->offset_cmdlines += strlen(VAR_0) + 1;
return s->mb_buf_phys + p;
}
| [
"static uint32_t FUNC_0(MultibootState *s, const char *cmdline)\n{",
"target_phys_addr_t p = s->offset_cmdlines;",
"char *VAR_0 = (char *)s->mb_buf + p;",
"get_opt_value(VAR_0, strlen(cmdline) + 1, cmdline);",
"s->offset_cmdlines += strlen(VAR_0) + 1;",
"return s->mb_buf_phys + p;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
21,327 | static void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
uint8_t *aDest,... | false | FFmpeg | 13a099799e89a76eb921ca452e1b04a7a28a9855 | static void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
uint8_t *aDest,... | {
"code": [],
"line_no": []
} | static void FUNC_0(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
uint8_t *aDest,... | [
"static void FUNC_0(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,\nconst int16_t *chrUSrc, const int16_t *chrVSrc,\nconst int16_t *alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest,\nuint8_t *aDest, int dstW, int chrDstW)\n{",
"int VAR_0= 4;",
"const int16_t *VAR_1[4]= { alpSrc + dstW, lumSrc + dstW, chr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57
],
[
59
],
[
61
],
[... |
21,328 | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_si... | false | FFmpeg | 5e53486545726987ab4482321d4dcf7e23e7652f | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_si... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
Vp3DecodeContext *s = VAR_0->priv_data;
GetBitContext gb;
static int VAR_5 = 0;
int VAR_6;
init_get_bits(&gb, VAR_3, VAR_4 * 8);
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"GetBitContext gb;",
"static int VAR_5 = 0;",
"int VAR_6;",
"init_get_bits(&gb, VAR_3, VAR_4 * 8);",
"if (s->theora && get_bits1(&gb))\n{",
"av_log(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
... |
21,329 | static char *ts_value_string (char *buf, int buf_size, int64_t ts)
{
if (ts == AV_NOPTS_VALUE) {
snprintf(buf, buf_size, "N/A");
} else {
snprintf(buf, buf_size, "%"PRId64, ts);
}
return buf;
}
| false | FFmpeg | 0491a2a07a44f6e5e6f34081835e402c07025fd2 | static char *ts_value_string (char *buf, int buf_size, int64_t ts)
{
if (ts == AV_NOPTS_VALUE) {
snprintf(buf, buf_size, "N/A");
} else {
snprintf(buf, buf_size, "%"PRId64, ts);
}
return buf;
}
| {
"code": [],
"line_no": []
} | static char *FUNC_0 (char *VAR_0, int VAR_1, int64_t VAR_2)
{
if (VAR_2 == AV_NOPTS_VALUE) {
snprintf(VAR_0, VAR_1, "N/A");
} else {
snprintf(VAR_0, VAR_1, "%"PRId64, VAR_2);
}
return VAR_0;
}
| [
"static char *FUNC_0 (char *VAR_0, int VAR_1, int64_t VAR_2)\n{",
"if (VAR_2 == AV_NOPTS_VALUE) {",
"snprintf(VAR_0, VAR_1, \"N/A\");",
"} else {",
"snprintf(VAR_0, VAR_1, \"%\"PRId64, VAR_2);",
"}",
"return VAR_0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
21,330 | void pci_ne2000_init(PCIBus *bus, NICInfo *nd)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(bus,
"NE2000", sizeof(PCINE2000State),
-1,
... | true | qemu | d861b05ea30e6ac177de9b679da96194ebe21afc | void pci_ne2000_init(PCIBus *bus, NICInfo *nd)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(bus,
"NE2000", sizeof(PCINE2000State),
-1,
... | {
"code": [
" s->vc = qemu_new_vlan_client(nd->vlan, ne2000_receive, s);",
" s->vc = qemu_new_vlan_client(nd->vlan, ne2000_receive, s);"
],
"line_no": [
55,
55
]
} | void FUNC_0(PCIBus *VAR_0, NICInfo *VAR_1)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(VAR_0,
"NE2000", sizeof(PCINE2000State),
-1,
... | [
"void FUNC_0(PCIBus *VAR_0, NICInfo *VAR_1)\n{",
"PCINE2000State *d;",
"NE2000State *s;",
"uint8_t *pci_conf;",
"d = (PCINE2000State *)pci_register_device(VAR_0,\n\"NE2000\", sizeof(PCINE2000State),\n-1,\nNULL, NULL);",
"pci_conf = d->dev.config;",
"pci_conf[0x00] = 0xec;",
"pci_conf[0x01] = 0x10;",
... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
... |
21,331 | static int decode_bdlt(uint8_t *frame, int width, int height,
const uint8_t *src, const uint8_t *src_end)
{
const uint8_t *frame_end = frame + width * height;
uint8_t *line_ptr;
int count, lines, segments;
count = bytestream_get_le16(&src);
if (count >= height || widt... | true | FFmpeg | 65daa942eb51c348e205ae3a54f77b8781907a81 | static int decode_bdlt(uint8_t *frame, int width, int height,
const uint8_t *src, const uint8_t *src_end)
{
const uint8_t *frame_end = frame + width * height;
uint8_t *line_ptr;
int count, lines, segments;
count = bytestream_get_le16(&src);
if (count >= height || widt... | {
"code": [
" if (count >= height || width * count < 0)",
" if (frame + lines * width > frame_end || src >= src_end)",
" line_ptr += *src++;",
" if (line_ptr >= frame)",
" if (line_ptr + count > frame || src_end - src < count)",
" if (l... | static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,
const uint8_t *VAR_3, const uint8_t *VAR_4)
{
const uint8_t *VAR_5 = VAR_0 + VAR_1 * VAR_2;
uint8_t *line_ptr;
int VAR_6, VAR_7, VAR_8;
VAR_6 = bytestream_get_le16(&VAR_3);
if (VAR_6 >= VAR_2 || VAR_1 * VAR_6 < 0... | [
"static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, const uint8_t *VAR_4)\n{",
"const uint8_t *VAR_5 = VAR_0 + VAR_1 * VAR_2;",
"uint8_t *line_ptr;",
"int VAR_6, VAR_7, VAR_8;",
"VAR_6 = bytestream_get_le16(&VAR_3);",
"if (VAR_6 >= VAR_2 || VAR_1 * VAR_6 < 0)\nreturn -1;",
"V... | [
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
1,
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
],
[
41,
43
],
[
45
],
[
47,
49
],
[... |
21,332 | gdb_handlesig (CPUState *env, int sig)
{
GDBState *s;
char buf[256];
int n;
s = gdbserver_state;
if (gdbserver_fd < 0 || s->fd < 0)
return sig;
/* disable single step if it was enabled */
cpu_single_step(env, 0);
tb_flush(env);
if (sig != 0)
{
snprintf(buf, sizeof(buf)... | true | qemu | e7d81004e486b0e80a674d164d8aec0e83fa812f | gdb_handlesig (CPUState *env, int sig)
{
GDBState *s;
char buf[256];
int n;
s = gdbserver_state;
if (gdbserver_fd < 0 || s->fd < 0)
return sig;
cpu_single_step(env, 0);
tb_flush(env);
if (sig != 0)
{
snprintf(buf, sizeof(buf), "S%02x", target_signal_to_gdb (sig));
... | {
"code": [],
"line_no": []
} | FUNC_0 (CPUState *VAR_0, int VAR_1)
{
GDBState *s;
char VAR_2[256];
int VAR_3;
s = gdbserver_state;
if (gdbserver_fd < 0 || s->fd < 0)
return VAR_1;
cpu_single_step(VAR_0, 0);
tb_flush(VAR_0);
if (VAR_1 != 0)
{
snprintf(VAR_2, sizeof(VAR_2), "S%02x", target_signal_to_... | [
"FUNC_0 (CPUState *VAR_0, int VAR_1)\n{",
"GDBState *s;",
"char VAR_2[256];",
"int VAR_3;",
"s = gdbserver_state;",
"if (gdbserver_fd < 0 || s->fd < 0)\nreturn VAR_1;",
"cpu_single_step(VAR_0, 0);",
"tb_flush(VAR_0);",
"if (VAR_1 != 0)\n{",
"snprintf(VAR_2, sizeof(VAR_2), \"S%02x\", target_signal_... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
21,333 | int spapr_h_cas_compose_response(target_ulong addr, target_ulong size)
{
void *fdt, *fdt_skel;
sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 };
size -= sizeof(hdr);
/* Create sceleton */
fdt_skel = g_malloc0(size);
_FDT((fdt_create(fdt_skel, size)));
_FDT((fdt_begin_node(fd... | true | qemu | 3794d5482d74dc0031cee6d5be2c61c88ca723bd | int spapr_h_cas_compose_response(target_ulong addr, target_ulong size)
{
void *fdt, *fdt_skel;
sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 };
size -= sizeof(hdr);
fdt_skel = g_malloc0(size);
_FDT((fdt_create(fdt_skel, size)));
_FDT((fdt_begin_node(fdt_skel, "")));
_... | {
"code": [],
"line_no": []
} | int FUNC_0(target_ulong VAR_0, target_ulong VAR_1)
{
void *VAR_2, *VAR_3;
sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 };
VAR_1 -= sizeof(hdr);
VAR_3 = g_malloc0(VAR_1);
_FDT((fdt_create(VAR_3, VAR_1)));
_FDT((fdt_begin_node(VAR_3, "")));
_FDT((fdt_end_node(VAR_3)));... | [
"int FUNC_0(target_ulong VAR_0, target_ulong VAR_1)\n{",
"void *VAR_2, *VAR_3;",
"sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 };",
"VAR_1 -= sizeof(hdr);",
"VAR_3 = g_malloc0(VAR_1);",
"_FDT((fdt_create(VAR_3, VAR_1)));",
"_FDT((fdt_begin_node(VAR_3, \"\")));",
"_FDT((fdt_end_node(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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59... |
21,336 | int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const char *device = qdict_get_str(qdict, "device");
const char *filename = qdict_get_try_str(qdict, "snapshot_file");
const char *format = qdict_get_try_str(qdict, "format");
BlockDriverState *bs;
BlockDriver *drv,... | true | qemu | 52f9a172b6db89ba1f4389883be805d65dd3ca8c | int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const char *device = qdict_get_str(qdict, "device");
const char *filename = qdict_get_try_str(qdict, "snapshot_file");
const char *format = qdict_get_try_str(qdict, "format");
BlockDriverState *bs;
BlockDriver *drv,... | {
"code": [
" BlockDriver *drv, *proto_drv;",
" bs->drv->format_name, NULL, -1, bs->open_flags);",
" flags = bs->open_flags;",
" abort();"
],
"line_no": [
13,
85,
101,
117
]
} | int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{
const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3");
const char *VAR_4 = qdict_get_try_str(VAR_1, "snapshot_file");
const char *VAR_5 = qdict_get_try_str(VAR_1, "VAR_5");
BlockDriverState *bs;
BlockDriver *drv, *proto_drv;
in... | [
"int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{",
"const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");",
"const char *VAR_4 = qdict_get_try_str(VAR_1, \"snapshot_file\");",
"const char *VAR_5 = qdict_get_try_str(VAR_1, \"VAR_5\");",
"BlockDriverState *bs;",
"BlockDriver *drv, *proto_d... | [
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,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
... |
21,337 | static int decode_sequence_header(AVCodecContext *avctx, GetBitContext *gb)
{
VC9Context *v = avctx->priv_data;
v->profile = get_bits(gb, 2);
av_log(avctx, AV_LOG_DEBUG, "Profile: %i\n", v->profile);
#if HAS_ADVANCED_PROFILE
if (v->profile > PROFILE_MAIN)
{
v->level = get_bits(gb... | true | FFmpeg | 7cc84d241ba6ef8e27e4d057176a4ad385ad3d59 | static int decode_sequence_header(AVCodecContext *avctx, GetBitContext *gb)
{
VC9Context *v = avctx->priv_data;
v->profile = get_bits(gb, 2);
av_log(avctx, AV_LOG_DEBUG, "Profile: %i\n", v->profile);
#if HAS_ADVANCED_PROFILE
if (v->profile > PROFILE_MAIN)
{
v->level = get_bits(gb... | {
"code": [
"#endif",
"#endif",
"#endif",
"#endif",
" av_log(avctx, AV_LOG_DEBUG, \"Profile: %i\\n\", v->profile);",
" if (v->profile > PROFILE_MAIN)",
" if (v->profile <= PROFILE_MAIN)",
" if (v->profile <= PROFILE_MAIN)",
" if (v->profile <= PROFILE_MAIN)",
" ... | static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1)
{
VC9Context *v = VAR_0->priv_data;
v->profile = get_bits(VAR_1, 2);
av_log(VAR_0, AV_LOG_DEBUG, "Profile: %i\n", v->profile);
#if HAS_ADVANCED_PROFILE
if (v->profile > PROFILE_MAIN)
{
v->level = get_bits(VAR_1, 3);
... | [
"static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1)\n{",
"VC9Context *v = VAR_0->priv_data;",
"v->profile = get_bits(VAR_1, 2);",
"av_log(VAR_0, AV_LOG_DEBUG, \"Profile: %i\\n\", v->profile);",
"#if HAS_ADVANCED_PROFILE\nif (v->profile > PROFILE_MAIN)\n{",
"v->level = get_bits(VAR_1, 3);",
"... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47,
49
],
[
51,
53... |
21,338 | static void rdma_accept_incoming_migration(void *opaque)
{
RDMAContext *rdma = opaque;
int ret;
QEMUFile *f;
Error *local_err = NULL, **errp = &local_err;
DPRINTF("Accepting rdma connection...\n");
ret = qemu_rdma_accept(rdma);
if (ret) {
ERROR(errp, "RDMA Migration init... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void rdma_accept_incoming_migration(void *opaque)
{
RDMAContext *rdma = opaque;
int ret;
QEMUFile *f;
Error *local_err = NULL, **errp = &local_err;
DPRINTF("Accepting rdma connection...\n");
ret = qemu_rdma_accept(rdma);
if (ret) {
ERROR(errp, "RDMA Migration init... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
RDMAContext *rdma = VAR_0;
int VAR_1;
QEMUFile *f;
Error *local_err = NULL, **errp = &local_err;
DPRINTF("Accepting rdma connection...\n");
VAR_1 = qemu_rdma_accept(rdma);
if (VAR_1) {
ERROR(errp, "RDMA Migration initialization failed!")... | [
"static void FUNC_0(void *VAR_0)\n{",
"RDMAContext *rdma = VAR_0;",
"int VAR_1;",
"QEMUFile *f;",
"Error *local_err = NULL, **errp = &local_err;",
"DPRINTF(\"Accepting rdma connection...\\n\");",
"VAR_1 = qemu_rdma_accept(rdma);",
"if (VAR_1) {",
"ERROR(errp, \"RDMA Migration initialization failed!\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
21,339 | static int extract_header(AVCodecContext *const avctx,
const AVPacket *const avpkt) {
const uint8_t *buf;
unsigned buf_size;
IffContext *s = avctx->priv_data;
int palette_size;
if (avctx->extradata_size < 2) {
av_log(avctx, AV_LOG_ERROR, "not enough extrada... | true | FFmpeg | 0e1925ddc4bb1499fcfc6a1a3990115f8d30c243 | static int extract_header(AVCodecContext *const avctx,
const AVPacket *const avpkt) {
const uint8_t *buf;
unsigned buf_size;
IffContext *s = avctx->priv_data;
int palette_size;
if (avctx->extradata_size < 2) {
av_log(avctx, AV_LOG_ERROR, "not enough extrada... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *const VAR_0,
const AVPacket *const VAR_1) {
const uint8_t *VAR_2;
unsigned VAR_3;
IffContext *s = VAR_0->priv_data;
int VAR_4;
if (VAR_0->extradata_size < 2) {
av_log(VAR_0, AV_LOG_ERROR, "not enough extradata\n");
... | [
"static int FUNC_0(AVCodecContext *const VAR_0,\nconst AVPacket *const VAR_1) {",
"const uint8_t *VAR_2;",
"unsigned VAR_3;",
"IffContext *s = VAR_0->priv_data;",
"int VAR_4;",
"if (VAR_0->extradata_size < 2) {",
"av_log(VAR_0, AV_LOG_ERROR, \"not enough extradata\\n\");",
"return AVERROR_INVALIDDATA;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
22
],
[
26
],
[
28
],
[
30,
32
],
[
34
],
[
36
],
[
38
],
[
40
],
[
42,
44,
46
],
[
48
],
[... |
21,340 | static void handle_output(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSerial *vser;
VirtIOSerialPort *port;
VirtIOSerialPortInfo *info;
vser = DO_UPCAST(VirtIOSerial, vdev, vdev);
port = find_port_by_vq(vser, vq);
info = port ? DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info) : NULL... | false | qemu | 03ecd2c80a64d030a22fe67cc7a60f24e17ff211 | static void handle_output(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSerial *vser;
VirtIOSerialPort *port;
VirtIOSerialPortInfo *info;
vser = DO_UPCAST(VirtIOSerial, vdev, vdev);
port = find_port_by_vq(vser, vq);
info = port ? DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info) : NULL... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
VirtIOSerial *vser;
VirtIOSerialPort *port;
VirtIOSerialPortInfo *info;
vser = DO_UPCAST(VirtIOSerial, VAR_0, VAR_0);
port = find_port_by_vq(vser, VAR_1);
info = port ? DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info) : NU... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"VirtIOSerial *vser;",
"VirtIOSerialPort *port;",
"VirtIOSerialPortInfo *info;",
"vser = DO_UPCAST(VirtIOSerial, VAR_0, VAR_0);",
"port = find_port_by_vq(vser, VAR_1);",
"info = port ? DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info) :... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
21,341 | static abi_long do_getsockname(int fd, abi_ulong target_addr,
abi_ulong target_addrlen_addr)
{
socklen_t addrlen;
void *addr;
abi_long ret;
if (target_addr == 0)
return get_errno(accept(fd, NULL, NULL));
if (get_user_u32(addrlen, target_addrlen_addr)... | false | qemu | 917507b01efea8017bfcb4188ac696612e363e72 | static abi_long do_getsockname(int fd, abi_ulong target_addr,
abi_ulong target_addrlen_addr)
{
socklen_t addrlen;
void *addr;
abi_long ret;
if (target_addr == 0)
return get_errno(accept(fd, NULL, NULL));
if (get_user_u32(addrlen, target_addrlen_addr)... | {
"code": [],
"line_no": []
} | static abi_long FUNC_0(int fd, abi_ulong target_addr,
abi_ulong target_addrlen_addr)
{
socklen_t addrlen;
void *VAR_0;
abi_long ret;
if (target_addr == 0)
return get_errno(accept(fd, NULL, NULL));
if (get_user_u32(addrlen, target_addrlen_addr))
... | [
"static abi_long FUNC_0(int fd, abi_ulong target_addr,\nabi_ulong target_addrlen_addr)\n{",
"socklen_t addrlen;",
"void *VAR_0;",
"abi_long ret;",
"if (target_addr == 0)\nreturn get_errno(accept(fd, NULL, NULL));",
"if (get_user_u32(addrlen, target_addrlen_addr))\nreturn -TARGET_EFAULT;",
"if (addrlen <... | [
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
],
[
27,
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
]
] |
21,342 | static int pc_rec_cmp(const void *p1, const void *p2)
{
PCRecord *r1 = *(PCRecord **)p1;
PCRecord *r2 = *(PCRecord **)p2;
if (r1->count < r2->count)
return 1;
else if (r1->count == r2->count)
return 0;
else
return -1;
}
| false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | static int pc_rec_cmp(const void *p1, const void *p2)
{
PCRecord *r1 = *(PCRecord **)p1;
PCRecord *r2 = *(PCRecord **)p2;
if (r1->count < r2->count)
return 1;
else if (r1->count == r2->count)
return 0;
else
return -1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const void *VAR_0, const void *VAR_1)
{
PCRecord *r1 = *(PCRecord **)VAR_0;
PCRecord *r2 = *(PCRecord **)VAR_1;
if (r1->count < r2->count)
return 1;
else if (r1->count == r2->count)
return 0;
else
return -1;
}
| [
"static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{",
"PCRecord *r1 = *(PCRecord **)VAR_0;",
"PCRecord *r2 = *(PCRecord **)VAR_1;",
"if (r1->count < r2->count)\nreturn 1;",
"else if (r1->count == r2->count)\nreturn 0;",
"else\nreturn -1;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21
]
] |
21,343 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
bool want_zero,
int64_t sector_num,
int nb_sectors, int *pnum,
... | false | qemu | 2e8bc7874bb674b7d6837706b1249bf871941637 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
bool want_zero,
int64_t sector_num,
int nb_sectors, int *pnum,
... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,
bool want_zero,
int64_t sector_num,
int nb_sectors, int *pnum,
... | [
"static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,\nbool want_zero,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{",
"int64_t total_sectors;",
"int64_t n;",
"int64_t ret, ret2;",
"BlockDriverState *local_file = NULL;",
"assert(pnum);",
"*pnum = 0;",
"to... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,344 | static void usbredir_bulk_packet(void *priv, uint32_t id,
struct usb_redir_bulk_packet_header *bulk_packet,
uint8_t *data, int data_len)
{
USBRedirDevice *dev = priv;
uint8_t ep = bulk_packet->endpoint;
int len = bulk_packet->length;
AsyncURB *aurb;
DPRINTF("bulk-in status %d ep %0... | false | qemu | 104981d52b63dc3d68f39d4442881c667f44bbb9 | static void usbredir_bulk_packet(void *priv, uint32_t id,
struct usb_redir_bulk_packet_header *bulk_packet,
uint8_t *data, int data_len)
{
USBRedirDevice *dev = priv;
uint8_t ep = bulk_packet->endpoint;
int len = bulk_packet->length;
AsyncURB *aurb;
DPRINTF("bulk-in status %d ep %0... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1,
struct usb_redir_bulk_packet_header *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
USBRedirDevice *dev = VAR_0;
uint8_t ep = VAR_2->endpoint;
int VAR_5 = VAR_2->length;
AsyncURB *aurb;
DPRINTF("bulk-in status %d ep %02X VAR_5 %d VAR_1 %u\n", VA... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1,\nstruct usb_redir_bulk_packet_header *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"USBRedirDevice *dev = VAR_0;",
"uint8_t ep = VAR_2->endpoint;",
"int VAR_5 = VAR_2->length;",
"AsyncURB *aurb;",
"DPRINTF(\"bulk-in status %d ep %02X VAR_5 %d VAR_1 %u\\n\", 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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
... |
21,346 | static inline void gen_op_eval_fbu(TCGv dst, TCGv src,
unsigned int fcc_offset)
{
gen_mov_reg_FCC0(dst, src, fcc_offset);
gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset);
tcg_gen_and_tl(dst, dst, cpu_tmp0);
}
| false | qemu | de9e9d9f17a36ff76c1a02a5348835e5e0a081b0 | static inline void gen_op_eval_fbu(TCGv dst, TCGv src,
unsigned int fcc_offset)
{
gen_mov_reg_FCC0(dst, src, fcc_offset);
gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset);
tcg_gen_and_tl(dst, dst, cpu_tmp0);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1,
unsigned int VAR_2)
{
gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2);
gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2);
tcg_gen_and_tl(VAR_0, VAR_0, cpu_tmp0);
}
| [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1,\nunsigned int VAR_2)\n{",
"gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2);",
"gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2);",
"tcg_gen_and_tl(VAR_0, VAR_0, cpu_tmp0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
21,347 | static void virtio_pci_device_plugged(DeviceState *d)
{
VirtIOPCIProxy *proxy = VIRTIO_PCI(d);
VirtioBusState *bus = &proxy->bus;
uint8_t *config;
uint32_t size;
config = proxy->pci_dev.config;
if (proxy->class_code) {
pci_config_set_class(config, proxy->class_code);
}
... | false | qemu | 0cd09c3a6cc2230ba38c462fc410b4acce59eb6f | static void virtio_pci_device_plugged(DeviceState *d)
{
VirtIOPCIProxy *proxy = VIRTIO_PCI(d);
VirtioBusState *bus = &proxy->bus;
uint8_t *config;
uint32_t size;
config = proxy->pci_dev.config;
if (proxy->class_code) {
pci_config_set_class(config, proxy->class_code);
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0)
{
VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);
VirtioBusState *bus = &proxy->bus;
uint8_t *config;
uint32_t size;
config = proxy->pci_dev.config;
if (proxy->class_code) {
pci_config_set_class(config, proxy->class_code);
}
pci_set_w... | [
"static void FUNC_0(DeviceState *VAR_0)\n{",
"VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);",
"VirtioBusState *bus = &proxy->bus;",
"uint8_t *config;",
"uint32_t size;",
"config = proxy->pci_dev.config;",
"if (proxy->class_code) {",
"pci_config_set_class(config, proxy->class_code);",
"}",
"pci_set_wo... | [
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[
51,
53
... |
21,349 | void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp)
{
int i, j = 0;
const int mb_block_count = 4 + (1 << s->chroma_format);
cbp <<= 12-mb_block_count;
for (i = 0; i < mb_block_count; i++) {
if (cbp & (1 << 11))
s->pblocks[i] = &s->block[j++];
else
s->... | false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp)
{
int i, j = 0;
const int mb_block_count = 4 + (1 << s->chroma_format);
cbp <<= 12-mb_block_count;
for (i = 0; i < mb_block_count; i++) {
if (cbp & (1 << 11))
s->pblocks[i] = &s->block[j++];
else
s->... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0, int VAR_1)
{
int VAR_2, VAR_3 = 0;
const int VAR_4 = 4 + (1 << VAR_0->chroma_format);
VAR_1 <<= 12-VAR_4;
for (VAR_2 = 0; VAR_2 < VAR_4; VAR_2++) {
if (VAR_1 & (1 << 11))
VAR_0->pblocks[VAR_2] = &VAR_0->block[VAR_3++];
else
... | [
"void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"const int VAR_4 = 4 + (1 << VAR_0->chroma_format);",
"VAR_1 <<= 12-VAR_4;",
"for (VAR_2 = 0; VAR_2 < VAR_4; VAR_2++) {",
"if (VAR_1 & (1 << 11))\nVAR_0->pblocks[VAR_2] = &VAR_0->block[VAR_3++];",
"else\nVAR_0->pblocks[VAR_2] =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
]
] |
21,350 | static void cpu_print_cc(FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
uint32_t cc)
{
cpu_fprintf(f, "%c%c%c%c", cc & PSR_NEG? 'N' : '-',
cc & PSR_ZERO? 'Z' : '-', cc & PSR_OVF? 'V' : '-',
cc & PSR_CARRY? 'C' : '-'... | false | qemu | 9a78eead0c74333a394c0f7bbfc4423ac746fcd5 | static void cpu_print_cc(FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
uint32_t cc)
{
cpu_fprintf(f, "%c%c%c%c", cc & PSR_NEG? 'N' : '-',
cc & PSR_ZERO? 'Z' : '-', cc & PSR_OVF? 'V' : '-',
cc & PSR_CARRY? 'C' : '-'... | {
"code": [],
"line_no": []
} | static void FUNC_0(FILE *VAR_2,
int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...),
uint32_t VAR_3)
{
VAR_1(VAR_2, "%c%c%c%c", VAR_3 & PSR_NEG? 'N' : '-',
VAR_3 & PSR_ZERO? 'Z' : '-', VAR_3 & PSR_OVF? 'V' : '-',
VAR_3 & PSR_CARRY... | [
"static void FUNC_0(FILE *VAR_2,\nint (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...),\nuint32_t VAR_3)\n{",
"VAR_1(VAR_2, \"%c%c%c%c\", VAR_3 & PSR_NEG? 'N' : '-',\nVAR_3 & PSR_ZERO? 'Z' : '-', VAR_3 & PSR_OVF? 'V' : '-',\nVAR_3 & PSR_CARRY? 'C' : '-');",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15
]
] |
21,351 | static int cpu_restore_state_from_tb(CPUState *cpu, TranslationBlock *tb,
uintptr_t searched_pc)
{
CPUArchState *env = cpu->env_ptr;
TCGContext *s = &tcg_ctx;
int j;
uintptr_t tc_ptr;
#ifdef CONFIG_PROFILER
int64_t ti;
#endif
#ifdef CONFIG_PROFILER
... | false | qemu | bd79255d2571a3c68820117caf94ea9afe1d527e | static int cpu_restore_state_from_tb(CPUState *cpu, TranslationBlock *tb,
uintptr_t searched_pc)
{
CPUArchState *env = cpu->env_ptr;
TCGContext *s = &tcg_ctx;
int j;
uintptr_t tc_ptr;
#ifdef CONFIG_PROFILER
int64_t ti;
#endif
#ifdef CONFIG_PROFILER
... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1,
uintptr_t VAR_2)
{
CPUArchState *env = VAR_0->env_ptr;
TCGContext *s = &tcg_ctx;
int VAR_3;
uintptr_t tc_ptr;
#ifdef CONFIG_PROFILER
int64_t ti;
#endif
#ifdef CONFIG_PROFILER
ti = profil... | [
"static int FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1,\nuintptr_t VAR_2)\n{",
"CPUArchState *env = VAR_0->env_ptr;",
"TCGContext *s = &tcg_ctx;",
"int VAR_3;",
"uintptr_t tc_ptr;",
"#ifdef CONFIG_PROFILER\nint64_t ti;",
"#endif\n#ifdef CONFIG_PROFILER\nti = profile_getclock();",
"#endif\ntcg_fun... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19,
23,
25
],
[
27,
29
],
[
33
],
[
37
],
[
41
],
[
45
],
[
47
],
[
53
],
[
55,
57
],
[
61
],
[
63,... |
21,352 | static uint8_t virtio_scsi_do_command(QVirtIOSCSI *vs, const uint8_t *cdb,
const uint8_t *data_in,
size_t data_in_len,
uint8_t *data_out, size_t data_out_len)
{
QVirtQueue *vq;
QVirtIOSCSICmdR... | false | qemu | 4bb7b0daf8ea34bcc582642d35a2e4902f7841db | static uint8_t virtio_scsi_do_command(QVirtIOSCSI *vs, const uint8_t *cdb,
const uint8_t *data_in,
size_t data_in_len,
uint8_t *data_out, size_t data_out_len)
{
QVirtQueue *vq;
QVirtIOSCSICmdR... | {
"code": [],
"line_no": []
} | static uint8_t FUNC_0(QVirtIOSCSI *vs, const uint8_t *cdb,
const uint8_t *data_in,
size_t data_in_len,
uint8_t *data_out, size_t data_out_len)
{
QVirtQueue *vq;
QVirtIOSCSICmdReq req = { { 0 }... | [
"static uint8_t FUNC_0(QVirtIOSCSI *vs, const uint8_t *cdb,\nconst uint8_t *data_in,\nsize_t data_in_len,\nuint8_t *data_out, size_t data_out_len)\n{",
"QVirtQueue *vq;",
"QVirtIOSCSICmdReq req = { { 0 } };",
"QVirtIOSCSICmdResp resp = { .response = 0xff, .status = 0xff };",
"uint64_t req_addr, resp_addr, d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
61
],
[... |
21,353 | static uint64_t pic_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
HeathrowPICS *s = opaque;
HeathrowPIC *pic;
unsigned int n;
uint32_t value;
n = ((addr & 0xfff) - 0x10) >> 4;
if (n >= 2) {
value = 0;
} else {
pic = &s->pic... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t pic_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
HeathrowPICS *s = opaque;
HeathrowPIC *pic;
unsigned int n;
uint32_t value;
n = ((addr & 0xfff) - 0x10) >> 4;
if (n >= 2) {
value = 0;
} else {
pic = &s->pic... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
HeathrowPICS *s = opaque;
HeathrowPIC *pic;
unsigned int VAR_0;
uint32_t value;
VAR_0 = ((addr & 0xfff) - 0x10) >> 4;
if (VAR_0 >= 2) {
value = 0;
} else {
pic... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"HeathrowPICS *s = opaque;",
"HeathrowPIC *pic;",
"unsigned int VAR_0;",
"uint32_t value;",
"VAR_0 = ((addr & 0xfff) - 0x10) >> 4;",
"if (VAR_0 >= 2) {",
"value = 0;",
"} else {",
"pic = &s->pics[VAR_0];",
"switc... | [
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,... |
21,354 | static void pc_dimm_realize(DeviceState *dev, Error **errp)
{
PCDIMMDevice *dimm = PC_DIMM(dev);
if (!dimm->hostmem) {
error_setg(errp, "'" PC_DIMM_MEMDEV_PROP "' property is not set");
return;
}
if (dimm->node >= nb_numa_nodes) {
error_setg(errp, "'DIMM property " PC_D... | false | qemu | fc50ff0666315be5120c70ad00cd0b0097484b84 | static void pc_dimm_realize(DeviceState *dev, Error **errp)
{
PCDIMMDevice *dimm = PC_DIMM(dev);
if (!dimm->hostmem) {
error_setg(errp, "'" PC_DIMM_MEMDEV_PROP "' property is not set");
return;
}
if (dimm->node >= nb_numa_nodes) {
error_setg(errp, "'DIMM property " PC_D... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
PCDIMMDevice *dimm = PC_DIMM(VAR_0);
if (!dimm->hostmem) {
error_setg(VAR_1, "'" PC_DIMM_MEMDEV_PROP "' property is not set");
return;
}
if (dimm->node >= nb_numa_nodes) {
error_setg(VAR_1, "'DIMM property " PC_DIM... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"PCDIMMDevice *dimm = PC_DIMM(VAR_0);",
"if (!dimm->hostmem) {",
"error_setg(VAR_1, \"'\" PC_DIMM_MEMDEV_PROP \"' property is not set\");",
"return;",
"}",
"if (dimm->node >= nb_numa_nodes) {",
"error_setg(VAR_1, \"'DIMM property \" PC_DIMM_N... | [
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
]
] |
21,355 | static void vtd_reset_context_cache(IntelIOMMUState *s)
{
VTDAddressSpace **pvtd_as;
VTDAddressSpace *vtd_as;
uint32_t bus_it;
uint32_t devfn_it;
VTD_DPRINTF(CACHE, "global context_cache_gen=1");
for (bus_it = 0; bus_it < VTD_PCI_BUS_MAX; ++bus_it) {
pvtd_as = s->address_spaces... | false | qemu | 7df953bd456da45f761064974820ab5c3fd7b2aa | static void vtd_reset_context_cache(IntelIOMMUState *s)
{
VTDAddressSpace **pvtd_as;
VTDAddressSpace *vtd_as;
uint32_t bus_it;
uint32_t devfn_it;
VTD_DPRINTF(CACHE, "global context_cache_gen=1");
for (bus_it = 0; bus_it < VTD_PCI_BUS_MAX; ++bus_it) {
pvtd_as = s->address_spaces... | {
"code": [],
"line_no": []
} | static void FUNC_0(IntelIOMMUState *VAR_0)
{
VTDAddressSpace **pvtd_as;
VTDAddressSpace *vtd_as;
uint32_t bus_it;
uint32_t devfn_it;
VTD_DPRINTF(CACHE, "global context_cache_gen=1");
for (bus_it = 0; bus_it < VTD_PCI_BUS_MAX; ++bus_it) {
pvtd_as = VAR_0->address_spaces[bus_it];... | [
"static void FUNC_0(IntelIOMMUState *VAR_0)\n{",
"VTDAddressSpace **pvtd_as;",
"VTDAddressSpace *vtd_as;",
"uint32_t bus_it;",
"uint32_t devfn_it;",
"VTD_DPRINTF(CACHE, \"global context_cache_gen=1\");",
"for (bus_it = 0; bus_it < VTD_PCI_BUS_MAX; ++bus_it) {",
"pvtd_as = VAR_0->address_spaces[bus_it]... | [
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
... |
21,356 | static void virtio_write_config(PCIDevice *pci_dev, uint32_t address,
uint32_t val, int len)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
if (PCI_COMMAND == address) {
if (!(val & PCI_COMMAND_MASTER)) {
proxy->vdev->status &= ... | false | qemu | 85352471ce78d73b8306822959caace2e8880535 | static void virtio_write_config(PCIDevice *pci_dev, uint32_t address,
uint32_t val, int len)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
if (PCI_COMMAND == address) {
if (!(val & PCI_COMMAND_MASTER)) {
proxy->vdev->status &= ... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, int VAR_3)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);
if (PCI_COMMAND == VAR_1) {
if (!(VAR_2 & PCI_COMMAND_MASTER)) {
proxy->vdev->status &= !VIRTIO_CONFIG_S_... | [
"static void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, int VAR_3)\n{",
"VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);",
"if (PCI_COMMAND == VAR_1) {",
"if (!(VAR_2 & PCI_COMMAND_MASTER)) {",
"proxy->vdev->status &= !VIRTIO_CONFIG_S_DRIVER_OK;",
"}",
"}",
"pci_default... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
]
] |
21,357 | void fpu_clear_exceptions(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} float_env32;
asm vol... | false | qemu | 541dc0d47f10973c241e9955afc2aefc96adec51 | void fpu_clear_exceptions(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} float_env32;
asm vol... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} VAR_0;
asm volatile ("fnstenv %0\n... | [
"void FUNC_0(void)\n{",
"struct __attribute__((packed)) {",
"uint16_t fpuc;",
"uint16_t dummy1;",
"uint16_t fpus;",
"uint16_t dummy2;",
"uint16_t fptag;",
"uint16_t dummy3;",
"uint32_t ignored[4];",
"long double fpregs[8];",
"} VAR_0;",
"asm volatile (\"fnstenv %0\\n\" : : \"m\" (VAR_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
]
] |
21,358 | static unsigned int dec_movs_r(DisasContext *dc)
{
TCGv t0;
int size = memsize_z(dc);
DIS(fprintf (logfile, "movs.%c $r%u, $r%u\n",
memsize_char(size),
dc->op1, dc->op2));
cris_cc_mask(dc, CC_MASK_NZ);
t0 = tcg_temp_new(TCG_TYPE_TL);
/* Size can only be qi or hi. */
t_gen_sext(t0, cpu_R[... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static unsigned int dec_movs_r(DisasContext *dc)
{
TCGv t0;
int size = memsize_z(dc);
DIS(fprintf (logfile, "movs.%c $r%u, $r%u\n",
memsize_char(size),
dc->op1, dc->op2));
cris_cc_mask(dc, CC_MASK_NZ);
t0 = tcg_temp_new(TCG_TYPE_TL);
t_gen_sext(t0, cpu_R[dc->op1], size);
cris_alu(dc, C... | {
"code": [],
"line_no": []
} | static unsigned int FUNC_0(DisasContext *VAR_0)
{
TCGv t0;
int VAR_1 = memsize_z(VAR_0);
DIS(fprintf (logfile, "movs.%c $r%u, $r%u\n",
memsize_char(VAR_1),
VAR_0->op1, VAR_0->op2));
cris_cc_mask(VAR_0, CC_MASK_NZ);
t0 = tcg_temp_new(TCG_TYPE_TL);
t_gen_sext(t0, cpu_R[VAR_0->op1], VAR_1);... | [
"static unsigned int FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t0;",
"int VAR_1 = memsize_z(VAR_0);",
"DIS(fprintf (logfile, \"movs.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1),\nVAR_0->op1, VAR_0->op2));",
"cris_cc_mask(VAR_0, CC_MASK_NZ);",
"t0 = tcg_temp_new(TCG_TYPE_TL);",
"t_gen_sext(t0, cpu_R[VAR_0->op1]... | [
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
]
] |
21,359 | void hpet_pit_disable(void) {
PITChannelState *s;
s = &pit_state.channels[0];
qemu_del_timer(s->irq_timer);
}
| false | qemu | e0dd114c163bfba86a736dae00fb70758e1c0200 | void hpet_pit_disable(void) {
PITChannelState *s;
s = &pit_state.channels[0];
qemu_del_timer(s->irq_timer);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void) {
PITChannelState *s;
s = &pit_state.channels[0];
qemu_del_timer(s->irq_timer);
}
| [
"void FUNC_0(void) {",
"PITChannelState *s;",
"s = &pit_state.channels[0];",
"qemu_del_timer(s->irq_timer);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
]
] |
21,360 | void ff_h264_h_lpf_luma_inter_msa(uint8_t *data, int img_width,
int alpha, int beta, int8_t *tc)
{
uint8_t bs0 = 1;
uint8_t bs1 = 1;
uint8_t bs2 = 1;
uint8_t bs3 = 1;
if (tc[0] < 0)
bs0 = 0;
if (tc[1] < 0)
bs1 = 0;
if (tc[2] < 0)... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | void ff_h264_h_lpf_luma_inter_msa(uint8_t *data, int img_width,
int alpha, int beta, int8_t *tc)
{
uint8_t bs0 = 1;
uint8_t bs1 = 1;
uint8_t bs2 = 1;
uint8_t bs3 = 1;
if (tc[0] < 0)
bs0 = 0;
if (tc[1] < 0)
bs1 = 0;
if (tc[2] < 0)... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, int VAR_1,
int VAR_2, int VAR_3, int8_t *VAR_4)
{
uint8_t bs0 = 1;
uint8_t bs1 = 1;
uint8_t bs2 = 1;
uint8_t bs3 = 1;
if (VAR_4[0] < 0)
bs0 = 0;
if (VAR_4[1] < 0)
bs1 = 0;
if (VAR_4[2] < 0)
bs... | [
"void FUNC_0(uint8_t *VAR_0, int VAR_1,\nint VAR_2, int VAR_3, int8_t *VAR_4)\n{",
"uint8_t bs0 = 1;",
"uint8_t bs1 = 1;",
"uint8_t bs2 = 1;",
"uint8_t bs3 = 1;",
"if (VAR_4[0] < 0)\nbs0 = 0;",
"if (VAR_4[1] < 0)\nbs1 = 0;",
"if (VAR_4[2] < 0)\nbs2 = 0;",
"if (VAR_4[3] < 0)\nbs3 = 0;",
"avc_loopfi... | [
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
],
[
35,
37,
39,
41
],
[
43
]
] |
21,361 | void bdrv_attach_aio_context(BlockDriverState *bs,
AioContext *new_context)
{
BdrvAioNotifier *ban;
if (!bs->drv) {
return;
}
bs->aio_context = new_context;
if (bs->backing) {
bdrv_attach_aio_context(bs->backing->bs, new_context);
}
... | false | qemu | a0d64a61db602696f4f1895a890c65eda5b3b618 | void bdrv_attach_aio_context(BlockDriverState *bs,
AioContext *new_context)
{
BdrvAioNotifier *ban;
if (!bs->drv) {
return;
}
bs->aio_context = new_context;
if (bs->backing) {
bdrv_attach_aio_context(bs->backing->bs, new_context);
}
... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0,
AioContext *VAR_1)
{
BdrvAioNotifier *ban;
if (!VAR_0->drv) {
return;
}
VAR_0->aio_context = VAR_1;
if (VAR_0->backing) {
FUNC_0(VAR_0->backing->VAR_0, VAR_1);
}
if (VAR_0->file) {
FUN... | [
"void FUNC_0(BlockDriverState *VAR_0,\nAioContext *VAR_1)\n{",
"BdrvAioNotifier *ban;",
"if (!VAR_0->drv) {",
"return;",
"}",
"VAR_0->aio_context = VAR_1;",
"if (VAR_0->backing) {",
"FUNC_0(VAR_0->backing->VAR_0, VAR_1);",
"}",
"if (VAR_0->file) {",
"FUNC_0(VAR_0->file->VAR_0, VAR_1);",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
... |
21,362 | uint32_t HELPER(mvcp)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2)
{
HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n",
__func__, l, a1, a2);
return mvc_asc(env, l, a1, PSW_ASC_PRIMARY, a2, PSW_ASC_SECONDARY);
}
| false | qemu | a3084e8055067b3fe8ed653a609021d2ab368564 | uint32_t HELPER(mvcp)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2)
{
HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n",
__func__, l, a1, a2);
return mvc_asc(env, l, a1, PSW_ASC_PRIMARY, a2, PSW_ASC_SECONDARY);
}
| {
"code": [],
"line_no": []
} | uint32_t FUNC_0(mvcp)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2)
{
HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n",
__func__, l, a1, a2);
return mvc_asc(env, l, a1, PSW_ASC_PRIMARY, a2, PSW_ASC_SECONDARY);
}
| [
"uint32_t FUNC_0(mvcp)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2)\n{",
"HELPER_LOG(\"%s: %16\" PRIx64 \" %16\" PRIx64 \" %16\" PRIx64 \"\\n\",\n__func__, l, a1, a2);",
"return mvc_asc(env, l, a1, PSW_ASC_PRIMARY, a2, PSW_ASC_SECONDARY);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.