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 |
|---|---|---|---|---|---|---|---|---|---|---|
17,978 | static void channel_event(int event, SpiceChannelEventInfo *info)
{
SpiceServerInfo *server = g_malloc0(sizeof(*server));
SpiceChannel *client = g_malloc0(sizeof(*client));
server->base = g_malloc0(sizeof(*server->base));
client->base = g_malloc0(sizeof(*client->base));
/*
* Spice serv... | false | qemu | ddf21908961073199f3d186204da4810f2ea150b | static void channel_event(int event, SpiceChannelEventInfo *info)
{
SpiceServerInfo *server = g_malloc0(sizeof(*server));
SpiceChannel *client = g_malloc0(sizeof(*client));
server->base = g_malloc0(sizeof(*server->base));
client->base = g_malloc0(sizeof(*client->base));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, SpiceChannelEventInfo *VAR_1)
{
SpiceServerInfo *server = g_malloc0(sizeof(*server));
SpiceChannel *client = g_malloc0(sizeof(*client));
server->base = g_malloc0(sizeof(*server->base));
client->base = g_malloc0(sizeof(*client->base));
bool ... | [
"static void FUNC_0(int VAR_0, SpiceChannelEventInfo *VAR_1)\n{",
"SpiceServerInfo *server = g_malloc0(sizeof(*server));",
"SpiceChannel *client = g_malloc0(sizeof(*client));",
"server->base = g_malloc0(sizeof(*server->base));",
"client->base = g_malloc0(sizeof(*client->base));",
"bool need_lock = !qemu_t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
],
[
55,
57
],
[
59
],
[
63
],
[
65,
67
],
[
69
... |
17,979 | static void qemu_chr_parse_spice_vmc(QemuOpts *opts, ChardevBackend *backend,
Error **errp)
{
const char *name = qemu_opt_get(opts, "name");
if (name == NULL) {
error_setg(errp, "chardev: spice channel: no name given");
return;
}
backend->u.... | false | qemu | 21a933ea33c820515f331c162c9f7053ca6f4129 | static void qemu_chr_parse_spice_vmc(QemuOpts *opts, ChardevBackend *backend,
Error **errp)
{
const char *name = qemu_opt_get(opts, "name");
if (name == NULL) {
error_setg(errp, "chardev: spice channel: no name given");
return;
}
backend->u.... | {
"code": [],
"line_no": []
} | static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,
Error **VAR_2)
{
const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3");
if (VAR_3 == NULL) {
error_setg(VAR_2, "chardev: spice channel: no VAR_3 given");
return;
}
VAR_1->u.spicevmc = g_n... | [
"static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{",
"const char *VAR_3 = qemu_opt_get(VAR_0, \"VAR_3\");",
"if (VAR_3 == NULL) {",
"error_setg(VAR_2, \"chardev: spice channel: no VAR_3 given\");",
"return;",
"}",
"VAR_1->u.spicevmc = g_new0(ChardevSpiceChannel, 1);",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
17,980 | void msix_unuse_all_vectors(PCIDevice *dev)
{
if (!(dev->cap_present & QEMU_PCI_CAP_MSIX))
return;
msix_free_irq_entries(dev);
}
| false | qemu | 44701ab71ad854e6be567a6294f4665f36651076 | void msix_unuse_all_vectors(PCIDevice *dev)
{
if (!(dev->cap_present & QEMU_PCI_CAP_MSIX))
return;
msix_free_irq_entries(dev);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0)
{
if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSIX))
return;
msix_free_irq_entries(VAR_0);
}
| [
"void FUNC_0(PCIDevice *VAR_0)\n{",
"if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSIX))\nreturn;",
"msix_free_irq_entries(VAR_0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
]
] |
17,982 | static void pc_system_flash_init(MemoryRegion *rom_memory)
{
int unit;
DriveInfo *pflash_drv;
BlockDriverState *bdrv;
int64_t size;
char *fatal_errmsg = NULL;
hwaddr phys_addr = 0x100000000ULL;
int sector_bits, sector_size;
pflash_t *system_flash;
MemoryRegion *flash_mem;
... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void pc_system_flash_init(MemoryRegion *rom_memory)
{
int unit;
DriveInfo *pflash_drv;
BlockDriverState *bdrv;
int64_t size;
char *fatal_errmsg = NULL;
hwaddr phys_addr = 0x100000000ULL;
int sector_bits, sector_size;
pflash_t *system_flash;
MemoryRegion *flash_mem;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegion *VAR_0)
{
int VAR_1;
DriveInfo *pflash_drv;
BlockDriverState *bdrv;
int64_t size;
char *VAR_2 = NULL;
hwaddr phys_addr = 0x100000000ULL;
int VAR_3, VAR_4;
pflash_t *system_flash;
MemoryRegion *flash_mem;
char VAR_5[64];
VAR_3 = 12... | [
"static void FUNC_0(MemoryRegion *VAR_0)\n{",
"int VAR_1;",
"DriveInfo *pflash_drv;",
"BlockDriverState *bdrv;",
"int64_t size;",
"char *VAR_2 = NULL;",
"hwaddr phys_addr = 0x100000000ULL;",
"int VAR_3, VAR_4;",
"pflash_t *system_flash;",
"MemoryRegion *flash_mem;",
"char VAR_5[64];",
"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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
17,983 | static int load_textfile(AVFilterContext *ctx)
{
DrawTextContext *s = ctx->priv;
int err;
uint8_t *textbuf;
size_t textbuf_size;
if ((err = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, ctx)) < 0) {
av_log(ctx, AV_LOG_ERROR,
"The text file '%s' could not be re... | true | FFmpeg | 6956b048d8198dce5126c8942dece21cfb1a7978 | static int load_textfile(AVFilterContext *ctx)
{
DrawTextContext *s = ctx->priv;
int err;
uint8_t *textbuf;
size_t textbuf_size;
if ((err = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, ctx)) < 0) {
av_log(ctx, AV_LOG_ERROR,
"The text file '%s' could not be re... | {
"code": [
" if (!(s->text = av_realloc(s->text, textbuf_size + 1)))"
],
"line_no": [
29
]
} | static int FUNC_0(AVFilterContext *VAR_0)
{
DrawTextContext *s = VAR_0->priv;
int VAR_1;
uint8_t *textbuf;
size_t textbuf_size;
if ((VAR_1 = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, VAR_0)) < 0) {
av_log(VAR_0, AV_LOG_ERROR,
"The text file '%s' could not ... | [
"static int FUNC_0(AVFilterContext *VAR_0)\n{",
"DrawTextContext *s = VAR_0->priv;",
"int VAR_1;",
"uint8_t *textbuf;",
"size_t textbuf_size;",
"if ((VAR_1 = av_file_map(s->textfile, &textbuf, &textbuf_size, 0, VAR_0)) < 0) {",
"av_log(VAR_0, AV_LOG_ERROR,\n\"The text file '%s' could not be read or is e... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19,
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
17,985 | static int ftp_send_command(FTPContext *s, const char *command,
const int response_codes[], char **response)
{
int err;
ff_dlog(s, "%s", command);
if (response)
*response = NULL;
if ((err = ffurl_write(s->conn_control, command, strlen(command))) < 0)
return er... | true | FFmpeg | 9fe73b0147d329bb03ea57c201dc99317cbf3c29 | static int ftp_send_command(FTPContext *s, const char *command,
const int response_codes[], char **response)
{
int err;
ff_dlog(s, "%s", command);
if (response)
*response = NULL;
if ((err = ffurl_write(s->conn_control, command, strlen(command))) < 0)
return er... | {
"code": [],
"line_no": []
} | static int FUNC_0(FTPContext *VAR_0, const char *VAR_1,
const int VAR_2[], char **VAR_3)
{
int VAR_4;
ff_dlog(VAR_0, "%VAR_0", VAR_1);
if (VAR_3)
*VAR_3 = NULL;
if ((VAR_4 = ffurl_write(VAR_0->conn_control, VAR_1, strlen(VAR_1))) < 0)
return VAR_4;
if (!VA... | [
"static int FUNC_0(FTPContext *VAR_0, const char *VAR_1,\nconst int VAR_2[], char **VAR_3)\n{",
"int VAR_4;",
"ff_dlog(VAR_0, \"%VAR_0\", VAR_1);",
"if (VAR_3)\n*VAR_3 = NULL;",
"if ((VAR_4 = ffurl_write(VAR_0->conn_control, VAR_1, strlen(VAR_1))) < 0)\nreturn VAR_4;",
"if (!VAR_4)\nreturn -1;",
"if (VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6,
7
],
[
8,
9
],
[
10,
11
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
]
] |
17,987 | static void sun4c_hw_init(const struct hwdef *hwdef, ram_addr_t RAM_size,
const char *boot_device,
DisplayState *ds, const char *kernel_filename,
const char *kernel_cmdline,
const char *initrd_filename, const cha... | true | qemu | ada24f846650ad2e64c92178d233e380db141427 | static void sun4c_hw_init(const struct hwdef *hwdef, ram_addr_t RAM_size,
const char *boot_device,
DisplayState *ds, const char *kernel_filename,
const char *kernel_cmdline,
const char *initrd_filename, const cha... | {
"code": [
" slavio_misc = slavio_misc_init(-1, hwdef->apc_base,"
],
"line_no": [
215
]
} | static void FUNC_0(const struct VAR_0 *VAR_0, ram_addr_t VAR_1,
const char *VAR_2,
DisplayState *VAR_3, const char *VAR_4,
const char *VAR_5,
const char *VAR_6, const char *VAR_7)
{
CPUState *env;
unsi... | [
"static void FUNC_0(const struct VAR_0 *VAR_0, ram_addr_t VAR_1,\nconst char *VAR_2,\nDisplayState *VAR_3, const char *VAR_4,\nconst char *VAR_5,\nconst char *VAR_6, const char *VAR_7)\n{",
"CPUState *env;",
"unsigned int VAR_8;",
"void *VAR_9, *VAR_10, *VAR_11, *VAR_12, *VAR_13;",
"qemu_irq *cpu_irqs, *sla... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[... |
17,988 | static void pflash_cfi01_realize(DeviceState *dev, Error **errp)
{
pflash_t *pfl = CFI_PFLASH01(dev);
uint64_t total_len;
int ret;
uint64_t blocks_per_device, device_len;
int num_devices;
Error *local_err = NULL;
total_len = pfl->sector_len * pfl->nb_blocs;
/* These are only used to expo... | true | qemu | 8929fc3a55f33a103adddf9cfd010bcf2b255c7d | static void pflash_cfi01_realize(DeviceState *dev, Error **errp)
{
pflash_t *pfl = CFI_PFLASH01(dev);
uint64_t total_len;
int ret;
uint64_t blocks_per_device, device_len;
int num_devices;
Error *local_err = NULL;
total_len = pfl->sector_len * pfl->nb_blocs;
num_devices = pfl->devi... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
pflash_t *pfl = CFI_PFLASH01(VAR_0);
uint64_t total_len;
int VAR_2;
uint64_t blocks_per_device, device_len;
int VAR_3;
Error *local_err = NULL;
total_len = pfl->sector_len * pfl->nb_blocs;
VAR_3 = pfl->device_width ? (pfl->ba... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"pflash_t *pfl = CFI_PFLASH01(VAR_0);",
"uint64_t total_len;",
"int VAR_2;",
"uint64_t blocks_per_device, device_len;",
"int VAR_3;",
"Error *local_err = NULL;",
"total_len = pfl->sector_len * pfl->nb_blocs;",
"VAR_3 = pfl->device_width ? (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
13
],
[
14
],
[
15
],
[
17,
18,
19,
20
],
[
21,
22,
23,
24,
25,
26
],
[
27
],
[
28
],
[
29
],... |
17,990 | static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
{
struct MpegEncContext * const s = avctx->priv_data;
struct vaapi_context * const vactx = avctx->hwaccel_context;
VAPictureParameterBufferMPEG2 *pic_param;
VAIQMatrixBufferMPEG2 *iq_... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
{
struct MpegEncContext * const s = avctx->priv_data;
struct vaapi_context * const vactx = avctx->hwaccel_context;
VAPictureParameterBufferMPEG2 *pic_param;
VAIQMatrixBufferMPEG2 *iq_... | {
"code": [
" pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);",
" pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture.f);",
" pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);",
" ... | static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size)
{
struct MpegEncContext * const VAR_2 = VAR_0->priv_data;
struct vaapi_context * const VAR_3 = VAR_0->hwaccel_context;
VAPictureParameterBufferMPEG2 *pic_param;
VAIQMatrixBufferMPEG2 *iq_matrix;
in... | [
"static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size)\n{",
"struct MpegEncContext * const VAR_2 = VAR_0->priv_data;",
"struct vaapi_context * const VAR_3 = VAR_0->hwaccel_context;",
"VAPictureParameterBufferMPEG2 *pic_param;",
"VAIQMatrixBufferMPEG2 *iq_matrix;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
17,991 | int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname)
{
char line[1024], group[64], id[64], arg[64], value[1024];
Location loc;
QemuOptsList *list = NULL;
QemuOpts *opts = NULL;
int res = -1, lno = 0;
loc_push_none(&loc);
while (fgets(line, sizeof(line), fp) != N... | true | qemu | 8be7e7e4c72c048b90e3482557954a24bba43ba7 | int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname)
{
char line[1024], group[64], id[64], arg[64], value[1024];
Location loc;
QemuOptsList *list = NULL;
QemuOpts *opts = NULL;
int res = -1, lno = 0;
loc_push_none(&loc);
while (fgets(line, sizeof(line), fp) != N... | {
"code": [
" opts = qemu_opts_create(list, id, 1);",
" opts = qemu_opts_create(list, NULL, 0);"
],
"line_no": [
49,
65
]
} | int FUNC_0(FILE *VAR_0, QemuOptsList **VAR_1, const char *VAR_2)
{
char VAR_3[1024], VAR_4[64], VAR_5[64], VAR_6[64], VAR_7[1024];
Location loc;
QemuOptsList *list = NULL;
QemuOpts *opts = NULL;
int VAR_8 = -1, VAR_9 = 0;
loc_push_none(&loc);
while (fgets(VAR_3, sizeof(VAR_3), VAR_... | [
"int FUNC_0(FILE *VAR_0, QemuOptsList **VAR_1, const char *VAR_2)\n{",
"char VAR_3[1024], VAR_4[64], VAR_5[64], VAR_6[64], VAR_7[1024];",
"Location loc;",
"QemuOptsList *list = NULL;",
"QemuOpts *opts = NULL;",
"int VAR_8 = -1, VAR_9 = 0;",
"loc_push_none(&loc);",
"while (fgets(VAR_3, sizeof(VAR_3), V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49
],
[... |
17,992 | static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr,
socklen_t *addr_len, const char *localaddr)
{
int udp_fd = -1;
struct addrinfo *res0 = NULL, *res = NULL;
int family = AF_UNSPEC;
if (((struct sockaddr *) &s->dest_addr)->sa_family)
f... | true | FFmpeg | 8dc72eeaf647736c287b59a3856a11904bedd58b | static int udp_socket_create(UDPContext *s, struct sockaddr_storage *addr,
socklen_t *addr_len, const char *localaddr)
{
int udp_fd = -1;
struct addrinfo *res0 = NULL, *res = NULL;
int family = AF_UNSPEC;
if (((struct sockaddr *) &s->dest_addr)->sa_family)
f... | {
"code": [
" res0 = udp_resolve_host(localaddr[0] ? localaddr : NULL, s->local_port,"
],
"line_no": [
19
]
} | static int FUNC_0(UDPContext *VAR_0, struct sockaddr_storage *VAR_1,
socklen_t *VAR_2, const char *VAR_3)
{
int VAR_4 = -1;
struct addrinfo *VAR_5 = NULL, *VAR_6 = NULL;
int VAR_7 = AF_UNSPEC;
if (((struct sockaddr *) &VAR_0->dest_addr)->sa_family)
VAR_7 = (... | [
"static int FUNC_0(UDPContext *VAR_0, struct sockaddr_storage *VAR_1,\nsocklen_t *VAR_2, const char *VAR_3)\n{",
"int VAR_4 = -1;",
"struct addrinfo *VAR_5 = NULL, *VAR_6 = NULL;",
"int VAR_7 = AF_UNSPEC;",
"if (((struct sockaddr *) &VAR_0->dest_addr)->sa_family)\nVAR_7 = ((struct sockaddr *) &VAR_0->dest_a... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
],
[
51
],
[
55
],
[... |
17,994 | static inline void RENAME(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifdef HAVE_MMX
if (uDest)
{
asm volatile(
YSCALEYUV2YV121
:: "r" (chrSrc + chrDstW), "r" (u... | true | FFmpeg | 8b2fce0d3f5a56c40c28899c9237210ca8f9cf75 | static inline void RENAME(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifdef HAVE_MMX
if (uDest)
{
asm volatile(
YSCALEYUV2YV121
:: "r" (chrSrc + chrDstW), "r" (u... | {
"code": [
" :: \"r\" (chrSrc + 2048 + chrDstW), \"r\" (vDest + chrDstW),",
" int v=chrSrc[i + 2048]>>7;"
],
"line_no": [
31,
91
]
} | static inline void FUNC_0(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifdef HAVE_MMX
if (uDest)
{
asm volatile(
YSCALEYUV2YV121
:: "r" (chrSrc + chrDstW), "r" (u... | [
"static inline void FUNC_0(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)\n{",
"#ifdef HAVE_MMX\nif (uDest)\n{",
"asm volatile(\nYSCALEYUV2YV121\n:: \"r\" (chrSrc + chrDstW), \"r\" (uDest + chrDstW),\n\"g\" (-chrDstW)\n: \"%\"REG_a\n);",
"a... | [
0,
0,
0,
1,
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
] | [
[
1,
3,
5
],
[
7,
9,
11
],
[
13,
15,
17,
19,
21,
23
],
[
27,
29,
31,
33,
35,
37
],
[
39
],
[
43,
45,
47,
49,
51,
53
],
[
55,
57
],
[
59
],
[
61
],
[
63
],
[... |
17,995 | static ssize_t qsb_grow(QEMUSizedBuffer *qsb, size_t new_size)
{
size_t needed_chunks, i;
if (qsb->size < new_size) {
struct iovec *new_iov;
size_t size_diff = new_size - qsb->size;
size_t chunk_size = (size_diff > QSB_MAX_CHUNK_SIZE)
? QSB_MAX_CHUNK... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static ssize_t qsb_grow(QEMUSizedBuffer *qsb, size_t new_size)
{
size_t needed_chunks, i;
if (qsb->size < new_size) {
struct iovec *new_iov;
size_t size_diff = new_size - qsb->size;
size_t chunk_size = (size_diff > QSB_MAX_CHUNK_SIZE)
? QSB_MAX_CHUNK... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(QEMUSizedBuffer *qsb, size_t new_size)
{
size_t needed_chunks, i;
if (qsb->size < new_size) {
struct iovec *VAR_0;
size_t size_diff = new_size - qsb->size;
size_t chunk_size = (size_diff > QSB_MAX_CHUNK_SIZE)
? QSB_MAX_CHUNK_SIZ... | [
"static ssize_t FUNC_0(QEMUSizedBuffer *qsb, size_t new_size)\n{",
"size_t needed_chunks, i;",
"if (qsb->size < new_size) {",
"struct iovec *VAR_0;",
"size_t size_diff = new_size - qsb->size;",
"size_t chunk_size = (size_diff > QSB_MAX_CHUNK_SIZE)\n? QSB_MAX_CHUNK_SIZE : QSB_CHUNK_SIZE;",
"needed_chunks... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55
],
... |
17,996 | vmxnet3_init_msix(VMXNET3State *s)
{
PCIDevice *d = PCI_DEVICE(s);
int res = msix_init(d, VMXNET3_MAX_INTRS,
&s->msix_bar,
VMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_TABLE,
&s->msix_bar,
VMXNET3_MSIX_BAR_IDX, VMXN... | true | qemu | ee640c625e190a0c0e6b8966adc0e4720fb75200 | vmxnet3_init_msix(VMXNET3State *s)
{
PCIDevice *d = PCI_DEVICE(s);
int res = msix_init(d, VMXNET3_MAX_INTRS,
&s->msix_bar,
VMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_TABLE,
&s->msix_bar,
VMXNET3_MSIX_BAR_IDX, VMXN... | {
"code": [
" VMXNET3_MSIX_OFFSET(s));"
],
"line_no": [
17
]
} | FUNC_0(VMXNET3State *VAR_0)
{
PCIDevice *d = PCI_DEVICE(VAR_0);
int VAR_1 = msix_init(d, VMXNET3_MAX_INTRS,
&VAR_0->msix_bar,
VMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_TABLE,
&VAR_0->msix_bar,
VMXNET3_MSIX_BAR_ID... | [
"FUNC_0(VMXNET3State *VAR_0)\n{",
"PCIDevice *d = PCI_DEVICE(VAR_0);",
"int VAR_1 = msix_init(d, VMXNET3_MAX_INTRS,\n&VAR_0->msix_bar,\nVMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_TABLE,\n&VAR_0->msix_bar,\nVMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_PBA(VAR_0),\nVMXNET3_MSIX_OFFSET(VAR_0));",
"if (0 > VAR_1) {",
"VM... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
17,997 | static int build_feed_streams(void)
{
FFServerStream *stream, *feed;
int i;
/* gather all streams */
for(stream = config.first_stream; stream; stream = stream->next) {
feed = stream->feed;
if (!feed)
continue;
if (stream->is_feed) {
for(i=0;i... | false | FFmpeg | ae2ed20b5912b00866631e78049f165deb9f2fb2 | static int build_feed_streams(void)
{
FFServerStream *stream, *feed;
int i;
for(stream = config.first_stream; stream; stream = stream->next) {
feed = stream->feed;
if (!feed)
continue;
if (stream->is_feed) {
for(i=0;i<stream->nb_streams;i++)... | {
"code": [],
"line_no": []
} | static int FUNC_0(void)
{
FFServerStream *stream, *feed;
int VAR_0;
for(stream = config.first_stream; stream; stream = stream->next) {
feed = stream->feed;
if (!feed)
continue;
if (stream->is_feed) {
for(VAR_0=0;VAR_0<stream->nb_streams;VAR_... | [
"static int FUNC_0(void)\n{",
"FFServerStream *stream, *feed;",
"int VAR_0;",
"for(stream = config.first_stream; stream; stream = stream->next) {",
"feed = stream->feed;",
"if (!feed)\ncontinue;",
"if (stream->is_feed) {",
"for(VAR_0=0;VAR_0<stream->nb_streams;VAR_0++)",
"stream->feed_streams[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
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
53
],
[
57
],
[
59... |
17,999 | static always_inline void dv_encode_ac(EncBlockInfo* bi, PutBitContext* pb_pool,
int pb_size)
{
int run;
int bits_left;
PutBitContext* pb = pb_pool;
int size = bi->partial_bit_count;
uint32_t vlc = bi->partial_bit_buffer;
bi->partial_bit_coun... | false | FFmpeg | c619ff6daf93a8f3c03decf2d3345d2474c3db91 | static always_inline void dv_encode_ac(EncBlockInfo* bi, PutBitContext* pb_pool,
int pb_size)
{
int run;
int bits_left;
PutBitContext* pb = pb_pool;
int size = bi->partial_bit_count;
uint32_t vlc = bi->partial_bit_buffer;
bi->partial_bit_coun... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0(EncBlockInfo* bi, PutBitContext* pb_pool,
int pb_size)
{
int VAR_0;
int VAR_1;
PutBitContext* pb = pb_pool;
int VAR_2 = bi->partial_bit_count;
uint32_t vlc = bi->partial_bit_buffer;
bi->partial_bit_count = bi-... | [
"static always_inline void FUNC_0(EncBlockInfo* bi, PutBitContext* pb_pool,\nint pb_size)\n{",
"int VAR_0;",
"int VAR_1;",
"PutBitContext* pb = pb_pool;",
"int VAR_2 = bi->partial_bit_count;",
"uint32_t vlc = bi->partial_bit_buffer;",
"bi->partial_bit_count = bi->partial_bit_buffer = 0;",
"vlc_loop:\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,000 | static uint64_t mipsnet_ioport_read(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
MIPSnetState *s = opaque;
int ret = 0;
addr &= 0x3f;
switch (addr) {
case MIPSNET_DEV_ID:
ret = be32_to_cpu(0x4d495053); /* MIPS */
break;
cas... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t mipsnet_ioport_read(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
MIPSnetState *s = opaque;
int ret = 0;
addr &= 0x3f;
switch (addr) {
case MIPSNET_DEV_ID:
ret = be32_to_cpu(0x4d495053);
break;
case MIPSNET_... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
MIPSnetState *s = opaque;
int VAR_0 = 0;
addr &= 0x3f;
switch (addr) {
case MIPSNET_DEV_ID:
VAR_0 = be32_to_cpu(0x4d495053);
break;
case MIPSNET_DEV_ID + ... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned int size)\n{",
"MIPSnetState *s = opaque;",
"int VAR_0 = 0;",
"addr &= 0x3f;",
"switch (addr) {",
"case MIPSNET_DEV_ID:\nVAR_0 = be32_to_cpu(0x4d495053);",
"break;",
"case MIPSNET_DEV_ID + 4:\nVAR_0 = be32_to_cpu(0x4e455430);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[... |
18,001 | static uint32_t get_generic_seed(void)
{
uint8_t tmp[120];
struct AVSHA *sha = (void*)tmp;
clock_t last_t = 0;
static uint64_t i = 0;
static uint32_t buffer[512] = { 0 };
unsigned char digest[20];
uint64_t last_i = i;
av_assert0(sizeof(tmp) >= av_sha_size);
if(TEST){
... | false | FFmpeg | 2540d884f3fd7cfac503e048112098967be2569a | static uint32_t get_generic_seed(void)
{
uint8_t tmp[120];
struct AVSHA *sha = (void*)tmp;
clock_t last_t = 0;
static uint64_t i = 0;
static uint32_t buffer[512] = { 0 };
unsigned char digest[20];
uint64_t last_i = i;
av_assert0(sizeof(tmp) >= av_sha_size);
if(TEST){
... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void)
{
uint8_t tmp[120];
struct AVSHA *VAR_0 = (void*)tmp;
clock_t last_t = 0;
static uint64_t VAR_1 = 0;
static uint32_t VAR_2[512] = { 0 };
unsigned char VAR_3[20];
uint64_t last_i = VAR_1;
av_assert0(sizeof(tmp) >= av_sha_size);
if(TEST){
... | [
"static uint32_t FUNC_0(void)\n{",
"uint8_t tmp[120];",
"struct AVSHA *VAR_0 = (void*)tmp;",
"clock_t last_t = 0;",
"static uint64_t VAR_1 = 0;",
"static uint32_t VAR_2[512] = { 0 };",
"unsigned char VAR_3[20];",
"uint64_t last_i = VAR_1;",
"av_assert0(sizeof(tmp) >= av_sha_size);",
"if(TEST){",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[
51
... |
18,002 | int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint32_t *flags,
off_t *size, Error **errp)
{
char buf[256];
uint64_t magic, s;
int rc;
TRACE("Receiving negotiation.");
rc = -EINVAL;
if (read_sync(ioc, buf, 8) != 8) {
error_setg(errp,... | false | qemu | 9344e5f554690d5e379b5426daebadef7c87baf5 | int nbd_receive_negotiate(QIOChannel *ioc, const char *name, uint32_t *flags,
off_t *size, Error **errp)
{
char buf[256];
uint64_t magic, s;
int rc;
TRACE("Receiving negotiation.");
rc = -EINVAL;
if (read_sync(ioc, buf, 8) != 8) {
error_setg(errp,... | {
"code": [],
"line_no": []
} | int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, uint32_t *VAR_2,
off_t *VAR_3, Error **VAR_4)
{
char VAR_5[256];
uint64_t magic, s;
int VAR_6;
TRACE("Receiving negotiation.");
VAR_6 = -EINVAL;
if (read_sync(VAR_0, VAR_5, 8) != 8) {
error_setg(VAR... | [
"int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, uint32_t *VAR_2,\noff_t *VAR_3, Error **VAR_4)\n{",
"char VAR_5[256];",
"uint64_t magic, s;",
"int VAR_6;",
"TRACE(\"Receiving negotiation.\");",
"VAR_6 = -EINVAL;",
"if (read_sync(VAR_0, VAR_5, 8) != 8) {",
"error_setg(VAR_4, \"Failed to read data\");... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47,
49,
51,
53,
55,
57,
59,... |
18,004 | static inline void gen_op_evsrws(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
{
TCGv_i32 t0;
int l1, l2;
l1 = gen_new_label();
l2 = gen_new_label();
t0 = tcg_temp_local_new_i32();
/* No error here: 6 bits are used */
tcg_gen_andi_i32(t0, arg2, 0x3F);
tcg_gen_brcondi_i32(TCG_CON... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static inline void gen_op_evsrws(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
{
TCGv_i32 t0;
int l1, l2;
l1 = gen_new_label();
l2 = gen_new_label();
t0 = tcg_temp_local_new_i32();
tcg_gen_andi_i32(t0, arg2, 0x3F);
tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, l1);
tcg_gen_sar_... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv_i32 VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)
{
TCGv_i32 t0;
int VAR_3, VAR_4;
VAR_3 = gen_new_label();
VAR_4 = gen_new_label();
t0 = tcg_temp_local_new_i32();
tcg_gen_andi_i32(t0, VAR_2, 0x3F);
tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, VAR_3);
... | [
"static inline void FUNC_0(TCGv_i32 VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)\n{",
"TCGv_i32 t0;",
"int VAR_3, VAR_4;",
"VAR_3 = gen_new_label();",
"VAR_4 = gen_new_label();",
"t0 = tcg_temp_local_new_i32();",
"tcg_gen_andi_i32(t0, VAR_2, 0x3F);",
"tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, VAR_3);",
"tc... | [
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
]
] |
18,006 | void hd_geometry_guess(BlockDriverState *bs,
uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs,
int *ptrans)
{
int cylinders, heads, secs, translation;
if (guess_disk_lchs(bs, &cylinders, &heads, &secs) < 0) {
/* no LCHS guess: use a standard physic... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | void hd_geometry_guess(BlockDriverState *bs,
uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs,
int *ptrans)
{
int cylinders, heads, secs, translation;
if (guess_disk_lchs(bs, &cylinders, &heads, &secs) < 0) {
guess_chs_for_size(bs, pcyls,... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0,
uint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3,
int *VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8;
if (guess_disk_lchs(VAR_0, &VAR_5, &VAR_6, &VAR_7) < 0) {
guess_chs_for_size(VAR_0, VAR_1, VAR_2, VAR_3);
... | [
"void FUNC_0(BlockDriverState *VAR_0,\nuint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3,\nint *VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"if (guess_disk_lchs(VAR_0, &VAR_5, &VAR_6, &VAR_7) < 0) {",
"guess_chs_for_size(VAR_0, VAR_1, VAR_2, VAR_3);",
"VAR_8 = hd_bios_chs_auto_trans(*VAR_1, *VAR_2, *VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
29
],
[
31,
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
... |
18,007 | static MemoryRegion *acpi_add_rom_blob(AcpiBuildState *build_state,
GArray *blob, const char *name,
uint64_t max_size)
{
return rom_add_blob(name, blob->data, acpi_data_len(blob), max_size, -1,
name, virt_acpi... | false | qemu | aa6c6ae843cbdc251224bc6170d2663ac929b04f | static MemoryRegion *acpi_add_rom_blob(AcpiBuildState *build_state,
GArray *blob, const char *name,
uint64_t max_size)
{
return rom_add_blob(name, blob->data, acpi_data_len(blob), max_size, -1,
name, virt_acpi... | {
"code": [],
"line_no": []
} | static MemoryRegion *FUNC_0(AcpiBuildState *build_state,
GArray *blob, const char *name,
uint64_t max_size)
{
return rom_add_blob(name, blob->data, acpi_data_len(blob), max_size, -1,
name, virt_acpi_build_upda... | [
"static MemoryRegion *FUNC_0(AcpiBuildState *build_state,\nGArray *blob, const char *name,\nuint64_t max_size)\n{",
"return rom_add_blob(name, blob->data, acpi_data_len(blob), max_size, -1,\nname, virt_acpi_build_update, build_state);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
]
] |
18,008 | static int versatile_pci_host_init(PCIDevice *d)
{
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_XILINX);
/* Both boards have the same device ID. Oh well. */
pci_config_set_device_id(d->config, PCI_DEVICE_ID_XILINX_XC2VP30);
pci_set_word(d->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STAT... | false | qemu | 56fe6408d71264ef35049e24213f7003ade5bc14 | static int versatile_pci_host_init(PCIDevice *d)
{
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_XILINX);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_XILINX_XC2VP30);
pci_set_word(d->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM);
pci_config_set_class(d->confi... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_XILINX);
pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_XILINX_XC2VP30);
pci_set_word(VAR_0->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM);
pci_config_set_class(VAR_0->co... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_XILINX);",
"pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_XILINX_XC2VP30);",
"pci_set_word(VAR_0->config + PCI_STATUS,\nPCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM);",
"pci_config_set_class(VAR_0->config... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,009 | vcard_emul_replay_insertion_events(void)
{
VReaderListEntry *current_entry;
VReaderListEntry *next_entry = NULL;
VReaderList *list = vreader_get_reader_list();
for (current_entry = vreader_list_get_first(list); current_entry;
current_entry = next_entry) {
VReader *vreader = ... | false | qemu | 1687a089f103f9b7a1b4a1555068054cb46ee9e9 | vcard_emul_replay_insertion_events(void)
{
VReaderListEntry *current_entry;
VReaderListEntry *next_entry = NULL;
VReaderList *list = vreader_get_reader_list();
for (current_entry = vreader_list_get_first(list); current_entry;
current_entry = next_entry) {
VReader *vreader = ... | {
"code": [],
"line_no": []
} | FUNC_0(void)
{
VReaderListEntry *current_entry;
VReaderListEntry *next_entry = NULL;
VReaderList *list = vreader_get_reader_list();
for (current_entry = vreader_list_get_first(list); current_entry;
current_entry = next_entry) {
VReader *vreader = vreader_list_get_reader(curr... | [
"FUNC_0(void)\n{",
"VReaderListEntry *current_entry;",
"VReaderListEntry *next_entry = NULL;",
"VReaderList *list = vreader_get_reader_list();",
"for (current_entry = vreader_list_get_first(list); current_entry;",
"current_entry = next_entry) {",
"VReader *vreader = vreader_list_get_reader(current_entry... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
18,010 | static int read_config(BDRVBlkdebugState *s, const char *filename, Error **errp)
{
FILE *f;
int ret;
struct add_rule_data d;
f = fopen(filename, "r");
if (f == NULL) {
error_setg_errno(errp, errno, "Could not read blkdebug config file");
return -errno;
}
ret = q... | false | qemu | 85a040e5485413333da4fcf98bc8b28c92fa623f | static int read_config(BDRVBlkdebugState *s, const char *filename, Error **errp)
{
FILE *f;
int ret;
struct add_rule_data d;
f = fopen(filename, "r");
if (f == NULL) {
error_setg_errno(errp, errno, "Could not read blkdebug config file");
return -errno;
}
ret = q... | {
"code": [],
"line_no": []
} | static int FUNC_0(BDRVBlkdebugState *VAR_0, const char *VAR_1, Error **VAR_2)
{
FILE *f;
int VAR_3;
struct add_rule_data VAR_4;
f = fopen(VAR_1, "r");
if (f == NULL) {
error_setg_errno(VAR_2, errno, "Could not read blkdebug config file");
return -errno;
}
VAR_3 ... | [
"static int FUNC_0(BDRVBlkdebugState *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"FILE *f;",
"int VAR_3;",
"struct add_rule_data VAR_4;",
"f = fopen(VAR_1, \"r\");",
"if (f == NULL) {",
"error_setg_errno(VAR_2, errno, \"Could not read blkdebug config file\");",
"return -errno;",
"}",
"VAR_3 = q... | [
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
18,011 | static int vnc_update_client(VncState *vs, int has_dirty)
{
if (vs->need_update && vs->csock != -1) {
VncDisplay *vd = vs->vd;
int y;
int n_rectangles;
int saved_offset;
int n;
if (vs->output.offset && !vs->audio_cap && !vs->force_update)
/* ker... | false | qemu | 847ce6a185f9ccbc089ef24a6c402b8c99113341 | static int vnc_update_client(VncState *vs, int has_dirty)
{
if (vs->need_update && vs->csock != -1) {
VncDisplay *vd = vs->vd;
int y;
int n_rectangles;
int saved_offset;
int n;
if (vs->output.offset && !vs->audio_cap && !vs->force_update)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, int VAR_1)
{
if (VAR_0->need_update && VAR_0->csock != -1) {
VncDisplay *vd = VAR_0->vd;
int VAR_2;
int VAR_3;
int VAR_4;
int VAR_5;
if (VAR_0->output.offset && !VAR_0->audio_cap && !VAR_0->force_update)
... | [
"static int FUNC_0(VncState *VAR_0, int VAR_1)\n{",
"if (VAR_0->need_update && VAR_0->csock != -1) {",
"VncDisplay *vd = VAR_0->vd;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"if (VAR_0->output.offset && !VAR_0->audio_cap && !VAR_0->force_update)\nreturn 0;",
"if (!VAR_1 && !VAR_0->au... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27,
29
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
... |
18,012 | int ff_vorbiscomment_write(uint8_t **p, AVDictionary **m,
const char *vendor_string)
{
bytestream_put_le32(p, strlen(vendor_string));
bytestream_put_buffer(p, vendor_string, strlen(vendor_string));
if (*m) {
int count = av_dict_count(*m);
AVDictionaryEntry *... | false | FFmpeg | eca38864a6ce5053e463b8d3fc22b22bc9a49578 | int ff_vorbiscomment_write(uint8_t **p, AVDictionary **m,
const char *vendor_string)
{
bytestream_put_le32(p, strlen(vendor_string));
bytestream_put_buffer(p, vendor_string, strlen(vendor_string));
if (*m) {
int count = av_dict_count(*m);
AVDictionaryEntry *... | {
"code": [],
"line_no": []
} | int FUNC_0(uint8_t **VAR_0, AVDictionary **VAR_1,
const char *VAR_2)
{
bytestream_put_le32(VAR_0, strlen(VAR_2));
bytestream_put_buffer(VAR_0, VAR_2, strlen(VAR_2));
if (*VAR_1) {
int VAR_3 = av_dict_count(*VAR_1);
AVDictionaryEntry *tag = NULL;
byt... | [
"int FUNC_0(uint8_t **VAR_0, AVDictionary **VAR_1,\nconst char *VAR_2)\n{",
"bytestream_put_le32(VAR_0, strlen(VAR_2));",
"bytestream_put_buffer(VAR_0, VAR_2, strlen(VAR_2));",
"if (*VAR_1) {",
"int VAR_3 = av_dict_count(*VAR_1);",
"AVDictionaryEntry *tag = NULL;",
"bytestream_put_le32(VAR_0, VAR_3);",
... | [
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
]
] |
18,013 | void qemu_input_event_send_key_qcode(QemuConsole *src, QKeyCode q, bool down)
{
KeyValue *key = g_new0(KeyValue, 1);
key->kind = KEY_VALUE_KIND_QCODE;
key->qcode = q;
qemu_input_event_send_key(src, key, down);
}
| false | qemu | 568c73a4783cd981e9aa6de4f15dcda7829643ad | void qemu_input_event_send_key_qcode(QemuConsole *src, QKeyCode q, bool down)
{
KeyValue *key = g_new0(KeyValue, 1);
key->kind = KEY_VALUE_KIND_QCODE;
key->qcode = q;
qemu_input_event_send_key(src, key, down);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QemuConsole *VAR_0, QKeyCode VAR_1, bool VAR_2)
{
KeyValue *key = g_new0(KeyValue, 1);
key->kind = KEY_VALUE_KIND_QCODE;
key->qcode = VAR_1;
qemu_input_event_send_key(VAR_0, key, VAR_2);
}
| [
"void FUNC_0(QemuConsole *VAR_0, QKeyCode VAR_1, bool VAR_2)\n{",
"KeyValue *key = g_new0(KeyValue, 1);",
"key->kind = KEY_VALUE_KIND_QCODE;",
"key->qcode = VAR_1;",
"qemu_input_event_send_key(VAR_0, key, VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
18,014 | static void t_gen_lz_i32(TCGv d, TCGv x)
{
TCGv y, m, n;
y = tcg_temp_new(TCG_TYPE_I32);
m = tcg_temp_new(TCG_TYPE_I32);
n = tcg_temp_new(TCG_TYPE_I32);
/* y = -(x >> 16) */
tcg_gen_shri_i32(y, x, 16);
tcg_gen_neg_i32(y, y);
/* m = (y >> 16) & 16 */
tcg_gen_sari_i32(m, y, 16);
tcg_gen_andi_... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static void t_gen_lz_i32(TCGv d, TCGv x)
{
TCGv y, m, n;
y = tcg_temp_new(TCG_TYPE_I32);
m = tcg_temp_new(TCG_TYPE_I32);
n = tcg_temp_new(TCG_TYPE_I32);
tcg_gen_shri_i32(y, x, 16);
tcg_gen_neg_i32(y, y);
tcg_gen_sari_i32(m, y, 16);
tcg_gen_andi_i32(m, m, 16);
tcg_gen_sub_i32(n, tcg_c... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGv VAR_0, TCGv VAR_1)
{
TCGv y, m, n;
y = tcg_temp_new(TCG_TYPE_I32);
m = tcg_temp_new(TCG_TYPE_I32);
n = tcg_temp_new(TCG_TYPE_I32);
tcg_gen_shri_i32(y, VAR_1, 16);
tcg_gen_neg_i32(y, y);
tcg_gen_sari_i32(m, y, 16);
tcg_gen_andi_i32(m, m, 16);
tcg_gen_sub_i32(n,... | [
"static void FUNC_0(TCGv VAR_0, TCGv VAR_1)\n{",
"TCGv y, m, n;",
"y = tcg_temp_new(TCG_TYPE_I32);",
"m = tcg_temp_new(TCG_TYPE_I32);",
"n = tcg_temp_new(TCG_TYPE_I32);",
"tcg_gen_shri_i32(y, VAR_1, 16);",
"tcg_gen_neg_i32(y, y);",
"tcg_gen_sari_i32(m, y, 16);",
"tcg_gen_andi_i32(m, m, 16);",
"tcg... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
27
],
[
29
],
[
35
],
[
39
],
[
45
],
[
49
],
[
51
],
[
55
],
[
59
],
[
65
],
[
69
],
[
71
],
[
75... |
18,016 | static QVirtIOSCSI *qvirtio_scsi_pci_init(int slot)
{
QVirtIOSCSI *vs;
QVirtioPCIDevice *dev;
void *addr;
int i;
vs = g_new0(QVirtIOSCSI, 1);
vs->alloc = pc_alloc_init();
vs->bus = qpci_init_pc();
dev = qvirtio_pci_device_find(vs->bus, QVIRTIO_SCSI_DEVICE_ID);
vs->dev =... | false | qemu | 4bb7b0daf8ea34bcc582642d35a2e4902f7841db | static QVirtIOSCSI *qvirtio_scsi_pci_init(int slot)
{
QVirtIOSCSI *vs;
QVirtioPCIDevice *dev;
void *addr;
int i;
vs = g_new0(QVirtIOSCSI, 1);
vs->alloc = pc_alloc_init();
vs->bus = qpci_init_pc();
dev = qvirtio_pci_device_find(vs->bus, QVIRTIO_SCSI_DEVICE_ID);
vs->dev =... | {
"code": [],
"line_no": []
} | static QVirtIOSCSI *FUNC_0(int slot)
{
QVirtIOSCSI *vs;
QVirtioPCIDevice *dev;
void *VAR_0;
int VAR_1;
vs = g_new0(QVirtIOSCSI, 1);
vs->alloc = pc_alloc_init();
vs->bus = qpci_init_pc();
dev = qvirtio_pci_device_find(vs->bus, QVIRTIO_SCSI_DEVICE_ID);
vs->dev = (QVirtioD... | [
"static QVirtIOSCSI *FUNC_0(int slot)\n{",
"QVirtIOSCSI *vs;",
"QVirtioPCIDevice *dev;",
"void *VAR_0;",
"int VAR_1;",
"vs = g_new0(QVirtIOSCSI, 1);",
"vs->alloc = pc_alloc_init();",
"vs->bus = qpci_init_pc();",
"dev = qvirtio_pci_device_find(vs->bus, QVIRTIO_SCSI_DEVICE_ID);",
"vs->dev = (QVirtio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
51
],
[... |
18,017 | static MachineClass *machine_parse(const char *name)
{
MachineClass *mc = NULL;
GSList *el, *machines = object_class_get_list(TYPE_MACHINE, false);
if (name) {
mc = find_machine(name);
}
if (mc) {
return mc;
}
if (name && !is_help_option(name)) {
error_re... | false | qemu | 2709f263952bab66fc8f971c04d151216b177336 | static MachineClass *machine_parse(const char *name)
{
MachineClass *mc = NULL;
GSList *el, *machines = object_class_get_list(TYPE_MACHINE, false);
if (name) {
mc = find_machine(name);
}
if (mc) {
return mc;
}
if (name && !is_help_option(name)) {
error_re... | {
"code": [],
"line_no": []
} | static MachineClass *FUNC_0(const char *name)
{
MachineClass *mc = NULL;
GSList *el, *machines = object_class_get_list(TYPE_MACHINE, false);
if (name) {
mc = find_machine(name);
}
if (mc) {
return mc;
}
if (name && !is_help_option(name)) {
error_report("U... | [
"static MachineClass *FUNC_0(const char *name)\n{",
"MachineClass *mc = NULL;",
"GSList *el, *machines = object_class_get_list(TYPE_MACHINE, false);",
"if (name) {",
"mc = find_machine(name);",
"}",
"if (mc) {",
"return mc;",
"}",
"if (name && !is_help_option(name)) {",
"error_report(\"Unsupport... | [
0,
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... |
18,018 | M48t59State *m48t59_init(qemu_irq IRQ, target_phys_addr_t mem_base,
uint32_t io_base, uint16_t size, int model)
{
DeviceState *dev;
SysBusDevice *s;
M48t59SysBusState *d;
M48t59State *state;
dev = qdev_create(NULL, "m48t59");
qdev_prop_set_uint32(dev, "model", ... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | M48t59State *m48t59_init(qemu_irq IRQ, target_phys_addr_t mem_base,
uint32_t io_base, uint16_t size, int model)
{
DeviceState *dev;
SysBusDevice *s;
M48t59SysBusState *d;
M48t59State *state;
dev = qdev_create(NULL, "m48t59");
qdev_prop_set_uint32(dev, "model", ... | {
"code": [],
"line_no": []
} | M48t59State *FUNC_0(qemu_irq IRQ, target_phys_addr_t mem_base,
uint32_t io_base, uint16_t size, int model)
{
DeviceState *dev;
SysBusDevice *s;
M48t59SysBusState *d;
M48t59State *state;
dev = qdev_create(NULL, "m48t59");
qdev_prop_set_uint32(dev, "model", model... | [
"M48t59State *FUNC_0(qemu_irq IRQ, target_phys_addr_t mem_base,\nuint32_t io_base, uint16_t size, int model)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"M48t59SysBusState *d;",
"M48t59State *state;",
"dev = qdev_create(NULL, \"m48t59\");",
"qdev_prop_set_uint32(dev, \"model\", model);",
"qdev_prop_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
18,019 | static void virtio_gpu_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
{
VirtIOGPUPCI *vgpu = VIRTIO_GPU_PCI(vpci_dev);
VirtIOGPU *g = &vgpu->vdev;
DeviceState *vdev = DEVICE(&vgpu->vdev);
int i;
qdev_set_parent_bus(vdev, BUS(&vpci_dev->bus));
/* force virtio-1.0 */
vpci_dev->f... | false | qemu | 9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5 | static void virtio_gpu_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
{
VirtIOGPUPCI *vgpu = VIRTIO_GPU_PCI(vpci_dev);
VirtIOGPU *g = &vgpu->vdev;
DeviceState *vdev = DEVICE(&vgpu->vdev);
int i;
qdev_set_parent_bus(vdev, BUS(&vpci_dev->bus));
vpci_dev->flags &= ~VIRTIO_PCI_FL... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOPCIProxy *VAR_0, Error **VAR_1)
{
VirtIOGPUPCI *vgpu = VIRTIO_GPU_PCI(VAR_0);
VirtIOGPU *g = &vgpu->vdev;
DeviceState *vdev = DEVICE(&vgpu->vdev);
int VAR_2;
qdev_set_parent_bus(vdev, BUS(&VAR_0->bus));
VAR_0->flags &= ~VIRTIO_PCI_FLAG_DISABLE_MODERN;
... | [
"static void FUNC_0(VirtIOPCIProxy *VAR_0, Error **VAR_1)\n{",
"VirtIOGPUPCI *vgpu = VIRTIO_GPU_PCI(VAR_0);",
"VirtIOGPU *g = &vgpu->vdev;",
"DeviceState *vdev = DEVICE(&vgpu->vdev);",
"int VAR_2;",
"qdev_set_parent_bus(vdev, BUS(&VAR_0->bus));",
"VAR_0->flags &= ~VIRTIO_PCI_FLAG_DISABLE_MODERN;",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
]
] |
18,021 | void program_interrupt(CPUS390XState *env, uint32_t code, int ilen)
{
S390CPU *cpu = s390_env_get_cpu(env);
qemu_log_mask(CPU_LOG_INT, "program interrupt at %#" PRIx64 "\n",
env->psw.addr);
if (kvm_enabled()) {
kvm_s390_program_interrupt(cpu, code);
} else if (tcg_en... | false | qemu | 51dcdbd319f8d46834d8155defc8d384a9958a73 | void program_interrupt(CPUS390XState *env, uint32_t code, int ilen)
{
S390CPU *cpu = s390_env_get_cpu(env);
qemu_log_mask(CPU_LOG_INT, "program interrupt at %#" PRIx64 "\n",
env->psw.addr);
if (kvm_enabled()) {
kvm_s390_program_interrupt(cpu, code);
} else if (tcg_en... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUS390XState *VAR_0, uint32_t VAR_1, int VAR_2)
{
S390CPU *cpu = s390_env_get_cpu(VAR_0);
qemu_log_mask(CPU_LOG_INT, "program interrupt at %#" PRIx64 "\n",
VAR_0->psw.addr);
if (kvm_enabled()) {
kvm_s390_program_interrupt(cpu, VAR_1);
} else if (tcg_enab... | [
"void FUNC_0(CPUS390XState *VAR_0, uint32_t VAR_1, int VAR_2)\n{",
"S390CPU *cpu = s390_env_get_cpu(VAR_0);",
"qemu_log_mask(CPU_LOG_INT, \"program interrupt at %#\" PRIx64 \"\\n\",\nVAR_0->psw.addr);",
"if (kvm_enabled()) {",
"kvm_s390_program_interrupt(cpu, VAR_1);",
"} else if (tcg_enabled()) {",
"tc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
18,022 | static void address_space_update_ioeventfds(AddressSpace *as)
{
FlatView *view;
FlatRange *fr;
unsigned ioeventfd_nb = 0;
MemoryRegionIoeventfd *ioeventfds = NULL;
AddrRange tmp;
unsigned i;
view = as->current_map;
FOR_EACH_FLAT_RANGE(fr, view) {
for (i = 0; i < fr->m... | false | qemu | 856d72454f03aea26fd61c728762ef9cd1d71512 | static void address_space_update_ioeventfds(AddressSpace *as)
{
FlatView *view;
FlatRange *fr;
unsigned ioeventfd_nb = 0;
MemoryRegionIoeventfd *ioeventfds = NULL;
AddrRange tmp;
unsigned i;
view = as->current_map;
FOR_EACH_FLAT_RANGE(fr, view) {
for (i = 0; i < fr->m... | {
"code": [],
"line_no": []
} | static void FUNC_0(AddressSpace *VAR_0)
{
FlatView *view;
FlatRange *fr;
unsigned VAR_1 = 0;
MemoryRegionIoeventfd *ioeventfds = NULL;
AddrRange tmp;
unsigned VAR_2;
view = VAR_0->current_map;
FOR_EACH_FLAT_RANGE(fr, view) {
for (VAR_2 = 0; VAR_2 < fr->mr->VAR_1; ++VA... | [
"static void FUNC_0(AddressSpace *VAR_0)\n{",
"FlatView *view;",
"FlatRange *fr;",
"unsigned VAR_1 = 0;",
"MemoryRegionIoeventfd *ioeventfds = NULL;",
"AddrRange tmp;",
"unsigned VAR_2;",
"view = VAR_0->current_map;",
"FOR_EACH_FLAT_RANGE(fr, view) {",
"for (VAR_2 = 0; VAR_2 < fr->mr->VAR_1; ++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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
18,023 | static int configure_filters(AVInputStream *ist, AVOutputStream *ost)
{
AVFilterContext *curr_filter;
/** filter graph containing all filters including input & output */
AVCodecContext *codec = ost->st->codec;
AVCodecContext *icodec = ist->st->codec;
char args[255];
filt_graph_all = av_... | false | FFmpeg | 0c22311b56e66115675c4a96e4c78547886a4171 | static int configure_filters(AVInputStream *ist, AVOutputStream *ost)
{
AVFilterContext *curr_filter;
AVCodecContext *codec = ost->st->codec;
AVCodecContext *icodec = ist->st->codec;
char args[255];
filt_graph_all = av_mallocz(sizeof(AVFilterGraph));
if(!(ist->input_video_filter... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVInputStream *VAR_0, AVOutputStream *VAR_1)
{
AVFilterContext *curr_filter;
AVCodecContext *codec = VAR_1->st->codec;
AVCodecContext *icodec = VAR_0->st->codec;
char VAR_2[255];
filt_graph_all = av_mallocz(sizeof(AVFilterGraph));
if(!(VAR_0->input_video_filter... | [
"static int FUNC_0(AVInputStream *VAR_0, AVOutputStream *VAR_1)\n{",
"AVFilterContext *curr_filter;",
"AVCodecContext *codec = VAR_1->st->codec;",
"AVCodecContext *icodec = VAR_0->st->codec;",
"char VAR_2[255];",
"filt_graph_all = av_mallocz(sizeof(AVFilterGraph));",
"if(!(VAR_0->input_video_filter = av... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21,
23
],
[
25,
27
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
47
],
[
49
],
[
53
],
[
57
],
[
59
],
[
61
],
... |
18,024 | void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict)
{
QObject *data;
int devfn;
if (do_pcie_aer_inject_error(mon, qdict, &data) < 0) {
return;
}
assert(qobject_type(data) == QTYPE_QDICT);
qdict = qobject_to_qdict(data);
devfn = (int)qdict_get_int(qdict, "d... | false | qemu | ca6b6e1e68ac44b2e8895da10dd1c80dc03d08b7 | void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict)
{
QObject *data;
int devfn;
if (do_pcie_aer_inject_error(mon, qdict, &data) < 0) {
return;
}
assert(qobject_type(data) == QTYPE_QDICT);
qdict = qobject_to_qdict(data);
devfn = (int)qdict_get_int(qdict, "d... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
QObject *data;
int VAR_2;
if (do_pcie_aer_inject_error(VAR_0, VAR_1, &data) < 0) {
return;
}
assert(qobject_type(data) == QTYPE_QDICT);
VAR_1 = qobject_to_qdict(data);
VAR_2 = (int)qdict_get_int(VAR_1, "VAR_2");
mo... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"QObject *data;",
"int VAR_2;",
"if (do_pcie_aer_inject_error(VAR_0, VAR_1, &data) < 0) {",
"return;",
"}",
"assert(qobject_type(data) == QTYPE_QDICT);",
"VAR_1 = qobject_to_qdict(data);",
"VAR_2 = (int)qdict_get_int(VAR_1, \"VAR_2\");",
"monit... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31,
33,
35
],
[
37
]
] |
18,025 | static void spapr_reallocate_hpt(sPAPRMachineState *spapr, int shift,
Error **errp)
{
long rc;
/* Clean up any HPT info from a previous boot */
g_free(spapr->htab);
spapr->htab = NULL;
spapr->htab_shift = 0;
close_htab_fd(spapr);
rc = kvmppc_rese... | false | qemu | c18ad9a54b75495ce61e8b28d353f8eec51768fc | static void spapr_reallocate_hpt(sPAPRMachineState *spapr, int shift,
Error **errp)
{
long rc;
g_free(spapr->htab);
spapr->htab = NULL;
spapr->htab_shift = 0;
close_htab_fd(spapr);
rc = kvmppc_reset_htab(shift);
if (rc < 0) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPRMachineState *VAR_0, int VAR_1,
Error **VAR_2)
{
long VAR_3;
g_free(VAR_0->htab);
VAR_0->htab = NULL;
VAR_0->htab_shift = 0;
close_htab_fd(VAR_0);
VAR_3 = kvmppc_reset_htab(VAR_1);
if (VAR_3 < 0) {
... | [
"static void FUNC_0(sPAPRMachineState *VAR_0, int VAR_1,\nError **VAR_2)\n{",
"long VAR_3;",
"g_free(VAR_0->htab);",
"VAR_0->htab = NULL;",
"VAR_0->htab_shift = 0;",
"close_htab_fd(VAR_0);",
"VAR_3 = kvmppc_reset_htab(VAR_1);",
"if (VAR_3 < 0) {",
"error_setg_errno(VAR_2, errno,\n\"Failed to allocat... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29,
31,
33
],
[
39
],
[
43
],
[
45,
47,
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[
63
],
... |
18,026 | static av_cold int atrac3_decode_init(AVCodecContext *avctx)
{
int i, ret;
int version, delay, samples_per_frame, frame_factor;
const uint8_t *edata_ptr = avctx->extradata;
ATRAC3Context *q = avctx->priv_data;
if (avctx->channels <= 0 || avctx->channels > 2) {
av_log(avctx, AV_LOG_E... | false | FFmpeg | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 | static av_cold int atrac3_decode_init(AVCodecContext *avctx)
{
int i, ret;
int version, delay, samples_per_frame, frame_factor;
const uint8_t *edata_ptr = avctx->extradata;
ATRAC3Context *q = avctx->priv_data;
if (avctx->channels <= 0 || avctx->channels > 2) {
av_log(avctx, AV_LOG_E... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
int VAR_0, VAR_1;
int VAR_2, VAR_3, VAR_4, VAR_5;
const uint8_t *VAR_6 = avctx->extradata;
ATRAC3Context *q = avctx->priv_data;
if (avctx->channels <= 0 || avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "Channel configuration er... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"int VAR_0, VAR_1;",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"const uint8_t *VAR_6 = avctx->extradata;",
"ATRAC3Context *q = avctx->priv_data;",
"if (avctx->channels <= 0 || avctx->channels > 2) {",
"av_log(avctx, AV_LOG_ERROR, \"Channel configuration er... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
53
],
[
55
],
[... |
18,027 | static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
{
OutputStream *ost;
AVStream *st = avformat_new_stream(oc, NULL);
int idx = oc->nb_streams - 1, ret = 0;
const char *bsfs = NULL, *time_base = NULL;
char *next, *codec_... | false | FFmpeg | f1cdc01e7208f9e05cd92127003b3b494ec10cfb | static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
{
OutputStream *ost;
AVStream *st = avformat_new_stream(oc, NULL);
int idx = oc->nb_streams - 1, ret = 0;
const char *bsfs = NULL, *time_base = NULL;
char *next, *codec_... | {
"code": [],
"line_no": []
} | static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)
{
OutputStream *ost;
AVStream *st = avformat_new_stream(oc, NULL);
int VAR_0 = oc->nb_streams - 1, VAR_1 = 0;
const char *VAR_2 = NULL, *VAR_3 = NULL;
char *VAR_4, *VAR_5 = NULL;
... | [
"static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type, int source_index)\n{",
"OutputStream *ost;",
"AVStream *st = avformat_new_stream(oc, NULL);",
"int VAR_0 = oc->nb_streams - 1, VAR_1 = 0;",
"const char *VAR_2 = NULL, *VAR_3 = NULL;",
"char *VAR_4, *VAR_5 = NU... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
],
[
51
... |
18,029 | static int flic_decode_frame_15_16BPP(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
/* Note, the only difference between the 15Bpp and 16Bpp */
/* Format is the pixel format, the packets are proce... | true | FFmpeg | fe99025b167634ceca4bc8118e2b9eeda5769d21 | static int flic_decode_frame_15_16BPP(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data;
int stream_ptr = 0;
int pixel_p... | {
"code": [
" s->frame.linesize[0] * s->avctx->height * 2);"
],
"line_no": [
235
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
FlicDecodeContext *s = (FlicDecodeContext *)VAR_0->priv_data;
int VAR_5 = 0;
int VAR_6;
unsigned char VAR_7;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"FlicDecodeContext *s = (FlicDecodeContext *)VAR_0->priv_data;",
"int VAR_5 = 0;",
"int VAR_6;",
"unsigned char VAR_7;",
"unsigned int VAR_8;",
"int VAR_9;",
"unsigned int VAR_10;",
"int VAR_11;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57... |
18,030 | static void *qemu_tcg_rr_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;
rcu_register_thread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}
qemu_cond_signal(&qemu_... | true | qemu | 08e73c48b053566bfe0c994f154f73991cd0ff0e | static void *qemu_tcg_rr_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;
rcu_register_thread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}
qemu_cond_signal(&qemu_... | {
"code": [],
"line_no": []
} | static void *FUNC_0(void *VAR_0)
{
CPUState *cpu = VAR_0;
rcu_register_thread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}
qemu_cond_signal(&qemu_cpu_cond);
... | [
"static void *FUNC_0(void *VAR_0)\n{",
"CPUState *cpu = VAR_0;",
"rcu_register_thread();",
"qemu_thread_get_self(cpu->thread);",
"CPU_FOREACH(cpu) {",
"cpu->thread_id = qemu_get_thread_id();",
"cpu->created = true;",
"cpu->can_do_io = 1;",
"}",
"qemu_cond_signal(&qemu_cpu_cond);",
"while (first_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
14
],
[
18
],
[
20
],
[
22
],
[
24
],
[
26
],
[
28
],
[
34
],
[
36
],
[
42
],
[
44
],
[
46
],
[
48
],
[
50
],
[
54
],
[
58
],
[
64... |
18,031 | static int decode_slice_header(H264Context *h){
MpegEncContext * const s = &h->s;
int first_mb_in_slice, pps_id;
int num_ref_idx_active_override_flag;
static const uint8_t slice_type_map[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE};
int slice_type;
int default_ref_list_done = 0;
s... | true | FFmpeg | ac658be5db5baa01546715994fbd193a855cbc73 | static int decode_slice_header(H264Context *h){
MpegEncContext * const s = &h->s;
int first_mb_in_slice, pps_id;
int num_ref_idx_active_override_flag;
static const uint8_t slice_type_map[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE};
int slice_type;
int default_ref_list_done = 0;
s... | {
"code": [
" int first_mb_in_slice, pps_id;",
" if(pps_id>255){",
" if(h->dequant_coeff_pps != pps_id){",
" h->dequant_coeff_pps = pps_id;",
" av_log(h->s.avctx, AV_LOG_DEBUG, \"slice:%d %s mb:%d %c pps:%d frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s\\n\","
... | static int FUNC_0(H264Context *VAR_0){
MpegEncContext * const s = &VAR_0->s;
int VAR_1, VAR_2;
int VAR_3;
static const uint8_t VAR_4[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE};
int VAR_5;
int VAR_6 = 0;
s->current_picture.reference= VAR_0->nal_ref_idc != 0;
s->dropable= VAR... | [
"static int FUNC_0(H264Context *VAR_0){",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_1, VAR_2;",
"int VAR_3;",
"static const uint8_t VAR_4[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE};",
"int VAR_5;",
"int VAR_6 = 0;",
"s->current_picture.reference= VAR_0->nal_ref_idc != 0;",
"s->dropable= ... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
18,033 | static int output_packet(AVInputStream *ist, int ist_index,
AVOutputStream **ost_table, int nb_ostreams,
const AVPacket *pkt)
{
AVFormatContext *os;
AVOutputStream *ost;
uint8_t *ptr;
int len, ret, i;
uint8_t *data_buf;
int data_size, go... | true | FFmpeg | df84ac2e7dbf1d4dcb58706c2038668ac892530e | static int output_packet(AVInputStream *ist, int ist_index,
AVOutputStream **ost_table, int nb_ostreams,
const AVPacket *pkt)
{
AVFormatContext *os;
AVOutputStream *ost;
uint8_t *ptr;
int len, ret, i;
uint8_t *data_buf;
int data_size, go... | {
"code": [
" short samples[pkt && pkt->size > AVCODEC_MAX_AUDIO_FRAME_SIZE/2 ? pkt->size : AVCODEC_MAX_AUDIO_FRAME_SIZE/2];",
" case CODEC_TYPE_AUDIO:",
" break;"
],
"line_no": [
23,
73,
109
]
} | static int FUNC_0(AVInputStream *VAR_0, int VAR_1,
AVOutputStream **VAR_2, int VAR_3,
const AVPacket *VAR_4)
{
AVFormatContext *os;
AVOutputStream *ost;
uint8_t *ptr;
int VAR_5, VAR_6, VAR_13;
uint8_t *data_buf;
int VAR_8, VAR_9;
AV... | [
"static int FUNC_0(AVInputStream *VAR_0, int VAR_1,\nAVOutputStream **VAR_2, int VAR_3,\nconst AVPacket *VAR_4)\n{",
"AVFormatContext *os;",
"AVOutputStream *ost;",
"uint8_t *ptr;",
"int VAR_5, VAR_6, VAR_13;",
"uint8_t *data_buf;",
"int VAR_8, VAR_9;",
"AVFrame picture;",
"short VAR_10[VAR_4 && VAR... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
... |
18,035 | static void yuv2yuv1_c(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
uint8_t *aDest, int dstW, int chrDstW)
{
... | false | FFmpeg | 13a099799e89a76eb921ca452e1b04a7a28a9855 | static void yuv2yuv1_c(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
uint8_t *aDest, int dstW, int chrDstW)
{
... | {
"code": [],
"line_no": []
} | static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,
const int16_t *VAR_2, const int16_t *VAR_3,
const int16_t *VAR_4,
uint8_t *VAR_5, uint8_t *VAR_6, uint8_t *VAR_7,
uint8_t *VAR_8, int VAR_9, int VAR_10)
{
int... | [
"static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t *VAR_2, const int16_t *VAR_3,\nconst int16_t *VAR_4,\nuint8_t *VAR_5, uint8_t *VAR_6, uint8_t *VAR_7,\nuint8_t *VAR_8, int VAR_9, int VAR_10)\n{",
"int VAR_11;",
"for (VAR_11=0; VAR_11<VAR_9; VAR_11++) {",
"int VAR_15= (VAR_1[VAR_11]+... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
18,036 | static int teletext_close_decoder(AVCodecContext *avctx)
{
TeletextContext *ctx = avctx->priv_data;
av_dlog(avctx, "lines_total=%u\n", ctx->lines_processed);
while (ctx->nb_pages)
subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
av_freep(&ctx->pages);
vbi_decoder_delete(... | false | FFmpeg | 229843aa359ae0c9519977d7fa952688db63f559 | static int teletext_close_decoder(AVCodecContext *avctx)
{
TeletextContext *ctx = avctx->priv_data;
av_dlog(avctx, "lines_total=%u\n", ctx->lines_processed);
while (ctx->nb_pages)
subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
av_freep(&ctx->pages);
vbi_decoder_delete(... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
TeletextContext *ctx = VAR_0->priv_data;
av_dlog(VAR_0, "lines_total=%u\n", ctx->lines_processed);
while (ctx->nb_pages)
subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);
av_freep(&ctx->pages);
vbi_decoder_delete(ctx->vbi);
... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"TeletextContext *ctx = VAR_0->priv_data;",
"av_dlog(VAR_0, \"lines_total=%u\\n\", ctx->lines_processed);",
"while (ctx->nb_pages)\nsubtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect);",
"av_freep(&ctx->pages);",
"vbi_decoder_delete(ctx->vbi);",
"ctx-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
18,037 | MigrationState *tcp_start_outgoing_migration(const char *host_port,
int64_t bandwidth_limit,
int async)
{
struct sockaddr_in addr;
FdMigrationState *s;
int ret;
if (parse_host_port(&addr, host_port) < 0)
return NULL;
s = qemu_mallocz(sizeof(*s));
if (s =... | false | qemu | 17e909738da65d315d462839a05628580b96f8c1 | MigrationState *tcp_start_outgoing_migration(const char *host_port,
int64_t bandwidth_limit,
int async)
{
struct sockaddr_in addr;
FdMigrationState *s;
int ret;
if (parse_host_port(&addr, host_port) < 0)
return NULL;
s = qemu_mallocz(sizeof(*s));
if (s =... | {
"code": [],
"line_no": []
} | MigrationState *FUNC_0(const char *host_port,
int64_t bandwidth_limit,
int async)
{
struct sockaddr_in VAR_0;
FdMigrationState *s;
int VAR_1;
if (parse_host_port(&VAR_0, host_port) < 0)
return NULL;
s = qemu_mallocz(sizeof(*s));
if (s == NULL)
r... | [
"MigrationState *FUNC_0(const char *host_port,\nint64_t bandwidth_limit,\nint async)\n{",
"struct sockaddr_in VAR_0;",
"FdMigrationState *s;",
"int VAR_1;",
"if (parse_host_port(&VAR_0, host_port) < 0)\nreturn NULL;",
"s = qemu_mallocz(sizeof(*s));",
"if (s == NULL)\nreturn NULL;",
"s->mig_state.cance... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,039 | static void tcx_screen_dump(void *opaque, const char *filename, bool cswitch,
Error **errp)
{
TCXState *s = opaque;
FILE *f;
uint8_t *d, *d1, v;
int ret, y, x;
f = fopen(filename, "wb");
if (!f) {
error_setg(errp, "failed to open file '%s': %s", fil... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static void tcx_screen_dump(void *opaque, const char *filename, bool cswitch,
Error **errp)
{
TCXState *s = opaque;
FILE *f;
uint8_t *d, *d1, v;
int ret, y, x;
f = fopen(filename, "wb");
if (!f) {
error_setg(errp, "failed to open file '%s': %s", fil... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,
Error **VAR_3)
{
TCXState *s = VAR_0;
FILE *f;
uint8_t *d, *d1, v;
int VAR_4, VAR_5, VAR_6;
f = fopen(VAR_1, "wb");
if (!f) {
error_setg(VAR_3, "failed to open file '%s': %s", VAR_1,
... | [
"static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,\nError **VAR_3)\n{",
"TCXState *s = VAR_0;",
"FILE *f;",
"uint8_t *d, *d1, v;",
"int VAR_4, VAR_5, VAR_6;",
"f = fopen(VAR_1, \"wb\");",
"if (!f) {",
"error_setg(VAR_3, \"failed to open file '%s': %s\", VAR_1,\nstrerror(errno));",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
18,040 | static void icp_pic_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
icp_pic_state *s = (icp_pic_state *)opaque;
switch (offset >> 2) {
case 2: /* IRQ_ENABLESET */
s->irq_enabled |= value;
break;
case 3: /* IRQ_ENABLECLR ... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void icp_pic_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
icp_pic_state *s = (icp_pic_state *)opaque;
switch (offset >> 2) {
case 2:
s->irq_enabled |= value;
break;
case 3:
s->irq_enabled &= ~value;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
icp_pic_state *s = (icp_pic_state *)VAR_0;
switch (VAR_1 >> 2) {
case 2:
s->irq_enabled |= VAR_2;
break;
case 3:
s->irq_enabled &= ~VAR_2;
b... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"icp_pic_state *s = (icp_pic_state *)VAR_0;",
"switch (VAR_1 >> 2) {",
"case 2:\ns->irq_enabled |= VAR_2;",
"break;",
"case 3:\ns->irq_enabled &= ~VAR_2;",
"break;",
"case 4:\nif (VAR_2 & 1)\nicp_pic_set_i... | [
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
],
[
45
],
[
47,
49
],
[
51
],
... |
18,041 | static void monitor_readline_cb(void *opaque, const char *input)
{
pstrcpy(monitor_readline_buf, monitor_readline_buf_size, input);
monitor_readline_started = 0;
}
| false | qemu | bb5fc20f7c1c65e95030da3629dd0d7a0cce38cd | static void monitor_readline_cb(void *opaque, const char *input)
{
pstrcpy(monitor_readline_buf, monitor_readline_buf_size, input);
monitor_readline_started = 0;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const char *VAR_1)
{
pstrcpy(monitor_readline_buf, monitor_readline_buf_size, VAR_1);
monitor_readline_started = 0;
}
| [
"static void FUNC_0(void *VAR_0, const char *VAR_1)\n{",
"pstrcpy(monitor_readline_buf, monitor_readline_buf_size, VAR_1);",
"monitor_readline_started = 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,042 | static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const H264Context *h,
DXVA_PicParams_H264 *pp)
{
const H264Picture *current_picture = h->cur_pic_ptr;
const SPS *sps = h->ps.sps;
const PPS *pps = h->ps.pps;
int i, j;
me... | false | FFmpeg | c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8 | static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *ctx, const H264Context *h,
DXVA_PicParams_H264 *pp)
{
const H264Picture *current_picture = h->cur_pic_ptr;
const SPS *sps = h->ps.sps;
const PPS *pps = h->ps.pps;
int i, j;
me... | {
"code": [],
"line_no": []
} | static void FUNC_0(const AVCodecContext *VAR_0, AVDXVAContext *VAR_1, const H264Context *VAR_2,
DXVA_PicParams_H264 *VAR_3)
{
const H264Picture *VAR_4 = VAR_2->cur_pic_ptr;
const SPS *VAR_5 = VAR_2->ps.VAR_5;
const PPS *VAR_6 = VAR_2->ps.VAR_6;
int VAR_7, VAR_8;... | [
"static void FUNC_0(const AVCodecContext *VAR_0, AVDXVAContext *VAR_1, const H264Context *VAR_2,\nDXVA_PicParams_H264 *VAR_3)\n{",
"const H264Picture *VAR_4 = VAR_2->cur_pic_ptr;",
"const SPS *VAR_5 = VAR_2->ps.VAR_5;",
"const PPS *VAR_6 = VAR_2->ps.VAR_6;",
"int VAR_7, VAR_8;",
"memset(VAR_3, 0, sizeof(*... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21,
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
... |
18,043 | static int reg_irqs(CPUS390XState *env, S390PCIBusDevice *pbdev, ZpciFib fib)
{
int ret, len;
ret = css_register_io_adapter(S390_PCIPT_ADAPTER,
FIB_DATA_ISC(ldl_p(&fib.data)), true, false,
&pbdev->routes.adapter.adapter_id);
assert(... | false | qemu | bac45d5147fbe832428944610c70484b18539292 | static int reg_irqs(CPUS390XState *env, S390PCIBusDevice *pbdev, ZpciFib fib)
{
int ret, len;
ret = css_register_io_adapter(S390_PCIPT_ADAPTER,
FIB_DATA_ISC(ldl_p(&fib.data)), true, false,
&pbdev->routes.adapter.adapter_id);
assert(... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUS390XState *VAR_0, S390PCIBusDevice *VAR_1, ZpciFib VAR_2)
{
int VAR_3, VAR_4;
VAR_3 = css_register_io_adapter(S390_PCIPT_ADAPTER,
FIB_DATA_ISC(ldl_p(&VAR_2.data)), true, false,
&VAR_1->routes.adapter.adapter_id);
... | [
"static int FUNC_0(CPUS390XState *VAR_0, S390PCIBusDevice *VAR_1, ZpciFib VAR_2)\n{",
"int VAR_3, VAR_4;",
"VAR_3 = css_register_io_adapter(S390_PCIPT_ADAPTER,\nFIB_DATA_ISC(ldl_p(&VAR_2.data)), true, false,\n&VAR_1->routes.adapter.adapter_id);",
"assert(VAR_3 == 0);",
"VAR_1->summary_ind = get_indicator(ld... | [
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
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53... |
18,046 | static void finish_write_pci_config(sPAPREnvironment *spapr, uint64_t buid,
uint32_t addr, uint32_t size,
uint32_t val, target_ulong rets)
{
PCIDevice *pci_dev;
if ((size != 1) && (size != 2) && (size != 4)) {
/* access must... | false | qemu | 46c5874e9cd752ed8ded31af03472edd8fc3efc1 | static void finish_write_pci_config(sPAPREnvironment *spapr, uint64_t buid,
uint32_t addr, uint32_t size,
uint32_t val, target_ulong rets)
{
PCIDevice *pci_dev;
if ((size != 1) && (size != 2) && (size != 4)) {
rtas... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0, uint64_t VAR_1,
uint32_t VAR_2, uint32_t VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
PCIDevice *pci_dev;
if ((VAR_3 != 1) && (VAR_3 != 2) && (VAR_3 != 4)) {
rtas_st(VAR_... | [
"static void FUNC_0(sPAPREnvironment *VAR_0, uint64_t VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"PCIDevice *pci_dev;",
"if ((VAR_3 != 1) && (VAR_3 != 2) && (VAR_3 != 4)) {",
"rtas_st(VAR_5, 0, RTAS_OUT_HW_ERROR);",
"return;",
"}",
"pci_dev = find_dev(VAR_0, VAR_1,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51
],
[
53
]
] |
18,047 | static int mpc8544_load_device_tree(CPUPPCState *env,
target_phys_addr_t addr,
target_phys_addr_t ramsize,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
... | false | qemu | d1b935659b77ff8e9d4cb84e3f75679f634401f3 | static int mpc8544_load_device_tree(CPUPPCState *env,
target_phys_addr_t addr,
target_phys_addr_t ramsize,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUPPCState *VAR_0,
target_phys_addr_t VAR_1,
target_phys_addr_t VAR_2,
target_phys_addr_t VAR_3,
target_phys_addr_t VAR_4,
... | [
"static int FUNC_0(CPUPPCState *VAR_0,\ntarget_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2,\ntarget_phys_addr_t VAR_3,\ntarget_phys_addr_t VAR_4,\nconst char *VAR_5)\n{",
"int VAR_6 = -1;",
"uint32_t mem_reg_property[] = {0, cpu_to_be32(VAR_2)};",
"int VAR_7;",
"void *VAR_8;",
"uint8_t hypercall[16];",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
18,048 | static void format_string(StringOutputVisitor *sov, Range *r, bool next,
bool human)
{
if (r->end - r->begin > 1) {
if (human) {
g_string_append_printf(sov->string, "0x%" PRIx64 "-0x%" PRIx64,
r->begin, r->end - 1);
} ... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | static void format_string(StringOutputVisitor *sov, Range *r, bool next,
bool human)
{
if (r->end - r->begin > 1) {
if (human) {
g_string_append_printf(sov->string, "0x%" PRIx64 "-0x%" PRIx64,
r->begin, r->end - 1);
} ... | {
"code": [],
"line_no": []
} | static void FUNC_0(StringOutputVisitor *VAR_0, Range *VAR_1, bool VAR_2,
bool VAR_3)
{
if (VAR_1->end - VAR_1->begin > 1) {
if (VAR_3) {
g_string_append_printf(VAR_0->string, "0x%" PRIx64 "-0x%" PRIx64,
VAR_1->begin, VAR_1->end -... | [
"static void FUNC_0(StringOutputVisitor *VAR_0, Range *VAR_1, bool VAR_2,\nbool VAR_3)\n{",
"if (VAR_1->end - VAR_1->begin > 1) {",
"if (VAR_3) {",
"g_string_append_printf(VAR_0->string, \"0x%\" PRIx64 \"-0x%\" PRIx64,\nVAR_1->begin, VAR_1->end - 1);",
"} else {",
"g_string_append_printf(VAR_0->string, \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
18,049 | static void v9fs_setattr(void *opaque)
{
int err = 0;
int32_t fid;
V9fsFidState *fidp;
size_t offset = 7;
V9fsIattr v9iattr;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dI", &fid, &v9iattr);
fidp = get_fid(pdu, fid);
if (fidp == NULL) ... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | static void v9fs_setattr(void *opaque)
{
int err = 0;
int32_t fid;
V9fsFidState *fidp;
size_t offset = 7;
V9fsIattr v9iattr;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dI", &fid, &v9iattr);
fidp = get_fid(pdu, fid);
if (fidp == NULL) ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int VAR_1 = 0;
int32_t fid;
V9fsFidState *fidp;
size_t offset = 7;
V9fsIattr v9iattr;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dI", &fid, &v9iattr);
fidp = get_fid(pdu, fid);
if (fidp == NULL) {
... | [
"static void FUNC_0(void *VAR_0)\n{",
"int VAR_1 = 0;",
"int32_t fid;",
"V9fsFidState *fidp;",
"size_t offset = 7;",
"V9fsIattr v9iattr;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"pdu_unmarshal(pdu, offset, \"dI\", &fid, &v9iattr);",
"fidp = get_fid(pdu, fid);",
"if (fidp == NULL) {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
18,050 | static inline void iwmmxt_load_reg(TCGv var, int reg)
{
tcg_gen_ld_i64(var, cpu_env, offsetof(CPUState, iwmmxt.regs[reg]));
}
| false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static inline void iwmmxt_load_reg(TCGv var, int reg)
{
tcg_gen_ld_i64(var, cpu_env, offsetof(CPUState, iwmmxt.regs[reg]));
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, int VAR_1)
{
tcg_gen_ld_i64(VAR_0, cpu_env, offsetof(CPUState, iwmmxt.regs[VAR_1]));
}
| [
"static inline void FUNC_0(TCGv VAR_0, int VAR_1)\n{",
"tcg_gen_ld_i64(VAR_0, cpu_env, offsetof(CPUState, iwmmxt.regs[VAR_1]));",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,051 | static void process_command(GAState *s, QDict *req)
{
QObject *rsp = NULL;
int ret;
g_assert(req);
g_debug("processing command");
rsp = qmp_dispatch(QOBJECT(req));
if (rsp) {
ret = send_response(s, rsp);
if (ret) {
g_warning("error sending response: %s", s... | false | qemu | ce8c8b7bd8958fde291f7736016015864e7638a2 | static void process_command(GAState *s, QDict *req)
{
QObject *rsp = NULL;
int ret;
g_assert(req);
g_debug("processing command");
rsp = qmp_dispatch(QOBJECT(req));
if (rsp) {
ret = send_response(s, rsp);
if (ret) {
g_warning("error sending response: %s", s... | {
"code": [],
"line_no": []
} | static void FUNC_0(GAState *VAR_0, QDict *VAR_1)
{
QObject *rsp = NULL;
int VAR_2;
g_assert(VAR_1);
g_debug("processing command");
rsp = qmp_dispatch(QOBJECT(VAR_1));
if (rsp) {
VAR_2 = send_response(VAR_0, rsp);
if (VAR_2) {
g_warning("error sending respo... | [
"static void FUNC_0(GAState *VAR_0, QDict *VAR_1)\n{",
"QObject *rsp = NULL;",
"int VAR_2;",
"g_assert(VAR_1);",
"g_debug(\"processing command\");",
"rsp = qmp_dispatch(QOBJECT(VAR_1));",
"if (rsp) {",
"VAR_2 = send_response(VAR_0, rsp);",
"if (VAR_2) {",
"g_warning(\"error sending response: %VAR_... | [
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
]
] |
18,052 | static void qemu_file_set_error(QEMUFile *f, int ret)
{
if (f->last_error == 0) {
f->last_error = ret;
}
}
| false | qemu | 4eb938102b3d533e142de23e255e46da1326fc5a | static void qemu_file_set_error(QEMUFile *f, int ret)
{
if (f->last_error == 0) {
f->last_error = ret;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, int VAR_1)
{
if (VAR_0->last_error == 0) {
VAR_0->last_error = VAR_1;
}
}
| [
"static void FUNC_0(QEMUFile *VAR_0, int VAR_1)\n{",
"if (VAR_0->last_error == 0) {",
"VAR_0->last_error = VAR_1;",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
18,053 | int split_commandline(OptionParseContext *octx, int argc, char *argv[],
const OptionDef *options,
const OptionGroupDef *groups)
{
int optindex = 1;
/* perform system-dependent conversions for arguments list */
prepare_app_arguments(&argc, &argv);
in... | false | FFmpeg | c661cb6672af5ebcb900ec8766b24761bd2ab011 | int split_commandline(OptionParseContext *octx, int argc, char *argv[],
const OptionDef *options,
const OptionGroupDef *groups)
{
int optindex = 1;
prepare_app_arguments(&argc, &argv);
init_parse_context(octx, groups);
av_log(NULL, AV_LOG_DEBU... | {
"code": [],
"line_no": []
} | int FUNC_0(OptionParseContext *VAR_0, int VAR_1, char *VAR_2[],
const OptionDef *VAR_3,
const OptionGroupDef *VAR_4)
{
int VAR_5 = 1;
prepare_app_arguments(&VAR_1, &VAR_2);
init_parse_context(VAR_0, VAR_4);
av_log(NULL, AV_LOG_DEBUG, "Splittin... | [
"int FUNC_0(OptionParseContext *VAR_0, int VAR_1, char *VAR_2[],\nconst OptionDef *VAR_3,\nconst OptionGroupDef *VAR_4)\n{",
"int VAR_5 = 1;",
"prepare_app_arguments(&VAR_1, &VAR_2);",
"init_parse_context(VAR_0, VAR_4);",
"av_log(NULL, AV_LOG_DEBUG, \"Splitting the commandline.\\n\");",
"while (VAR_5 < VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57
],
[
59
],
[... |
18,054 | static target_ulong h_get_term_char(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong reg = args[0];
target_ulong *len = args + 0;
target_ulong *char0_7 = args + 1;
target_ulong *char8_15 = args + 2;
VIOsPAPRDev... | false | qemu | 3feef8ad17af7307373b9e88b9d7ecb98eeb99da | static target_ulong h_get_term_char(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong reg = args[0];
target_ulong *len = args + 0;
target_ulong *char0_7 = args + 1;
target_ulong *char8_15 = args + 2;
VIOsPAPRDev... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(CPUState *env, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
target_ulong reg = args[0];
target_ulong *len = args + 0;
target_ulong *char0_7 = args + 1;
target_ulong *char8_15 = args + 2;
VIOsPAPRDevice *sdev... | [
"static target_ulong FUNC_0(CPUState *env, sPAPREnvironment *spapr,\ntarget_ulong opcode, target_ulong *args)\n{",
"target_ulong reg = args[0];",
"target_ulong *len = args + 0;",
"target_ulong *char0_7 = args + 1;",
"target_ulong *char8_15 = args + 2;",
"VIOsPAPRDevice *sdev = spapr_vio_find_by_reg(spapr-... | [
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
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
18,055 | static void qdev_print_devinfo(ObjectClass *klass, void *opaque)
{
DeviceClass *dc;
bool *show_no_user = opaque;
dc = (DeviceClass *)object_class_dynamic_cast(klass, TYPE_DEVICE);
if (!dc || (show_no_user && !*show_no_user && dc->no_user)) {
return;
}
error_printf("name \"%... | false | qemu | 6acbe4c6f18e7de00481ff30574262b58526de45 | static void qdev_print_devinfo(ObjectClass *klass, void *opaque)
{
DeviceClass *dc;
bool *show_no_user = opaque;
dc = (DeviceClass *)object_class_dynamic_cast(klass, TYPE_DEVICE);
if (!dc || (show_no_user && !*show_no_user && dc->no_user)) {
return;
}
error_printf("name \"%... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc;
bool *show_no_user = VAR_1;
dc = (DeviceClass *)object_class_dynamic_cast(VAR_0, TYPE_DEVICE);
if (!dc || (show_no_user && !*show_no_user && dc->no_user)) {
return;
}
error_printf("name \"%s\"", object_c... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc;",
"bool *show_no_user = VAR_1;",
"dc = (DeviceClass *)object_class_dynamic_cast(VAR_0, TYPE_DEVICE);",
"if (!dc || (show_no_user && !*show_no_user && dc->no_user)) {",
"return;",
"}",
"error_printf(\"name \\\"%s\\\"\", object_... | [
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
18,056 | static void keyword_literal(void)
{
QObject *obj;
QBool *qbool;
QObject *null;
QString *str;
obj = qobject_from_json("true");
g_assert(obj != NULL);
g_assert(qobject_type(obj) == QTYPE_QBOOL);
qbool = qobject_to_qbool(obj);
g_assert(qbool_get_bool(qbool) == true);
... | false | qemu | dfad9ec4e9f15344f300996ad8c6f3eaf699d195 | static void keyword_literal(void)
{
QObject *obj;
QBool *qbool;
QObject *null;
QString *str;
obj = qobject_from_json("true");
g_assert(obj != NULL);
g_assert(qobject_type(obj) == QTYPE_QBOOL);
qbool = qobject_to_qbool(obj);
g_assert(qbool_get_bool(qbool) == true);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
QObject *obj;
QBool *qbool;
QObject *null;
QString *str;
obj = qobject_from_json("true");
g_assert(obj != NULL);
g_assert(qobject_type(obj) == QTYPE_QBOOL);
qbool = qobject_to_qbool(obj);
g_assert(qbool_get_bool(qbool) == true);
str = q... | [
"static void FUNC_0(void)\n{",
"QObject *obj;",
"QBool *qbool;",
"QObject *null;",
"QString *str;",
"obj = qobject_from_json(\"true\");",
"g_assert(obj != NULL);",
"g_assert(qobject_type(obj) == QTYPE_QBOOL);",
"qbool = qobject_to_qbool(obj);",
"g_assert(qbool_get_bool(qbool) == true);",
"str = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
... |
18,057 | int audio_available(void)
{
#ifdef HAS_AUDIO
return 1;
#else
return 0;
#endif
}
| false | qemu | ffa48cf5ab719e1e181e51b87bc0f5d397b791fa | int audio_available(void)
{
#ifdef HAS_AUDIO
return 1;
#else
return 0;
#endif
}
| {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
#ifdef HAS_AUDIO
return 1;
#else
return 0;
#endif
}
| [
"int FUNC_0(void)\n{",
"#ifdef HAS_AUDIO\nreturn 1;",
"#else\nreturn 0;",
"#endif\n}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
]
] |
18,058 | int kvm_irqchip_remove_irq_notifier(KVMState *s, EventNotifier *n, int virq)
{
return kvm_irqchip_remove_irqfd(s, event_notifier_get_fd(n), virq);
}
| false | qemu | b131c74a0e485b084ddaffc8214c8a19af492be7 | int kvm_irqchip_remove_irq_notifier(KVMState *s, EventNotifier *n, int virq)
{
return kvm_irqchip_remove_irqfd(s, event_notifier_get_fd(n), virq);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(KVMState *VAR_0, EventNotifier *VAR_1, int VAR_2)
{
return kvm_irqchip_remove_irqfd(VAR_0, event_notifier_get_fd(VAR_1), VAR_2);
}
| [
"int FUNC_0(KVMState *VAR_0, EventNotifier *VAR_1, int VAR_2)\n{",
"return kvm_irqchip_remove_irqfd(VAR_0, event_notifier_get_fd(VAR_1), VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,059 | static void vapic_reset(DeviceState *dev)
{
VAPICROMState *s = VAPIC(dev);
if (s->state == VAPIC_ACTIVE) {
s->state = VAPIC_STANDBY;
}
vapic_enable_tpr_reporting(false);
}
| false | qemu | c056bc3f3464cfae1c94b7dd633d3ec13b13b655 | static void vapic_reset(DeviceState *dev)
{
VAPICROMState *s = VAPIC(dev);
if (s->state == VAPIC_ACTIVE) {
s->state = VAPIC_STANDBY;
}
vapic_enable_tpr_reporting(false);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0)
{
VAPICROMState *s = VAPIC(VAR_0);
if (s->state == VAPIC_ACTIVE) {
s->state = VAPIC_STANDBY;
}
vapic_enable_tpr_reporting(false);
}
| [
"static void FUNC_0(DeviceState *VAR_0)\n{",
"VAPICROMState *s = VAPIC(VAR_0);",
"if (s->state == VAPIC_ACTIVE) {",
"s->state = VAPIC_STANDBY;",
"}",
"vapic_enable_tpr_reporting(false);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
18,060 | static int kvm_get_sregs(CPUState *env)
{
struct kvm_sregs sregs;
uint32_t hflags;
int bit, i, ret;
ret = kvm_vcpu_ioctl(env, KVM_GET_SREGS, &sregs);
if (ret < 0)
return ret;
/* There can only be one pending IRQ set in the bitmap at a time, so try
to find it and save ... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | static int kvm_get_sregs(CPUState *env)
{
struct kvm_sregs sregs;
uint32_t hflags;
int bit, i, ret;
ret = kvm_vcpu_ioctl(env, KVM_GET_SREGS, &sregs);
if (ret < 0)
return ret;
env->interrupt_injected = -1;
for (i = 0; i < ARRAY_SIZE(sregs.interrupt_bitmap); i++) {... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
struct kvm_sregs VAR_1;
uint32_t hflags;
int VAR_2, VAR_3, VAR_4;
VAR_4 = kvm_vcpu_ioctl(VAR_0, KVM_GET_SREGS, &VAR_1);
if (VAR_4 < 0)
return VAR_4;
VAR_0->interrupt_injected = -1;
for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(VAR_1.inte... | [
"static int FUNC_0(CPUState *VAR_0)\n{",
"struct kvm_sregs VAR_1;",
"uint32_t hflags;",
"int VAR_2, VAR_3, VAR_4;",
"VAR_4 = kvm_vcpu_ioctl(VAR_0, KVM_GET_SREGS, &VAR_1);",
"if (VAR_4 < 0)\nreturn VAR_4;",
"VAR_0->interrupt_injected = -1;",
"for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(VAR_1.interrupt_bitmap); ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
18,062 | static void tm_get(QEMUFile *f, struct tm *tm) {
tm->tm_sec = qemu_get_be16(f);
tm->tm_min = qemu_get_be16(f);
tm->tm_hour = qemu_get_be16(f);
tm->tm_mday = qemu_get_be16(f);
tm->tm_min = qemu_get_be16(f);
tm->tm_year = qemu_get_be16(f);
}
| false | qemu | f0495f56c9f4574140c392bdbad42721ba692d19 | static void tm_get(QEMUFile *f, struct tm *tm) {
tm->tm_sec = qemu_get_be16(f);
tm->tm_min = qemu_get_be16(f);
tm->tm_hour = qemu_get_be16(f);
tm->tm_mday = qemu_get_be16(f);
tm->tm_min = qemu_get_be16(f);
tm->tm_year = qemu_get_be16(f);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, struct VAR_1 *VAR_1) {
VAR_1->tm_sec = qemu_get_be16(VAR_0);
VAR_1->tm_min = qemu_get_be16(VAR_0);
VAR_1->tm_hour = qemu_get_be16(VAR_0);
VAR_1->tm_mday = qemu_get_be16(VAR_0);
VAR_1->tm_min = qemu_get_be16(VAR_0);
VAR_1->tm_year = qemu_get_be16(VAR_0);
... | [
"static void FUNC_0(QEMUFile *VAR_0, struct VAR_1 *VAR_1) {",
"VAR_1->tm_sec = qemu_get_be16(VAR_0);",
"VAR_1->tm_min = qemu_get_be16(VAR_0);",
"VAR_1->tm_hour = qemu_get_be16(VAR_0);",
"VAR_1->tm_mday = qemu_get_be16(VAR_0);",
"VAR_1->tm_min = qemu_get_be16(VAR_0);",
"VAR_1->tm_year = qemu_get_be16(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,063 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer)
{
return net_vhost_user_init(peer, "vhost_user", 0, 0, 0);
}
| false | qemu | 03ce574442d2ee82f59a5232a24492ad80858d75 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer)
{
return net_vhost_user_init(peer, "vhost_user", 0, 0, 0);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2)
{
return net_vhost_user_init(VAR_2, "vhost_user", 0, 0, 0);
}
| [
"int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2)\n{",
"return net_vhost_user_init(VAR_2, \"vhost_user\", 0, 0, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
18,065 | static void net_socket_send(void *opaque)
{
NetSocketState *s = opaque;
int size, err;
unsigned l;
uint8_t buf1[NET_BUFSIZE];
const uint8_t *buf;
size = qemu_recv(s->fd, buf1, sizeof(buf1), 0);
if (size < 0) {
err = socket_error();
if (err != EWOULDBLOCK)
... | false | qemu | 6e99c631f116221d169ea53953d91b8aa74d297a | static void net_socket_send(void *opaque)
{
NetSocketState *s = opaque;
int size, err;
unsigned l;
uint8_t buf1[NET_BUFSIZE];
const uint8_t *buf;
size = qemu_recv(s->fd, buf1, sizeof(buf1), 0);
if (size < 0) {
err = socket_error();
if (err != EWOULDBLOCK)
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
NetSocketState *s = VAR_0;
int VAR_1, VAR_2;
unsigned VAR_3;
uint8_t buf1[NET_BUFSIZE];
const uint8_t *VAR_4;
VAR_1 = qemu_recv(s->fd, buf1, sizeof(buf1), 0);
if (VAR_1 < 0) {
VAR_2 = socket_error();
if (VAR_2 != EWOULDBLOCK)
... | [
"static void FUNC_0(void *VAR_0)\n{",
"NetSocketState *s = VAR_0;",
"int VAR_1, VAR_2;",
"unsigned VAR_3;",
"uint8_t buf1[NET_BUFSIZE];",
"const uint8_t *VAR_4;",
"VAR_1 = qemu_recv(s->fd, buf1, sizeof(buf1), 0);",
"if (VAR_1 < 0) {",
"VAR_2 = socket_error();",
"if (VAR_2 != EWOULDBLOCK)\ngoto eoc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
18,066 | void spapr_tce_table_enable(sPAPRTCETable *tcet,
uint32_t page_shift, uint64_t bus_offset,
uint32_t nb_table)
{
if (tcet->nb_table) {
error_report("Warning: trying to enable already enabled TCE table");
return;
}
tcet->bus_off... | false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | void spapr_tce_table_enable(sPAPRTCETable *tcet,
uint32_t page_shift, uint64_t bus_offset,
uint32_t nb_table)
{
if (tcet->nb_table) {
error_report("Warning: trying to enable already enabled TCE table");
return;
}
tcet->bus_off... | {
"code": [],
"line_no": []
} | void FUNC_0(sPAPRTCETable *VAR_0,
uint32_t VAR_1, uint64_t VAR_2,
uint32_t VAR_3)
{
if (VAR_0->VAR_3) {
error_report("Warning: trying to enable already enabled TCE table");
return;
}
VAR_0->VAR_2 = VAR_2;
VAR_0->VAR_1 = V... | [
"void FUNC_0(sPAPRTCETable *VAR_0,\nuint32_t VAR_1, uint64_t VAR_2,\nuint32_t VAR_3)\n{",
"if (VAR_0->VAR_3) {",
"error_report(\"Warning: trying to enable already enabled TCE table\");",
"return;",
"}",
"VAR_0->VAR_2 = VAR_2;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->VAR_3 = VAR_3;",
"VAR_0->table = spapr_... | [
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
],
[
39,
41
],
[
43
],
[
45
]
] |
18,068 | static void lcd_refresh(void *opaque)
{
musicpal_lcd_state *s = opaque;
int x, y;
for (x = 0; x < 128; x++)
for (y = 0; y < 64; y++)
if (s->video_ram[x + (y/8)*128] & (1 << (y % 8)))
set_lcd_pixel(s, x, y, MP_LCD_TEXTCOLOR);
else
set... | false | qemu | 0266f2c733911ca3f70e009e3230c790c800e524 | static void lcd_refresh(void *opaque)
{
musicpal_lcd_state *s = opaque;
int x, y;
for (x = 0; x < 128; x++)
for (y = 0; y < 64; y++)
if (s->video_ram[x + (y/8)*128] & (1 << (y % 8)))
set_lcd_pixel(s, x, y, MP_LCD_TEXTCOLOR);
else
set... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
musicpal_lcd_state *s = VAR_0;
int VAR_1, VAR_2;
for (VAR_1 = 0; VAR_1 < 128; VAR_1++)
for (VAR_2 = 0; VAR_2 < 64; VAR_2++)
if (s->video_ram[VAR_1 + (VAR_2/8)*128] & (1 << (VAR_2 % 8)))
set_lcd_pixel(s, VAR_1, VAR_2, MP_LCD_TEXTC... | [
"static void FUNC_0(void *VAR_0)\n{",
"musicpal_lcd_state *s = VAR_0;",
"int VAR_1, VAR_2;",
"for (VAR_1 = 0; VAR_1 < 128; VAR_1++)",
"for (VAR_2 = 0; VAR_2 < 64; VAR_2++)",
"if (s->video_ram[VAR_1 + (VAR_2/8)*128] & (1 << (VAR_2 % 8)))\nset_lcd_pixel(s, VAR_1, VAR_2, MP_LCD_TEXTCOLOR);",
"else\nset_lcd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
27
]
] |
18,069 | static inline int fs_channel(target_phys_addr_t addr)
{
/* Every channel has a 0x2000 ctrl register map. */
return addr >> 13;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static inline int fs_channel(target_phys_addr_t addr)
{
return addr >> 13;
}
| {
"code": [],
"line_no": []
} | static inline int FUNC_0(target_phys_addr_t VAR_0)
{
return VAR_0 >> 13;
}
| [
"static inline int FUNC_0(target_phys_addr_t VAR_0)\n{",
"return VAR_0 >> 13;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
]
] |
18,070 | static int ffm_write_packet(AVFormatContext *s, int stream_index,
UINT8 *buf, int size, int force_pts)
{
AVStream *st = s->streams[stream_index];
FFMStream *fst = st->priv_data;
INT64 pts;
UINT8 header[FRAME_HEADER_SIZE];
int duration;
if (st->codec.codec_ty... | true | FFmpeg | f694168d524d1c84f5f20f4260fcab1f4d8c11d7 | static int ffm_write_packet(AVFormatContext *s, int stream_index,
UINT8 *buf, int size, int force_pts)
{
AVStream *st = s->streams[stream_index];
FFMStream *fst = st->priv_data;
INT64 pts;
UINT8 header[FRAME_HEADER_SIZE];
int duration;
if (st->codec.codec_ty... | {
"code": [
" if (st->codec.coded_picture->key_frame)"
],
"line_no": [
39
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
UINT8 *VAR_2, int VAR_3, int VAR_4)
{
AVStream *st = VAR_0->streams[VAR_1];
FFMStream *fst = st->priv_data;
INT64 pts;
UINT8 header[FRAME_HEADER_SIZE];
int VAR_5;
if (st->codec.codec_type == CODEC_TYPE_AUD... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nUINT8 *VAR_2, int VAR_3, int VAR_4)\n{",
"AVStream *st = VAR_0->streams[VAR_1];",
"FFMStream *fst = st->priv_data;",
"INT64 pts;",
"UINT8 header[FRAME_HEADER_SIZE];",
"int VAR_5;",
"if (st->codec.codec_type == CODEC_TYPE_AUDIO) {",
"VAR_5 = ((floa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
18,071 | static void v9fs_lock(void *opaque)
{
int8_t status;
V9fsFlock *flock;
size_t offset = 7;
struct stat stbuf;
V9fsFidState *fidp;
int32_t fid, err = 0;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
flock = g_malloc(sizeof(*flock));
pdu_unmarshal(pdu, offset, "dbdqqds", &fid, &floc... | true | qemu | c572f23a3e7180dbeab5e86583e43ea2afed6271 | static void v9fs_lock(void *opaque)
{
int8_t status;
V9fsFlock *flock;
size_t offset = 7;
struct stat stbuf;
V9fsFidState *fidp;
int32_t fid, err = 0;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
flock = g_malloc(sizeof(*flock));
pdu_unmarshal(pdu, offset, "dbdqqds", &fid, &floc... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int8_t status;
V9fsFlock *flock;
size_t offset = 7;
struct stat VAR_1;
V9fsFidState *fidp;
int32_t fid, err = 0;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
flock = g_malloc(sizeof(*flock));
pdu_unmarshal(pdu, offset, "dbdqqds", &fid, &flock->ty... | [
"static void FUNC_0(void *VAR_0)\n{",
"int8_t status;",
"V9fsFlock *flock;",
"size_t offset = 7;",
"struct stat VAR_1;",
"V9fsFidState *fidp;",
"int32_t fid, err = 0;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"flock = g_malloc(sizeof(*flock));",
"pdu_unmarshal(pdu, offset, \"dbdqqds\"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
18,073 | static int get_last_needed_nal(H264Context *h)
{
int nals_needed = 0;
int i;
for (i = 0; i < h->pkt.nb_nals; i++) {
H2645NAL *nal = &h->pkt.nals[i];
GetBitContext gb;
/* packets can sometimes contain multiple PPS/SPS,
* e.g. two PAFF field pictures in one packet,... | true | FFmpeg | 76f7e70aa04fc5dbef5242b11cbf8fe4499f61d4 | static int get_last_needed_nal(H264Context *h)
{
int nals_needed = 0;
int i;
for (i = 0; i < h->pkt.nb_nals; i++) {
H2645NAL *nal = &h->pkt.nals[i];
GetBitContext gb;
switch (nal->type) {
case H264_NAL_SPS:
case H264_NAL_PPS:
... | {
"code": [
" int i;",
" init_get_bits(&gb, nal->data + 1, (nal->size - 1) * 8);"
],
"line_no": [
7,
43
]
} | static int FUNC_0(H264Context *VAR_0)
{
int VAR_1 = 0;
int VAR_2;
for (VAR_2 = 0; VAR_2 < VAR_0->pkt.nb_nals; VAR_2++) {
H2645NAL *nal = &VAR_0->pkt.nals[VAR_2];
GetBitContext gb;
switch (nal->type) {
case H264_NAL_SPS:
case H264_NAL_PPS:
... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"int VAR_1 = 0;",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < VAR_0->pkt.nb_nals; VAR_2++) {",
"H2645NAL *nal = &VAR_0->pkt.nals[VAR_2];",
"GetBitContext gb;",
"switch (nal->type) {",
"case H264_NAL_SPS:\ncase H264_NAL_PPS:\nVAR_1 = VAR_2;",
"break;",
"case H... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37,
39,
41,
43
],
[
45,
47
],
[
49
],
[
51
],
[
55
],
[
57
]
] |
18,075 | int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
{
int i;
Picture *pic;
s->mb_skipped = 0;
assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
/* mark&release old frames */
if (s->pict_type != AV_PICTURE_TYPE_B && s->last_pictur... | true | FFmpeg | 80469eafb747018cb9d9a2547f65def715d073b2 | int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
{
int i;
Picture *pic;
s->mb_skipped = 0;
assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && s->last_picture_ptr ... | {
"code": [
" free_frame_buffer(s, s->last_picture_ptr);",
" if (s->picture[i].f.data[0] && &s->picture[i] != s->next_picture_ptr && s->picture[i].f.reference) {",
" av_log(avctx, AV_LOG_ERROR, \"releasing zombie picture\\n\");"
],
"line_no": [
23,
35... | int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1)
{
int VAR_3;
Picture *pic;
VAR_0->mb_skipped = 0;
assert(VAR_0->last_picture_ptr==NULL || VAR_0->out_format != FMT_H264 || VAR_0->codec_id == CODEC_ID_SVQ3);
if (VAR_0->pict_type != AV_PICTURE_TYPE_B && VAR_0->last_picture_ptr ... | [
"int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1)\n{",
"int VAR_3;",
"Picture *pic;",
"VAR_0->mb_skipped = 0;",
"assert(VAR_0->last_picture_ptr==NULL || VAR_0->out_format != FMT_H264 || VAR_0->codec_id == CODEC_ID_SVQ3);",
"if (VAR_0->pict_type != AV_PICTURE_TYPE_B && VAR_0->last_picture_ptr && VA... | [
0,
0,
0,
0,
0,
0,
0,
1,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
... |
18,076 | long vnc_client_write_sasl(VncState *vs)
{
long ret;
VNC_DEBUG("Write SASL: Pending output %p size %zd offset %zd "
"Encoded: %p size %d offset %d\n",
vs->output.buffer, vs->output.capacity, vs->output.offset,
vs->sasl.encoded, vs->sasl.encodedLength, vs->sasl.e... | true | qemu | ada8d2e4369ea49677d8672ac81bce73eefd5b54 | long vnc_client_write_sasl(VncState *vs)
{
long ret;
VNC_DEBUG("Write SASL: Pending output %p size %zd offset %zd "
"Encoded: %p size %d offset %d\n",
vs->output.buffer, vs->output.capacity, vs->output.offset,
vs->sasl.encoded, vs->sasl.encodedLength, vs->sasl.e... | {
"code": [],
"line_no": []
} | long FUNC_0(VncState *VAR_0)
{
long VAR_1;
VNC_DEBUG("Write SASL: Pending output %p size %zd offset %zd "
"Encoded: %p size %d offset %d\n",
VAR_0->output.buffer, VAR_0->output.capacity, VAR_0->output.offset,
VAR_0->sasl.encoded, VAR_0->sasl.encodedLength, VAR_0... | [
"long FUNC_0(VncState *VAR_0)\n{",
"long VAR_1;",
"VNC_DEBUG(\"Write SASL: Pending output %p size %zd offset %zd \"\n\"Encoded: %p size %d offset %d\\n\",\nVAR_0->output.buffer, VAR_0->output.capacity, VAR_0->output.offset,\nVAR_0->sasl.encoded, VAR_0->sasl.encodedLength, VAR_0->sasl.encodedOffset);",
"if (!V... | [
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
],
[
19
],
[
21
],
[
23,
25,
27,
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
46,
48,
50
],
[
52,
54
],
[
58
],
[
60
],
[
67
],
... |
18,079 | static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
do_unassigned_access(addr, 1, 0, 0... | true | qemu | b14ef7c9ab41ea824c3ccadb070ad95567cca84e | static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
do_unassigned_access(addr, 1, 0, 0... | {
"code": [
" do_unassigned_access(addr, 1, 0, 0, 1);"
],
"line_no": [
13
]
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", VAR_1, VAR_2);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
do_unassigned_access(VAR_1, 1, 0, 0, 1);
#e... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{",
"#ifdef DEBUG_UNASSIGNED\nprintf(\"Unassigned mem write \" TARGET_FMT_plx \" = 0x%x\\n\", VAR_1, VAR_2);",
"#endif\n#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)\ndo_unassigned_access(VAR_1, 1, 0, ... | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11,
13
],
[
15,
17
]
] |
18,080 | static void virtio_mmio_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = virtio_mmio_realizefn;
dc->reset = virtio_mmio_reset;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = virtio_mmio_properties;
} | true | qemu | e4f4fb1eca795e36f363b4647724221e774523c1 | static void virtio_mmio_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = virtio_mmio_realizefn;
dc->reset = virtio_mmio_reset;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = virtio_mmio_properties;
} | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = virtio_mmio_realizefn;
dc->reset = virtio_mmio_reset;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = virtio_mmio_properties;
} | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = virtio_mmio_realizefn;",
"dc->reset = virtio_mmio_reset;",
"set_bit(DEVICE_CATEGORY_MISC, dc->categories);",
"dc->props = virtio_mmio_properties;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
22
]
] |
18,082 | void prepare_play(void)
{
AVOutputFormat *ofmt;
ofmt = guess_format("audio_device", NULL, NULL);
if (!ofmt) {
fprintf(stderr, "Could not find audio device\n");
exit(1);
}
opt_output_file(audio_device);
}
| true | FFmpeg | bf5af5687569e34d6e3a4d31fc6bb5dc44efdb29 | void prepare_play(void)
{
AVOutputFormat *ofmt;
ofmt = guess_format("audio_device", NULL, NULL);
if (!ofmt) {
fprintf(stderr, "Could not find audio device\n");
exit(1);
}
opt_output_file(audio_device);
}
| {
"code": [
" AVOutputFormat *ofmt;",
" ofmt = guess_format(\"audio_device\", NULL, NULL);",
" if (!ofmt) {"
],
"line_no": [
5,
7,
9
]
} | void FUNC_0(void)
{
AVOutputFormat *ofmt;
ofmt = guess_format("audio_device", NULL, NULL);
if (!ofmt) {
fprintf(stderr, "Could not find audio device\n");
exit(1);
}
opt_output_file(audio_device);
}
| [
"void FUNC_0(void)\n{",
"AVOutputFormat *ofmt;",
"ofmt = guess_format(\"audio_device\", NULL, NULL);",
"if (!ofmt) {",
"fprintf(stderr, \"Could not find audio device\\n\");",
"exit(1);",
"}",
"opt_output_file(audio_device);",
"}"
] | [
0,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
18,083 | static bool get_queued_page(RAMState *rs, PageSearchStatus *pss,
ram_addr_t *ram_addr_abs)
{
RAMBlock *block;
ram_addr_t offset;
bool dirty;
do {
block = unqueue_page(rs, &offset, ram_addr_abs);
/*
* We're sending this page, and since it's... | true | qemu | 06b106889a09277617fc8c542397a9f595ee605a | static bool get_queued_page(RAMState *rs, PageSearchStatus *pss,
ram_addr_t *ram_addr_abs)
{
RAMBlock *block;
ram_addr_t offset;
bool dirty;
do {
block = unqueue_page(rs, &offset, ram_addr_abs);
if (block) {
unsigned... | {
"code": [
" ram_addr_t *ram_addr_abs)",
" block = unqueue_page(rs, &offset, ram_addr_abs);",
" dirty = test_bit(*ram_addr_abs >> TARGET_PAGE_BITS, bitmap);",
" trace_get_queued_page_not_dirty(",
" block->idstr, (uint6... | static bool FUNC_0(RAMState *rs, PageSearchStatus *pss,
ram_addr_t *ram_addr_abs)
{
RAMBlock *block;
ram_addr_t offset;
bool dirty;
do {
block = unqueue_page(rs, &offset, ram_addr_abs);
if (block) {
unsigned long *VA... | [
"static bool FUNC_0(RAMState *rs, PageSearchStatus *pss,\nram_addr_t *ram_addr_abs)\n{",
"RAMBlock *block;",
"ram_addr_t offset;",
"bool dirty;",
"do {",
"block = unqueue_page(rs, &offset, ram_addr_abs);",
"if (block) {",
"unsigned long *VAR_0;",
"VAR_0 = atomic_rcu_read(&rs->ram_bitmap)->bmap;",
... | [
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43,
45,
47,
49
],
[
51
],
[
53,
55,
57
],
[
59
],
[
61
],
[... |
18,084 | static int sp5x_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVPacket avpkt_recoded;
const int qscale = 5;
const uint8_t *buf_ptr;
... | true | FFmpeg | 89f903b3d5ec38c9c5d90fba7e626fa0eda61a32 | static int sp5x_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVPacket avpkt_recoded;
const int qscale = 5;
const uint8_t *buf_ptr;
... | {
"code": [
" avctx->flags &= ~CODEC_FLAG_EMU_EDGE;"
],
"line_no": [
113
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
AVPacket avpkt_recoded;
const int VAR_6 = 5;
const uint8_t *VAR_7;
uint8_t *reco... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"AVPacket avpkt_recoded;",
"const int VAR_6 = 5;",
"const uint8_t *VAR_7;",
"uint8_t *recoded;",
"int VAR_8 = 0, VAR_9 = 0;",
"if (!VAR_0->wi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
31
],
[
35
],
[
37,
39
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
... |
18,085 | int kvm_arch_add_msi_route_post(struct kvm_irq_routing_entry *route,
int vector, PCIDevice *dev)
{
static bool notify_list_inited = false;
MSIRouteEntry *entry;
if (!dev) {
/* These are (possibly) IOAPIC routes only used for split
* kernel irqchip mode, while... | true | qemu | e1d4fb2de594ab0cbe78846bc79617b9bd50c867 | int kvm_arch_add_msi_route_post(struct kvm_irq_routing_entry *route,
int vector, PCIDevice *dev)
{
static bool notify_list_inited = false;
MSIRouteEntry *entry;
if (!dev) {
return 0;
entry = g_new0(MSIRouteEntry, 1);
entry->dev = dev;
entry->vec... | {
"code": [],
"line_no": []
} | int FUNC_0(struct kvm_irq_routing_entry *VAR_0,
int VAR_1, PCIDevice *VAR_2)
{
static bool VAR_3 = false;
MSIRouteEntry *entry;
if (!VAR_2) {
return 0;
entry = g_new0(MSIRouteEntry, 1);
entry->VAR_2 = VAR_2;
entry->VAR_1 = VAR_1;
entry->virq... | [
"int FUNC_0(struct kvm_irq_routing_entry *VAR_0,\nint VAR_1, PCIDevice *VAR_2)\n{",
"static bool VAR_3 = false;",
"MSIRouteEntry *entry;",
"if (!VAR_2) {",
"return 0;",
"entry = g_new0(MSIRouteEntry, 1);",
"entry->VAR_2 = VAR_2;",
"entry->VAR_1 = VAR_1;",
"entry->virq = VAR_0->gsi;",
"QLIST_INSERT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
]
] |
18,086 | static int vorbis_parse_setup_hdr_modes(vorbis_context *vc) {
GetBitContext *gb=&vc->gb;
uint_fast8_t i;
vc->mode_count=get_bits(gb, 6)+1;
vc->modes=av_mallocz(vc->mode_count * sizeof(vorbis_mode));
AV_DEBUG(" There are %d modes.\n", vc->mode_count);
for(i=0;i<vc->mode_count;++i) {
... | true | FFmpeg | e5b0cfb541035967f4b2fcc49a48c1103a8bce62 | static int vorbis_parse_setup_hdr_modes(vorbis_context *vc) {
GetBitContext *gb=&vc->gb;
uint_fast8_t i;
vc->mode_count=get_bits(gb, 6)+1;
vc->modes=av_mallocz(vc->mode_count * sizeof(vorbis_mode));
AV_DEBUG(" There are %d modes.\n", vc->mode_count);
for(i=0;i<vc->mode_count;++i) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(vorbis_context *VAR_0) {
GetBitContext *gb=&VAR_0->gb;
uint_fast8_t i;
VAR_0->mode_count=get_bits(gb, 6)+1;
VAR_0->modes=av_mallocz(VAR_0->mode_count * sizeof(vorbis_mode));
AV_DEBUG(" There are %d modes.\n", VAR_0->mode_count);
for(i=0;i<VAR_0->mode_count;++i) {
... | [
"static int FUNC_0(vorbis_context *VAR_0) {",
"GetBitContext *gb=&VAR_0->gb;",
"uint_fast8_t i;",
"VAR_0->mode_count=get_bits(gb, 6)+1;",
"VAR_0->modes=av_mallocz(VAR_0->mode_count * sizeof(vorbis_mode));",
"AV_DEBUG(\" There are %d modes.\\n\", VAR_0->mode_count);",
"for(i=0;i<VAR_0->mode_count;++i) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
18,087 | static int smka_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = ... | true | FFmpeg | bbb2945f2dfbc2306c1655bf7eb6e220912a9a7c | static int smka_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = ... | {
"code": [
" smacker_decode_tree(&gb, &h[i], 0, 0);"
],
"line_no": [
121
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = { { 0 } };
i... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"GetBitContext gb;",
"HuffContext h[4] = { { 0 } };",
"VLC vlc[4] = { { 0 } };",
"int16_t *samples;",
"ui... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[... |
18,088 | static void ppc_hw_interrupt(CPUPPCState *env)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
int hdice;
#if 0
CPUState *cs = CPU(cpu);
qemu_log_mask(CPU_LOG_INT, "%s: %p pending %08x req %08x me %d ee %d\n",
__func__, env, env->pending_interrupts,
cs->interrupt_... | true | qemu | d1dbe37c1ee3f14cb64a9ae3c89f637fdd08fca1 | static void ppc_hw_interrupt(CPUPPCState *env)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
int hdice;
#if 0
CPUState *cs = CPU(cpu);
qemu_log_mask(CPU_LOG_INT, "%s: %p pending %08x req %08x me %d ee %d\n",
__func__, env, env->pending_interrupts,
cs->interrupt_... | {
"code": [
" if (env->pending_interrupts & (1 << PPC_INTERRUPT_EXT)) {",
"#if 0",
" env->pending_interrupts &= ~(1 << PPC_INTERRUPT_EXT);",
"#endif",
" powerpc_excp(cpu, env->excp_model, POWERPC_EXCP_EXTERNAL);"
],
"line_no": [
181,
9,
191,
21,
... | static void FUNC_0(CPUPPCState *VAR_0)
{
PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);
int VAR_1;
#if 0
CPUState *cs = CPU(cpu);
qemu_log_mask(CPU_LOG_INT, "%s: %p pending %08x req %08x me %d ee %d\n",
__func__, VAR_0, VAR_0->pending_interrupts,
cs->interrupt_re... | [
"static void FUNC_0(CPUPPCState *VAR_0)\n{",
"PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);",
"int VAR_1;",
"#if 0\nCPUState *cs = CPU(cpu);",
"qemu_log_mask(CPU_LOG_INT, \"%s: %p pending %08x req %08x me %d ee %d\\n\",\n__func__, VAR_0, VAR_0->pending_interrupts,\ncs->interrupt_request, (int)msr_me, (int)msr_e... | [
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
15,
17,
19
],
[
21,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
51
],
[
53
],
[... |
18,089 | static void dct_error(const struct algo *dct, int test, int is_idct, int speed)
{
int it, i, scale;
int err_inf, v;
int64_t err2, ti, ti1, it1;
int64_t sysErr[64], sysErrMax = 0;
int maxout = 0;
int blockSumErrMax = 0, blockSumErr;
AVLFG prng;
av_lfg_init(&prng, 1);
err... | true | FFmpeg | dbf396d497e6d6f14b838092ed4ba4283a9505a0 | static void dct_error(const struct algo *dct, int test, int is_idct, int speed)
{
int it, i, scale;
int err_inf, v;
int64_t err2, ti, ti1, it1;
int64_t sysErr[64], sysErrMax = 0;
int maxout = 0;
int blockSumErrMax = 0, blockSumErr;
AVLFG prng;
av_lfg_init(&prng, 1);
err... | {
"code": [
"static void dct_error(const struct algo *dct, int test, int is_idct, int speed)",
" int64_t err2, ti, ti1, it1;",
" v = abs(block[i] - block1[i]);",
" printf(\"%s %s: err_inf=%d err2=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\\n\",",
" (double) err2 / NB_IT... | static void FUNC_0(const struct algo *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4, VAR_5, VAR_6;
int VAR_7, VAR_8;
int64_t err2, ti, ti1, it1;
int64_t sysErr[64], sysErrMax = 0;
int VAR_9 = 0;
int VAR_10 = 0, VAR_11;
AVLFG prng;
av_lfg_init(&prng, 1);
VAR_7 = 0;... | [
"static void FUNC_0(const struct algo *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"int64_t err2, ti, ti1, it1;",
"int64_t sysErr[64], sysErrMax = 0;",
"int VAR_9 = 0;",
"int VAR_10 = 0, VAR_11;",
"AVLFG prng;",
"av_lfg_init(&prng, 1);",
"VAR_7 = 0... | [
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[... |
18,090 | static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
int depth, GetByteContext *gb)
{
uint8_t *output, *output_end;
int p1, p2, line=avctx->height - 1, pos=0, i;
uint16_t pix16;
uint32_t pix32;
unsigned int width= FFABS(pic->linesize[0])... | true | FFmpeg | d2e0a276d593ded94401e687f60bee266f3e725e | static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
int depth, GetByteContext *gb)
{
uint8_t *output, *output_end;
int p1, p2, line=avctx->height - 1, pos=0, i;
uint16_t pix16;
uint32_t pix32;
unsigned int width= FFABS(pic->linesize[0])... | {
"code": [
" switch(depth){",
" case 8: pix[0] = bytestream2_get_byte(gb);",
" break;",
" case 16: pix16 = bytestream2_get_le16(gb);",
" break;",
" case 24: pix[0] = bytestream2_get_byte(gb);",
" ... | static int FUNC_0(AVCodecContext *VAR_0, AVPicture *VAR_1,
int VAR_2, GetByteContext *VAR_3)
{
uint8_t *output, *output_end;
int VAR_4, VAR_5, VAR_6=VAR_0->height - 1, VAR_7=0, VAR_8;
uint16_t pix16;
uint32_t pix32;
unsigned int VAR_9= FFABS(VAR_1->linesize[... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPicture *VAR_1,\nint VAR_2, GetByteContext *VAR_3)\n{",
"uint8_t *output, *output_end;",
"int VAR_4, VAR_5, VAR_6=VAR_0->height - 1, VAR_7=0, VAR_8;",
"uint16_t pix16;",
"uint32_t pix32;",
"unsigned int VAR_9= FFABS(VAR_1->linesize[0]) / (VAR_2 >> 3);",
"outpu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,... |
18,091 | static void spapr_memory_unplug_request(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(hotplug_dev);
Error *local_err = NULL;
PCDIMMDevice *dimm = PC_DIMM(dev);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLA... | true | qemu | 0479097859372a760843ad1b9c6ed3705c6423ca | static void spapr_memory_unplug_request(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(hotplug_dev);
Error *local_err = NULL;
PCDIMMDevice *dimm = PC_DIMM(dev);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLA... | {
"code": [
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" uint64_t size = memory_region_size(mr);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" uint64... | static void FUNC_0(HotplugHandler *VAR_0,
DeviceState *VAR_1, Error **VAR_2)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(VAR_0);
Error *local_err = NULL;
PCDIMMDevice *dimm = PC_DIMM(VAR_1);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion ... | [
"static void FUNC_0(HotplugHandler *VAR_0,\nDeviceState *VAR_1, Error **VAR_2)\n{",
"sPAPRMachineState *spapr = SPAPR_MACHINE(VAR_0);",
"Error *local_err = NULL;",
"PCDIMMDevice *dimm = PC_DIMM(VAR_1);",
"PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);",
"MemoryRegion *mr = ddc->get_memory_region(dimm);... | [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47,... |
18,092 | av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
cavsdsp_init_mmx(c, avctx);
#if HAVE_AMD3DNOW_INLINE
if (INLINE_AMD3DNOW(cpu_flags))
cavsdsp_init_3dnow(c, avctx);
#endif /* HAVE_AMD3DNOW_INLINE */
#if HAVE_MMXEXT_INLINE
... | false | FFmpeg | 07cd8d5676a72d80661e9bfde0a26d83aca4d029 | av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
cavsdsp_init_mmx(c, avctx);
#if HAVE_AMD3DNOW_INLINE
if (INLINE_AMD3DNOW(cpu_flags))
cavsdsp_init_3dnow(c, avctx);
#endif
#if HAVE_MMXEXT_INLINE
if (INLINE_MMXEXT(cpu_flag... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(CAVSDSPContext *c, AVCodecContext *avctx)
{
int VAR_0 = av_get_cpu_flags();
cavsdsp_init_mmx(c, avctx);
#if HAVE_AMD3DNOW_INLINE
if (INLINE_AMD3DNOW(VAR_0))
cavsdsp_init_3dnow(c, avctx);
#endif
#if HAVE_MMXEXT_INLINE
if (INLINE_MMXEXT(VAR_0)) {
DSPFUNC(pu... | [
"av_cold void FUNC_0(CAVSDSPContext *c, AVCodecContext *avctx)\n{",
"int VAR_0 = av_get_cpu_flags();",
"cavsdsp_init_mmx(c, avctx);",
"#if HAVE_AMD3DNOW_INLINE\nif (INLINE_AMD3DNOW(VAR_0))\ncavsdsp_init_3dnow(c, avctx);",
"#endif\n#if HAVE_MMXEXT_INLINE\nif (INLINE_MMXEXT(VAR_0)) {",
"DSPFUNC(put, 0, 16, ... | [
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47,
49
],
[
51... |
18,093 | static int finish_frame(AVCodecContext *avctx, AVFrame *pict)
{
RV34DecContext *r = avctx->priv_data;
MpegEncContext *s = &r->s;
int got_picture = 0, ret;
ff_er_frame_end(&s->er);
ff_mpv_frame_end(s);
s->mb_num_left = 0;
if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THRE... | false | FFmpeg | 4b1f5e5090abed6c618c8ba380cd7d28d140f867 | static int finish_frame(AVCodecContext *avctx, AVFrame *pict)
{
RV34DecContext *r = avctx->priv_data;
MpegEncContext *s = &r->s;
int got_picture = 0, ret;
ff_er_frame_end(&s->er);
ff_mpv_frame_end(s);
s->mb_num_left = 0;
if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THRE... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)
{
RV34DecContext *r = VAR_0->priv_data;
MpegEncContext *s = &r->s;
int VAR_2 = 0, VAR_3;
ff_er_frame_end(&s->er);
ff_mpv_frame_end(s);
s->mb_num_left = 0;
if (HAVE_THREADS && (s->VAR_0->active_thread_type & FF_THREAD_FRAME)... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{",
"RV34DecContext *r = VAR_0->priv_data;",
"MpegEncContext *s = &r->s;",
"int VAR_2 = 0, VAR_3;",
"ff_er_frame_end(&s->er);",
"ff_mpv_frame_end(s);",
"s->mb_num_left = 0;",
"if (HAVE_THREADS && (s->VAR_0->active_thread_type & FF_THREAD_FRAME... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
18,094 | static void init_parse_context(OptionParseContext *octx,
const OptionGroupDef *groups)
{
static const OptionGroupDef global_group = { "global" };
const OptionGroupDef *g = groups;
int i;
memset(octx, 0, sizeof(*octx));
while (g->name)
g++;
octx... | false | FFmpeg | c661cb6672af5ebcb900ec8766b24761bd2ab011 | static void init_parse_context(OptionParseContext *octx,
const OptionGroupDef *groups)
{
static const OptionGroupDef global_group = { "global" };
const OptionGroupDef *g = groups;
int i;
memset(octx, 0, sizeof(*octx));
while (g->name)
g++;
octx... | {
"code": [],
"line_no": []
} | static void FUNC_0(OptionParseContext *VAR_0,
const OptionGroupDef *VAR_1)
{
static const OptionGroupDef VAR_2 = { "global" };
const OptionGroupDef *VAR_3 = VAR_1;
int VAR_4;
memset(VAR_0, 0, sizeof(*VAR_0));
while (VAR_3->name)
VAR_3++;
VAR_0-... | [
"static void FUNC_0(OptionParseContext *VAR_0,\nconst OptionGroupDef *VAR_1)\n{",
"static const OptionGroupDef VAR_2 = { \"global\" };",
"const OptionGroupDef *VAR_3 = VAR_1;",
"int VAR_4;",
"memset(VAR_0, 0, sizeof(*VAR_0));",
"while (VAR_3->name)\nVAR_3++;",
"VAR_0->nb_groups = VAR_3 - VAR_1;",
"VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
18,096 | void timerlist_notify(QEMUTimerList *timer_list)
{
if (timer_list->notify_cb) {
timer_list->notify_cb(timer_list->notify_opaque);
} else {
qemu_notify_event();
}
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void timerlist_notify(QEMUTimerList *timer_list)
{
if (timer_list->notify_cb) {
timer_list->notify_cb(timer_list->notify_opaque);
} else {
qemu_notify_event();
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QEMUTimerList *VAR_0)
{
if (VAR_0->notify_cb) {
VAR_0->notify_cb(VAR_0->notify_opaque);
} else {
qemu_notify_event();
}
}
| [
"void FUNC_0(QEMUTimerList *VAR_0)\n{",
"if (VAR_0->notify_cb) {",
"VAR_0->notify_cb(VAR_0->notify_opaque);",
"} else {",
"qemu_notify_event();",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
18,097 | static char *isabus_get_fw_dev_path(DeviceState *dev)
{
ISADevice *d = (ISADevice*)dev;
char path[40];
int off;
off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev));
if (d->ioport_id) {
snprintf(path + off, sizeof(path) - off, "@%04x", d->ioport_id);
}
return strd... | false | qemu | a5cf8262e4eb9c4646434e2c6211ef8608db3233 | static char *isabus_get_fw_dev_path(DeviceState *dev)
{
ISADevice *d = (ISADevice*)dev;
char path[40];
int off;
off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev));
if (d->ioport_id) {
snprintf(path + off, sizeof(path) - off, "@%04x", d->ioport_id);
}
return strd... | {
"code": [],
"line_no": []
} | static char *FUNC_0(DeviceState *VAR_0)
{
ISADevice *d = (ISADevice*)VAR_0;
char VAR_1[40];
int VAR_2;
VAR_2 = snprintf(VAR_1, sizeof(VAR_1), "%s", qdev_fw_name(VAR_0));
if (d->ioport_id) {
snprintf(VAR_1 + VAR_2, sizeof(VAR_1) - VAR_2, "@%04x", d->ioport_id);
}
return s... | [
"static char *FUNC_0(DeviceState *VAR_0)\n{",
"ISADevice *d = (ISADevice*)VAR_0;",
"char VAR_1[40];",
"int VAR_2;",
"VAR_2 = snprintf(VAR_1, sizeof(VAR_1), \"%s\", qdev_fw_name(VAR_0));",
"if (d->ioport_id) {",
"snprintf(VAR_1 + VAR_2, sizeof(VAR_1) - VAR_2, \"@%04x\", d->ioport_id);",
"}",
"return ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
18,098 | static void sigp_cpu_reset(void *arg)
{
CPUState *cpu = arg;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| false | qemu | 6eb8f212d2686ed9b17077d554465df7ae06f805 | static void sigp_cpu_reset(void *arg)
{
CPUState *cpu = arg;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
CPUState *cpu = VAR_0;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"CPUState *cpu = VAR_0;",
"S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);",
"cpu_synchronize_state(cpu);",
"scc->cpu_reset(cpu);",
"cpu_synchronize_post_reset(cpu);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
18,099 | ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, const char *name,
ram_addr_t size, void *host)
{
RAMBlock *new_block, *block;
size = TARGET_PAGE_ALIGN(size);
new_block = qemu_mallocz(sizeof(*new_block));
if (dev && dev->parent_bus && dev->parent_bus->inf... | false | qemu | ff83678aee5269619338645ec23b00b1c7506fca | ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, const char *name,
ram_addr_t size, void *host)
{
RAMBlock *new_block, *block;
size = TARGET_PAGE_ALIGN(size);
new_block = qemu_mallocz(sizeof(*new_block));
if (dev && dev->parent_bus && dev->parent_bus->inf... | {
"code": [],
"line_no": []
} | ram_addr_t FUNC_0(DeviceState *dev, const char *name,
ram_addr_t size, void *host)
{
RAMBlock *new_block, *block;
size = TARGET_PAGE_ALIGN(size);
new_block = qemu_mallocz(sizeof(*new_block));
if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) ... | [
"ram_addr_t FUNC_0(DeviceState *dev, const char *name,\nram_addr_t size, void *host)\n{",
"RAMBlock *new_block, *block;",
"size = TARGET_PAGE_ALIGN(size);",
"new_block = qemu_mallocz(sizeof(*new_block));",
"if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) {",
"char *VAR_0 = dev->parent_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
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51... |
18,100 | static void usb_host_handle_control(USBDevice *udev, USBPacket *p,
int request, int value, int index,
int length, uint8_t *data)
{
USBHostDevice *s = USB_HOST_DEVICE(udev);
USBHostRequest *r;
int rc;
trace_usb_host_req_cont... | false | qemu | a9be4e7c48c4892c836bda1be4d550bb1a6732bd | static void usb_host_handle_control(USBDevice *udev, USBPacket *p,
int request, int value, int index,
int length, uint8_t *data)
{
USBHostDevice *s = USB_HOST_DEVICE(udev);
USBHostRequest *r;
int rc;
trace_usb_host_req_cont... | {
"code": [],
"line_no": []
} | static void FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,
int VAR_2, int VAR_3, int VAR_4,
int VAR_5, uint8_t *VAR_6)
{
USBHostDevice *s = USB_HOST_DEVICE(VAR_0);
USBHostRequest *r;
int VAR_7;
trace_usb_host_req_control(s->bus... | [
"static void FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,\nint VAR_2, int VAR_3, int VAR_4,\nint VAR_5, uint8_t *VAR_6)\n{",
"USBHostDevice *s = USB_HOST_DEVICE(VAR_0);",
"USBHostRequest *r;",
"int VAR_7;",
"trace_usb_host_req_control(s->bus_num, s->addr, VAR_1, VAR_2, VAR_3, VAR_4);",
"if (s->dh == NULL) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
],
[
55,... |
18,101 | float32 helper_fabs_FT(float32 t0)
{
return float32_abs(t0);
}
| false | qemu | 57f5c1b093e1c3ec185770d2a180259205f980be | float32 helper_fabs_FT(float32 t0)
{
return float32_abs(t0);
}
| {
"code": [],
"line_no": []
} | float32 FUNC_0(float32 t0)
{
return float32_abs(t0);
}
| [
"float32 FUNC_0(float32 t0)\n{",
"return float32_abs(t0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,103 | static int i440fx_pcihost_initfn(SysBusDevice *dev)
{
I440FXState *s = FROM_SYSBUS(I440FXState, dev);
register_ioport_write(0xcf8, 4, 4, i440fx_addr_writel, s);
register_ioport_read(0xcf8, 4, 4, i440fx_addr_readl, s);
register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s);
register_io... | false | qemu | 4f5e19e6c570459cd524b29b24374f03860f5149 | static int i440fx_pcihost_initfn(SysBusDevice *dev)
{
I440FXState *s = FROM_SYSBUS(I440FXState, dev);
register_ioport_write(0xcf8, 4, 4, i440fx_addr_writel, s);
register_ioport_read(0xcf8, 4, 4, i440fx_addr_readl, s);
register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s);
register_io... | {
"code": [],
"line_no": []
} | static int FUNC_0(SysBusDevice *VAR_0)
{
I440FXState *s = FROM_SYSBUS(I440FXState, VAR_0);
register_ioport_write(0xcf8, 4, 4, i440fx_addr_writel, s);
register_ioport_read(0xcf8, 4, 4, i440fx_addr_readl, s);
register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s);
register_ioport_write(... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"I440FXState *s = FROM_SYSBUS(I440FXState, VAR_0);",
"register_ioport_write(0xcf8, 4, 4, i440fx_addr_writel, s);",
"register_ioport_read(0xcf8, 4, 4, i440fx_addr_readl, s);",
"register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s);",
"register_ioport_write... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.