id int32 0 27.3k | func stringlengths 26 142k | target bool 2
classes | project stringclasses 2
values | commit_id stringlengths 40 40 | func_clean stringlengths 26 131k | vul_lines dict | normalized_func stringlengths 24 132k | lines listlengths 1 2.8k | label listlengths 1 2.8k | line_no listlengths 1 2.8k |
|---|---|---|---|---|---|---|---|---|---|---|
12,717 | static int usb_qdev_init(DeviceState *qdev)
{
USBDevice *dev = USB_DEVICE(qdev);
int rc;
pstrcpy(dev->product_desc, sizeof(dev->product_desc),
usb_device_get_product_desc(dev));
dev->auto_attach = 1;
QLIST_INIT(&dev->strings);
usb_ep_init(dev);
rc = usb_claim_port(dev)... | false | qemu | 7d553f27fce284805d7f94603932045ee3bbb979 | static int usb_qdev_init(DeviceState *qdev)
{
USBDevice *dev = USB_DEVICE(qdev);
int rc;
pstrcpy(dev->product_desc, sizeof(dev->product_desc),
usb_device_get_product_desc(dev));
dev->auto_attach = 1;
QLIST_INIT(&dev->strings);
usb_ep_init(dev);
rc = usb_claim_port(dev)... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0)
{
USBDevice *dev = USB_DEVICE(VAR_0);
int VAR_1;
pstrcpy(dev->product_desc, sizeof(dev->product_desc),
usb_device_get_product_desc(dev));
dev->auto_attach = 1;
QLIST_INIT(&dev->strings);
usb_ep_init(dev);
VAR_1 = usb_claim_port(dev... | [
"static int FUNC_0(DeviceState *VAR_0)\n{",
"USBDevice *dev = USB_DEVICE(VAR_0);",
"int VAR_1;",
"pstrcpy(dev->product_desc, sizeof(dev->product_desc),\nusb_device_get_product_desc(dev));",
"dev->auto_attach = 1;",
"QLIST_INIT(&dev->strings);",
"usb_ep_init(dev);",
"VAR_1 = usb_claim_port(dev);",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
... |
12,719 | static void free_test_data(test_data *data)
{
AcpiSdtTable *temp;
int i;
if (data->rsdt_tables_addr) {
g_free(data->rsdt_tables_addr);
}
for (i = 0; i < data->tables->len; ++i) {
temp = &g_array_index(data->tables, AcpiSdtTable, i);
if (temp->aml) {
... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void free_test_data(test_data *data)
{
AcpiSdtTable *temp;
int i;
if (data->rsdt_tables_addr) {
g_free(data->rsdt_tables_addr);
}
for (i = 0; i < data->tables->len; ++i) {
temp = &g_array_index(data->tables, AcpiSdtTable, i);
if (temp->aml) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(test_data *VAR_0)
{
AcpiSdtTable *temp;
int VAR_1;
if (VAR_0->rsdt_tables_addr) {
g_free(VAR_0->rsdt_tables_addr);
}
for (VAR_1 = 0; VAR_1 < VAR_0->tables->len; ++VAR_1) {
temp = &g_array_index(VAR_0->tables, AcpiSdtTable, VAR_1);
if (temp->aml... | [
"static void FUNC_0(test_data *VAR_0)\n{",
"AcpiSdtTable *temp;",
"int VAR_1;",
"if (VAR_0->rsdt_tables_addr) {",
"g_free(VAR_0->rsdt_tables_addr);",
"}",
"for (VAR_1 = 0; VAR_1 < VAR_0->tables->len; ++VAR_1) {",
"temp = &g_array_index(VAR_0->tables, AcpiSdtTable, VAR_1);",
"if (temp->aml) {",
"g_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
12,720 | static QObject *parse_value(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QObject *obj;
obj = parse_object(ctxt, tokens, ap);
if (obj == NULL) {
obj = parse_array(ctxt, tokens, ap);
}
if (obj == NULL) {
obj = parse_escape(ctxt, tokens, ap);
}
if (obj == ... | false | qemu | 65c0f1e9558c7c762cdb333406243fff1d687117 | static QObject *parse_value(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QObject *obj;
obj = parse_object(ctxt, tokens, ap);
if (obj == NULL) {
obj = parse_array(ctxt, tokens, ap);
}
if (obj == NULL) {
obj = parse_escape(ctxt, tokens, ap);
}
if (obj == ... | {
"code": [],
"line_no": []
} | static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QObject *obj;
obj = parse_object(ctxt, tokens, ap);
if (obj == NULL) {
obj = parse_array(ctxt, tokens, ap);
}
if (obj == NULL) {
obj = parse_escape(ctxt, tokens, ap);
}
if (obj == NULL)... | [
"static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap)\n{",
"QObject *obj;",
"obj = parse_object(ctxt, tokens, ap);",
"if (obj == NULL) {",
"obj = parse_array(ctxt, tokens, ap);",
"}",
"if (obj == NULL) {",
"obj = parse_escape(ctxt, tokens, ap);",
"}",
"if (obj == NULL) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
12,721 | static void ich_ahci_register(void)
{
type_register_static(&ich_ahci_info);
type_register_static_alias(&ich_ahci_info, "ahci");
}
| false | qemu | 6acbe4c6f18e7de00481ff30574262b58526de45 | static void ich_ahci_register(void)
{
type_register_static(&ich_ahci_info);
type_register_static_alias(&ich_ahci_info, "ahci");
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
type_register_static(&ich_ahci_info);
type_register_static_alias(&ich_ahci_info, "ahci");
}
| [
"static void FUNC_0(void)\n{",
"type_register_static(&ich_ahci_info);",
"type_register_static_alias(&ich_ahci_info, \"ahci\");",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
12,722 | static QCowAIOCB *qcow_aio_setup(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int is_write)
{
QCowAIOCB *acb;
acb = qemu_aio_get(&qcow_aio_pool, bs, cb, opaque);
if (!acb)
return NULL;
acb->hd... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static QCowAIOCB *qcow_aio_setup(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int is_write)
{
QCowAIOCB *acb;
acb = qemu_aio_get(&qcow_aio_pool, bs, cb, opaque);
if (!acb)
return NULL;
acb->hd... | {
"code": [],
"line_no": []
} | static QCowAIOCB *FUNC_0(BlockDriverState *bs,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int is_write)
{
QCowAIOCB *acb;
acb = qemu_aio_get(&qcow_aio_pool, bs, cb, opaque);
if (!acb)
return NULL;
acb->hd_aiocb =... | [
"static QCowAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque, int is_write)\n{",
"QCowAIOCB *acb;",
"acb = qemu_aio_get(&qcow_aio_pool, bs, cb, opaque);",
"if (!acb)\nreturn NULL;",
"acb->hd_aiocb = NULL;",
"acb->sect... | [
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
],
[
47
... |
12,723 | static inline uint64_t vtd_iova_limit(VTDContextEntry *ce)
{
uint32_t ce_agaw = vtd_ce_get_agaw(ce);
return 1ULL << MIN(ce_agaw, VTD_MGAW);
}
| false | qemu | 37f51384ae05bd50f83308339dbffa3e78404874 | static inline uint64_t vtd_iova_limit(VTDContextEntry *ce)
{
uint32_t ce_agaw = vtd_ce_get_agaw(ce);
return 1ULL << MIN(ce_agaw, VTD_MGAW);
}
| {
"code": [],
"line_no": []
} | static inline uint64_t FUNC_0(VTDContextEntry *ce)
{
uint32_t ce_agaw = vtd_ce_get_agaw(ce);
return 1ULL << MIN(ce_agaw, VTD_MGAW);
}
| [
"static inline uint64_t FUNC_0(VTDContextEntry *ce)\n{",
"uint32_t ce_agaw = vtd_ce_get_agaw(ce);",
"return 1ULL << MIN(ce_agaw, VTD_MGAW);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
12,725 | MigrationInfo *qmp_query_migrate(Error **errp)
{
MigrationInfo *info = g_malloc0(sizeof(*info));
MigrationState *s = migrate_get_current();
switch (s->state) {
case MIGRATION_STATUS_NONE:
/* no migration has happened ever */
break;
case MIGRATION_STATUS_SETUP:
info... | false | qemu | cde63fbed86e20dda98bf35025faedd994918f00 | MigrationInfo *qmp_query_migrate(Error **errp)
{
MigrationInfo *info = g_malloc0(sizeof(*info));
MigrationState *s = migrate_get_current();
switch (s->state) {
case MIGRATION_STATUS_NONE:
break;
case MIGRATION_STATUS_SETUP:
info->has_status = true;
info->... | {
"code": [],
"line_no": []
} | MigrationInfo *FUNC_0(Error **errp)
{
MigrationInfo *info = g_malloc0(sizeof(*info));
MigrationState *s = migrate_get_current();
switch (s->state) {
case MIGRATION_STATUS_NONE:
break;
case MIGRATION_STATUS_SETUP:
info->has_status = true;
info->status = MI... | [
"MigrationInfo *FUNC_0(Error **errp)\n{",
"MigrationInfo *info = g_malloc0(sizeof(*info));",
"MigrationState *s = migrate_get_current();",
"switch (s->state) {",
"case MIGRATION_STATUS_NONE:\nbreak;",
"case MIGRATION_STATUS_SETUP:\ninfo->has_status = true;",
"info->status = MIGRATION_STATUS_SETUP;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
12,726 | static void do_sendkey(Monitor *mon, const QDict *qdict)
{
char keyname_buf[16];
char *separator;
int keyname_len, keycode, i, idx;
const char *keys = qdict_get_str(qdict, "keys");
int has_hold_time = qdict_haskey(qdict, "hold-time");
int hold_time = qdict_get_try_int(qdict, "hold-time", ... | false | qemu | e4c8f004c55d9da3eae3e14df740238bf805b5d6 | static void do_sendkey(Monitor *mon, const QDict *qdict)
{
char keyname_buf[16];
char *separator;
int keyname_len, keycode, i, idx;
const char *keys = qdict_get_str(qdict, "keys");
int has_hold_time = qdict_haskey(qdict, "hold-time");
int hold_time = qdict_get_try_int(qdict, "hold-time", ... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
char VAR_2[16];
char *VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7;
const char *VAR_8 = qdict_get_str(VAR_1, "VAR_8");
int VAR_9 = qdict_haskey(VAR_1, "hold-time");
int VAR_10 = qdict_get_try_int(VAR_1, "hold-time", -1);
if (nb_pend... | [
"static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"char VAR_2[16];",
"char *VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"const char *VAR_8 = qdict_get_str(VAR_1, \"VAR_8\");",
"int VAR_9 = qdict_haskey(VAR_1, \"hold-time\");",
"int VAR_10 = qdict_get_try_int(VAR_1, \"hold-time\", -1);",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
12,728 | static void qemu_rdma_dump_id(const char *who, struct ibv_context *verbs)
{
struct ibv_port_attr port;
if (ibv_query_port(verbs, 1, &port)) {
error_report("Failed to query port information");
return;
}
printf("%s RDMA Device opened: kernel name %s "
"uverbs device ... | false | qemu | 02942db7982541716131ca486ca0d59eae107553 | static void qemu_rdma_dump_id(const char *who, struct ibv_context *verbs)
{
struct ibv_port_attr port;
if (ibv_query_port(verbs, 1, &port)) {
error_report("Failed to query port information");
return;
}
printf("%s RDMA Device opened: kernel name %s "
"uverbs device ... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0, struct ibv_context *VAR_1)
{
struct ibv_port_attr VAR_2;
if (ibv_query_port(VAR_1, 1, &VAR_2)) {
error_report("Failed to query VAR_2 information");
return;
}
printf("%s RDMA Device opened: kernel name %s "
"uverbs device name %... | [
"static void FUNC_0(const char *VAR_0, struct ibv_context *VAR_1)\n{",
"struct ibv_port_attr VAR_2;",
"if (ibv_query_port(VAR_1, 1, &VAR_2)) {",
"error_report(\"Failed to query VAR_2 information\");",
"return;",
"}",
"printf(\"%s RDMA Device opened: kernel name %s \"\n\"uverbs device name %s, \"\n\"infi... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45
],
[
47
]
] |
12,729 | void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src,
int stride, int height,
int log2_denom, int weight_dst,
int weight_src, int offset)
{
avc_biwgt_8width_msa(src, stride,
... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src,
int stride, int height,
int log2_denom, int weight_dst,
int weight_src, int offset)
{
avc_biwgt_8width_msa(src, stride,
... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,
int VAR_2, int VAR_3,
int VAR_4, int VAR_5,
int VAR_6, int VAR_7)
{
avc_biwgt_8width_msa(VAR_1, VAR_2,
VAR_0, VAR_2,
... | [
"void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{",
"avc_biwgt_8width_msa(VAR_1, VAR_2,\nVAR_0, VAR_2,\nVAR_3, VAR_4,\nVAR_6, VAR_5, VAR_7);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11,
13,
15,
17
],
[
19
]
] |
12,731 | static av_cold int raw_init_decoder(AVCodecContext *avctx)
{
RawVideoContext *context = avctx->priv_data;
const AVPixFmtDescriptor *desc;
ff_bswapdsp_init(&context->bbdsp);
if ( avctx->codec_tag == MKTAG('r','a','w',' ')
|| avctx->codec_tag == MKTAG('N','O','1','6'))
avctx->... | false | FFmpeg | fe7639b1c8be49ced7465c6a91a9008f406cc5ba | static av_cold int raw_init_decoder(AVCodecContext *avctx)
{
RawVideoContext *context = avctx->priv_data;
const AVPixFmtDescriptor *desc;
ff_bswapdsp_init(&context->bbdsp);
if ( avctx->codec_tag == MKTAG('r','a','w',' ')
|| avctx->codec_tag == MKTAG('N','O','1','6'))
avctx->... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
RawVideoContext *context = avctx->priv_data;
const AVPixFmtDescriptor *VAR_0;
ff_bswapdsp_init(&context->bbdsp);
if ( avctx->codec_tag == MKTAG('r','a','w',' ')
|| avctx->codec_tag == MKTAG('N','O','1','6'))
avctx->pix_fmt =... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"RawVideoContext *context = avctx->priv_data;",
"const AVPixFmtDescriptor *VAR_0;",
"ff_bswapdsp_init(&context->bbdsp);",
"if ( avctx->codec_tag == MKTAG('r','a','w',' ')\n|| avctx->codec_tag == MKTAG('N','O','1','6'))\navctx->pix_fmt = avpriv_find_pi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17,
19,
21
],
[
23,
25,
27
],
[
29,
31
],
[
33,
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57... |
12,732 | static void gen_rfe(DisasContext *s, TCGv_i32 pc, TCGv_i32 cpsr)
{
gen_set_cpsr(cpsr, CPSR_ERET_MASK);
tcg_temp_free_i32(cpsr);
store_reg(s, 15, pc);
s->is_jmp = DISAS_JUMP;
}
| false | qemu | 235ea1f5c89abf30e452539b973b0dbe43d3fe2b | static void gen_rfe(DisasContext *s, TCGv_i32 pc, TCGv_i32 cpsr)
{
gen_set_cpsr(cpsr, CPSR_ERET_MASK);
tcg_temp_free_i32(cpsr);
store_reg(s, 15, pc);
s->is_jmp = DISAS_JUMP;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)
{
gen_set_cpsr(VAR_2, CPSR_ERET_MASK);
tcg_temp_free_i32(VAR_2);
store_reg(VAR_0, 15, VAR_1);
VAR_0->is_jmp = DISAS_JUMP;
}
| [
"static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)\n{",
"gen_set_cpsr(VAR_2, CPSR_ERET_MASK);",
"tcg_temp_free_i32(VAR_2);",
"store_reg(VAR_0, 15, VAR_1);",
"VAR_0->is_jmp = DISAS_JUMP;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
12,733 | void bdrv_drain_all_end(void)
{
BlockDriverState *bs;
BdrvNextIterator it;
BlockJob *job = NULL;
for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
aio_enable_external(aio_context... | false | qemu | 8f90b5e91df59fde0dfecc6738ff39f3edf14be5 | void bdrv_drain_all_end(void)
{
BlockDriverState *bs;
BdrvNextIterator it;
BlockJob *job = NULL;
for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
aio_enable_external(aio_context... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
BlockDriverState *bs;
BdrvNextIterator it;
BlockJob *job = NULL;
for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
aio_enable_external(aio_context);
... | [
"void FUNC_0(void)\n{",
"BlockDriverState *bs;",
"BdrvNextIterator it;",
"BlockJob *job = NULL;",
"for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {",
"AioContext *aio_context = bdrv_get_aio_context(bs);",
"aio_context_acquire(aio_context);",
"aio_enable_external(aio_context);",
"bdrv_io_unplugg... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
12,734 | int qemu_set_fd_handler(int fd,
IOHandler *fd_read,
IOHandler *fd_write,
void *opaque)
{
return qemu_set_fd_handler2(fd, NULL, fd_read, fd_write, opaque);
}
| false | qemu | 6484e422479c93f28e3f8a68258b0eacd3b31e6d | int qemu_set_fd_handler(int fd,
IOHandler *fd_read,
IOHandler *fd_write,
void *opaque)
{
return qemu_set_fd_handler2(fd, NULL, fd_read, fd_write, opaque);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0,
IOHandler *VAR_1,
IOHandler *VAR_2,
void *VAR_3)
{
return qemu_set_fd_handler2(VAR_0, NULL, VAR_1, VAR_2, VAR_3);
}
| [
"int FUNC_0(int VAR_0,\nIOHandler *VAR_1,\nIOHandler *VAR_2,\nvoid *VAR_3)\n{",
"return qemu_set_fd_handler2(VAR_0, NULL, VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
]
] |
12,735 | int float32_lt( float32 a, float32 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) )
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
) {
float_raise( float_flag_invalid STATUS_VAR);
return... | false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | int float32_lt( float32 a, float32 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) )
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
) {
float_raise( float_flag_invalid STATUS_VAR);
return... | {
"code": [],
"line_no": []
} | int FUNC_0( float32 VAR_0, float32 VAR_1 STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat32Exp( VAR_0 ) == 0xFF ) && extractFloat32Frac( VAR_0 ) )
|| ( ( extractFloat32Exp( VAR_1 ) == 0xFF ) && extractFloat32Frac( VAR_1 ) )
) {
float_raise( float_flag_invalid STATUS_V... | [
"int FUNC_0( float32 VAR_0, float32 VAR_1 STATUS_PARAM )\n{",
"flag aSign, bSign;",
"if ( ( ( extractFloat32Exp( VAR_0 ) == 0xFF ) && extractFloat32Frac( VAR_0 ) )\n|| ( ( extractFloat32Exp( VAR_1 ) == 0xFF ) && extractFloat32Frac( VAR_1 ) )\n) {",
"float_raise( float_flag_invalid STATUS_VAR);",
"return ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
]
] |
12,736 | build_spcr(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info)
{
AcpiSerialPortConsoleRedirection *spcr;
const MemMapEntry *uart_memmap = &guest_info->memmap[VIRT_UART];
int irq = guest_info->irqmap[VIRT_UART] + ARM_SPI_BASE;
spcr = acpi_data_push(table_data, sizeof(*spcr));
spc... | false | qemu | 37ad223c515da2fe9f1c679768cb5ccaa42e57e1 | build_spcr(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info)
{
AcpiSerialPortConsoleRedirection *spcr;
const MemMapEntry *uart_memmap = &guest_info->memmap[VIRT_UART];
int irq = guest_info->irqmap[VIRT_UART] + ARM_SPI_BASE;
spcr = acpi_data_push(table_data, sizeof(*spcr));
spc... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)
{
AcpiSerialPortConsoleRedirection *spcr;
const MemMapEntry *VAR_3 = &VAR_2->memmap[VIRT_UART];
int VAR_4 = VAR_2->irqmap[VIRT_UART] + ARM_SPI_BASE;
spcr = acpi_data_push(VAR_0, sizeof(*spcr));
spcr->interface_type = 0x3;
... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)\n{",
"AcpiSerialPortConsoleRedirection *spcr;",
"const MemMapEntry *VAR_3 = &VAR_2->memmap[VIRT_UART];",
"int VAR_4 = VAR_2->irqmap[VIRT_UART] + ARM_SPI_BASE;",
"spcr = acpi_data_push(VAR_0, sizeof(*spcr));",
"spcr->interface_type = 0x3;",
"spc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
12,737 | static SocketAddressLegacy *sd_server_config(QDict *options, Error **errp)
{
QDict *server = NULL;
QObject *crumpled_server = NULL;
Visitor *iv = NULL;
SocketAddress *saddr_flat = NULL;
SocketAddressLegacy *saddr = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &ser... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | static SocketAddressLegacy *sd_server_config(QDict *options, Error **errp)
{
QDict *server = NULL;
QObject *crumpled_server = NULL;
Visitor *iv = NULL;
SocketAddress *saddr_flat = NULL;
SocketAddressLegacy *saddr = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &ser... | {
"code": [],
"line_no": []
} | static SocketAddressLegacy *FUNC_0(QDict *options, Error **errp)
{
QDict *server = NULL;
QObject *crumpled_server = NULL;
Visitor *iv = NULL;
SocketAddress *saddr_flat = NULL;
SocketAddressLegacy *saddr = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &server, "serv... | [
"static SocketAddressLegacy *FUNC_0(QDict *options, Error **errp)\n{",
"QDict *server = NULL;",
"QObject *crumpled_server = NULL;",
"Visitor *iv = NULL;",
"SocketAddress *saddr_flat = NULL;",
"SocketAddressLegacy *saddr = NULL;",
"Error *local_err = NULL;",
"qdict_extract_subqdict(options, &server, \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
63
],
[
67,... |
12,738 | static void tosa_init(ram_addr_t ram_size, int vga_ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
struct pxa2xx_state_s *cpu;
struct tc6393xb_s *tmio;
str... | false | qemu | a0b753dfd3920df146a5f4d05e442e3c522900c7 | static void tosa_init(ram_addr_t ram_size, int vga_ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
struct pxa2xx_state_s *cpu;
struct tc6393xb_s *tmio;
str... | {
"code": [],
"line_no": []
} | static void FUNC_0(ram_addr_t VAR_0, int VAR_1,
const char *VAR_2,
const char *VAR_3, const char *VAR_4,
const char *VAR_5, const char *VAR_6)
{
struct pxa2xx_state_s *VAR_7;
struct tc6393xb_s *VAR_8;
struct scoop_info_s *VAR_9, *VAR_10;
if (VAR_... | [
"static void FUNC_0(ram_addr_t VAR_0, int VAR_1,\nconst char *VAR_2,\nconst char *VAR_3, const char *VAR_4,\nconst char *VAR_5, const char *VAR_6)\n{",
"struct pxa2xx_state_s *VAR_7;",
"struct tc6393xb_s *VAR_8;",
"struct scoop_info_s *VAR_9, *VAR_10;",
"if (VAR_0 < (TOSA_RAM + TOSA_ROM + PXA2XX_INTERNAL_SI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
41,
43
],
[
47,
49
],
[
53
],
[
55
],
[
59
],
[
63
],
[... |
12,739 | static inline uint8_t fat_chksum(const direntry_t* entry)
{
uint8_t chksum=0;
int i;
for(i=0;i<11;i++) {
unsigned char c;
c = (i < 8) ? entry->name[i] : entry->extension[i-8];
chksum=(((chksum&0xfe)>>1)|((chksum&0x01)?0x80:0)) + c;
}
return chksum;
}
| false | qemu | f671d173c7e1da555b693e8b14f3ed0852601809 | static inline uint8_t fat_chksum(const direntry_t* entry)
{
uint8_t chksum=0;
int i;
for(i=0;i<11;i++) {
unsigned char c;
c = (i < 8) ? entry->name[i] : entry->extension[i-8];
chksum=(((chksum&0xfe)>>1)|((chksum&0x01)?0x80:0)) + c;
}
return chksum;
}
| {
"code": [],
"line_no": []
} | static inline uint8_t FUNC_0(const direntry_t* entry)
{
uint8_t chksum=0;
int VAR_0;
for(VAR_0=0;VAR_0<11;VAR_0++) {
unsigned char VAR_1;
VAR_1 = (VAR_0 < 8) ? entry->name[VAR_0] : entry->extension[VAR_0-8];
chksum=(((chksum&0xfe)>>1)|((chksum&0x01)?0x80:0)) + VAR_1;
... | [
"static inline uint8_t FUNC_0(const direntry_t* entry)\n{",
"uint8_t chksum=0;",
"int VAR_0;",
"for(VAR_0=0;VAR_0<11;VAR_0++) {",
"unsigned char VAR_1;",
"VAR_1 = (VAR_0 < 8) ? entry->name[VAR_0] : entry->extension[VAR_0-8];",
"chksum=(((chksum&0xfe)>>1)|((chksum&0x01)?0x80:0)) + VAR_1;",
"}",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
12,740 | static void event_notifier_ready(EventNotifier *notifier)
{
ThreadPool *pool = container_of(notifier, ThreadPool, notifier);
ThreadPoolElement *elem, *next;
event_notifier_test_and_clear(notifier);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_CAN... | false | qemu | c2e50e3d11a0bf4c973cc30478c1af0f2d5f8e81 | static void event_notifier_ready(EventNotifier *notifier)
{
ThreadPool *pool = container_of(notifier, ThreadPool, notifier);
ThreadPoolElement *elem, *next;
event_notifier_test_and_clear(notifier);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_CAN... | {
"code": [],
"line_no": []
} | static void FUNC_0(EventNotifier *VAR_0)
{
ThreadPool *pool = container_of(VAR_0, ThreadPool, VAR_0);
ThreadPoolElement *elem, *next;
event_notifier_test_and_clear(VAR_0);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_CANCELED && elem->state != TH... | [
"static void FUNC_0(EventNotifier *VAR_0)\n{",
"ThreadPool *pool = container_of(VAR_0, ThreadPool, VAR_0);",
"ThreadPoolElement *elem, *next;",
"event_notifier_test_and_clear(VAR_0);",
"restart:\nQLIST_FOREACH_SAFE(elem, &pool->head, all, next) {",
"if (elem->state != THREAD_CANCELED && elem->state != THR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49... |
12,742 | static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
{
GXFContext *gxf = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st = s->streams[pkt->stream_index];
int64_t pos = avio_tell(pb);
int padding = 0;
int packet_start_offset = avio_tell(pb) / 1024;
gxf_write_packet_hea... | false | FFmpeg | a6ca08f1af31badb7fef93bc1cbfa78bffae6be7 | static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
{
GXFContext *gxf = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st = s->streams[pkt->stream_index];
int64_t pos = avio_tell(pb);
int padding = 0;
int packet_start_offset = avio_tell(pb) / 1024;
gxf_write_packet_hea... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
GXFContext *gxf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
AVStream *st = VAR_0->streams[VAR_1->stream_index];
int64_t pos = avio_tell(pb);
int VAR_2 = 0;
int VAR_3 = avio_tell(pb) / 1024;
gxf_write_packet_header(pb... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"GXFContext *gxf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st = VAR_0->streams[VAR_1->stream_index];",
"int64_t pos = avio_tell(pb);",
"int VAR_2 = 0;",
"int VAR_3 = avio_tell(pb) / 1024;",
"gxf_write_packet_header... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
49
... |
12,743 | static CharDriverState *qmp_chardev_open_parallel(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
ChardevHostdev *parallel = backend... | false | qemu | d0d7708ba29cbcc343364a46bff981e0ff88366f | static CharDriverState *qmp_chardev_open_parallel(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
ChardevHostdev *parallel = backend... | {
"code": [],
"line_no": []
} | static CharDriverState *FUNC_0(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
ChardevHostdev *parallel = backend->u.parallel;
... | [
"static CharDriverState *FUNC_0(const char *id,\nChardevBackend *backend,\nChardevReturn *ret,\nError **errp)\n{",
"ChardevHostdev *parallel = backend->u.parallel;",
"int VAR_0;",
"VAR_0 = qmp_chardev_open_file_source(parallel->device, O_RDWR, errp);",
"if (VAR_0 < 0) {",
"return NULL;",
"}",
"return ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
12,744 | void qemu_peer_using_vnet_hdr(NetClientState *nc, bool enable)
{
if (!nc->peer || !nc->peer->info->using_vnet_hdr) {
return;
}
nc->peer->info->using_vnet_hdr(nc->peer, enable);
}
| false | qemu | d6085e3ace20bc9b0fa625d8d79b22668710e217 | void qemu_peer_using_vnet_hdr(NetClientState *nc, bool enable)
{
if (!nc->peer || !nc->peer->info->using_vnet_hdr) {
return;
}
nc->peer->info->using_vnet_hdr(nc->peer, enable);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(NetClientState *VAR_0, bool VAR_1)
{
if (!VAR_0->peer || !VAR_0->peer->info->using_vnet_hdr) {
return;
}
VAR_0->peer->info->using_vnet_hdr(VAR_0->peer, VAR_1);
}
| [
"void FUNC_0(NetClientState *VAR_0, bool VAR_1)\n{",
"if (!VAR_0->peer || !VAR_0->peer->info->using_vnet_hdr) {",
"return;",
"}",
"VAR_0->peer->info->using_vnet_hdr(VAR_0->peer, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
]
] |
12,746 | static int scsi_block_initfn(SCSIDevice *dev)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
int sg_version;
int rc;
if (!s->qdev.conf.bs) {
error_report("drive property not set");
return -1;
}
/* check we are using a driver managing SG_IO (version 3 and a... | false | qemu | a818a4b69d47ca3826dee36878074395aeac2083 | static int scsi_block_initfn(SCSIDevice *dev)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
int sg_version;
int rc;
if (!s->qdev.conf.bs) {
error_report("drive property not set");
return -1;
}
rc = bdrv_ioctl(s->qdev.conf.bs, SG_GET_VERSION_NUM, &sg... | {
"code": [],
"line_no": []
} | static int FUNC_0(SCSIDevice *VAR_0)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);
int VAR_1;
int VAR_2;
if (!s->qdev.conf.bs) {
error_report("drive property not set");
return -1;
}
VAR_2 = bdrv_ioctl(s->qdev.conf.bs, SG_GET_VERSION_NUM, &VAR_1);
... | [
"static int FUNC_0(SCSIDevice *VAR_0)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);",
"int VAR_1;",
"int VAR_2;",
"if (!s->qdev.conf.bs) {",
"error_report(\"drive property not set\");",
"return -1;",
"}",
"VAR_2 = bdrv_ioctl(s->qdev.conf.bs, SG_GET_VERSION_NUM, &VAR_1);",
"if (VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
... |
12,747 | static int vga_initfn(ISADevice *dev)
{
ISACirrusVGAState *d = DO_UPCAST(ISACirrusVGAState, dev, dev);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s);
cirrus_init_common(&d->cirrus_vga, CIRRUS_ID_CLGD5430, 0,
isa_address_space(dev), isa_address_space_io(dev));
... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static int vga_initfn(ISADevice *dev)
{
ISACirrusVGAState *d = DO_UPCAST(ISACirrusVGAState, dev, dev);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s);
cirrus_init_common(&d->cirrus_vga, CIRRUS_ID_CLGD5430, 0,
isa_address_space(dev), isa_address_space_io(dev));
... | {
"code": [],
"line_no": []
} | static int FUNC_0(ISADevice *VAR_0)
{
ISACirrusVGAState *d = DO_UPCAST(ISACirrusVGAState, VAR_0, VAR_0);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s);
cirrus_init_common(&d->cirrus_vga, CIRRUS_ID_CLGD5430, 0,
isa_address_space(VAR_0), isa_address_space_io(VAR... | [
"static int FUNC_0(ISADevice *VAR_0)\n{",
"ISACirrusVGAState *d = DO_UPCAST(ISACirrusVGAState, VAR_0, VAR_0);",
"VGACommonState *s = &d->cirrus_vga.vga;",
"vga_common_init(s);",
"cirrus_init_common(&d->cirrus_vga, CIRRUS_ID_CLGD5430, 0,\nisa_address_space(VAR_0), isa_address_space_io(VAR_0));",
"s->con = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19,
21
],
[
23
],
[
29
],
[
31
]
] |
12,748 | void memory_region_register_iommu_notifier(MemoryRegion *mr, Notifier *n)
{
if (mr->iommu_ops->notify_started &&
QLIST_EMPTY(&mr->iommu_notify.notifiers)) {
mr->iommu_ops->notify_started(mr);
}
notifier_list_add(&mr->iommu_notify, n);
}
| false | qemu | cdb3081269347fd9271fd1b7a9df312e2953bdd9 | void memory_region_register_iommu_notifier(MemoryRegion *mr, Notifier *n)
{
if (mr->iommu_ops->notify_started &&
QLIST_EMPTY(&mr->iommu_notify.notifiers)) {
mr->iommu_ops->notify_started(mr);
}
notifier_list_add(&mr->iommu_notify, n);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MemoryRegion *VAR_0, Notifier *VAR_1)
{
if (VAR_0->iommu_ops->notify_started &&
QLIST_EMPTY(&VAR_0->iommu_notify.notifiers)) {
VAR_0->iommu_ops->notify_started(VAR_0);
}
notifier_list_add(&VAR_0->iommu_notify, VAR_1);
}
| [
"void FUNC_0(MemoryRegion *VAR_0, Notifier *VAR_1)\n{",
"if (VAR_0->iommu_ops->notify_started &&\nQLIST_EMPTY(&VAR_0->iommu_notify.notifiers)) {",
"VAR_0->iommu_ops->notify_started(VAR_0);",
"}",
"notifier_list_add(&VAR_0->iommu_notify, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,749 | static void pc_init1(MachineState *machine)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
... | false | qemu | 6e7d82497dc8da7d420c8fa6632d759e08a18bc3 | static void pc_init1(MachineState *machine)
{
PCMachineState *pc_machine = PC_MACHINE(machine);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int i;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
PCMachineState *pc_machine = PC_MACHINE(VAR_0);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int VAR_1;
ram_addr_t below_4g_mem_size, above_4g_mem_size;
PCIBus *pci_bus;
ISABus *isa_bus;
P... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"PCMachineState *pc_machine = PC_MACHINE(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"MemoryRegion *system_io = get_system_io();",
"int VAR_1;",
"ram_addr_t below_4g_mem_size, above_4g_mem_size;",
"PCIBus *pci_bus;",
"ISABus *isa_bus;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
12,750 | static int get_int32_le(QEMUFile *f, void *pv, size_t size)
{
int32_t *old = pv;
int32_t new;
qemu_get_sbe32s(f, &new);
if (*old <= new) {
return 0;
}
return -EINVAL;
}
| false | qemu | 24a370ef2351dc596a7e47508b952ddfba79ef94 | static int get_int32_le(QEMUFile *f, void *pv, size_t size)
{
int32_t *old = pv;
int32_t new;
qemu_get_sbe32s(f, &new);
if (*old <= new) {
return 0;
}
return -EINVAL;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
int32_t *old = VAR_1;
int32_t new;
qemu_get_sbe32s(VAR_0, &new);
if (*old <= new) {
return 0;
}
return -EINVAL;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"int32_t *old = VAR_1;",
"int32_t new;",
"qemu_get_sbe32s(VAR_0, &new);",
"if (*old <= new) {",
"return 0;",
"}",
"return -EINVAL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
12,751 | static void load_asl(GArray *sdts, AcpiSdtTable *sdt)
{
AcpiSdtTable *temp;
GError *error = NULL;
GString *command_line = g_string_new("'iasl' ");
gint fd;
gchar *out, *out_err;
gboolean ret;
int i;
fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error);
g_assert_... | false | qemu | cc8fa0e80836c51ba644d910cd89540a5bc83fc2 | static void load_asl(GArray *sdts, AcpiSdtTable *sdt)
{
AcpiSdtTable *temp;
GError *error = NULL;
GString *command_line = g_string_new("'iasl' ");
gint fd;
gchar *out, *out_err;
gboolean ret;
int i;
fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error);
g_assert_... | {
"code": [],
"line_no": []
} | static void FUNC_0(GArray *VAR_0, AcpiSdtTable *VAR_1)
{
AcpiSdtTable *temp;
GError *error = NULL;
GString *command_line = g_string_new("'iasl' ");
gint fd;
gchar *out, *out_err;
gboolean ret;
int VAR_2;
fd = g_file_open_tmp("asl-XXXXXX.dsl", &VAR_1->asl_file, &error);
g_... | [
"static void FUNC_0(GArray *VAR_0, AcpiSdtTable *VAR_1)\n{",
"AcpiSdtTable *temp;",
"GError *error = NULL;",
"GString *command_line = g_string_new(\"'iasl' \");",
"gint fd;",
"gchar *out, *out_err;",
"gboolean ret;",
"int VAR_2;",
"fd = g_file_open_tmp(\"asl-XXXXXX.dsl\", &VAR_1->asl_file, &error);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
53,... |
12,752 | static void gen_advance_ccount(DisasContext *dc)
{
if (dc->ccount_delta > 0) {
TCGv_i32 tmp = tcg_const_i32(dc->ccount_delta);
dc->ccount_delta = 0;
gen_helper_advance_ccount(cpu_env, tmp);
tcg_temp_free(tmp);
}
}
| false | qemu | 908c67fca4b2c12a9b2336aa9c188f84468b60b7 | static void gen_advance_ccount(DisasContext *dc)
{
if (dc->ccount_delta > 0) {
TCGv_i32 tmp = tcg_const_i32(dc->ccount_delta);
dc->ccount_delta = 0;
gen_helper_advance_ccount(cpu_env, tmp);
tcg_temp_free(tmp);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
if (VAR_0->ccount_delta > 0) {
TCGv_i32 tmp = tcg_const_i32(VAR_0->ccount_delta);
VAR_0->ccount_delta = 0;
gen_helper_advance_ccount(cpu_env, tmp);
tcg_temp_free(tmp);
}
}
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"if (VAR_0->ccount_delta > 0) {",
"TCGv_i32 tmp = tcg_const_i32(VAR_0->ccount_delta);",
"VAR_0->ccount_delta = 0;",
"gen_helper_advance_ccount(cpu_env, tmp);",
"tcg_temp_free(tmp);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
12,753 | static av_cold int libgsm_close(AVCodecContext *avctx) {
av_freep(&avctx->coded_frame);
gsm_destroy(avctx->priv_data);
avctx->priv_data = NULL;
return 0;
}
| false | FFmpeg | 8febd6afbca652b331ddd8e75e356656c153cad1 | static av_cold int libgsm_close(AVCodecContext *avctx) {
av_freep(&avctx->coded_frame);
gsm_destroy(avctx->priv_data);
avctx->priv_data = NULL;
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx) {
av_freep(&avctx->coded_frame);
gsm_destroy(avctx->priv_data);
avctx->priv_data = NULL;
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx) {",
"av_freep(&avctx->coded_frame);",
"gsm_destroy(avctx->priv_data);",
"avctx->priv_data = NULL;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
12,754 | static void uhci_ioport_writel(void *opaque, uint32_t addr, uint32_t val)
{
UHCIState *s = opaque;
addr &= 0x1f;
#ifdef DEBUG
printf("uhci writel port=0x%04x val=0x%08x\n", addr, val);
#endif
switch(addr) {
case 0x08:
s->fl_base_addr = val & ~0xfff;
break;
}
}
| false | qemu | 54f254f973a1b2ed0f3571390f4de060adfe23e8 | static void uhci_ioport_writel(void *opaque, uint32_t addr, uint32_t val)
{
UHCIState *s = opaque;
addr &= 0x1f;
#ifdef DEBUG
printf("uhci writel port=0x%04x val=0x%08x\n", addr, val);
#endif
switch(addr) {
case 0x08:
s->fl_base_addr = val & ~0xfff;
break;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
UHCIState *s = VAR_0;
VAR_1 &= 0x1f;
#ifdef DEBUG
printf("uhci writel port=0x%04x VAR_2=0x%08x\n", VAR_1, VAR_2);
#endif
switch(VAR_1) {
case 0x08:
s->fl_base_addr = VAR_2 & ~0xfff;
break;
}
}
| [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"UHCIState *s = VAR_0;",
"VAR_1 &= 0x1f;",
"#ifdef DEBUG\nprintf(\"uhci writel port=0x%04x VAR_2=0x%08x\\n\", VAR_1, VAR_2);",
"#endif\nswitch(VAR_1) {",
"case 0x08:\ns->fl_base_addr = VAR_2 & ~0xfff;",
"break;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
]
] |
12,755 | hwaddr x86_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
target_ulong pde_addr, pte_addr;
uint64_t pte;
hwaddr paddr;
uint32_t page_offset;
int page_size;
if (env->cr[4] & CR4_PAE_MASK) {
target_ulong pdpe... | false | qemu | f2f8560c7a5303065a2a3207ec475dfb3a622a0e | hwaddr x86_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
target_ulong pde_addr, pte_addr;
uint64_t pte;
hwaddr paddr;
uint32_t page_offset;
int page_size;
if (env->cr[4] & CR4_PAE_MASK) {
target_ulong pdpe... | {
"code": [],
"line_no": []
} | hwaddr FUNC_0(CPUState *cs, vaddr addr)
{
X86CPU *cpu = X86_CPU(cs);
CPUX86State *env = &cpu->env;
target_ulong pde_addr, pte_addr;
uint64_t pte;
hwaddr paddr;
uint32_t page_offset;
int VAR_0;
if (env->cr[4] & CR4_PAE_MASK) {
target_ulong pdpe_addr;
uint64_t ... | [
"hwaddr FUNC_0(CPUState *cs, vaddr addr)\n{",
"X86CPU *cpu = X86_CPU(cs);",
"CPUX86State *env = &cpu->env;",
"target_ulong pde_addr, pte_addr;",
"uint64_t pte;",
"hwaddr paddr;",
"uint32_t page_offset;",
"int VAR_0;",
"if (env->cr[4] & CR4_PAE_MASK) {",
"target_ulong pdpe_addr;",
"uint64_t pde, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43,
45
],
[
49,
51
],
[
53
],
[... |
12,756 | static int hda_audio_init(HDACodecDevice *hda, const struct desc_codec *desc)
{
HDAAudioState *a = HDA_AUDIO(hda);
HDAAudioStream *st;
const desc_node *node;
const desc_param *param;
uint32_t i, type;
a->desc = desc;
a->name = object_get_typename(OBJECT(a));
dprint(a, 1, "%s: ... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static int hda_audio_init(HDACodecDevice *hda, const struct desc_codec *desc)
{
HDAAudioState *a = HDA_AUDIO(hda);
HDAAudioStream *st;
const desc_node *node;
const desc_param *param;
uint32_t i, type;
a->desc = desc;
a->name = object_get_typename(OBJECT(a));
dprint(a, 1, "%s: ... | {
"code": [],
"line_no": []
} | static int FUNC_0(HDACodecDevice *VAR_0, const struct desc_codec *VAR_1)
{
HDAAudioState *a = HDA_AUDIO(VAR_0);
HDAAudioStream *st;
const desc_node *VAR_2;
const desc_param *VAR_3;
uint32_t i, type;
a->VAR_1 = VAR_1;
a->name = object_get_typename(OBJECT(a));
dprint(a, 1, "%s: ... | [
"static int FUNC_0(HDACodecDevice *VAR_0, const struct desc_codec *VAR_1)\n{",
"HDAAudioState *a = HDA_AUDIO(VAR_0);",
"HDAAudioStream *st;",
"const desc_node *VAR_2;",
"const desc_param *VAR_3;",
"uint32_t i, type;",
"a->VAR_1 = VAR_1;",
"a->name = object_get_typename(OBJECT(a));",
"dprint(a, 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
... |
12,757 | static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid, unsigned int streamid)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int length;
int i;
trace_usb_xhci_ep_k... | false | qemu | 94b037f2a451b3dc855f9f2c346e5049a361bd55 | static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid, unsigned int streamid)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int length;
int i;
trace_usb_xhci_ep_k... | {
"code": [],
"line_no": []
} | static void FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int VAR_4;
int VAR_5;
trace_usb_xhci_ep_kick(V... | [
"static void FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{",
"XHCIStreamContext *stctx;",
"XHCIEPContext *epctx;",
"XHCIRing *ring;",
"USBEndpoint *ep = NULL;",
"uint64_t mfindex;",
"int VAR_4;",
"int VAR_5;",
"trace_usb_xhci_ep_kick(VAR_1, VAR_2, VAR_3);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
... |
12,758 | static int pl181_init(SysBusDevice *sbd)
{
DeviceState *dev = DEVICE(sbd);
PL181State *s = PL181(dev);
DriveInfo *dinfo;
memory_region_init_io(&s->iomem, OBJECT(s), &pl181_ops, s, "pl181", 0x1000);
sysbus_init_mmio(sbd, &s->iomem);
sysbus_init_irq(sbd, &s->irq[0]);
sysbus_init_irq(... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static int pl181_init(SysBusDevice *sbd)
{
DeviceState *dev = DEVICE(sbd);
PL181State *s = PL181(dev);
DriveInfo *dinfo;
memory_region_init_io(&s->iomem, OBJECT(s), &pl181_ops, s, "pl181", 0x1000);
sysbus_init_mmio(sbd, &s->iomem);
sysbus_init_irq(sbd, &s->irq[0]);
sysbus_init_irq(... | {
"code": [],
"line_no": []
} | static int FUNC_0(SysBusDevice *VAR_0)
{
DeviceState *dev = DEVICE(VAR_0);
PL181State *s = PL181(dev);
DriveInfo *dinfo;
memory_region_init_io(&s->iomem, OBJECT(s), &pl181_ops, s, "pl181", 0x1000);
sysbus_init_mmio(VAR_0, &s->iomem);
sysbus_init_irq(VAR_0, &s->irq[0]);
sysbus_init_... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"DeviceState *dev = DEVICE(VAR_0);",
"PL181State *s = PL181(dev);",
"DriveInfo *dinfo;",
"memory_region_init_io(&s->iomem, OBJECT(s), &pl181_ops, s, \"pl181\", 0x1000);",
"sysbus_init_mmio(VAR_0, &s->iomem);",
"sysbus_init_irq(VAR_0, &s->irq[0]);",
"sysbus_... | [
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
],
[
35
],
[
37
]
] |
12,759 | static void curl_readv_bh_cb(void *p)
{
CURLState *state;
CURLAIOCB *acb = p;
BDRVCURLState *s = acb->common.bs->opaque;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
size_t start = acb->sector_num * SECTOR_SIZE;
size_t end;
// In case we have the requested data already (e.g.... | false | qemu | b69cdef876340624bb40a2054d14f298471a40a6 | static void curl_readv_bh_cb(void *p)
{
CURLState *state;
CURLAIOCB *acb = p;
BDRVCURLState *s = acb->common.bs->opaque;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
size_t start = acb->sector_num * SECTOR_SIZE;
size_t end;
switch (curl_find_buf(s, start, acb->nb... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
CURLState *state;
CURLAIOCB *acb = VAR_0;
BDRVCURLState *s = acb->common.bs->opaque;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
size_t start = acb->sector_num * SECTOR_SIZE;
size_t end;
switch (curl_find_buf(s, start, acb->nb_s... | [
"static void FUNC_0(void *VAR_0)\n{",
"CURLState *state;",
"CURLAIOCB *acb = VAR_0;",
"BDRVCURLState *s = acb->common.bs->opaque;",
"qemu_bh_delete(acb->bh);",
"acb->bh = NULL;",
"size_t start = acb->sector_num * SECTOR_SIZE;",
"size_t end;",
"switch (curl_find_buf(s, start, acb->nb_sectors * SECTOR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
31
],
[
33,
35
],
[
39,
41
],
[
43,
45
],
[
47
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
... |
12,760 | static void kvm_arm_gic_put(GICState *s)
{
uint32_t reg;
int i;
int cpu;
int num_cpu;
int num_irq;
if (!kvm_arm_gic_can_save_restore(s)) {
DPRINTF("Cannot put kernel gic state, no kernel interface");
return;
}
/* Note: We do the restore in a slightl... | false | qemu | 679aa175e84f5f80b32b307fce5a6b92729e0e61 | static void kvm_arm_gic_put(GICState *s)
{
uint32_t reg;
int i;
int cpu;
int num_cpu;
int num_irq;
if (!kvm_arm_gic_can_save_restore(s)) {
DPRINTF("Cannot put kernel gic state, no kernel interface");
return;
}
reg = s->... | {
"code": [],
"line_no": []
} | static void FUNC_0(GICState *VAR_0)
{
uint32_t reg;
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
if (!kvm_arm_gic_can_save_restore(VAR_0)) {
DPRINTF("Cannot put kernel gic state, no kernel interface");
return;
}
reg = VA... | [
"static void FUNC_0(GICState *VAR_0)\n{",
"uint32_t reg;",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"if (!kvm_arm_gic_can_save_restore(VAR_0)) {",
"DPRINTF(\"Cannot put kernel gic state, no kernel interface\");",
"return;",
"}",
"reg = VAR_0->enabled;",
"kvm_gicd_access(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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
45
],
[
47
],
[
53
],
[
55
],
[
57
],
[
61
],
[
63,
65
],
[
67
],
[
69
],
[... |
12,761 | void readline_handle_byte(ReadLineState *rs, int ch)
{
switch(rs->esc_state) {
case IS_NORM:
switch(ch) {
case 1:
readline_bol(rs);
break;
case 4:
readline_delete_char(rs);
break;
case 5:
readline_eol(rs);
... | false | qemu | c60bf3391bf4cb79b7adc6650094e21671ddaabd | void readline_handle_byte(ReadLineState *rs, int ch)
{
switch(rs->esc_state) {
case IS_NORM:
switch(ch) {
case 1:
readline_bol(rs);
break;
case 4:
readline_delete_char(rs);
break;
case 5:
readline_eol(rs);
... | {
"code": [],
"line_no": []
} | void FUNC_0(ReadLineState *VAR_0, int VAR_1)
{
switch(VAR_0->esc_state) {
case IS_NORM:
switch(VAR_1) {
case 1:
readline_bol(VAR_0);
break;
case 4:
readline_delete_char(VAR_0);
break;
case 5:
readline_eol(VAR... | [
"void FUNC_0(ReadLineState *VAR_0, int VAR_1)\n{",
"switch(VAR_0->esc_state) {",
"case IS_NORM:\nswitch(VAR_1) {",
"case 1:\nreadline_bol(VAR_0);",
"break;",
"case 4:\nreadline_delete_char(VAR_0);",
"break;",
"case 5:\nreadline_eol(VAR_0);",
"break;",
"case 9:\nreadline_completion(VAR_0);",
"bre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
... |
12,763 | static void ats_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value)
{
hwaddr phys_addr;
target_ulong page_size;
int prot;
int ret, is_user = ri->opc2 & 2;
int access_type = ri->opc2 & 1;
ret = get_phys_addr(env, value, access_type, is_user,
&phys_add... | false | qemu | 01c097f7960b330c4bf038d34bae17ad6c1ba499 | static void ats_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value)
{
hwaddr phys_addr;
target_ulong page_size;
int prot;
int ret, is_user = ri->opc2 & 2;
int access_type = ri->opc2 & 1;
ret = get_phys_addr(env, value, access_type, is_user,
&phys_add... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2)
{
hwaddr phys_addr;
target_ulong page_size;
int VAR_3;
int VAR_4, VAR_5 = VAR_1->opc2 & 2;
int VAR_6 = VAR_1->opc2 & 1;
VAR_4 = get_phys_addr(VAR_0, VAR_2, VAR_6, VAR_5,
&phys_addr... | [
"static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2)\n{",
"hwaddr phys_addr;",
"target_ulong page_size;",
"int VAR_3;",
"int VAR_4, VAR_5 = VAR_1->opc2 & 2;",
"int VAR_6 = VAR_1->opc2 & 1;",
"VAR_4 = get_phys_addr(VAR_0, VAR_2, VAR_6, VAR_5,\n&phys_addr, &VAR_3, &page_size)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
53
],
[
55
],
[
57
],
[
67
],
[
71,
73
... |
12,764 | static void test_hybrid_analysis(void)
{
LOCAL_ALIGNED_16(INTFLOAT, dst0, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, dst1, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, in, [12], [2]);
LOCAL_ALIGNED_16(INTFLOAT, filter, [N], [8][2]);
declare_func(void, INTFLOAT (*out)[2], INTFLOAT (*in)[2],... | false | FFmpeg | fb7b477a91feea1a5d1faf62e516878e388c3057 | static void test_hybrid_analysis(void)
{
LOCAL_ALIGNED_16(INTFLOAT, dst0, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, dst1, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, in, [12], [2]);
LOCAL_ALIGNED_16(INTFLOAT, filter, [N], [8][2]);
declare_func(void, INTFLOAT (*out)[2], INTFLOAT (*in)[2],... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
LOCAL_ALIGNED_16(INTFLOAT, dst0, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, dst1, [BUF_SIZE], [2]);
LOCAL_ALIGNED_16(INTFLOAT, in, [12], [2]);
LOCAL_ALIGNED_16(INTFLOAT, filter, [N], [8][2]);
declare_func(void, INTFLOAT (*out)[2], INTFLOAT (*in)[2],
... | [
"static void FUNC_0(void)\n{",
"LOCAL_ALIGNED_16(INTFLOAT, dst0, [BUF_SIZE], [2]);",
"LOCAL_ALIGNED_16(INTFLOAT, dst1, [BUF_SIZE], [2]);",
"LOCAL_ALIGNED_16(INTFLOAT, in, [12], [2]);",
"LOCAL_ALIGNED_16(INTFLOAT, filter, [N], [8][2]);",
"declare_func(void, INTFLOAT (*out)[2], INTFLOAT (*in)[2],\nconst INT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
]
] |
12,766 | static void test_qemu_strtoul_full_max(void)
{
char *str = g_strdup_printf("%lu", ULONG_MAX);
unsigned long res = 999;
int err;
err = qemu_strtoul(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, ULONG_MAX);
g_free(str);
}
| false | qemu | bc7c08a2c375acb7ae4d433054415588b176d34c | static void test_qemu_strtoul_full_max(void)
{
char *str = g_strdup_printf("%lu", ULONG_MAX);
unsigned long res = 999;
int err;
err = qemu_strtoul(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, ULONG_MAX);
g_free(str);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
char *VAR_0 = g_strdup_printf("%lu", ULONG_MAX);
unsigned long VAR_1 = 999;
int VAR_2;
VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1);
g_assert_cmpint(VAR_2, ==, 0);
g_assert_cmpint(VAR_1, ==, ULONG_MAX);
g_free(VAR_0);
}
| [
"static void FUNC_0(void)\n{",
"char *VAR_0 = g_strdup_printf(\"%lu\", ULONG_MAX);",
"unsigned long VAR_1 = 999;",
"int VAR_2;",
"VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1);",
"g_assert_cmpint(VAR_2, ==, 0);",
"g_assert_cmpint(VAR_1, ==, ULONG_MAX);",
"g_free(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
12,767 | static uint64_t assigned_dev_ioport_read(void *opaque,
target_phys_addr_t addr, unsigned size)
{
return assigned_dev_ioport_rw(opaque, addr, size, NULL);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t assigned_dev_ioport_read(void *opaque,
target_phys_addr_t addr, unsigned size)
{
return assigned_dev_ioport_rw(opaque, addr, size, NULL);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque,
target_phys_addr_t addr, unsigned size)
{
return assigned_dev_ioport_rw(opaque, addr, size, NULL);
}
| [
"static uint64_t FUNC_0(void *opaque,\ntarget_phys_addr_t addr, unsigned size)\n{",
"return assigned_dev_ioport_rw(opaque, addr, size, NULL);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
12,768 | int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr)
{
RAMBlock *block;
uint8_t *host = ptr;
if (xen_enabled()) {
*ram_addr = xen_ram_addr_from_mapcache(ptr);
return 0;
}
QTAILQ_FOREACH(block, &ram_list.blocks, next) {
/* This case append when the block i... | false | qemu | 23887b79df2be53dc49166e1b677469abfb92147 | int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr)
{
RAMBlock *block;
uint8_t *host = ptr;
if (xen_enabled()) {
*ram_addr = xen_ram_addr_from_mapcache(ptr);
return 0;
}
QTAILQ_FOREACH(block, &ram_list.blocks, next) {
if (block->host == NULL) {... | {
"code": [],
"line_no": []
} | int FUNC_0(void *VAR_0, ram_addr_t *VAR_1)
{
RAMBlock *block;
uint8_t *host = VAR_0;
if (xen_enabled()) {
*VAR_1 = xen_ram_addr_from_mapcache(VAR_0);
return 0;
}
QTAILQ_FOREACH(block, &ram_list.blocks, next) {
if (block->host == NULL) {
con... | [
"int FUNC_0(void *VAR_0, ram_addr_t *VAR_1)\n{",
"RAMBlock *block;",
"uint8_t *host = VAR_0;",
"if (xen_enabled()) {",
"*VAR_1 = xen_ram_addr_from_mapcache(VAR_0);",
"return 0;",
"}",
"QTAILQ_FOREACH(block, &ram_list.blocks, next) {",
"if (block->host == NULL) {",
"continue;",
"}",
"if (host -... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
12,769 | static void address_space_update_topology_pass(AddressSpace *as,
const FlatView *old_view,
const FlatView *new_view,
bool adding)
{
unsigned iold, inew;
FlatRange *f... | false | qemu | b2dfd71c4843a762f2befe702adb249cf55baf66 | static void address_space_update_topology_pass(AddressSpace *as,
const FlatView *old_view,
const FlatView *new_view,
bool adding)
{
unsigned iold, inew;
FlatRange *f... | {
"code": [],
"line_no": []
} | static void FUNC_0(AddressSpace *VAR_0,
const FlatView *VAR_1,
const FlatView *VAR_2,
bool VAR_3)
{
unsigned VAR_4, VAR_5;
FlatRange *frold, *frnew;
... | [
"static void FUNC_0(AddressSpace *VAR_0,\nconst FlatView *VAR_1,\nconst FlatView *VAR_2,\nbool VAR_3)\n{",
"unsigned VAR_4, VAR_5;",
"FlatRange *frold, *frnew;",
"VAR_4 = VAR_5 = 0;",
"while (VAR_4 < VAR_1->nr || VAR_5 < VAR_2->nr) {",
"if (VAR_4 < VAR_1->nr) {",
"frold = &VAR_1->ranges[VAR_4];",
"} e... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51,
53,
55,
57
],
[... |
12,770 | static void pxb_dev_exitfn(PCIDevice *pci_dev)
{
PXBDev *pxb = PXB_DEV(pci_dev);
pxb_dev_list = g_list_remove(pxb_dev_list, pxb);
}
| false | qemu | 02b07434bed8360715198b4cbfdfebd17f7cac32 | static void pxb_dev_exitfn(PCIDevice *pci_dev)
{
PXBDev *pxb = PXB_DEV(pci_dev);
pxb_dev_list = g_list_remove(pxb_dev_list, pxb);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0)
{
PXBDev *pxb = PXB_DEV(VAR_0);
pxb_dev_list = g_list_remove(pxb_dev_list, pxb);
}
| [
"static void FUNC_0(PCIDevice *VAR_0)\n{",
"PXBDev *pxb = PXB_DEV(VAR_0);",
"pxb_dev_list = g_list_remove(pxb_dev_list, pxb);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
12,771 | static void ne2000_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
NE2000State *s = opaque;
if (addr < 0x10 && size == 1) {
ne2000_ioport_write(s, addr, data);
} else if (addr == 0x10) {
if (size <= 2) {
ne2000_asic_... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void ne2000_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
NE2000State *s = opaque;
if (addr < 0x10 && size == 1) {
ne2000_ioport_write(s, addr, data);
} else if (addr == 0x10) {
if (size <= 2) {
ne2000_asic_... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
NE2000State *s = VAR_0;
if (VAR_1 < 0x10 && VAR_3 == 1) {
ne2000_ioport_write(s, VAR_1, VAR_2);
} else if (VAR_1 == 0x10) {
if (VAR_3 <= 2) {
ne2000_asic... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"NE2000State *s = VAR_0;",
"if (VAR_1 < 0x10 && VAR_3 == 1) {",
"ne2000_ioport_write(s, VAR_1, VAR_2);",
"} else if (VAR_1 == 0x10) {",
"if (VAR_3 <= 2) {",
"ne2000_asic_ioport_write(s, VAR_1, VAR_2);",
"}... | [
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
]
] |
12,772 | static void cuda_writew (void *opaque, target_phys_addr_t addr, uint32_t value)
{
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void cuda_writew (void *opaque, target_phys_addr_t addr, uint32_t value)
{
}
| {
"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
]
] |
12,773 | void smbios_set_defaults(const char *manufacturer, const char *product,
const char *version)
{
SMBIOS_SET_DEFAULT(type1.manufacturer, manufacturer);
SMBIOS_SET_DEFAULT(type1.product, product);
SMBIOS_SET_DEFAULT(type1.version, version);
}
| false | qemu | c97294ec1b9e36887e119589d456557d72ab37b5 | void smbios_set_defaults(const char *manufacturer, const char *product,
const char *version)
{
SMBIOS_SET_DEFAULT(type1.manufacturer, manufacturer);
SMBIOS_SET_DEFAULT(type1.product, product);
SMBIOS_SET_DEFAULT(type1.version, version);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, const char *VAR_1,
const char *VAR_2)
{
SMBIOS_SET_DEFAULT(type1.VAR_0, VAR_0);
SMBIOS_SET_DEFAULT(type1.VAR_1, VAR_1);
SMBIOS_SET_DEFAULT(type1.VAR_2, VAR_2);
}
| [
"void FUNC_0(const char *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{",
"SMBIOS_SET_DEFAULT(type1.VAR_0, VAR_0);",
"SMBIOS_SET_DEFAULT(type1.VAR_1, VAR_1);",
"SMBIOS_SET_DEFAULT(type1.VAR_2, VAR_2);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
12,774 | void qio_channel_socket_dgram_async(QIOChannelSocket *ioc,
SocketAddressLegacy *localAddr,
SocketAddressLegacy *remoteAddr,
QIOTaskFunc callback,
gpointer opaque,
... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | void qio_channel_socket_dgram_async(QIOChannelSocket *ioc,
SocketAddressLegacy *localAddr,
SocketAddressLegacy *remoteAddr,
QIOTaskFunc callback,
gpointer opaque,
... | {
"code": [],
"line_no": []
} | void FUNC_0(QIOChannelSocket *VAR_0,
SocketAddressLegacy *VAR_1,
SocketAddressLegacy *VAR_2,
QIOTaskFunc VAR_3,
gpointer VAR_4,
GDestro... | [
"void FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddressLegacy *VAR_1,\nSocketAddressLegacy *VAR_2,\nQIOTaskFunc VAR_3,\ngpointer VAR_4,\nGDestroyNotify VAR_5)\n{",
"QIOTask *task = qio_task_new(\nOBJECT(VAR_0), VAR_3, VAR_4, VAR_5);",
"struct QIOChannelSocketDGramWorkerData *VAR_6 = g_new0(\nstruct QIOChannelSocke... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
27
],
[
31
],
[
33,
35,
37,
39
],
[
41
]
] |
12,776 | static void spawn_thread_bh_fn(void *opaque)
{
ThreadPool *pool = opaque;
qemu_mutex_lock(&pool->lock);
do_spawn_thread(pool);
qemu_mutex_unlock(&pool->lock);
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | static void spawn_thread_bh_fn(void *opaque)
{
ThreadPool *pool = opaque;
qemu_mutex_lock(&pool->lock);
do_spawn_thread(pool);
qemu_mutex_unlock(&pool->lock);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
ThreadPool *pool = VAR_0;
qemu_mutex_lock(&pool->lock);
do_spawn_thread(pool);
qemu_mutex_unlock(&pool->lock);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"ThreadPool *pool = VAR_0;",
"qemu_mutex_lock(&pool->lock);",
"do_spawn_thread(pool);",
"qemu_mutex_unlock(&pool->lock);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,779 | static void ppc_prep_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
const char *boot_device = machine->b... | true | qemu | 4482e05cbbb7e50e476f6a9500cf0b38913bd939 | static void ppc_prep_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
const char *boot_device = machine->b... | {
"code": [
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" e... | static void FUNC_0(MachineState *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->boot_order;
MemoryRegion *sysmem = get_system_memory();
PowerPCCPU *cpu = ... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->boot_order;",
"MemoryRegion *sysmem = get_system_memory();",
"PowerPCCPU *c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
12,781 | gen_set_condexec (DisasContext *s)
{
if (s->condexec_mask) {
uint32_t val = (s->condexec_cond << 4) | (s->condexec_mask >> 1);
TCGv tmp = new_tmp();
tcg_gen_movi_i32(tmp, val);
store_cpu_field(tmp, condexec_bits);
}
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | gen_set_condexec (DisasContext *s)
{
if (s->condexec_mask) {
uint32_t val = (s->condexec_cond << 4) | (s->condexec_mask >> 1);
TCGv tmp = new_tmp();
tcg_gen_movi_i32(tmp, val);
store_cpu_field(tmp, condexec_bits);
}
}
| {
"code": [
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();"
],
"line_no": [
9,
9
]
} | FUNC_0 (DisasContext *VAR_0)
{
if (VAR_0->condexec_mask) {
uint32_t val = (VAR_0->condexec_cond << 4) | (VAR_0->condexec_mask >> 1);
TCGv tmp = new_tmp();
tcg_gen_movi_i32(tmp, val);
store_cpu_field(tmp, condexec_bits);
}
}
| [
"FUNC_0 (DisasContext *VAR_0)\n{",
"if (VAR_0->condexec_mask) {",
"uint32_t val = (VAR_0->condexec_cond << 4) | (VAR_0->condexec_mask >> 1);",
"TCGv tmp = new_tmp();",
"tcg_gen_movi_i32(tmp, val);",
"store_cpu_field(tmp, condexec_bits);",
"}",
"}"
] | [
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
12,782 | void *mcf_uart_init(qemu_irq irq, CharDriverState *chr)
{
mcf_uart_state *s;
s = g_malloc0(sizeof(mcf_uart_state));
s->chr = chr;
s->irq = irq;
if (chr) {
qemu_chr_add_handlers(chr, mcf_uart_can_receive, mcf_uart_receive,
mcf_uart_event, s);
}
... | true | qemu | 456d60692310e7ac25cf822cc1e98192ad636ece | void *mcf_uart_init(qemu_irq irq, CharDriverState *chr)
{
mcf_uart_state *s;
s = g_malloc0(sizeof(mcf_uart_state));
s->chr = chr;
s->irq = irq;
if (chr) {
qemu_chr_add_handlers(chr, mcf_uart_can_receive, mcf_uart_receive,
mcf_uart_event, s);
}
... | {
"code": [],
"line_no": []
} | void *FUNC_0(qemu_irq VAR_0, CharDriverState *VAR_1)
{
mcf_uart_state *s;
s = g_malloc0(sizeof(mcf_uart_state));
s->VAR_1 = VAR_1;
s->VAR_0 = VAR_0;
if (VAR_1) {
qemu_chr_add_handlers(VAR_1, mcf_uart_can_receive, mcf_uart_receive,
mcf_uart_event, s);
... | [
"void *FUNC_0(qemu_irq VAR_0, CharDriverState *VAR_1)\n{",
"mcf_uart_state *s;",
"s = g_malloc0(sizeof(mcf_uart_state));",
"s->VAR_1 = VAR_1;",
"s->VAR_0 = VAR_0;",
"if (VAR_1) {",
"qemu_chr_add_handlers(VAR_1, mcf_uart_can_receive, mcf_uart_receive,\nmcf_uart_event, s);",
"}",
"mcf_uart_reset(s);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
18,
20
],
[
22
],
[
24
],
[
26
],
[
28
]
] |
12,783 | static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
{
ff_asf_guid subformat;
par->bits_per_coded_sample = avio_rl16(pb);
par->channel_layout = avio_rl32(pb); /* dwChannelMask */
ff_get_guid(pb, &subformat);
if (!memcmp(subformat + 4,
(const uint8_t... | true | FFmpeg | 7f549b8338ed3775fec4bf10421ff5744e5866dd | static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
{
ff_asf_guid subformat;
par->bits_per_coded_sample = avio_rl16(pb);
par->channel_layout = avio_rl32(pb);
ff_get_guid(pb, &subformat);
if (!memcmp(subformat + 4,
(const uint8_t[]){ FF_MEDIASUBTYP... | {
"code": [
" par->bits_per_coded_sample = avio_rl16(pb);"
],
"line_no": [
7
]
} | static void FUNC_0(AVIOContext *VAR_0, AVCodecParameters *VAR_1)
{
ff_asf_guid subformat;
VAR_1->bits_per_coded_sample = avio_rl16(VAR_0);
VAR_1->channel_layout = avio_rl32(VAR_0);
ff_get_guid(VAR_0, &subformat);
if (!memcmp(subformat + 4,
(const uint8_t[]){ FF_MEDIA... | [
"static void FUNC_0(AVIOContext *VAR_0, AVCodecParameters *VAR_1)\n{",
"ff_asf_guid subformat;",
"VAR_1->bits_per_coded_sample = avio_rl16(VAR_0);",
"VAR_1->channel_layout = avio_rl32(VAR_0);",
"ff_get_guid(VAR_0, &subformat);",
"if (!memcmp(subformat + 4,\n(const uint8_t[]){ FF_MEDIASUBTYPE_BASE_G... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31,
33,
35
],
[
37
],
[
39
]
] |
12,784 | static void ict_int(void *_src0, void *_src1, void *_src2, int csize)
{
int32_t *src0 = _src0, *src1 = _src1, *src2 = _src2;
int32_t i0, i1, i2;
int i;
for (i = 0; i < csize; i++) {
i0 = *src0 + (((i_ict_params[0] * *src2) + (1 << 15)) >> 16);
i1 = *src0 - (((i_ict_params[1] * *... | true | FFmpeg | c746f92a8e03d5a062359fba836eba4b3530687e | static void ict_int(void *_src0, void *_src1, void *_src2, int csize)
{
int32_t *src0 = _src0, *src1 = _src1, *src2 = _src2;
int32_t i0, i1, i2;
int i;
for (i = 0; i < csize; i++) {
i0 = *src0 + (((i_ict_params[0] * *src2) + (1 << 15)) >> 16);
i1 = *src0 - (((i_ict_params[1] * *... | {
"code": [
" i0 = *src0 + (((i_ict_params[0] * *src2) + (1 << 15)) >> 16);",
" i2 = *src0 + (((i_ict_params[3] * *src1) + (1 << 15)) >> 16);"
],
"line_no": [
15,
21
]
} | static void FUNC_0(void *VAR_0, void *VAR_1, void *VAR_2, int VAR_3)
{
int32_t *src0 = VAR_0, *src1 = VAR_1, *src2 = VAR_2;
int32_t i0, i1, i2;
int VAR_4;
for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) {
i0 = *src0 + (((i_ict_params[0] * *src2) + (1 << 15)) >> 16);
i1 = *src0 - (((i_ic... | [
"static void FUNC_0(void *VAR_0, void *VAR_1, void *VAR_2, int VAR_3)\n{",
"int32_t *src0 = VAR_0, *src1 = VAR_1, *src2 = VAR_2;",
"int32_t i0, i1, i2;",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) {",
"i0 = *src0 + (((i_ict_params[0] * *src2) + (1 << 15)) >> 16);",
"i1 = *src0 - (((i_ict_par... | [
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
12,788 | static int local_unlinkat_common(FsContext *ctx, int dirfd, const char *name,
int flags)
{
int ret = -1;
if (ctx->export_flags & V9FS_SM_MAPPED_FILE) {
int map_dirfd;
if (flags == AT_REMOVEDIR) {
int fd;
fd = openat(dirfd, na... | true | qemu | b003fc0d8aa5e7060dbf7e5862b8013c73857c7f | static int local_unlinkat_common(FsContext *ctx, int dirfd, const char *name,
int flags)
{
int ret = -1;
if (ctx->export_flags & V9FS_SM_MAPPED_FILE) {
int map_dirfd;
if (flags == AT_REMOVEDIR) {
int fd;
fd = openat(dirfd, na... | {
"code": [
" fd = openat(dirfd, name, O_RDONLY | O_DIRECTORY | O_PATH);"
],
"line_no": [
23
]
} | static int FUNC_0(FsContext *VAR_0, int VAR_1, const char *VAR_2,
int VAR_3)
{
int VAR_4 = -1;
if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE) {
int VAR_5;
if (VAR_3 == AT_REMOVEDIR) {
int VAR_6;
VAR_6 = openat(VAR_1, VAR_2, O... | [
"static int FUNC_0(FsContext *VAR_0, int VAR_1, const char *VAR_2,\nint VAR_3)\n{",
"int VAR_4 = -1;",
"if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE) {",
"int VAR_5;",
"if (VAR_3 == AT_REMOVEDIR) {",
"int VAR_6;",
"VAR_6 = openat(VAR_1, VAR_2, O_RDONLY | O_DIRECTORY | O_PATH);",
"if (VAR_6 == -1) {",... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
39
],
[
41
],
[
43
],
[
53
],
[
55
],
[
57
],
[
67
],
[
69
],
[
71
],
... |
12,790 | static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcY;
int dxy, mx, my, src_x, src_y;
int off;
int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0;
int v_edge_pos = s->v_edge_pos >> v->fiel... | true | FFmpeg | 3a04c18d899d278eea551c216e5117974063062b | static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcY;
int dxy, mx, my, src_x, src_y;
int off;
int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0;
int v_edge_pos = s->v_edge_pos >> v->fiel... | {
"code": [],
"line_no": []
} | static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2)
{
MpegEncContext *s = &VAR_0->s;
DSPContext *dsp = &VAR_0->s.dsp;
uint8_t *srcY;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8;
int VAR_9 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0;
int VAR_10 =... | [
"static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2)\n{",
"MpegEncContext *s = &VAR_0->s;",
"DSPContext *dsp = &VAR_0->s.dsp;",
"uint8_t *srcY;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8;",
"int VAR_9 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10,
11,
12,
13
],
[
14
],
[
15
],
[
16
],
[
17,
18
],
[
19,
20
],
[
21
],
[
22
],
[
23
],
[
... |
12,791 | int main(int argc, char **argv)
{
int ret = EXIT_SUCCESS;
GAState *s = g_new0(GAState, 1);
GAConfig *config = g_new0(GAConfig, 1);
config->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL;
module_call_init(MODULE_INIT_QAPI);
init_dfl_pathnames();
config_load(config);
c... | true | qemu | 3e3e302ff388669d811077248aee45c45a14168e | int main(int argc, char **argv)
{
int ret = EXIT_SUCCESS;
GAState *s = g_new0(GAState, 1);
GAConfig *config = g_new0(GAConfig, 1);
config->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL;
module_call_init(MODULE_INIT_QAPI);
init_dfl_pathnames();
config_load(config);
c... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, char **VAR_1)
{
int VAR_2 = EXIT_SUCCESS;
GAState *s = g_new0(GAState, 1);
GAConfig *config = g_new0(GAConfig, 1);
config->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL;
module_call_init(MODULE_INIT_QAPI);
init_dfl_pathnames();
config_load(config);
... | [
"int FUNC_0(int VAR_0, char **VAR_1)\n{",
"int VAR_2 = EXIT_SUCCESS;",
"GAState *s = g_new0(GAState, 1);",
"GAConfig *config = g_new0(GAConfig, 1);",
"config->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL;",
"module_call_init(MODULE_INIT_QAPI);",
"init_dfl_pathnames();",
"config_load(config);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
36
],
[
38
],
[
43
],
[
45
],
[
50
],
[
52
],
[
56
],
[
58
],
[
62
... |
12,792 | static int gen_rp_interrupts_init(PCIDevice *d, Error **errp)
{
int rc;
rc = msix_init_exclusive_bar(d, GEN_PCIE_ROOT_PORT_MSIX_NR_VECTOR, 0);
if (rc < 0) {
assert(rc == -ENOTSUP);
error_setg(errp, "Unable to init msix vectors");
} else {
msix_vector_use(d, 0);
}... | true | qemu | ee640c625e190a0c0e6b8966adc0e4720fb75200 | static int gen_rp_interrupts_init(PCIDevice *d, Error **errp)
{
int rc;
rc = msix_init_exclusive_bar(d, GEN_PCIE_ROOT_PORT_MSIX_NR_VECTOR, 0);
if (rc < 0) {
assert(rc == -ENOTSUP);
error_setg(errp, "Unable to init msix vectors");
} else {
msix_vector_use(d, 0);
}... | {
"code": [
" rc = msix_init_exclusive_bar(d, GEN_PCIE_ROOT_PORT_MSIX_NR_VECTOR, 0);",
" error_setg(errp, \"Unable to init msix vectors\");"
],
"line_no": [
9,
17
]
} | static int FUNC_0(PCIDevice *VAR_0, Error **VAR_1)
{
int VAR_2;
VAR_2 = msix_init_exclusive_bar(VAR_0, GEN_PCIE_ROOT_PORT_MSIX_NR_VECTOR, 0);
if (VAR_2 < 0) {
assert(VAR_2 == -ENOTSUP);
error_setg(VAR_1, "Unable to init msix vectors");
} else {
msix_vector_use(VAR_0, ... | [
"static int FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{",
"int VAR_2;",
"VAR_2 = msix_init_exclusive_bar(VAR_0, GEN_PCIE_ROOT_PORT_MSIX_NR_VECTOR, 0);",
"if (VAR_2 < 0) {",
"assert(VAR_2 == -ENOTSUP);",
"error_setg(VAR_1, \"Unable to init msix vectors\");",
"} else {",
"msix_vector_use(VAR_0, 0);",
"... | [
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
12,793 | static int vaapi_decode_make_config(AVCodecContext *avctx)
{
VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
AVVAAPIHWConfig *hwconfig = NULL;
AVHWFramesConstraints *constraints = NULL;
VAStatus vas;
int err, i, j;
const AVCodecDescriptor *codec_desc;
VAProfi... | false | FFmpeg | b46a77f19ddc4b2b5fa3187835ceb602a5244e24 | static int vaapi_decode_make_config(AVCodecContext *avctx)
{
VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
AVVAAPIHWConfig *hwconfig = NULL;
AVHWFramesConstraints *constraints = NULL;
VAStatus vas;
int err, i, j;
const AVCodecDescriptor *codec_desc;
VAProfi... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
VAAPIDecodeContext *ctx = VAR_0->internal->hwaccel_priv_data;
AVVAAPIHWConfig *hwconfig = NULL;
AVHWFramesConstraints *constraints = NULL;
VAStatus vas;
int VAR_1, VAR_2, VAR_3;
const AVCodecDescriptor *VAR_4;
VAProfile profile, *... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"VAAPIDecodeContext *ctx = VAR_0->internal->hwaccel_priv_data;",
"AVVAAPIHWConfig *hwconfig = NULL;",
"AVHWFramesConstraints *constraints = NULL;",
"VAStatus vas;",
"int VAR_1, VAR_2, VAR_3;",
"const AVCodecDescriptor *VAR_4;",
"VAProfile profile... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
... |
12,794 | static int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp)
{
if (qemu_opt_get_bool(opts, "enable", false)) {
#ifdef CONFIG_SECCOMP
uint32_t seccomp_opts = QEMU_SECCOMP_SET_DEFAULT
| QEMU_SECCOMP_SET_OBSOLETE;
const char *value = NULL;
value = qemu_opt_get(opts, "obs... | true | qemu | 73a1e647256b09734ce64ef7a6001a0db03f7106 | static int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp)
{
if (qemu_opt_get_bool(opts, "enable", false)) {
#ifdef CONFIG_SECCOMP
uint32_t seccomp_opts = QEMU_SECCOMP_SET_DEFAULT
| QEMU_SECCOMP_SET_OBSOLETE;
const char *value = NULL;
value = qemu_opt_get(opts, "obs... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, QemuOpts *VAR_1, Error **VAR_2)
{
if (qemu_opt_get_bool(VAR_1, "enable", false)) {
#ifdef CONFIG_SECCOMP
uint32_t seccomp_opts = QEMU_SECCOMP_SET_DEFAULT
| QEMU_SECCOMP_SET_OBSOLETE;
const char *value = NULL;
value = qemu_opt_get(VAR_1, "obsolet... | [
"static int FUNC_0(void *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{",
"if (qemu_opt_get_bool(VAR_1, \"enable\", false)) {",
"#ifdef CONFIG_SECCOMP\nuint32_t seccomp_opts = QEMU_SECCOMP_SET_DEFAULT\n| QEMU_SECCOMP_SET_OBSOLETE;",
"const char *value = NULL;",
"value = qemu_opt_get(VAR_1, \"obsolete\");",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4,
5,
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
15
],
[
16
],
[
17,
18
],
[
19,
20
],
[
21,
22
]
] |
12,795 | static const char *search_keyval(const TiffGeoTagKeyName *keys, int n, int id)
{
return ((TiffGeoTagKeyName*)bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key))->name;
}
| true | FFmpeg | f28043d0a34aaf4ac7cf25bd0dddd868811c0ab2 | static const char *search_keyval(const TiffGeoTagKeyName *keys, int n, int id)
{
return ((TiffGeoTagKeyName*)bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key))->name;
}
| {
"code": [
" return ((TiffGeoTagKeyName*)bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key))->name;"
],
"line_no": [
5
]
} | static const char *FUNC_0(const TiffGeoTagKeyName *VAR_0, int VAR_1, int VAR_2)
{
return ((TiffGeoTagKeyName*)bsearch(&VAR_2, VAR_0, VAR_1, sizeof(VAR_0[0]), cmp_id_key))->name;
}
| [
"static const char *FUNC_0(const TiffGeoTagKeyName *VAR_0, int VAR_1, int VAR_2)\n{",
"return ((TiffGeoTagKeyName*)bsearch(&VAR_2, VAR_0, VAR_1, sizeof(VAR_0[0]), cmp_id_key))->name;",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
12,797 | static int wm8750_tx(I2CSlave *i2c, uint8_t data)
{
WM8750State *s = (WM8750State *) i2c;
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
printf("%s: long message (%i bytes)\n", __FUNCTION__, s->i2c_len);
#ifdef VERBOSE
return 1;
#endif
}
s->i2c_data[s->i2c_len +... | true | qemu | 149eeb5fe57b853081e8059575d91b8a58a4f96c | static int wm8750_tx(I2CSlave *i2c, uint8_t data)
{
WM8750State *s = (WM8750State *) i2c;
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
printf("%s: long message (%i bytes)\n", __FUNCTION__, s->i2c_len);
#ifdef VERBOSE
return 1;
#endif
}
s->i2c_data[s->i2c_len +... | {
"code": [
" printf(\"%s: long message (%i bytes)\\n\", __FUNCTION__, s->i2c_len);",
" return 1;"
],
"line_no": [
15,
19
]
} | static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)
{
WM8750State *s = (WM8750State *) VAR_0;
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
printf("%s: long message (%i bytes)\n", __FUNCTION__, s->i2c_len);
#ifdef VERBOSE
return 1;
#endif
}
s->i2c_data[s->i2c_len... | [
"static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)\n{",
"WM8750State *s = (WM8750State *) VAR_0;",
"uint8_t cmd;",
"uint16_t value;",
"if (s->i2c_len >= 2) {",
"printf(\"%s: long message (%i bytes)\\n\", __FUNCTION__, s->i2c_len);",
"#ifdef VERBOSE\nreturn 1;",
"#endif\n}",
"s->i2c_data[s->i2c_len +... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
12,798 | static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
{
const QDictEntry *ent;
const char *arg_name;
const QObject *arg_obj;
bool has_exec_key = false;
QDict *dict = NULL;
dict = qobject_to_qdict(request);
if (!dict) {
error_setg(errp, QERR_QMP_BAD_INP... | true | qemu | 104fc3027960dd2aa9d310936a6cb201c60e1088 | static QDict *qmp_dispatch_check_obj(const QObject *request, Error **errp)
{
const QDictEntry *ent;
const char *arg_name;
const QObject *arg_obj;
bool has_exec_key = false;
QDict *dict = NULL;
dict = qobject_to_qdict(request);
if (!dict) {
error_setg(errp, QERR_QMP_BAD_INP... | {
"code": [
" const QDictEntry *ent;",
" return NULL;",
" if (!strcmp(arg_name, \"execute\")) {",
" if (qobject_type(arg_obj) != QTYPE_QSTRING) {",
" error_setg(errp, QERR_QMP_BAD_INPUT_OBJECT_MEMBER,",
" return NULL;",
" } e... | static QDict *FUNC_0(const QObject *request, Error **errp)
{
const QDictEntry *VAR_0;
const char *VAR_1;
const QObject *VAR_2;
bool has_exec_key = false;
QDict *dict = NULL;
dict = qobject_to_qdict(request);
if (!dict) {
error_setg(errp, QERR_QMP_BAD_INPUT_OBJECT,
... | [
"static QDict *FUNC_0(const QObject *request, Error **errp)\n{",
"const QDictEntry *VAR_0;",
"const char *VAR_1;",
"const QObject *VAR_2;",
"bool has_exec_key = false;",
"QDict *dict = NULL;",
"dict = qobject_to_qdict(request);",
"if (!dict) {",
"error_setg(errp, QERR_QMP_BAD_INPUT_OBJECT,\n\"reques... | [
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
... |
12,800 | static void j2k_flush(J2kDecoderContext *s)
{
if (*s->buf == 0xff)
s->buf++;
s->bit_index = 8;
s->buf++;
}
| true | FFmpeg | ddfa3751c092feaf1e080f66587024689dfe603c | static void j2k_flush(J2kDecoderContext *s)
{
if (*s->buf == 0xff)
s->buf++;
s->bit_index = 8;
s->buf++;
}
| {
"code": [
" if (*s->buf == 0xff)",
" s->buf++;",
" s->buf++;"
],
"line_no": [
5,
7,
11
]
} | static void FUNC_0(J2kDecoderContext *VAR_0)
{
if (*VAR_0->buf == 0xff)
VAR_0->buf++;
VAR_0->bit_index = 8;
VAR_0->buf++;
}
| [
"static void FUNC_0(J2kDecoderContext *VAR_0)\n{",
"if (*VAR_0->buf == 0xff)\nVAR_0->buf++;",
"VAR_0->bit_index = 8;",
"VAR_0->buf++;",
"}"
] | [
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
]
] |
12,802 | av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
{
int blk, ch;
AC3EncodeContext *s = avctx->priv_data;
av_freep(&s->windowed_samples);
for (ch = 0; ch < s->channels; ch++)
av_freep(&s->planar_samples[ch]);
av_freep(&s->planar_samples);
av_freep(&s->bap_buffer);
av_... | true | FFmpeg | 225f78b7ef589e52bbbb19c97d36de5b27982702 | av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
{
int blk, ch;
AC3EncodeContext *s = avctx->priv_data;
av_freep(&s->windowed_samples);
for (ch = 0; ch < s->channels; ch++)
av_freep(&s->planar_samples[ch]);
av_freep(&s->planar_samples);
av_freep(&s->bap_buffer);
av_... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(AVCodecContext *avctx)
{
int VAR_0, VAR_1;
AC3EncodeContext *s = avctx->priv_data;
av_freep(&s->windowed_samples);
for (VAR_1 = 0; VAR_1 < s->channels; VAR_1++)
av_freep(&s->planar_samples[VAR_1]);
av_freep(&s->planar_samples);
av_freep(&s->bap_buffer);
... | [
"av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"int VAR_0, VAR_1;",
"AC3EncodeContext *s = avctx->priv_data;",
"av_freep(&s->windowed_samples);",
"for (VAR_1 = 0; VAR_1 < s->channels; VAR_1++)",
"av_freep(&s->planar_samples[VAR_1]);",
"av_freep(&s->planar_samples);",
"av_freep(&s->bap_buffer);",
"a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
14
],
[
16
],
[
18
],
[
20
],
[
22
],
[
24
],
[
26
],
[
28
],
[
30
],
[
32
],
[
34
],
[
36
],
[
38
],
[
40
],
[
42
],
[
44... |
12,803 | static uint64_t pit_ioport_read(void *opaque, hwaddr addr,
unsigned size)
{
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s->status;
... | true | qemu | d4862a87e31a51de9eb260f25c9e99a75efe3235 | static uint64_t pit_ioport_read(void *opaque, hwaddr addr,
unsigned size)
{
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s->status;
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned size)
{
PITCommonState *pit = opaque;
int VAR_0, VAR_1;
PITChannelState *s;
addr &= 3;
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
VAR_0 = s->status;
} els... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{",
"PITCommonState *pit = opaque;",
"int VAR_0, VAR_1;",
"PITChannelState *s;",
"addr &= 3;",
"s = &pit->channels[addr];",
"if (s->status_latched) {",
"s->status_latched = 0;",
"VAR_0 = s->status;",
"} else if (s->count_latched) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14,
15,
16
],
[
17
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
23,
... |
12,804 | static int ff_asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
{
ASFContext *asf = s->priv_data;
ASFStream *asf_st = 0;
for (;;) {
int ret;
if(pb->eof_reached)
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
|| as... | true | FFmpeg | e73c6aaabff1169899184c382385fe9afae5b068 | static int ff_asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
{
ASFContext *asf = s->priv_data;
ASFStream *asf_st = 0;
for (;;) {
int ret;
if(pb->eof_reached)
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
|| as... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2)
{
ASFContext *asf = VAR_0->priv_data;
ASFStream *asf_st = 0;
for (;;) {
int VAR_4;
if(VAR_1->eof_reached)
return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2)\n{",
"ASFContext *asf = VAR_0->priv_data;",
"ASFStream *asf_st = 0;",
"for (;;) {",
"int VAR_4;",
"if(VAR_1->eof_reached)\nreturn AVERROR_EOF;",
"if (asf->packet_size_left < FRAME_HEADER_SIZE\n|| asf->packet_segments < 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
],
[
17,
19
],
[
23
],
[
27
],
[
31
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
12,806 | static int h264_slice_header_init(H264Context *h, int reinit)
{
MpegEncContext *const s = &h->s;
int i, ret;
if( FFALIGN(s->avctx->width , 16 ) == s->width
&& FFALIGN(s->avctx->height, 16*(2 - h->sps.frame_mbs_only_flag)) == s->height
&& !h->sps.cro... | true | FFmpeg | c13e4e288c84ba0629ead15e1460c0e498ee2bce | static int h264_slice_header_init(H264Context *h, int reinit)
{
MpegEncContext *const s = &h->s;
int i, ret;
if( FFALIGN(s->avctx->width , 16 ) == s->width
&& FFALIGN(s->avctx->height, 16*(2 - h->sps.frame_mbs_only_flag)) == s->height
&& !h->sps.cro... | {
"code": [
" if ((ret = ff_MPV_common_init(s) < 0)) {"
],
"line_no": [
79
]
} | static int FUNC_0(H264Context *VAR_0, int VAR_1)
{
MpegEncContext *const s = &VAR_0->s;
int VAR_2, VAR_3;
if( FFALIGN(s->avctx->width , 16 ) == s->width
&& FFALIGN(s->avctx->height, 16*(2 - VAR_0->sps.frame_mbs_only_flag)) == s->height
&& !VAR_0->sp... | [
"static int FUNC_0(H264Context *VAR_0, int VAR_1)\n{",
"MpegEncContext *const s = &VAR_0->s;",
"int VAR_2, VAR_3;",
"if( FFALIGN(s->avctx->width , 16 ) == s->width\n&& FFALIGN(s->avctx->height, 16*(2 - VAR_0->sps.frame_mbs_only_flag)) == s->height\n&& !VAR_0->sps.crop_right ... | [
0,
0,
0,
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,
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
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49,
51
],
... |
12,807 | void qpci_io_writeb(QPCIDevice *dev, void *data, uint8_t value)
{
uintptr_t addr = (uintptr_t)data;
if (addr < QPCI_PIO_LIMIT) {
dev->bus->pio_writeb(dev->bus, addr, value);
} else {
dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));
}
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | void qpci_io_writeb(QPCIDevice *dev, void *data, uint8_t value)
{
uintptr_t addr = (uintptr_t)data;
if (addr < QPCI_PIO_LIMIT) {
dev->bus->pio_writeb(dev->bus, addr, value);
} else {
dev->bus->memwrite(dev->bus, addr, &value, sizeof(value));
}
}
| {
"code": [
" uintptr_t addr = (uintptr_t)data;",
" if (addr < QPCI_PIO_LIMIT) {",
" uintptr_t addr = (uintptr_t)data;",
" if (addr < QPCI_PIO_LIMIT) {",
" uintptr_t addr = (uintptr_t)data;",
" if (addr < QPCI_PIO_LIMIT) {",
" uintptr_t addr = (uintptr_t)data;",
" ... | void FUNC_0(QPCIDevice *VAR_0, void *VAR_1, uint8_t VAR_2)
{
uintptr_t addr = (uintptr_t)VAR_1;
if (addr < QPCI_PIO_LIMIT) {
VAR_0->bus->pio_writeb(VAR_0->bus, addr, VAR_2);
} else {
VAR_0->bus->memwrite(VAR_0->bus, addr, &VAR_2, sizeof(VAR_2));
}
}
| [
"void FUNC_0(QPCIDevice *VAR_0, void *VAR_1, uint8_t VAR_2)\n{",
"uintptr_t addr = (uintptr_t)VAR_1;",
"if (addr < QPCI_PIO_LIMIT) {",
"VAR_0->bus->pio_writeb(VAR_0->bus, addr, VAR_2);",
"} else {",
"VAR_0->bus->memwrite(VAR_0->bus, addr, &VAR_2, sizeof(VAR_2));",
"}",
"}"
] | [
1,
1,
1,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
12,808 | static inline void RENAME(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,
int flags, int canMMX2BeUsed, int16_t *hLumFilter,
int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
int32_t *mmx2... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,
int flags, int canMMX2BeUsed, int16_t *hLumFilter,
int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
int32_t *mmx2... | {
"code": [
"\t\t\t\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\\",
"\t\t\t\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\\",
"\t\tasm volatile(",
"\t\tasm volatile(",
"\tasm volatile(",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"... | static inline void FUNC_0(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,
int flags, int canMMX2BeUsed, int16_t *hLumFilter,
int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
int32_t *mmx2... | [
"static inline void FUNC_0(hyscale)(uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,\nint flags, int canMMX2BeUsed, int16_t *hLumFilter,\nint16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint32_t *mmx2FilterPos, uint8_t *pal... | [
1,
1,
1,
1,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
0,
1,
1,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
... |
12,811 | static void ich9_smb_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
k->vendor_id = PCI_VENDOR_ID_INTEL;
k->device_id = PCI_DEVICE_ID_INTEL_ICH9_6;
k->revision = ICH9_A2_SMB_REVISION;
k->class_id = PCI_CLAS... | true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void ich9_smb_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
k->vendor_id = PCI_VENDOR_ID_INTEL;
k->device_id = PCI_DEVICE_ID_INTEL_ICH9_6;
k->revision = ICH9_A2_SMB_REVISION;
k->class_id = PCI_CLAS... | {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);
k->vendor_id = PCI_VENDOR_ID_INTEL;
k->device_id = PCI_DEVICE_ID_INTEL_ICH9_6;
k->revision = ICH9_A2_SMB_REVISION;
k->class_id = PCI_CLASS_SERIAL_SMB... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);",
"k->vendor_id = PCI_VENDOR_ID_INTEL;",
"k->device_id = PCI_DEVICE_ID_INTEL_ICH9_6;",
"k->revision = ICH9_A2_SMB_REVISION;",
"k->class_id = PCI_CLASS_SERIAL_... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,812 | bool qemu_file_mode_is_not_valid(const char *mode)
{
if (mode == NULL ||
(mode[0] != 'r' && mode[0] != 'w') ||
mode[1] != 'b' || mode[2] != 0) {
fprintf(stderr, "qemu_fopen: Argument validity check failed\n");
return true;
}
return false;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | bool qemu_file_mode_is_not_valid(const char *mode)
{
if (mode == NULL ||
(mode[0] != 'r' && mode[0] != 'w') ||
mode[1] != 'b' || mode[2] != 0) {
fprintf(stderr, "qemu_fopen: Argument validity check failed\n");
return true;
}
return false;
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(const char *mode)
{
if (mode == NULL ||
(mode[0] != 'r' && mode[0] != 'w') ||
mode[1] != 'b' || mode[2] != 0) {
fprintf(stderr, "qemu_fopen: Argument validity check failed\n");
return true;
}
return false;
}
| [
"bool FUNC_0(const char *mode)\n{",
"if (mode == NULL ||\n(mode[0] != 'r' && mode[0] != 'w') ||\nmode[1] != 'b' || mode[2] != 0) {",
"fprintf(stderr, \"qemu_fopen: Argument validity check failed\\n\");",
"return true;",
"}",
"return false;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
12,813 | void qemu_mutex_unlock(QemuMutex *mutex)
{
assert(mutex->owner == GetCurrentThreadId());
mutex->owner = 0;
LeaveCriticalSection(&mutex->lock);
}
| true | qemu | 12f8def0e02232d7c6416ad9b66640f973c531d1 | void qemu_mutex_unlock(QemuMutex *mutex)
{
assert(mutex->owner == GetCurrentThreadId());
mutex->owner = 0;
LeaveCriticalSection(&mutex->lock);
}
| {
"code": [
" mutex->owner = 0;",
" assert(mutex->owner == GetCurrentThreadId());",
" mutex->owner = 0;",
" LeaveCriticalSection(&mutex->lock);"
],
"line_no": [
7,
5,
7,
9
]
} | void FUNC_0(QemuMutex *VAR_0)
{
assert(VAR_0->owner == GetCurrentThreadId());
VAR_0->owner = 0;
LeaveCriticalSection(&VAR_0->lock);
}
| [
"void FUNC_0(QemuMutex *VAR_0)\n{",
"assert(VAR_0->owner == GetCurrentThreadId());",
"VAR_0->owner = 0;",
"LeaveCriticalSection(&VAR_0->lock);",
"}"
] | [
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
12,815 | void register_watchdogs(void)
{
wdt_ib700_init();
wdt_i6300esb_init();
}
| true | qemu | 09aaa1602f9381c0e0fb539390b1793e51bdfc7b | void register_watchdogs(void)
{
wdt_ib700_init();
wdt_i6300esb_init();
}
| {
"code": [
"void register_watchdogs(void)",
" wdt_ib700_init();",
" wdt_i6300esb_init();"
],
"line_no": [
1,
5,
7
]
} | void FUNC_0(void)
{
wdt_ib700_init();
wdt_i6300esb_init();
}
| [
"void FUNC_0(void)\n{",
"wdt_ib700_init();",
"wdt_i6300esb_init();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
12,816 | static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
{
RTMPContext *rt = s->priv_data;
int size_temp = size;
int pktsize, pkttype;
uint32_t ts;
const uint8_t *buf_temp = buf;
uint8_t c;
int ret;
do {
if (rt->skip_bytes) {
int skip = FFMIN(rt->skip_bytes,... | true | FFmpeg | 7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a | static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
{
RTMPContext *rt = s->priv_data;
int size_temp = size;
int pktsize, pkttype;
uint32_t ts;
const uint8_t *buf_temp = buf;
uint8_t c;
int ret;
do {
if (rt->skip_bytes) {
int skip = FFMIN(rt->skip_bytes,... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
RTMPContext *rt = VAR_0->priv_data;
int VAR_3 = VAR_2;
int VAR_4, VAR_5;
uint32_t ts;
const uint8_t *VAR_6 = VAR_1;
uint8_t c;
int VAR_7;
do {
if (rt->skip_bytes) {
int skip = FFMIN(rt->skip_bytes... | [
"static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"RTMPContext *rt = VAR_0->priv_data;",
"int VAR_3 = VAR_2;",
"int VAR_4, VAR_5;",
"uint32_t ts;",
"const uint8_t *VAR_6 = VAR_1;",
"uint8_t c;",
"int VAR_7;",
"do {",
"if (rt->skip_bytes) {",
"int skip = FFMIN(rt->skip_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,
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
],... |
12,818 | void ff_thread_flush(AVCodecContext *avctx)
{
FrameThreadContext *fctx = avctx->thread_opaque;
if (!avctx->thread_opaque) return;
park_frame_worker_threads(fctx, avctx->thread_count);
if (fctx->prev_thread)
update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0)... | true | FFmpeg | d1cf45911935cc4fed9afd3a37d99616d31eb9da | void ff_thread_flush(AVCodecContext *avctx)
{
FrameThreadContext *fctx = avctx->thread_opaque;
if (!avctx->thread_opaque) return;
park_frame_worker_threads(fctx, avctx->thread_count);
if (fctx->prev_thread)
update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0)... | {
"code": [
" if (fctx->prev_thread)",
" update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);"
],
"line_no": [
17,
19
]
} | void FUNC_0(AVCodecContext *VAR_0)
{
FrameThreadContext *fctx = VAR_0->thread_opaque;
if (!VAR_0->thread_opaque) return;
park_frame_worker_threads(fctx, VAR_0->thread_count);
if (fctx->prev_thread)
update_context_from_thread(fctx->threads->VAR_0, fctx->prev_thread->VAR_0, 0);
... | [
"void FUNC_0(AVCodecContext *VAR_0)\n{",
"FrameThreadContext *fctx = VAR_0->thread_opaque;",
"if (!VAR_0->thread_opaque) return;",
"park_frame_worker_threads(fctx, VAR_0->thread_count);",
"if (fctx->prev_thread)\nupdate_context_from_thread(fctx->threads->VAR_0, fctx->prev_thread->VAR_0, 0);",
"fctx->next_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,819 | static int check_strtox_error(const char **next, char *endptr,
int err)
{
if (!next && *endptr) {
return -EINVAL;
}
if (next) {
*next = endptr;
}
return -err;
}
| true | qemu | 47d4be12c3997343e436c6cca89aefbbbeb70863 | static int check_strtox_error(const char **next, char *endptr,
int err)
{
if (!next && *endptr) {
return -EINVAL;
}
if (next) {
*next = endptr;
}
return -err;
}
| {
"code": [
"static int check_strtox_error(const char **next, char *endptr,"
],
"line_no": [
1
]
} | static int FUNC_0(const char **VAR_0, char *VAR_1,
int VAR_2)
{
if (!VAR_0 && *VAR_1) {
return -EINVAL;
}
if (VAR_0) {
*VAR_0 = VAR_1;
}
return -VAR_2;
}
| [
"static int FUNC_0(const char **VAR_0, char *VAR_1,\nint VAR_2)\n{",
"if (!VAR_0 && *VAR_1) {",
"return -EINVAL;",
"}",
"if (VAR_0) {",
"*VAR_0 = VAR_1;",
"}",
"return -VAR_2;",
"}"
] | [
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
12,820 | static void pc_init1(MachineState *machine,
const char *host_type, const char *pci_type)
{
PCMachineState *pcms = PC_MACHINE(machine);
PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io(... | true | qemu | 3e6c0c4c2cc4d5ee77f6f2746c4608f077e10f62 | static void pc_init1(MachineState *machine,
const char *host_type, const char *pci_type)
{
PCMachineState *pcms = PC_MACHINE(machine);
PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io(... | {
"code": [
" qemu_irq *gsi;",
" gsi = qemu_allocate_irqs(kvm_pc_gsi_handler, gsi_state,",
" GSI_NUM_PINS);",
" gsi = qemu_allocate_irqs(gsi_handler, gsi_state, GSI_NUM_PINS);",
" &i440fx_state, &piix3_devfn, &isa_bus, g... | static void FUNC_0(MachineState *VAR_0,
const char *VAR_1, const char *VAR_2)
{
PCMachineState *pcms = PC_MACHINE(VAR_0);
PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);
MemoryRegion *system_memory = get_system_memory();
MemoryRegion *system_io = get_system_io();
int V... | [
"static void FUNC_0(MachineState *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{",
"PCMachineState *pcms = PC_MACHINE(VAR_0);",
"PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms);",
"MemoryRegion *system_memory = get_system_memory();",
"MemoryRegion *system_io = get_system_io();",
"int VAR_3;",
"PCIBu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
12,821 | static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
struct bdrv_iterate_context context = { mon, 0 };
bdrv_iterate(encrypted_bdrv_it, &context);
/* only resume the vm if all keys are set and valid */
if (!context.err) {
vm_start();
return 0;
} els... | true | qemu | 8e84865e54cb66fd7b57bb18c312ad3d56b6e276 | static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
struct bdrv_iterate_context context = { mon, 0 };
bdrv_iterate(encrypted_bdrv_it, &context);
if (!context.err) {
vm_start();
return 0;
} else {
| {
"code": [],
"line_no": []
} | static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{
struct bdrv_iterate_context VAR_3 = { VAR_0, 0 };
bdrv_iterate(encrypted_bdrv_it, &VAR_3);
if (!VAR_3.err) {
vm_start();
return 0;
} else {
| [
"static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{",
"struct bdrv_iterate_context VAR_3 = { VAR_0, 0 };",
"bdrv_iterate(encrypted_bdrv_it, &VAR_3);",
"if (!VAR_3.err) {",
"vm_start();",
"return 0;",
"} else {"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
12,822 | static void colo_old_packet_check(void *opaque)
{
CompareState *s = opaque;
g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL);
}
| true | qemu | d25a7dabf242163ce95b60f6f75cf017b1715d55 | static void colo_old_packet_check(void *opaque)
{
CompareState *s = opaque;
g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL);
}
| {
"code": [
" g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL);"
],
"line_no": [
9
]
} | static void FUNC_0(void *VAR_0)
{
CompareState *s = VAR_0;
g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"CompareState *s = VAR_0;",
"g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
12,824 | int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,
uint8_t offset, uint8_t size)
{
int ret;
Error *local_err = NULL;
ret = pci_add_capability2(pdev, cap_id, offset, size, &local_err);
if (local_err) {
assert(ret < 0);
error_report_err(local_err);
... | true | qemu | 673b0d7ccc34e9617d99ed4c29caa964f19a4c5a | int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,
uint8_t offset, uint8_t size)
{
int ret;
Error *local_err = NULL;
ret = pci_add_capability2(pdev, cap_id, offset, size, &local_err);
if (local_err) {
assert(ret < 0);
error_report_err(local_err);
... | {
"code": [
" if (local_err) {",
" assert(ret < 0);",
" } else {",
" assert(ret > 0);"
],
"line_no": [
15,
17,
21,
25
]
} | int FUNC_0(PCIDevice *VAR_0, uint8_t VAR_1,
uint8_t VAR_2, uint8_t VAR_3)
{
int VAR_4;
Error *local_err = NULL;
VAR_4 = pci_add_capability2(VAR_0, VAR_1, VAR_2, VAR_3, &local_err);
if (local_err) {
assert(VAR_4 < 0);
error_report_err(local_err);
} el... | [
"int FUNC_0(PCIDevice *VAR_0, uint8_t VAR_1,\nuint8_t VAR_2, uint8_t VAR_3)\n{",
"int VAR_4;",
"Error *local_err = NULL;",
"VAR_4 = pci_add_capability2(VAR_0, VAR_1, VAR_2, VAR_3, &local_err);",
"if (local_err) {",
"assert(VAR_4 < 0);",
"error_report_err(local_err);",
"} else {",
"assert(VAR_4 > 0);... | [
0,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
12,825 | static void write_bootloader(uint8_t *base, int64_t run_addr,
int64_t kernel_entry)
{
uint32_t *p;
/* Small bootloader */
p = (uint32_t *)base;
stl_p(p++, 0x08000000 | /* j 0x1fc00580 */
((run_addr + 0x580) & 0... | true | qemu | 7f81dbb9a0e89b5306c1337e0cd0e1cea8a03f6d | static void write_bootloader(uint8_t *base, int64_t run_addr,
int64_t kernel_entry)
{
uint32_t *p;
p = (uint32_t *)base;
stl_p(p++, 0x08000000 |
((run_addr + 0x580) & 0x0fffffff) >> 2);
stl_p(p++, 0x0000... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int64_t VAR_1,
int64_t VAR_2)
{
uint32_t *p;
p = (uint32_t *)VAR_0;
stl_p(p++, 0x08000000 |
((VAR_1 + 0x580) & 0x0fffffff) >> 2);
stl_p(p++, 0x00000000); ... | [
"static void FUNC_0(uint8_t *VAR_0, int64_t VAR_1,\nint64_t VAR_2)\n{",
"uint32_t *p;",
"p = (uint32_t *)VAR_0;",
"stl_p(p++, 0x08000000 |\n((VAR_1 + 0x580) & 0x0fffffff) >> 2);",
"stl_p(p++, 0x00000000);",
"stl_p(VAR_0 + 0x500, VAR_1 + 0x0580);",
"stl_p(VAR_0 + 0x504, VAR_1 + 0x083c);",
"stl_p(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,
0... | [
[
1,
3,
5
],
[
7
],
[
13
],
[
17,
19
],
[
21
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
59... |
12,826 | static int tcp_set_msgfds(CharDriverState *chr, int *fds, int num)
{
TCPCharDriver *s = chr->opaque;
/* clear old pending fd array */
g_free(s->write_msgfds);
if (num) {
s->write_msgfds = g_malloc(num * sizeof(int));
memcpy(s->write_msgfds, fds, num * sizeof(int));
}
... | true | qemu | 2d528d45ecf5ee3c1a566a9f3d664464925ef830 | static int tcp_set_msgfds(CharDriverState *chr, int *fds, int num)
{
TCPCharDriver *s = chr->opaque;
g_free(s->write_msgfds);
if (num) {
s->write_msgfds = g_malloc(num * sizeof(int));
memcpy(s->write_msgfds, fds, num * sizeof(int));
}
s->write_msgfds_num = num;
... | {
"code": [
" s->write_msgfds = g_malloc(num * sizeof(int));"
],
"line_no": [
17
]
} | static int FUNC_0(CharDriverState *VAR_0, int *VAR_1, int VAR_2)
{
TCPCharDriver *s = VAR_0->opaque;
g_free(s->write_msgfds);
if (VAR_2) {
s->write_msgfds = g_malloc(VAR_2 * sizeof(int));
memcpy(s->write_msgfds, VAR_1, VAR_2 * sizeof(int));
}
s->write_msgfds_num =... | [
"static int FUNC_0(CharDriverState *VAR_0, int *VAR_1, int VAR_2)\n{",
"TCPCharDriver *s = VAR_0->opaque;",
"g_free(s->write_msgfds);",
"if (VAR_2) {",
"s->write_msgfds = g_malloc(VAR_2 * sizeof(int));",
"memcpy(s->write_msgfds, VAR_1, VAR_2 * sizeof(int));",
"}",
"s->write_msgfds_num = VAR_2;",
"re... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
]
] |
12,827 | void ff_j2k_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
{
int reslevelno, bandno, precno;
for (reslevelno = 0; reslevelno < codsty->nreslevels; reslevelno++) {
Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
for (bandno = 0; bandno < reslevel->nbands; bandno++)... | true | FFmpeg | 8bedbb82cee4463a43e60eb22674c8bf927280ef | void ff_j2k_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
{
int reslevelno, bandno, precno;
for (reslevelno = 0; reslevelno < codsty->nreslevels; reslevelno++) {
Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
for (bandno = 0; bandno < reslevel->nbands; bandno++)... | {
"code": [
" av_freep(&comp->data);",
" av_freep(&comp->data);"
],
"line_no": [
45,
45
]
} | void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
for (VAR_2 = 0; VAR_2 < VAR_1->nreslevels; VAR_2++) {
Jpeg2000ResLevel *reslevel = VAR_0->reslevel + VAR_2;
for (VAR_3 = 0; VAR_3 < reslevel->nbands; VAR_3++) {
Jpeg2000Band *band = r... | [
"void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"for (VAR_2 = 0; VAR_2 < VAR_1->nreslevels; VAR_2++) {",
"Jpeg2000ResLevel *reslevel = VAR_0->reslevel + VAR_2;",
"for (VAR_3 = 0; VAR_3 < reslevel->nbands; VAR_3++) {",
"Jpeg2000Band *band = reslevel->band... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
12,831 | static int get_physical_address(CPUState *env, target_phys_addr_t *physical,
int *prot, int *access_index,
target_ulong address, int rw, int mmu_idx)
{
int is_user = mmu_idx == MMU_USER_IDX;
if (rw == 2)
return get_physical_address_... | false | qemu | d4c430a80f000d722bb70287af4d4c184a8d7006 | static int get_physical_address(CPUState *env, target_phys_addr_t *physical,
int *prot, int *access_index,
target_ulong address, int rw, int mmu_idx)
{
int is_user = mmu_idx == MMU_USER_IDX;
if (rw == 2)
return get_physical_address_... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1,
int *VAR_2, int *VAR_3,
target_ulong VAR_4, int VAR_5, int VAR_6)
{
int VAR_7 = VAR_6 == MMU_USER_IDX;
if (VAR_5 == 2)
return get_physical_address_code(VAR_0, VAR_1, VAR_... | [
"static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1,\nint *VAR_2, int *VAR_3,\ntarget_ulong VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7 = VAR_6 == MMU_USER_IDX;",
"if (VAR_5 == 2)\nreturn get_physical_address_code(VAR_0, VAR_1, VAR_2, VAR_4,\nVAR_7);",
"else\nreturn get_physical_address_data(VAR_0,... | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15,
17
],
[
19,
21,
23
],
[
25
]
] |
12,832 | void op_flush_icache_all(void) {
CALL_FROM_TB1(tb_flush, env);
RETURN();
}
| false | qemu | df1561e22df42643d769aacdcc7d6d239f243366 | void op_flush_icache_all(void) {
CALL_FROM_TB1(tb_flush, env);
RETURN();
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void) {
CALL_FROM_TB1(tb_flush, env);
RETURN();
}
| [
"void FUNC_0(void) {",
"CALL_FROM_TB1(tb_flush, env);",
"RETURN();",
"}"
] | [
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
]
] |
12,833 | static void test_visitor_in_struct_nested(TestInputVisitorData *data,
const void *unused)
{
UserDefTwo *udp = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'string0': 'string0', "
"'dict1': { 'string1': 'string1', "
... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_in_struct_nested(TestInputVisitorData *data,
const void *unused)
{
UserDefTwo *udp = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'string0': 'string0', "
"'dict1': { 'string1': 'string1', "
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
UserDefTwo *udp = NULL;
Visitor *v;
v = visitor_input_test_init(VAR_0, "{ 'string0': 'string0', "
"'dict1': { 'string1': 'string1', "
... | [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"UserDefTwo *udp = NULL;",
"Visitor *v;",
"v = visitor_input_test_init(VAR_0, \"{ 'string0': 'string0', \"",
"\"'dict1': { 'string1': 'string1', \"",
"\"'dict2': { 'userdef': { 'integer': 42, \"",
"\"'string': 'string' }, 'string'... | [
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
12,834 | static void qxl_log_cmd_draw_compat(PCIQXLDevice *qxl, QXLCompatDrawable *draw,
int group_id)
{
fprintf(stderr, ": type %s effect %s",
qxl_name(qxl_draw_type, draw->type),
qxl_name(qxl_draw_effect, draw->effect));
if (draw->bitmap_offset) {
... | false | qemu | fae2afb10e3fdceab612c62a2b1e8b944ff578d9 | static void qxl_log_cmd_draw_compat(PCIQXLDevice *qxl, QXLCompatDrawable *draw,
int group_id)
{
fprintf(stderr, ": type %s effect %s",
qxl_name(qxl_draw_type, draw->type),
qxl_name(qxl_draw_effect, draw->effect));
if (draw->bitmap_offset) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIQXLDevice *VAR_0, QXLCompatDrawable *VAR_1,
int VAR_2)
{
fprintf(stderr, ": type %s effect %s",
qxl_name(qxl_draw_type, VAR_1->type),
qxl_name(qxl_draw_effect, VAR_1->effect));
if (VAR_1->bitmap_offset) {
fprintf(st... | [
"static void FUNC_0(PCIQXLDevice *VAR_0, QXLCompatDrawable *VAR_1,\nint VAR_2)\n{",
"fprintf(stderr, \": type %s effect %s\",\nqxl_name(qxl_draw_type, VAR_1->type),\nqxl_name(qxl_draw_effect, VAR_1->effect));",
"if (VAR_1->bitmap_offset) {",
"fprintf(stderr, \": bitmap %d\",\nVAR_1->bitmap_offset);",
"qxl_l... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9,
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
]
] |
12,835 | int apic_init(CPUState *env)
{
APICState *s;
if (last_apic_idx >= MAX_APICS)
return -1;
s = qemu_mallocz(sizeof(APICState));
env->apic_state = s;
s->idx = last_apic_idx++;
s->id = env->cpuid_apic_id;
s->cpu_env = env;
apic_reset(s);
msix_supported = 1;
/... | false | qemu | c169998802505c244b8bcad562633f29de7d74a4 | int apic_init(CPUState *env)
{
APICState *s;
if (last_apic_idx >= MAX_APICS)
return -1;
s = qemu_mallocz(sizeof(APICState));
env->apic_state = s;
s->idx = last_apic_idx++;
s->id = env->cpuid_apic_id;
s->cpu_env = env;
apic_reset(s);
msix_supported = 1;
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0)
{
APICState *s;
if (last_apic_idx >= MAX_APICS)
return -1;
s = qemu_mallocz(sizeof(APICState));
VAR_0->apic_state = s;
s->idx = last_apic_idx++;
s->id = VAR_0->cpuid_apic_id;
s->cpu_env = VAR_0;
apic_reset(s);
msix_supported = 1;
... | [
"int FUNC_0(CPUState *VAR_0)\n{",
"APICState *s;",
"if (last_apic_idx >= MAX_APICS)\nreturn -1;",
"s = qemu_mallocz(sizeof(APICState));",
"VAR_0->apic_state = s;",
"s->idx = last_apic_idx++;",
"s->id = VAR_0->cpuid_apic_id;",
"s->cpu_env = VAR_0;",
"apic_reset(s);",
"msix_supported = 1;",
"if (a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33
],
[
39,
41
],
[
45,
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
61
],
... |
12,836 | static Visitor *visitor_input_test_init_internal(TestInputVisitorData *data,
const char *json_string,
va_list *ap)
{
visitor_input_teardown(data, NULL);
data->obj = qobject_from_jsonv(json_string, ap);
... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static Visitor *visitor_input_test_init_internal(TestInputVisitorData *data,
const char *json_string,
va_list *ap)
{
visitor_input_teardown(data, NULL);
data->obj = qobject_from_jsonv(json_string, ap);
... | {
"code": [],
"line_no": []
} | static Visitor *FUNC_0(TestInputVisitorData *data,
const char *json_string,
va_list *ap)
{
visitor_input_teardown(data, NULL);
data->obj = qobject_from_jsonv(json_string, ap);
g_assert(data->obj);
... | [
"static Visitor *FUNC_0(TestInputVisitorData *data,\nconst char *json_string,\nva_list *ap)\n{",
"visitor_input_teardown(data, NULL);",
"data->obj = qobject_from_jsonv(json_string, ap);",
"g_assert(data->obj);",
"data->qiv = qmp_input_visitor_new(data->obj, false);",
"g_assert(data->qiv);",
"return data... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
12,837 | target_ulong helper_rdhwr_cc(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 2))) {
#ifdef CONFIG_USER_ONLY
return env->CP0_Count;
#else
return (int32_t)cpu_mips_get_count(env);
#endif
} else {
do_raise_exception(env, EXCP_RI, GETPC()... | false | qemu | b00c72180c36510bf9b124e190bd520e3b7e1358 | target_ulong helper_rdhwr_cc(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 2))) {
#ifdef CONFIG_USER_ONLY
return env->CP0_Count;
#else
return (int32_t)cpu_mips_get_count(env);
#endif
} else {
do_raise_exception(env, EXCP_RI, GETPC()... | {
"code": [],
"line_no": []
} | target_ulong FUNC_0(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 2))) {
#ifdef CONFIG_USER_ONLY
return env->CP0_Count;
#else
return (int32_t)cpu_mips_get_count(env);
#endif
} else {
do_raise_exception(env, EXCP_RI, GETPC());
}... | [
"target_ulong FUNC_0(CPUMIPSState *env)\n{",
"if ((env->hflags & MIPS_HFLAG_CP0) ||\n(env->CP0_HWREna & (1 << 2))) {",
"#ifdef CONFIG_USER_ONLY\nreturn env->CP0_Count;",
"#else\nreturn (int32_t)cpu_mips_get_count(env);",
"#endif\n} else {",
"do_raise_exception(env, EXCP_RI, GETPC());",
"}",
"return 0;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
12,838 | static void prstatfs_to_statfs(struct statfs *stfs, ProxyStatFS *prstfs)
{
memset(stfs, 0, sizeof(*stfs));
stfs->f_type = prstfs->f_type;
stfs->f_bsize = prstfs->f_bsize;
stfs->f_blocks = prstfs->f_blocks;
stfs->f_bfree = prstfs->f_bfree;
stfs->f_bavail = prstfs->f_bavail;
stfs->f_fi... | false | qemu | 494a8ebe713055d3946183f4b395f85a18b43e9e | static void prstatfs_to_statfs(struct statfs *stfs, ProxyStatFS *prstfs)
{
memset(stfs, 0, sizeof(*stfs));
stfs->f_type = prstfs->f_type;
stfs->f_bsize = prstfs->f_bsize;
stfs->f_blocks = prstfs->f_blocks;
stfs->f_bfree = prstfs->f_bfree;
stfs->f_bavail = prstfs->f_bavail;
stfs->f_fi... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct statfs *VAR_0, ProxyStatFS *VAR_1)
{
memset(VAR_0, 0, sizeof(*VAR_0));
VAR_0->f_type = VAR_1->f_type;
VAR_0->f_bsize = VAR_1->f_bsize;
VAR_0->f_blocks = VAR_1->f_blocks;
VAR_0->f_bfree = VAR_1->f_bfree;
VAR_0->f_bavail = VAR_1->f_bavail;
VAR_0->f_files = VAR... | [
"static void FUNC_0(struct statfs *VAR_0, ProxyStatFS *VAR_1)\n{",
"memset(VAR_0, 0, sizeof(*VAR_0));",
"VAR_0->f_type = VAR_1->f_type;",
"VAR_0->f_bsize = VAR_1->f_bsize;",
"VAR_0->f_blocks = VAR_1->f_blocks;",
"VAR_0->f_bfree = VAR_1->f_bfree;",
"VAR_0->f_bavail = VAR_1->f_bavail;",
"VAR_0->f_files ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,839 | static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, const int buf_size)
{
ProresContext *ctx = avctx->priv_data;
int i, hdr_size, slice_count;
unsigned pic_data_size;
int log2_slice_mb_width, log2_slice_mb_height;
int slice_mb_count, mb_x, mb_y;
const uint8_t *data... | false | FFmpeg | 397d194e50e15bf20dc5950e2afe9f868c4ff2c9 | static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, const int buf_size)
{
ProresContext *ctx = avctx->priv_data;
int i, hdr_size, slice_count;
unsigned pic_data_size;
int log2_slice_mb_width, log2_slice_mb_height;
int slice_mb_count, mb_x, mb_y;
const uint8_t *data... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, const int VAR_2)
{
ProresContext *ctx = VAR_0->priv_data;
int VAR_3, VAR_4, VAR_5;
unsigned VAR_6;
int VAR_7, VAR_8;
int VAR_9, VAR_10, VAR_11;
const uint8_t *VAR_12, *index_ptr;
VAR_4 = VAR_1[0] >> 3;
if (VAR_4 < ... | [
"static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, const int VAR_2)\n{",
"ProresContext *ctx = VAR_0->priv_data;",
"int VAR_3, VAR_4, VAR_5;",
"unsigned VAR_6;",
"int VAR_7, VAR_8;",
"int VAR_9, VAR_10, VAR_11;",
"const uint8_t *VAR_12, *index_ptr;",
"VAR_4 = VAR_1[0] >> 3;",
"if (VAR_4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
12,840 | static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
uint8_t *buf, void *hba_private)
{
SCSIRequest *req;
req = scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private);
return req;
}
| false | qemu | 9be385980d37e8f4fd33f605f5fb1c3d144170a8 | static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
uint8_t *buf, void *hba_private)
{
SCSIRequest *req;
req = scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private);
return req;
}
| {
"code": [],
"line_no": []
} | static SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag, uint32_t lun,
uint8_t *buf, void *hba_private)
{
SCSIRequest *req;
req = scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private);
return req;
}
| [
"static SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag, uint32_t lun,\nuint8_t *buf, void *hba_private)\n{",
"SCSIRequest *req;",
"req = scsi_req_alloc(&scsi_generic_req_ops, d, tag, lun, hba_private);",
"return req;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
12,841 | static int kvm_get_xcrs(CPUState *env)
{
#ifdef KVM_CAP_XCRS
int i, ret;
struct kvm_xcrs xcrs;
if (!kvm_has_xcrs())
return 0;
ret = kvm_vcpu_ioctl(env, KVM_GET_XCRS, &xcrs);
if (ret < 0)
return ret;
for (i = 0; i < xcrs.nr_xcrs; i++)
/* Only support xcr0 ... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | static int kvm_get_xcrs(CPUState *env)
{
#ifdef KVM_CAP_XCRS
int i, ret;
struct kvm_xcrs xcrs;
if (!kvm_has_xcrs())
return 0;
ret = kvm_vcpu_ioctl(env, KVM_GET_XCRS, &xcrs);
if (ret < 0)
return ret;
for (i = 0; i < xcrs.nr_xcrs; i++)
if (xcrs.xc... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
#ifdef KVM_CAP_XCRS
int i, ret;
struct kvm_xcrs xcrs;
if (!kvm_has_xcrs())
return 0;
ret = kvm_vcpu_ioctl(VAR_0, KVM_GET_XCRS, &xcrs);
if (ret < 0)
return ret;
for (i = 0; i < xcrs.nr_xcrs; i++)
if (xcrs.xcrs... | [
"static int FUNC_0(CPUState *VAR_0)\n{",
"#ifdef KVM_CAP_XCRS\nint i, ret;",
"struct kvm_xcrs xcrs;",
"if (!kvm_has_xcrs())\nreturn 0;",
"ret = kvm_vcpu_ioctl(VAR_0, KVM_GET_XCRS, &xcrs);",
"if (ret < 0)\nreturn ret;",
"for (i = 0; i < xcrs.nr_xcrs; i++)",
"if (xcrs.xcrs[0].xcr == 0) {",
"VAR_0->xcr... | [
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
]
] |
12,842 | static int is_dup_page(uint8_t *page)
{
VECTYPE *p = (VECTYPE *)page;
VECTYPE val = SPLAT(page);
int i;
for (i = 0; i < TARGET_PAGE_SIZE / sizeof(VECTYPE); i++) {
if (!ALL_EQ(val, p[i])) {
return 0;
}
}
return 1;
}
| false | qemu | 3edcd7e6ebae3ef0ac178eed5f4225803159562d | static int is_dup_page(uint8_t *page)
{
VECTYPE *p = (VECTYPE *)page;
VECTYPE val = SPLAT(page);
int i;
for (i = 0; i < TARGET_PAGE_SIZE / sizeof(VECTYPE); i++) {
if (!ALL_EQ(val, p[i])) {
return 0;
}
}
return 1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(uint8_t *VAR_0)
{
VECTYPE *p = (VECTYPE *)VAR_0;
VECTYPE val = SPLAT(VAR_0);
int VAR_1;
for (VAR_1 = 0; VAR_1 < TARGET_PAGE_SIZE / sizeof(VECTYPE); VAR_1++) {
if (!ALL_EQ(val, p[VAR_1])) {
return 0;
}
}
return 1;
}
| [
"static int FUNC_0(uint8_t *VAR_0)\n{",
"VECTYPE *p = (VECTYPE *)VAR_0;",
"VECTYPE val = SPLAT(VAR_0);",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < TARGET_PAGE_SIZE / sizeof(VECTYPE); VAR_1++) {",
"if (!ALL_EQ(val, p[VAR_1])) {",
"return 0;",
"}",
"}",
"return 1;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
12,843 | static void spapr_phb_realize(DeviceState *dev, Error **errp)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
SysBusDevice *s = SYS_BUS_DEVICE(dev);
sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s);
char *namebuf;
int i;
PCIBus *b... | false | qemu | 30b3bc5aa9f4df68909b63c873a40469caf013dc | static void spapr_phb_realize(DeviceState *dev, Error **errp)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
SysBusDevice *s = SYS_BUS_DEVICE(dev);
sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s);
char *namebuf;
int i;
PCIBus *b... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
SysBusDevice *s = SYS_BUS_DEVICE(VAR_0);
sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s);
char *VAR_2;
int VAR_3;
PCIBus *bus;
... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());",
"SysBusDevice *s = SYS_BUS_DEVICE(VAR_0);",
"sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s);",
"PCIHostState *phb = PCI_HOST_BRIDGE(s);",
"char *VAR_2;",
"int VAR_3;",
"PCIBus *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
37,
39,
41,
43,
45
],
[
47,
49
],
[
51
... |
12,844 | static inline int is_sector_in_chunk(BDRVDMGState* s,
uint32_t chunk_num,int sector_num)
{
if(chunk_num>=s->n_chunks || s->sectors[chunk_num]>sector_num ||
s->sectors[chunk_num]+s->sectorcounts[chunk_num]<=sector_num)
return 0;
else
return -1;
}
| false | qemu | 2c1885adcf0312da80c7317b09f9adad97fa0fc6 | static inline int is_sector_in_chunk(BDRVDMGState* s,
uint32_t chunk_num,int sector_num)
{
if(chunk_num>=s->n_chunks || s->sectors[chunk_num]>sector_num ||
s->sectors[chunk_num]+s->sectorcounts[chunk_num]<=sector_num)
return 0;
else
return -1;
}
| {
"code": [],
"line_no": []
} | static inline int FUNC_0(BDRVDMGState* VAR_0,
uint32_t VAR_1,int VAR_2)
{
if(VAR_1>=VAR_0->n_chunks || VAR_0->sectors[VAR_1]>VAR_2 ||
VAR_0->sectors[VAR_1]+VAR_0->sectorcounts[VAR_1]<=VAR_2)
return 0;
else
return -1;
}
| [
"static inline int FUNC_0(BDRVDMGState* VAR_0,\nuint32_t VAR_1,int VAR_2)\n{",
"if(VAR_1>=VAR_0->n_chunks || VAR_0->sectors[VAR_1]>VAR_2 ||\nVAR_0->sectors[VAR_1]+VAR_0->sectorcounts[VAR_1]<=VAR_2)\nreturn 0;",
"else\nreturn -1;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9,
11
],
[
13,
15
],
[
17
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.