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 |
|---|---|---|---|---|---|---|---|---|---|---|
26,371 | static int qemu_gluster_parse_json(BlockdevOptionsGluster *gconf,
QDict *options, Error **errp)
{
QemuOpts *opts;
SocketAddress *gsconf = NULL;
SocketAddressList *curr = NULL;
QDict *backing_options = NULL;
Error *local_err = NULL;
char *str = NULL;
... | true | qemu | 56faeb9bb6872b3f926b3b3e0452a70beea10af2 | static int qemu_gluster_parse_json(BlockdevOptionsGluster *gconf,
QDict *options, Error **errp)
{
QemuOpts *opts;
SocketAddress *gsconf = NULL;
SocketAddressList *curr = NULL;
QDict *backing_options = NULL;
Error *local_err = NULL;
char *str = NULL;
... | {
"code": [
" size_t num_servers;",
" int i, type;"
],
"line_no": [
21,
23
]
} | static int FUNC_0(BlockdevOptionsGluster *VAR_0,
QDict *VAR_1, Error **VAR_2)
{
QemuOpts *opts;
SocketAddress *gsconf = NULL;
SocketAddressList *curr = NULL;
QDict *backing_options = NULL;
Error *local_err = NULL;
char *VAR_3 = NULL;
const char *VAR... | [
"static int FUNC_0(BlockdevOptionsGluster *VAR_0,\nQDict *VAR_1, Error **VAR_2)\n{",
"QemuOpts *opts;",
"SocketAddress *gsconf = NULL;",
"SocketAddressList *curr = NULL;",
"QDict *backing_options = NULL;",
"Error *local_err = NULL;",
"char *VAR_3 = NULL;",
"const char *VAR_4;",
"size_t num_servers;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
26,373 | static int try_seek_hole(BlockDriverState *bs, off_t start, off_t *data,
off_t *hole)
{
#if defined SEEK_HOLE && defined SEEK_DATA
BDRVRawState *s = bs->opaque;
*hole = lseek(s->fd, start, SEEK_HOLE);
if (*hole == -1) {
return -errno;
}
if (*hole > start... | true | qemu | d1f06fe665acdd7aa7a46a5ef88172c3d7d3028e | static int try_seek_hole(BlockDriverState *bs, off_t start, off_t *data,
off_t *hole)
{
#if defined SEEK_HOLE && defined SEEK_DATA
BDRVRawState *s = bs->opaque;
*hole = lseek(s->fd, start, SEEK_HOLE);
if (*hole == -1) {
return -errno;
}
if (*hole > start... | {
"code": [
"static int try_seek_hole(BlockDriverState *bs, off_t start, off_t *data,",
" off_t *hole)",
" *hole = lseek(s->fd, start, SEEK_HOLE);",
" if (*hole == -1) {",
" return -errno;",
" if (*hole > start) {",
" } else {",
" *data... | static int FUNC_0(BlockDriverState *VAR_0, off_t VAR_1, off_t *VAR_2,
off_t *VAR_3)
{
#if defined SEEK_HOLE && defined SEEK_DATA
BDRVRawState *s = VAR_0->opaque;
*VAR_3 = lseek(s->fd, VAR_1, SEEK_HOLE);
if (*VAR_3 == -1) {
return -errno;
}
if (*VAR_3 > V... | [
"static int FUNC_0(BlockDriverState *VAR_0, off_t VAR_1, off_t *VAR_2,\noff_t *VAR_3)\n{",
"#if defined SEEK_HOLE && defined SEEK_DATA\nBDRVRawState *s = VAR_0->opaque;",
"*VAR_3 = lseek(s->fd, VAR_1, SEEK_HOLE);",
"if (*VAR_3 == -1) {",
"return -errno;",
"}",
"if (*VAR_3 > VAR_1) {",
"*VAR_2 = VAR_1;... | [
1,
0,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49,
51
]
] |
26,374 | static int net_client_init(const char *str)
{
const char *p;
char *q;
char device[64];
char buf[1024];
int vlan_id, ret;
VLANState *vlan;
p = str;
q = device;
while (*p != '\0' && *p != ',') {
if ((q - device) < sizeof(device) - 1)
*q++ = *p;
... | true | qemu | 833c7174ce5145397d2b3405f6857ca607fed1f1 | static int net_client_init(const char *str)
{
const char *p;
char *q;
char device[64];
char buf[1024];
int vlan_id, ret;
VLANState *vlan;
p = str;
q = device;
while (*p != '\0' && *p != ',') {
if ((q - device) < sizeof(device) - 1)
*q++ = *p;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0)
{
const char *VAR_1;
char *VAR_2;
char VAR_3[64];
char VAR_4[1024];
int VAR_5, VAR_6;
VLANState *vlan;
VAR_1 = VAR_0;
VAR_2 = VAR_3;
while (*VAR_1 != '\0' && *VAR_1 != ',') {
if ((VAR_2 - VAR_3) < sizeof(VAR_3) - 1)
... | [
"static int FUNC_0(const char *VAR_0)\n{",
"const char *VAR_1;",
"char *VAR_2;",
"char VAR_3[64];",
"char VAR_4[1024];",
"int VAR_5, VAR_6;",
"VLANState *vlan;",
"VAR_1 = VAR_0;",
"VAR_2 = VAR_3;",
"while (*VAR_1 != '\\0' && *VAR_1 != ',') {",
"if ((VAR_2 - VAR_3) < sizeof(VAR_3) - 1)\n*VAR_2++ ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,375 | static void kvm_io_ioeventfd_add(MemoryListener *listener,
MemoryRegionSection *section,
bool match_data, uint64_t data,
EventNotifier *e)
{
int fd = event_notifier_get_fd(e);
int r;
r = kvm_set_ioeve... | true | qemu | fa4ba923bd539647ace9d70d226a848bd6a89dac | static void kvm_io_ioeventfd_add(MemoryListener *listener,
MemoryRegionSection *section,
bool match_data, uint64_t data,
EventNotifier *e)
{
int fd = event_notifier_get_fd(e);
int r;
r = kvm_set_ioeve... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1,
bool VAR_2, uint64_t VAR_3,
EventNotifier *VAR_4)
{
int VAR_5 = event_notifier_get_fd(VAR_4);
int VAR_6;
VAR_6 = kvm_set_ioeventfd... | [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1,\nbool VAR_2, uint64_t VAR_3,\nEventNotifier *VAR_4)\n{",
"int VAR_5 = event_notifier_get_fd(VAR_4);",
"int VAR_6;",
"VAR_6 = kvm_set_ioeventfd_pio(VAR_5, VAR_1->offset_within_address_space,\nVAR_3, true, int128_get64(VAR_1->size),\nVAR_2)... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17,
19,
21
],
[
23
],
[
27
],
[
29
],
[
31
]
] |
26,376 | void opt_input_file(const char *filename)
{
AVFormatContext *ic;
AVFormatParameters params, *ap = ¶ms;
int err, i, ret, rfps;
/* get default parameters from command line */
memset(ap, 0, sizeof(*ap));
ap->sample_rate = audio_sample_rate;
ap->channels = audio_channels;
ap->... | false | FFmpeg | c04643a2c24564aed96a5b0760de8bf02eb305c6 | void opt_input_file(const char *filename)
{
AVFormatContext *ic;
AVFormatParameters params, *ap = ¶ms;
int err, i, ret, rfps;
memset(ap, 0, sizeof(*ap));
ap->sample_rate = audio_sample_rate;
ap->channels = audio_channels;
ap->frame_rate = frame_rate;
ap->width = fram... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0)
{
AVFormatContext *ic;
AVFormatParameters params, *ap = ¶ms;
int VAR_1, VAR_2, VAR_3, VAR_4;
memset(ap, 0, sizeof(*ap));
ap->sample_rate = audio_sample_rate;
ap->channels = audio_channels;
ap->frame_rate = frame_rate;
ap->width = frame_... | [
"void FUNC_0(const char *VAR_0)\n{",
"AVFormatContext *ic;",
"AVFormatParameters params, *ap = ¶ms;",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"memset(ap, 0, sizeof(*ap));",
"ap->sample_rate = audio_sample_rate;",
"ap->channels = audio_channels;",
"ap->frame_rate = frame_rate;",
"ap->width = frame_wid... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
26,377 | static inline bool regime_is_secure(CPUARMState *env, ARMMMUIdx mmu_idx)
{
switch (mmu_idx) {
case ARMMMUIdx_S12NSE0:
case ARMMMUIdx_S12NSE1:
case ARMMMUIdx_S1NSE0:
case ARMMMUIdx_S1NSE1:
case ARMMMUIdx_S1E2:
case ARMMMUIdx_S2NS:
return false;
case ARMMMUIdx_S1E3:
... | true | qemu | e7b921c2d9efc249f99b9feb0e7dca82c96aa5c4 | static inline bool regime_is_secure(CPUARMState *env, ARMMMUIdx mmu_idx)
{
switch (mmu_idx) {
case ARMMMUIdx_S12NSE0:
case ARMMMUIdx_S12NSE1:
case ARMMMUIdx_S1NSE0:
case ARMMMUIdx_S1NSE1:
case ARMMMUIdx_S1E2:
case ARMMMUIdx_S2NS:
return false;
case ARMMMUIdx_S1E3:
... | {
"code": [],
"line_no": []
} | static inline bool FUNC_0(CPUARMState *env, ARMMMUIdx mmu_idx)
{
switch (mmu_idx) {
case ARMMMUIdx_S12NSE0:
case ARMMMUIdx_S12NSE1:
case ARMMMUIdx_S1NSE0:
case ARMMMUIdx_S1NSE1:
case ARMMMUIdx_S1E2:
case ARMMMUIdx_S2NS:
return false;
case ARMMMUIdx_S1E3:
case ARM... | [
"static inline bool FUNC_0(CPUARMState *env, ARMMMUIdx mmu_idx)\n{",
"switch (mmu_idx) {",
"case ARMMMUIdx_S12NSE0:\ncase ARMMMUIdx_S12NSE1:\ncase ARMMMUIdx_S1NSE0:\ncase ARMMMUIdx_S1NSE1:\ncase ARMMMUIdx_S1E2:\ncase ARMMMUIdx_S2NS:\nreturn false;",
"case ARMMMUIdx_S1E3:\ncase ARMMMUIdx_S1SE0:\ncase ARMMMUIdx... | [
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
]
] |
26,378 | static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx)
{
char shape_filename[128] = "", shape_str[32] = "rect";
int cols = 0, rows = 0, anchor_x = 0, anchor_y = 0, shape = CV_SHAPE_RECT;
int *values = NULL, ret;
sscanf(buf, "%dx%d+%dx%d/%32[^=]=%127s", &cols, &rows, &anc... | true | FFmpeg | 8805589b803fab5f362008306319336ac79a3fa7 | static int parse_iplconvkernel(IplConvKernel **kernel, char *buf, void *log_ctx)
{
char shape_filename[128] = "", shape_str[32] = "rect";
int cols = 0, rows = 0, anchor_x = 0, anchor_y = 0, shape = CV_SHAPE_RECT;
int *values = NULL, ret;
sscanf(buf, "%dx%d+%dx%d/%32[^=]=%127s", &cols, &rows, &anc... | {
"code": [
" int *values = NULL, ret;",
" return AVERROR(EINVAL);",
" return AVERROR(EINVAL);",
" return AVERROR(EINVAL);",
" av_freep(&values);",
" if (!*kernel)",
" return AVERROR(ENOMEM);",
" return 0;"
],
"line_no": [
9,
37,
... | static int FUNC_0(IplConvKernel **VAR_0, char *VAR_1, void *VAR_2)
{
char VAR_3[128] = "", VAR_4[32] = "rect";
int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0, VAR_9 = CV_SHAPE_RECT;
int *VAR_10 = NULL, VAR_11;
sscanf(VAR_1, "%dx%d+%dx%d/%32[^=]=%127s", &VAR_5, &VAR_6, &VAR_7, &VAR_8, VAR_4, VAR_3... | [
"static int FUNC_0(IplConvKernel **VAR_0, char *VAR_1, void *VAR_2)\n{",
"char VAR_3[128] = \"\", VAR_4[32] = \"rect\";",
"int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0, VAR_9 = CV_SHAPE_RECT;",
"int *VAR_10 = NULL, VAR_11;",
"sscanf(VAR_1, \"%dx%d+%dx%d/%32[^=]=%127s\", &VAR_5, &VAR_6, &VAR_7, &VAR_8, VAR... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49
],
[... |
26,380 | static uint32_t pci_up_read(void *opaque, uint32_t addr)
{
PIIX4PMState *s = opaque;
uint32_t val = s->pci0_status.up;
PIIX4_DPRINTF("pci_up_read %x\n", val);
return val;
}
| true | qemu | 7faa8075d898ae56d2c533c530569bb25ab86eaf | static uint32_t pci_up_read(void *opaque, uint32_t addr)
{
PIIX4PMState *s = opaque;
uint32_t val = s->pci0_status.up;
PIIX4_DPRINTF("pci_up_read %x\n", val);
return val;
}
| {
"code": [
" uint32_t val = s->pci0_status.up;"
],
"line_no": [
7
]
} | static uint32_t FUNC_0(void *opaque, uint32_t addr)
{
PIIX4PMState *s = opaque;
uint32_t val = s->pci0_status.up;
PIIX4_DPRINTF("FUNC_0 %x\n", val);
return val;
}
| [
"static uint32_t FUNC_0(void *opaque, uint32_t addr)\n{",
"PIIX4PMState *s = opaque;",
"uint32_t val = s->pci0_status.up;",
"PIIX4_DPRINTF(\"FUNC_0 %x\\n\", val);",
"return val;",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
26,382 | static int amovie_request_frame(AVFilterLink *outlink)
{
MovieContext *movie = outlink->src->priv;
int ret;
if (movie->is_done)
return AVERROR_EOF;
if ((ret = amovie_get_samples(outlink)) < 0)
return ret;
avfilter_filter_samples(outlink, avfilter_ref_buffer(movie->samples... | true | FFmpeg | 2b1a4c5b3411c3030a5bdbd70d80bc606be570f7 | static int amovie_request_frame(AVFilterLink *outlink)
{
MovieContext *movie = outlink->src->priv;
int ret;
if (movie->is_done)
return AVERROR_EOF;
if ((ret = amovie_get_samples(outlink)) < 0)
return ret;
avfilter_filter_samples(outlink, avfilter_ref_buffer(movie->samples... | {
"code": [
" if ((ret = amovie_get_samples(outlink)) < 0)",
" return ret;"
],
"line_no": [
15,
17
]
} | static int FUNC_0(AVFilterLink *VAR_0)
{
MovieContext *movie = VAR_0->src->priv;
int VAR_1;
if (movie->is_done)
return AVERROR_EOF;
if ((VAR_1 = amovie_get_samples(VAR_0)) < 0)
return VAR_1;
avfilter_filter_samples(VAR_0, avfilter_ref_buffer(movie->samplesref, ~0));
... | [
"static int FUNC_0(AVFilterLink *VAR_0)\n{",
"MovieContext *movie = VAR_0->src->priv;",
"int VAR_1;",
"if (movie->is_done)\nreturn AVERROR_EOF;",
"if ((VAR_1 = amovie_get_samples(VAR_0)) < 0)\nreturn VAR_1;",
"avfilter_filter_samples(VAR_0, avfilter_ref_buffer(movie->samplesref, ~0));",
"avfilter_unref_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
26,383 | inline static void RENAME(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | inline static void RENAME(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | {
"code": [
"\t\t\t\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\\",
"\t\t\t\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\\",
"\t\tasm volatile(",
"\t\tasm volatile(",
"\tasm volatile(",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"... | inline static void FUNC_0(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | [
"inline static void FUNC_0(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,\nint srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,\nint16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint32_t *mmx2Filter... | [
1,
1,
1,
1,
1,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
1,
1,
1,
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
],
[... |
26,384 | static void virtio_blk_rw_complete(void *opaque, int ret)
{
VirtIOBlockReq *next = opaque;
while (next) {
VirtIOBlockReq *req = next;
next = req->mr_next;
trace_virtio_blk_rw_complete(req, ret);
if (req->qiov.nalloc != -1) {
/* If nalloc is != 1 req->qiov ... | true | qemu | 10f5a72f70862d299ddbdf226d6dc71fa4ae34dd | static void virtio_blk_rw_complete(void *opaque, int ret)
{
VirtIOBlockReq *next = opaque;
while (next) {
VirtIOBlockReq *req = next;
next = req->mr_next;
trace_virtio_blk_rw_complete(req, ret);
if (req->qiov.nalloc != -1) {
qemu_iovec_de... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
VirtIOBlockReq *next = VAR_0;
while (next) {
VirtIOBlockReq *req = next;
next = req->mr_next;
trace_virtio_blk_rw_complete(req, VAR_1);
if (req->qiov.nalloc != -1) {
qemu_iovec_destroy(&req->qi... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"VirtIOBlockReq *next = VAR_0;",
"while (next) {",
"VirtIOBlockReq *req = next;",
"next = req->mr_next;",
"trace_virtio_blk_rw_complete(req, VAR_1);",
"if (req->qiov.nalloc != -1) {",
"qemu_iovec_destroy(&req->qiov);",
"}",
"if (VAR_1) {",
"int VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43,
45,
47,
49,
51,
54
],
[
60
],
[
62
],
[
64
],
... |
26,385 | static void qmp_input_type_str(Visitor *v, const char *name, char **obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, name, true));
if (!qstr) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, nam... | true | qemu | e58d695e6c3a5cfa0aa2fc91b87ade017ef28b05 | static void qmp_input_type_str(Visitor *v, const char *name, char **obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, name, true));
if (!qstr) {
error_setg(errp, QERR_INVALID_PARAMETER_TYPE, nam... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,
Error **VAR_3)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, VAR_1, true));
if (!qstr) {
error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, V... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,\nError **VAR_3)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, VAR_1, true));",
"if (!qstr) {",
"error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : \"null\",\n\"strin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
16,
18
],
[
20
],
[
22
],
[
26
],
[
28
]
] |
26,386 | static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
void *data, int *got_frame_ptr,
const uint8_t *buf, int buf_size)
{
WavpackContext *wc = avctx->priv_data;
WavpackFrameContext *s;
void *samples = data;
int samplec... | true | FFmpeg | bb9747c8eee134f2bf6058d368f8cbc799f4b7d3 | static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
void *data, int *got_frame_ptr,
const uint8_t *buf, int buf_size)
{
WavpackContext *wc = avctx->priv_data;
WavpackFrameContext *s;
void *samples = data;
int samplec... | {
"code": [
" s->hybrid_maxclip = 1 << ((((s->frame_flags & 0x03) + 1) << 3) - 1);"
],
"line_no": [
125
]
} | static int FUNC_0(AVCodecContext *VAR_0, int VAR_1,
void *VAR_2, int *VAR_3,
const uint8_t *VAR_4, int VAR_5)
{
WavpackContext *wc = VAR_0->priv_data;
WavpackFrameContext *s;
void *VAR_6 = VAR_2;
int VAR_7;
int VAR_8 = 0, VAR_9 ... | [
"static int FUNC_0(AVCodecContext *VAR_0, int VAR_1,\nvoid *VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{",
"WavpackContext *wc = VAR_0->priv_data;",
"WavpackFrameContext *s;",
"void *VAR_6 = VAR_2;",
"int VAR_7;",
"int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0, VAR_11 = 0, VAR_12 = 0, VAR_13 = 0;",
"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,
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... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,387 | int ff_put_wav_header(AVFormatContext *s, AVIOContext *pb,
AVCodecParameters *par, int flags)
{
int bps, blkalign, bytespersec, frame_size;
int hdrsize;
int64_t hdrstart = avio_tell(pb);
int waveformatextensible;
uint8_t temp[256];
uint8_t *riff_extradata = te... | true | FFmpeg | fe8959bbece4d86a1872b813c25c2682dcd5ef42 | int ff_put_wav_header(AVFormatContext *s, AVIOContext *pb,
AVCodecParameters *par, int flags)
{
int bps, blkalign, bytespersec, frame_size;
int hdrsize;
int64_t hdrstart = avio_tell(pb);
int waveformatextensible;
uint8_t temp[256];
uint8_t *riff_extradata = te... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1,
AVCodecParameters *VAR_2, int VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8;
int64_t hdrstart = avio_tell(VAR_1);
int VAR_9;
uint8_t temp[256];
uint8_t *riff_extradata = temp;
uint8_t *riff_extra... | [
"int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVCodecParameters *VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8;",
"int64_t hdrstart = avio_tell(VAR_1);",
"int VAR_9;",
"uint8_t temp[256];",
"uint8_t *riff_extradata = temp;",
"uint8_t *riff_extradata_start = temp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
39,
43,
45,
47
],
[
51,
53
],
[
55,
57
],
[
61
],
[
63
],
[
65,
67,... |
26,391 | MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
{
MigrationCapabilityStatusList *head = NULL;
MigrationCapabilityStatusList *caps;
MigrationState *s = migrate_get_current();
int i;
caps = NULL; /* silence compiler warning */
for (i = 0; i < MIGRATION_CAPABILI... | false | qemu | fd198f9002a9e1f070c82b04d3229c18d9a49471 | MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
{
MigrationCapabilityStatusList *head = NULL;
MigrationCapabilityStatusList *caps;
MigrationState *s = migrate_get_current();
int i;
caps = NULL;
for (i = 0; i < MIGRATION_CAPABILITY__MAX; i++) {
#ifndef CONFI... | {
"code": [],
"line_no": []
} | MigrationCapabilityStatusList *FUNC_0(Error **errp)
{
MigrationCapabilityStatusList *head = NULL;
MigrationCapabilityStatusList *caps;
MigrationState *s = migrate_get_current();
int VAR_0;
caps = NULL;
for (VAR_0 = 0; VAR_0 < MIGRATION_CAPABILITY__MAX; VAR_0++) {
#ifndef CONFIG_LIVE_B... | [
"MigrationCapabilityStatusList *FUNC_0(Error **errp)\n{",
"MigrationCapabilityStatusList *head = NULL;",
"MigrationCapabilityStatusList *caps;",
"MigrationState *s = migrate_get_current();",
"int VAR_0;",
"caps = NULL;",
"for (VAR_0 = 0; VAR_0 < MIGRATION_CAPABILITY__MAX; VAR_0++) {",
"#ifndef CONFIG_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,392 | static int read_f(BlockBackend *blk, int argc, char **argv)
{
struct timeval t1, t2;
int Cflag = 0, pflag = 0, qflag = 0, vflag = 0;
int Pflag = 0, sflag = 0, lflag = 0, bflag = 0;
int c, cnt;
char *buf;
int64_t offset;
int count;
/* Some compilers get confused and warn if this ... | false | qemu | b062ad86dcd33ab39be5060b0655d8e13834b167 | static int read_f(BlockBackend *blk, int argc, char **argv)
{
struct timeval t1, t2;
int Cflag = 0, pflag = 0, qflag = 0, vflag = 0;
int Pflag = 0, sflag = 0, lflag = 0, bflag = 0;
int c, cnt;
char *buf;
int64_t offset;
int count;
int total = 0;
int pattern = 0, patte... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)
{
struct timeval VAR_3, VAR_4;
int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;
int VAR_9 = 0, VAR_10 = 0, VAR_11 = 0, VAR_12 = 0;
int VAR_13, VAR_14;
char *VAR_15;
int64_t offset;
int VAR_16;
int VAR_17 = 0;
... | [
"static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{",
"struct timeval VAR_3, VAR_4;",
"int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;",
"int VAR_9 = 0, VAR_10 = 0, VAR_11 = 0, VAR_12 = 0;",
"int VAR_13, VAR_14;",
"char *VAR_15;",
"int64_t offset;",
"int VAR_16;",
"int VAR_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,
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,
39
],
[
41
],
[
43,
45
],
[
47
],
[... |
26,393 | static TRBCCode xhci_disable_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int i;
trace_usb_xhci_ep_disable(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
assert(epid >= 1 && epid <= 3... | false | qemu | 94b037f2a451b3dc855f9f2c346e5049a361bd55 | static TRBCCode xhci_disable_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int i;
trace_usb_xhci_ep_disable(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
assert(epid >= 1 && epid <= 3... | {
"code": [],
"line_no": []
} | static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,
unsigned int epid)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int VAR_0;
trace_usb_xhci_ep_disable(slotid, epid);
assert(slotid >= 1 && slotid <= xhci->numslots);
assert(epid >= 1 && epid <= 31);
... | [
"static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,\nunsigned int epid)\n{",
"XHCISlot *slot;",
"XHCIEPContext *epctx;",
"int VAR_0;",
"trace_usb_xhci_ep_disable(slotid, epid);",
"assert(slotid >= 1 && slotid <= xhci->numslots);",
"assert(epid >= 1 && epid <= 31);",
"slot = &xhci->slots[slot... | [
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[... |
26,395 | static void monitor_find_completion(const char *cmdline)
{
const char *cmdname;
char *args[MAX_ARGS];
int nb_args, i, len;
const char *ptype, *str;
const mon_cmd_t *cmd;
const KeyDef *key;
parse_cmdline(cmdline, &nb_args, args);
#ifdef DEBUG_COMPLETION
for(i = 0; i < nb_args;... | false | qemu | 1048c88f03545fa42bdebb077871a743a614d2ab | static void monitor_find_completion(const char *cmdline)
{
const char *cmdname;
char *args[MAX_ARGS];
int nb_args, i, len;
const char *ptype, *str;
const mon_cmd_t *cmd;
const KeyDef *key;
parse_cmdline(cmdline, &nb_args, args);
#ifdef DEBUG_COMPLETION
for(i = 0; i < nb_args;... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
const char *VAR_1;
char *VAR_2[MAX_ARGS];
int VAR_3, VAR_4, VAR_5;
const char *VAR_6, *VAR_7;
const mon_cmd_t *VAR_8;
const KeyDef *VAR_9;
parse_cmdline(VAR_0, &VAR_3, VAR_2);
#ifdef DEBUG_COMPLETION
for(VAR_4 = 0; VAR_4 < VAR_3; VAR_4+... | [
"static void FUNC_0(const char *VAR_0)\n{",
"const char *VAR_1;",
"char *VAR_2[MAX_ARGS];",
"int VAR_3, VAR_4, VAR_5;",
"const char *VAR_6, *VAR_7;",
"const mon_cmd_t *VAR_8;",
"const KeyDef *VAR_9;",
"parse_cmdline(VAR_0, &VAR_3, VAR_2);",
"#ifdef DEBUG_COMPLETION\nfor(VAR_4 = 0; VAR_4 < VAR_3; 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
],
[
21,
23
],
[
25
],
[
27
],
[
29,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
26,397 | CPUSPARCState *cpu_sparc_init(const char *cpu_model)
{
SPARCCPU *cpu;
CPUSPARCState *env;
cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));
env = &cpu->env;
gen_intermediate_code_init(env);
if (cpu_sparc_register(env, cpu_model) < 0) {
object_delete(OBJECT(cpu));
return... | false | qemu | 90449c388711c3defdc76da490926d1eca177b06 | CPUSPARCState *cpu_sparc_init(const char *cpu_model)
{
SPARCCPU *cpu;
CPUSPARCState *env;
cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));
env = &cpu->env;
gen_intermediate_code_init(env);
if (cpu_sparc_register(env, cpu_model) < 0) {
object_delete(OBJECT(cpu));
return... | {
"code": [],
"line_no": []
} | CPUSPARCState *FUNC_0(const char *cpu_model)
{
SPARCCPU *cpu;
CPUSPARCState *env;
cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));
env = &cpu->env;
gen_intermediate_code_init(env);
if (cpu_sparc_register(env, cpu_model) < 0) {
object_delete(OBJECT(cpu));
return NULL;
... | [
"CPUSPARCState *FUNC_0(const char *cpu_model)\n{",
"SPARCCPU *cpu;",
"CPUSPARCState *env;",
"cpu = SPARC_CPU(object_new(TYPE_SPARC_CPU));",
"env = &cpu->env;",
"gen_intermediate_code_init(env);",
"if (cpu_sparc_register(env, cpu_model) < 0) {",
"object_delete(OBJECT(cpu));",
"return NULL;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
26,398 | static abi_long unlock_iovec(struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *target_vec;
abi_ulong base;
int i;
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!target_vec)
... | false | qemu | d732dcb442ce810709f48d7a105b573efda118a2 | static abi_long unlock_iovec(struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *target_vec;
abi_ulong base;
int i;
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!target_vec)
... | {
"code": [],
"line_no": []
} | static abi_long FUNC_0(struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *VAR_0;
abi_ulong base;
int VAR_1;
VAR_0 = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!VAR_0)
return -TARGE... | [
"static abi_long FUNC_0(struct iovec *vec, abi_ulong target_addr,\nint count, int copy)\n{",
"struct target_iovec *VAR_0;",
"abi_ulong base;",
"int VAR_1;",
"VAR_0 = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);",
"if (!VAR_0)\nreturn -TARGET_EFAULT;",
"for(VAR_1 = 0;VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
26,399 | static int v9fs_synth_chmod(FsContext *fs_ctx, V9fsPath *path, FsCred *credp)
{
errno = EPERM;
return -1;
}
| false | qemu | 364031f17932814484657e5551ba12957d993d7e | static int v9fs_synth_chmod(FsContext *fs_ctx, V9fsPath *path, FsCred *credp)
{
errno = EPERM;
return -1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2)
{
errno = EPERM;
return -1;
}
| [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, FsCred *VAR_2)\n{",
"errno = EPERM;",
"return -1;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,400 | static void mem_commit(MemoryListener *listener)
{
AddressSpace *as = container_of(listener, AddressSpace, dispatch_listener);
AddressSpaceDispatch *cur = as->dispatch;
AddressSpaceDispatch *next = as->next_dispatch;
next->nodes = next_map.nodes;
next->sections = next_map.sections;
ph... | false | qemu | 53cb28cbfea038f8ad50132dc8a684e638c7d48b | static void mem_commit(MemoryListener *listener)
{
AddressSpace *as = container_of(listener, AddressSpace, dispatch_listener);
AddressSpaceDispatch *cur = as->dispatch;
AddressSpaceDispatch *next = as->next_dispatch;
next->nodes = next_map.nodes;
next->sections = next_map.sections;
ph... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0)
{
AddressSpace *as = container_of(VAR_0, AddressSpace, dispatch_listener);
AddressSpaceDispatch *cur = as->dispatch;
AddressSpaceDispatch *next = as->next_dispatch;
next->nodes = next_map.nodes;
next->sections = next_map.sections;
phys_page_co... | [
"static void FUNC_0(MemoryListener *VAR_0)\n{",
"AddressSpace *as = container_of(VAR_0, AddressSpace, dispatch_listener);",
"AddressSpaceDispatch *cur = as->dispatch;",
"AddressSpaceDispatch *next = as->next_dispatch;",
"next->nodes = next_map.nodes;",
"next->sections = next_map.sections;",
"phys_page_c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
]
] |
26,401 | static void do_audio_out(AVFormatContext *s, OutputStream *ost,
AVFrame *frame)
{
AVCodecContext *enc = ost->st->codec;
AVPacket pkt;
int got_packet = 0;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
#if 0
if (!check_recording_time(ost))
r... | false | FFmpeg | 2fc354f90d61f5f1bb75dbdd808a502dec69cf99 | static void do_audio_out(AVFormatContext *s, OutputStream *ost,
AVFrame *frame)
{
AVCodecContext *enc = ost->st->codec;
AVPacket pkt;
int got_packet = 0;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
#if 0
if (!check_recording_time(ost))
r... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1,
AVFrame *VAR_2)
{
AVCodecContext *enc = VAR_1->st->codec;
AVPacket pkt;
int VAR_3 = 0;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
#if 0
if (!check_recording_time(VAR_1))
re... | [
"static void FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1,\nAVFrame *VAR_2)\n{",
"AVCodecContext *enc = VAR_1->st->codec;",
"AVPacket pkt;",
"int VAR_3 = 0;",
"av_init_packet(&pkt);",
"pkt.data = NULL;",
"pkt.size = 0;",
"#if 0\nif (!check_recording_time(VAR_1))\nreturn;",
"#endif\nif (VAR_2->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25
],
[
27,
29,
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
26,402 | static void qemu_rdma_init_one_block(void *host_addr,
ram_addr_t block_offset, ram_addr_t length, void *opaque)
{
rdma_add_block(opaque, host_addr, block_offset, length);
}
| false | qemu | e3807054e20fb3b94d18cb751c437ee2f43b6fac | static void qemu_rdma_init_one_block(void *host_addr,
ram_addr_t block_offset, ram_addr_t length, void *opaque)
{
rdma_add_block(opaque, host_addr, block_offset, length);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0,
ram_addr_t VAR_1, ram_addr_t VAR_2, void *VAR_3)
{
rdma_add_block(VAR_3, VAR_0, VAR_1, VAR_2);
}
| [
"static void FUNC_0(void *VAR_0,\nram_addr_t VAR_1, ram_addr_t VAR_2, void *VAR_3)\n{",
"rdma_add_block(VAR_3, VAR_0, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
26,403 | START_TEST(qdict_iterapi_test)
{
int count;
const QDictEntry *ent;
fail_unless(qdict_first(tests_dict) == NULL);
qdict_put(tests_dict, "key1", qint_from_int(1));
qdict_put(tests_dict, "key2", qint_from_int(2));
qdict_put(tests_dict, "key3", qint_from_int(3));
count = 0;
fo... | false | qemu | ac531cb6e542b1e61d668604adf9dc5306a948c0 | START_TEST(qdict_iterapi_test)
{
int count;
const QDictEntry *ent;
fail_unless(qdict_first(tests_dict) == NULL);
qdict_put(tests_dict, "key1", qint_from_int(1));
qdict_put(tests_dict, "key2", qint_from_int(2));
qdict_put(tests_dict, "key3", qint_from_int(3));
count = 0;
fo... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
int VAR_1;
const QDictEntry *VAR_2;
fail_unless(qdict_first(tests_dict) == NULL);
qdict_put(tests_dict, "key1", qint_from_int(1));
qdict_put(tests_dict, "key2", qint_from_int(2));
qdict_put(tests_dict, "key3", qint_from_int(3));
VAR_1 = 0;
for (VAR_2 = qdic... | [
"FUNC_0(VAR_0)\n{",
"int VAR_1;",
"const QDictEntry *VAR_2;",
"fail_unless(qdict_first(tests_dict) == NULL);",
"qdict_put(tests_dict, \"key1\", qint_from_int(1));",
"qdict_put(tests_dict, \"key2\", qint_from_int(2));",
"qdict_put(tests_dict, \"key3\", qint_from_int(3));",
"VAR_1 = 0;",
"for (VAR_2 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55... |
26,404 | static int coroutine_fn bdrv_co_do_zero_pwritev(BlockDriverState *bs,
int64_t offset,
unsigned int bytes,
BdrvRequestFlags flags,
... | false | qemu | 85c97ca7a10b93216bc95052e9dabe3a4bb8736a | static int coroutine_fn bdrv_co_do_zero_pwritev(BlockDriverState *bs,
int64_t offset,
unsigned int bytes,
BdrvRequestFlags flags,
... | {
"code": [],
"line_no": []
} | static int VAR_0 bdrv_co_do_zero_pwritev(BlockDriverState *bs,
int64_t offset,
unsigned int bytes,
BdrvRequestFlags flags,
B... | [
"static int VAR_0 bdrv_co_do_zero_pwritev(BlockDriverState *bs,\nint64_t offset,\nunsigned int bytes,\nBdrvRequestFlags flags,\nBdrvTrackedRequest *req)\n{",
"uint8_t *buf = NULL;",
"QEMUIOVector local_qiov;",
"struct iovec iov;",
"uint64_t align = bs->bl.request_alignment;",
"unsigned int head_padding_by... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
... |
26,405 | static void qemu_wait_io_event(CPUState *env)
{
while (!tcg_has_work())
qemu_cond_timedwait(env->halt_cond, &qemu_global_mutex, 1000);
qemu_mutex_unlock(&qemu_global_mutex);
/*
* Users of qemu_global_mutex can be starved, having no chance
* to acquire it since this path will get... | false | qemu | 6cabe1f303b9d76458c00f00df7f477449a13b2f | static void qemu_wait_io_event(CPUState *env)
{
while (!tcg_has_work())
qemu_cond_timedwait(env->halt_cond, &qemu_global_mutex, 1000);
qemu_mutex_unlock(&qemu_global_mutex);
qemu_mutex_lock(&qemu_fair_mutex);
qemu_mutex_unlock(&qemu_fair_mutex);
qemu_mutex_lock(&qe... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0)
{
while (!tcg_has_work())
qemu_cond_timedwait(VAR_0->halt_cond, &qemu_global_mutex, 1000);
qemu_mutex_unlock(&qemu_global_mutex);
qemu_mutex_lock(&qemu_fair_mutex);
qemu_mutex_unlock(&qemu_fair_mutex);
qemu_mutex_lock(&qemu_globa... | [
"static void FUNC_0(CPUState *VAR_0)\n{",
"while (!tcg_has_work())\nqemu_cond_timedwait(VAR_0->halt_cond, &qemu_global_mutex, 1000);",
"qemu_mutex_unlock(&qemu_global_mutex);",
"qemu_mutex_lock(&qemu_fair_mutex);",
"qemu_mutex_unlock(&qemu_fair_mutex);",
"qemu_mutex_lock(&qemu_global_mutex);",
"qemu_wai... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
26,406 | void qemu_co_queue_init(CoQueue *queue)
{
QTAILQ_INIT(&queue->entries);
/* This will be exposed to callers once there are multiple AioContexts */
queue->ctx = qemu_get_aio_context();
}
| false | qemu | 02ffb504485f0920cfc75a0982a602f824a9a4f4 | void qemu_co_queue_init(CoQueue *queue)
{
QTAILQ_INIT(&queue->entries);
queue->ctx = qemu_get_aio_context();
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CoQueue *VAR_0)
{
QTAILQ_INIT(&VAR_0->entries);
VAR_0->ctx = qemu_get_aio_context();
}
| [
"void FUNC_0(CoQueue *VAR_0)\n{",
"QTAILQ_INIT(&VAR_0->entries);",
"VAR_0->ctx = qemu_get_aio_context();",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
]
] |
26,407 | int64_t timerlistgroup_deadline_ns(QEMUTimerListGroup *tlg)
{
int64_t deadline = -1;
QEMUClockType type;
bool play = replay_mode == REPLAY_MODE_PLAY;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
if (qemu_clock_use_for_deadline(type)) {
if (!play || type == QEMU_CLOCK_REALTI... | false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | int64_t timerlistgroup_deadline_ns(QEMUTimerListGroup *tlg)
{
int64_t deadline = -1;
QEMUClockType type;
bool play = replay_mode == REPLAY_MODE_PLAY;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
if (qemu_clock_use_for_deadline(type)) {
if (!play || type == QEMU_CLOCK_REALTI... | {
"code": [],
"line_no": []
} | int64_t FUNC_0(QEMUTimerListGroup *tlg)
{
int64_t deadline = -1;
QEMUClockType type;
bool play = replay_mode == REPLAY_MODE_PLAY;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
if (qemu_clock_use_for_deadline(type)) {
if (!play || type == QEMU_CLOCK_REALTIME) {
... | [
"int64_t FUNC_0(QEMUTimerListGroup *tlg)\n{",
"int64_t deadline = -1;",
"QEMUClockType type;",
"bool play = replay_mode == REPLAY_MODE_PLAY;",
"for (type = 0; type < QEMU_CLOCK_MAX; type++) {",
"if (qemu_clock_use_for_deadline(type)) {",
"if (!play || type == QEMU_CLOCK_REALTIME) {",
"deadline = qemu_... | [
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
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
26,408 | static void socket_connect_data_free(socket_connect_data *c)
{
qapi_free_SocketAddressLegacy(c->saddr);
g_free(c->model);
g_free(c->name);
g_free(c);
}
| false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | static void socket_connect_data_free(socket_connect_data *c)
{
qapi_free_SocketAddressLegacy(c->saddr);
g_free(c->model);
g_free(c->name);
g_free(c);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(socket_connect_data *VAR_0)
{
qapi_free_SocketAddressLegacy(VAR_0->saddr);
g_free(VAR_0->model);
g_free(VAR_0->name);
g_free(VAR_0);
}
| [
"static void FUNC_0(socket_connect_data *VAR_0)\n{",
"qapi_free_SocketAddressLegacy(VAR_0->saddr);",
"g_free(VAR_0->model);",
"g_free(VAR_0->name);",
"g_free(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
26,409 | static int blk_connect(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
int pers, index, qflags;
bool readonly = true;
/* read-only ? */
if (blkdev->directiosafe) {
qflags = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO;
} else {
... | false | qemu | 98522f63f40adaebc412481e1d2e9170160d4539 | static int blk_connect(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
int pers, index, qflags;
bool readonly = true;
if (blkdev->directiosafe) {
qflags = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO;
} else {
qflags = BDRV... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct XenDevice *VAR_0)
{
struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);
int VAR_2, VAR_3, VAR_4;
bool readonly = true;
if (VAR_1->directiosafe) {
VAR_4 = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO;
} else {
VAR_4 = BDRV_O_CACHE_WB;... | [
"static int FUNC_0(struct XenDevice *VAR_0)\n{",
"struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);",
"int VAR_2, VAR_3, VAR_4;",
"bool readonly = true;",
"if (VAR_1->directiosafe) {",
"VAR_4 = BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO;",
"} else {",
"VAR_4 = BDRV_O_CACHE_WB;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
... |
26,410 | static uint64_t qemu_rdma_poll(RDMAContext *rdma, uint64_t *wr_id_out)
{
int ret;
struct ibv_wc wc;
uint64_t wr_id;
ret = ibv_poll_cq(rdma->cq, 1, &wc);
if (!ret) {
*wr_id_out = RDMA_WRID_NONE;
return 0;
}
if (ret < 0) {
fprintf(stderr, "ibv_poll_cq r... | false | qemu | 88571882516a7cb4291a329c537eb79fd126e1f2 | static uint64_t qemu_rdma_poll(RDMAContext *rdma, uint64_t *wr_id_out)
{
int ret;
struct ibv_wc wc;
uint64_t wr_id;
ret = ibv_poll_cq(rdma->cq, 1, &wc);
if (!ret) {
*wr_id_out = RDMA_WRID_NONE;
return 0;
}
if (ret < 0) {
fprintf(stderr, "ibv_poll_cq r... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(RDMAContext *rdma, uint64_t *wr_id_out)
{
int VAR_0;
struct ibv_wc VAR_1;
uint64_t wr_id;
VAR_0 = ibv_poll_cq(rdma->cq, 1, &VAR_1);
if (!VAR_0) {
*wr_id_out = RDMA_WRID_NONE;
return 0;
}
if (VAR_0 < 0) {
fprintf(stderr, "ibv_pol... | [
"static uint64_t FUNC_0(RDMAContext *rdma, uint64_t *wr_id_out)\n{",
"int VAR_0;",
"struct ibv_wc VAR_1;",
"uint64_t wr_id;",
"VAR_0 = ibv_poll_cq(rdma->cq, 1, &VAR_1);",
"if (!VAR_0) {",
"*wr_id_out = RDMA_WRID_NONE;",
"return 0;",
"}",
"if (VAR_0 < 0) {",
"fprintf(stderr, \"ibv_poll_cq return ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
51
],
[
53
],
[... |
26,411 | build_rsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets,
const char *oem_id, const char *oem_table_id)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int i;
const int table_data_len = (sizeof(uint32_t) * table_offsets->len);
rsdt_len = sizeof(*rsdt) + table_dat... | false | qemu | 4678124bb9bfb49e93b83f95c4d2feeb443ea38b | build_rsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets,
const char *oem_id, const char *oem_table_id)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int i;
const int table_data_len = (sizeof(uint32_t) * table_offsets->len);
rsdt_len = sizeof(*rsdt) + table_dat... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1, GArray *VAR_2,
const char *VAR_3, const char *VAR_4)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int VAR_5;
const int VAR_6 = (sizeof(uint32_t) * VAR_2->len);
rsdt_len = sizeof(*rsdt) + VAR_6;
rsdt = acpi_data_push(VAR_0, rsdt_le... | [
"FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1, GArray *VAR_2,\nconst char *VAR_3, const char *VAR_4)\n{",
"AcpiRsdtDescriptorRev1 *rsdt;",
"size_t rsdt_len;",
"int VAR_5;",
"const int VAR_6 = (sizeof(uint32_t) * VAR_2->len);",
"rsdt_len = sizeof(*rsdt) + VAR_6;",
"rsdt = acpi_data_push(VAR_0, rsdt_len);",
... | [
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
],
[
37
],
[
39,
41
],
[
43
]
] |
26,412 | static av_cold int Faac_encode_close(AVCodecContext *avctx)
{
FaacAudioContext *s = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_freep(&avctx->extradata);
faacEncClose(s->faac_handle);
return 0;
}
| false | FFmpeg | 7a8cbb39f6154fb091597d28deba8d3bec38df64 | static av_cold int Faac_encode_close(AVCodecContext *avctx)
{
FaacAudioContext *s = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_freep(&avctx->extradata);
faacEncClose(s->faac_handle);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
FaacAudioContext *s = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_freep(&avctx->extradata);
faacEncClose(s->faac_handle);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"FaacAudioContext *s = avctx->priv_data;",
"av_freep(&avctx->coded_frame);",
"av_freep(&avctx->extradata);",
"faacEncClose(s->faac_handle);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
]
] |
26,413 | static int object_create(QemuOpts *opts, void *opaque)
{
const char *type = qemu_opt_get(opts, "qom-type");
const char *id = qemu_opts_id(opts);
Object *obj;
g_assert(type != NULL);
if (id == NULL) {
qerror_report(QERR_MISSING_PARAMETER, "id");
return -1;
}
ob... | true | qemu | 28ec2598ff7d74bd9556a1786f45fc5df2aacfe1 | static int object_create(QemuOpts *opts, void *opaque)
{
const char *type = qemu_opt_get(opts, "qom-type");
const char *id = qemu_opts_id(opts);
Object *obj;
g_assert(type != NULL);
if (id == NULL) {
qerror_report(QERR_MISSING_PARAMETER, "id");
return -1;
}
ob... | {
"code": [],
"line_no": []
} | static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)
{
const char *VAR_2 = qemu_opt_get(VAR_0, "qom-VAR_2");
const char *VAR_3 = qemu_opts_id(VAR_0);
Object *obj;
g_assert(VAR_2 != NULL);
if (VAR_3 == NULL) {
qerror_report(QERR_MISSING_PARAMETER, "VAR_3");
return -1;
}
... | [
"static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)\n{",
"const char *VAR_2 = qemu_opt_get(VAR_0, \"qom-VAR_2\");",
"const char *VAR_3 = qemu_opts_id(VAR_0);",
"Object *obj;",
"g_assert(VAR_2 != NULL);",
"if (VAR_3 == NULL) {",
"qerror_report(QERR_MISSING_PARAMETER, \"VAR_3\");",
"return -1;",
"}",
"... | [
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
]
] |
26,415 | void tpm_backend_cancel_cmd(TPMBackend *s)
{
TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s);
assert(k->cancel_cmd);
k->cancel_cmd(s);
}
| true | qemu | ebca2df783a5a742bb93784524336d8cbb9e662b | void tpm_backend_cancel_cmd(TPMBackend *s)
{
TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s);
assert(k->cancel_cmd);
k->cancel_cmd(s);
}
| {
"code": [
" assert(k->cancel_cmd);"
],
"line_no": [
9
]
} | void FUNC_0(TPMBackend *VAR_0)
{
TPMBackendClass *k = TPM_BACKEND_GET_CLASS(VAR_0);
assert(k->cancel_cmd);
k->cancel_cmd(VAR_0);
}
| [
"void FUNC_0(TPMBackend *VAR_0)\n{",
"TPMBackendClass *k = TPM_BACKEND_GET_CLASS(VAR_0);",
"assert(k->cancel_cmd);",
"k->cancel_cmd(VAR_0);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
26,416 | void scsi_bus_legacy_handle_cmdline(SCSIBus *bus)
{
DriveInfo *dinfo;
int unit;
for (unit = 0; unit < MAX_SCSI_DEVS; unit++) {
dinfo = drive_get(IF_SCSI, bus->busnr, unit);
if (dinfo == NULL) {
continue;
}
scsi_bus_legacy_add_drive(bus, dinfo, unit);
... | true | qemu | fa66b909f382619da15f8c7e323145adfa94fdac | void scsi_bus_legacy_handle_cmdline(SCSIBus *bus)
{
DriveInfo *dinfo;
int unit;
for (unit = 0; unit < MAX_SCSI_DEVS; unit++) {
dinfo = drive_get(IF_SCSI, bus->busnr, unit);
if (dinfo == NULL) {
continue;
}
scsi_bus_legacy_add_drive(bus, dinfo, unit);
... | {
"code": [
"void scsi_bus_legacy_handle_cmdline(SCSIBus *bus)",
" int unit;",
" scsi_bus_legacy_add_drive(bus, dinfo, unit);"
],
"line_no": [
1,
7,
21
]
} | void FUNC_0(SCSIBus *VAR_0)
{
DriveInfo *dinfo;
int VAR_1;
for (VAR_1 = 0; VAR_1 < MAX_SCSI_DEVS; VAR_1++) {
dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_1);
if (dinfo == NULL) {
continue;
}
scsi_bus_legacy_add_drive(VAR_0, dinfo, VAR_1);
}
}
| [
"void FUNC_0(SCSIBus *VAR_0)\n{",
"DriveInfo *dinfo;",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < MAX_SCSI_DEVS; VAR_1++) {",
"dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_1);",
"if (dinfo == NULL) {",
"continue;",
"}",
"scsi_bus_legacy_add_drive(VAR_0, dinfo, VAR_1);",
"}",
"}"
] | [
1,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
26,417 | AVD3D11VAContext *av_d3d11va_alloc_context(void)
{
AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext));
res->context_mutex = INVALID_HANDLE_VALUE;
return res;
} | true | FFmpeg | f3202871598f59b570b31b01cfeb64b8fedbd700 | AVD3D11VAContext *av_d3d11va_alloc_context(void)
{
AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext));
res->context_mutex = INVALID_HANDLE_VALUE;
return res;
} | {
"code": [],
"line_no": []
} | AVD3D11VAContext *FUNC_0(void)
{
AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext));
res->context_mutex = INVALID_HANDLE_VALUE;
return res;
} | [
"AVD3D11VAContext *FUNC_0(void)\n{",
"AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext));",
"res->context_mutex = INVALID_HANDLE_VALUE;",
"return res;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
26,418 | static TCGv_i32 new_tmp(void)
{
num_temps++;
return tcg_temp_new_i32();
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static TCGv_i32 new_tmp(void)
{
num_temps++;
return tcg_temp_new_i32();
}
| {
"code": [
"static TCGv_i32 new_tmp(void)",
" num_temps++;",
" return tcg_temp_new_i32();"
],
"line_no": [
1,
5,
7
]
} | static TCGv_i32 FUNC_0(void)
{
num_temps++;
return tcg_temp_new_i32();
}
| [
"static TCGv_i32 FUNC_0(void)\n{",
"num_temps++;",
"return tcg_temp_new_i32();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,419 | static int cudaupload_query_formats(AVFilterContext *ctx)
{
int ret;
static const enum AVPixelFormat input_pix_fmts[] = {
AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_NONE,
};
static const enum AVPixelFormat output_pix_fmts[] = {
AV_PIX_FMT_CUDA, ... | true | FFmpeg | 7dafb3a25a580a5f8f1a5083835c67be9ed17043 | static int cudaupload_query_formats(AVFilterContext *ctx)
{
int ret;
static const enum AVPixelFormat input_pix_fmts[] = {
AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_NONE,
};
static const enum AVPixelFormat output_pix_fmts[] = {
AV_PIX_FMT_CUDA, ... | {
"code": [
" AVFilterFormats *out_fmts = ff_make_format_list(output_pix_fmts);"
],
"line_no": [
25
]
} | static int FUNC_0(AVFilterContext *VAR_0)
{
int VAR_1;
static const enum AVPixelFormat VAR_2[] = {
AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
AV_PIX_FMT_NONE,
};
static const enum AVPixelFormat VAR_3[] = {
AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
};
AVF... | [
"static int FUNC_0(AVFilterContext *VAR_0)\n{",
"int VAR_1;",
"static const enum AVPixelFormat VAR_2[] = {",
"AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,\nAV_PIX_FMT_NONE,\n};",
"static const enum AVPixelFormat VAR_3[] = {",
"AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,\n};",
"AVFilterFormats *in_fmts... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
37
],
[
39,
41
],
[
45
],
[
47
]
] |
26,420 | void ioinst_handle_ssch(S390CPU *cpu, uint64_t reg1, uint32_t ipb)
{
int cssid, ssid, schid, m;
SubchDev *sch;
ORB orig_orb, orb;
uint64_t addr;
int ret = -ENODEV;
int cc;
CPUS390XState *env = &cpu->env;
uint8_t ar;
addr = decode_basedisp_s(env, ipb, &ar);
if (addr &... | true | qemu | 66dc50f7057b9a0191f54e55764412202306858d | void ioinst_handle_ssch(S390CPU *cpu, uint64_t reg1, uint32_t ipb)
{
int cssid, ssid, schid, m;
SubchDev *sch;
ORB orig_orb, orb;
uint64_t addr;
int ret = -ENODEV;
int cc;
CPUS390XState *env = &cpu->env;
uint8_t ar;
addr = decode_basedisp_s(env, ipb, &ar);
if (addr &... | {
"code": [
" switch (ret) {",
" case 0:",
" break;",
" case -EBUSY:",
" break;",
" case -ENODEV:",
" break;",
" break;",
" default:",
" int ret = -ENODEV;",
" int cc;",
" if (sch && css_subch_visible(sch)) {",
" ... | void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1, uint32_t VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
SubchDev *sch;
ORB orig_orb, orb;
uint64_t addr;
int VAR_7 = -ENODEV;
int VAR_8;
CPUS390XState *env = &VAR_0->env;
uint8_t ar;
addr = decode_basedisp_s(env, VAR_2, &ar);
if ... | [
"void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1, uint32_t VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"SubchDev *sch;",
"ORB orig_orb, orb;",
"uint64_t addr;",
"int VAR_7 = -ENODEV;",
"int VAR_8;",
"CPUS390XState *env = &VAR_0->env;",
"uint8_t ar;",
"addr = decode_basedisp_s(env, VAR_2, &ar);",
"... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[... |
26,421 | static int virtio_blk_device_init(VirtIODevice *vdev)
{
DeviceState *qdev = DEVICE(vdev);
VirtIOBlock *s = VIRTIO_BLK(vdev);
VirtIOBlkConf *blk = &(s->blk);
static int virtio_blk_id;
if (!blk->conf.bs) {
error_report("drive property not set");
return -1;
}
if (!bd... | true | qemu | a8e5cc0c076a6e3a62f0e9aad88b007dccf3dd17 | static int virtio_blk_device_init(VirtIODevice *vdev)
{
DeviceState *qdev = DEVICE(vdev);
VirtIOBlock *s = VIRTIO_BLK(vdev);
VirtIOBlkConf *blk = &(s->blk);
static int virtio_blk_id;
if (!blk->conf.bs) {
error_report("drive property not set");
return -1;
}
if (!bd... | {
"code": [
" virtio_cleanup(vdev);"
],
"line_no": [
77
]
} | static int FUNC_0(VirtIODevice *VAR_0)
{
DeviceState *qdev = DEVICE(VAR_0);
VirtIOBlock *s = VIRTIO_BLK(VAR_0);
VirtIOBlkConf *blk = &(s->blk);
static int VAR_1;
if (!blk->conf.bs) {
error_report("drive property not set");
return -1;
}
if (!bdrv_is_inserted(blk->c... | [
"static int FUNC_0(VirtIODevice *VAR_0)\n{",
"DeviceState *qdev = DEVICE(VAR_0);",
"VirtIOBlock *s = VIRTIO_BLK(VAR_0);",
"VirtIOBlkConf *blk = &(s->blk);",
"static int VAR_1;",
"if (!blk->conf.bs) {",
"error_report(\"drive property not set\");",
"return -1;",
"}",
"if (!bdrv_is_inserted(blk->conf... | [
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
49
],
[... |
26,422 | static int encode_tile(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile, int tileno)
{
int compno, reslevelno, bandno, ret;
Jpeg2000T1Context t1;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = s->tile[tileno].comp + com... | false | FFmpeg | f1e173049ecc9de03817385ba8962d14cba779db | static int encode_tile(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile, int tileno)
{
int compno, reslevelno, bandno, ret;
Jpeg2000T1Context t1;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = s->tile[tileno].comp + com... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
Jpeg2000T1Context t1;
Jpeg2000CodingStyle *codsty = &VAR_0->codsty;
for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){
Jpeg2000Component *comp = VAR_0->VAR_1[VAR_2].comp + ... | [
"static int FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"Jpeg2000T1Context t1;",
"Jpeg2000CodingStyle *codsty = &VAR_0->codsty;",
"for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){",
"Jpeg2000Component *comp = VAR_0->VAR_1[VAR_2].comp +... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
51,... |
26,424 | static void check_mct(uint8_t *ref0, uint8_t *ref1, uint8_t *ref2,
uint8_t *new0, uint8_t *new1, uint8_t *new2) {
declare_func(void, void *src0, void *src1, void *src2, int csize);
randomize_buffers();
call_ref(ref0, ref1, ref2, BUF_SIZE / sizeof(int32_t));
call_new(new0, ne... | false | FFmpeg | 20a93ea8d489304d5c522283d79ea5f9c8fdc804 | static void check_mct(uint8_t *ref0, uint8_t *ref1, uint8_t *ref2,
uint8_t *new0, uint8_t *new1, uint8_t *new2) {
declare_func(void, void *src0, void *src1, void *src2, int csize);
randomize_buffers();
call_ref(ref0, ref1, ref2, BUF_SIZE / sizeof(int32_t));
call_new(new0, ne... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,
uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5) {
declare_func(void, void *src0, void *src1, void *src2, int csize);
randomize_buffers();
call_ref(VAR_0, VAR_1, VAR_2, BUF_SIZE / sizeof(int32_t));
call_new(VA... | [
"static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nuint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5) {",
"declare_func(void, void *src0, void *src1, void *src2, int csize);",
"randomize_buffers();",
"call_ref(VAR_0, VAR_1, VAR_2, BUF_SIZE / sizeof(int32_t));",
"call_new(VAR_3, VAR_4, VAR_5, ... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17,
19
],
[
21
],
[
23
]
] |
26,425 | int bdrv_flush_all(void)
{
BlockDriverState *bs;
int result = 0;
QTAILQ_FOREACH(bs, &bdrv_states, device_list) {
int ret = bdrv_flush(bs);
if (ret < 0 && !result) {
result = ret;
}
}
return result;
}
| true | qemu | ed78cda3de92056737364ab3cb748b16f5f17dea | int bdrv_flush_all(void)
{
BlockDriverState *bs;
int result = 0;
QTAILQ_FOREACH(bs, &bdrv_states, device_list) {
int ret = bdrv_flush(bs);
if (ret < 0 && !result) {
result = ret;
}
}
return result;
}
| {
"code": [
" int ret = bdrv_flush(bs);"
],
"line_no": [
13
]
} | int FUNC_0(void)
{
BlockDriverState *bs;
int VAR_0 = 0;
QTAILQ_FOREACH(bs, &bdrv_states, device_list) {
int ret = bdrv_flush(bs);
if (ret < 0 && !VAR_0) {
VAR_0 = ret;
}
}
return VAR_0;
}
| [
"int FUNC_0(void)\n{",
"BlockDriverState *bs;",
"int VAR_0 = 0;",
"QTAILQ_FOREACH(bs, &bdrv_states, device_list) {",
"int ret = bdrv_flush(bs);",
"if (ret < 0 && !VAR_0) {",
"VAR_0 = ret;",
"}",
"}",
"return VAR_0;",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
26,427 | static void FUNCC(ff_h264_add_pixels4)(uint8_t *_dst, int16_t *_src, int stride)
{
int i;
pixel *dst = (pixel *) _dst;
dctcoef *src = (dctcoef *) _src;
stride /= sizeof(pixel);
for (i = 0; i < 4; i++) {
dst[0] += src[0];
dst[1] += src[1];
dst[2] += src[2];
... | true | FFmpeg | d6945aeee419a8417b8019c7c92227e12e45b7ad | static void FUNCC(ff_h264_add_pixels4)(uint8_t *_dst, int16_t *_src, int stride)
{
int i;
pixel *dst = (pixel *) _dst;
dctcoef *src = (dctcoef *) _src;
stride /= sizeof(pixel);
for (i = 0; i < 4; i++) {
dst[0] += src[0];
dst[1] += src[1];
dst[2] += src[2];
... | {
"code": [
" dst[0] += src[0];",
" dst[1] += src[1];",
" dst[2] += src[2];",
" dst[3] += src[3];",
" dst[0] += src[0];",
" dst[1] += src[1];",
" dst[2] += src[2];",
" dst[3] += src[3];"
],
"line_no": [
17,
19,
21,... | static void FUNC_0(ff_h264_add_pixels4)(uint8_t *_dst, int16_t *_src, int stride)
{
int VAR_0;
pixel *dst = (pixel *) _dst;
dctcoef *src = (dctcoef *) _src;
stride /= sizeof(pixel);
for (VAR_0 = 0; VAR_0 < 4; VAR_0++) {
dst[0] += src[0];
dst[1] += src[1];
dst[2] +=... | [
"static void FUNC_0(ff_h264_add_pixels4)(uint8_t *_dst, int16_t *_src, int stride)\n{",
"int VAR_0;",
"pixel *dst = (pixel *) _dst;",
"dctcoef *src = (dctcoef *) _src;",
"stride /= sizeof(pixel);",
"for (VAR_0 = 0; VAR_0 < 4; VAR_0++) {",
"dst[0] += src[0];",
"dst[1] += src[1];",
"dst[2] += src[2];"... | [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
26,429 | static inline void downmix_2f_2r_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 512] + samples[i + 768]);
samples[i + 256] = samples[i + 512] = samples[i + 768] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_2f_2r_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 512] + samples[i + 768]);
samples[i + 256] = samples[i + 512] = samples[i + 768] = 0;
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(float *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);
VAR_0[VAR_1 + 256] = VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;
}
}
| [
"static inline void FUNC_0(float *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);",
"VAR_0[VAR_1 + 256] = VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
26,431 | static inline void downmix_3f_1r_to_dolby(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] - samples[i + 768]);
samples[i + 256] += (samples[i + 512] + samples[i + 768]);
samples[i + 512] = samples[i + 768] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_3f_1r_to_dolby(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] - samples[i + 768]);
samples[i + 256] += (samples[i + 512] + samples[i + 768]);
samples[i + 512] = samples[i + 768] = 0;
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(float *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] - VAR_0[VAR_1 + 768]);
VAR_0[VAR_1 + 256] += (VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);
VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;
}
}
| [
"static inline void FUNC_0(float *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] - VAR_0[VAR_1 + 768]);",
"VAR_0[VAR_1 + 256] += (VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);",
"VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
26,432 | static void neon_store_scratch(int scratch, TCGv var)
{
tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, vfp.scratch[scratch]));
dead_tmp(var);
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void neon_store_scratch(int scratch, TCGv var)
{
tcg_gen_st_i32(var, cpu_env, offsetof(CPUARMState, vfp.scratch[scratch]));
dead_tmp(var);
}
| {
"code": [
" dead_tmp(var);",
" dead_tmp(var);",
" dead_tmp(var);",
" dead_tmp(var);",
" dead_tmp(var);"
],
"line_no": [
7,
7,
7,
7,
7
]
} | static void FUNC_0(int VAR_0, TCGv VAR_1)
{
tcg_gen_st_i32(VAR_1, cpu_env, offsetof(CPUARMState, vfp.VAR_0[VAR_0]));
dead_tmp(VAR_1);
}
| [
"static void FUNC_0(int VAR_0, TCGv VAR_1)\n{",
"tcg_gen_st_i32(VAR_1, cpu_env, offsetof(CPUARMState, vfp.VAR_0[VAR_0]));",
"dead_tmp(VAR_1);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,433 | void compute_images_mse(PSNRContext *s,
const uint8_t *main_data[4], const int main_linesizes[4],
const uint8_t *ref_data[4], const int ref_linesizes[4],
int w, int h, double mse[4])
{
int i, c, j;
for (c = 0; c < s->nb_components; ... | true | FFmpeg | a11c16a0b0cadf3a14fa5e7329c2a144a2165bc6 | void compute_images_mse(PSNRContext *s,
const uint8_t *main_data[4], const int main_linesizes[4],
const uint8_t *ref_data[4], const int ref_linesizes[4],
int w, int h, double mse[4])
{
int i, c, j;
for (c = 0; c < s->nb_components; ... | {
"code": [
" int m = 0;"
],
"line_no": [
29
]
} | void FUNC_0(PSNRContext *VAR_0,
const uint8_t *VAR_1[4], const int VAR_2[4],
const uint8_t *VAR_3[4], const int VAR_4[4],
int VAR_5, int VAR_6, double VAR_7[4])
{
int VAR_8, VAR_9, VAR_10;
for (VAR_9 = 0; VAR_9 < VAR_0->nb_component... | [
"void FUNC_0(PSNRContext *VAR_0,\nconst uint8_t *VAR_1[4], const int VAR_2[4],\nconst uint8_t *VAR_3[4], const int VAR_4[4],\nint VAR_5, int VAR_6, double VAR_7[4])\n{",
"int VAR_8, VAR_9, VAR_10;",
"for (VAR_9 = 0; VAR_9 < VAR_0->nb_components; VAR_9++) {",
"const int outw = VAR_0->planewidth[VAR_9];",
"co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
26,434 | static void sparc_cpu_realizefn(DeviceState *dev, Error **errp)
{
SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(dev);
scc->parent_realize(dev, errp);
} | true | qemu | 14a10fc39923b3af07c8c46d22cb20843bee3a72 | static void sparc_cpu_realizefn(DeviceState *dev, Error **errp)
{
SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(dev);
scc->parent_realize(dev, errp);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(VAR_0);
scc->parent_realize(VAR_0, VAR_1);
} | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"SPARCCPUClass *scc = SPARC_CPU_GET_CLASS(VAR_0);",
"scc->parent_realize(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
]
] |
26,436 | static void block_migration_cancel(void *opaque)
{
blk_mig_cleanup();
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void block_migration_cancel(void *opaque)
{
blk_mig_cleanup();
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
blk_mig_cleanup();
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"blk_mig_cleanup();",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,438 | static void tap_cleanup(VLANClientState *nc)
{
TAPState *s = DO_UPCAST(TAPState, nc, nc);
if (s->vhost_net) {
vhost_net_cleanup(s->vhost_net);
}
qemu_purge_queued_packets(nc);
if (s->down_script[0])
launch_script(s->down_script, s->down_script_arg, s->fd);
tap_r... | true | qemu | 43849424cff82803011fad21074531a1101e514e | static void tap_cleanup(VLANClientState *nc)
{
TAPState *s = DO_UPCAST(TAPState, nc, nc);
if (s->vhost_net) {
vhost_net_cleanup(s->vhost_net);
}
qemu_purge_queued_packets(nc);
if (s->down_script[0])
launch_script(s->down_script, s->down_script_arg, s->fd);
tap_r... | {
"code": [],
"line_no": []
} | static void FUNC_0(VLANClientState *VAR_0)
{
TAPState *s = DO_UPCAST(TAPState, VAR_0, VAR_0);
if (s->vhost_net) {
vhost_net_cleanup(s->vhost_net);
}
qemu_purge_queued_packets(VAR_0);
if (s->down_script[0])
launch_script(s->down_script, s->down_script_arg, s->fd);
... | [
"static void FUNC_0(VLANClientState *VAR_0)\n{",
"TAPState *s = DO_UPCAST(TAPState, VAR_0, VAR_0);",
"if (s->vhost_net) {",
"vhost_net_cleanup(s->vhost_net);",
"}",
"qemu_purge_queued_packets(VAR_0);",
"if (s->down_script[0])\nlaunch_script(s->down_script, s->down_script_arg, s->fd);",
"tap_read_poll(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
14
],
[
18
],
[
22,
24
],
[
28
],
[
30
],
[
32
],
[
34
]
] |
26,439 | static int ape_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
in... | false | FFmpeg | 464c49155ce7ffc88ed39eb2511e7a75565c24be | static int ape_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
in... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
APEContext *s = VAR_0->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
int VAR_5, VAR_... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"APEContext *s = VAR_0->priv_data;",
"uint8_t *sample8;",
"int16_t *sample16;",
"int32_t *sample24;",
"int VAR_5, VAR_6, VAR_7;",
"int 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
],
[
17
],
[
19
],
[
21
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
26,440 | static int decode_plane(UtvideoContext *c, int plane_no,
uint8_t *dst, int step, int stride,
int width, int height,
const uint8_t *src, int src_size, int use_pred)
{
int i, j, slice, pix;
int sstart, send;
VLC vlc;
GetBitCon... | false | FFmpeg | 46e1af3b0f2c28936dfa88063cc5a35f466f5ac3 | static int decode_plane(UtvideoContext *c, int plane_no,
uint8_t *dst, int step, int stride,
int width, int height,
const uint8_t *src, int src_size, int use_pred)
{
int i, j, slice, pix;
int sstart, send;
VLC vlc;
GetBitCon... | {
"code": [],
"line_no": []
} | static int FUNC_0(UtvideoContext *VAR_0, int VAR_1,
uint8_t *VAR_2, int VAR_3, int VAR_4,
int VAR_5, int VAR_6,
const uint8_t *VAR_7, int VAR_8, int VAR_9)
{
int VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15;
VLC vlc;
G... | [
"static int FUNC_0(UtvideoContext *VAR_0, int VAR_1,\nuint8_t *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, int VAR_6,\nconst uint8_t *VAR_7, int VAR_8, int VAR_9)\n{",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15;",
"VLC vlc;",
"GetBitContext gb;",
"int VAR_16;",
"const int VAR_17 = ~(!VAR_1 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
26,441 | static int mov_read_dac3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
enum AVAudioServiceType *ast;
int ac3info, acmod, lfeon, bsmod;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
ast = (enum AVAudioServiceType*)ff_stream_new_... | false | FFmpeg | 7f4ec4364bc4a73036660c1c6a3c4801db524e9e | static int mov_read_dac3(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
enum AVAudioServiceType *ast;
int ac3info, acmod, lfeon, bsmod;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
ast = (enum AVAudioServiceType*)ff_stream_new_... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
enum AVAudioServiceType *VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];
VAR_3 = (enum AVAudioServiceType*... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"enum AVAudioServiceType *VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];",
"VAR_3 = (enum AVAudioServiceType*)ff_str... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
],
[... |
26,442 | static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img,
int has_alpha_channel)
{
#if VPX_IMAGE_ABI_VERSION >= 3
static const enum AVColorSpace colorspaces[8] = {
AVCOL_SPC_UNSPECIFIED, AVCOL_SPC_BT470BG, AVCOL_SPC_BT709, AVCOL_SPC_SMPTE170M,
AVCOL_SPC_SMPTE2... | false | FFmpeg | e60dbe421c7e9cd896d33e35a6a1b0cef953918e | static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img,
int has_alpha_channel)
{
#if VPX_IMAGE_ABI_VERSION >= 3
static const enum AVColorSpace colorspaces[8] = {
AVCOL_SPC_UNSPECIFIED, AVCOL_SPC_BT470BG, AVCOL_SPC_BT709, AVCOL_SPC_SMPTE170M,
AVCOL_SPC_SMPTE2... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, struct vpx_image *VAR_1,
int VAR_2)
{
#if VPX_IMAGE_ABI_VERSION >= 3
static const enum AVColorSpace colorspaces[8] = {
AVCOL_SPC_UNSPECIFIED, AVCOL_SPC_BT470BG, AVCOL_SPC_BT709, AVCOL_SPC_SMPTE170M,
AVCOL_SPC_SMPTE240M, AVCOL_SPC_... | [
"static int FUNC_0(AVCodecContext *VAR_0, struct vpx_image *VAR_1,\nint VAR_2)\n{",
"#if VPX_IMAGE_ABI_VERSION >= 3\nstatic const enum AVColorSpace colorspaces[8] = {",
"AVCOL_SPC_UNSPECIFIED, AVCOL_SPC_BT470BG, AVCOL_SPC_BT709, AVCOL_SPC_SMPTE170M,\nAVCOL_SPC_SMPTE240M, AVCOL_SPC_BT2020_NCL, AVCOL_SPC_RESERVED... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
26,444 | static int blk_mig_save_bulked_block(QEMUFile *f)
{
int64_t completed_sector_sum = 0;
BlkMigDevState *bmds;
int progress;
int ret = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
if (bmds->bulk_completed == 0) {
if (mig_save_device_bulk(f, bmds) == 1) {
... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int blk_mig_save_bulked_block(QEMUFile *f)
{
int64_t completed_sector_sum = 0;
BlkMigDevState *bmds;
int progress;
int ret = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
if (bmds->bulk_completed == 0) {
if (mig_save_device_bulk(f, bmds) == 1) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0)
{
int64_t completed_sector_sum = 0;
BlkMigDevState *bmds;
int VAR_1;
int VAR_2 = 0;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
if (bmds->bulk_completed == 0) {
if (mig_save_device_bulk(VAR_0, bmds) == 1) {
... | [
"static int FUNC_0(QEMUFile *VAR_0)\n{",
"int64_t completed_sector_sum = 0;",
"BlkMigDevState *bmds;",
"int VAR_1;",
"int VAR_2 = 0;",
"QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {",
"if (bmds->bulk_completed == 0) {",
"if (mig_save_device_bulk(VAR_0, bmds) == 1) {",
"bmds->bulk_compl... | [
0,
0,
0,
0,
0,
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
],
[
43
],
[
45,
47
],
[... |
26,446 | static int mpsub_probe(AVProbeData *p)
{
const char *ptr = p->buf;
const char *ptr_end = p->buf + p->buf_size;
while (ptr < ptr_end) {
if (!memcmp(ptr, "FORMAT=TIME", 11))
return AVPROBE_SCORE_EXTENSION;
if (!memcmp(ptr, "FORMAT=", 7))
return AVPROBE_SCO... | true | FFmpeg | 90fc00a623de44e137fe1601b91356e8cd8bdd54 | static int mpsub_probe(AVProbeData *p)
{
const char *ptr = p->buf;
const char *ptr_end = p->buf + p->buf_size;
while (ptr < ptr_end) {
if (!memcmp(ptr, "FORMAT=TIME", 11))
return AVPROBE_SCORE_EXTENSION;
if (!memcmp(ptr, "FORMAT=", 7))
return AVPROBE_SCO... | {
"code": [
" ptr += strcspn(ptr, \"\\n\") + 1;",
" ptr += strcspn(ptr, \"\\n\") + 1;",
" ptr += strcspn(ptr, \"\\n\") + 1;",
" ptr += strcspn(ptr, \"\\n\") + 1;",
" ptr += strcspn(ptr, \"\\n\") + 1;"
],
"line_no": [
21,
21,
21,
21,
21
]... | static int FUNC_0(AVProbeData *VAR_0)
{
const char *VAR_1 = VAR_0->buf;
const char *VAR_2 = VAR_0->buf + VAR_0->buf_size;
while (VAR_1 < VAR_2) {
if (!memcmp(VAR_1, "FORMAT=TIME", 11))
return AVPROBE_SCORE_EXTENSION;
if (!memcmp(VAR_1, "FORMAT=", 7))
ret... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"const char *VAR_1 = VAR_0->buf;",
"const char *VAR_2 = VAR_0->buf + VAR_0->buf_size;",
"while (VAR_1 < VAR_2) {",
"if (!memcmp(VAR_1, \"FORMAT=TIME\", 11))\nreturn AVPROBE_SCORE_EXTENSION;",
"if (!memcmp(VAR_1, \"FORMAT=\", 7))\nreturn AVPROBE_SCORE_EXTENSI... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
26,447 | void MPV_common_init_altivec(MpegEncContext *s)
{
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
(s->avctx->idct_algo == FF_IDCT_ALTIVEC))
{
s->dsp.idct_put = idct_put_altivec;
s->dsp.idct_add = idct_add_altivec;
s->dsp... | true | FFmpeg | 3518c5a96b0417f6e66bd0c8c64bd2b32d936064 | void MPV_common_init_altivec(MpegEncContext *s)
{
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
(s->avctx->idct_algo == FF_IDCT_ALTIVEC))
{
s->dsp.idct_put = idct_put_altivec;
s->dsp.idct_add = idct_add_altivec;
s->dsp... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
if (VAR_0->avctx->lowres==0)
{
if ((VAR_0->avctx->idct_algo == FF_IDCT_AUTO) ||
(VAR_0->avctx->idct_algo == FF_IDCT_ALTIVEC))
{
VAR_0->dsp.idct_put = idct_put_altivec;
VAR_0->dsp.idct_add = idct_add_altivec;
... | [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"if (VAR_0->avctx->lowres==0)\n{",
"if ((VAR_0->avctx->idct_algo == FF_IDCT_AUTO) ||\n(VAR_0->avctx->idct_algo == FF_IDCT_ALTIVEC))\n{",
"VAR_0->dsp.idct_put = idct_put_altivec;",
"VAR_0->dsp.idct_add = idct_add_altivec;",
"VAR_0->dsp.idct_permutation_type = FF_TRA... | [
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
],
[
14,
15,
16
],
[
17,
18
],
[
19
],
[
20
],
[
21,
22
],
[
23,
24
],
[
25
],
[
26
],... |
26,448 | static int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
{
char *pix_fmts;
AVCodecContext *codec = ofilter->ost->st->codec;
AVFilterContext *last_filter = out->filter_ctx;
int pad_idx = out->pad_idx;
int ret;
AVBufferSinkParams *buffersink_params = av... | true | FFmpeg | fc49f22c3b735db5aaac5f98e40b7124a2be13b8 | static int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
{
char *pix_fmts;
AVCodecContext *codec = ofilter->ost->st->codec;
AVFilterContext *last_filter = out->filter_ctx;
int pad_idx = out->pad_idx;
int ret;
AVBufferSinkParams *buffersink_params = av... | {
"code": [
" if ((pix_fmts = choose_pixel_fmts(ofilter->ost))) {",
" return 0;"
],
"line_no": [
83,
119
]
} | static int FUNC_0(FilterGraph *VAR_0, OutputFilter *VAR_1, AVFilterInOut *VAR_2)
{
char *VAR_3;
AVCodecContext *codec = VAR_1->ost->st->codec;
AVFilterContext *last_filter = VAR_2->filter_ctx;
int VAR_4 = VAR_2->VAR_4;
int VAR_5;
AVBufferSinkParams *buffersink_params = av_buffersink_param... | [
"static int FUNC_0(FilterGraph *VAR_0, OutputFilter *VAR_1, AVFilterInOut *VAR_2)\n{",
"char *VAR_3;",
"AVCodecContext *codec = VAR_1->ost->st->codec;",
"AVFilterContext *last_filter = VAR_2->filter_ctx;",
"int VAR_4 = VAR_2->VAR_4;",
"int VAR_5;",
"AVBufferSinkParams *buffersink_params = av_buffersink_... | [
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,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21,
23,
25
],
[
27,
29,
31,
33
],
[
35,
37
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[
55,
57,
59,... |
26,449 | static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
EightSvxContext *esc = avctx->priv_data;
int n, out_data_size, ret;
uint8_t *src, *dst;
/* decode and interleave the first packet */
if (!esc->samples ... | true | FFmpeg | 6eee9f5596074f9c0ff2cb25050b56c2914ff411 | static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
EightSvxContext *esc = avctx->priv_data;
int n, out_data_size, ret;
uint8_t *src, *dst;
if (!esc->samples && avpkt) {
uint8_t *deinterleaved_... | {
"code": [
" avpkt->size : avctx->channels + (avpkt->size-avctx->channels) * 2;"
],
"line_no": [
25
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
EightSvxContext *esc = VAR_0->priv_data;
int VAR_10, VAR_5, VAR_6;
uint8_t *src, *dst;
if (!esc->samples && VAR_3) {
uint8_t *deinterleaved_samples, *p = NULL;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"EightSvxContext *esc = VAR_0->priv_data;",
"int VAR_10, VAR_5, VAR_6;",
"uint8_t *src, *dst;",
"if (!esc->samples && VAR_3) {",
"uint8_t *deinterleaved_samples, *p = NULL;",
"esc->samples_size = !esc->table ?\nVAR... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55,
57
... |
26,450 | static bool cmd_data_set_management(IDEState *s, uint8_t cmd)
{
switch (s->feature) {
case DSM_TRIM:
if (s->bs) {
ide_sector_start_dma(s, IDE_DMA_TRIM);
return false;
}
break;
}
ide_abort_command(s);
return true;
}
| false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static bool cmd_data_set_management(IDEState *s, uint8_t cmd)
{
switch (s->feature) {
case DSM_TRIM:
if (s->bs) {
ide_sector_start_dma(s, IDE_DMA_TRIM);
return false;
}
break;
}
ide_abort_command(s);
return true;
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(IDEState *s, uint8_t cmd)
{
switch (s->feature) {
case DSM_TRIM:
if (s->bs) {
ide_sector_start_dma(s, IDE_DMA_TRIM);
return false;
}
break;
}
ide_abort_command(s);
return true;
}
| [
"static bool FUNC_0(IDEState *s, uint8_t cmd)\n{",
"switch (s->feature) {",
"case DSM_TRIM:\nif (s->bs) {",
"ide_sector_start_dma(s, IDE_DMA_TRIM);",
"return false;",
"}",
"break;",
"}",
"ide_abort_command(s);",
"return true;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
]
] |
26,453 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
t... | false | qemu | 6f789be56d3f38e9214dafcfab3bf9be7191f370 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
t... | {
"code": [],
"line_no": []
} | TranslationBlock *FUNC_0(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
uint32_t flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
tcg_in... | [
"TranslationBlock *FUNC_0(CPUState *cpu,\ntarget_ulong pc, target_ulong cs_base,\nuint32_t flags, int cflags)\n{",
"CPUArchState *env = cpu->env_ptr;",
"TranslationBlock *tb;",
"tb_page_addr_t phys_pc, phys_page2;",
"target_ulong virt_page2;",
"tcg_insn_unit *gen_code_buf;",
"int VAR_0, VAR_1;",
"#ifd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43,
47
],
[
51
],
[
53
],
[... |
26,454 | void scsi_bus_legacy_handle_cmdline(SCSIBus *bus, bool deprecated)
{
Location loc;
DriveInfo *dinfo;
int unit;
loc_push_none(&loc);
for (unit = 0; unit <= bus->info->max_target; unit++) {
dinfo = drive_get(IF_SCSI, bus->busnr, unit);
if (dinfo == NULL) {
contin... | false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | void scsi_bus_legacy_handle_cmdline(SCSIBus *bus, bool deprecated)
{
Location loc;
DriveInfo *dinfo;
int unit;
loc_push_none(&loc);
for (unit = 0; unit <= bus->info->max_target; unit++) {
dinfo = drive_get(IF_SCSI, bus->busnr, unit);
if (dinfo == NULL) {
contin... | {
"code": [],
"line_no": []
} | void FUNC_0(SCSIBus *VAR_0, bool VAR_1)
{
Location loc;
DriveInfo *dinfo;
int VAR_2;
loc_push_none(&loc);
for (VAR_2 = 0; VAR_2 <= VAR_0->info->max_target; VAR_2++) {
dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_2);
if (dinfo == NULL) {
continue;
}
... | [
"void FUNC_0(SCSIBus *VAR_0, bool VAR_1)\n{",
"Location loc;",
"DriveInfo *dinfo;",
"int VAR_2;",
"loc_push_none(&loc);",
"for (VAR_2 = 0; VAR_2 <= VAR_0->info->max_target; VAR_2++) {",
"dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_2);",
"if (dinfo == NULL) {",
"continue;",
"}",
"qemu_opts_loc_r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47
... |
26,455 | static void axienet_eth_rx_notify(void *opaque)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(opaque);
while (s->rxsize && stream_can_push(s->tx_dev, axienet_eth_rx_notify, s)) {
size_t ret = stream_push(s->tx_dev, (void *)s->rxmem + s->rxpos,
s->rxsize, s->rxapp);
... | false | qemu | 42bb9c9178ae7ac4c439172b1ae99cc29188a5c6 | static void axienet_eth_rx_notify(void *opaque)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(opaque);
while (s->rxsize && stream_can_push(s->tx_dev, axienet_eth_rx_notify, s)) {
size_t ret = stream_push(s->tx_dev, (void *)s->rxmem + s->rxpos,
s->rxsize, s->rxapp);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
XilinxAXIEnet *s = XILINX_AXI_ENET(VAR_0);
while (s->rxsize && stream_can_push(s->tx_dev, FUNC_0, s)) {
size_t ret = stream_push(s->tx_dev, (void *)s->rxmem + s->rxpos,
s->rxsize, s->rxapp);
s->rxsize -= ret;
s->... | [
"static void FUNC_0(void *VAR_0)\n{",
"XilinxAXIEnet *s = XILINX_AXI_ENET(VAR_0);",
"while (s->rxsize && stream_can_push(s->tx_dev, FUNC_0, s)) {",
"size_t ret = stream_push(s->tx_dev, (void *)s->rxmem + s->rxpos,\ns->rxsize, s->rxapp);",
"s->rxsize -= ret;",
"s->rxpos += ret;",
"if (!s->rxsize) {",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
26,456 | START_TEST(qint_from_int64_test)
{
QInt *qi;
const int64_t value = 0x1234567890abcdefLL;
qi = qint_from_int(value);
fail_unless((int64_t) qi->value == value);
QDECREF(qi);
}
| false | qemu | 65cdadd2e2de76f7db3bf6b7d8dd8c67abff9659 | START_TEST(qint_from_int64_test)
{
QInt *qi;
const int64_t value = 0x1234567890abcdefLL;
qi = qint_from_int(value);
fail_unless((int64_t) qi->value == value);
QDECREF(qi);
}
| {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QInt *qi;
const int64_t VAR_1 = 0x1234567890abcdefLL;
qi = qint_from_int(VAR_1);
fail_unless((int64_t) qi->VAR_1 == VAR_1);
QDECREF(qi);
}
| [
"FUNC_0(VAR_0)\n{",
"QInt *qi;",
"const int64_t VAR_1 = 0x1234567890abcdefLL;",
"qi = qint_from_int(VAR_1);",
"fail_unless((int64_t) qi->VAR_1 == VAR_1);",
"QDECREF(qi);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
26,457 | static int exynos4210_fimd_init(SysBusDevice *dev)
{
Exynos4210fimdState *s = FROM_SYSBUS(Exynos4210fimdState, dev);
s->ifb = NULL;
sysbus_init_irq(dev, &s->irq[0]);
sysbus_init_irq(dev, &s->irq[1]);
sysbus_init_irq(dev, &s->irq[2]);
memory_region_init_io(&s->iomem, &exynos4210_fimd... | false | qemu | 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 | static int exynos4210_fimd_init(SysBusDevice *dev)
{
Exynos4210fimdState *s = FROM_SYSBUS(Exynos4210fimdState, dev);
s->ifb = NULL;
sysbus_init_irq(dev, &s->irq[0]);
sysbus_init_irq(dev, &s->irq[1]);
sysbus_init_irq(dev, &s->irq[2]);
memory_region_init_io(&s->iomem, &exynos4210_fimd... | {
"code": [],
"line_no": []
} | static int FUNC_0(SysBusDevice *VAR_0)
{
Exynos4210fimdState *s = FROM_SYSBUS(Exynos4210fimdState, VAR_0);
s->ifb = NULL;
sysbus_init_irq(VAR_0, &s->irq[0]);
sysbus_init_irq(VAR_0, &s->irq[1]);
sysbus_init_irq(VAR_0, &s->irq[2]);
memory_region_init_io(&s->iomem, &exynos4210_fimd_mmi... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"Exynos4210fimdState *s = FROM_SYSBUS(Exynos4210fimdState, VAR_0);",
"s->ifb = NULL;",
"sysbus_init_irq(VAR_0, &s->irq[0]);",
"sysbus_init_irq(VAR_0, &s->irq[1]);",
"sysbus_init_irq(VAR_0, &s->irq[2]);",
"memory_region_init_io(&s->iomem, &exynos4210_fimd_mmio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27,
29
],
[
33
],
[
35
]
] |
26,460 | void helper_fsqrtq(CPUSPARCState *env)
{
clear_float_exceptions(env);
QT0 = float128_sqrt(QT1, &env->fp_status);
check_ieee_exceptions(env);
}
| false | qemu | 7385aed20db5d83979f683b9d0048674411e963c | void helper_fsqrtq(CPUSPARCState *env)
{
clear_float_exceptions(env);
QT0 = float128_sqrt(QT1, &env->fp_status);
check_ieee_exceptions(env);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUSPARCState *VAR_0)
{
clear_float_exceptions(VAR_0);
QT0 = float128_sqrt(QT1, &VAR_0->fp_status);
check_ieee_exceptions(VAR_0);
}
| [
"void FUNC_0(CPUSPARCState *VAR_0)\n{",
"clear_float_exceptions(VAR_0);",
"QT0 = float128_sqrt(QT1, &VAR_0->fp_status);",
"check_ieee_exceptions(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
26,461 | static void tpm_tis_abort(TPMState *s, uint8_t locty)
{
TPMTISEmuState *tis = &s->s.tis;
tis->loc[locty].r_offset = 0;
tis->loc[locty].w_offset = 0;
DPRINTF("tpm_tis: tis_abort: new active locality is %d\n", tis->next_locty);
/*
* Need to react differently depending on who's aborti... | false | qemu | fd859081453f94c3cbd6527289e41b7fddbf645f | static void tpm_tis_abort(TPMState *s, uint8_t locty)
{
TPMTISEmuState *tis = &s->s.tis;
tis->loc[locty].r_offset = 0;
tis->loc[locty].w_offset = 0;
DPRINTF("tpm_tis: tis_abort: new active locality is %d\n", tis->next_locty);
if (tis->aborting_locty == tis->next_locty) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TPMState *VAR_0, uint8_t VAR_1)
{
TPMTISEmuState *tis = &VAR_0->VAR_0.tis;
tis->loc[VAR_1].r_offset = 0;
tis->loc[VAR_1].w_offset = 0;
DPRINTF("tpm_tis: tis_abort: new active locality is %d\n", tis->next_locty);
if (tis->aborting_locty == tis->next_locty) {... | [
"static void FUNC_0(TPMState *VAR_0, uint8_t VAR_1)\n{",
"TPMTISEmuState *tis = &VAR_0->VAR_0.tis;",
"tis->loc[VAR_1].r_offset = 0;",
"tis->loc[VAR_1].w_offset = 0;",
"DPRINTF(\"tpm_tis: tis_abort: new active locality is %d\\n\", tis->next_locty);",
"if (tis->aborting_locty == tis->next_locty) {",
"tis-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
45
],
[
49
],
[
51
]
] |
26,462 | static TPMInfo *qmp_query_tpm_inst(TPMBackend *drv)
{
TPMInfo *res = g_new0(TPMInfo, 1);
TPMPassthroughOptions *tpo;
res->id = g_strdup(drv->id);
res->model = drv->fe_model;
res->options = g_new0(TpmTypeOptions, 1);
switch (drv->ops->type) {
case TPM_TYPE_PASSTHROUGH:
re... | false | qemu | 32bafa8fdd098d52fbf1102d5a5e48d29398c0aa | static TPMInfo *qmp_query_tpm_inst(TPMBackend *drv)
{
TPMInfo *res = g_new0(TPMInfo, 1);
TPMPassthroughOptions *tpo;
res->id = g_strdup(drv->id);
res->model = drv->fe_model;
res->options = g_new0(TpmTypeOptions, 1);
switch (drv->ops->type) {
case TPM_TYPE_PASSTHROUGH:
re... | {
"code": [],
"line_no": []
} | static TPMInfo *FUNC_0(TPMBackend *drv)
{
TPMInfo *res = g_new0(TPMInfo, 1);
TPMPassthroughOptions *tpo;
res->id = g_strdup(drv->id);
res->model = drv->fe_model;
res->options = g_new0(TpmTypeOptions, 1);
switch (drv->ops->type) {
case TPM_TYPE_PASSTHROUGH:
res->options->... | [
"static TPMInfo *FUNC_0(TPMBackend *drv)\n{",
"TPMInfo *res = g_new0(TPMInfo, 1);",
"TPMPassthroughOptions *tpo;",
"res->id = g_strdup(drv->id);",
"res->model = drv->fe_model;",
"res->options = g_new0(TpmTypeOptions, 1);",
"switch (drv->ops->type) {",
"case TPM_TYPE_PASSTHROUGH:\nres->options->type = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
26,466 | static void qemu_file_set_if_error(QEMUFile *f, int ret)
{
if (ret < 0 && !f->last_error) {
qemu_file_set_error(f, ret);
}
}
| false | qemu | c10682cb031525a8bdf3999ef6a033777929d304 | static void qemu_file_set_if_error(QEMUFile *f, int ret)
{
if (ret < 0 && !f->last_error) {
qemu_file_set_error(f, ret);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, int VAR_1)
{
if (VAR_1 < 0 && !VAR_0->last_error) {
qemu_file_set_error(VAR_0, VAR_1);
}
}
| [
"static void FUNC_0(QEMUFile *VAR_0, int VAR_1)\n{",
"if (VAR_1 < 0 && !VAR_0->last_error) {",
"qemu_file_set_error(VAR_0, VAR_1);",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
26,467 | static gboolean pty_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
PtyCharDriver *s = chr->opaque;
gsize size, len;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
len = sizeof(buf);
if (len > s->read_bytes)
len = s->read_bytes;
... | false | qemu | cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa | static gboolean pty_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
PtyCharDriver *s = chr->opaque;
gsize size, len;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
len = sizeof(buf);
if (len > s->read_bytes)
len = s->read_bytes;
... | {
"code": [],
"line_no": []
} | static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
PtyCharDriver *s = chr->opaque;
gsize size, len;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
len = sizeof(buf);
if (len > s->read_bytes)
len = s->read_bytes;
if... | [
"static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)\n{",
"CharDriverState *chr = opaque;",
"PtyCharDriver *s = chr->opaque;",
"gsize size, len;",
"uint8_t buf[READ_BUF_LEN];",
"GIOStatus status;",
"len = sizeof(buf);",
"if (len > s->read_bytes)\nlen = s->read_bytes;",
"if (len... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,469 | void gic_update(GICState *s)
{
int best_irq;
int best_prio;
int irq;
int level;
int cpu;
int cm;
for (cpu = 0; cpu < NUM_CPU(s); cpu++) {
cm = 1 << cpu;
s->current_pending[cpu] = 1023;
if (!s->enabled || !s->cpu_enabled[cpu]) {
qemu_irq_lower... | false | qemu | 679aa175e84f5f80b32b307fce5a6b92729e0e61 | void gic_update(GICState *s)
{
int best_irq;
int best_prio;
int irq;
int level;
int cpu;
int cm;
for (cpu = 0; cpu < NUM_CPU(s); cpu++) {
cm = 1 << cpu;
s->current_pending[cpu] = 1023;
if (!s->enabled || !s->cpu_enabled[cpu]) {
qemu_irq_lower... | {
"code": [],
"line_no": []
} | void FUNC_0(GICState *VAR_0)
{
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
for (VAR_5 = 0; VAR_5 < NUM_CPU(VAR_0); VAR_5++) {
VAR_6 = 1 << VAR_5;
VAR_0->current_pending[VAR_5] = 1023;
if (!VAR_0->enabled || !VAR_0->cpu_enabled[VAR_5]... | [
"void FUNC_0(GICState *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"for (VAR_5 = 0; VAR_5 < NUM_CPU(VAR_0); VAR_5++) {",
"VAR_6 = 1 << VAR_5;",
"VAR_0->current_pending[VAR_5] = 1023;",
"if (!VAR_0->enabled || !VAR_0->cpu_enabled[VAR_5]) {",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[... |
26,470 | static int ftp_auth(FTPContext *s)
{
const char *user = NULL, *pass = NULL;
char *end = NULL, buf[CONTROL_BUFFER_SIZE], credencials[CREDENTIALS_BUFFER_SIZE];
int err;
const int user_codes[] = {331, 230, 0};
const int pass_codes[] = {230, 0};
/* Authentication may be repeated, original s... | false | FFmpeg | ddbcc48b646737c8bff7f8e28e0a69dca65509cf | static int ftp_auth(FTPContext *s)
{
const char *user = NULL, *pass = NULL;
char *end = NULL, buf[CONTROL_BUFFER_SIZE], credencials[CREDENTIALS_BUFFER_SIZE];
int err;
const int user_codes[] = {331, 230, 0};
const int pass_codes[] = {230, 0};
av_strlcpy(credencials, s->credencials,... | {
"code": [],
"line_no": []
} | static int FUNC_0(FTPContext *VAR_0)
{
const char *VAR_1 = NULL, *VAR_2 = NULL;
char *VAR_3 = NULL, buf[CONTROL_BUFFER_SIZE], credencials[CREDENTIALS_BUFFER_SIZE];
int VAR_4;
const int VAR_5[] = {331, 230, 0};
const int VAR_6[] = {230, 0};
av_strlcpy(credencials, VAR_0->credencial... | [
"static int FUNC_0(FTPContext *VAR_0)\n{",
"const char *VAR_1 = NULL, *VAR_2 = NULL;",
"char *VAR_3 = NULL, buf[CONTROL_BUFFER_SIZE], credencials[CREDENTIALS_BUFFER_SIZE];",
"int VAR_4;",
"const int VAR_5[] = {331, 230, 0};",
"const int VAR_6[] = {230, 0};",
"av_strlcpy(credencials, VAR_0->credencials, ... | [
0,
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
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
26,471 | static void put_int64(QEMUFile *f, void *pv, size_t size)
{
int64_t *v = pv;
qemu_put_sbe64s(f, v);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void put_int64(QEMUFile *f, void *pv, size_t size)
{
int64_t *v = pv;
qemu_put_sbe64s(f, v);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
int64_t *v = VAR_1;
qemu_put_sbe64s(VAR_0, v);
}
| [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"int64_t *v = VAR_1;",
"qemu_put_sbe64s(VAR_0, v);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,473 | int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs,
const int16_t *in, int buffer_length,
int filter_length, int stop_on_overflow,
int shift, int rounder)
{
int i,n;
for (n = 0; n < bu... | false | FFmpeg | fddc5b9bea39968ed1f45c667869428865de7626 | int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs,
const int16_t *in, int buffer_length,
int filter_length, int stop_on_overflow,
int shift, int rounder)
{
int i,n;
for (n = 0; n < bu... | {
"code": [],
"line_no": []
} | int FUNC_0(int16_t *VAR_0, const int16_t *VAR_1,
const int16_t *VAR_2, int VAR_3,
int VAR_4, int VAR_5,
int VAR_6, int VAR_7)
{
int VAR_8,VAR_9;
for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9++) {
int VAR_10 =... | [
"int FUNC_0(int16_t *VAR_0, const int16_t *VAR_1,\nconst int16_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{",
"int VAR_8,VAR_9;",
"for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9++) {",
"int VAR_10 = VAR_7;",
"for (VAR_8 = 1; VAR_8 <= VAR_4; VAR_8++)",
"VAR_10 -= VAR_1[VAR_8-1] * VAR_0[VAR_9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
26,474 | static int push_samples(AVFilterLink *outlink)
{
ASNSContext *asns = outlink->src->priv;
AVFrame *outsamples = NULL;
int ret, nb_out_samples, nb_pad_samples;
if (asns->pad) {
nb_out_samples = av_audio_fifo_size(asns->fifo) ? asns->nb_out_samples : 0;
nb_pad_samples = nb_out_samp... | false | FFmpeg | b570f24d7600ef4c8f05018c46bea6356927ba4d | static int push_samples(AVFilterLink *outlink)
{
ASNSContext *asns = outlink->src->priv;
AVFrame *outsamples = NULL;
int ret, nb_out_samples, nb_pad_samples;
if (asns->pad) {
nb_out_samples = av_audio_fifo_size(asns->fifo) ? asns->nb_out_samples : 0;
nb_pad_samples = nb_out_samp... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0)
{
ASNSContext *asns = VAR_0->src->priv;
AVFrame *outsamples = NULL;
int VAR_1, VAR_2, VAR_3;
if (asns->pad) {
VAR_2 = av_audio_fifo_size(asns->fifo) ? asns->VAR_2 : 0;
VAR_3 = VAR_2 - FFMIN(VAR_2, av_audio_fifo_size(asns->fifo));
} els... | [
"static int FUNC_0(AVFilterLink *VAR_0)\n{",
"ASNSContext *asns = VAR_0->src->priv;",
"AVFrame *outsamples = NULL;",
"int VAR_1, VAR_2, VAR_3;",
"if (asns->pad) {",
"VAR_2 = av_audio_fifo_size(asns->fifo) ? asns->VAR_2 : 0;",
"VAR_3 = VAR_2 - FFMIN(VAR_2, av_audio_fifo_size(asns->fifo));",
"} else {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
37
],
[
41,
43
],
[
47,
49,
51,
53
],
[
55
],
[... |
26,475 | static void truemotion1_decode_16bit(TrueMotion1Context *s)
{
int y;
int pixels_left; /* remaining pixels on this line */
unsigned int predictor_pair;
unsigned int horiz_pred;
unsigned int *vert_pred;
unsigned int *current_pixel_pair;
unsigned char *current_line = s->frame->data[0];... | false | FFmpeg | a813cdda487e252681df36f675332b04c2e0e5a6 | static void truemotion1_decode_16bit(TrueMotion1Context *s)
{
int y;
int pixels_left;
unsigned int predictor_pair;
unsigned int horiz_pred;
unsigned int *vert_pred;
unsigned int *current_pixel_pair;
unsigned char *current_line = s->frame->data[0];
int keyframe = s->flags & FLA... | {
"code": [],
"line_no": []
} | static void FUNC_0(TrueMotion1Context *VAR_0)
{
int VAR_1;
int VAR_2;
unsigned int VAR_3;
unsigned int VAR_4;
unsigned int *VAR_5;
unsigned int *VAR_6;
unsigned char *VAR_7 = VAR_0->frame->data[0];
int VAR_8 = VAR_0->flags & FLAG_KEYFRAME;
const unsigned char *VAR... | [
"static void FUNC_0(TrueMotion1Context *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"unsigned int VAR_3;",
"unsigned int VAR_4;",
"unsigned int *VAR_5;",
"unsigned int *VAR_6;",
"unsigned char *VAR_7 = VAR_0->frame->data[0];",
"int VAR_8 = VAR_0->flags & FLAG_KEYFRAME;",
"const unsigned char *VAR_9 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
45
],
[
49
],
[
53
],
[
59
],
[
61
... |
26,476 | av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
int i;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_FASTIN... | false | FFmpeg | 6f1a5e8d6b7e085171a49b8ce6a371a7c9643764 | av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
int i;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_FASTIN... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(DSPContext* c, AVCodecContext *avctx)
{
int VAR_0;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_FASTINT)... | [
"av_cold void FUNC_0(DSPContext* c, AVCodecContext *avctx)\n{",
"int VAR_0;",
"ff_check_alignment();",
"#if CONFIG_ENCODERS\nif (avctx->bits_per_raw_sample == 10) {",
"c->fdct = ff_jpeg_fdct_islow_10;",
"c->fdct248 = ff_fdct248_islow_10;",
"} else {",
"if(avctx->dct_algo==FF_DCT_FASTINT) {",
"c->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
26,477 | static void decode(GetByteContext *gb, RangeCoder *rc, unsigned cumFreq, unsigned freq, unsigned total_freq)
{
rc->code -= cumFreq * rc->range;
rc->range *= freq;
while (rc->range < TOP && bytestream2_get_bytes_left(gb) > 0) {
unsigned byte = bytestream2_get_byte(gb);
rc->code = (rc-... | false | FFmpeg | 86ab6b6e08e2982fb5785e0691c0a7e289339ffb | static void decode(GetByteContext *gb, RangeCoder *rc, unsigned cumFreq, unsigned freq, unsigned total_freq)
{
rc->code -= cumFreq * rc->range;
rc->range *= freq;
while (rc->range < TOP && bytestream2_get_bytes_left(gb) > 0) {
unsigned byte = bytestream2_get_byte(gb);
rc->code = (rc-... | {
"code": [],
"line_no": []
} | static void FUNC_0(GetByteContext *VAR_0, RangeCoder *VAR_1, unsigned VAR_2, unsigned VAR_3, unsigned VAR_4)
{
VAR_1->code -= VAR_2 * VAR_1->range;
VAR_1->range *= VAR_3;
while (VAR_1->range < TOP && bytestream2_get_bytes_left(VAR_0) > 0) {
unsigned VAR_5 = bytestream2_get_byte(VAR_0);
... | [
"static void FUNC_0(GetByteContext *VAR_0, RangeCoder *VAR_1, unsigned VAR_2, unsigned VAR_3, unsigned VAR_4)\n{",
"VAR_1->code -= VAR_2 * VAR_1->range;",
"VAR_1->range *= VAR_3;",
"while (VAR_1->range < TOP && bytestream2_get_bytes_left(VAR_0) > 0) {",
"unsigned VAR_5 = bytestream2_get_byte(VAR_0);",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,478 | int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
{
PerThreadContext *p = avctx->internal->thread_ctx;
int err;
f->owner = avctx;
if (!(avctx->active_thread_type & FF_THREAD_FRAME))
return ff_get_buffer(avctx, f->f, flags);
if (atomic_load(&p->state) != ... | false | FFmpeg | 343e2833994655c252d5236a3394bf6db7a4d8b1 | int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
{
PerThreadContext *p = avctx->internal->thread_ctx;
int err;
f->owner = avctx;
if (!(avctx->active_thread_type & FF_THREAD_FRAME))
return ff_get_buffer(avctx, f->f, flags);
if (atomic_load(&p->state) != ... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2)
{
PerThreadContext *p = VAR_0->internal->thread_ctx;
int VAR_3;
VAR_1->owner = VAR_0;
if (!(VAR_0->active_thread_type & FF_THREAD_FRAME))
return ff_get_buffer(VAR_0, VAR_1->VAR_1, VAR_2);
if (atomic_load(&p->state)... | [
"int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2)\n{",
"PerThreadContext *p = VAR_0->internal->thread_ctx;",
"int VAR_3;",
"VAR_1->owner = VAR_0;",
"if (!(VAR_0->active_thread_type & FF_THREAD_FRAME))\nreturn ff_get_buffer(VAR_0, VAR_1->VAR_1, VAR_2);",
"if (atomic_load(&p->state) != STATE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15,
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53... |
26,482 | static void nfs_refresh_filename(BlockDriverState *bs, QDict *options)
{
NFSClient *client = bs->opaque;
QDict *opts = qdict_new();
QObject *server_qdict;
Visitor *ov;
qdict_put(opts, "driver", qstring_from_str("nfs"));
if (client->uid && !client->gid) {
snprintf(bs->exact_fi... | false | qemu | 7c81e4e9db5f63635fbf11d66bf08e73d325ae97 | static void nfs_refresh_filename(BlockDriverState *bs, QDict *options)
{
NFSClient *client = bs->opaque;
QDict *opts = qdict_new();
QObject *server_qdict;
Visitor *ov;
qdict_put(opts, "driver", qstring_from_str("nfs"));
if (client->uid && !client->gid) {
snprintf(bs->exact_fi... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)
{
NFSClient *client = VAR_0->opaque;
QDict *opts = qdict_new();
QObject *server_qdict;
Visitor *ov;
qdict_put(opts, "driver", qstring_from_str("nfs"));
if (client->uid && !client->gid) {
snprintf(VAR_0->exact_filename,... | [
"static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)\n{",
"NFSClient *client = VAR_0->opaque;",
"QDict *opts = qdict_new();",
"QObject *server_qdict;",
"Visitor *ov;",
"qdict_put(opts, \"driver\", qstring_from_str(\"nfs\"));",
"if (client->uid && !client->gid) {",
"snprintf(VAR_0->exact_filename... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21,
23,
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45,
47,
49
],
[
53
],
[
55
... |
26,483 | static void pci_basic(gconstpointer data)
{
QVirtioPCIDevice *dev;
QPCIBus *bus;
QVirtQueuePCI *tx, *rx;
QGuestAllocator *alloc;
void (*func) (QVirtioDevice *dev,
QGuestAllocator *alloc,
QVirtQueue *rvq,
QVirtQueue *tvq,
... | false | qemu | a980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4 | static void pci_basic(gconstpointer data)
{
QVirtioPCIDevice *dev;
QPCIBus *bus;
QVirtQueuePCI *tx, *rx;
QGuestAllocator *alloc;
void (*func) (QVirtioDevice *dev,
QGuestAllocator *alloc,
QVirtQueue *rvq,
QVirtQueue *tvq,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(gconstpointer VAR_0)
{
QVirtioPCIDevice *VAR_2;
QPCIBus *bus;
QVirtQueuePCI *tx, *rx;
QGuestAllocator *VAR_3;
void (*VAR_1) (QVirtioDevice *VAR_2,
QGuestAllocator *VAR_3,
QVirtQueue *VAR_4,
QVirtQueue *VAR_5,
... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"QVirtioPCIDevice *VAR_2;",
"QPCIBus *bus;",
"QVirtQueuePCI *tx, *rx;",
"QGuestAllocator *VAR_3;",
"void (*VAR_1) (QVirtioDevice *VAR_2,\nQGuestAllocator *VAR_3,\nQVirtQueue *VAR_4,\nQVirtQueue *VAR_5,\nint VAR_6) = VAR_0;",
"int VAR_7[2], VAR_8;",
"VAR_8 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
55
],
[
57
... |
26,484 | static void qmp_input_type_bool(Visitor *v, const char *name, bool *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QBool *qbool;
if (!qobj) {
return;
}
qbool = qobject_to_qbool... | false | qemu | 09e68369a88d7de0f988972bf28eec1b80cc47f9 | static void qmp_input_type_bool(Visitor *v, const char *name, bool *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QBool *qbool;
if (!qobj) {
return;
}
qbool = qobject_to_qbool... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2,
Error **VAR_3)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);
QBool *qbool;
if (!qobj) {
return;
}
qbool = qobject_to_qboo... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2,\nError **VAR_3)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);",
"QBool *qbool;",
"if (!qobj) {",
"return;",
"}",
"qbool = qobject_to_qbool(qobj);",
"if (!qbool) {",
"... | [
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
],
[
35
],
[
37
]
] |
26,486 | static int spapr_vio_busdev_init(DeviceState *qdev, DeviceInfo *qinfo)
{
VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qinfo;
VIOsPAPRDevice *dev = (VIOsPAPRDevice *)qdev;
char *id;
int ret;
ret = spapr_vio_check_reg(dev, info);
if (ret) {
return ret;
}
/* Don't ... | false | qemu | 3954d33ab7f82f5a5fa0ced231849920265a5fec | static int spapr_vio_busdev_init(DeviceState *qdev, DeviceInfo *qinfo)
{
VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qinfo;
VIOsPAPRDevice *dev = (VIOsPAPRDevice *)qdev;
char *id;
int ret;
ret = spapr_vio_check_reg(dev, info);
if (ret) {
return ret;
}
if ... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)
{
VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)VAR_1;
VIOsPAPRDevice *dev = (VIOsPAPRDevice *)VAR_0;
char *VAR_2;
int VAR_3;
VAR_3 = spapr_vio_check_reg(dev, info);
if (VAR_3) {
return VAR_3;
}
if (!... | [
"static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)\n{",
"VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)VAR_1;",
"VIOsPAPRDevice *dev = (VIOsPAPRDevice *)VAR_0;",
"char *VAR_2;",
"int VAR_3;",
"VAR_3 = spapr_vio_check_reg(dev, info);",
"if (VAR_3) {",
"return VAR_3;",
"}",
"if (!dev->VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
26,487 | static DriveInfo *blockdev_init(QDict *bs_opts,
BlockInterfaceType type,
DriveMediaType media)
{
const char *buf;
const char *file = NULL;
const char *serial;
int ro = 0;
int bdrv_flags = 0;
int on_read_error, on_write_erro... | false | qemu | 4f8a066b5fc254eeaabbbde56ba4f5b29cc68fdf | static DriveInfo *blockdev_init(QDict *bs_opts,
BlockInterfaceType type,
DriveMediaType media)
{
const char *buf;
const char *file = NULL;
const char *serial;
int ro = 0;
int bdrv_flags = 0;
int on_read_error, on_write_erro... | {
"code": [],
"line_no": []
} | static DriveInfo *FUNC_0(QDict *bs_opts,
BlockInterfaceType type,
DriveMediaType media)
{
const char *VAR_0;
const char *VAR_1 = NULL;
const char *VAR_2;
int VAR_3 = 0;
int VAR_4 = 0;
int VAR_5, VAR_6;
DriveInfo *dinfo... | [
"static DriveInfo *FUNC_0(QDict *bs_opts,\nBlockInterfaceType type,\nDriveMediaType media)\n{",
"const char *VAR_0;",
"const char *VAR_1 = NULL;",
"const char *VAR_2;",
"int VAR_3 = 0;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;",
"DriveInfo *dinfo;",
"ThrottleConfig cfg;",
"int VAR_7 = 0;",
"bool co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
47
],
[
49
... |
26,488 | static void ioq_init(LaioQueue *io_q)
{
QSIMPLEQ_INIT(&io_q->pending);
io_q->plugged = 0;
io_q->n = 0;
io_q->blocked = false;
}
| false | qemu | 5e1b34a3fa0a0fbf46628aab10cc49f6f855520e | static void ioq_init(LaioQueue *io_q)
{
QSIMPLEQ_INIT(&io_q->pending);
io_q->plugged = 0;
io_q->n = 0;
io_q->blocked = false;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(LaioQueue *VAR_0)
{
QSIMPLEQ_INIT(&VAR_0->pending);
VAR_0->plugged = 0;
VAR_0->n = 0;
VAR_0->blocked = false;
}
| [
"static void FUNC_0(LaioQueue *VAR_0)\n{",
"QSIMPLEQ_INIT(&VAR_0->pending);",
"VAR_0->plugged = 0;",
"VAR_0->n = 0;",
"VAR_0->blocked = false;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
26,490 | static int sys_utimensat(int dirfd, const char *pathname,
const struct timespec times[2], int flags)
{
return (utimensat(dirfd, pathname, times, flags));
}
| false | qemu | ebc996f3b13004e7272c462254522ba0102f09fe | static int sys_utimensat(int dirfd, const char *pathname,
const struct timespec times[2], int flags)
{
return (utimensat(dirfd, pathname, times, flags));
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, const char *VAR_1,
const struct timespec VAR_2[2], int VAR_3)
{
return (utimensat(VAR_0, VAR_1, VAR_2, VAR_3));
}
| [
"static int FUNC_0(int VAR_0, const char *VAR_1,\nconst struct timespec VAR_2[2], int VAR_3)\n{",
"return (utimensat(VAR_0, VAR_1, VAR_2, VAR_3));",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
26,491 | void hmp_delvm(Monitor *mon, const QDict *qdict)
{
BlockDriverState *bs;
Error *err;
const char *name = qdict_get_str(qdict, "name");
if (!find_vmstate_bs()) {
monitor_printf(mon, "No block device supports snapshots\n");
return;
}
if (bdrv_all_delete_snapshot(name, &... | false | qemu | c6258b04f19bc690b576b089f621cb5333c533d7 | void hmp_delvm(Monitor *mon, const QDict *qdict)
{
BlockDriverState *bs;
Error *err;
const char *name = qdict_get_str(qdict, "name");
if (!find_vmstate_bs()) {
monitor_printf(mon, "No block device supports snapshots\n");
return;
}
if (bdrv_all_delete_snapshot(name, &... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
BlockDriverState *bs;
Error *err;
const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");
if (!find_vmstate_bs()) {
monitor_printf(VAR_0, "No block device supports snapshots\n");
return;
}
if (bdrv_all_delete_snapshot(VAR_... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"BlockDriverState *bs;",
"Error *err;",
"const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");",
"if (!find_vmstate_bs()) {",
"monitor_printf(VAR_0, \"No block device supports snapshots\\n\");",
"return;",
"}",
"if (bdrv_all_delete_snapshot(VAR_2,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
]
] |
26,492 | static inline void RENAME(rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *s = (const uint16_t*)src;
end = s + src_size/2;
#if COMPILE_TEMPLATE_MMX
__asm__ vol... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *s = (const uint16_t*)src;
end = s + src_size/2;
#if COMPILE_TEMPLATE_MMX
__asm__ vol... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *VAR_0;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *VAR_1 = (const uint16_t*)src;
VAR_0 = VAR_1 + src_size/2;
#if COMPILE_TEMPLATE_MMX
... | [
"static inline void FUNC_0(rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size)\n{",
"const uint16_t *VAR_0;",
"#if COMPILE_TEMPLATE_MMX\nconst uint16_t *mm_end;",
"#endif\nuint8_t *d = dst;",
"const uint16_t *VAR_1 = (const uint16_t*)src;",
"VAR_0 = VAR_1 + src_size/2;",
"#if COMPILE_TEMPLATE... | [
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,
57,
59,
61,... |
26,493 | static void tcg_out_movi(TCGContext *s, TCGType type,
TCGReg ret, tcg_target_long sval)
{
static const S390Opcode lli_insns[4] = {
RI_LLILL, RI_LLILH, RI_LLIHL, RI_LLIHH
};
tcg_target_ulong uval = sval;
int i;
if (type == TCG_TYPE_I32) {
uval = (... | false | qemu | b2c98d9d392c87c9b9e975d30f79924719d9cbbe | static void tcg_out_movi(TCGContext *s, TCGType type,
TCGReg ret, tcg_target_long sval)
{
static const S390Opcode lli_insns[4] = {
RI_LLILL, RI_LLILH, RI_LLIHL, RI_LLIHH
};
tcg_target_ulong uval = sval;
int i;
if (type == TCG_TYPE_I32) {
uval = (... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1,
TCGReg VAR_2, tcg_target_long VAR_3)
{
static const S390Opcode VAR_4[4] = {
RI_LLILL, RI_LLILH, RI_LLIHL, RI_LLIHH
};
tcg_target_ulong uval = VAR_3;
int VAR_5;
if (VAR_1 == TCG_TYPE_I32) {
uval... | [
"static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1,\nTCGReg VAR_2, tcg_target_long VAR_3)\n{",
"static const S390Opcode VAR_4[4] = {",
"RI_LLILL, RI_LLILH, RI_LLIHL, RI_LLIHH\n};",
"tcg_target_ulong uval = VAR_3;",
"int VAR_5;",
"if (VAR_1 == TCG_TYPE_I32) {",
"uval = (uint32_t)VAR_3;",
"VAR_3 = (in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
26,494 | milkymist_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
LM32CPU *cpu;
CPULM32State *env;
i... | false | qemu | cf3dc71eb5141761c3aed0d936e390aeaa73a88b | milkymist_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
LM32CPU *cpu;
CPULM32State *env;
i... | {
"code": [],
"line_no": []
} | FUNC_0(MachineState *VAR_0)
{
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
LM32CPU *cpu;
CPULM32State *env;
int VAR_5;
DriveInfo *dinfo;
MemoryRegion *address_space_mem = get_system_m... | [
"FUNC_0(MachineState *VAR_0)\n{",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"LM32CPU *cpu;",
"CPULM32State *env;",
"int VAR_5;",
"DriveInfo *dinfo;",
"MemoryRegion *address_space_mem = get_sys... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,495 | static int vmdk_write_extent(VmdkExtent *extent, int64_t cluster_offset,
int64_t offset_in_cluster, QEMUIOVector *qiov,
uint64_t qiov_offset, uint64_t n_bytes,
uint64_t offset)
{
int ret;
VmdkGrainMarker *data = NULL;
... | false | qemu | a03ef88f77af045a2eb9629b5ce774a3fb973c5e | static int vmdk_write_extent(VmdkExtent *extent, int64_t cluster_offset,
int64_t offset_in_cluster, QEMUIOVector *qiov,
uint64_t qiov_offset, uint64_t n_bytes,
uint64_t offset)
{
int ret;
VmdkGrainMarker *data = NULL;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VmdkExtent *VAR_0, int64_t VAR_1,
int64_t VAR_2, QEMUIOVector *VAR_3,
uint64_t VAR_4, uint64_t VAR_5,
uint64_t VAR_6)
{
int VAR_7;
VmdkGrainMarker *data = NULL;
uLongf buf_len;
QEMUIOVector loca... | [
"static int FUNC_0(VmdkExtent *VAR_0, int64_t VAR_1,\nint64_t VAR_2, QEMUIOVector *VAR_3,\nuint64_t VAR_4, uint64_t VAR_5,\nuint64_t VAR_6)\n{",
"int VAR_7;",
"VmdkGrainMarker *data = NULL;",
"uLongf buf_len;",
"QEMUIOVector local_qiov;",
"struct iovec VAR_8;",
"int64_t write_offset;",
"int64_t write_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
26,497 | static int vnc_continue_handshake(struct VncState *vs) {
int ret;
if ((ret = gnutls_handshake(vs->tls_session)) < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls_session))
qemu_s... | false | qemu | 5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b | static int vnc_continue_handshake(struct VncState *vs) {
int ret;
if ((ret = gnutls_handshake(vs->tls_session)) < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls_session))
qemu_s... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct VncState *VAR_0) {
int VAR_1;
if ((VAR_1 = gnutls_handshake(VAR_0->tls_session)) < 0) {
if (!gnutls_error_is_fatal(VAR_1)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(VAR_0->tls_session))
qemu_se... | [
"static int FUNC_0(struct VncState *VAR_0) {",
"int VAR_1;",
"if ((VAR_1 = gnutls_handshake(VAR_0->tls_session)) < 0) {",
"if (!gnutls_error_is_fatal(VAR_1)) {",
"VNC_DEBUG(\"Handshake interrupted (blocking)\\n\");",
"if (!gnutls_record_get_direction(VAR_0->tls_session))\nqemu_set_fd_handler(VAR_0->csock,... | [
0,
0,
0,
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
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
26,498 | void cpu_reset (CPUMIPSState *env)
{
memset(env, 0, offsetof(CPUMIPSState, breakpoints));
tlb_flush(env, 1);
/* Minimal init */
#if defined(CONFIG_USER_ONLY)
env->hflags = MIPS_HFLAG_UM;
#else
if (env->hflags & MIPS_HFLAG_BMASK) {
/* If the exception was raised from a delay slot,
... | true | qemu | eca1bdf415c454093dfc7eb983cd49287c043967 | void cpu_reset (CPUMIPSState *env)
{
memset(env, 0, offsetof(CPUMIPSState, breakpoints));
tlb_flush(env, 1);
#if defined(CONFIG_USER_ONLY)
env->hflags = MIPS_HFLAG_UM;
#else
if (env->hflags & MIPS_HFLAG_BMASK) {
env->CP0_ErrorEPC = env->active_tc.PC - 4;
} else {
env->... | {
"code": [],
"line_no": []
} | void FUNC_0 (CPUMIPSState *VAR_0)
{
memset(VAR_0, 0, offsetof(CPUMIPSState, breakpoints));
tlb_flush(VAR_0, 1);
#if defined(CONFIG_USER_ONLY)
VAR_0->hflags = MIPS_HFLAG_UM;
#else
if (VAR_0->hflags & MIPS_HFLAG_BMASK) {
VAR_0->CP0_ErrorEPC = VAR_0->active_tc.PC - 4;
} else {
... | [
"void FUNC_0 (CPUMIPSState *VAR_0)\n{",
"memset(VAR_0, 0, offsetof(CPUMIPSState, breakpoints));",
"tlb_flush(VAR_0, 1);",
"#if defined(CONFIG_USER_ONLY)\nVAR_0->hflags = MIPS_HFLAG_UM;",
"#else\nif (VAR_0->hflags & MIPS_HFLAG_BMASK) {",
"VAR_0->CP0_ErrorEPC = VAR_0->active_tc.PC - 4;",
"} else {",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
6,
7
],
[
8,
9
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
18
],
[
19
],
[
22
],
[
23
],
[
24
],
[
25
],
[
26
],
[
27
],
[
28
]... |
26,499 | static int vmdk_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
char *buf;
int ret;
BDRVVmdkState *s = bs->opaque;
uint32_t magic;
Error *local_err = NULL;
bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file,
... | true | qemu | 9877860e7bd1e26ee70ab9bb5ebc34c92bf23bf5 | static int vmdk_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
char *buf;
int ret;
BDRVVmdkState *s = bs->opaque;
uint32_t magic;
Error *local_err = NULL;
bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file,
... | {
"code": [
" s->cid = vmdk_read_cid(bs, 0);",
" s->parent_cid = vmdk_read_cid(bs, 1);"
],
"line_no": [
83,
85
]
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
char *VAR_4;
int VAR_5;
BDRVVmdkState *s = VAR_0->opaque;
uint32_t magic;
Error *local_err = NULL;
VAR_0->file = bdrv_open_child(NULL, VAR_1, "file", VAR_0, &child_file,
... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"char *VAR_4;",
"int VAR_5;",
"BDRVVmdkState *s = VAR_0->opaque;",
"uint32_t magic;",
"Error *local_err = NULL;",
"VAR_0->file = bdrv_open_child(NULL, VAR_1, \"file\", VAR_0, &child_file,\nfalse, VAR_3);",
"if (!... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47,
49,
51
],
[... |
26,500 | static inline void gen_neon_widen(TCGv_i64 dest, TCGv src, int size, int u)
{
if (u) {
switch (size) {
case 0: gen_helper_neon_widen_u8(dest, src); break;
case 1: gen_helper_neon_widen_u16(dest, src); break;
case 2: tcg_gen_extu_i32_i64(dest, src); break;
default: abor... | true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static inline void gen_neon_widen(TCGv_i64 dest, TCGv src, int size, int u)
{
if (u) {
switch (size) {
case 0: gen_helper_neon_widen_u8(dest, src); break;
case 1: gen_helper_neon_widen_u16(dest, src); break;
case 2: tcg_gen_extu_i32_i64(dest, src); break;
default: abor... | {
"code": [
" dead_tmp(src);"
],
"line_no": [
35
]
} | static inline void FUNC_0(TCGv_i64 VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)
{
if (VAR_3) {
switch (VAR_2) {
case 0: gen_helper_neon_widen_u8(VAR_0, VAR_1); break;
case 1: gen_helper_neon_widen_u16(VAR_0, VAR_1); break;
case 2: tcg_gen_extu_i32_i64(VAR_0, VAR_1); break;
... | [
"static inline void FUNC_0(TCGv_i64 VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{",
"if (VAR_3) {",
"switch (VAR_2) {",
"case 0: gen_helper_neon_widen_u8(VAR_0, VAR_1); break;",
"case 1: gen_helper_neon_widen_u16(VAR_0, VAR_1); break;",
"case 2: tcg_gen_extu_i32_i64(VAR_0, VAR_1); break;",
"default: abort... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
26,501 | static int rv10_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MpegEncContext *s = avctx->priv_data;
int i;
AVFrame *pict = data;
i... | true | FFmpeg | 1d3a9e63e0dcbcba633d939cdfb79e977259be13 | static int rv10_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MpegEncContext *s = avctx->priv_data;
int i;
AVFrame *pict = data;
i... | {
"code": [
" int offset= get_slice_offset(avctx, slices_hdr, i);"
],
"line_no": [
55
]
} | 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->VAR_10;
MpegEncContext *s = VAR_0->priv_data;
int VAR_6;
AVFrame *pict = VAR_1;
int VAR_... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->VAR_10;",
"MpegEncContext *s = VAR_0->priv_data;",
"int VAR_6;",
"AVFrame *pict = VAR_1;",
"int VAR_7;",
"const uint8_t *VAR_8 = NULL;",
"av_dlog(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
26,502 | static void output_client_manifest(struct VideoFiles *files,
const char *basename, int split)
{
char filename[1000];
FILE *out;
int i, j;
if (split)
snprintf(filename, sizeof(filename), "Manifest");
else
snprintf(filename, sizeof(filename... | true | FFmpeg | 30327865f388260e49d40affd1b9c9fc2e20ebfe | static void output_client_manifest(struct VideoFiles *files,
const char *basename, int split)
{
char filename[1000];
FILE *out;
int i, j;
if (split)
snprintf(filename, sizeof(filename), "Manifest");
else
snprintf(filename, sizeof(filename... | {
"code": [
" vf = files->files[files->video_file];",
" for (i = 0; i < vf->chunks; i++)",
" vf = files->files[files->audio_file];",
" for (i = 0; i < vf->chunks; i++)"
],
"line_no": [
83,
85,
143,
85
]
} | static void FUNC_0(struct VideoFiles *VAR_0,
const char *VAR_1, int VAR_2)
{
char VAR_3[1000];
FILE *out;
int VAR_4, VAR_5;
if (VAR_2)
snprintf(VAR_3, sizeof(VAR_3), "Manifest");
else
snprintf(VAR_3, sizeof(VAR_3), "%s.ismc", VAR_1);
... | [
"static void FUNC_0(struct VideoFiles *VAR_0,\nconst char *VAR_1, int VAR_2)\n{",
"char VAR_3[1000];",
"FILE *out;",
"int VAR_4, VAR_5;",
"if (VAR_2)\nsnprintf(VAR_3, sizeof(VAR_3), \"Manifest\");",
"else\nsnprintf(VAR_3, sizeof(VAR_3), \"%s.ismc\", VAR_1);",
"out = fopen(VAR_3, \"w\");",
"if (!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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47,
49,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.