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 |
|---|---|---|---|---|---|---|---|---|---|---|
4,807 | RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
{
RockerSwitch *rocker = g_malloc0(sizeof(*rocker));
Rocker *r;
r = rocker_find(name);
if (!r) {
error_set(errp, ERROR_CLASS_GENERIC_ERROR,
"rocker %s not found", name);
return NULL;
}
... | true | qemu | ec50dd4634ae06091e61f42b7ba975f9ed510ad0 | RockerSwitch *qmp_query_rocker(const char *name, Error **errp)
{
RockerSwitch *rocker = g_malloc0(sizeof(*rocker));
Rocker *r;
r = rocker_find(name);
if (!r) {
error_set(errp, ERROR_CLASS_GENERIC_ERROR,
"rocker %s not found", name);
return NULL;
}
... | {
"code": [
" RockerSwitch *rocker = g_malloc0(sizeof(*rocker));"
],
"line_no": [
5
]
} | RockerSwitch *FUNC_0(const char *name, Error **errp)
{
RockerSwitch *rocker = g_malloc0(sizeof(*rocker));
Rocker *r;
r = rocker_find(name);
if (!r) {
error_set(errp, ERROR_CLASS_GENERIC_ERROR,
"rocker %s not found", name);
return NULL;
}
rocker->na... | [
"RockerSwitch *FUNC_0(const char *name, Error **errp)\n{",
"RockerSwitch *rocker = g_malloc0(sizeof(*rocker));",
"Rocker *r;",
"r = rocker_find(name);",
"if (!r) {",
"error_set(errp, ERROR_CLASS_GENERIC_ERROR,\n\"rocker %s not found\", name);",
"return NULL;",
"}",
"rocker->name = g_strdup(r->name);... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
4,808 | static int init_dimensions(H264Context *h)
{
int width = h->width - (h->sps.crop_right + h->sps.crop_left);
int height = h->height - (h->sps.crop_top + h->sps.crop_bottom);
/* handle container cropping */
if (FFALIGN(h->avctx->width, 16) == FFALIGN(width, 16) &&
FFALIGN(h->avctx->h... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static int init_dimensions(H264Context *h)
{
int width = h->width - (h->sps.crop_right + h->sps.crop_left);
int height = h->height - (h->sps.crop_top + h->sps.crop_bottom);
if (FFALIGN(h->avctx->width, 16) == FFALIGN(width, 16) &&
FFALIGN(h->avctx->height, 16) == FFALIGN(height, 1... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0)
{
int VAR_1 = VAR_0->VAR_1 - (VAR_0->sps.crop_right + VAR_0->sps.crop_left);
int VAR_2 = VAR_0->VAR_2 - (VAR_0->sps.crop_top + VAR_0->sps.crop_bottom);
if (FFALIGN(VAR_0->avctx->VAR_1, 16) == FFALIGN(VAR_1, 16) &&
FFALIGN(VAR_0->avctx->VAR_2, ... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"int VAR_1 = VAR_0->VAR_1 - (VAR_0->sps.crop_right + VAR_0->sps.crop_left);",
"int VAR_2 = VAR_0->VAR_2 - (VAR_0->sps.crop_top + VAR_0->sps.crop_bottom);",
"if (FFALIGN(VAR_0->avctx->VAR_1, 16) == FFALIGN(VAR_1, 16) &&\nFFALIGN(VAR_0->avctx->VAR_2, 16) == FFAL... | [
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
],
[
21
],
[
25
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39,
41,
43,
45,
47
],
[
51
],
[
53
],
[
55
],
[
59
],
... |
4,809 | static inline CopyRet copy_frame(AVCodecContext *avctx,
BC_DTS_PROC_OUT *output,
void *data, int *data_size,
uint8_t second_field)
{
BC_STATUS ret;
BC_DTS_STATUS decoder_status;
uint8_t is_paff;
ui... | true | FFmpeg | ae7a4a1594e3624f7c844dec44266d2dc74a6be2 | static inline CopyRet copy_frame(AVCodecContext *avctx,
BC_DTS_PROC_OUT *output,
void *data, int *data_size,
uint8_t second_field)
{
BC_STATUS ret;
BC_DTS_STATUS decoder_status;
uint8_t is_paff;
ui... | {
"code": [
" void *data, int *data_size,",
" uint8_t second_field)",
" uint8_t is_paff;",
" uint8_t next_frame_same;",
" is_paff = ASSUME_PAFF_OVER_MBAFF ||",
" !(output->PicInfo.flags & ... | static inline CopyRet FUNC_0(AVCodecContext *avctx,
BC_DTS_PROC_OUT *output,
void *data, int *data_size,
uint8_t second_field)
{
BC_STATUS ret;
BC_DTS_STATUS decoder_status;
uint8_t is_paff;
uint8_... | [
"static inline CopyRet FUNC_0(AVCodecContext *avctx,\nBC_DTS_PROC_OUT *output,\nvoid *data, int *data_size,\nuint8_t second_field)\n{",
"BC_STATUS ret;",
"BC_DTS_STATUS decoder_status;",
"uint8_t is_paff;",
"uint8_t next_frame_same;",
"uint8_t interlaced;",
"CHDContext *priv = avctx->priv_data;",
"int... | [
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
4,810 | static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
{
X11GrabContext *s = s1->priv_data;
Display *dpy = s->dpy;
XImage *image = s->image;
int x_off = s->x_off;
int y_off = s->y_off;
int follow_mouse = s->follow_mouse;
int screen;
Window r... | false | FFmpeg | 2a5ac99e6e06078713f684fee2466c91f677b303 | static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
{
X11GrabContext *s = s1->priv_data;
Display *dpy = s->dpy;
XImage *image = s->image;
int x_off = s->x_off;
int y_off = s->y_off;
int follow_mouse = s->follow_mouse;
int screen;
Window r... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
X11GrabContext *s = VAR_0->priv_data;
Display *dpy = s->dpy;
XImage *image = s->image;
int VAR_2 = s->VAR_2;
int VAR_3 = s->VAR_3;
int VAR_4 = s->VAR_4;
int VAR_5;
Window root;
int64_t cu... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"X11GrabContext *s = VAR_0->priv_data;",
"Display *dpy = s->dpy;",
"XImage *image = s->image;",
"int VAR_2 = s->VAR_2;",
"int VAR_3 = s->VAR_3;",
"int VAR_4 = s->VAR_4;",
"int VAR_5;",
"Window root;",
"int64... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
4,811 | void usb_ep_combine_input_packets(USBEndpoint *ep)
{
USBPacket *p, *u, *next, *prev = NULL, *first = NULL;
USBPort *port = ep->dev->port;
int ret;
assert(ep->pipeline);
assert(ep->pid == USB_TOKEN_IN);
QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) {
/* Empty the queue on a ... | true | qemu | 579967bea69bf1b32faee13ff76b19ba641a2618 | void usb_ep_combine_input_packets(USBEndpoint *ep)
{
USBPacket *p, *u, *next, *prev = NULL, *first = NULL;
USBPort *port = ep->dev->port;
int ret;
assert(ep->pipeline);
assert(ep->pid == USB_TOKEN_IN);
QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) {
if (ep->halted... | {
"code": [
" int ret;",
" next == NULL) {"
],
"line_no": [
9,
99
]
} | void FUNC_0(USBEndpoint *VAR_0)
{
USBPacket *p, *u, *next, *prev = NULL, *first = NULL;
USBPort *port = VAR_0->dev->port;
int VAR_1;
assert(VAR_0->pipeline);
assert(VAR_0->pid == USB_TOKEN_IN);
QTAILQ_FOREACH_SAFE(p, &VAR_0->queue, queue, next) {
if (VAR_0->halted) ... | [
"void FUNC_0(USBEndpoint *VAR_0)\n{",
"USBPacket *p, *u, *next, *prev = NULL, *first = NULL;",
"USBPort *port = VAR_0->dev->port;",
"int VAR_1;",
"assert(VAR_0->pipeline);",
"assert(VAR_0->pid == USB_TOKEN_IN);",
"QTAILQ_FOREACH_SAFE(p, &VAR_0->queue, queue, next) {",
"if (VAR_0->halted) {",
"p->res... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
59
],
[
61
],
[
63
... |
4,812 | static MemoryRegionSection *address_space_lookup_region(AddressSpaceDispatch *d,
hwaddr addr,
bool resolve_subpage)
{
MemoryRegionSection *section = atomic_read(&d->mru_section);
subpage_t *subpa... | true | qemu | 07c114bbf389c09c99fd451b0b0fddf88962f512 | static MemoryRegionSection *address_space_lookup_region(AddressSpaceDispatch *d,
hwaddr addr,
bool resolve_subpage)
{
MemoryRegionSection *section = atomic_read(&d->mru_section);
subpage_t *subpa... | {
"code": [
" bool update;",
" if (section && section != &d->map.sections[PHYS_SECTION_UNASSIGNED] &&",
" section_covers_addr(section, addr)) {",
" update = false;",
" } else {",
" update = true;",
" if (update) {",
" atomic_set(&d->mru_section, ... | static MemoryRegionSection *FUNC_0(AddressSpaceDispatch *d,
hwaddr addr,
bool resolve_subpage)
{
MemoryRegionSection *section = atomic_read(&d->mru_section);
subpage_t *subpage;
bool update;... | [
"static MemoryRegionSection *FUNC_0(AddressSpaceDispatch *d,\nhwaddr addr,\nbool resolve_subpage)\n{",
"MemoryRegionSection *section = atomic_read(&d->mru_section);",
"subpage_t *subpage;",
"bool update;",
"if (section && section != &d->map.sections[PHYS_SECTION_UNASSIGNED] &&\nsection_covers_addr(section, ... | [
0,
0,
0,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
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
],
[... |
4,813 | static int asf_read_generic_value(AVFormatContext *s, uint8_t *name, uint16_t name_len,
int type, AVDictionary **met)
{
AVIOContext *pb = s->pb;
uint64_t value;
char buf[32];
switch (type) {
case ASF_BOOL:
value = avio_rl32(pb);
break;
... | true | FFmpeg | fdbc544d29176ba69d67dd879df4696f0a19052e | static int asf_read_generic_value(AVFormatContext *s, uint8_t *name, uint16_t name_len,
int type, AVDictionary **met)
{
AVIOContext *pb = s->pb;
uint64_t value;
char buf[32];
switch (type) {
case ASF_BOOL:
value = avio_rl32(pb);
break;
... | {
"code": [
"static int asf_read_generic_value(AVFormatContext *s, uint8_t *name, uint16_t name_len,",
" int type, AVDictionary **met)",
" av_freep(&name);"
],
"line_no": [
1,
3,
43
]
} | static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, uint16_t VAR_2,
int VAR_3, AVDictionary **VAR_4)
{
AVIOContext *pb = VAR_0->pb;
uint64_t value;
char VAR_5[32];
switch (VAR_3) {
case ASF_BOOL:
value = avio_rl32(pb);
break;
ca... | [
"static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, uint16_t VAR_2,\nint VAR_3, AVDictionary **VAR_4)\n{",
"AVIOContext *pb = VAR_0->pb;",
"uint64_t value;",
"char VAR_5[32];",
"switch (VAR_3) {",
"case ASF_BOOL:\nvalue = avio_rl32(pb);",
"break;",
"case ASF_DWORD:\nvalue = avio_rl32(pb);",
"... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
... |
4,814 | int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
QemuOpts *opts;
int res;
opts = qemu_opts_from_qdict(&qemu_netdev_opts, qdict);
if (!opts) {
return -1;
res = net_client_init(mon, opts, 1);
return res; | true | qemu | 410cbafebc7168a278a23c856b4f5ff276ef1c85 | int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
QemuOpts *opts;
int res;
opts = qemu_opts_from_qdict(&qemu_netdev_opts, qdict);
if (!opts) {
return -1;
res = net_client_init(mon, opts, 1);
return res; | {
"code": [],
"line_no": []
} | int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{
QemuOpts *opts;
int VAR_3;
opts = qemu_opts_from_qdict(&qemu_netdev_opts, VAR_1);
if (!opts) {
return -1;
VAR_3 = net_client_init(VAR_0, opts, 1);
return VAR_3; | [
"int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{",
"QemuOpts *opts;",
"int VAR_3;",
"opts = qemu_opts_from_qdict(&qemu_netdev_opts, VAR_1);",
"if (!opts) {",
"return -1;",
"VAR_3 = net_client_init(VAR_0, opts, 1);",
"return VAR_3;"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
]
] |
4,817 | static int save_zero_page(RAMState *rs, RAMBlock *block, ram_addr_t offset,
uint8_t *p)
{
int pages = -1;
if (is_zero_range(p, TARGET_PAGE_SIZE)) {
rs->zero_pages++;
rs->bytes_transferred +=
save_page_header(rs, block, offset | RAM_SAVE_FLAG_COMPRES... | true | qemu | 2bf3aa85f08186b8162b76e7e8efe5b5a44306a6 | static int save_zero_page(RAMState *rs, RAMBlock *block, ram_addr_t offset,
uint8_t *p)
{
int pages = -1;
if (is_zero_range(p, TARGET_PAGE_SIZE)) {
rs->zero_pages++;
rs->bytes_transferred +=
save_page_header(rs, block, offset | RAM_SAVE_FLAG_COMPRES... | {
"code": [
" save_page_header(rs, block, offset | RAM_SAVE_FLAG_COMPRESS);"
],
"line_no": [
17
]
} | static int FUNC_0(RAMState *VAR_0, RAMBlock *VAR_1, ram_addr_t VAR_2,
uint8_t *VAR_3)
{
int VAR_4 = -1;
if (is_zero_range(VAR_3, TARGET_PAGE_SIZE)) {
VAR_0->zero_pages++;
VAR_0->bytes_transferred +=
save_page_header(VAR_0, VAR_1, VAR_2 | RAM_SAVE_FL... | [
"static int FUNC_0(RAMState *VAR_0, RAMBlock *VAR_1, ram_addr_t VAR_2,\nuint8_t *VAR_3)\n{",
"int VAR_4 = -1;",
"if (is_zero_range(VAR_3, TARGET_PAGE_SIZE)) {",
"VAR_0->zero_pages++;",
"VAR_0->bytes_transferred +=\nsave_page_header(VAR_0, VAR_1, VAR_2 | RAM_SAVE_FLAG_COMPRESS);",
"qemu_put_byte(VAR_0->f, ... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
4,819 | static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
{
MovieContext *movie = ctx->priv;
AVPacket *pkt = &movie->pkt;
enum AVMediaType frame_type;
MovieStream *st;
int ret, got_frame = 0, pkt_out_id;
AVFilterLink *outlink;
AVFrame *frame;
if (!pkt->size) {
... | false | FFmpeg | 229843aa359ae0c9519977d7fa952688db63f559 | static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
{
MovieContext *movie = ctx->priv;
AVPacket *pkt = &movie->pkt;
enum AVMediaType frame_type;
MovieStream *st;
int ret, got_frame = 0, pkt_out_id;
AVFilterLink *outlink;
AVFrame *frame;
if (!pkt->size) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext *VAR_0, unsigned VAR_1)
{
MovieContext *movie = VAR_0->priv;
AVPacket *pkt = &movie->pkt;
enum AVMediaType VAR_2;
MovieStream *st;
int VAR_3, VAR_4 = 0, VAR_5;
AVFilterLink *outlink;
AVFrame *frame;
if (!pkt->size) {
if (movie->eof) {... | [
"static int FUNC_0(AVFilterContext *VAR_0, unsigned VAR_1)\n{",
"MovieContext *movie = VAR_0->priv;",
"AVPacket *pkt = &movie->pkt;",
"enum AVMediaType VAR_2;",
"MovieStream *st;",
"int VAR_3, VAR_4 = 0, VAR_5;",
"AVFilterLink *outlink;",
"AVFrame *frame;",
"if (!pkt->size) {",
"if (movie->eof) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
4,820 | static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)
{
const uint8_t *s = src;
const uint8_t *end;
const uint8_t *mm_end;
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*src):"memory");
__asm__ volatile(
... | true | FFmpeg | 90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b | static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)
{
const uint8_t *s = src;
const uint8_t *end;
const uint8_t *mm_end;
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*src):"memory");
__asm__ volatile(
... | {
"code": [
" :\"=m\"(*d):\"m\"(*s),\"m\"(blue_15mask):\"memory\");",
" :\"=m\"(*d):\"m\"(*s),\"m\"(blue_15mask):\"memory\");",
" PREFETCH\" 32%1 \\n\\t\"",
" \"movd %1, %%mm0 \\n\\t\"",
" \"movd 3%1, %%mm3 ... | static inline void FUNC_0(rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)
{
const uint8_t *VAR_0 = src;
const uint8_t *VAR_1;
const uint8_t *VAR_2;
uint16_t *d = (uint16_t *)dst;
VAR_1 = VAR_0 + src_size;
__asm__ volatile(PREFETCH" %0"::"m"(*src):"memory");
__asm__ vola... | [
"static inline void FUNC_0(rgb24to15)(const uint8_t *src, uint8_t *dst, int src_size)\n{",
"const uint8_t *VAR_0 = src;",
"const uint8_t *VAR_1;",
"const uint8_t *VAR_2;",
"uint16_t *d = (uint16_t *)dst;",
"VAR_1 = VAR_0 + src_size;",
"__asm__ volatile(PREFETCH\" %0\"::\"m\"(*src):\"memory\");",
"_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19,
21,
23
],
[
25
],
[
27
],
[
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,... |
4,821 | static int decode_picture_timing(H264Context *h)
{
if (h->sps.nal_hrd_parameters_present_flag ||
h->sps.vcl_hrd_parameters_present_flag) {
h->sei_cpb_removal_delay = get_bits(&h->gb,
h->sps.cpb_removal_delay_length);
h->sei_dpb_output_delay ... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static int decode_picture_timing(H264Context *h)
{
if (h->sps.nal_hrd_parameters_present_flag ||
h->sps.vcl_hrd_parameters_present_flag) {
h->sei_cpb_removal_delay = get_bits(&h->gb,
h->sps.cpb_removal_delay_length);
h->sei_dpb_output_delay ... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0)
{
if (VAR_0->sps.nal_hrd_parameters_present_flag ||
VAR_0->sps.vcl_hrd_parameters_present_flag) {
VAR_0->sei_cpb_removal_delay = get_bits(&VAR_0->gb,
VAR_0->sps.cpb_removal_delay_length);
VAR_0->sei_dpb_o... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"if (VAR_0->sps.nal_hrd_parameters_present_flag ||\nVAR_0->sps.vcl_hrd_parameters_present_flag) {",
"VAR_0->sei_cpb_removal_delay = get_bits(&VAR_0->gb,\nVAR_0->sps.cpb_removal_delay_length);",
"VAR_0->sei_dpb_output_delay = get_bits(&VAR_0->gb,\nVAR_0->sps.dpb_out... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
... |
4,822 | static int ftp_close(URLContext *h)
{
FTPContext *s = h->priv_data;
av_dlog(h, "ftp protocol close\n");
ftp_close_both_connections(s);
av_freep(&s->user);
av_freep(&s->password);
av_freep(&s->hostname);
av_freep(&s->path);
av_freep(&s->features);
return 0;
}
| false | FFmpeg | 229843aa359ae0c9519977d7fa952688db63f559 | static int ftp_close(URLContext *h)
{
FTPContext *s = h->priv_data;
av_dlog(h, "ftp protocol close\n");
ftp_close_both_connections(s);
av_freep(&s->user);
av_freep(&s->password);
av_freep(&s->hostname);
av_freep(&s->path);
av_freep(&s->features);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0)
{
FTPContext *s = VAR_0->priv_data;
av_dlog(VAR_0, "ftp protocol close\n");
ftp_close_both_connections(s);
av_freep(&s->user);
av_freep(&s->password);
av_freep(&s->hostname);
av_freep(&s->path);
av_freep(&s->features);
return 0;
}... | [
"static int FUNC_0(URLContext *VAR_0)\n{",
"FTPContext *s = VAR_0->priv_data;",
"av_dlog(VAR_0, \"ftp protocol close\\n\");",
"ftp_close_both_connections(s);",
"av_freep(&s->user);",
"av_freep(&s->password);",
"av_freep(&s->hostname);",
"av_freep(&s->path);",
"av_freep(&s->features);",
"return 0;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
4,823 | int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
AVInputFormat *fmt,
int buf_size,
AVFormatParameters *ap)
{
AVFormatContext *ic = NULL;
int err;
char buf[PROBE_BUF_SIZE];
AVProbeData probe_data, *pd = &p... | false | FFmpeg | a8dbe9514f865f6a8efb304a720025cb1ef9ae3f | int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
AVInputFormat *fmt,
int buf_size,
AVFormatParameters *ap)
{
AVFormatContext *ic = NULL;
int err;
char buf[PROBE_BUF_SIZE];
AVProbeData probe_data, *pd = &p... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext **VAR_0, const char *VAR_1,
AVInputFormat *VAR_2,
int VAR_3,
AVFormatParameters *VAR_4)
{
AVFormatContext *ic = NULL;
int VAR_5;
char VAR_6[PROBE_BUF_SIZE];
AVProbeData probe_data, *pd = &probe_data;... | [
"int FUNC_0(AVFormatContext **VAR_0, const char *VAR_1,\nAVInputFormat *VAR_2,\nint VAR_3,\nAVFormatParameters *VAR_4)\n{",
"AVFormatContext *ic = NULL;",
"int VAR_5;",
"char VAR_6[PROBE_BUF_SIZE];",
"AVProbeData probe_data, *pd = &probe_data;",
"ic = av_mallocz(sizeof(AVFormatContext));",
"if (!ic) {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
53
],
[... |
4,824 | static int dec_21154_pci_host_init(PCIDevice *d)
{
/* PCI2PCI bridge same values as PearPC - check this */
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154);
pci_set_byte(d->config + PCI_REVISION_ID, 0x02);
pci_config_set_class... | false | qemu | e7b9bc3e89152f14f426fa4d150d2a6ca02583c1 | static int dec_21154_pci_host_init(PCIDevice *d)
{
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154);
pci_set_byte(d->config + PCI_REVISION_ID, 0x02);
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_DEC);
pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_DEC_21154);
pci_set_byte(VAR_0->config + PCI_REVISION_ID, 0x02);
pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_PCI);
return 0;
}... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_DEC);",
"pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_DEC_21154);",
"pci_set_byte(VAR_0->config + PCI_REVISION_ID, 0x02);",
"pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_PCI);",
"return 0;",
... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
4,825 | static void guess_mv(MpegEncContext *s)
{
uint8_t *fixed = av_malloc(s->mb_stride * s->mb_height);
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int mb_stride = s->mb_stride;
const int mb_width = s->mb_width;
const int mb_height = s->mb_height;
int i, depth, nu... | false | FFmpeg | eff2399f240db76b713b694508cdc8be175ab9fd | static void guess_mv(MpegEncContext *s)
{
uint8_t *fixed = av_malloc(s->mb_stride * s->mb_height);
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int mb_stride = s->mb_stride;
const int mb_width = s->mb_width;
const int mb_height = s->mb_height;
int i, depth, nu... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext *VAR_0)
{
uint8_t *fixed = av_malloc(VAR_0->VAR_1 * VAR_0->VAR_3);
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int VAR_1 = VAR_0->VAR_1;
const int VAR_2 = VAR_0->VAR_2;
const int VAR_3 = VAR_0->VAR_3;
int VAR_4, VAR_5, VAR_6;... | [
"static void FUNC_0(MpegEncContext *VAR_0)\n{",
"uint8_t *fixed = av_malloc(VAR_0->VAR_1 * VAR_0->VAR_3);",
"#define MV_FROZEN 3\n#define MV_CHANGED 2\n#define MV_UNCHANGED 1\nconst int VAR_1 = VAR_0->VAR_1;",
"const int VAR_2 = VAR_0->VAR_2;",
"const int VAR_3 = VAR_0->VAR_3;",
"int VAR_4, VAR_5, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
51
],
[
53,
55
... |
4,826 | static void audio_reset_timer (AudioState *s)
{
if (audio_is_timer_needed ()) {
timer_mod (s->ts,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + conf.period.ticks);
}
else {
timer_del (s->ts);
}
}
| false | qemu | 1ffc266539d443f83d5eb487593be50ef496f09e | static void audio_reset_timer (AudioState *s)
{
if (audio_is_timer_needed ()) {
timer_mod (s->ts,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + conf.period.ticks);
}
else {
timer_del (s->ts);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (AudioState *VAR_0)
{
if (audio_is_timer_needed ()) {
timer_mod (VAR_0->ts,
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + conf.period.ticks);
}
else {
timer_del (VAR_0->ts);
}
}
| [
"static void FUNC_0 (AudioState *VAR_0)\n{",
"if (audio_is_timer_needed ()) {",
"timer_mod (VAR_0->ts,\nqemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + conf.period.ticks);",
"}",
"else {",
"timer_del (VAR_0->ts);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
4,827 | int bdrv_get_translation_hint(BlockDriverState *bs)
{
return bs->translation;
}
| false | qemu | 2b584959ed300ddff4acba0d7554becad5f274fd | int bdrv_get_translation_hint(BlockDriverState *bs)
{
return bs->translation;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0)
{
return VAR_0->translation;
}
| [
"int FUNC_0(BlockDriverState *VAR_0)\n{",
"return VAR_0->translation;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
4,828 | static int omap_validate_emifs_addr(struct omap_mpu_state_s *s,
target_phys_addr_t addr)
{
return range_covers_byte(OMAP_EMIFS_BASE, OMAP_EMIFF_BASE - OMAP_EMIFS_BASE,
addr);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static int omap_validate_emifs_addr(struct omap_mpu_state_s *s,
target_phys_addr_t addr)
{
return range_covers_byte(OMAP_EMIFS_BASE, OMAP_EMIFF_BASE - OMAP_EMIFS_BASE,
addr);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(struct omap_mpu_state_s *VAR_0,
target_phys_addr_t VAR_1)
{
return range_covers_byte(OMAP_EMIFS_BASE, OMAP_EMIFF_BASE - OMAP_EMIFS_BASE,
VAR_1);
}
| [
"static int FUNC_0(struct omap_mpu_state_s *VAR_0,\ntarget_phys_addr_t VAR_1)\n{",
"return range_covers_byte(OMAP_EMIFS_BASE, OMAP_EMIFF_BASE - OMAP_EMIFS_BASE,\nVAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
4,829 | StringOutputVisitor *string_output_visitor_new(bool human)
{
StringOutputVisitor *v;
v = g_malloc0(sizeof(*v));
v->string = g_string_new(NULL);
v->human = human;
v->visitor.type = VISITOR_OUTPUT;
v->visitor.type_int64 = print_type_int64;
v->visitor.type_uint64 = print_type_uint64... | false | qemu | 3b098d56979d2f7fd707c5be85555d114353a28d | StringOutputVisitor *string_output_visitor_new(bool human)
{
StringOutputVisitor *v;
v = g_malloc0(sizeof(*v));
v->string = g_string_new(NULL);
v->human = human;
v->visitor.type = VISITOR_OUTPUT;
v->visitor.type_int64 = print_type_int64;
v->visitor.type_uint64 = print_type_uint64... | {
"code": [],
"line_no": []
} | StringOutputVisitor *FUNC_0(bool human)
{
StringOutputVisitor *v;
v = g_malloc0(sizeof(*v));
v->string = g_string_new(NULL);
v->human = human;
v->visitor.type = VISITOR_OUTPUT;
v->visitor.type_int64 = print_type_int64;
v->visitor.type_uint64 = print_type_uint64;
v->visitor.t... | [
"StringOutputVisitor *FUNC_0(bool human)\n{",
"StringOutputVisitor *v;",
"v = g_malloc0(sizeof(*v));",
"v->string = g_string_new(NULL);",
"v->human = human;",
"v->visitor.type = VISITOR_OUTPUT;",
"v->visitor.type_int64 = print_type_int64;",
"v->visitor.type_uint64 = print_type_uint64;",
"v->visitor.... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
4,831 | int qemu_input_key_value_to_number(const KeyValue *value)
{
if (value->kind == KEY_VALUE_KIND_QCODE) {
return qcode_to_number[value->qcode];
} else {
assert(value->kind == KEY_VALUE_KIND_NUMBER);
return value->number;
}
}
| false | qemu | 568c73a4783cd981e9aa6de4f15dcda7829643ad | int qemu_input_key_value_to_number(const KeyValue *value)
{
if (value->kind == KEY_VALUE_KIND_QCODE) {
return qcode_to_number[value->qcode];
} else {
assert(value->kind == KEY_VALUE_KIND_NUMBER);
return value->number;
}
}
| {
"code": [],
"line_no": []
} | int FUNC_0(const KeyValue *VAR_0)
{
if (VAR_0->kind == KEY_VALUE_KIND_QCODE) {
return qcode_to_number[VAR_0->qcode];
} else {
assert(VAR_0->kind == KEY_VALUE_KIND_NUMBER);
return VAR_0->number;
}
}
| [
"int FUNC_0(const KeyValue *VAR_0)\n{",
"if (VAR_0->kind == KEY_VALUE_KIND_QCODE) {",
"return qcode_to_number[VAR_0->qcode];",
"} else {",
"assert(VAR_0->kind == KEY_VALUE_KIND_NUMBER);",
"return VAR_0->number;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
4,833 | uint64_t HELPER(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | false | qemu | 2399d4e7cec22ecf1c51062d2ebfd45220dbaace | uint64_t HELPER(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | {
"code": [],
"line_no": []
} | uint64_t FUNC_0(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | [
"uint64_t FUNC_0(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr,\nuint64_t new_lo, uint64_t new_hi)\n{",
"uintptr_t ra = GETPC();",
"Int128 oldv, cmpv, newv;",
"bool success;",
"cmpv = int128_make128(env->exclusive_val, env->exclusive_high);",
"newv = int128_make128(new_lo, new_hi);",
"if (paralle... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
45,
49
],
[
51
],
[
53
],
[... |
4,834 | void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
{
/*
* Artificially limit timeout rate to something
* achievable under QEMU. Otherwise, QEMU spends all
* its time generating timer interrupts, and there
* is no forward progress.
* About ten microseconds is the fast... | false | qemu | e91171e30235ae99ab8060988aa3c9536692bba8 | void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
{
if (!use_icount && limit * s->period < 10000 && s->period) {
limit = 10000 / s->period;
}
s->limit = limit;
if (reload)
s->delta = limit;
if (s->enabled && reload) {
s->next_... | {
"code": [],
"line_no": []
} | void FUNC_0(ptimer_state *VAR_0, uint64_t VAR_1, int VAR_2)
{
if (!use_icount && VAR_1 * VAR_0->period < 10000 && VAR_0->period) {
VAR_1 = 10000 / VAR_0->period;
}
VAR_0->VAR_1 = VAR_1;
if (VAR_2)
VAR_0->delta = VAR_1;
if (VAR_0->enabled && VAR_2) {
... | [
"void FUNC_0(ptimer_state *VAR_0, uint64_t VAR_1, int VAR_2)\n{",
"if (!use_icount && VAR_1 * VAR_0->period < 10000 && VAR_0->period) {",
"VAR_1 = 10000 / VAR_0->period;",
"}",
"VAR_0->VAR_1 = VAR_1;",
"if (VAR_2)\nVAR_0->delta = VAR_1;",
"if (VAR_0->enabled && VAR_2) {",
"VAR_0->next_event = qemu_clo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
4,836 | static inline void conv_to_int32(int32_t *loc, float *samples, int num, float norm)
{
int i;
for (i = 0; i < num; i++)
loc[i] = ceilf((samples[i]/norm)*INT32_MAX);
}
| false | FFmpeg | f20b67173ca6a05b8c3dee02dad3b7243b96292b | static inline void conv_to_int32(int32_t *loc, float *samples, int num, float norm)
{
int i;
for (i = 0; i < num; i++)
loc[i] = ceilf((samples[i]/norm)*INT32_MAX);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(int32_t *VAR_0, float *VAR_1, int VAR_2, float VAR_3)
{
int VAR_4;
for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++)
VAR_0[VAR_4] = ceilf((VAR_1[VAR_4]/VAR_3)*INT32_MAX);
}
| [
"static inline void FUNC_0(int32_t *VAR_0, float *VAR_1, int VAR_2, float VAR_3)\n{",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++)",
"VAR_0[VAR_4] = ceilf((VAR_1[VAR_4]/VAR_3)*INT32_MAX);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
4,837 | static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src1,
const uint8_t *src2, int srcW, int xInc)
{
#if ARCH_X86
#if COMPILE_TEMPLATE_MMX2
int32_t *filterPos = c->hChrFilterPos;
... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src1,
const uint8_t *src2, int srcW, int xInc)
{
#if ARCH_X86
#if COMPILE_TEMPLATE_MMX2
int32_t *filterPos = c->hChrFilterPos;
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(hcscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src1,
const uint8_t *src2, int srcW, int xInc)
{
#if ARCH_X86
#if COMPILE_TEMPLATE_MMX2
int32_t *filterPos = c->hChrFilterPos;
... | [
"static inline void FUNC_0(hcscale_fast)(SwsContext *c, int16_t *dst,\nlong dstWidth, const uint8_t *src1,\nconst uint8_t *src2, int srcW, int xInc)\n{",
"#if ARCH_X86\n#if COMPILE_TEMPLATE_MMX2\nint32_t *filterPos = c->hChrFilterPos;",
"int16_t *filter = c->hChrFilter;",
"int canMMX2BeUsed = c->canMM... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
59,
61,
63,
65,... |
4,838 | static void ga_channel_listen_close(GAChannel *c)
{
g_assert(c->method == GA_CHANNEL_UNIX_LISTEN);
g_assert(c->listen_channel);
g_io_channel_shutdown(c->listen_channel, true, NULL);
g_io_channel_unref(c->listen_channel);
c->listen_channel = NULL;
}
| false | qemu | f06b2031a31cdd3acf6f61a977e505b8c6b58f73 | static void ga_channel_listen_close(GAChannel *c)
{
g_assert(c->method == GA_CHANNEL_UNIX_LISTEN);
g_assert(c->listen_channel);
g_io_channel_shutdown(c->listen_channel, true, NULL);
g_io_channel_unref(c->listen_channel);
c->listen_channel = NULL;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(GAChannel *VAR_0)
{
g_assert(VAR_0->method == GA_CHANNEL_UNIX_LISTEN);
g_assert(VAR_0->listen_channel);
g_io_channel_shutdown(VAR_0->listen_channel, true, NULL);
g_io_channel_unref(VAR_0->listen_channel);
VAR_0->listen_channel = NULL;
}
| [
"static void FUNC_0(GAChannel *VAR_0)\n{",
"g_assert(VAR_0->method == GA_CHANNEL_UNIX_LISTEN);",
"g_assert(VAR_0->listen_channel);",
"g_io_channel_shutdown(VAR_0->listen_channel, true, NULL);",
"g_io_channel_unref(VAR_0->listen_channel);",
"VAR_0->listen_channel = NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
4,839 | static int v9fs_do_setuid(V9fsState *s, uid_t uid)
{
return s->ops->setuid(&s->ctx, uid);
}
| false | qemu | 758e8e38eb582e3dc87fd55a1d234c25108a7b7f | static int v9fs_do_setuid(V9fsState *s, uid_t uid)
{
return s->ops->setuid(&s->ctx, uid);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(V9fsState *VAR_0, uid_t VAR_1)
{
return VAR_0->ops->setuid(&VAR_0->ctx, VAR_1);
}
| [
"static int FUNC_0(V9fsState *VAR_0, uid_t VAR_1)\n{",
"return VAR_0->ops->setuid(&VAR_0->ctx, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
4,840 | static void vgafb_update_display(void *opaque)
{
MilkymistVgafbState *s = opaque;
SysBusDevice *sbd;
DisplaySurface *surface = qemu_console_surface(s->con);
int first = 0;
int last = 0;
drawfn fn;
if (!vgafb_enabled(s)) {
return;
}
sbd = SYS_BUS_DEVICE(s);
... | false | qemu | c1076c3e13a86140cc2ba29866512df8460cc7c2 | static void vgafb_update_display(void *opaque)
{
MilkymistVgafbState *s = opaque;
SysBusDevice *sbd;
DisplaySurface *surface = qemu_console_surface(s->con);
int first = 0;
int last = 0;
drawfn fn;
if (!vgafb_enabled(s)) {
return;
}
sbd = SYS_BUS_DEVICE(s);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
MilkymistVgafbState *s = VAR_0;
SysBusDevice *sbd;
DisplaySurface *surface = qemu_console_surface(s->con);
int VAR_1 = 0;
int VAR_2 = 0;
drawfn fn;
if (!vgafb_enabled(s)) {
return;
}
sbd = SYS_BUS_DEVICE(s);
int VAR_3 = s-... | [
"static void FUNC_0(void *VAR_0)\n{",
"MilkymistVgafbState *s = VAR_0;",
"SysBusDevice *sbd;",
"DisplaySurface *surface = qemu_console_surface(s->con);",
"int VAR_1 = 0;",
"int VAR_2 = 0;",
"drawfn fn;",
"if (!vgafb_enabled(s)) {",
"return;",
"}",
"sbd = SYS_BUS_DEVICE(s);",
"int VAR_3 = s->re... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[... |
4,841 | static void mainstone_common_init(int ram_size, int vga_ram_size,
DisplayState *ds, const char *kernel_filename,
const char *kernel_cmdline, const char *initrd_filename,
const char *cpu_model, enum mainstone_model_e model, int arm_id)
{
uint32_t mainstone_ram = 0... | false | qemu | 8543243c29a60f102d7a3d98027b46bc8cdac421 | static void mainstone_common_init(int ram_size, int vga_ram_size,
DisplayState *ds, const char *kernel_filename,
const char *kernel_cmdline, const char *initrd_filename,
const char *cpu_model, enum mainstone_model_e model, int arm_id)
{
uint32_t mainstone_ram = 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, int VAR_1,
DisplayState *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5,
const char *VAR_6, enum mainstone_model_e VAR_7, int VAR_8)
{
uint32_t mainstone_ram = 0x04000000;
uint32_t mainstone_rom = 0x00800000;
... | [
"static void FUNC_0(int VAR_0, int VAR_1,\nDisplayState *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, enum mainstone_model_e VAR_7, int VAR_8)\n{",
"uint32_t mainstone_ram = 0x04000000;",
"uint32_t mainstone_rom = 0x00800000;",
"struct pxa2xx_state_s *VAR_9;",
"qemu_i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
53
],
[
59
],
[
61
],
[
63,... |
4,843 | uint32_t HELPER(xc)(CPUS390XState *env, uint32_t l, uint64_t dest,
uint64_t src)
{
int i;
unsigned char x;
uint32_t cc = 0;
HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
__func__, l, dest, src);
#ifndef CONFIG_USER_ONLY
/* xor with itself is... | false | qemu | fc89efe693278c79273f3bbf6b581e8a749c85b0 | uint32_t HELPER(xc)(CPUS390XState *env, uint32_t l, uint64_t dest,
uint64_t src)
{
int i;
unsigned char x;
uint32_t cc = 0;
HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
__func__, l, dest, src);
#ifndef CONFIG_USER_ONLY
if ((l > 32) &&... | {
"code": [],
"line_no": []
} | uint32_t FUNC_0(xc)(CPUS390XState *env, uint32_t l, uint64_t dest,
uint64_t src)
{
int VAR_0;
unsigned char VAR_1;
uint32_t cc = 0;
HELPER_LOG("%s l %d dest %" PRIx64 " src %" PRIx64 "\n",
__func__, l, dest, src);
#ifndef CONFIG_USER_ONLY
if ((l ... | [
"uint32_t FUNC_0(xc)(CPUS390XState *env, uint32_t l, uint64_t dest,\nuint64_t src)\n{",
"int VAR_0;",
"unsigned char VAR_1;",
"uint32_t cc = 0;",
"HELPER_LOG(\"%s l %d dest %\" PRIx64 \" src %\" PRIx64 \"\\n\",\n__func__, l, dest, src);",
"#ifndef CONFIG_USER_ONLY\nif ((l > 32) && (src == dest) &&\n(src &... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
49
],
[
51
],
[
53
],
[
55
... |
4,844 | static int xen_pt_pci_config_access_check(PCIDevice *d, uint32_t addr, int len)
{
/* check offset range */
if (addr >= 0xFF) {
XEN_PT_ERR(d, "Failed to access register with offset exceeding 0xFF. "
"(addr: 0x%02x, len: %d)\n", addr, len);
return -1;
}
/* chec... | false | qemu | 4daf62594d13dfca2ce3a74dd3bddee5f54d7127 | static int xen_pt_pci_config_access_check(PCIDevice *d, uint32_t addr, int len)
{
if (addr >= 0xFF) {
XEN_PT_ERR(d, "Failed to access register with offset exceeding 0xFF. "
"(addr: 0x%02x, len: %d)\n", addr, len);
return -1;
}
if ((len != 1) && (len !=... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, int VAR_2)
{
if (VAR_1 >= 0xFF) {
XEN_PT_ERR(VAR_0, "Failed to access register with offset exceeding 0xFF. "
"(VAR_1: 0x%02x, VAR_2: %VAR_0)\n", VAR_1, VAR_2);
return -1;
}
if ((VAR_2 != 1) && (VAR_2 ... | [
"static int FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, int VAR_2)\n{",
"if (VAR_1 >= 0xFF) {",
"XEN_PT_ERR(VAR_0, \"Failed to access register with offset exceeding 0xFF. \"\n\"(VAR_1: 0x%02x, VAR_2: %VAR_0)\\n\", VAR_1, VAR_2);",
"return -1;",
"}",
"if ((VAR_2 != 1) && (VAR_2 != 2) && (VAR_2 != 4)) {",
"X... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
4,845 | static inline int dmg_read_chunk(BlockDriverState *bs, int sector_num)
{
BDRVDMGState *s = bs->opaque;
if(!is_sector_in_chunk(s,s->current_chunk,sector_num)) {
int ret;
uint32_t chunk = search_chunk(s,sector_num);
if(chunk>=s->n_chunks)
return -1;
s->current_chunk = s->n_chunks;
switch(... | false | qemu | 2c1885adcf0312da80c7317b09f9adad97fa0fc6 | static inline int dmg_read_chunk(BlockDriverState *bs, int sector_num)
{
BDRVDMGState *s = bs->opaque;
if(!is_sector_in_chunk(s,s->current_chunk,sector_num)) {
int ret;
uint32_t chunk = search_chunk(s,sector_num);
if(chunk>=s->n_chunks)
return -1;
s->current_chunk = s->n_chunks;
switch(... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(BlockDriverState *VAR_0, int VAR_1)
{
BDRVDMGState *s = VAR_0->opaque;
if(!is_sector_in_chunk(s,s->current_chunk,VAR_1)) {
int VAR_2;
uint32_t chunk = search_chunk(s,VAR_1);
if(chunk>=s->n_chunks)
return -1;
s->current_chunk = s->n_chunks;
switch(s->types[chunk]... | [
"static inline int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{",
"BDRVDMGState *s = VAR_0->opaque;",
"if(!is_sector_in_chunk(s,s->current_chunk,VAR_1)) {",
"int VAR_2;",
"uint32_t chunk = search_chunk(s,VAR_1);",
"if(chunk>=s->n_chunks)\nreturn -1;",
"s->current_chunk = s->n_chunks;",
"switch(s->typ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51
],
[
55,
57
],
[
61... |
4,846 | void object_property_add_child(Object *obj, const char *name,
Object *child, Error **errp)
{
Error *local_err = NULL;
gchar *type;
type = g_strdup_printf("child<%s>", object_get_typename(OBJECT(child)));
object_property_add(obj, name, type, object_get_child_prope... | false | qemu | 64607d088132abdb25bf30d93e97d0c8df7b364c | void object_property_add_child(Object *obj, const char *name,
Object *child, Error **errp)
{
Error *local_err = NULL;
gchar *type;
type = g_strdup_printf("child<%s>", object_get_typename(OBJECT(child)));
object_property_add(obj, name, type, object_get_child_prope... | {
"code": [],
"line_no": []
} | void FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, Error **VAR_3)
{
Error *local_err = NULL;
gchar *type;
type = g_strdup_printf("VAR_2<%s>", object_get_typename(OBJECT(VAR_2)));
object_property_add(VAR_0, VAR_1, type, object_get_child_property, NULL,
... | [
"void FUNC_0(Object *VAR_0, const char *VAR_1,\nObject *VAR_2, Error **VAR_3)\n{",
"Error *local_err = NULL;",
"gchar *type;",
"type = g_strdup_printf(\"VAR_2<%s>\", object_get_typename(OBJECT(VAR_2)));",
"object_property_add(VAR_0, VAR_1, type, object_get_child_property, NULL,\nobject_finalize_child_proper... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41
]
] |
4,850 | void tlb_fill(CPUState *cs, target_ulong addr, MMUAccessType access_type,
int mmu_idx, uintptr_t retaddr)
{
bool ret;
uint32_t fsr = 0;
ARMMMUFaultInfo fi = {};
ret = arm_tlb_fill(cs, addr, access_type, mmu_idx, &fsr, &fi);
if (unlikely(ret)) {
ARMCPU *cpu = ARM_CPU(c... | true | qemu | 65ed2ed90d9d81fd4b639029be850ea5651f919f | void tlb_fill(CPUState *cs, target_ulong addr, MMUAccessType access_type,
int mmu_idx, uintptr_t retaddr)
{
bool ret;
uint32_t fsr = 0;
ARMMMUFaultInfo fi = {};
ret = arm_tlb_fill(cs, addr, access_type, mmu_idx, &fsr, &fi);
if (unlikely(ret)) {
ARMCPU *cpu = ARM_CPU(c... | {
"code": [
" uint32_t syn, exc;",
" syn = fsr & ~(1 << 9);",
" syn = syn_insn_abort(same_el, 0, fi.s1ptw, syn);",
" access_type == MMU_DATA_STORE, syn);"
],
"line_no": [
23,
55,
67,
77
]
} | void FUNC_0(CPUState *VAR_0, target_ulong VAR_1, MMUAccessType VAR_2,
int VAR_3, uintptr_t VAR_4)
{
bool ret;
uint32_t fsr = 0;
ARMMMUFaultInfo fi = {};
ret = arm_tlb_fill(VAR_0, VAR_1, VAR_2, VAR_3, &fsr, &fi);
if (unlikely(ret)) {
ARMCPU *cpu = ARM_CPU(VAR_0);
... | [
"void FUNC_0(CPUState *VAR_0, target_ulong VAR_1, MMUAccessType VAR_2,\nint VAR_3, uintptr_t VAR_4)\n{",
"bool ret;",
"uint32_t fsr = 0;",
"ARMMMUFaultInfo fi = {};",
"ret = arm_tlb_fill(VAR_0, VAR_1, VAR_2, VAR_3, &fsr, &fi);",
"if (unlikely(ret)) {",
"ARMCPU *cpu = ARM_CPU(VAR_0);",
"CPUARMState *en... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
4,851 | static inline FFAMediaCodec *codec_create(int method, const char *arg)
{
int ret = -1;
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring jarg = NULL;
jobject object = NULL;
jmethodID create_id = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
ret... | true | FFmpeg | 1f1207145a0f2d26e5e3525bea6cc417a3ec39cf | static inline FFAMediaCodec *codec_create(int method, const char *arg)
{
int ret = -1;
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring jarg = NULL;
jobject object = NULL;
jmethodID create_id = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
ret... | {
"code": [],
"line_no": []
} | static inline FFAMediaCodec *FUNC_0(int method, const char *arg)
{
int VAR_0 = -1;
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring jarg = NULL;
jobject object = NULL;
jmethodID create_id = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
return ... | [
"static inline FFAMediaCodec *FUNC_0(int method, const char *arg)\n{",
"int VAR_0 = -1;",
"JNIEnv *env = NULL;",
"FFAMediaCodec *codec = NULL;",
"jstring jarg = NULL;",
"jobject object = NULL;",
"jmethodID create_id = NULL;",
"codec = av_mallocz(sizeof(FFAMediaCodec));",
"if (!codec) {",
"return N... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
26
],
[
30
],
[
32
],
[
34
],
[
36
],
[
41
],
[
43
],
[
48
],
[
50
],
[
52
... |
4,852 | static int parse_header(OutputStream *os, const uint8_t *buf, int buf_size)
{
if (buf_size < 13)
return AVERROR_INVALIDDATA;
if (memcmp(buf, "FLV", 3))
return AVERROR_INVALIDDATA;
buf += 13;
buf_size -= 13;
while (buf_size >= 11 + 4) {
int type = buf[0];
... | true | FFmpeg | b8ed15d6378f00e158c72c526fa0fce17da77361 | static int parse_header(OutputStream *os, const uint8_t *buf, int buf_size)
{
if (buf_size < 13)
return AVERROR_INVALIDDATA;
if (memcmp(buf, "FLV", 3))
return AVERROR_INVALIDDATA;
buf += 13;
buf_size -= 13;
while (buf_size >= 11 + 4) {
int type = buf[0];
... | {
"code": [
" if (os->nb_extra_packets > FF_ARRAY_ELEMS(os->extra_packets))"
],
"line_no": [
29
]
} | static int FUNC_0(OutputStream *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
if (VAR_2 < 13)
return AVERROR_INVALIDDATA;
if (memcmp(VAR_1, "FLV", 3))
return AVERROR_INVALIDDATA;
VAR_1 += 13;
VAR_2 -= 13;
while (VAR_2 >= 11 + 4) {
int VAR_3 = VAR_1[0];
int ... | [
"static int FUNC_0(OutputStream *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"if (VAR_2 < 13)\nreturn AVERROR_INVALIDDATA;",
"if (memcmp(VAR_1, \"FLV\", 3))\nreturn AVERROR_INVALIDDATA;",
"VAR_1 += 13;",
"VAR_2 -= 13;",
"while (VAR_2 >= 11 + 4) {",
"int VAR_3 = VAR_1[0];",
"int VAR_4 = AV_RB24(&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[... |
4,853 | static void omap_i2c_send(I2CAdapter *i2c, uint8_t addr,
const uint8_t *buf, uint16_t len)
{
OMAPI2C *s = (OMAPI2C *)i2c;
uint16_t data;
omap_i2c_set_slave_addr(s, addr);
data = len;
memwrite(s->addr + OMAP_I2C_CNT, &data, 2);
data = OMAP_I2C_CON_I2C_EN |
... | true | qemu | d0bce760e04b1658a3b4ac95be2839ae20fd86db | static void omap_i2c_send(I2CAdapter *i2c, uint8_t addr,
const uint8_t *buf, uint16_t len)
{
OMAPI2C *s = (OMAPI2C *)i2c;
uint16_t data;
omap_i2c_set_slave_addr(s, addr);
data = len;
memwrite(s->addr + OMAP_I2C_CNT, &data, 2);
data = OMAP_I2C_CON_I2C_EN |
... | {
"code": [
" memwrite(s->addr + OMAP_I2C_CNT, &data, 2);",
" memwrite(s->addr + OMAP_I2C_CON, &data, 2);",
" memread(s->addr + OMAP_I2C_CON, &data, 2);",
" memread(s->addr + OMAP_I2C_STAT, &data, 2);",
" memread(s->addr + OMAP_I2C_STAT, &data, 2);",
" memwrite(s->add... | static void FUNC_0(I2CAdapter *VAR_0, uint8_t VAR_1,
const uint8_t *VAR_2, uint16_t VAR_3)
{
OMAPI2C *s = (OMAPI2C *)VAR_0;
uint16_t data;
omap_i2c_set_slave_addr(s, VAR_1);
data = VAR_3;
memwrite(s->VAR_1 + OMAP_I2C_CNT, &data, 2);
data = OMAP_I2C_CON_I2C... | [
"static void FUNC_0(I2CAdapter *VAR_0, uint8_t VAR_1,\nconst uint8_t *VAR_2, uint16_t VAR_3)\n{",
"OMAPI2C *s = (OMAPI2C *)VAR_0;",
"uint16_t data;",
"omap_i2c_set_slave_addr(s, VAR_1);",
"data = VAR_3;",
"memwrite(s->VAR_1 + OMAP_I2C_CNT, &data, 2);",
"data = OMAP_I2C_CON_I2C_EN |\nOMAP_I2C_CON_TRX |\n... | [
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
23,
25,
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[... |
4,854 | static void mps2_common_init(MachineState *machine)
{
MPS2MachineState *mms = MPS2_MACHINE(machine);
MPS2MachineClass *mmc = MPS2_MACHINE_GET_CLASS(machine);
MemoryRegion *system_memory = get_system_memory();
DeviceState *armv7m, *sccdev;
if (!machine->cpu_model) {
machine->cpu_mode... | true | qemu | ce3bc112cdb1d462e2d52eaa17a7314e7f3af504 | static void mps2_common_init(MachineState *machine)
{
MPS2MachineState *mms = MPS2_MACHINE(machine);
MPS2MachineClass *mmc = MPS2_MACHINE_GET_CLASS(machine);
MemoryRegion *system_memory = get_system_memory();
DeviceState *armv7m, *sccdev;
if (!machine->cpu_model) {
machine->cpu_mode... | {
"code": [
" qdev_get_gpio_in(orgate_dev, 0),",
" qdev_get_gpio_in(orgate_dev, 1),"
],
"line_no": [
371,
373
]
} | static void FUNC_0(MachineState *VAR_0)
{
MPS2MachineState *mms = MPS2_MACHINE(VAR_0);
MPS2MachineClass *mmc = MPS2_MACHINE_GET_CLASS(VAR_0);
MemoryRegion *system_memory = get_system_memory();
DeviceState *armv7m, *sccdev;
if (!VAR_0->cpu_model) {
VAR_0->cpu_model = mmc->cpu_model;
... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"MPS2MachineState *mms = MPS2_MACHINE(VAR_0);",
"MPS2MachineClass *mmc = MPS2_MACHINE_GET_CLASS(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"DeviceState *armv7m, *sccdev;",
"if (!VAR_0->cpu_model) {",
"VAR_0->cpu_model = mmc->cpu_model;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
89,
91
],
[
93
],
[
97
],
[
99,
101
],
[
103
],
[
105
],
[
... |
4,855 | static int xbm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
AVFrame *p = data;
const uint8_t *end, *ptr = avpkt->data;
uint8_t *dst;
int ret, linesize, i, j;
end = avpkt->data + avpkt->size;
while (!avctx->width || !avct... | true | FFmpeg | 369a12082635bb6655412dd4407759caf48d48c9 | static int xbm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
AVFrame *p = data;
const uint8_t *end, *ptr = avpkt->data;
uint8_t *dst;
int ret, linesize, i, j;
end = avpkt->data + avpkt->size;
while (!avctx->width || !avct... | {
"code": [
" if (sscanf(ptr, \"#define %256s %u\", name, &number) != 2) {"
],
"line_no": [
29
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *p = VAR_1;
const uint8_t *VAR_4, *ptr = VAR_3->VAR_1;
uint8_t *dst;
int VAR_5, VAR_6, VAR_7, VAR_8;
VAR_4 = VAR_3->VAR_1 + VAR_3->size;
while (!VAR_0->width || !VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *p = VAR_1;",
"const uint8_t *VAR_4, *ptr = VAR_3->VAR_1;",
"uint8_t *dst;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"VAR_4 = VAR_3->VAR_1 + VAR_3->size;",
"while (!VAR_0->width || !VAR_0->height) {",
"char V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
4,856 | int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
target_ulong tmp;
tmp = ldtul_p(mem_buf);
if (n < 32) {
env->active_tc.gpr[n] = tmp;
return sizeof(target_ulong);
}
if (env->CP0_... | true | qemu | 800675f11742b6080e40d17b8d5f35d3a5fc5724 | int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
target_ulong tmp;
tmp = ldtul_p(mem_buf);
if (n < 32) {
env->active_tc.gpr[n] = tmp;
return sizeof(target_ulong);
}
if (env->CP0_... | {
"code": [
" && n >= 38 && n < 73) {"
],
"line_no": [
27
]
} | int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)
{
MIPSCPU *cpu = MIPS_CPU(VAR_0);
CPUMIPSState *env = &cpu->env;
target_ulong tmp;
tmp = ldtul_p(VAR_1);
if (VAR_2 < 32) {
env->active_tc.gpr[VAR_2] = tmp;
return sizeof(target_ulong);
}
if (env->CP0_Config1... | [
"int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"MIPSCPU *cpu = MIPS_CPU(VAR_0);",
"CPUMIPSState *env = &cpu->env;",
"target_ulong tmp;",
"tmp = ldtul_p(VAR_1);",
"if (VAR_2 < 32) {",
"env->active_tc.gpr[VAR_2] = tmp;",
"return sizeof(target_ulong);",
"}",
"if (env->CP0_Config1 & (1 <... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
... |
4,857 | static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int i;
char header[MAX_FRAME_HEADER+1];
int ret;
int64_t off = avio_tell(s->pb);
for (i = 0; i < MAX_FRAME_HEADER; i++) {
header[i] = avio_r8(s->pb);
if (header[i] == '\n') {
header[i + 1] = 0;
... | true | FFmpeg | e3694478a98bc2cd702b3b3f0bfb19a100da737e | static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int i;
char header[MAX_FRAME_HEADER+1];
int ret;
int64_t off = avio_tell(s->pb);
for (i = 0; i < MAX_FRAME_HEADER; i++) {
header[i] = avio_r8(s->pb);
if (header[i] == '\n') {
header[i + 1] = 0;
... | {
"code": [
" else if (ret != s->packet_size - Y4M_FRAME_MAGIC_LEN)"
],
"line_no": [
55
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
int VAR_2;
char VAR_3[MAX_FRAME_HEADER+1];
int VAR_4;
int64_t off = avio_tell(VAR_0->pb);
for (VAR_2 = 0; VAR_2 < MAX_FRAME_HEADER; VAR_2++) {
VAR_3[VAR_2] = avio_r8(VAR_0->pb);
if (VAR_3[VAR_2] == '\n') {
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"int VAR_2;",
"char VAR_3[MAX_FRAME_HEADER+1];",
"int VAR_4;",
"int64_t off = avio_tell(VAR_0->pb);",
"for (VAR_2 = 0; VAR_2 < MAX_FRAME_HEADER; VAR_2++) {",
"VAR_3[VAR_2] = avio_r8(VAR_0->pb);",
"if (VAR_3[VAR_2] == '\\n') {",
"VAR_3[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
43,
45
],
[
49
],
[
51,... |
4,858 | uint64_t HELPER(neon_add_saturate_u64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 + src2;
if (res < src1) {
env->QF = 1;
res = ~(uint64_t)0;
}
return res;
}
| true | qemu | 72902672dc2ed6281cdb205259c1d52ecf01f6b2 | uint64_t HELPER(neon_add_saturate_u64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 + src2;
if (res < src1) {
env->QF = 1;
res = ~(uint64_t)0;
}
return res;
}
| {
"code": [
" uint64_t res;",
" res = src1 + src2;",
" env->QF = 1;",
" return res;",
"uint64_t HELPER(neon_add_saturate_u64)(uint64_t src1, uint64_t src2)",
" uint64_t res;",
" res = src1 + src2;",
" if (res < src1) {",
" env->QF = 1;",
" ... | uint64_t FUNC_0(neon_add_saturate_u64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 + src2;
if (res < src1) {
env->QF = 1;
res = ~(uint64_t)0;
}
return res;
}
| [
"uint64_t FUNC_0(neon_add_saturate_u64)(uint64_t src1, uint64_t src2)\n{",
"uint64_t res;",
"res = src1 + src2;",
"if (res < src1) {",
"env->QF = 1;",
"res = ~(uint64_t)0;",
"}",
"return res;",
"}"
] | [
1,
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
4,859 | static void load_linux(PCMachineState *pcms,
FWCfgState *fw_cfg)
{
uint16_t protocol;
int setup_size, kernel_size, initrd_size = 0, cmdline_size;
uint32_t initrd_max;
uint8_t header[8192], *setup, *kernel, *initrd_data;
hwaddr real_addr, prot_addr, cmdline_addr, initrd_... | true | qemu | ec5fd402645fd4f03d89dcd5840b0e8542549e82 | static void load_linux(PCMachineState *pcms,
FWCfgState *fw_cfg)
{
uint16_t protocol;
int setup_size, kernel_size, initrd_size = 0, cmdline_size;
uint32_t initrd_max;
uint8_t header[8192], *setup, *kernel, *initrd_data;
hwaddr real_addr, prot_addr, cmdline_addr, initrd_... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCMachineState *VAR_0,
FWCfgState *VAR_1)
{
uint16_t protocol;
int VAR_2, VAR_3, VAR_4 = 0, VAR_5;
uint32_t initrd_max;
uint8_t header[8192], *setup, *kernel, *initrd_data;
hwaddr real_addr, prot_addr, cmdline_addr, initrd_addr = 0;
FILE *f;
... | [
"static void FUNC_0(PCMachineState *VAR_0,\nFWCfgState *VAR_1)\n{",
"uint16_t protocol;",
"int VAR_2, VAR_3, VAR_4 = 0, VAR_5;",
"uint32_t initrd_max;",
"uint8_t header[8192], *setup, *kernel, *initrd_data;",
"hwaddr real_addr, prot_addr, cmdline_addr, initrd_addr = 0;",
"FILE *f;",
"char *VAR_6;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
39
],
[
41,
43,
45
],
[
47,
49
],
[
57,
59
],
[... |
4,860 | void ga_command_state_add(GACommandState *cs,
void (*init)(void),
void (*cleanup)(void))
{
GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));
cg->init = init;
cg->cleanup = cleanup;
cs->groups = g_slist_append(cs->groups, cg);
}
| true | qemu | f3a06403b82c7f036564e4caf18b52ce6885fcfb | void ga_command_state_add(GACommandState *cs,
void (*init)(void),
void (*cleanup)(void))
{
GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));
cg->init = init;
cg->cleanup = cleanup;
cs->groups = g_slist_append(cs->groups, cg);
}
| {
"code": [
" GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));"
],
"line_no": [
9
]
} | void FUNC_0(GACommandState *VAR_0,
void (*VAR_1)(void),
void (*VAR_2)(void))
{
GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));
cg->VAR_1 = VAR_1;
cg->VAR_2 = VAR_2;
VAR_0->groups = g_slist_append(VAR_0->groups, cg);
}
| [
"void FUNC_0(GACommandState *VAR_0,\nvoid (*VAR_1)(void),\nvoid (*VAR_2)(void))\n{",
"GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));",
"cg->VAR_1 = VAR_1;",
"cg->VAR_2 = VAR_2;",
"VAR_0->groups = g_slist_append(VAR_0->groups, cg);",
"}"
] | [
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
4,862 | static void new_pes_packet(PESContext *pes, AVPacket *pkt)
{
av_init_packet(pkt);
pkt->destruct = av_destruct_packet;
pkt->data = pes->buffer;
pkt->size = pes->data_index;
memset(pkt->data+pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
// Separate out the AC3 substream from an HDMV comb... | true | FFmpeg | ce9e31655e5b8f8db3bb4f13f436fc836062a514 | static void new_pes_packet(PESContext *pes, AVPacket *pkt)
{
av_init_packet(pkt);
pkt->destruct = av_destruct_packet;
pkt->data = pes->buffer;
pkt->size = pes->data_index;
memset(pkt->data+pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
if (pes->sub_st && pes->stream_type == 0x83 &... | {
"code": [],
"line_no": []
} | static void FUNC_0(PESContext *VAR_0, AVPacket *VAR_1)
{
av_init_packet(VAR_1);
VAR_1->destruct = av_destruct_packet;
VAR_1->data = VAR_0->buffer;
VAR_1->size = VAR_0->data_index;
memset(VAR_1->data+VAR_1->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
if (VAR_0->sub_st && VAR_0->strea... | [
"static void FUNC_0(PESContext *VAR_0, AVPacket *VAR_1)\n{",
"av_init_packet(VAR_1);",
"VAR_1->destruct = av_destruct_packet;",
"VAR_1->data = VAR_0->buffer;",
"VAR_1->size = VAR_0->data_index;",
"memset(VAR_1->data+VAR_1->size, 0, FF_INPUT_BUFFER_PADDING_SIZE);",
"if (VAR_0->sub_st && VAR_0->stream_typ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
42
],
[
44
],
[
46
],
[
48
],
[
51
]
] |
4,863 | static int seqvideo_decode(SeqVideoContext *seq, const unsigned char *data, int data_size)
{
const unsigned char *data_end = data + data_size;
GetBitContext gb;
int flags, i, j, x, y, op;
unsigned char c[3];
unsigned char *dst;
uint32_t *palette;
flags = *data++;
if (flags &... | true | FFmpeg | b12d92efd6c0d48665383a9baecc13e7ebbd8a22 | static int seqvideo_decode(SeqVideoContext *seq, const unsigned char *data, int data_size)
{
const unsigned char *data_end = data + data_size;
GetBitContext gb;
int flags, i, j, x, y, op;
unsigned char c[3];
unsigned char *dst;
uint32_t *palette;
flags = *data++;
if (flags &... | {
"code": [
" palette[i] = 0xFF << 24 | AV_RB24(c);"
],
"line_no": [
37
]
} | static int FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, int VAR_2)
{
const unsigned char *VAR_3 = VAR_1 + VAR_2;
GetBitContext gb;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
unsigned char VAR_10[3];
unsigned char *VAR_11;
uint32_t *palette;
VAR_4 = *VAR_1++;
... | [
"static int FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, int VAR_2)\n{",
"const unsigned char *VAR_3 = VAR_1 + VAR_2;",
"GetBitContext gb;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"unsigned char VAR_10[3];",
"unsigned char *VAR_11;",
"uint32_t *palette;",
"VAR_4 = *VAR_1++;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[... |
4,864 | QTestState *qtest_init_without_qmp_handshake(const char *extra_args)
{
QTestState *s;
int sock, qmpsock, i;
gchar *socket_path;
gchar *qmp_socket_path;
gchar *command;
const char *qemu_binary;
qemu_binary = getenv("QTEST_QEMU_BINARY");
g_assert(qemu_binary != NULL);
s = g_malloc(size... | true | qemu | d9123d09f711bf1b855de2b5a907d4c85f46d6c3 | QTestState *qtest_init_without_qmp_handshake(const char *extra_args)
{
QTestState *s;
int sock, qmpsock, i;
gchar *socket_path;
gchar *qmp_socket_path;
gchar *command;
const char *qemu_binary;
qemu_binary = getenv("QTEST_QEMU_BINARY");
g_assert(qemu_binary != NULL);
s = g_malloc(size... | {
"code": [],
"line_no": []
} | QTestState *FUNC_0(const char *extra_args)
{
QTestState *s;
int VAR_0, VAR_1, VAR_2;
gchar *socket_path;
gchar *qmp_socket_path;
gchar *command;
const char *VAR_3;
VAR_3 = getenv("QTEST_QEMU_BINARY");
g_assert(VAR_3 != NULL);
s = g_malloc(sizeof(*s));
socket_path = g_strdup_print... | [
"QTestState *FUNC_0(const char *extra_args)\n{",
"QTestState *s;",
"int VAR_0, VAR_1, VAR_2;",
"gchar *socket_path;",
"gchar *qmp_socket_path;",
"gchar *command;",
"const char *VAR_3;",
"VAR_3 = getenv(\"QTEST_QEMU_BINARY\");",
"g_assert(VAR_3 != NULL);",
"s = g_malloc(sizeof(*s));",
"socket_pat... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20,
21,
22,
... |
4,865 | static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
{
int yalpha1=yalpha^4095;
int uvalpha1=uvalpha^4095;
int i;
#if 0 //isn't used
if(flags&SWS_FULL_CHR_H_INT)
{
switc... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
{
int yalpha1=yalpha^4095;
int uvalpha1=uvalpha^4095;
int i;
#if 0
if(flags&SWS_FULL_CHR_H_INT)
{
switch(dstFormat)... | {
"code": [
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t\" jb 1b\t\t\t\t\\n\\t\"",
"\t\t\t);",
"\t\t\t);",
"\ti... | static inline void FUNC_0(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
{
int VAR_0=yalpha^4095;
int VAR_1=uvalpha^4095;
int VAR_2;
#if 0
if(flags&SWS_FULL_CHR_H_INT)
{
switch(dstFormat)
... | [
"static inline void FUNC_0(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,\nuint8_t *dest, int dstW, int yalpha, int uvalpha, int y)\n{",
"int VAR_0=yalpha^4095;",
"int VAR_1=uvalpha^4095;",
"int VAR_2;",
"#if 0\nif(flags&SWS_FULL_CHR_H_INT)\n{",
"switch(dst... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
1,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
21,
23
],
[
25,
27,
29,
35,
37,
39,
43,
45,
47,
51,
53,
57,
59,
61,
67,
69,
71,
73
],
[
75
],
[
77,
79,... |
4,866 | static int http_parse_request(HTTPContext *c)
{
const char *p;
char *p1;
enum RedirType redir_type;
char cmd[32];
char info[1024], filename[1024];
char url[1024], *q;
char protocol[32];
char msg[1024];
const char *mime_type;
FFServerStream *stream;
int i;
cha... | false | FFmpeg | 33d6f90e3e0241939ea0be9ca9e1f335942081c8 | static int http_parse_request(HTTPContext *c)
{
const char *p;
char *p1;
enum RedirType redir_type;
char cmd[32];
char info[1024], filename[1024];
char url[1024], *q;
char protocol[32];
char msg[1024];
const char *mime_type;
FFServerStream *stream;
int i;
cha... | {
"code": [],
"line_no": []
} | static int FUNC_0(HTTPContext *VAR_0)
{
const char *VAR_19;
char *VAR_2;
enum RedirType VAR_3;
char VAR_4[32];
char VAR_5[1024], VAR_6[1024];
char VAR_7[1024], *VAR_8;
char VAR_9[32];
char VAR_10[1024];
const char *VAR_11;
FFServerStream *stream;
int VAR_12;
... | [
"static int FUNC_0(HTTPContext *VAR_0)\n{",
"const char *VAR_19;",
"char *VAR_2;",
"enum RedirType VAR_3;",
"char VAR_4[32];",
"char VAR_5[1024], VAR_6[1024];",
"char VAR_7[1024], *VAR_8;",
"char VAR_9[32];",
"char VAR_10[1024];",
"const char *VAR_11;",
"FFServerStream *stream;",
"int VAR_12;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
... |
4,867 | static int get_bitmap(QEMUFile *f, void *pv, size_t size)
{
unsigned long *bmp = pv;
int i, idx = 0;
for (i = 0; i < BITS_TO_U64S(size); i++) {
uint64_t w = qemu_get_be64(f);
bmp[idx++] = w;
if (sizeof(unsigned long) == 4 && idx < BITS_TO_LONGS(size)) {
bmp[idx++]... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_bitmap(QEMUFile *f, void *pv, size_t size)
{
unsigned long *bmp = pv;
int i, idx = 0;
for (i = 0; i < BITS_TO_U64S(size); i++) {
uint64_t w = qemu_get_be64(f);
bmp[idx++] = w;
if (sizeof(unsigned long) == 4 && idx < BITS_TO_LONGS(size)) {
bmp[idx++]... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
unsigned long *VAR_3 = VAR_1;
int VAR_4, VAR_5 = 0;
for (VAR_4 = 0; VAR_4 < BITS_TO_U64S(VAR_2); VAR_4++) {
uint64_t w = qemu_get_be64(VAR_0);
VAR_3[VAR_5++] = w;
if (sizeof(unsigned long) == 4 && VAR_5 < BITS_TO_... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"unsigned long *VAR_3 = VAR_1;",
"int VAR_4, VAR_5 = 0;",
"for (VAR_4 = 0; VAR_4 < BITS_TO_U64S(VAR_2); VAR_4++) {",
"uint64_t w = qemu_get_be64(VAR_0);",
"VAR_3[VAR_5++] = w;",
"if (sizeof(unsigned long) == 4 && VAR_5 < BITS_TO_LONGS(V... | [
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
]
] |
4,868 | long do_sigreturn(CPUM68KState *env)
{
struct target_sigframe *frame;
abi_ulong frame_addr = env->aregs[7] - 4;
target_sigset_t target_set;
sigset_t set;
int d0, i;
if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1))
goto badframe;
/* set blocked signals */
... | true | qemu | 016d2e1dfa21b64a524d3629fdd317d4c25bc3b8 | long do_sigreturn(CPUM68KState *env)
{
struct target_sigframe *frame;
abi_ulong frame_addr = env->aregs[7] - 4;
target_sigset_t target_set;
sigset_t set;
int d0, i;
if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1))
goto badframe;
if (__get_user(target_set... | {
"code": [
" goto badframe;",
" goto badframe;",
" goto badframe;",
" if (restore_sigcontext(env, &frame->sc, &d0))",
" goto badframe;",
" goto badframe;",
" goto badframe;"
],
"line_no": [
19,
19,
19,
53,
19,
19,
... | long FUNC_0(CPUM68KState *VAR_0)
{
struct target_sigframe *VAR_1;
abi_ulong frame_addr = VAR_0->aregs[7] - 4;
target_sigset_t target_set;
sigset_t set;
int VAR_2, VAR_3;
if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))
goto badframe;
if (__get_user(targe... | [
"long FUNC_0(CPUM68KState *VAR_0)\n{",
"struct target_sigframe *VAR_1;",
"abi_ulong frame_addr = VAR_0->aregs[7] - 4;",
"target_sigset_t target_set;",
"sigset_t set;",
"int VAR_2, VAR_3;",
"if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))\ngoto badframe;",
"if (__get_user(target_set.sig[0], &... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
27,
29
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
53,
55
],
[
59
],
[
61
],
[
65,
67
],
[... |
4,869 | static int vscsi_send_adapter_info(VSCSIState *s, vscsi_req *req)
{
struct viosrp_adapter_info *sinfo;
struct mad_adapter_info_data info;
int rc;
sinfo = &req->iu.mad.adapter_info;
#if 0 /* What for ? */
rc = spapr_tce_dma_read(&s->vdev, be64_to_cpu(sinfo->buffer),
... | true | qemu | ad0ebb91cd8b5fdc4a583b03645677771f420a46 | static int vscsi_send_adapter_info(VSCSIState *s, vscsi_req *req)
{
struct viosrp_adapter_info *sinfo;
struct mad_adapter_info_data info;
int rc;
sinfo = &req->iu.mad.adapter_info;
#if 0
rc = spapr_tce_dma_read(&s->vdev, be64_to_cpu(sinfo->buffer),
&info, be1... | {
"code": [
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
" rc = spapr_tce_dma_read(&s->vdev, be64_to_cpu(sinfo->buffer),",
" rc = spapr_tce_dma_write(&s->vdev, be64_to_cpu(sinfo->buffer),"
],
"line_no": [
29,
29... | static int FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)
{
struct viosrp_adapter_info *VAR_2;
struct mad_adapter_info_data VAR_3;
int VAR_4;
VAR_2 = &VAR_1->iu.mad.adapter_info;
#if 0
VAR_4 = spapr_tce_dma_read(&VAR_0->vdev, be64_to_cpu(VAR_2->buffer),
&VAR_3, ... | [
"static int FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)\n{",
"struct viosrp_adapter_info *VAR_2;",
"struct mad_adapter_info_data VAR_3;",
"int VAR_4;",
"VAR_2 = &VAR_1->iu.mad.adapter_info;",
"#if 0\nVAR_4 = spapr_tce_dma_read(&VAR_0->vdev, be64_to_cpu(VAR_2->buffer),\n&VAR_3, be16_to_cpu(VAR_2->common.le... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
],
[
51
... |
4,870 | static void qmp_input_type_null(Visitor *v, const char *name, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true);
if (qobject_type(qobj) != QTYPE_QNULL) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",
"null... | true | qemu | c489780203f9b22aca5539ec7589b7140bdc951f | static void qmp_input_type_null(Visitor *v, const char *name, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true);
if (qobject_type(qobj) != QTYPE_QNULL) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",
"null... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, Error **VAR_2)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true);
if (qobject_type(qobj) != QTYPE_QNULL) {
error_setg(VAR_2, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",
"nul... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true);",
"if (qobject_type(qobj) != QTYPE_QNULL) {",
"error_setg(VAR_2, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : \"null\",\n\"null\");"
] | [
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6,
7
]
] |
4,871 | static void gen_spr_970_lpar(CPUPPCState *env)
{
/* Logical partitionning */
/* PPC970: HID4 is effectively the LPCR */
spr_register(env, SPR_970_HID4, "HID4",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
}
| true | qemu | 4b3fc37788fe5a9c6ec0c43863c78604db40cbb3 | static void gen_spr_970_lpar(CPUPPCState *env)
{
spr_register(env, SPR_970_HID4, "HID4",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
}
| {
"code": [
"static void gen_spr_970_lpar(CPUPPCState *env)",
" spr_register(env, SPR_970_HID4, \"HID4\",",
" SPR_NOACCESS, SPR_NOACCESS,",
" &spr_read_generic, &spr_write_generic,",
" 0x00000000);"
],
"line_no": [
1,
9,
11,
13... | static void FUNC_0(CPUPPCState *VAR_0)
{
spr_register(VAR_0, SPR_970_HID4, "HID4",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
}
| [
"static void FUNC_0(CPUPPCState *VAR_0)\n{",
"spr_register(VAR_0, SPR_970_HID4, \"HID4\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
9,
11,
13,
15
],
[
17
]
] |
4,872 | static inline void *alloc_code_gen_buffer(void)
{
void *buf = static_code_gen_buffer;
#ifdef __mips__
if (cross_256mb(buf, tcg_ctx.code_gen_buffer_size)) {
buf = split_cross_256mb(buf, tcg_ctx.code_gen_buffer_size);
}
#endif
map_exec(buf, tcg_ctx.code_gen_buffer_size);
return buf;
... | true | qemu | f293709c6af7a65a9bcec09cdba7a60183657a3e | static inline void *alloc_code_gen_buffer(void)
{
void *buf = static_code_gen_buffer;
#ifdef __mips__
if (cross_256mb(buf, tcg_ctx.code_gen_buffer_size)) {
buf = split_cross_256mb(buf, tcg_ctx.code_gen_buffer_size);
}
#endif
map_exec(buf, tcg_ctx.code_gen_buffer_size);
return buf;
... | {
"code": [
"#endif",
"#endif",
" if (cross_256mb(buf, tcg_ctx.code_gen_buffer_size)) {",
" buf = split_cross_256mb(buf, tcg_ctx.code_gen_buffer_size);",
" map_exec(buf, tcg_ctx.code_gen_buffer_size);",
" if (cross_256mb(buf, tcg_ctx.code_gen_buffer_size)) {",
" return b... | static inline void *FUNC_0(void)
{
void *VAR_0 = static_code_gen_buffer;
#ifdef __mips__
if (cross_256mb(VAR_0, tcg_ctx.code_gen_buffer_size)) {
VAR_0 = split_cross_256mb(VAR_0, tcg_ctx.code_gen_buffer_size);
}
#endif
map_exec(VAR_0, tcg_ctx.code_gen_buffer_size);
return VAR_0;
}
| [
"static inline void *FUNC_0(void)\n{",
"void *VAR_0 = static_code_gen_buffer;",
"#ifdef __mips__\nif (cross_256mb(VAR_0, tcg_ctx.code_gen_buffer_size)) {",
"VAR_0 = split_cross_256mb(VAR_0, tcg_ctx.code_gen_buffer_size);",
"}",
"#endif\nmap_exec(VAR_0, tcg_ctx.code_gen_buffer_size);",
"return VAR_0;",
... | [
1,
0,
1,
1,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
]
] |
4,875 | static void intel_hda_update_int_sts(IntelHDAState *d)
{
uint32_t sts = 0;
uint32_t i;
/* update controller status */
if (d->rirb_sts & ICH6_RBSTS_IRQ) {
sts |= (1 << 30);
}
if (d->rirb_sts & ICH6_RBSTS_OVERRUN) {
sts |= (1 << 30);
}
if (d->state_sts & d->wak... | true | qemu | b1fe60cd3525871a4c593ad8c2b39b89c19c00d0 | static void intel_hda_update_int_sts(IntelHDAState *d)
{
uint32_t sts = 0;
uint32_t i;
if (d->rirb_sts & ICH6_RBSTS_IRQ) {
sts |= (1 << 30);
}
if (d->rirb_sts & ICH6_RBSTS_OVERRUN) {
sts |= (1 << 30);
}
if (d->state_sts & d->wake_en) {
sts |= (1 << ... | {
"code": [
" sts |= (1 << 31);"
],
"line_no": [
53
]
} | static void FUNC_0(IntelHDAState *VAR_0)
{
uint32_t sts = 0;
uint32_t i;
if (VAR_0->rirb_sts & ICH6_RBSTS_IRQ) {
sts |= (1 << 30);
}
if (VAR_0->rirb_sts & ICH6_RBSTS_OVERRUN) {
sts |= (1 << 30);
}
if (VAR_0->state_sts & VAR_0->wake_en) {
sts |= (1 <... | [
"static void FUNC_0(IntelHDAState *VAR_0)\n{",
"uint32_t sts = 0;",
"uint32_t i;",
"if (VAR_0->rirb_sts & ICH6_RBSTS_IRQ) {",
"sts |= (1 << 30);",
"}",
"if (VAR_0->rirb_sts & ICH6_RBSTS_OVERRUN) {",
"sts |= (1 << 30);",
"}",
"if (VAR_0->state_sts & VAR_0->wake_en) {",
"sts |= (1 << 30);",
"}",... | [
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
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55... |
4,877 | static void do_loadvm(Monitor *mon, const QDict *qdict)
{
int saved_vm_running = vm_running;
const char *name = qdict_get_str(qdict, "name");
vm_stop(0);
if (load_vmstate(name) >= 0 && saved_vm_running)
vm_start();
}
| true | qemu | f0aa7a8b2d518c54430e4382309281b93e51981a | static void do_loadvm(Monitor *mon, const QDict *qdict)
{
int saved_vm_running = vm_running;
const char *name = qdict_get_str(qdict, "name");
vm_stop(0);
if (load_vmstate(name) >= 0 && saved_vm_running)
vm_start();
}
| {
"code": [
" if (load_vmstate(name) >= 0 && saved_vm_running)"
],
"line_no": [
15
]
} | static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
int VAR_2 = vm_running;
const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3");
vm_stop(0);
if (load_vmstate(VAR_3) >= 0 && VAR_2)
vm_start();
}
| [
"static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"int VAR_2 = vm_running;",
"const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");",
"vm_stop(0);",
"if (load_vmstate(VAR_3) >= 0 && VAR_2)\nvm_start();",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17
],
[
19
]
] |
4,878 | static av_always_inline void mc_chroma_scaled(VP9Context *s, vp9_scaled_mc_func smc,
vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
... | true | FFmpeg | 68caef9d48c4f1540b1b3181ebe7062a3417c62a | static av_always_inline void mc_chroma_scaled(VP9Context *s, vp9_scaled_mc_func smc,
vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
... | {
"code": [
" if (x < 3 || y < 3 || x + 4 >= w - refbw_m1 || y + 4 >= h - refbh_m1) {",
" if (x < 3 || y < 3 || x + 4 >= w - refbw_m1 || y + 4 >= h - refbh_m1) {"
],
"line_no": [
107,
107
]
} | static av_always_inline void FUNC_0(VP9Context *s, vp9_scaled_mc_func smc,
vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
... | [
"static av_always_inline void FUNC_0(VP9Context *s, vp9_scaled_mc_func smc,\nvp9_mc_func (*mc)[2],\nuint8_t *dst_u, uint8_t *dst_v,\nptrdiff_t dst_stride,\nconst uint8_t *ref_u, ptrdiff_t src_stride_u,\nconst uint8_t *ref_v, ptrdiff_t src_stride_v,\nThreadFrame *ref_frame,\nptrdiff_t y, ptrdiff_t x, const VP56mv *i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
4,880 | static void gen_add_carry(TCGv dest, TCGv t0, TCGv t1)
{
TCGv tmp;
tcg_gen_add_i32(dest, t0, t1);
tmp = load_cpu_field(CF);
tcg_gen_add_i32(dest, dest, tmp);
dead_tmp(tmp);
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void gen_add_carry(TCGv dest, TCGv t0, TCGv t1)
{
TCGv tmp;
tcg_gen_add_i32(dest, t0, t1);
tmp = load_cpu_field(CF);
tcg_gen_add_i32(dest, dest, tmp);
dead_tmp(tmp);
}
| {
"code": [
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tm... | static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)
{
TCGv tmp;
tcg_gen_add_i32(VAR_0, VAR_1, VAR_2);
tmp = load_cpu_field(CF);
tcg_gen_add_i32(VAR_0, VAR_0, tmp);
dead_tmp(tmp);
}
| [
"static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{",
"TCGv tmp;",
"tcg_gen_add_i32(VAR_0, VAR_1, VAR_2);",
"tmp = load_cpu_field(CF);",
"tcg_gen_add_i32(VAR_0, VAR_0, tmp);",
"dead_tmp(tmp);",
"}"
] | [
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
4,881 | static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, AVPacket *pkt)
{
AVCodecInternal *avci = avctx->internal;
int ret;
av_assert0(avci->compat_decode_consumed == 0);
*got_frame = 0;
avci->compat_decode = 1;
if (avci->compat_decod... | true | FFmpeg | efddf2c09aed7400c73ecf327f86a4d0452b94b5 | static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, AVPacket *pkt)
{
AVCodecInternal *avci = avctx->internal;
int ret;
av_assert0(avci->compat_decode_consumed == 0);
*got_frame = 0;
avci->compat_decode = 1;
if (avci->compat_decod... | {
"code": [
" int ret;"
],
"line_no": [
9
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVCodecInternal *avci = VAR_0->internal;
int VAR_4;
av_assert0(avci->compat_decode_consumed == 0);
*VAR_2 = 0;
avci->FUNC_0 = 1;
if (avci->compat_decode_partial_size > 0... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVCodecInternal *avci = VAR_0->internal;",
"int VAR_4;",
"av_assert0(avci->compat_decode_consumed == 0);",
"*VAR_2 = 0;",
"avci->FUNC_0 = 1;",
"if (avci->compat_decode_partial_size > 0 &&\navci->compat_decode_p... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
53
],
[
55
],
[
57
... |
4,882 | static void gen_wsr_debugcause(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
}
| true | qemu | 53593e90d13264dc88b3281ddf75ceaa641df05a | static void gen_wsr_debugcause(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
}
| {
"code": [
"static void gen_wsr_debugcause(DisasContext *dc, uint32_t sr, TCGv_i32 v)"
],
"line_no": [
1
]
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv_i32 VAR_2)
{
}
| [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv_i32 VAR_2)\n{",
"}"
] | [
1,
0
] | [
[
1,
3
],
[
5
]
] |
4,883 | static int jp2_find_codestream(Jpeg2000DecoderContext *s)
{
uint32_t atom_size, atom, atom_end;
int search_range = 10;
while (search_range
&&
bytestream2_get_bytes_left(&s->g) >= 8) {
atom_size = bytestream2_get_be32u(&s->g);
atom = bytestream2_get_be32u(... | true | FFmpeg | 1b00600319506a9bd81b114d2b374051dc1a29a6 | static int jp2_find_codestream(Jpeg2000DecoderContext *s)
{
uint32_t atom_size, atom, atom_end;
int search_range = 10;
while (search_range
&&
bytestream2_get_bytes_left(&s->g) >= 8) {
atom_size = bytestream2_get_be32u(&s->g);
atom = bytestream2_get_be32u(... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0)
{
uint32_t atom_size, atom, atom_end;
int VAR_1 = 10;
while (VAR_1
&&
bytestream2_get_bytes_left(&VAR_0->g) >= 8) {
atom_size = bytestream2_get_be32u(&VAR_0->g);
atom = bytestream2_get_be32u(&VAR_0->g);
... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{",
"uint32_t atom_size, atom, atom_end;",
"int VAR_1 = 10;",
"while (VAR_1\n&&\nbytestream2_get_bytes_left(&VAR_0->g) >= 8) {",
"atom_size = bytestream2_get_be32u(&VAR_0->g);",
"atom = bytestream2_get_be32u(&VAR_0->g);",
"atom_end = bytestream2_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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
31,
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,
53
],
[
55... |
4,884 | static void i440fx_realize(PCIDevice *dev, Error **errp)
{
dev->config[I440FX_SMRAM] = 0x02;
if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
error_report("warning: i440fx doesn't support emulated iommu");
}
}
| false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | static void i440fx_realize(PCIDevice *dev, Error **errp)
{
dev->config[I440FX_SMRAM] = 0x02;
if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
error_report("warning: i440fx doesn't support emulated iommu");
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)
{
VAR_0->config[I440FX_SMRAM] = 0x02;
if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
error_report("warning: i440fx doesn't support emulated iommu");
}
}
| [
"static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{",
"VAR_0->config[I440FX_SMRAM] = 0x02;",
"if (object_property_get_bool(qdev_get_machine(), \"iommu\", NULL)) {",
"error_report(\"warning: i440fx doesn't support emulated iommu\");",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
4,885 | static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b)
{
return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6));
}
| false | FFmpeg | 7e7e59409294af9caa63808e56c5cc824c98b4fc | static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b)
{
return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6));
}
| {
"code": [],
"line_no": []
} | static inline unsigned char FUNC_0(uint8_t VAR_0, uint8_t VAR_1, uint8_t VAR_2)
{
return ((((VAR_0)/47)%6)*6*6+(((VAR_1)/47)%6)*6+(((VAR_2)/47)%6));
}
| [
"static inline unsigned char FUNC_0(uint8_t VAR_0, uint8_t VAR_1, uint8_t VAR_2)\n{",
"return ((((VAR_0)/47)%6)*6*6+(((VAR_1)/47)%6)*6+(((VAR_2)/47)%6));",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
4,887 | static void coroutine_fn bdrv_co_do_rw(void *opaque)
{
BlockAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
if (!acb->is_write) {
acb->req.error = bdrv_co_do_readv(bs, acb->req.sector,
acb->req.nb_sectors, acb->req.qiov, acb->req.flags);
} else {
... | false | qemu | 0b5a24454fc551f0294fe93821e8c643214a55f5 | static void coroutine_fn bdrv_co_do_rw(void *opaque)
{
BlockAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
if (!acb->is_write) {
acb->req.error = bdrv_co_do_readv(bs, acb->req.sector,
acb->req.nb_sectors, acb->req.qiov, acb->req.flags);
} else {
... | {
"code": [],
"line_no": []
} | static void VAR_0 bdrv_co_do_rw(void *opaque)
{
BlockAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
if (!acb->is_write) {
acb->req.error = bdrv_co_do_readv(bs, acb->req.sector,
acb->req.nb_sectors, acb->req.qiov, acb->req.flags);
} else {
acb->... | [
"static void VAR_0 bdrv_co_do_rw(void *opaque)\n{",
"BlockAIOCBCoroutine *acb = opaque;",
"BlockDriverState *bs = acb->common.bs;",
"if (!acb->is_write) {",
"acb->req.error = bdrv_co_do_readv(bs, acb->req.sector,\nacb->req.nb_sectors, acb->req.qiov, acb->req.flags);",
"} else {",
"acb->req.error = bdrv_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
31
]
] |
4,888 | static int xen_add_to_physmap(XenIOState *state,
hwaddr start_addr,
ram_addr_t size,
MemoryRegion *mr,
hwaddr offset_within_region)
{
unsigned long i = 0;
int rc = 0;
XenPhysmap *p... | false | qemu | 20a544c7dc2428e8816ed4a87af732884e885f2d | static int xen_add_to_physmap(XenIOState *state,
hwaddr start_addr,
ram_addr_t size,
MemoryRegion *mr,
hwaddr offset_within_region)
{
unsigned long i = 0;
int rc = 0;
XenPhysmap *p... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenIOState *VAR_0,
hwaddr VAR_1,
ram_addr_t VAR_2,
MemoryRegion *VAR_3,
hwaddr VAR_4)
{
unsigned long VAR_5 = 0;
int VAR_6 = 0;
XenPhysmap *physmap = NULL;
h... | [
"static int FUNC_0(XenIOState *VAR_0,\nhwaddr VAR_1,\nram_addr_t VAR_2,\nMemoryRegion *VAR_3,\nhwaddr VAR_4)\n{",
"unsigned long VAR_5 = 0;",
"int VAR_6 = 0;",
"XenPhysmap *physmap = NULL;",
"hwaddr pfn, start_gpfn;",
"hwaddr phys_offset = memory_region_get_ram_addr(VAR_3);",
"char VAR_7[80], VAR_8[17];... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
51
],
[
53
],
[
55
],
[
57
... |
4,889 | static int fmod_init_in (HWVoiceIn *hw, audsettings_t *as)
{
int bits16, mode;
FMODVoiceIn *fmd = (FMODVoiceIn *) hw;
audsettings_t obt_as = *as;
if (conf.broken_adc) {
return -1;
}
mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0);
fmd->fmod_sample = FSOUND_Sa... | false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static int fmod_init_in (HWVoiceIn *hw, audsettings_t *as)
{
int bits16, mode;
FMODVoiceIn *fmd = (FMODVoiceIn *) hw;
audsettings_t obt_as = *as;
if (conf.broken_adc) {
return -1;
}
mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0);
fmd->fmod_sample = FSOUND_Sa... | {
"code": [],
"line_no": []
} | static int FUNC_0 (HWVoiceIn *VAR_0, audsettings_t *VAR_1)
{
int VAR_2, VAR_3;
FMODVoiceIn *fmd = (FMODVoiceIn *) VAR_0;
audsettings_t obt_as = *VAR_1;
if (conf.broken_adc) {
return -1;
}
VAR_3 = aud_to_fmodfmt (VAR_1->fmt, VAR_1->nchannels == 2 ? 1 : 0);
fmd->fmod_sampl... | [
"static int FUNC_0 (HWVoiceIn *VAR_0, audsettings_t *VAR_1)\n{",
"int VAR_2, VAR_3;",
"FMODVoiceIn *fmd = (FMODVoiceIn *) VAR_0;",
"audsettings_t obt_as = *VAR_1;",
"if (conf.broken_adc) {",
"return -1;",
"}",
"VAR_3 = aud_to_fmodfmt (VAR_1->fmt, VAR_1->nchannels == 2 ? 1 : 0);",
"fmd->fmod_sample =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59
... |
4,890 | static void monitor_control_event(void *opaque, int event)
{
if (event == CHR_EVENT_OPENED) {
QObject *data;
Monitor *mon = opaque;
json_message_parser_init(&mon->mc->parser, handle_qmp_command);
data = qobject_from_jsonf("{ 'QMP': { 'capabilities': [] } }");
asser... | false | qemu | ca9567e23454ca94e3911710da4e953ad049b40f | static void monitor_control_event(void *opaque, int event)
{
if (event == CHR_EVENT_OPENED) {
QObject *data;
Monitor *mon = opaque;
json_message_parser_init(&mon->mc->parser, handle_qmp_command);
data = qobject_from_jsonf("{ 'QMP': { 'capabilities': [] } }");
asser... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
if (VAR_1 == CHR_EVENT_OPENED) {
QObject *data;
Monitor *mon = VAR_0;
json_message_parser_init(&mon->mc->parser, handle_qmp_command);
data = qobject_from_jsonf("{ 'QMP': { 'capabilities': [] } }");
assert(data != NULL);
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"if (VAR_1 == CHR_EVENT_OPENED) {",
"QObject *data;",
"Monitor *mon = VAR_0;",
"json_message_parser_init(&mon->mc->parser, handle_qmp_command);",
"data = qobject_from_jsonf(\"{ 'QMP': { 'capabilities': [] } }\");",
"assert(data != NULL);",
"monitor_json... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
4,894 | static void pmac_ide_transfer_cb(void *opaque, int ret)
{
DBDMA_io *io = opaque;
MACIOIDEState *m = io->opaque;
IDEState *s = idebus_active_if(&m->bus);
int n = 0;
int64_t sector_num;
int unaligned;
if (ret < 0) {
MACIO_DPRINTF("DMA error\n");
m->aiocb = NULL;
... | false | qemu | 3e300fa6ad4ee19b16339c25773dec8df0bfb982 | static void pmac_ide_transfer_cb(void *opaque, int ret)
{
DBDMA_io *io = opaque;
MACIOIDEState *m = io->opaque;
IDEState *s = idebus_active_if(&m->bus);
int n = 0;
int64_t sector_num;
int unaligned;
if (ret < 0) {
MACIO_DPRINTF("DMA error\n");
m->aiocb = NULL;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
DBDMA_io *io = VAR_0;
MACIOIDEState *m = io->VAR_0;
IDEState *s = idebus_active_if(&m->bus);
int VAR_2 = 0;
int64_t sector_num;
int VAR_3;
if (VAR_1 < 0) {
MACIO_DPRINTF("DMA error\VAR_2");
m->aiocb = NULL;
qem... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"DBDMA_io *io = VAR_0;",
"MACIOIDEState *m = io->VAR_0;",
"IDEState *s = idebus_active_if(&m->bus);",
"int VAR_2 = 0;",
"int64_t sector_num;",
"int VAR_3;",
"if (VAR_1 < 0) {",
"MACIO_DPRINTF(\"DMA error\\VAR_2\");",
"m->aiocb = NULL;",
"qemu_sgli... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[... |
4,895 | static uint64_t bmdma_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
BMDMAState *bm = opaque;
PCIIDEState *pci_dev = bm->pci_dev;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t bmdma_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
BMDMAState *bm = opaque;
PCIIDEState *pci_dev = bm->pci_dev;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
BMDMAState *bm = opaque;
PCIIDEState *pci_dev = bm->pci_dev;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:
... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"BMDMAState *bm = opaque;",
"PCIIDEState *pci_dev = bm->pci_dev;",
"uint32_t val;",
"if (size != 1) {",
"return ((uint64_t)1 << (size * 8)) - 1;",
"}",
"switch(addr & 3) {",
"case 0:\nval = bm->cmd;",
"break;",
"... | [
0,
0,
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
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
4,897 | static void hash32_bat_size(CPUPPCState *env, target_ulong *blp, int *validp,
target_ulong batu, target_ulong batl)
{
target_ulong bl;
int valid;
bl = (batu & BATU32_BL) << 15;
valid = 0;
if (((msr_pr == 0) && (batu & BATU32_VS)) ||
((msr_pr != 0) && (ba... | false | qemu | 6fc76aa9adc1c8896a97059f12a1e5e6c1820c64 | static void hash32_bat_size(CPUPPCState *env, target_ulong *blp, int *validp,
target_ulong batu, target_ulong batl)
{
target_ulong bl;
int valid;
bl = (batu & BATU32_BL) << 15;
valid = 0;
if (((msr_pr == 0) && (batu & BATU32_VS)) ||
((msr_pr != 0) && (ba... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUPPCState *VAR_0, target_ulong *VAR_1, int *VAR_2,
target_ulong VAR_3, target_ulong VAR_4)
{
target_ulong bl;
int VAR_5;
bl = (VAR_3 & BATU32_BL) << 15;
VAR_5 = 0;
if (((msr_pr == 0) && (VAR_3 & BATU32_VS)) ||
((msr_pr != 0) && (VAR_... | [
"static void FUNC_0(CPUPPCState *VAR_0, target_ulong *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, target_ulong VAR_4)\n{",
"target_ulong bl;",
"int VAR_5;",
"bl = (VAR_3 & BATU32_BL) << 15;",
"VAR_5 = 0;",
"if (((msr_pr == 0) && (VAR_3 & BATU32_VS)) ||\n((msr_pr != 0) && (VAR_3 & BATU32_VP))) {",
"VAR_5 = 1... | [
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
]
] |
4,898 | static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp,
abi_ulong parent_tidptr, target_ulong newtls,
abi_ulong child_tidptr)
{
CPUState *cpu = ENV_GET_CPU(env);
int ret;
TaskState *ts;
CPUState *new_cpu;
CPUArchState *new_env;
un... | false | qemu | 7cfbd386b92e93fbfae033b9ac89a20d1fe72573 | static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp,
abi_ulong parent_tidptr, target_ulong newtls,
abi_ulong child_tidptr)
{
CPUState *cpu = ENV_GET_CPU(env);
int ret;
TaskState *ts;
CPUState *new_cpu;
CPUArchState *new_env;
un... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUArchState *VAR_0, unsigned int VAR_1, abi_ulong VAR_2,
abi_ulong VAR_3, target_ulong VAR_4,
abi_ulong VAR_5)
{
CPUState *cpu = ENV_GET_CPU(VAR_0);
int VAR_6;
TaskState *ts;
CPUState *new_cpu;
CPUArchState *new_env;
unsigned int ... | [
"static int FUNC_0(CPUArchState *VAR_0, unsigned int VAR_1, abi_ulong VAR_2,\nabi_ulong VAR_3, target_ulong VAR_4,\nabi_ulong VAR_5)\n{",
"CPUState *cpu = ENV_GET_CPU(VAR_0);",
"int VAR_6;",
"TaskState *ts;",
"CPUState *new_cpu;",
"CPUArchState *new_env;",
"unsigned int VAR_7;",
"sigset_t sigmask;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27,
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
53
],
[
55
],
[... |
4,900 | static void test_hash_digest(void)
{
size_t i;
g_assert(qcrypto_init(NULL) == 0);
for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) {
int ret;
char *digest;
size_t digestsize;
digestsize = qcrypto_hash_digest_len(i);
g_assert_cmpint(digestsize * 2... | false | qemu | 0c16c056a4f9dec18fdd56feec82a5db9ff3c15e | static void test_hash_digest(void)
{
size_t i;
g_assert(qcrypto_init(NULL) == 0);
for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) {
int ret;
char *digest;
size_t digestsize;
digestsize = qcrypto_hash_digest_len(i);
g_assert_cmpint(digestsize * 2... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
size_t i;
g_assert(qcrypto_init(NULL) == 0);
for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) {
int ret;
char *digest;
size_t digestsize;
digestsize = qcrypto_hash_digest_len(i);
g_assert_cmpint(digestsize * 2, ==, strl... | [
"static void FUNC_0(void)\n{",
"size_t i;",
"g_assert(qcrypto_init(NULL) == 0);",
"for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) {",
"int ret;",
"char *digest;",
"size_t digestsize;",
"digestsize = qcrypto_hash_digest_len(i);",
"g_assert_cmpint(digestsize * 2, ==, strlen(expected_outputs[i])... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
31,
33,
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
]
] |
4,901 | static uint32_t pci_apb_ioreadw (void *opaque, target_phys_addr_t addr)
{
uint32_t val;
val = bswap16(cpu_inw(addr & IOPORTS_MASK));
return val;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t pci_apb_ioreadw (void *opaque, target_phys_addr_t addr)
{
uint32_t val;
val = bswap16(cpu_inw(addr & IOPORTS_MASK));
return val;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)
{
uint32_t val;
val = bswap16(cpu_inw(addr & IOPORTS_MASK));
return val;
}
| [
"static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)\n{",
"uint32_t val;",
"val = bswap16(cpu_inw(addr & IOPORTS_MASK));",
"return val;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
4,902 | static void destroy_l2_mapping(PhysPageEntry *lp, unsigned level)
{
unsigned i;
PhysPageEntry *p = lp->u.node;
if (!p) {
return;
}
for (i = 0; i < L2_SIZE; ++i) {
if (level > 0) {
destroy_l2_mapping(&p[i], level - 1);
} else {
destroy_pa... | false | qemu | d6f2ea22a05b429ba83248b80a625b6fe1d927f3 | static void destroy_l2_mapping(PhysPageEntry *lp, unsigned level)
{
unsigned i;
PhysPageEntry *p = lp->u.node;
if (!p) {
return;
}
for (i = 0; i < L2_SIZE; ++i) {
if (level > 0) {
destroy_l2_mapping(&p[i], level - 1);
} else {
destroy_pa... | {
"code": [],
"line_no": []
} | static void FUNC_0(PhysPageEntry *VAR_0, unsigned VAR_1)
{
unsigned VAR_2;
PhysPageEntry *p = VAR_0->u.node;
if (!p) {
return;
}
for (VAR_2 = 0; VAR_2 < L2_SIZE; ++VAR_2) {
if (VAR_1 > 0) {
FUNC_0(&p[VAR_2], VAR_1 - 1);
} else {
destroy_... | [
"static void FUNC_0(PhysPageEntry *VAR_0, unsigned VAR_1)\n{",
"unsigned VAR_2;",
"PhysPageEntry *p = VAR_0->u.node;",
"if (!p) {",
"return;",
"}",
"for (VAR_2 = 0; VAR_2 < L2_SIZE; ++VAR_2) {",
"if (VAR_1 > 0) {",
"FUNC_0(&p[VAR_2], VAR_1 - 1);",
"} else {",
"destroy_page_desc(p[VAR_2].u.leaf);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
4,904 | static void prstat_to_stat(struct stat *stbuf, ProxyStat *prstat)
{
memset(stbuf, 0, sizeof(*stbuf));
stbuf->st_dev = prstat->st_dev;
stbuf->st_ino = prstat->st_ino;
stbuf->st_nlink = prstat->st_nlink;
stbuf->st_mode = prstat->st_mode;
stbuf->st_uid = prstat->st_uid;
stbuf->st_gid = prstat-... | false | qemu | 494a8ebe713055d3946183f4b395f85a18b43e9e | static void prstat_to_stat(struct stat *stbuf, ProxyStat *prstat)
{
memset(stbuf, 0, sizeof(*stbuf));
stbuf->st_dev = prstat->st_dev;
stbuf->st_ino = prstat->st_ino;
stbuf->st_nlink = prstat->st_nlink;
stbuf->st_mode = prstat->st_mode;
stbuf->st_uid = prstat->st_uid;
stbuf->st_gid = prstat-... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct stat *VAR_0, ProxyStat *VAR_1)
{
memset(VAR_0, 0, sizeof(*VAR_0));
VAR_0->st_dev = VAR_1->st_dev;
VAR_0->st_ino = VAR_1->st_ino;
VAR_0->st_nlink = VAR_1->st_nlink;
VAR_0->st_mode = VAR_1->st_mode;
VAR_0->st_uid = VAR_1->st_uid;
VAR_0->st_gid = VAR_1->st_gid;
VA... | [
"static void FUNC_0(struct stat *VAR_0, ProxyStat *VAR_1)\n{",
"memset(VAR_0, 0, sizeof(*VAR_0));",
"VAR_0->st_dev = VAR_1->st_dev;",
"VAR_0->st_ino = VAR_1->st_ino;",
"VAR_0->st_nlink = VAR_1->st_nlink;",
"VAR_0->st_mode = VAR_1->st_mode;",
"VAR_0->st_uid = VAR_1->st_uid;",
"VAR_0->st_gid = VAR_1->st... | [
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
]
] |
4,905 | S390CPU *cpu_s390x_init(const char *cpu_model)
{
S390CPU *cpu;
cpu = S390_CPU(object_new(TYPE_S390_CPU));
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
return cpu;
}
| false | qemu | 96b1a8bb55f1aeb72a943d1001841ff8b0687059 | S390CPU *cpu_s390x_init(const char *cpu_model)
{
S390CPU *cpu;
cpu = S390_CPU(object_new(TYPE_S390_CPU));
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
return cpu;
}
| {
"code": [],
"line_no": []
} | S390CPU *FUNC_0(const char *cpu_model)
{
S390CPU *cpu;
cpu = S390_CPU(object_new(TYPE_S390_CPU));
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
return cpu;
}
| [
"S390CPU *FUNC_0(const char *cpu_model)\n{",
"S390CPU *cpu;",
"cpu = S390_CPU(object_new(TYPE_S390_CPU));",
"object_property_set_bool(OBJECT(cpu), true, \"realized\", NULL);",
"return cpu;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17
],
[
19
]
] |
4,906 | void pci_unregister_vga(PCIDevice *pci_dev)
{
if (!pci_dev->has_vga) {
return;
}
memory_region_del_subregion(pci_dev->bus->address_space_mem,
pci_dev->vga_regions[QEMU_PCI_VGA_MEM]);
memory_region_del_subregion(pci_dev->bus->address_space_io,
... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | void pci_unregister_vga(PCIDevice *pci_dev)
{
if (!pci_dev->has_vga) {
return;
}
memory_region_del_subregion(pci_dev->bus->address_space_mem,
pci_dev->vga_regions[QEMU_PCI_VGA_MEM]);
memory_region_del_subregion(pci_dev->bus->address_space_io,
... | {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0)
{
if (!VAR_0->has_vga) {
return;
}
memory_region_del_subregion(VAR_0->bus->address_space_mem,
VAR_0->vga_regions[QEMU_PCI_VGA_MEM]);
memory_region_del_subregion(VAR_0->bus->address_space_io,
V... | [
"void FUNC_0(PCIDevice *VAR_0)\n{",
"if (!VAR_0->has_vga) {",
"return;",
"}",
"memory_region_del_subregion(VAR_0->bus->address_space_mem,\nVAR_0->vga_regions[QEMU_PCI_VGA_MEM]);",
"memory_region_del_subregion(VAR_0->bus->address_space_io,\nVAR_0->vga_regions[QEMU_PCI_VGA_IO_LO]);",
"memory_region_del_su... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
]
] |
4,907 | static int decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
C93DecoderContext * const c93 = avctx->priv_data;
AVFrame * const newpic = &c93->pictures[c93->currentpic];
AVFra... | false | FFmpeg | 6b657ac7889738b9ab38924cca4e7c418f6fbc38 | static int decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
C93DecoderContext * const c93 = avctx->priv_data;
AVFrame * const newpic = &c93->pictures[c93->currentpic];
AVFra... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
C93DecoderContext * const c93 = VAR_0->priv_data;
AVFrame * const newpic = &c93->pictures[c93->currentpic];
AVFrame * cons... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"C93DecoderContext * const c93 = VAR_0->priv_data;",
"AVFrame * const newpic = &c93->pictures[c93->currentpic];",
"AVFrame * const oldpic = &c93->pi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29,
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
4,908 | VncInfo2List *qmp_query_vnc_servers(Error **errp)
{
VncInfo2List *item, *prev = NULL;
VncInfo2 *info;
VncDisplay *vd;
DeviceState *dev;
QTAILQ_FOREACH(vd, &vnc_displays, next) {
info = g_new0(VncInfo2, 1);
info->id = g_strdup(vd->id);
info->clients = qmp_query_clie... | false | qemu | 2a7e6857cd3178d705a49c4adde2f3af26ed3ae1 | VncInfo2List *qmp_query_vnc_servers(Error **errp)
{
VncInfo2List *item, *prev = NULL;
VncInfo2 *info;
VncDisplay *vd;
DeviceState *dev;
QTAILQ_FOREACH(vd, &vnc_displays, next) {
info = g_new0(VncInfo2, 1);
info->id = g_strdup(vd->id);
info->clients = qmp_query_clie... | {
"code": [],
"line_no": []
} | VncInfo2List *FUNC_0(Error **errp)
{
VncInfo2List *item, *prev = NULL;
VncInfo2 *info;
VncDisplay *vd;
DeviceState *dev;
QTAILQ_FOREACH(vd, &vnc_displays, next) {
info = g_new0(VncInfo2, 1);
info->id = g_strdup(vd->id);
info->clients = qmp_query_client_list(vd);
... | [
"VncInfo2List *FUNC_0(Error **errp)\n{",
"VncInfo2List *item, *prev = NULL;",
"VncInfo2 *info;",
"VncDisplay *vd;",
"DeviceState *dev;",
"QTAILQ_FOREACH(vd, &vnc_displays, next) {",
"info = g_new0(VncInfo2, 1);",
"info->id = g_strdup(vd->id);",
"info->clients = qmp_query_client_list(vd);",
"qmp_qu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
... |
4,910 | pic_read(void *opaque, target_phys_addr_t addr, unsigned int size)
{
struct etrax_pic *fs = opaque;
uint32_t rval;
rval = fs->regs[addr >> 2];
D(printf("%s %x=%x\n", __func__, addr, rval));
return rval;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | pic_read(void *opaque, target_phys_addr_t addr, unsigned int size)
{
struct etrax_pic *fs = opaque;
uint32_t rval;
rval = fs->regs[addr >> 2];
D(printf("%s %x=%x\n", __func__, addr, rval));
return rval;
}
| {
"code": [],
"line_no": []
} | FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, unsigned int VAR_2)
{
struct etrax_pic *VAR_3 = VAR_0;
uint32_t rval;
rval = VAR_3->regs[VAR_1 >> 2];
D(printf("%s %x=%x\n", __func__, VAR_1, rval));
return rval;
}
| [
"FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, unsigned int VAR_2)\n{",
"struct etrax_pic *VAR_3 = VAR_0;",
"uint32_t rval;",
"rval = VAR_3->regs[VAR_1 >> 2];",
"D(printf(\"%s %x=%x\\n\", __func__, VAR_1, rval));",
"return rval;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
4,911 | static int coroutine_fn nfs_co_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors,
QEMUIOVector *iov)
{
NFSClient *client = bs->opaque;
NFSRPC task;
char *buf = NULL;
nfs_co_init_task(client, &task);
... | false | qemu | aa92d6c4609e174fc6884e4b7b87367fac33cbe9 | static int coroutine_fn nfs_co_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors,
QEMUIOVector *iov)
{
NFSClient *client = bs->opaque;
NFSRPC task;
char *buf = NULL;
nfs_co_init_task(client, &task);
... | {
"code": [],
"line_no": []
} | static int VAR_0 nfs_co_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors,
QEMUIOVector *iov)
{
NFSClient *client = bs->opaque;
NFSRPC task;
char *buf = NULL;
nfs_co_init_task(client, &task);
bu... | [
"static int VAR_0 nfs_co_writev(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors,\nQEMUIOVector *iov)\n{",
"NFSClient *client = bs->opaque;",
"NFSRPC task;",
"char *buf = NULL;",
"nfs_co_init_task(client, &task);",
"buf = g_try_malloc(nb_sectors * BDRV_SECTOR_SIZE);",
"if (nb_sectors && buf == ... | [
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
],
[
31
],
[
35,
37,
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
4,912 | static gboolean cadence_uart_xmit(GIOChannel *chan, GIOCondition cond,
void *opaque)
{
CadenceUARTState *s = opaque;
int ret;
/* instant drain the fifo when there's no back-end */
if (!s->chr) {
s->tx_count = 0;
return FALSE;
}
if (... | false | qemu | 6f1de6b70d857d5e316ae6fd908f52818b827b08 | static gboolean cadence_uart_xmit(GIOChannel *chan, GIOCondition cond,
void *opaque)
{
CadenceUARTState *s = opaque;
int ret;
if (!s->chr) {
s->tx_count = 0;
return FALSE;
}
if (!s->tx_count) {
return FALSE;
}
... | {
"code": [],
"line_no": []
} | static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond,
void *opaque)
{
CadenceUARTState *s = opaque;
int VAR_0;
if (!s->chr) {
s->tx_count = 0;
return FALSE;
}
if (!s->tx_count) {
return FALSE;
}
VAR_0 = q... | [
"static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond,\nvoid *opaque)\n{",
"CadenceUARTState *s = opaque;",
"int VAR_0;",
"if (!s->chr) {",
"s->tx_count = 0;",
"return FALSE;",
"}",
"if (!s->tx_count) {",
"return FALSE;",
"}",
"VAR_0 = qemu_chr_fe_write(s->chr, s->tx_fifo, s->tx_count);",
... | [
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
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
53
],
[
55
... |
4,914 | void error_set_field(Error *err, const char *field, const char *value)
{
QDict *dict = qdict_get_qdict(err->obj, "data");
return qdict_put(dict, field, qstring_from_str(value));
}
| false | qemu | 0ed6dc1a982fd029557a17fda7606d679a6ebb28 | void error_set_field(Error *err, const char *field, const char *value)
{
QDict *dict = qdict_get_qdict(err->obj, "data");
return qdict_put(dict, field, qstring_from_str(value));
}
| {
"code": [],
"line_no": []
} | void FUNC_0(Error *VAR_0, const char *VAR_1, const char *VAR_2)
{
QDict *dict = qdict_get_qdict(VAR_0->obj, "data");
return qdict_put(dict, VAR_1, qstring_from_str(VAR_2));
}
| [
"void FUNC_0(Error *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"QDict *dict = qdict_get_qdict(VAR_0->obj, \"data\");",
"return qdict_put(dict, VAR_1, qstring_from_str(VAR_2));",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
4,915 | static void replay_add_event(ReplayAsyncEventKind event_kind,
void *opaque,
void *opaque2, uint64_t id)
{
assert(event_kind < REPLAY_ASYNC_COUNT);
if (!replay_file || replay_mode == REPLAY_MODE_NONE
|| !events_enabled) {
Event e;... | false | qemu | 33577b47c64435fcc2a1bc01c7e82534256f1fc3 | static void replay_add_event(ReplayAsyncEventKind event_kind,
void *opaque,
void *opaque2, uint64_t id)
{
assert(event_kind < REPLAY_ASYNC_COUNT);
if (!replay_file || replay_mode == REPLAY_MODE_NONE
|| !events_enabled) {
Event e;... | {
"code": [],
"line_no": []
} | static void FUNC_0(ReplayAsyncEventKind VAR_0,
void *VAR_1,
void *VAR_2, uint64_t VAR_3)
{
assert(VAR_0 < REPLAY_ASYNC_COUNT);
if (!replay_file || replay_mode == REPLAY_MODE_NONE
|| !events_enabled) {
Event e;
e.VAR_0 = ... | [
"static void FUNC_0(ReplayAsyncEventKind VAR_0,\nvoid *VAR_1,\nvoid *VAR_2, uint64_t VAR_3)\n{",
"assert(VAR_0 < REPLAY_ASYNC_COUNT);",
"if (!replay_file || replay_mode == REPLAY_MODE_NONE\n|| !events_enabled) {",
"Event e;",
"e.VAR_0 = VAR_0;",
"e.VAR_1 = VAR_1;",
"e.VAR_2 = VAR_2;",
"e.VAR_3 = VAR_3... | [
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
4,917 | static void unsafe_flush_warning(BDRVSSHState *s, const char *what)
{
if (!s->unsafe_flush_warning) {
error_report("warning: ssh server %s does not support fsync",
s->inet->host);
if (what) {
error_report("to support fsync, you need %s", what);
}
... | false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | static void unsafe_flush_warning(BDRVSSHState *s, const char *what)
{
if (!s->unsafe_flush_warning) {
error_report("warning: ssh server %s does not support fsync",
s->inet->host);
if (what) {
error_report("to support fsync, you need %s", what);
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0(BDRVSSHState *VAR_0, const char *VAR_1)
{
if (!VAR_0->FUNC_0) {
error_report("warning: ssh server %VAR_0 does not support fsync",
VAR_0->inet->host);
if (VAR_1) {
error_report("to support fsync, you need %VAR_0", VAR_1);
}
V... | [
"static void FUNC_0(BDRVSSHState *VAR_0, const char *VAR_1)\n{",
"if (!VAR_0->FUNC_0) {",
"error_report(\"warning: ssh server %VAR_0 does not support fsync\",\nVAR_0->inet->host);",
"if (VAR_1) {",
"error_report(\"to support fsync, you need %VAR_0\", VAR_1);",
"}",
"VAR_0->FUNC_0 = true;",
"}",
"}"
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
4,918 | static int hls_slice_header(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
SliceHeader *sh = &s->sh;
int i, j, ret;
// Coded parameters
sh->first_slice_in_pic_flag = get_bits1(gb);
if ((IS_IDR(s) || IS_BLA(s)) && sh->first_slice_in_pic_flag) {
s->seq_decode = (s->seq_d... | false | FFmpeg | 3051e7fa712dfe2136f19b7157211453895f2a3c | static int hls_slice_header(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
SliceHeader *sh = &s->sh;
int i, j, ret;
sh->first_slice_in_pic_flag = get_bits1(gb);
if ((IS_IDR(s) || IS_BLA(s)) && sh->first_slice_in_pic_flag) {
s->seq_decode = (s->seq_decode + 1) & 0xff;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(HEVCContext *VAR_0)
{
GetBitContext *gb = &VAR_0->HEVClc->gb;
SliceHeader *sh = &VAR_0->sh;
int VAR_1, VAR_2, VAR_3;
sh->first_slice_in_pic_flag = get_bits1(gb);
if ((IS_IDR(VAR_0) || IS_BLA(VAR_0)) && sh->first_slice_in_pic_flag) {
VAR_0->seq_decode = (VAR... | [
"static int FUNC_0(HEVCContext *VAR_0)\n{",
"GetBitContext *gb = &VAR_0->HEVClc->gb;",
"SliceHeader *sh = &VAR_0->sh;",
"int VAR_1, VAR_2, VAR_3;",
"sh->first_slice_in_pic_flag = get_bits1(gb);",
"if ((IS_IDR(VAR_0) || IS_BLA(VAR_0)) && sh->first_slice_in_pic_flag) {",
"VAR_0->seq_decode = (VAR_0->seq... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[... |
4,919 | static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey,
int w, int h, int stride, int color)
{
int x, y, fr, f;
sx = av_clip(sx, 0, w - 1);
sy = av_clip(sy, 0, h - 1);
ex = av_clip(ex, 0, w - 1);
ey = av_clip(ey, 0, h - 1);
buf[sy * stride + sx] += c... | false | FFmpeg | 992b03183819553a73b4f870a710ef500b4eb6d0 | static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey,
int w, int h, int stride, int color)
{
int x, y, fr, f;
sx = av_clip(sx, 0, w - 1);
sy = av_clip(sy, 0, h - 1);
ex = av_clip(ex, 0, w - 1);
ey = av_clip(ey, 0, h - 1);
buf[sy * stride + sx] += c... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4,
int VAR_5, int VAR_6, int VAR_7, int VAR_8)
{
int VAR_9, VAR_10, VAR_11, VAR_12;
VAR_1 = av_clip(VAR_1, 0, VAR_5 - 1);
VAR_2 = av_clip(VAR_2, 0, VAR_6 - 1);
VAR_3 = av_clip(VAR_3, 0, VAR_5 - 1);
... | [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8)\n{",
"int VAR_9, VAR_10, VAR_11, VAR_12;",
"VAR_1 = av_clip(VAR_1, 0, VAR_5 - 1);",
"VAR_2 = av_clip(VAR_2, 0, VAR_6 - 1);",
"VAR_3 = av_clip(VAR_3, 0, VAR_5 - 1);",
"VAR_4 = av_cli... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
... |
4,920 | static int bdrv_prwv_co(BlockDriverState *bs, int64_t offset,
QEMUIOVector *qiov, bool is_write,
BdrvRequestFlags flags)
{
Coroutine *co;
RwCo rwco = {
.bs = bs,
.offset = offset,
.qiov = qiov,
.is_write = is_write,
... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | static int bdrv_prwv_co(BlockDriverState *bs, int64_t offset,
QEMUIOVector *qiov, bool is_write,
BdrvRequestFlags flags)
{
Coroutine *co;
RwCo rwco = {
.bs = bs,
.offset = offset,
.qiov = qiov,
.is_write = is_write,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
QEMUIOVector *VAR_2, bool VAR_3,
BdrvRequestFlags VAR_4)
{
Coroutine *co;
RwCo rwco = {
.VAR_0 = VAR_0,
.VAR_1 = VAR_1,
.VAR_2 = VAR_2,
.VAR_3 = VAR_3,
.ret... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nQEMUIOVector *VAR_2, bool VAR_3,\nBdrvRequestFlags VAR_4)\n{",
"Coroutine *co;",
"RwCo rwco = {",
".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_3 = VAR_3,\n.ret = NOT_DONE,\n.VAR_4 = VAR_4,\n};",
"if (VAR_0->io_limits_enabled) {",
"fpr... | [
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
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[
55
],
[
57
],
[
59
],
[
63
],
[
65
],
[
67
],
[... |
4,921 | static uint64_t omap_mcbsp_read(void *opaque, hwaddr addr,
unsigned size)
{
struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque;
int offset = addr & OMAP_MPUI_REG_MASK;
uint16_t ret;
if (size != 2) {
return omap_badwidth_read16(opaque, addr);
}
... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static uint64_t omap_mcbsp_read(void *opaque, hwaddr addr,
unsigned size)
{
struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque;
int offset = addr & OMAP_MPUI_REG_MASK;
uint16_t ret;
if (size != 2) {
return omap_badwidth_read16(opaque, addr);
}
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned size)
{
struct omap_mcbsp_s *VAR_0 = (struct omap_mcbsp_s *) opaque;
int VAR_1 = addr & OMAP_MPUI_REG_MASK;
uint16_t ret;
if (size != 2) {
return omap_badwidth_read16(opaque, addr);
}
... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{",
"struct omap_mcbsp_s *VAR_0 = (struct omap_mcbsp_s *) opaque;",
"int VAR_1 = addr & OMAP_MPUI_REG_MASK;",
"uint16_t ret;",
"if (size != 2) {",
"return omap_badwidth_read16(opaque, addr);",
"}",
"switch (VAR_1) {",
"case 0x00:\ni... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
4,922 | static void check_suspend_mode(GuestSuspendMode mode, Error **errp)
{
SYSTEM_POWER_CAPABILITIES sys_pwr_caps;
Error *local_err = NULL;
ZeroMemory(&sys_pwr_caps, sizeof(sys_pwr_caps));
if (!GetPwrCapabilities(&sys_pwr_caps)) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
... | false | qemu | 621ff94d5074d88253a5818c6b9c4db718fbfc65 | static void check_suspend_mode(GuestSuspendMode mode, Error **errp)
{
SYSTEM_POWER_CAPABILITIES sys_pwr_caps;
Error *local_err = NULL;
ZeroMemory(&sys_pwr_caps, sizeof(sys_pwr_caps));
if (!GetPwrCapabilities(&sys_pwr_caps)) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(GuestSuspendMode VAR_0, Error **VAR_1)
{
SYSTEM_POWER_CAPABILITIES sys_pwr_caps;
Error *local_err = NULL;
ZeroMemory(&sys_pwr_caps, sizeof(sys_pwr_caps));
if (!GetPwrCapabilities(&sys_pwr_caps)) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
"fai... | [
"static void FUNC_0(GuestSuspendMode VAR_0, Error **VAR_1)\n{",
"SYSTEM_POWER_CAPABILITIES sys_pwr_caps;",
"Error *local_err = NULL;",
"ZeroMemory(&sys_pwr_caps, sizeof(sys_pwr_caps));",
"if (!GetPwrCapabilities(&sys_pwr_caps)) {",
"error_setg(&local_err, QERR_QGA_COMMAND_FAILED,\n\"failed to determine gu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
... |
4,923 | av_cold static int lavfi_read_header(AVFormatContext *avctx)
{
LavfiContext *lavfi = avctx->priv_data;
AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;
AVFilter *buffersink, *abuffersink;
int *pix_fmts = create_all_formats(AV_PIX_FMT_NB);
enum AVMediaType type;
int ret = 0... | false | FFmpeg | 9b595e86e342e0e39c5ddf9020286cae258b9965 | av_cold static int lavfi_read_header(AVFormatContext *avctx)
{
LavfiContext *lavfi = avctx->priv_data;
AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;
AVFilter *buffersink, *abuffersink;
int *pix_fmts = create_all_formats(AV_PIX_FMT_NB);
enum AVMediaType type;
int ret = 0... | {
"code": [],
"line_no": []
} | av_cold static int FUNC_0(AVFormatContext *avctx)
{
LavfiContext *lavfi = avctx->priv_data;
AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;
AVFilter *buffersink, *abuffersink;
int *VAR_0 = create_all_formats(AV_PIX_FMT_NB);
enum AVMediaType VAR_1;
int VAR_2 = 0, VAR_3, VA... | [
"av_cold static int FUNC_0(AVFormatContext *avctx)\n{",
"LavfiContext *lavfi = avctx->priv_data;",
"AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;",
"AVFilter *buffersink, *abuffersink;",
"int *VAR_0 = create_all_formats(AV_PIX_FMT_NB);",
"enum AVMediaType VAR_1;",
"int VAR_2 = 0, VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
... |
4,925 | int do_balloon(Monitor *mon, const QDict *params,
MonitorCompletion cb, void *opaque)
{
int ret;
if (kvm_enabled() && !kvm_has_sync_mmu()) {
qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon");
return -1;
}
ret = qemu_balloon(qdict_get_int(params, "value... | false | qemu | 514e73ecebc0aeadef218e91e36ee42b3d145c93 | int do_balloon(Monitor *mon, const QDict *params,
MonitorCompletion cb, void *opaque)
{
int ret;
if (kvm_enabled() && !kvm_has_sync_mmu()) {
qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon");
return -1;
}
ret = qemu_balloon(qdict_get_int(params, "value... | {
"code": [],
"line_no": []
} | int FUNC_0(Monitor *VAR_0, const QDict *VAR_1,
MonitorCompletion VAR_2, void *VAR_3)
{
int VAR_4;
if (kvm_enabled() && !kvm_has_sync_mmu()) {
qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon");
return -1;
}
VAR_4 = qemu_balloon(qdict_get_int(VAR_1, "val... | [
"int FUNC_0(Monitor *VAR_0, const QDict *VAR_1,\nMonitorCompletion VAR_2, void *VAR_3)\n{",
"int VAR_4;",
"if (kvm_enabled() && !kvm_has_sync_mmu()) {",
"qerror_report(QERR_KVM_MISSING_CAP, \"synchronous MMU\", \"balloon\");",
"return -1;",
"}",
"VAR_4 = qemu_balloon(qdict_get_int(VAR_1, \"value\"));",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
]
] |
4,926 | static av_cold int movie_init(AVFilterContext *ctx, const char *args)
{
MovieContext *movie = ctx->priv;
AVInputFormat *iformat = NULL;
int64_t timestamp;
int nb_streams, ret, i;
char default_streams[16], *stream_specs, *spec, *cursor;
char name[16];
AVStream *st;
movie->class... | false | FFmpeg | 831a999ddaf89ad3bb31bfcf4201463098444539 | static av_cold int movie_init(AVFilterContext *ctx, const char *args)
{
MovieContext *movie = ctx->priv;
AVInputFormat *iformat = NULL;
int64_t timestamp;
int nb_streams, ret, i;
char default_streams[16], *stream_specs, *spec, *cursor;
char name[16];
AVStream *st;
movie->class... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVFilterContext *ctx, const char *args)
{
MovieContext *movie = ctx->priv;
AVInputFormat *iformat = NULL;
int64_t timestamp;
int VAR_0, VAR_1, VAR_2;
char VAR_3[16], *VAR_4, *VAR_5, *VAR_6;
char VAR_7[16];
AVStream *st;
movie->class = &movie_class;
... | [
"static av_cold int FUNC_0(AVFilterContext *ctx, const char *args)\n{",
"MovieContext *movie = ctx->priv;",
"AVInputFormat *iformat = NULL;",
"int64_t timestamp;",
"int VAR_0, VAR_1, VAR_2;",
"char VAR_3[16], *VAR_4, *VAR_5, *VAR_6;",
"char VAR_7[16];",
"AVStream *st;",
"movie->class = &movie_class;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
51
],
[
53
... |
4,927 | void cpu_outl(pio_addr_t addr, uint32_t val)
{
LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val);
trace_cpu_out(addr, val);
ioport_write(2, addr, val);
}
| false | qemu | b40acf99bef69fa8ab0f9092ff162fde945eec12 | void cpu_outl(pio_addr_t addr, uint32_t val)
{
LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val);
trace_cpu_out(addr, val);
ioport_write(2, addr, val);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(pio_addr_t VAR_0, uint32_t VAR_1)
{
LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", VAR_0, VAR_1);
trace_cpu_out(VAR_0, VAR_1);
ioport_write(2, VAR_0, VAR_1);
}
| [
"void FUNC_0(pio_addr_t VAR_0, uint32_t VAR_1)\n{",
"LOG_IOPORT(\"outl: %04\"FMT_pioaddr\" %08\"PRIx32\"\\n\", VAR_0, VAR_1);",
"trace_cpu_out(VAR_0, VAR_1);",
"ioport_write(2, VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
4,928 | static void do_loadvm(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
if (qemu_loadvm(argv[1]) < 0)
term_printf("I/O error when loading VM from '%s'\n", argv[1]);
}
| false | qemu | 9307c4c1d93939db9b04117b654253af5113dc21 | static void do_loadvm(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
if (qemu_loadvm(argv[1]) < 0)
term_printf("I/O error when loading VM from '%s'\n", argv[1]);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, const char **VAR_1)
{
if (VAR_0 != 2) {
help_cmd(VAR_1[0]);
return;
}
if (qemu_loadvm(VAR_1[1]) < 0)
term_printf("I/O error when loading VM from '%s'\n", VAR_1[1]);
}
| [
"static void FUNC_0(int VAR_0, const char **VAR_1)\n{",
"if (VAR_0 != 2) {",
"help_cmd(VAR_1[0]);",
"return;",
"}",
"if (qemu_loadvm(VAR_1[1]) < 0)\nterm_printf(\"I/O error when loading VM from '%s'\\n\", VAR_1[1]);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
]
] |
4,929 | static void vmdk_refresh_limits(BlockDriverState *bs, Error **errp)
{
BDRVVmdkState *s = bs->opaque;
int i;
for (i = 0; i < s->num_extents; i++) {
if (!s->extents[i].flat) {
bs->bl.write_zeroes_alignment =
MAX(bs->bl.write_zeroes_alignment,
s... | false | qemu | cf081fca4e3cc02a309659b571ab0c5b225ea4cf | static void vmdk_refresh_limits(BlockDriverState *bs, Error **errp)
{
BDRVVmdkState *s = bs->opaque;
int i;
for (i = 0; i < s->num_extents; i++) {
if (!s->extents[i].flat) {
bs->bl.write_zeroes_alignment =
MAX(bs->bl.write_zeroes_alignment,
s... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)
{
BDRVVmdkState *s = VAR_0->opaque;
int VAR_2;
for (VAR_2 = 0; VAR_2 < s->num_extents; VAR_2++) {
if (!s->extents[VAR_2].flat) {
VAR_0->bl.write_zeroes_alignment =
MAX(VAR_0->bl.write_zeroes_alignment,
... | [
"static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{",
"BDRVVmdkState *s = VAR_0->opaque;",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < s->num_extents; VAR_2++) {",
"if (!s->extents[VAR_2].flat) {",
"VAR_0->bl.write_zeroes_alignment =\nMAX(VAR_0->bl.write_zeroes_alignment,\ns->extents[VAR_2].cluster_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17,
19
],
[
21
],
[
23
],
[
25
]
] |
4,931 | static int handle_cmd(AHCIState *s, int port, int slot)
{
IDEState *ide_state;
uint32_t opts;
uint64_t tbl_addr;
AHCICmdHdr *cmd;
uint8_t *cmd_fis;
dma_addr_t cmd_len;
if (s->dev[port].port.ifs[0].status & (BUSY_STAT|DRQ_STAT)) {
/* Engine currently busy, try again later *... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static int handle_cmd(AHCIState *s, int port, int slot)
{
IDEState *ide_state;
uint32_t opts;
uint64_t tbl_addr;
AHCICmdHdr *cmd;
uint8_t *cmd_fis;
dma_addr_t cmd_len;
if (s->dev[port].port.ifs[0].status & (BUSY_STAT|DRQ_STAT)) {
DPRINTF(port, "engine busy\n");
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AHCIState *VAR_0, int VAR_1, int VAR_2)
{
IDEState *ide_state;
uint32_t opts;
uint64_t tbl_addr;
AHCICmdHdr *cmd;
uint8_t *cmd_fis;
dma_addr_t cmd_len;
if (VAR_0->dev[VAR_1].VAR_1.ifs[0].status & (BUSY_STAT|DRQ_STAT)) {
DPRINTF(VAR_1, "engine bu... | [
"static int FUNC_0(AHCIState *VAR_0, int VAR_1, int VAR_2)\n{",
"IDEState *ide_state;",
"uint32_t opts;",
"uint64_t tbl_addr;",
"AHCICmdHdr *cmd;",
"uint8_t *cmd_fis;",
"dma_addr_t cmd_len;",
"if (VAR_0->dev[VAR_1].VAR_1.ifs[0].status & (BUSY_STAT|DRQ_STAT)) {",
"DPRINTF(VAR_1, \"engine busy\\n\");"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
51
],
[
53
],
[
57
... |
4,932 | static void virtio_rng_process(VirtIORNG *vrng)
{
size_t size;
if (!is_guest_ready(vrng)) {
return;
}
size = get_request_size(vrng->vq);
size = MIN(vrng->quota_remaining, size);
if (size) {
rng_backend_request_entropy(vrng->rng, size, chr_read, vrng);
}
}
| false | qemu | e1f7b4812eab992de46c98b3726745afb042a7f0 | static void virtio_rng_process(VirtIORNG *vrng)
{
size_t size;
if (!is_guest_ready(vrng)) {
return;
}
size = get_request_size(vrng->vq);
size = MIN(vrng->quota_remaining, size);
if (size) {
rng_backend_request_entropy(vrng->rng, size, chr_read, vrng);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIORNG *VAR_0)
{
size_t size;
if (!is_guest_ready(VAR_0)) {
return;
}
size = get_request_size(VAR_0->vq);
size = MIN(VAR_0->quota_remaining, size);
if (size) {
rng_backend_request_entropy(VAR_0->rng, size, chr_read, VAR_0);
}
}
| [
"static void FUNC_0(VirtIORNG *VAR_0)\n{",
"size_t size;",
"if (!is_guest_ready(VAR_0)) {",
"return;",
"}",
"size = get_request_size(VAR_0->vq);",
"size = MIN(VAR_0->quota_remaining, size);",
"if (size) {",
"rng_backend_request_entropy(VAR_0->rng, size, chr_read, VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
4,933 | static int vhost_verify_ring_part_mapping(void *part,
uint64_t part_addr,
uint64_t part_size,
uint64_t start_addr,
uint64_t size)
{
hwaddr l;
... | false | qemu | c471ad0e9bd46ca5f5c9c796e727230e043a091d | static int vhost_verify_ring_part_mapping(void *part,
uint64_t part_addr,
uint64_t part_size,
uint64_t start_addr,
uint64_t size)
{
hwaddr l;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0,
uint64_t VAR_1,
uint64_t VAR_2,
uint64_t VAR_3,
uint64_t VAR_4)
{
hwaddr l;
void *VAR_5;
int VAR_6 = ... | [
"static int FUNC_0(void *VAR_0,\nuint64_t VAR_1,\nuint64_t VAR_2,\nuint64_t VAR_3,\nuint64_t VAR_4)\n{",
"hwaddr l;",
"void *VAR_5;",
"int VAR_6 = 0;",
"if (!ranges_overlap(VAR_3, VAR_4, VAR_1, VAR_2)) {",
"return 0;",
"}",
"l = VAR_2;",
"VAR_5 = cpu_physical_memory_map(VAR_1, &l, 1);",
"if (!VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.