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 |
|---|---|---|---|---|---|---|---|---|---|---|
27,130 | iscsi_co_generic_cb(struct iscsi_context *iscsi, int status,
void *command_data, void *opaque)
{
struct IscsiTask *iTask = opaque;
struct scsi_task *task = command_data;
iTask->status = status;
iTask->do_retry = 0;
iTask->task = task;
if (status != SCSI_STATUS... | true | qemu | 5dd7a535b71a0f2f8e7af75c5d694174359ce323 | iscsi_co_generic_cb(struct iscsi_context *iscsi, int status,
void *command_data, void *opaque)
{
struct IscsiTask *iTask = opaque;
struct scsi_task *task = command_data;
iTask->status = status;
iTask->do_retry = 0;
iTask->task = task;
if (status != SCSI_STATUS... | {
"code": [
" if (status == SCSI_STATUS_BUSY || status == 0x28) {",
" error_report(\"iSCSI Busy/TaskSetFull (retry #%u in %u ms): %s\","
],
"line_no": [
45,
51
]
} | FUNC_0(struct iscsi_context *VAR_0, int VAR_1,
void *VAR_2, void *VAR_3)
{
struct IscsiTask *VAR_4 = VAR_3;
struct scsi_task *VAR_5 = VAR_2;
VAR_4->VAR_1 = VAR_1;
VAR_4->do_retry = 0;
VAR_4->VAR_5 = VAR_5;
if (VAR_1 != SCSI_STATUS_GOOD) {
if (VAR_4->r... | [
"FUNC_0(struct iscsi_context *VAR_0, int VAR_1,\nvoid *VAR_2, void *VAR_3)\n{",
"struct IscsiTask *VAR_4 = VAR_3;",
"struct scsi_task *VAR_5 = VAR_2;",
"VAR_4->VAR_1 = VAR_1;",
"VAR_4->do_retry = 0;",
"VAR_4->VAR_5 = VAR_5;",
"if (VAR_1 != SCSI_STATUS_GOOD) {",
"if (VAR_4->retries++ < ISCSI_CMD_RETRIE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
45
],
[
47,
49
],
[
51,
53,
55
],
[
57,... |
27,132 | int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame = {0};
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_def... | true | FFmpeg | 015da965a68bdb48819dc98317888fc84eced599 | int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame = {0};
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_def... | {
"code": [
" AVFrame frame = {0};"
],
"line_no": [
9
]
} | int VAR_0 avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame = {0};
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_default_get_buffe... | [
"int VAR_0 avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples,\nint *frame_size_ptr,\nAVPacket *avpkt)\n{",
"AVFrame frame = {0};",
"int ret, got_frame = 0;",
"if (avctx->get_buffer != avcodec_default_get_buffer) {",
"av_log(avctx, AV_LOG_ERROR, \"Custom get_buffer() for use with\"\n\"avcodec_dec... | [
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49,
51
],
[
53
],
[... |
27,133 | static int ape_read_header(AVFormatContext * s)
{
AVIOContext *pb = s->pb;
APEContext *ape = s->priv_data;
AVStream *st;
uint32_t tag;
int i;
int total_blocks, final_size = 0;
int64_t pts, file_size;
/* Skip any leading junk such as id3v2 tags */
ape->junklength = avio_te... | true | FFmpeg | 3cfa310c5de526dbc40d7b33eb6234cff29d8f8c | static int ape_read_header(AVFormatContext * s)
{
AVIOContext *pb = s->pb;
APEContext *ape = s->priv_data;
AVStream *st;
uint32_t tag;
int i;
int total_blocks, final_size = 0;
int64_t pts, file_size;
ape->junklength = avio_tell(pb);
tag = avio_rl32(pb);
if (t... | {
"code": [
" ape->seektable = av_malloc(ape->seektablelength);",
" ape->bittable = av_malloc(ape->totalframes);"
],
"line_no": [
247,
259
]
} | static int FUNC_0(AVFormatContext * VAR_0)
{
AVIOContext *pb = VAR_0->pb;
APEContext *ape = VAR_0->priv_data;
AVStream *st;
uint32_t tag;
int VAR_1;
int VAR_2, VAR_3 = 0;
int64_t pts, file_size;
ape->junklength = avio_tell(pb);
tag = avio_rl32(pb);
if (tag !=... | [
"static int FUNC_0(AVFormatContext * VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"APEContext *ape = VAR_0->priv_data;",
"AVStream *st;",
"uint32_t tag;",
"int VAR_1;",
"int VAR_2, VAR_3 = 0;",
"int64_t pts, file_size;",
"ape->junklength = avio_tell(pb);",
"tag = avio_rl32(pb);",
"if (tag != MKTA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
27
],
[
29,
31
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
... |
27,134 | int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
int level)
{
VDPAUHWContext *hwctx = avctx->hwaccel_context;
VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;
VdpVideoSurfaceQueryCapabilities *surface_query_caps;
VdpDecoderQueryCapabiliti... | true | FFmpeg | 64ecb78b7179cab2dbdf835463104679dbb7c895 | int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
int level)
{
VDPAUHWContext *hwctx = avctx->hwaccel_context;
VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data;
VdpVideoSurfaceQueryCapabilities *surface_query_caps;
VdpDecoderQueryCapabiliti... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, VdpDecoderProfile VAR_1,
int VAR_2)
{
VDPAUHWContext *hwctx = VAR_0->hwaccel_context;
VDPAUContext *vdctx = VAR_0->internal->hwaccel_priv_data;
VdpVideoSurfaceQueryCapabilities *surface_query_caps;
VdpDecoderQueryCapabilities *decoder_quer... | [
"int FUNC_0(AVCodecContext *VAR_0, VdpDecoderProfile VAR_1,\nint VAR_2)\n{",
"VDPAUHWContext *hwctx = VAR_0->hwaccel_context;",
"VDPAUContext *vdctx = VAR_0->internal->hwaccel_priv_data;",
"VdpVideoSurfaceQueryCapabilities *surface_query_caps;",
"VdpDecoderQueryCapabilities *decoder_query_caps;",
"VdpDeco... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
49
],
[
53
... |
27,136 | static int idcin_probe(AVProbeData *p)
{
unsigned int number, sample_rate;
/*
* This is what you could call a "probabilistic" file check: id CIN
* files don't have a definite file signature. In lieu of such a marker,
* perform sanity checks on the 5 32-bit header fields:
* width, h... | true | FFmpeg | 4c439f6e3999ae534991ecde943e45b00c80b8d2 | static int idcin_probe(AVProbeData *p)
{
unsigned int number, sample_rate;
if (p->buf_size < 20)
return 0;
number = AV_RL32(&p->buf[0]);
if ((number == 0) || (number > 1024))
return 0;
number = AV_RL32(&p->buf[4]);
if ((... | {
"code": [
" if (p->buf_size < 20)",
" number = AV_RL32(&p->buf[0]);",
" if ((number == 0) || (number > 1024))",
" number = AV_RL32(&p->buf[4]);",
" if ((number == 0) || (number > 1024))"
],
"line_no": [
35,
43,
45,
53,
45
]
} | static int FUNC_0(AVProbeData *VAR_0)
{
unsigned int VAR_1, VAR_2;
if (VAR_0->buf_size < 20)
return 0;
VAR_1 = AV_RL32(&VAR_0->buf[0]);
if ((VAR_1 == 0) || (VAR_1 > 1024))
return 0;
VAR_1 = AV_RL32(&VAR_0->buf[4]);
if ((... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"unsigned int VAR_1, VAR_2;",
"if (VAR_0->buf_size < 20)\nreturn 0;",
"VAR_1 = AV_RL32(&VAR_0->buf[0]);",
"if ((VAR_1 == 0) || (VAR_1 > 1024))\nreturn 0;",
"VAR_1 = AV_RL32(&VAR_0->buf[4]);",
"if ((VAR_1 == 0) || (VAR_1 > 1024))\nreturn 0;",
"VAR_2 = AV_RL32... | [
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
35,
37
],
[
43
],
[
45,
47
],
[
53
],
[
55,
57
],
[
63
],
[
65,
67
],
[
73
],
[
75,
77
],
[
83
],
[
85,
87
],
[
93
],
[
95
]
] |
27,138 | static inline int hpel_motion(MpegEncContext *s,
uint8_t *dest, uint8_t *src,
int src_x, int src_y,
op_pixels_func *pix_op,
int motion_x, int motion_y)
{
int dxy = 0;
int emu = 0;
... | false | FFmpeg | 9f0eaf792a8560a089643489403e549c30fb3170 | static inline int hpel_motion(MpegEncContext *s,
uint8_t *dest, uint8_t *src,
int src_x, int src_y,
op_pixels_func *pix_op,
int motion_x, int motion_y)
{
int dxy = 0;
int emu = 0;
... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext *VAR_0,
uint8_t *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4,
op_pixels_func *VAR_5,
int VAR_6, int VAR_7)
{
int VAR_8 = 0;
int VAR_9 = 0;
... | [
"static inline int FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4,\nop_pixels_func *VAR_5,\nint VAR_6, int VAR_7)\n{",
"int VAR_8 = 0;",
"int VAR_9 = 0;",
"VAR_3 += VAR_6 >> 1;",
"VAR_4 += VAR_7 >> 1;",
"VAR_3 = av_clip(VAR_3, -16, VAR_0->width);",
"if (VAR_3 != VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
43,
45
],
[
47,
49,
51,
53,
55
],
[
57
],
[
59
],
[... |
27,139 | static inline void downmix_dualmono_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += samples[i + 256];
samples[i + 256] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_dualmono_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += samples[i + 256];
samples[i + 256] = 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 + 256] = 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 + 256] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
27,140 | SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, DriveInfo *dinfo, int unit)
{
const char *driver;
DeviceState *dev;
driver = bdrv_is_sg(dinfo->bdrv) ? "scsi-generic" : "scsi-disk";
dev = qdev_create(&bus->qbus, driver);
qdev_prop_set_uint32(dev, "scsi-id", unit);
qdev_prop_set_drive... | true | qemu | 33e66b86d89040f0a9e99aa53deb74ce8936a649 | SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, DriveInfo *dinfo, int unit)
{
const char *driver;
DeviceState *dev;
driver = bdrv_is_sg(dinfo->bdrv) ? "scsi-generic" : "scsi-disk";
dev = qdev_create(&bus->qbus, driver);
qdev_prop_set_uint32(dev, "scsi-id", unit);
qdev_prop_set_drive... | {
"code": [
" qdev_init(dev);"
],
"line_no": [
19
]
} | SCSIDevice *FUNC_0(SCSIBus *bus, DriveInfo *dinfo, int unit)
{
const char *VAR_0;
DeviceState *dev;
VAR_0 = bdrv_is_sg(dinfo->bdrv) ? "scsi-generic" : "scsi-disk";
dev = qdev_create(&bus->qbus, VAR_0);
qdev_prop_set_uint32(dev, "scsi-id", unit);
qdev_prop_set_drive(dev, "drive", dinfo);... | [
"SCSIDevice *FUNC_0(SCSIBus *bus, DriveInfo *dinfo, int unit)\n{",
"const char *VAR_0;",
"DeviceState *dev;",
"VAR_0 = bdrv_is_sg(dinfo->bdrv) ? \"scsi-generic\" : \"scsi-disk\";",
"dev = qdev_create(&bus->qbus, VAR_0);",
"qdev_prop_set_uint32(dev, \"scsi-id\", unit);",
"qdev_prop_set_drive(dev, \"drive... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
27,141 | static int film_read_close(AVFormatContext *s)
{
FilmDemuxContext *film = s->priv_data;
av_free(film->sample_table);
av_free(film->stereo_buffer);
return 0;
}
| true | FFmpeg | 6892d145a0c80249bd61ee7dd31ec851c5076bcd | static int film_read_close(AVFormatContext *s)
{
FilmDemuxContext *film = s->priv_data;
av_free(film->sample_table);
av_free(film->stereo_buffer);
return 0;
}
| {
"code": [
"static int film_read_close(AVFormatContext *s)",
" FilmDemuxContext *film = s->priv_data;",
" av_free(film->sample_table);",
" av_free(film->stereo_buffer);",
" return 0;"
],
"line_no": [
1,
5,
9,
11,
15
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
FilmDemuxContext *film = VAR_0->priv_data;
av_free(film->sample_table);
av_free(film->stereo_buffer);
return 0;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"FilmDemuxContext *film = VAR_0->priv_data;",
"av_free(film->sample_table);",
"av_free(film->stereo_buffer);",
"return 0;",
"}"
] | [
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
27,143 | static av_cold int libschroedinger_decode_init(AVCodecContext *avctx)
{
SchroDecoderParams *p_schro_params = avctx->priv_data;
/* First of all, initialize our supporting libraries. */
schro_init();
schro_debug_set_level(avctx->debug);
p_schro_params->decoder = schro_decoder_new();
sch... | true | FFmpeg | 220b24c7c97dc033ceab1510549f66d0e7b52ef1 | static av_cold int libschroedinger_decode_init(AVCodecContext *avctx)
{
SchroDecoderParams *p_schro_params = avctx->priv_data;
schro_init();
schro_debug_set_level(avctx->debug);
p_schro_params->decoder = schro_decoder_new();
schro_decoder_set_skip_ratio(p_schro_params->decoder, 1);
... | {
"code": [
" return -1;",
" return 0;",
"static av_cold int libschroedinger_decode_init(AVCodecContext *avctx)",
" SchroDecoderParams *p_schro_params = avctx->priv_data;",
" schro_init();",
" schro_debug_set_level(avctx->debug);",
" p_schro_params->decoder = schro_de... | static av_cold int FUNC_0(AVCodecContext *avctx)
{
SchroDecoderParams *p_schro_params = avctx->priv_data;
schro_init();
schro_debug_set_level(avctx->debug);
p_schro_params->decoder = schro_decoder_new();
schro_decoder_set_skip_ratio(p_schro_params->decoder, 1);
if (!p_schro_pa... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"SchroDecoderParams *p_schro_params = avctx->priv_data;",
"schro_init();",
"schro_debug_set_level(avctx->debug);",
"p_schro_params->decoder = schro_decoder_new();",
"schro_decoder_set_skip_ratio(p_schro_params->decoder, 1);",
"if (!p_schro_params->d... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
31
],
[
33
],
[
35
]
] |
27,144 | static void update_stream_timings(AVFormatContext *ic)
{
int64_t start_time, start_time1, start_time_text, end_time, end_time1;
int64_t duration, duration1, filesize;
int i;
AVStream *st;
AVProgram *p;
start_time = INT64_MAX;
start_time_text = INT64_MAX;
end_time = INT64_MIN;
... | true | FFmpeg | 7992bdbeb4ba72a9d28e72acc2b3bc0d198401ec | static void update_stream_timings(AVFormatContext *ic)
{
int64_t start_time, start_time1, start_time_text, end_time, end_time1;
int64_t duration, duration1, filesize;
int i;
AVStream *st;
AVProgram *p;
start_time = INT64_MAX;
start_time_text = INT64_MAX;
end_time = INT64_MIN;
... | {
"code": [
" ic->bit_rate = (double)filesize * 8.0 * AV_TIME_BASE /"
],
"line_no": [
125
]
} | static void FUNC_0(AVFormatContext *VAR_0)
{
int64_t start_time, start_time1, start_time_text, end_time, end_time1;
int64_t duration, duration1, filesize;
int VAR_1;
AVStream *st;
AVProgram *p;
start_time = INT64_MAX;
start_time_text = INT64_MAX;
end_time = INT64_MIN;
dur... | [
"static void FUNC_0(AVFormatContext *VAR_0)\n{",
"int64_t start_time, start_time1, start_time_text, end_time, end_time1;",
"int64_t duration, duration1, filesize;",
"int VAR_1;",
"AVStream *st;",
"AVProgram *p;",
"start_time = INT64_MAX;",
"start_time_text = INT64_MAX;",
"end_time = INT64_MIN;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[... |
27,145 | static int sd_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
int ret, fd;
uint32_t vid = 0;
BDRVSheepdogState *s = bs->opaque;
char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];
uint32_t snapid;
char *buf = NULL;
QemuOpts *opts;
Error *... | true | qemu | 36bcac16fdd6ecb75314db06171f54dcd400ab8c | static int sd_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
int ret, fd;
uint32_t vid = 0;
BDRVSheepdogState *s = bs->opaque;
char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];
uint32_t snapid;
char *buf = NULL;
QemuOpts *opts;
Error *... | {
"code": [
" ret = -EINVAL;",
" ret = -EINVAL;",
" ret = -EINVAL;",
" ret = -EINVAL;",
" return ret;",
" return ret;",
" ret = sd_parse_uri(s, filename, vdi, &snapid, tag);",
" ret = parse_vdiname(s, filename, vdi, &snapid, tag);",
"... | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
int VAR_4, VAR_5;
uint32_t vid = 0;
BDRVSheepdogState *s = VAR_0->opaque;
char VAR_6[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];
uint32_t snapid;
char *VAR_7 = NULL;
QemuOpts *opts;... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"int VAR_4, VAR_5;",
"uint32_t vid = 0;",
"BDRVSheepdogState *s = VAR_0->opaque;",
"char VAR_6[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];",
"uint32_t snapid;",
"char *VAR_7 = NULL;",
"QemuOpts *opts;",
"Error *l... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
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... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
27,146 | static void pixel_format_message (VncState *vs) {
char pad[3] = { 0, 0, 0 };
vnc_write_u8(vs, vs->depth * 8); /* bits-per-pixel */
if (vs->depth == 4) vnc_write_u8(vs, 24); /* depth */
else vnc_write_u8(vs, vs->depth * 8); /* depth */
#ifdef WORDS_BIGENDIAN
vnc_write_u8(vs, 1); ... | true | qemu | 6cec5487990bf3f1f22b3fcb871978255e92ae0d | static void pixel_format_message (VncState *vs) {
char pad[3] = { 0, 0, 0 };
vnc_write_u8(vs, vs->depth * 8);
if (vs->depth == 4) vnc_write_u8(vs, 24);
else vnc_write_u8(vs, vs->depth * 8);
#ifdef WORDS_BIGENDIAN
vnc_write_u8(vs, 1);
#else
vnc_write_u8(vs, 0); ... | {
"code": [
" if (vs->depth == 4) {",
" } else if (vs->depth == 2) {",
" } else if (vs->depth == 1) {",
"#ifdef WORDS_BIGENDIAN",
"#else",
"#endif",
" vs->send_hextile_tile = send_hextile_tile_32;",
" vs->send_hextile_tile = send_hextile_tile_16;",
" v... | static void FUNC_0 (VncState *VAR_0) {
char VAR_1[3] = { 0, 0, 0 };
vnc_write_u8(VAR_0, VAR_0->depth * 8);
if (VAR_0->depth == 4) vnc_write_u8(VAR_0, 24);
else vnc_write_u8(VAR_0, VAR_0->depth * 8);
#ifdef WORDS_BIGENDIAN
vnc_write_u8(VAR_0, 1);
#else
vnc_write_u8(VAR... | [
"static void FUNC_0 (VncState *VAR_0) {",
"char VAR_1[3] = { 0, 0, 0 };",
"vnc_write_u8(VAR_0, VAR_0->depth * 8);",
"if (VAR_0->depth == 4) vnc_write_u8(VAR_0, 24);",
"else vnc_write_u8(VAR_0, VAR_0->depth * 8);",
"#ifdef WORDS_BIGENDIAN\nvnc_write_u8(VAR_0, 1);",
"#else\nvnc_write_u8(VAR_0, 0);",
"#e... | [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
27,147 | static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int header_size, hscale, vscale, i, j, k, l, m, ret;
int width = s->avctx->width;
int height = s->avctx->height;
s->keyframe = !(buf[0] & 1);
s->profile = (buf[0]>>1) & 7;
... | true | FFmpeg | 4d87001096ff1d4e3ee6f88f8caddbd8ccb2c816 | static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int header_size, hscale, vscale, i, j, k, l, m, ret;
int width = s->avctx->width;
int height = s->avctx->height;
s->keyframe = !(buf[0] & 1);
s->profile = (buf[0]>>1) & 7;
... | {
"code": [
" width != s->avctx->width || height != s->avctx->height) {"
],
"line_no": [
109
]
} | static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
VP56RangeCoder *c = &VAR_0->c;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12 = VAR_0->avctx->VAR_12;
int VAR_13 = VAR_0->avctx->VAR_13;
VAR_0->keyframe = !(VAR_1[0] & 1);
VAR_0->p... | [
"static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"VP56RangeCoder *c = &VAR_0->c;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12 = VAR_0->avctx->VAR_12;",
"int VAR_13 = VAR_0->avctx->VAR_13;",
"VAR_0->keyframe = !(VAR_1[0] & 1);",
"VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35,
37
],
[
39,
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
27,149 | static int load_refcount_block(BlockDriverState *bs,
int64_t refcount_block_offset)
{
BDRVQcowState *s = bs->opaque;
int ret;
if (cache_refcount_updates) {
ret = write_refcount_block(bs);
if (ret < 0) {
return ret;
}
}
... | true | qemu | 1c02e2a17104fe7fc11893125864dc0daf1e6d5b | static int load_refcount_block(BlockDriverState *bs,
int64_t refcount_block_offset)
{
BDRVQcowState *s = bs->opaque;
int ret;
if (cache_refcount_updates) {
ret = write_refcount_block(bs);
if (ret < 0) {
return ret;
}
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
int64_t VAR_1)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_2;
if (cache_refcount_updates) {
VAR_2 = write_refcount_block(VAR_0);
if (VAR_2 < 0) {
return VAR_2;
}
}
BLKDBG_EVEN... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_2;",
"if (cache_refcount_updates) {",
"VAR_2 = write_refcount_block(VAR_0);",
"if (VAR_2 < 0) {",
"return VAR_2;",
"}",
"}",
"BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_LOAD);",
"VAR_2 =... | [
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
],
[
27
],
[
29,
31
],
[
33
],
[
36
],
[
38
],
[
42
],
[
44
],
[
46
]
] |
27,150 | void qemu_coroutine_enter(Coroutine *co, void *opaque)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_coroutine_enter(self, co, opaque);
if (co->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
abort();
}
co->caller = se... | true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | void qemu_coroutine_enter(Coroutine *co, void *opaque)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_coroutine_enter(self, co, opaque);
if (co->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
abort();
}
co->caller = se... | {
"code": [
"void qemu_coroutine_enter(Coroutine *co, void *opaque)",
" trace_qemu_coroutine_enter(self, co, opaque);",
" co->entry_arg = opaque;"
],
"line_no": [
1,
11,
27
]
} | void FUNC_0(Coroutine *VAR_0, void *VAR_1)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_coroutine_enter(self, VAR_0, VAR_1);
if (VAR_0->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
abort();
}
VAR_0->caller = self;
... | [
"void FUNC_0(Coroutine *VAR_0, void *VAR_1)\n{",
"Coroutine *self = qemu_coroutine_self();",
"CoroutineAction ret;",
"trace_qemu_coroutine_enter(self, VAR_0, VAR_1);",
"if (VAR_0->caller) {",
"fprintf(stderr, \"Co-routine re-entered recursively\\n\");",
"abort();",
"}",
"VAR_0->caller = self;",
"V... | [
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[
51,
53
],
... |
27,152 | static int imc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
int ret, i;
IMCContext *q = avctx->priv_data;
LOCAL_ALIGNED_16(ui... | true | FFmpeg | 7444cf9a9c0b8b2bba8198af2823521c654a48f4 | static int imc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
int ret, i;
IMCContext *q = avctx->priv_data;
LOCAL_ALIGNED_16(ui... | {
"code": [
" LOCAL_ALIGNED_16(uint16_t, buf16, [IMC_BLOCK_SIZE / 2]);"
],
"line_no": [
21
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
int VAR_6, VAR_7;
IMCContext *q = VAR_0->priv_data;
LOCAL_ALIGNED_16(uint16_t, bu... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"int VAR_6, VAR_7;",
"IMCContext *q = VAR_0->priv_data;",
"LOCAL_ALIGNED_16(uint16_t, buf16, [IMC_BLOCK_SIZE / 2]);... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[
51
],
[
55
],
[
59
],
[
63,... |
27,153 | int init_vlc(VLC *vlc, int nb_bits, int nb_codes,
const void *bits, int bits_wrap, int bits_size,
const void *codes, int codes_wrap, int codes_size)
{
vlc->bits = nb_bits;
vlc->table = NULL;
vlc->table_allocated = 0;
vlc->table_size = 0;
#ifdef DEBUG_VLC
printf("bu... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | int init_vlc(VLC *vlc, int nb_bits, int nb_codes,
const void *bits, int bits_wrap, int bits_size,
const void *codes, int codes_wrap, int codes_size)
{
vlc->bits = nb_bits;
vlc->table = NULL;
vlc->table_allocated = 0;
vlc->table_size = 0;
#ifdef DEBUG_VLC
printf("bu... | {
"code": [
" const void *codes, int codes_wrap, int codes_size)",
" vlc->table = NULL;",
" vlc->table_allocated = 0;",
" vlc->table_size = 0;",
" 0, 0) < 0) {"
],
"line_no": [
5,
11,
13,
15,
31
]
} | int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2,
const void *VAR_3, int VAR_4, int VAR_5,
const void *VAR_6, int VAR_7, int VAR_8)
{
VAR_0->VAR_3 = VAR_1;
VAR_0->table = NULL;
VAR_0->table_allocated = 0;
VAR_0->table_size = 0;
#ifdef DEBUG_VLC
printf("build table VAR_2... | [
"int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2,\nconst void *VAR_3, int VAR_4, int VAR_5,\nconst void *VAR_6, int VAR_7, int VAR_8)\n{",
"VAR_0->VAR_3 = VAR_1;",
"VAR_0->table = NULL;",
"VAR_0->table_allocated = 0;",
"VAR_0->table_size = 0;",
"#ifdef DEBUG_VLC\nprintf(\"build table VAR_2=%d\\n\", VAR_2);",
... | [
1,
0,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
21,
25,
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
27,154 | static void filter(AVFilterContext *ctx)
{
IDETContext *idet = ctx->priv;
int y, i;
int64_t alpha[2]={0};
int64_t delta=0;
Type type, best_type;
int match = 0;
for (i = 0; i < idet->csp->nb_components; i++) {
int w = idet->cur->video->w;
int h = idet->cur->video->... | true | FFmpeg | 31fdf3065daceb31e12fd26a367445676d761180 | static void filter(AVFilterContext *ctx)
{
IDETContext *idet = ctx->priv;
int y, i;
int64_t alpha[2]={0};
int64_t delta=0;
Type type, best_type;
int match = 0;
for (i = 0; i < idet->csp->nb_components; i++) {
int w = idet->cur->video->w;
int h = idet->cur->video->... | {
"code": [
" if (alpha[0] / (float)alpha[1] > idet->interlace_threshold){",
" }else if(alpha[1] / (float)alpha[0] > idet->interlace_threshold){",
" }else if(alpha[1] / (float)delta > idet->progressive_threshold){"
],
"line_no": [
59,
63,
67
]
} | static void FUNC_0(AVFilterContext *VAR_0)
{
IDETContext *idet = VAR_0->priv;
int VAR_1, VAR_2;
int64_t alpha[2]={0};
int64_t delta=0;
Type type, best_type;
int VAR_3 = 0;
for (VAR_2 = 0; VAR_2 < idet->csp->nb_components; VAR_2++) {
int w = idet->cur->video->w;
in... | [
"static void FUNC_0(AVFilterContext *VAR_0)\n{",
"IDETContext *idet = VAR_0->priv;",
"int VAR_1, VAR_2;",
"int64_t alpha[2]={0};",
"int64_t delta=0;",
"Type type, best_type;",
"int VAR_3 = 0;",
"for (VAR_2 = 0; VAR_2 < idet->csp->nb_components; VAR_2++) {",
"int w = idet->cur->video->w;",
"int h =... | [
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,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
27,155 | static void div64(uint64_t *plow, uint64_t *phigh, uint64_t b)
{
uint64_t q, r, a1, a0;
int i, qb;
a0 = *plow;
a1 = *phigh;
if (a1 == 0) {
q = a0 / b;
r = a0 % b;
*plow = q;
*phigh = r;
} else {
/* XXX: use a better algorithm */
for(... | true | qemu | 45bbbb466cf4a6280076ea5a51f67ef5bedee345 | static void div64(uint64_t *plow, uint64_t *phigh, uint64_t b)
{
uint64_t q, r, a1, a0;
int i, qb;
a0 = *plow;
a1 = *phigh;
if (a1 == 0) {
q = a0 / b;
r = a0 % b;
*plow = q;
*phigh = r;
} else {
for(i = 0; i < 64; i++) {
... | {
"code": [
"static void div64(uint64_t *plow, uint64_t *phigh, uint64_t b)"
],
"line_no": [
1
]
} | static void FUNC_0(uint64_t *VAR_0, uint64_t *VAR_1, uint64_t VAR_2)
{
uint64_t q, r, a1, a0;
int VAR_3, VAR_4;
a0 = *VAR_0;
a1 = *VAR_1;
if (a1 == 0) {
q = a0 / VAR_2;
r = a0 % VAR_2;
*VAR_0 = q;
*VAR_1 = r;
} else {
for(VAR_3 = 0;... | [
"static void FUNC_0(uint64_t *VAR_0, uint64_t *VAR_1, uint64_t VAR_2)\n{",
"uint64_t q, r, a1, a0;",
"int VAR_3, VAR_4;",
"a0 = *VAR_0;",
"a1 = *VAR_1;",
"if (a1 == 0) {",
"q = a0 / VAR_2;",
"r = a0 % VAR_2;",
"*VAR_0 = q;",
"*VAR_1 = r;",
"} else {",
"for(VAR_3 = 0; VAR_3 < 64; VAR_3++) {",
... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
27,156 | static float get_band_cost_UPAIR12_mips(struct AACEncContext *s,
PutBitContext *pb, const float *in,
const float *scaled, int size, int scale_idx,
int cb, const float lambda, const float uplim,
... | true | FFmpeg | 01ecb7172b684f1c4b3e748f95c5a9a494ca36ec | static float get_band_cost_UPAIR12_mips(struct AACEncContext *s,
PutBitContext *pb, const float *in,
const float *scaled, int size, int scale_idx,
int cb, const float lambda, const float uplim,
... | {
"code": [
" int *bits)"
],
"line_no": [
9
]
} | static float FUNC_0(struct AACEncContext *VAR_0,
PutBitContext *VAR_1, const float *VAR_2,
const float *VAR_3, int VAR_4, int VAR_5,
int VAR_6, const float VAR_7, const float VAR_8,
... | [
"static float FUNC_0(struct AACEncContext *VAR_0,\nPutBitContext *VAR_1, const float *VAR_2,\nconst float *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, const float VAR_7, const float VAR_8,\nint *VAR_9)\n{",
"const float VAR_10 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_5 + SCALE_ONE_POS - SCALE_DIV_512];",
"const flo... | [
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
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
27,157 | static int libopenjpeg_copy_unpacked16(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image)
{
int compno;
int x;
int y;
int width;
int height;
int *image_line;
int frame_index;
const int numcomps = image->numcomps;
uint16_t *frame_ptr;
for (compno = 0; co... | true | FFmpeg | 56706ac0d5723cb549fec2602e798ab1bf6004cd | static int libopenjpeg_copy_unpacked16(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image)
{
int compno;
int x;
int y;
int width;
int height;
int *image_line;
int frame_index;
const int numcomps = image->numcomps;
uint16_t *frame_ptr;
for (compno = 0; co... | {
"code": [
" image_line[x] = image_line[x - image->comps[compno].w];",
" image_line[x] = image_line[x - image->comps[compno].w];",
" image_line[x] = image_line[x - image->comps[compno].w];",
" image_line[x] = image_line[x - image->comps[comp... | static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2)
{
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
int VAR_7;
int *VAR_8;
int VAR_9;
const int VAR_10 = VAR_2->VAR_10;
uint16_t *frame_ptr;
for (VAR_3 = 0; VAR_3 < VAR_10; ++VAR_3) {
... | [
"static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2)\n{",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"int *VAR_8;",
"int VAR_9;",
"const int VAR_10 = VAR_2->VAR_10;",
"uint16_t *frame_ptr;",
"for (VAR_3 = 0; VAR_3 < VAR_10; ++VAR_3) {",
... | [
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,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
27,158 | inline static void RENAME(hcscale)(uint16_t *dst, int 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 | 7f526efd17973ec6d2204f7a47b6923e2be31363 | inline static void RENAME(hcscale)(uint16_t *dst, int 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": [
"inline static void RENAME(hcscale)(uint16_t *dst, int dstWidth, uint8_t *src1, uint8_t *src2,"
],
"line_no": [
1
]
} | inline static void FUNC_0(hcscale)(uint16_t *dst, int 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, int 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 *mmx2FilterP... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
27,159 | static int tak_read_header(AVFormatContext *s)
{
TAKDemuxContext *tc = s->priv_data;
AVIOContext *pb = s->pb;
GetBitContext gb;
AVStream *st;
uint8_t *buffer = NULL;
int ret;
st = avformat_new_stream(s, 0);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_... | true | FFmpeg | 243b9fea90aade8cf8197fb8f362ccc03c7f6295 | static int tak_read_header(AVFormatContext *s)
{
TAKDemuxContext *tc = s->priv_data;
AVIOContext *pb = s->pb;
GetBitContext gb;
AVStream *st;
uint8_t *buffer = NULL;
int ret;
st = avformat_new_stream(s, 0);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
TAKDemuxContext *tc = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
GetBitContext gb;
AVStream *st;
uint8_t *buffer = NULL;
int VAR_1;
st = avformat_new_stream(VAR_0, 0);
if (!st)
return AVERROR(ENOMEM);
st->code... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"TAKDemuxContext *tc = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"GetBitContext gb;",
"AVStream *st;",
"uint8_t *buffer = NULL;",
"int VAR_1;",
"st = avformat_new_stream(VAR_0, 0);",
"if (!st)\nreturn AVERROR(ENOMEM);",
"st->codec->code... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
27,160 | static void cpu_pre_save(void *opaque)
{
CPUState *env = opaque;
int i;
cpu_synchronize_state(env);
/* FPU */
env->fpus_vmstate = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;
env->fptag_vmstate = 0;
for(i = 0; i < 8; i++) {
env->fptag_vmstate |= ((!env->fptags[i]) <... | true | qemu | ea375f9ab8c76686dca0af8cb4f87a4eb569cad3 | static void cpu_pre_save(void *opaque)
{
CPUState *env = opaque;
int i;
cpu_synchronize_state(env);
env->fpus_vmstate = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;
env->fptag_vmstate = 0;
for(i = 0; i < 8; i++) {
env->fptag_vmstate |= ((!env->fptags[i]) << i);
... | {
"code": [
" CPUState *env = opaque;",
" cpu_synchronize_state(env);",
" CPUState *env = opaque;",
" cpu_synchronize_state(env);",
" cpu_synchronize_state(env);",
" cpu_synchronize_state(env);",
" cpu_synchronize_state(env);",
" CPUState *env = opaque;",
" ... | static void FUNC_0(void *VAR_0)
{
CPUState *env = VAR_0;
int VAR_1;
cpu_synchronize_state(env);
env->fpus_vmstate = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;
env->fptag_vmstate = 0;
for(VAR_1 = 0; VAR_1 < 8; VAR_1++) {
env->fptag_vmstate |= ((!env->fptags[VAR_1]... | [
"static void FUNC_0(void *VAR_0)\n{",
"CPUState *env = VAR_0;",
"int VAR_1;",
"cpu_synchronize_state(env);",
"env->fpus_vmstate = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;",
"env->fptag_vmstate = 0;",
"for(VAR_1 = 0; VAR_1 < 8; VAR_1++) {",
"env->fptag_vmstate |= ((!env->fptags[VAR_1]) << VAR_... | [
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
37,
39
]
] |
27,161 | static uint64_t ich_elrsr_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
GICv3CPUState *cs = icc_cs_from_env(env);
uint64_t value = 0;
int i;
for (i = 0; i < cs->num_list_regs; i++) {
uint64_t lr = cs->ich_lr_el2[i];
if ((lr & ICH_LR_EL2_STATE_MASK) == 0 &&
((lr... | true | qemu | d87576e38df760ef1cb635197d51f207e2a8eda9 | static uint64_t ich_elrsr_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
GICv3CPUState *cs = icc_cs_from_env(env);
uint64_t value = 0;
int i;
for (i = 0; i < cs->num_list_regs; i++) {
uint64_t lr = cs->ich_lr_el2[i];
if ((lr & ICH_LR_EL2_STATE_MASK) == 0 &&
((lr... | {
"code": [
" ((lr & ICH_LR_EL2_HW) == 1 || (lr & ICH_LR_EL2_EOI) == 0)) {"
],
"line_no": [
21
]
} | static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)
{
GICv3CPUState *cs = icc_cs_from_env(env);
uint64_t value = 0;
int VAR_0;
for (VAR_0 = 0; VAR_0 < cs->num_list_regs; VAR_0++) {
uint64_t lr = cs->ich_lr_el2[VAR_0];
if ((lr & ICH_LR_EL2_STATE_MASK) == 0 &&
... | [
"static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)\n{",
"GICv3CPUState *cs = icc_cs_from_env(env);",
"uint64_t value = 0;",
"int VAR_0;",
"for (VAR_0 = 0; VAR_0 < cs->num_list_regs; VAR_0++) {",
"uint64_t lr = cs->ich_lr_el2[VAR_0];",
"if ((lr & ICH_LR_EL2_STATE_MASK) == 0 &&\n((lr & ICH_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
27,162 | static int mp_user_removexattr(FsContext *ctx,
const char *path, const char *name)
{
char *buffer;
int ret;
if (strncmp(name, "user.virtfs.", 12) == 0) {
/*
* Don't allow fetch of user.virtfs namesapce
* in case of mapped security
... | true | qemu | 72f0d0bf51362011c4d841a89fb8f5cfb16e0bf3 | static int mp_user_removexattr(FsContext *ctx,
const char *path, const char *name)
{
char *buffer;
int ret;
if (strncmp(name, "user.virtfs.", 12) == 0) {
errno = EACCES;
return -1;
}
buffer = rpath(ctx, path);
ret = lremo... | {
"code": [
" char *buffer;",
" buffer = rpath(ctx, path);",
" g_free(buffer);",
" char *buffer;",
" buffer = rpath(ctx, path);",
" g_free(buffer);",
" char *buffer;",
" int ret;",
" buffer = rpath(ctx, path);",
" ret = lremovexattr(buffer, name);"... | static int FUNC_0(FsContext *VAR_0,
const char *VAR_1, const char *VAR_2)
{
char *VAR_3;
int VAR_4;
if (strncmp(VAR_2, "user.virtfs.", 12) == 0) {
errno = EACCES;
return -1;
}
VAR_3 = rpath(VAR_0, VAR_1);
VAR_4 = lremovex... | [
"static int FUNC_0(FsContext *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{",
"char *VAR_3;",
"int VAR_4;",
"if (strncmp(VAR_2, \"user.virtfs.\", 12) == 0) {",
"errno = EACCES;",
"return -1;",
"}",
"VAR_3 = rpath(VAR_0, VAR_1);",
"VAR_4 = lremovexattr(VAR_3, VAR_2);",
"g_free(VAR_3);",
"retur... | [
0,
1,
1,
0,
0,
0,
0,
1,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
27,163 | static int decode_subframe_fixed(FLACContext *s, int channel, int pred_order)
{
int i;
av_log(s->avctx, AV_LOG_DEBUG, " SUBFRAME FIXED\n");
/* warm up samples */
av_log(s->avctx, AV_LOG_DEBUG, " warm up samples: %d\n", pred_order);
for (i = 0; i < pred_order; i... | false | FFmpeg | 9d656110966fbdde0fd1d2e685f3ed3633ba3596 | static int decode_subframe_fixed(FLACContext *s, int channel, int pred_order)
{
int i;
av_log(s->avctx, AV_LOG_DEBUG, " SUBFRAME FIXED\n");
av_log(s->avctx, AV_LOG_DEBUG, " warm up samples: %d\n", pred_order);
for (i = 0; i < pred_order; i++)
{
s... | {
"code": [],
"line_no": []
} | static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
av_log(VAR_0->avctx, AV_LOG_DEBUG, " SUBFRAME FIXED\n");
av_log(VAR_0->avctx, AV_LOG_DEBUG, " warm up samples: %d\n", VAR_2);
for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)
{
VAR_0... | [
"static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"av_log(VAR_0->avctx, AV_LOG_DEBUG, \" SUBFRAME FIXED\\n\");",
"av_log(VAR_0->avctx, AV_LOG_DEBUG, \" warm up samples: %d\\n\", VAR_2);",
"for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)",
"{",
"VAR_0->decoded[VAR_1][VAR_3] = get... | [
0,
0,
0,
0,
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
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31,
33
],
[
37,
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51
],
[
53,
55
],
[
57,
59
],
[
61... |
27,165 | static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
AACEncContext *s = avctx->priv_data;
float **samples = s->planar_samples, *samples2, *la, *overlap;
ChannelElement *cpe;
SingleChannelElement *sce;
Indi... | false | FFmpeg | 0634c5425306547e593bedbbbd2d982d7f0a27cf | static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
AACEncContext *s = avctx->priv_data;
float **samples = s->planar_samples, *samples2, *la, *overlap;
ChannelElement *cpe;
SingleChannelElement *sce;
Indi... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
AACEncContext *s = VAR_0->priv_data;
float **VAR_4 = s->planar_samples, *VAR_5, *VAR_6, *VAR_7;
ChannelElement *cpe;
SingleChannelElement *sce;
IndividualChannelStream *ic... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"AACEncContext *s = VAR_0->priv_data;",
"float **VAR_4 = s->planar_samples, *VAR_5, *VAR_6, *VAR_7;",
"ChannelElement *cpe;",
"SingleChannelElement *sce;",
"IndividualChannelStream *ics;",
"int VAR_8, 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
],
[
23
],
[
25
],
[
29,
31
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49,
51
],
[
55,... |
27,166 | void virtio_config_writel(VirtIODevice *vdev, uint32_t addr, uint32_t data)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);
uint32_t val = data;
if (addr > (vdev->config_len - sizeof(val)))
return;
stl_p(vdev->config + addr, val);
if (k->set_config) {
k->set_con... | true | qemu | 5f5a1318653c08e435cfa52f60b6a712815b659d | void virtio_config_writel(VirtIODevice *vdev, uint32_t addr, uint32_t data)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);
uint32_t val = data;
if (addr > (vdev->config_len - sizeof(val)))
return;
stl_p(vdev->config + addr, val);
if (k->set_config) {
k->set_con... | {
"code": [
" if (addr > (vdev->config_len - sizeof(val)))",
" if (addr > (vdev->config_len - sizeof(val)))",
" if (addr > (vdev->config_len - sizeof(val)))",
" if (addr > (vdev->config_len - sizeof(val)))",
" if (addr > (vdev->config_len - sizeof(val)))",
" if (addr > (vdev-... | void FUNC_0(VirtIODevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(VAR_0);
uint32_t val = VAR_2;
if (VAR_1 > (VAR_0->config_len - sizeof(val)))
return;
stl_p(VAR_0->config + VAR_1, val);
if (k->set_config) {
k->set_config(V... | [
"void FUNC_0(VirtIODevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(VAR_0);",
"uint32_t val = VAR_2;",
"if (VAR_1 > (VAR_0->config_len - sizeof(val)))\nreturn;",
"stl_p(VAR_0->config + VAR_1, val);",
"if (k->set_config) {",
"k->set_config(VAR_0, VAR_0->... | [
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
27,167 | int bdrv_open_image(BlockDriverState **pbs, const char *filename,
QDict *options, const char *bdref_key, int flags,
bool allow_none, Error **errp)
{
QDict *image_options;
int ret;
char *bdref_key_dot;
const char *reference;
assert(pbs);
assert(*... | true | qemu | b20e61e0d52eef57cf5db55087b16e0b5207e730 | int bdrv_open_image(BlockDriverState **pbs, const char *filename,
QDict *options, const char *bdref_key, int flags,
bool allow_none, Error **errp)
{
QDict *image_options;
int ret;
char *bdref_key_dot;
const char *reference;
assert(pbs);
assert(*... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState **VAR_0, const char *VAR_1,
QDict *VAR_2, const char *VAR_3, int VAR_4,
bool VAR_5, Error **VAR_6)
{
QDict *image_options;
int VAR_7;
char *VAR_8;
const char *VAR_9;
assert(VAR_0);
assert(*VAR_0 == NULL);
VAR_8... | [
"int FUNC_0(BlockDriverState **VAR_0, const char *VAR_1,\nQDict *VAR_2, const char *VAR_3, int VAR_4,\nbool VAR_5, Error **VAR_6)\n{",
"QDict *image_options;",
"int VAR_7;",
"char *VAR_8;",
"const char *VAR_9;",
"assert(VAR_0);",
"assert(*VAR_0 == NULL);",
"VAR_8 = g_strdup_printf(\"%s.\", VAR_3);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
27,168 | static void musb_packet(MUSBState *s, MUSBEndPoint *ep,
int epnum, int pid, int len, USBCallback cb, int dir)
{
int ret;
int idx = epnum && dir;
int ttype;
/* ep->type[0,1] contains:
* in bits 7:6 the speed (0 - invalid, 1 - high, 2 - full, 3 - slow)
* in bits 5:4 the... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static void musb_packet(MUSBState *s, MUSBEndPoint *ep,
int epnum, int pid, int len, USBCallback cb, int dir)
{
int ret;
int idx = epnum && dir;
int ttype;
ttype = epnum ? (ep->type[idx] >> 4) & 3 : 0;
ep->timeout[dir] = musb_timeout(ttype,
... | {
"code": [
" ep->packey[dir].p.pid = pid;",
" ep->packey[dir].p.devaddr = ep->faddr[idx];",
" ep->packey[dir].p.devep = ep->type[idx] & 0xf;",
" ep->packey[dir].p.data = (void *) ep->buf[idx];",
" ep->packey[dir].p.len = len;"
],
"line_no": [
39,
43,
45,
47,
... | static void FUNC_0(MUSBState *VAR_0, MUSBEndPoint *VAR_1,
int VAR_2, int VAR_3, int VAR_4, USBCallback VAR_5, int VAR_6)
{
int VAR_7;
int VAR_8 = VAR_2 && VAR_6;
int VAR_9;
VAR_9 = VAR_2 ? (VAR_1->type[VAR_8] >> 4) & 3 : 0;
VAR_1->timeout[VAR_6] = musb_timeou... | [
"static void FUNC_0(MUSBState *VAR_0, MUSBEndPoint *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, USBCallback VAR_5, int VAR_6)\n{",
"int VAR_7;",
"int VAR_8 = VAR_2 && VAR_6;",
"int VAR_9;",
"VAR_9 = VAR_2 ? (VAR_1->type[VAR_8] >> 4) & 3 : 0;",
"VAR_1->timeout[VAR_6] = musb_timeout(VAR_9,\nVAR_1->type[VAR_8] ... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57,
59
],
[
61,
63
],
[
67
... |
27,170 | bool st_set_trace_file(const char *file)
{
st_set_trace_file_enabled(false);
free(trace_file_name);
if (!file) {
if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {
trace_file_name = NULL;
return false;
}
} else {
if (asprintf(... | true | qemu | 0b5538c300a56c3cfb33022840fe0b4968147e7a | bool st_set_trace_file(const char *file)
{
st_set_trace_file_enabled(false);
free(trace_file_name);
if (!file) {
if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {
trace_file_name = NULL;
return false;
}
} else {
if (asprintf(... | {
"code": [
"bool st_set_trace_file(const char *file)",
" st_set_trace_file_enabled(false);",
" free(trace_file_name);",
" if (!file) {",
" if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {",
" trace_file_name = NULL;",
" return false;... | bool FUNC_0(const char *file)
{
st_set_trace_file_enabled(false);
free(trace_file_name);
if (!file) {
if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {
trace_file_name = NULL;
return false;
}
} else {
if (asprintf(&trace_file... | [
"bool FUNC_0(const char *file)\n{",
"st_set_trace_file_enabled(false);",
"free(trace_file_name);",
"if (!file) {",
"if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {",
"trace_file_name = NULL;",
"return false;",
"}",
"} else {",
"if (asprintf(&trace_file_name, \"%s\", file) < 0) {... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
]
] |
27,172 | static int kvm_client_migration_log(struct CPUPhysMemoryClient *client,
int enable)
{
return kvm_set_migration_log(enable);
}
| true | qemu | a01672d3968cf91208666d371784110bfde9d4f8 | static int kvm_client_migration_log(struct CPUPhysMemoryClient *client,
int enable)
{
return kvm_set_migration_log(enable);
}
| {
"code": [
"static int kvm_client_migration_log(struct CPUPhysMemoryClient *client,",
" int enable)",
" return kvm_set_migration_log(enable);"
],
"line_no": [
1,
3,
7
]
} | static int FUNC_0(struct CPUPhysMemoryClient *VAR_0,
int VAR_1)
{
return kvm_set_migration_log(VAR_1);
}
| [
"static int FUNC_0(struct CPUPhysMemoryClient *VAR_0,\nint VAR_1)\n{",
"return kvm_set_migration_log(VAR_1);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
27,173 | static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
int index, AVClass *log_ctx)
{
char *opts = NULL;
char *name = consume_string(buf);
if(**buf == '=') {
(*buf)++;
opts = consume_string(buf);
}
return create_... | true | FFmpeg | 64b164f44abc232dbb125b36e2d00b54e1531ba7 | static AVFilterContext *parse_filter(const char **buf, AVFilterGraph *graph,
int index, AVClass *log_ctx)
{
char *opts = NULL;
char *name = consume_string(buf);
if(**buf == '=') {
(*buf)++;
opts = consume_string(buf);
}
return create_... | {
"code": [
" return create_filter(graph, index, name, opts, log_ctx);"
],
"line_no": [
23
]
} | static AVFilterContext *FUNC_0(const char **buf, AVFilterGraph *graph,
int index, AVClass *log_ctx)
{
char *VAR_0 = NULL;
char *VAR_1 = consume_string(buf);
if(**buf == '=') {
(*buf)++;
VAR_0 = consume_string(buf);
}
return create_fil... | [
"static AVFilterContext *FUNC_0(const char **buf, AVFilterGraph *graph,\nint index, AVClass *log_ctx)\n{",
"char *VAR_0 = NULL;",
"char *VAR_1 = consume_string(buf);",
"if(**buf == '=') {",
"(*buf)++;",
"VAR_0 = consume_string(buf);",
"}",
"return create_filter(graph, index, VAR_1, VAR_0, log_ctx);",
... | [
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
27,174 | static AVCodec *AVCodecInitialize(enum AVCodecID codec_id)
{
AVCodec *res;
avcodec_register_all();
av_log_set_level(AV_LOG_PANIC);
res = avcodec_find_decoder(codec_id);
if (!res)
error("Failed to find decoder");
return res;
}
| true | FFmpeg | dec2fa8cc7089605d1d934d65dd2709cfe8aece2 | static AVCodec *AVCodecInitialize(enum AVCodecID codec_id)
{
AVCodec *res;
avcodec_register_all();
av_log_set_level(AV_LOG_PANIC);
res = avcodec_find_decoder(codec_id);
if (!res)
error("Failed to find decoder");
return res;
}
| {
"code": [
" avcodec_register_all();"
],
"line_no": [
7
]
} | static AVCodec *FUNC_0(enum AVCodecID codec_id)
{
AVCodec *res;
avcodec_register_all();
av_log_set_level(AV_LOG_PANIC);
res = avcodec_find_decoder(codec_id);
if (!res)
error("Failed to find decoder");
return res;
}
| [
"static AVCodec *FUNC_0(enum AVCodecID codec_id)\n{",
"AVCodec *res;",
"avcodec_register_all();",
"av_log_set_level(AV_LOG_PANIC);",
"res = avcodec_find_decoder(codec_id);",
"if (!res)\nerror(\"Failed to find decoder\");",
"return res;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
]
] |
27,175 | static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles,
GPollFD *fds, guint nfds, gint timeout)
{
DWORD ready;
GPollFD *f;
int recursed_result;
if (poll_msgs) {
/* Wait for either messages or handles
* -> Use MsgWaitForMultipleObjectsEx
... | false | qemu | 0ec7b534821c8b287317f97cd98ee3f908bd3839 | static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles,
GPollFD *fds, guint nfds, gint timeout)
{
DWORD ready;
GPollFD *f;
int recursed_result;
if (poll_msgs) {
ready = MsgWaitForMultipleObjectsEx(nhandles, handles, timeout,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(gboolean VAR_0, HANDLE *VAR_1, gint VAR_2,
GPollFD *VAR_3, guint VAR_4, gint VAR_5)
{
DWORD ready;
GPollFD *f;
int VAR_6;
if (VAR_0) {
ready = MsgWaitForMultipleObjectsEx(VAR_2, VAR_1, VAR_5,
... | [
"static int FUNC_0(gboolean VAR_0, HANDLE *VAR_1, gint VAR_2,\nGPollFD *VAR_3, guint VAR_4, gint VAR_5)\n{",
"DWORD ready;",
"GPollFD *f;",
"int VAR_6;",
"if (VAR_0) {",
"ready = MsgWaitForMultipleObjectsEx(VAR_2, VAR_1, VAR_5,\nQS_ALLINPUT, MWMO_ALERTABLE);",
"if (ready == WAIT_FAILED) {",
"gchar *em... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
27,176 | int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
{
/* Inject NMI */
if (env->interrupt_request & CPU_INTERRUPT_NMI) {
env->interrupt_request &= ~CPU_INTERRUPT_NMI;
DPRINTF("injected NMI\n");
kvm_vcpu_ioctl(env, KVM_NMI);
}
if (!kvm_irqchip_in_kernel()) {
... | false | qemu | 7a39fe588251ba042c91bf23d53b0ba820bf964c | int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
{
if (env->interrupt_request & CPU_INTERRUPT_NMI) {
env->interrupt_request &= ~CPU_INTERRUPT_NMI;
DPRINTF("injected NMI\n");
kvm_vcpu_ioctl(env, KVM_NMI);
}
if (!kvm_irqchip_in_kernel()) {
if (... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)
{
if (VAR_0->interrupt_request & CPU_INTERRUPT_NMI) {
VAR_0->interrupt_request &= ~CPU_INTERRUPT_NMI;
DPRINTF("injected NMI\n");
kvm_vcpu_ioctl(VAR_0, KVM_NMI);
}
if (!kvm_irqchip_in_kernel()) {
if (... | [
"int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{",
"if (VAR_0->interrupt_request & CPU_INTERRUPT_NMI) {",
"VAR_0->interrupt_request &= ~CPU_INTERRUPT_NMI;",
"DPRINTF(\"injected NMI\\n\");",
"kvm_vcpu_ioctl(VAR_0, KVM_NMI);",
"}",
"if (!kvm_irqchip_in_kernel()) {",
"if (VAR_0->interrupt_request &... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33,
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
57
],
[
59... |
27,177 | static void gen_msync(DisasContext *ctx)
{
/* interpreted as no-op */
}
| false | qemu | dcb2b9e1003a9179650b44c747faa4e5767ce92b | static void gen_msync(DisasContext *ctx)
{
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
}
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"}"
] | [
0,
0
] | [
[
1,
3
],
[
7
]
] |
27,178 | static void nvram_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
{
M48t59State *NVRAM = opaque;
m48t59_write(NVRAM, addr, value & 0xff);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void nvram_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
{
M48t59State *NVRAM = opaque;
m48t59_write(NVRAM, addr, value & 0xff);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{
M48t59State *NVRAM = VAR_0;
m48t59_write(NVRAM, VAR_1, VAR_2 & 0xff);
}
| [
"static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{",
"M48t59State *NVRAM = VAR_0;",
"m48t59_write(NVRAM, VAR_1, VAR_2 & 0xff);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
27,179 | static int json_lexer_feed_char(JSONLexer *lexer, char ch, bool flush)
{
int char_consumed, new_state;
lexer->x++;
if (ch == '\n') {
lexer->x = 0;
lexer->y++;
}
do {
new_state = json_lexer[lexer->state][(uint8_t)ch];
char_consumed = !TERMINAL_NEEDED_LOOK... | false | qemu | b011f61931f0113b29b7cd7e921dd022e0b04834 | static int json_lexer_feed_char(JSONLexer *lexer, char ch, bool flush)
{
int char_consumed, new_state;
lexer->x++;
if (ch == '\n') {
lexer->x = 0;
lexer->y++;
}
do {
new_state = json_lexer[lexer->state][(uint8_t)ch];
char_consumed = !TERMINAL_NEEDED_LOOK... | {
"code": [],
"line_no": []
} | static int FUNC_0(JSONLexer *VAR_0, char VAR_1, bool VAR_2)
{
int VAR_3, VAR_4;
VAR_0->x++;
if (VAR_1 == '\n') {
VAR_0->x = 0;
VAR_0->y++;
}
do {
VAR_4 = json_lexer[VAR_0->state][(uint8_t)VAR_1];
VAR_3 = !TERMINAL_NEEDED_LOOKAHEAD(VAR_0->state, VAR_4);
... | [
"static int FUNC_0(JSONLexer *VAR_0, char VAR_1, bool VAR_2)\n{",
"int VAR_3, VAR_4;",
"VAR_0->x++;",
"if (VAR_1 == '\\n') {",
"VAR_0->x = 0;",
"VAR_0->y++;",
"}",
"do {",
"VAR_4 = json_lexer[VAR_0->state][(uint8_t)VAR_1];",
"VAR_3 = !TERMINAL_NEEDED_LOOKAHEAD(VAR_0->state, VAR_4);",
"if (VAR_3)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39,
41,
43,
45,
47,
49
],
[
51,
53
],
... |
27,180 | static int coroutine_fn qed_aio_write_alloc(QEDAIOCB *acb, size_t len)
{
BDRVQEDState *s = acb_to_s(acb);
int ret;
/* Cancel timer when the first allocating request comes in */
if (s->allocating_acb == NULL) {
qed_cancel_need_check_timer(s);
}
/* Freeze this request if anothe... | false | qemu | 1f01e50b8330c24714ddca5841fdbb703076b121 | static int coroutine_fn qed_aio_write_alloc(QEDAIOCB *acb, size_t len)
{
BDRVQEDState *s = acb_to_s(acb);
int ret;
if (s->allocating_acb == NULL) {
qed_cancel_need_check_timer(s);
}
if (s->allocating_acb != acb || s->allocating_write_reqs_plugged) {
if (s->all... | {
"code": [],
"line_no": []
} | static int VAR_0 qed_aio_write_alloc(QEDAIOCB *acb, size_t len)
{
BDRVQEDState *s = acb_to_s(acb);
int ret;
if (s->allocating_acb == NULL) {
qed_cancel_need_check_timer(s);
}
if (s->allocating_acb != acb || s->allocating_write_reqs_plugged) {
if (s->allocating... | [
"static int VAR_0 qed_aio_write_alloc(QEDAIOCB *acb, size_t len)\n{",
"BDRVQEDState *s = acb_to_s(acb);",
"int ret;",
"if (s->allocating_acb == NULL) {",
"qed_cancel_need_check_timer(s);",
"}",
"if (s->allocating_acb != acb || s->allocating_write_reqs_plugged) {",
"if (s->allocating_acb != NULL) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
49
],
[
53
],
[
55
],
... |
27,181 | int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
{
BDRVQcow2State *s = bs->opaque;
QCowSnapshot *new_snapshot_list = NULL;
QCowSnapshot *old_snapshot_list = NULL;
QCowSnapshot sn1, *sn = &sn1;
int i, ret;
uint64_t *l1_table = NULL;
int64_t l1_table_offset;
... | false | qemu | d2cb36af2b0040d421b347e6e4e803e07220f78d | int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
{
BDRVQcow2State *s = bs->opaque;
QCowSnapshot *new_snapshot_list = NULL;
QCowSnapshot *old_snapshot_list = NULL;
QCowSnapshot sn1, *sn = &sn1;
int i, ret;
uint64_t *l1_table = NULL;
int64_t l1_table_offset;
... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1)
{
BDRVQcow2State *s = VAR_0->opaque;
QCowSnapshot *new_snapshot_list = NULL;
QCowSnapshot *old_snapshot_list = NULL;
QCowSnapshot sn1, *sn = &sn1;
int VAR_2, VAR_3;
uint64_t *l1_table = NULL;
int64_t l1_table_offset;
... | [
"int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"QCowSnapshot *new_snapshot_list = NULL;",
"QCowSnapshot *old_snapshot_list = NULL;",
"QCowSnapshot sn1, *sn = &sn1;",
"int VAR_2, VAR_3;",
"uint64_t *l1_table = NULL;",
"int64_t l1_table_offset;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
35
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
57
],
[
59
... |
27,182 | static void superio_ioport_writeb(void *opaque, uint32_t addr, uint32_t data)
{
int can_write;
SuperIOConfig *superio_conf = opaque;
DPRINTF("superio_ioport_writeb address 0x%x val 0x%x \n", addr, data);
if (addr == 0x3f0) {
superio_conf->index = data & 0xff;
} else {
/*... | false | qemu | b2bedb214469af55179d907a60cd67fed6b0779e | static void superio_ioport_writeb(void *opaque, uint32_t addr, uint32_t data)
{
int can_write;
SuperIOConfig *superio_conf = opaque;
DPRINTF("superio_ioport_writeb address 0x%x val 0x%x \n", addr, data);
if (addr == 0x3f0) {
superio_conf->index = data & 0xff;
} else {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
int VAR_3;
SuperIOConfig *superio_conf = VAR_0;
DPRINTF("FUNC_0 address 0x%x val 0x%x \n", VAR_1, VAR_2);
if (VAR_1 == 0x3f0) {
superio_conf->index = VAR_2 & 0xff;
} else {
switch (superio_conf->... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"int VAR_3;",
"SuperIOConfig *superio_conf = VAR_0;",
"DPRINTF(\"FUNC_0 address 0x%x val 0x%x \\n\", VAR_1, VAR_2);",
"if (VAR_1 == 0x3f0) {",
"superio_conf->index = VAR_2 & 0xff;",
"} else {",
"switch (superio_conf->index) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39,
41
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
55,
57
],
... |
27,184 | static void monitor_handle_command1(void *opaque, const char *cmdline)
{
monitor_handle_command(cmdline);
if (!monitor_suspended)
monitor_start_input();
else
monitor_suspended = 2;
}
| false | qemu | bb5fc20f7c1c65e95030da3629dd0d7a0cce38cd | static void monitor_handle_command1(void *opaque, const char *cmdline)
{
monitor_handle_command(cmdline);
if (!monitor_suspended)
monitor_start_input();
else
monitor_suspended = 2;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const char *VAR_1)
{
monitor_handle_command(VAR_1);
if (!monitor_suspended)
monitor_start_input();
else
monitor_suspended = 2;
}
| [
"static void FUNC_0(void *VAR_0, const char *VAR_1)\n{",
"monitor_handle_command(VAR_1);",
"if (!monitor_suspended)\nmonitor_start_input();",
"else\nmonitor_suspended = 2;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15
]
] |
27,185 | static void do_pci_unregister_device(PCIDevice *pci_dev)
{
pci_dev->bus->devices[pci_dev->devfn] = NULL;
pci_config_free(pci_dev);
if (memory_region_is_mapped(&pci_dev->bus_master_enable_region)) {
memory_region_del_subregion(&pci_dev->bus_master_container_region,
... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | static void do_pci_unregister_device(PCIDevice *pci_dev)
{
pci_dev->bus->devices[pci_dev->devfn] = NULL;
pci_config_free(pci_dev);
if (memory_region_is_mapped(&pci_dev->bus_master_enable_region)) {
memory_region_del_subregion(&pci_dev->bus_master_container_region,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0)
{
VAR_0->bus->devices[VAR_0->devfn] = NULL;
pci_config_free(VAR_0);
if (memory_region_is_mapped(&VAR_0->bus_master_enable_region)) {
memory_region_del_subregion(&VAR_0->bus_master_container_region,
&VAR_0->bus_master_en... | [
"static void FUNC_0(PCIDevice *VAR_0)\n{",
"VAR_0->bus->devices[VAR_0->devfn] = NULL;",
"pci_config_free(VAR_0);",
"if (memory_region_is_mapped(&VAR_0->bus_master_enable_region)) {",
"memory_region_del_subregion(&VAR_0->bus_master_container_region,\n&VAR_0->bus_master_enable_region);",
"}",
"address_spa... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
]
] |
27,186 | CPUState *ppc405cr_init (target_phys_addr_t ram_bases[4],
target_phys_addr_t ram_sizes[4],
uint32_t sysclk, qemu_irq **picp,
int do_init)
{
clk_setup_t clk_setup[PPC405CR_CLK_NB];
qemu_irq dma_irqs[4];
CPUState *env;
qemu... | false | qemu | b6dcbe086c77ec683f5ff0b693593cda1d61f3a1 | CPUState *ppc405cr_init (target_phys_addr_t ram_bases[4],
target_phys_addr_t ram_sizes[4],
uint32_t sysclk, qemu_irq **picp,
int do_init)
{
clk_setup_t clk_setup[PPC405CR_CLK_NB];
qemu_irq dma_irqs[4];
CPUState *env;
qemu... | {
"code": [],
"line_no": []
} | CPUState *FUNC_0 (target_phys_addr_t ram_bases[4],
target_phys_addr_t ram_sizes[4],
uint32_t sysclk, qemu_irq **picp,
int do_init)
{
clk_setup_t clk_setup[PPC405CR_CLK_NB];
qemu_irq dma_irqs[4];
CPUState *env;
qemu_irq *p... | [
"CPUState *FUNC_0 (target_phys_addr_t ram_bases[4],\ntarget_phys_addr_t ram_sizes[4],\nuint32_t sysclk, qemu_irq **picp,\nint do_init)\n{",
"clk_setup_t clk_setup[PPC405CR_CLK_NB];",
"qemu_irq dma_irqs[4];",
"CPUState *env;",
"qemu_irq *pic, *irqs;",
"memset(clk_setup, 0, sizeof(clk_setup));",
"env = pp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
31
],
[
35
],
[
39
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
],
[
55
],
[
59
],
[
63
... |
27,188 | int nbd_client_session_co_discard(NbdClientSession *client, int64_t sector_num,
int nb_sectors)
{
struct nbd_request request = { .type = NBD_CMD_TRIM };
struct nbd_reply reply;
ssize_t ret;
if (!(client->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
request.from = sector_n... | false | qemu | f53a829bb9ef14be800556cbc02d8b20fc1050a7 | int nbd_client_session_co_discard(NbdClientSession *client, int64_t sector_num,
int nb_sectors)
{
struct nbd_request request = { .type = NBD_CMD_TRIM };
struct nbd_reply reply;
ssize_t ret;
if (!(client->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
request.from = sector_n... | {
"code": [],
"line_no": []
} | int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,
int VAR_2)
{
struct nbd_request VAR_3 = { .type = NBD_CMD_TRIM };
struct nbd_reply VAR_4;
ssize_t ret;
if (!(VAR_0->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
VAR_3.from = VAR_1 * 512;
VAR_3.len = VAR_2 * 512;
... | [
"int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,\nint VAR_2)\n{",
"struct nbd_request VAR_3 = { .type = NBD_CMD_TRIM };",
"struct nbd_reply VAR_4;",
"ssize_t ret;",
"if (!(VAR_0->nbdflags & NBD_FLAG_SEND_TRIM)) {",
"return 0;",
"}",
"VAR_3.from = VAR_1 * 512;",
"VAR_3.len = VAR_2 * 512;",
"nbd_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
]
] |
27,189 | static void sdhci_do_adma(SDHCIState *s)
{
unsigned int n, begin, length;
const uint16_t block_size = s->blksize & 0x0fff;
ADMADescr dscr;
int i;
for (i = 0; i < SDHC_ADMA_DESCS_PER_DELAY; ++i) {
s->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH;
get_adma_description(s, &dscr);... | false | qemu | d368ba4376b2c1c24175c74b3733b8fe64dbe8a6 | static void sdhci_do_adma(SDHCIState *s)
{
unsigned int n, begin, length;
const uint16_t block_size = s->blksize & 0x0fff;
ADMADescr dscr;
int i;
for (i = 0; i < SDHC_ADMA_DESCS_PER_DELAY; ++i) {
s->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH;
get_adma_description(s, &dscr);... | {
"code": [],
"line_no": []
} | static void FUNC_0(SDHCIState *VAR_0)
{
unsigned int VAR_1, VAR_2, VAR_3;
const uint16_t VAR_4 = VAR_0->blksize & 0x0fff;
ADMADescr dscr;
int VAR_5;
for (VAR_5 = 0; VAR_5 < SDHC_ADMA_DESCS_PER_DELAY; ++VAR_5) {
VAR_0->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH;
get_adma_des... | [
"static void FUNC_0(SDHCIState *VAR_0)\n{",
"unsigned int VAR_1, VAR_2, VAR_3;",
"const uint16_t VAR_4 = VAR_0->blksize & 0x0fff;",
"ADMADescr dscr;",
"int VAR_5;",
"for (VAR_5 = 0; VAR_5 < SDHC_ADMA_DESCS_PER_DELAY; ++VAR_5) {",
"VAR_0->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH;",
"get_adma_descriptio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
27,190 | static uint32_t omap_sysctl_read8(void *opaque, target_phys_addr_t addr)
{
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
int pad_offset, byte_offset;
int value;
switch (addr) {
case 0x030 ... 0x140: /* CONTROL_PADCONF - only used in the POP */
pad_offset = (addr - 0x3... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t omap_sysctl_read8(void *opaque, target_phys_addr_t addr)
{
struct omap_sysctl_s *s = (struct omap_sysctl_s *) opaque;
int pad_offset, byte_offset;
int value;
switch (addr) {
case 0x030 ... 0x140:
pad_offset = (addr - 0x30) >> 2;
byte_offset = (addr - 0x30... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
struct omap_sysctl_s *VAR_0 = (struct omap_sysctl_s *) opaque;
int VAR_1, VAR_2;
int VAR_3;
switch (addr) {
case 0x030 ... 0x140:
VAR_1 = (addr - 0x30) >> 2;
VAR_2 = (addr - 0x30) & (4 - 1);
VAR_3... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"struct omap_sysctl_s *VAR_0 = (struct omap_sysctl_s *) opaque;",
"int VAR_1, VAR_2;",
"int VAR_3;",
"switch (addr) {",
"case 0x030 ... 0x140:\nVAR_1 = (addr - 0x30) >> 2;",
"VAR_2 = (addr - 0x30) & (4 - 1);",
"VAR_3 = VAR_0->padconf[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
]
] |
27,191 | abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
{
void *ptr, *prev;
abi_ulong addr;
int wrapped, repeat;
/* If 'start' == 0, then a default start address is used. */
if (start == 0) {
start = mmap_next_start;
} else {
start &= qemu_host_page_mask;
}
... | false | qemu | d0b3e4f5f4a29d48250887e5c0b3c65bc4dc6d13 | abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
{
void *ptr, *prev;
abi_ulong addr;
int wrapped, repeat;
if (start == 0) {
start = mmap_next_start;
} else {
start &= qemu_host_page_mask;
}
size = HOST_PAGE_ALIGN(size);
if (RESERVED_VA) {
... | {
"code": [],
"line_no": []
} | abi_ulong FUNC_0(abi_ulong start, abi_ulong size)
{
void *VAR_0, *VAR_1;
abi_ulong addr;
int VAR_2, VAR_3;
if (start == 0) {
start = mmap_next_start;
} else {
start &= qemu_host_page_mask;
}
size = HOST_PAGE_ALIGN(size);
if (RESERVED_VA) {
... | [
"abi_ulong FUNC_0(abi_ulong start, abi_ulong size)\n{",
"void *VAR_0, *VAR_1;",
"abi_ulong addr;",
"int VAR_2, VAR_3;",
"if (start == 0) {",
"start = mmap_next_start;",
"} else {",
"start &= qemu_host_page_mask;",
"}",
"size = HOST_PAGE_ALIGN(size);",
"if (RESERVED_VA) {",
"return mmap_find_vm... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
63,
65
],
[
71
],
[... |
27,192 | static int do_token_out(USBDevice *s, USBPacket *p)
{
assert(p->devep == 0);
switch(s->setup_state) {
case SETUP_STATE_ACK:
if (s->setup_buf[0] & USB_DIR_IN) {
s->setup_state = SETUP_STATE_IDLE;
/* transfer OK */
} else {
/* ignore additional ou... | false | qemu | 079d0b7f1eedcc634c371fe05b617fdc55c8b762 | static int do_token_out(USBDevice *s, USBPacket *p)
{
assert(p->devep == 0);
switch(s->setup_state) {
case SETUP_STATE_ACK:
if (s->setup_buf[0] & USB_DIR_IN) {
s->setup_state = SETUP_STATE_IDLE;
} else {
}
return 0;
ca... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)
{
assert(VAR_1->devep == 0);
switch(VAR_0->setup_state) {
case SETUP_STATE_ACK:
if (VAR_0->setup_buf[0] & USB_DIR_IN) {
VAR_0->setup_state = SETUP_STATE_IDLE;
} else {
}
r... | [
"static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{",
"assert(VAR_1->devep == 0);",
"switch(VAR_0->setup_state) {",
"case SETUP_STATE_ACK:\nif (VAR_0->setup_buf[0] & USB_DIR_IN) {",
"VAR_0->setup_state = SETUP_STATE_IDLE;",
"} else {",
"}",
"return 0;",
"case SETUP_STATE_DATA:\nif (!(VAR_0->se... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
... |
27,193 | int page_unprotect(target_ulong address, uintptr_t pc)
{
unsigned int prot;
PageDesc *p;
target_ulong host_start, host_end, addr;
/* Technically this isn't safe inside a signal handler. However we
know this only ever happens in a synchronous SEGV handler, so in
practice it seems ... | false | qemu | 7399a337e4126f7c8c8af3336726f001378c4798 | int page_unprotect(target_ulong address, uintptr_t pc)
{
unsigned int prot;
PageDesc *p;
target_ulong host_start, host_end, addr;
mmap_lock();
p = page_find(address >> TARGET_PAGE_BITS);
if (!p) {
mmap_unlock();
return 0;
}
if ((p->flags... | {
"code": [],
"line_no": []
} | int FUNC_0(target_ulong VAR_0, uintptr_t VAR_1)
{
unsigned int VAR_2;
PageDesc *p;
target_ulong host_start, host_end, addr;
mmap_lock();
p = page_find(VAR_0 >> TARGET_PAGE_BITS);
if (!p) {
mmap_unlock();
return 0;
}
if ((p->flags & PAGE_... | [
"int FUNC_0(target_ulong VAR_0, uintptr_t VAR_1)\n{",
"unsigned int VAR_2;",
"PageDesc *p;",
"target_ulong host_start, host_end, addr;",
"mmap_lock();",
"p = page_find(VAR_0 >> TARGET_PAGE_BITS);",
"if (!p) {",
"mmap_unlock();",
"return 0;",
"}",
"if ((p->flags & PAGE_WRITE_ORG) && !(p->flags & ... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
63
],
[
65
... |
27,195 | static void truncpasses(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
{
int precno, compno, reslevelno, bandno, cblkno, lev;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = tile->comp + compno;
for (resleveln... | false | FFmpeg | 83fd377c94d8fbffdb3e69fb3efe1976ff897a88 | static void truncpasses(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
{
int precno, compno, reslevelno, bandno, cblkno, lev;
Jpeg2000CodingStyle *codsty = &s->codsty;
for (compno = 0; compno < s->ncomponents; compno++){
Jpeg2000Component *comp = tile->comp + compno;
for (resleveln... | {
"code": [],
"line_no": []
} | static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
Jpeg2000CodingStyle *codsty = &VAR_0->codsty;
for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){
Jpeg2000Component *comp = VAR_1->comp + VAR_3;
for (VAR_4 = 0, ... | [
"static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"Jpeg2000CodingStyle *codsty = &VAR_0->codsty;",
"for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){",
"Jpeg2000Component *comp = VAR_1->comp + VAR_3;",
"for (VAR_4 = 0, VAR_7 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
27,196 | uint64_t blk_mig_bytes_remaining(void)
{
return blk_mig_bytes_total() - blk_mig_bytes_transferred();
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | uint64_t blk_mig_bytes_remaining(void)
{
return blk_mig_bytes_total() - blk_mig_bytes_transferred();
}
| {
"code": [],
"line_no": []
} | uint64_t FUNC_0(void)
{
return blk_mig_bytes_total() - blk_mig_bytes_transferred();
}
| [
"uint64_t FUNC_0(void)\n{",
"return blk_mig_bytes_total() - blk_mig_bytes_transferred();",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
27,197 | static int init_tile(Jpeg2000DecoderContext *s, int tileno)
{
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp)
return AVERROR(ENOMEM);
tile->coord[0][0] = av_clip(tilex * s->tile_wi... | true | FFmpeg | 65d3359fb366ea265a8468d76a111cb7352f0b55 | static int init_tile(Jpeg2000DecoderContext *s, int tileno)
{
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp)
return AVERROR(ENOMEM);
tile->coord[0][0] = av_clip(tilex * s->tile_wi... | {
"code": [
" tile->coord[0][0] = av_clip(tilex * s->tile_width + s->tile_offset_x, s->image_offset_x, s->width);",
" tile->coord[0][1] = av_clip((tilex + 1) * s->tile_width + s->tile_offset_x, s->image_offset_x, s->width);",
" tile->coord[1][0] = av_clip(tiley * s->tile_height + s-... | static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)
{
int VAR_2;
int VAR_3 = VAR_1 % VAR_0->numXtiles;
int VAR_4 = VAR_1 / VAR_0->numXtiles;
Jpeg2000Tile *tile = VAR_0->tile + VAR_1;
if (!tile->comp)
return AVERROR(ENOMEM);
tile->coord[0][0] = av_clip(VAR_3 * VA... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"int VAR_3 = VAR_1 % VAR_0->numXtiles;",
"int VAR_4 = VAR_1 / VAR_0->numXtiles;",
"Jpeg2000Tile *tile = VAR_0->tile + VAR_1;",
"if (!tile->comp)\nreturn AVERROR(ENOMEM);",
"tile->coord[0][0] = av_clip(VAR_3 * VAR_0->ti... | [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
27,198 | static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
{
SRTContext *srt = avf->priv_data;
int write_ts = avf->streams[0]->codec->codec_id != AV_CODEC_ID_SRT;
srt->index++;
if (write_ts) {
int64_t s = pkt->pts, e, d = pkt->duration;
if (d <= 0)
/* For ba... | true | FFmpeg | e56b0984103b981ec25fe8a22ef9c4905b9751dd | static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
{
SRTContext *srt = avf->priv_data;
int write_ts = avf->streams[0]->codec->codec_id != AV_CODEC_ID_SRT;
srt->index++;
if (write_ts) {
int64_t s = pkt->pts, e, d = pkt->duration;
if (d <= 0)
... | {
"code": [
" srt->index++;",
" av_log(avf, AV_LOG_ERROR, \"Insufficient timestamps.\\n\");",
" return AVERROR(EINVAL);"
],
"line_no": [
11,
27,
29
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
SRTContext *srt = VAR_0->priv_data;
int VAR_2 = VAR_0->streams[0]->codec->codec_id != AV_CODEC_ID_SRT;
srt->index++;
if (VAR_2) {
int64_t s = VAR_1->pts, e, d = VAR_1->duration;
if (d <= 0)
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"SRTContext *srt = VAR_0->priv_data;",
"int VAR_2 = VAR_0->streams[0]->codec->codec_id != AV_CODEC_ID_SRT;",
"srt->index++;",
"if (VAR_2) {",
"int64_t s = VAR_1->pts, e, d = VAR_1->duration;",
"if (d <= 0)\nd = VAR_1->convergence_duration;... | [
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37,
39,
41,
43,
45
],
[
47
],
[
49
],
[
51,
53
],
... |
27,200 | static int flac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
FlacEncodeContext *s;
int frame_bytes, out_bytes, ret;
s = avctx->priv_data;
/* when the last block is reached, update the header in extradata */
... | false | FFmpeg | bcaf64b605442e1622d16da89d4ec0e7730b8a8c | static int flac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
FlacEncodeContext *s;
int frame_bytes, out_bytes, ret;
s = avctx->priv_data;
if (!frame) {
s->max_framesize = s->max_encoded_framesize;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
FlacEncodeContext *s;
int VAR_4, VAR_5, VAR_6;
s = VAR_0->priv_data;
if (!VAR_2) {
s->max_framesize = s->max_encoded_framesize;
av_md5_final(s->md5... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"FlacEncodeContext *s;",
"int VAR_4, VAR_5, VAR_6;",
"s = VAR_0->priv_data;",
"if (!VAR_2) {",
"s->max_framesize = s->max_encoded_framesize;",
"av_md5_final(s->md5ctx, s->md5sum);",
"write_streaminfo(s, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37,
39,
41
],
[
43
],
[
47
],
[
51
],
[
55
],
[
59
],
[
63
],
[... |
27,202 | void ff_vp3_v_loop_filter_mmx(uint8_t *src, int stride, int *bounding_values)
{
__asm__ volatile(
"movq %0, %%mm6 \n\t"
"movq %1, %%mm4 \n\t"
"movq %2, %%mm2 \n\t"
"movq %3, %%mm1 \n\t"
VP3_LOOP_FILTER(%4)
"movq %%... | false | FFmpeg | daa1ea049a9445b7bed03963cb789497065dd1eb | void ff_vp3_v_loop_filter_mmx(uint8_t *src, int stride, int *bounding_values)
{
__asm__ volatile(
"movq %0, %%mm6 \n\t"
"movq %1, %%mm4 \n\t"
"movq %2, %%mm2 \n\t"
"movq %3, %%mm1 \n\t"
VP3_LOOP_FILTER(%4)
"movq %%... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, int VAR_1, int *VAR_2)
{
__asm__ volatile(
"movq %0, %%mm6 \n\t"
"movq %1, %%mm4 \n\t"
"movq %2, %%mm2 \n\t"
"movq %3, %%mm1 \n\t"
VP3_LOOP_FILTER(%4)
"movq %%mm4, %1 \n\t"
"... | [
"void FUNC_0(uint8_t *VAR_0, int VAR_1, int *VAR_2)\n{",
"__asm__ volatile(\n\"movq %0, %%mm6 \\n\\t\"\n\"movq %1, %%mm4 \\n\\t\"\n\"movq %2, %%mm2 \\n\\t\"\n\"movq %3, %%mm1 \\n\\t\"\nVP3_LOOP_FILTER(%4)\n\"movq %%mm4, %1 \\n\\t\"\n\"movq %%mm3, %2 \\n\\t\"\n... | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
17,
21,
23,
27,
29,
31,
33,
35,
37
],
[
39
]
] |
27,204 | static int decode(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
const uint8_t *buf_end;
uint8_t segment_type;
int segment_length;
int i, ret;
av_dlog(avc... | false | FFmpeg | 253d0be6a1ecc343d29ff8e1df0ddf961ab9c772 | static int decode(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
const uint8_t *buf_end;
uint8_t segment_type;
int segment_length;
int i, ret;
av_dlog(avc... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
const uint8_t *VAR_6;
uint8_t segment_type;
int VAR_7;
int VAR_8, VAR_9;
av_dlog(VAR_0, "PGS... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"const uint8_t *VAR_6;",
"uint8_t segment_type;",
"int VAR_7;",
"int VAR_8, VAR_9;",
"av_dlog(VAR_0, \"PGS sub packet:\\n\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39,
41
],
[
45
],
[
51,
53
],
[
57
],
[
63
],
[
65
... |
27,205 | static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
AVStream *st, MOVStreamContext *sc)
{
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
!st->codec->sample_rate && sc->time_scale > 1)
st->codec->sample_rate = sc->time_scale;
/* specia... | false | FFmpeg | 6ec688e1bc76dd93151cbca1c340162ae4b10d77 | static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
AVStream *st, MOVStreamContext *sc)
{
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
!st->codec->sample_rate && sc->time_scale > 1)
st->codec->sample_rate = sc->time_scale;
swi... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1,
AVStream *VAR_2, MOVStreamContext *VAR_3)
{
if (VAR_2->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
!VAR_2->codec->sample_rate && VAR_3->time_scale > 1)
VAR_2->codec->sample_rate = VAR_3->time_scale;
... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1,\nAVStream *VAR_2, MOVStreamContext *VAR_3)\n{",
"if (VAR_2->codec->codec_type == AVMEDIA_TYPE_AUDIO &&\n!VAR_2->codec->sample_rate && VAR_3->time_scale > 1)\nVAR_2->codec->sample_rate = VAR_3->time_scale;",
"switch (VAR_2->codec->codec_id) {",
"#if CON... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
53,... |
27,206 | void OPPROTO op_srli_T1 (void)
{
T1 = T1 >> PARAM1;
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void OPPROTO op_srli_T1 (void)
{
T1 = T1 >> PARAM1;
RETURN();
}
| {
"code": [
" RETURN();",
" T1 = T1 >> PARAM1;",
" RETURN();"
],
"line_no": [
7,
5,
7
]
} | void VAR_0 op_srli_T1 (void)
{
T1 = T1 >> PARAM1;
RETURN();
}
| [
"void VAR_0 op_srli_T1 (void)\n{",
"T1 = T1 >> PARAM1;",
"RETURN();",
"}"
] | [
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
27,207 | static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int pic_size_indx, i, p;
IVIPicConfig pic_conf;
if (get_bits(&ctx->gb, 18) != 0x3FFF8) {
av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n");
return AVERROR_INVALIDDATA;
}
ctx... | true | FFmpeg | 23b203014f5dbd85b75a6b97597be9c877cd3a1b | static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int pic_size_indx, i, p;
IVIPicConfig pic_conf;
if (get_bits(&ctx->gb, 18) != 0x3FFF8) {
av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\n");
return AVERROR_INVALIDDATA;
}
ctx... | {
"code": [],
"line_no": []
} | static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
IVIPicConfig pic_conf;
if (get_bits(&VAR_0->gb, 18) != 0x3FFF8) {
av_log(VAR_1, AV_LOG_ERROR, "Invalid picture start code!\n");
return AVERROR_INVALIDDATA;
}
VAR_0->... | [
"static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"IVIPicConfig pic_conf;",
"if (get_bits(&VAR_0->gb, 18) != 0x3FFF8) {",
"av_log(VAR_1, AV_LOG_ERROR, \"Invalid picture start code!\\n\");",
"return AVERROR_INVALIDDATA;",
"}",
"VAR_0->prev... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
41,
45
],
[
47,
49
],
[
51
],
[
53... |
27,208 | void ff_vp3_idct_add_altivec(uint8_t *dst, int stride, DCTELEM block[64])
{
LOAD_ZERO;
vec_u8 t, vdst;
vec_s16 vdst_16;
vec_u8 vdst_mask = vec_mergeh(vec_splat_u8(-1), vec_lvsl(0, dst));
IDCT_START
IDCT_1D(NOP, NOP)
TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7);
IDCT_1D(ADD8, S... | false | FFmpeg | 28f9ab7029bd1a02f659995919f899f84ee7361b | void ff_vp3_idct_add_altivec(uint8_t *dst, int stride, DCTELEM block[64])
{
LOAD_ZERO;
vec_u8 t, vdst;
vec_s16 vdst_16;
vec_u8 vdst_mask = vec_mergeh(vec_splat_u8(-1), vec_lvsl(0, dst));
IDCT_START
IDCT_1D(NOP, NOP)
TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7);
IDCT_1D(ADD8, S... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM VAR_2[64])
{
LOAD_ZERO;
vec_u8 t, vdst;
vec_s16 vdst_16;
vec_u8 vdst_mask = vec_mergeh(vec_splat_u8(-1), vec_lvsl(0, VAR_0));
IDCT_START
IDCT_1D(NOP, NOP)
TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7);
IDCT_1D(ADD8, SHIFT4)
#def... | [
"void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM VAR_2[64])\n{",
"LOAD_ZERO;",
"vec_u8 t, vdst;",
"vec_s16 vdst_16;",
"vec_u8 vdst_mask = vec_mergeh(vec_splat_u8(-1), vec_lvsl(0, VAR_0));",
"IDCT_START\nIDCT_1D(NOP, NOP)\nTRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7);",
"IDCT_1D(ADD8, SHIFT4)\n#define ADD(a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
19,
21
],
[
23,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
27,209 | static void qobject_output_type_uint64(Visitor *v, const char *name,
uint64_t *obj, Error **errp)
{
/* FIXME values larger than INT64_MAX become negative */
QObjectOutputVisitor *qov = to_qov(v);
qobject_output_add(qov, name, qnum_from_int(*obj));
}
| true | qemu | 5923f85fb82df7c8c60a89458a5ae856045e5ab1 | static void qobject_output_type_uint64(Visitor *v, const char *name,
uint64_t *obj, Error **errp)
{
QObjectOutputVisitor *qov = to_qov(v);
qobject_output_add(qov, name, qnum_from_int(*obj));
}
| {
"code": [
" qobject_output_add(qov, name, qnum_from_int(*obj));"
],
"line_no": [
11
]
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1,
uint64_t *VAR_2, Error **VAR_3)
{
QObjectOutputVisitor *qov = to_qov(VAR_0);
qobject_output_add(qov, VAR_1, qnum_from_int(*VAR_2));
}
| [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1,\nuint64_t *VAR_2, Error **VAR_3)\n{",
"QObjectOutputVisitor *qov = to_qov(VAR_0);",
"qobject_output_add(qov, VAR_1, qnum_from_int(*VAR_2));",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
9
],
[
11
],
[
13
]
] |
27,210 | static int asf_read_replicated_data(AVFormatContext *s, ASFPacket *asf_pkt)
{
ASFContext *asf = s->priv_data;
AVIOContext *pb = s->pb;
int ret;
if (!asf_pkt->data_size) {
asf_pkt->data_size = asf_pkt->size_left = avio_rl32(pb); // read media object size
if (asf_pkt->data_size <=... | true | FFmpeg | c69461d73797e02e7a3ab4316050c241fa91f53f | static int asf_read_replicated_data(AVFormatContext *s, ASFPacket *asf_pkt)
{
ASFContext *asf = s->priv_data;
AVIOContext *pb = s->pb;
int ret;
if (!asf_pkt->data_size) {
asf_pkt->data_size = asf_pkt->size_left = avio_rl32(pb);
if (asf_pkt->data_size <= 0)
return A... | {
"code": [
" int ret;",
" if (asf_pkt->data_size <= 0)",
" if ((ret = av_new_packet(&asf_pkt->avpkt, asf_pkt->data_size)) < 0)",
" int ret;",
" if (asf_pkt->data_size <= 0)",
" if ((ret = av_new_packet(&asf_pkt->avpkt, asf_pkt->data_size)) < 0)"
],
"line_... | static int FUNC_0(AVFormatContext *VAR_0, ASFPacket *VAR_1)
{
ASFContext *asf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2;
if (!VAR_1->data_size) {
VAR_1->data_size = VAR_1->size_left = avio_rl32(pb);
if (VAR_1->data_size <= 0)
return AVERROR_INVALID... | [
"static int FUNC_0(AVFormatContext *VAR_0, ASFPacket *VAR_1)\n{",
"ASFContext *asf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2;",
"if (!VAR_1->data_size) {",
"VAR_1->data_size = VAR_1->size_left = avio_rl32(pb);",
"if (VAR_1->data_size <= 0)\nreturn AVERROR_INVALIDDATA;",
"if ((VA... | [
0,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
]
] |
27,211 | float64 float64_muladd(float64 a, float64 b, float64 c, int flags STATUS_PARAM)
{
flag aSign, bSign, cSign, zSign;
int_fast16_t aExp, bExp, cExp, pExp, zExp, expDiff;
uint64_t aSig, bSig, cSig;
flag pInf, pZero, pSign;
uint64_t pSig0, pSig1, cSig0, cSig1, zSig0, zSig1;
int shiftcount;
... | true | qemu | e3d142d073d02f0a3a4aad79eb838c15b6f99c01 | float64 float64_muladd(float64 a, float64 b, float64 c, int flags STATUS_PARAM)
{
flag aSign, bSign, cSign, zSign;
int_fast16_t aExp, bExp, cExp, pExp, zExp, expDiff;
uint64_t aSig, bSig, cSig;
flag pInf, pZero, pSign;
uint64_t pSig0, pSig1, cSig0, cSig1, zSig0, zSig1;
int shiftcount;
... | {
"code": [
" shiftcount = countLeadingZeros64(zSig1) - 1;",
" zSig0 = zSig1 << shiftcount;",
" zExp -= (shiftcount + 64);"
],
"line_no": [
403,
405,
407
]
} | float64 FUNC_0(float64 a, float64 b, float64 c, int flags STATUS_PARAM)
{
flag aSign, bSign, cSign, zSign;
int_fast16_t aExp, bExp, cExp, pExp, zExp, expDiff;
uint64_t aSig, bSig, cSig;
flag pInf, pZero, pSign;
uint64_t pSig0, pSig1, cSig0, cSig1, zSig0, zSig1;
int VAR_0;
flag signfl... | [
"float64 FUNC_0(float64 a, float64 b, float64 c, int flags STATUS_PARAM)\n{",
"flag aSign, bSign, cSign, zSign;",
"int_fast16_t aExp, bExp, cExp, pExp, zExp, expDiff;",
"uint64_t aSig, bSig, cSig;",
"flag pInf, pZero, pSign;",
"uint64_t pSig0, pSig1, cSig0, cSig1, zSig0, zSig1;",
"int VAR_0;",
"flag s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
27,212 | static void vga_precise_update_retrace_info(VGACommonState *s)
{
int htotal_chars;
int hretr_start_char;
int hretr_skew_chars;
int hretr_end_char;
int vtotal_lines;
int vretr_start_line;
int vretr_end_line;
int dots;
#if 0
int div2, sldiv2;
#endif
int clocking_mo... | true | qemu | 94ef4f337fb614f18b765a8e0e878a4c23cdedcd | static void vga_precise_update_retrace_info(VGACommonState *s)
{
int htotal_chars;
int hretr_start_char;
int hretr_skew_chars;
int hretr_end_char;
int vtotal_lines;
int vretr_start_line;
int vretr_end_line;
int dots;
#if 0
int div2, sldiv2;
#endif
int clocking_mo... | {
"code": [
" clocking_mode = (s->sr[VGA_SEQ_CLOCK_MODE] >> 3) & 1;"
],
"line_no": [
69
]
} | static void FUNC_0(VGACommonState *VAR_0)
{
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
int VAR_7;
int VAR_8;
#if 0
int div2, sldiv2;
#endif
int VAR_9;
int VAR_10;
const int VAR_11[] = {25175000, 28322000, 25175000, 25175000};
... | [
"static void FUNC_0(VGACommonState *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"int VAR_8;",
"#if 0\nint div2, sldiv2;",
"#endif\nint VAR_9;",
"int VAR_10;",
"const int VAR_11[] = {25175000, 28322000, 25175000, 25175000};",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
27,213 | static void diag288_timer_expired(void *dev)
{
qemu_log_mask(CPU_LOG_RESET, "Watchdog timer expired.\n");
watchdog_perform_action();
/* Reset the watchdog only if the guest was notified about expiry. */
switch (get_watchdog_action()) {
case WDT_DEBUG:
case WDT_NONE:
case WDT_PAUSE:
... | true | qemu | fe345a3d5d7ed4bc2965c65542832b1fa785ae9d | static void diag288_timer_expired(void *dev)
{
qemu_log_mask(CPU_LOG_RESET, "Watchdog timer expired.\n");
watchdog_perform_action();
switch (get_watchdog_action()) {
case WDT_DEBUG:
case WDT_NONE:
case WDT_PAUSE:
return;
}
wdt_diag288_reset(dev);
}
| {
"code": [
" watchdog_perform_action();",
" wdt_diag288_reset(dev);"
],
"line_no": [
7,
23
]
} | static void FUNC_0(void *VAR_0)
{
qemu_log_mask(CPU_LOG_RESET, "Watchdog timer expired.\n");
watchdog_perform_action();
switch (get_watchdog_action()) {
case WDT_DEBUG:
case WDT_NONE:
case WDT_PAUSE:
return;
}
wdt_diag288_reset(VAR_0);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"qemu_log_mask(CPU_LOG_RESET, \"Watchdog timer expired.\\n\");",
"watchdog_perform_action();",
"switch (get_watchdog_action()) {",
"case WDT_DEBUG:\ncase WDT_NONE:\ncase WDT_PAUSE:\nreturn;",
"}",
"wdt_diag288_reset(VAR_0);",
"}"
] | [
0,
0,
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
]
] |
27,214 | void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)
{
QDict *qdict;
int devfn;
assert(qobject_type(data) == QTYPE_QDICT);
qdict = qobject_to_qdict(data);
devfn = (int)qdict_get_int(qdict, "devfn");
monitor_printf(mon, "OK id: %s root bus: %s, bus: %x devfn: %x.%x\n",
... | true | qemu | 04e00c92ef75629a241ebc50537f75de0867928d | void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)
{
QDict *qdict;
int devfn;
assert(qobject_type(data) == QTYPE_QDICT);
qdict = qobject_to_qdict(data);
devfn = (int)qdict_get_int(qdict, "devfn");
monitor_printf(mon, "OK id: %s root bus: %s, bus: %x devfn: %x.%x\n",
... | {
"code": [
"void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)",
"void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)",
" QDict *qdict;",
" int devfn;",
" assert(qobject_type(data) == QTYPE_QDICT);",
" qdict = qobject_to_qdict(data);",
" dev... | void FUNC_0(Monitor *VAR_0, const QObject *VAR_1)
{
QDict *qdict;
int VAR_2;
assert(qobject_type(VAR_1) == QTYPE_QDICT);
qdict = qobject_to_qdict(VAR_1);
VAR_2 = (int)qdict_get_int(qdict, "VAR_2");
monitor_printf(VAR_0, "OK id: %s root bus: %s, bus: %x VAR_2: %x.%x\n",
... | [
"void FUNC_0(Monitor *VAR_0, const QObject *VAR_1)\n{",
"QDict *qdict;",
"int VAR_2;",
"assert(qobject_type(VAR_1) == QTYPE_QDICT);",
"qdict = qobject_to_qdict(VAR_1);",
"VAR_2 = (int)qdict_get_int(qdict, \"VAR_2\");",
"monitor_printf(VAR_0, \"OK id: %s root bus: %s, bus: %x VAR_2: %x.%x\\n\",\nqdict_ge... | [
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19,
21,
23,
25
],
[
27
]
] |
27,215 | static void gen_branch(DisasContext *ctx, int insn_bytes)
{
if (ctx->hflags & MIPS_HFLAG_BMASK) {
int proc_hflags = ctx->hflags & MIPS_HFLAG_BMASK;
/* Branches completion */
ctx->hflags &= ~MIPS_HFLAG_BMASK;
ctx->bstate = BS_BRANCH;
save_cpu_state(ctx, 0);
/* ... | true | qemu | a5f533909e746ca6e534b232fb42c9c6fd81b468 | static void gen_branch(DisasContext *ctx, int insn_bytes)
{
if (ctx->hflags & MIPS_HFLAG_BMASK) {
int proc_hflags = ctx->hflags & MIPS_HFLAG_BMASK;
ctx->hflags &= ~MIPS_HFLAG_BMASK;
ctx->bstate = BS_BRANCH;
save_cpu_state(ctx, 0);
switch (proc_hflag... | {
"code": [
" ctx->hflags &= ~MIPS_HFLAG_BMASK;",
" save_cpu_state(ctx, 0);",
" MIPS_DEBUG(\"unknown branch\");",
" break;"
],
"line_no": [
11,
15,
131,
27
]
} | static void FUNC_0(DisasContext *VAR_0, int VAR_1)
{
if (VAR_0->hflags & MIPS_HFLAG_BMASK) {
int VAR_2 = VAR_0->hflags & MIPS_HFLAG_BMASK;
VAR_0->hflags &= ~MIPS_HFLAG_BMASK;
VAR_0->bstate = BS_BRANCH;
save_cpu_state(VAR_0, 0);
switch (VAR_2 & MIPS_... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{",
"if (VAR_0->hflags & MIPS_HFLAG_BMASK) {",
"int VAR_2 = VAR_0->hflags & MIPS_HFLAG_BMASK;",
"VAR_0->hflags &= ~MIPS_HFLAG_BMASK;",
"VAR_0->bstate = BS_BRANCH;",
"save_cpu_state(VAR_0, 0);",
"switch (VAR_2 & MIPS_HFLAG_BMASK_BASE) {",
"case MIPS_... | [
0,
0,
0,
1,
0,
1,
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,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
49
],
[
51
],
... |
27,217 | static int flac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
int buf_size, void *data)
{
FlacEncodeContext *s;
const int16_t *samples = data;
int frame_bytes, out_bytes;
s = avctx->priv_data;
/* when the last block is reached, update the header in extra... | false | FFmpeg | 3d2cd42f8a19460d1fd44771646b4411c3148383 | static int flac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
int buf_size, void *data)
{
FlacEncodeContext *s;
const int16_t *samples = data;
int frame_bytes, out_bytes;
s = avctx->priv_data;
if (!data) {
s->max_framesize = s->max_encoded... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,
int VAR_2, void *VAR_3)
{
FlacEncodeContext *s;
const int16_t *VAR_4 = VAR_3;
int VAR_5, VAR_6;
s = VAR_0->priv_data;
if (!VAR_3) {
s->max_framesize = s->max_encoded_framesize;
av... | [
"static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, void *VAR_3)\n{",
"FlacEncodeContext *s;",
"const int16_t *VAR_4 = VAR_3;",
"int VAR_5, VAR_6;",
"s = VAR_0->priv_data;",
"if (!VAR_3) {",
"s->max_framesize = s->max_encoded_framesize;",
"av_md5_final(s->md5ctx, s->md5sum);",
"wri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
51
],
[
55
],
[
59
],
[
61
... |
27,218 | static int dnxhd_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DNXHDContext *ctx = avctx->priv_data;
ThreadFrame frame = { .f = data };
AVFrame *picture = data;
... | false | FFmpeg | 6f1ccca4ae3b93b6a2a820a7a0e72081ab35767c | static int dnxhd_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DNXHDContext *ctx = avctx->priv_data;
ThreadFrame frame = { .f = data };
AVFrame *picture = data;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
DNXHDContext *ctx = VAR_0->priv_data;
ThreadFrame frame = { .f = VAR_1 };
AVFrame *picture = VAR_1;
int VAR_6 =... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"DNXHDContext *ctx = VAR_0->priv_data;",
"ThreadFrame frame = { .f = VAR_1 };",
"AVFrame *picture = VAR_1;",
"int VAR_6 = 1;",
"int VAR_7, 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27,
29,
31
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
... |
27,219 | static void encode_gray_bitstream(HYuvContext *s, int count){
int i;
count/=2;
if(s->flags&CODEC_FLAG_PASS1){
for(i=0; i<count; i++){
s->stats[0][ s->temp[0][2*i ] ]++;
s->stats[0][ s->temp[0][2*i+1] ]++;
}
}else if(s->context){
for(i=0; i<... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | static void encode_gray_bitstream(HYuvContext *s, int count){
int i;
count/=2;
if(s->flags&CODEC_FLAG_PASS1){
for(i=0; i<count; i++){
s->stats[0][ s->temp[0][2*i ] ]++;
s->stats[0][ s->temp[0][2*i+1] ]++;
}
}else if(s->context){
for(i=0; i<... | {
"code": [
"static void encode_gray_bitstream(HYuvContext *s, int count){"
],
"line_no": [
1
]
} | static void FUNC_0(HYuvContext *VAR_0, int VAR_1){
int VAR_2;
VAR_1/=2;
if(VAR_0->flags&CODEC_FLAG_PASS1){
for(VAR_2=0; VAR_2<VAR_1; VAR_2++){
VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2 ] ]++;
VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2+1] ]++;
}
}else if(... | [
"static void FUNC_0(HYuvContext *VAR_0, int VAR_1){",
"int VAR_2;",
"VAR_1/=2;",
"if(VAR_0->flags&CODEC_FLAG_PASS1){",
"for(VAR_2=0; VAR_2<VAR_1; VAR_2++){",
"VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2 ] ]++;",
"VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2+1] ]++;",
"}",
"}else if(VAR_0->context){",
"for... | [
1,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
... |
27,220 | qemu_irq qemu_irq_invert(qemu_irq irq)
{
/* The default state for IRQs is low, so raise the output now. */
qemu_irq_raise(irq);
return qemu_allocate_irqs(qemu_notirq, irq, 1)[0];
}
| true | qemu | f3c7d0389fe8a2792fd4c1cf151b885de03c8f62 | qemu_irq qemu_irq_invert(qemu_irq irq)
{
qemu_irq_raise(irq);
return qemu_allocate_irqs(qemu_notirq, irq, 1)[0];
}
| {
"code": [
" return qemu_allocate_irqs(qemu_notirq, irq, 1)[0];"
],
"line_no": [
9
]
} | qemu_irq FUNC_0(qemu_irq irq)
{
qemu_irq_raise(irq);
return qemu_allocate_irqs(qemu_notirq, irq, 1)[0];
}
| [
"qemu_irq FUNC_0(qemu_irq irq)\n{",
"qemu_irq_raise(irq);",
"return qemu_allocate_irqs(qemu_notirq, irq, 1)[0];",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
]
] |
27,221 | static int dca_exss_parse_asset_header(DCAContext *s)
{
int header_pos = get_bits_count(&s->gb);
int header_size;
int channels;
int embedded_stereo = 0;
int embedded_6ch = 0;
int drc_code_present;
int extensions_mask;
int i, j;
if (get_bits_left(&s->gb) < 16)
... | true | FFmpeg | 53918a1c54b49e76c3ca517e2caada8372995712 | static int dca_exss_parse_asset_header(DCAContext *s)
{
int header_pos = get_bits_count(&s->gb);
int header_size;
int channels;
int embedded_stereo = 0;
int embedded_6ch = 0;
int drc_code_present;
int extensions_mask;
int i, j;
if (get_bits_left(&s->gb) < 16)
... | {
"code": [
" int channels;",
" int extensions_mask;"
],
"line_no": [
9,
17
]
} | static int FUNC_0(DCAContext *VAR_0)
{
int VAR_1 = get_bits_count(&VAR_0->gb);
int VAR_2;
int VAR_3;
int VAR_4 = 0;
int VAR_5 = 0;
int VAR_6;
int VAR_7;
int VAR_8, VAR_9;
if (get_bits_left(&VAR_0->gb) < 16)
return -1;
VAR_2 = get_bits(&VAR_0->... | [
"static int FUNC_0(DCAContext *VAR_0)\n{",
"int VAR_1 = get_bits_count(&VAR_0->gb);",
"int VAR_2;",
"int VAR_3;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"int VAR_6;",
"int VAR_7;",
"int VAR_8, VAR_9;",
"if (get_bits_left(&VAR_0->gb) < 16)\nreturn -1;",
"VAR_2 = get_bits(&VAR_0->gb, 9) + 1;",
"... | [
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47,
49
],
[
53
],
[
59
],
[
61,
63
... |
27,222 | void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
int common_window)
{
int w, g, w2, i, start = 0, count = 0;
int saved_bits = -(15 + FFMIN(sce->ics.max_sfb, MAX_LTP_LONG_SFB));
float *C34 = &s->scoefs[128*0], *PCD = &s->scoefs[128*1];
float *PCD34 ... | true | FFmpeg | ed08cbd7b172a1dba74230527ef761aafaf2fcce | void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
int common_window)
{
int w, g, w2, i, start = 0, count = 0;
int saved_bits = -(15 + FFMIN(sce->ics.max_sfb, MAX_LTP_LONG_SFB));
float *C34 = &s->scoefs[128*0], *PCD = &s->scoefs[128*1];
float *PCD34 ... | {
"code": [
" memset(&sce->lcoeffs[0], 0.0f, 3072*sizeof(sce->lcoeffs[0]));"
],
"line_no": [
23
]
} | void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1,
int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7 = 0, VAR_8 = 0;
int VAR_9 = -(15 + FFMIN(VAR_1->ics.max_sfb, MAX_LTP_LONG_SFB));
float *VAR_10 = &VAR_0->scoefs[128*0], *VAR_11 = &VAR_0->scoefs[128*1];
floa... | [
"void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1,\nint VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7 = 0, VAR_8 = 0;",
"int VAR_9 = -(15 + FFMIN(VAR_1->ics.max_sfb, MAX_LTP_LONG_SFB));",
"float *VAR_10 = &VAR_0->scoefs[128*0], *VAR_11 = &VAR_0->scoefs[128*1];",
"float *VAR_12 = &VAR_0->sc... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
27,223 | static void gen_std(DisasContext *ctx)
{
int rs;
TCGv EA;
rs = rS(ctx->opcode);
if ((ctx->opcode & 0x3) == 0x2) {
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
/* stq */
if (unlikely(ctx->mem_idx == 0)) {
gen_inval_e... | true | qemu | 84cab1e2f5be3ea6eaa65c9fc0422fb992946ce0 | static void gen_std(DisasContext *ctx)
{
int rs;
TCGv EA;
rs = rS(ctx->opcode);
if ((ctx->opcode & 0x3) == 0x2) {
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->mem_idx == 0)) {
gen_inval_exception(... | {
"code": [
" if ((ctx->opcode & 0x3) == 0x2) {",
"#if defined(CONFIG_USER_ONLY)",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
"#else",
" if (unlikely(ctx->mem_idx == 0)) {",
" if (unlikely(rs & 1)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_INV... | static void FUNC_0(DisasContext *VAR_0)
{
int VAR_1;
TCGv EA;
VAR_1 = rS(VAR_0->opcode);
if ((VAR_0->opcode & 0x3) == 0x2) {
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->mem_idx == 0)) {
gen_i... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"int VAR_1;",
"TCGv EA;",
"VAR_1 = rS(VAR_0->opcode);",
"if ((VAR_0->opcode & 0x3) == 0x2) {",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->mem_idx == 0)) {",
"gen_inval_exception(VAR_0, P... | [
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49... |
27,224 | static int parse_vtrk(AVFormatContext *s,
FourxmDemuxContext *fourxm, uint8_t *buf, int size,
int left)
{
AVStream *st;
/* check that there is enough data */
if (size != vtrk_SIZE || left < size + 8) {
return AVERROR_INVALIDDATA;
}
/* al... | true | FFmpeg | d256ed78ffe202a4dcc8d625becffc716bfa3977 | static int parse_vtrk(AVFormatContext *s,
FourxmDemuxContext *fourxm, uint8_t *buf, int size,
int left)
{
AVStream *st;
if (size != vtrk_SIZE || left < size + 8) {
return AVERROR_INVALIDDATA;
}
st = avformat_new_stream(s, NULL);
... | {
"code": [
" st->codec->extradata = av_malloc(4);"
],
"line_no": [
45
]
} | static int FUNC_0(AVFormatContext *VAR_0,
FourxmDemuxContext *VAR_1, uint8_t *VAR_2, int VAR_3,
int VAR_4)
{
AVStream *st;
if (VAR_3 != vtrk_SIZE || VAR_4 < VAR_3 + 8) {
return AVERROR_INVALIDDATA;
}
st = avformat_new_stream(VAR_0... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nFourxmDemuxContext *VAR_1, uint8_t *VAR_2, int VAR_3,\nint VAR_4)\n{",
"AVStream *st;",
"if (VAR_3 != vtrk_SIZE || VAR_4 < VAR_3 + 8) {",
"return AVERROR_INVALIDDATA;",
"}",
"st = avformat_new_stream(VAR_0, NULL);",
"if (!st)\nreturn AVERROR(ENOMEM);",
"avpr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25,
27
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
]
] |
27,225 | static void free_test_data(test_data *data)
{
AcpiSdtTable *temp;
int i;
g_free(data->rsdt_tables_addr);
for (i = 0; i < data->tables->len; ++i) {
temp = &g_array_index(data->tables, AcpiSdtTable, i);
g_free(temp->aml);
if (temp->aml_file &&
!temp->tmp_fi... | true | qemu | f11dc27bcc031b9dc90ffd82c503b55f83c246ca | static void free_test_data(test_data *data)
{
AcpiSdtTable *temp;
int i;
g_free(data->rsdt_tables_addr);
for (i = 0; i < data->tables->len; ++i) {
temp = &g_array_index(data->tables, AcpiSdtTable, i);
g_free(temp->aml);
if (temp->aml_file &&
!temp->tmp_fi... | {
"code": [
" g_array_free(data->tables, false);"
],
"line_no": [
49
]
} | static void FUNC_0(test_data *VAR_0)
{
AcpiSdtTable *temp;
int VAR_1;
g_free(VAR_0->rsdt_tables_addr);
for (VAR_1 = 0; VAR_1 < VAR_0->tables->len; ++VAR_1) {
temp = &g_array_index(VAR_0->tables, AcpiSdtTable, VAR_1);
g_free(temp->aml);
if (temp->aml_file &&
... | [
"static void FUNC_0(test_data *VAR_0)\n{",
"AcpiSdtTable *temp;",
"int VAR_1;",
"g_free(VAR_0->rsdt_tables_addr);",
"for (VAR_1 = 0; VAR_1 < VAR_0->tables->len; ++VAR_1) {",
"temp = &g_array_index(VAR_0->tables, AcpiSdtTable, VAR_1);",
"g_free(temp->aml);",
"if (temp->aml_file &&\n!temp->tmp_files_ret... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
... |
27,226 | static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,
unsigned segment_width)
{
#define TOP_HBAR 1
#define MID_HBAR 2
#define BOT_HBAR 4
#define LEFT_TOP_VBAR 8
#define LEFT_BOT_VBAR 16
#define RIGHT_TOP_VBAR 32
#define RIGHT_BOT_VBAR 64
stru... | true | FFmpeg | 7ab631261033a71a52563c3b23b6eef826eb5994 | static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,
unsigned segment_width)
{
#define TOP_HBAR 1
#define MID_HBAR 2
#define BOT_HBAR 4
#define LEFT_TOP_VBAR 8
#define LEFT_BOT_VBAR 16
#define RIGHT_TOP_VBAR 32
#define RIGHT_BOT_VBAR 64
stru... | {
"code": [
"static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,",
" unsigned segment_width)"
],
"line_no": [
1,
3
]
} | static void FUNC_0(int VAR_0, uint8_t *VAR_1, unsigned VAR_2,
unsigned VAR_3)
{
#define TOP_HBAR 1
#define MID_HBAR 2
#define BOT_HBAR 4
#define LEFT_TOP_VBAR 8
#define LEFT_BOT_VBAR 16
#define RIGHT_TOP_VBAR 32
#define RIGHT_BOT_VBAR 64
struct {
int... | [
"static void FUNC_0(int VAR_0, uint8_t *VAR_1, unsigned VAR_2,\nunsigned VAR_3)\n{",
"#define TOP_HBAR 1\n#define MID_HBAR 2\n#define BOT_HBAR 4\n#define LEFT_TOP_VBAR 8\n#define LEFT_BOT_VBAR 16\n#define RIGHT_TOP_VBAR 32\n#define RIGHT_BOT_VBAR 64\nstruct {",
"int x, y, w, h;",
"} VA... | [
1,
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,... |
27,227 | static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
{
int i, j, ret;
int scaler_count = 0, resampler_count = 0;
int count_queried = 0, count_merged = 0, count_already_merged = 0,
count_delayed = 0;
for (i = 0; i < graph->nb_filters; i++) {
AVFilterContext *f = graph... | false | FFmpeg | 4582e4c086bc36e20e3c0b85c8108cfa352e0d88 | static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
{
int i, j, ret;
int scaler_count = 0, resampler_count = 0;
int count_queried = 0, count_merged = 0, count_already_merged = 0,
count_delayed = 0;
for (i = 0; i < graph->nb_filters; i++) {
AVFilterContext *f = graph... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterGraph *VAR_0, AVClass *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
int VAR_5 = 0, VAR_6 = 0;
int VAR_7 = 0, VAR_8 = 0, VAR_9 = 0,
VAR_10 = 0;
for (VAR_2 = 0; VAR_2 < VAR_0->nb_filters; VAR_2++) {
AVFilterContext *f = VAR_0->filters[VAR_2];
if (formats_de... | [
"static int FUNC_0(AVFilterGraph *VAR_0, AVClass *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"int VAR_5 = 0, VAR_6 = 0;",
"int VAR_7 = 0, VAR_8 = 0, VAR_9 = 0,\nVAR_10 = 0;",
"for (VAR_2 = 0; VAR_2 < VAR_0->nb_filters; VAR_2++) {",
"AVFilterContext *f = VAR_0->filters[VAR_2];",
"if (formats_declared(f))\nc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
27,228 | static inline void mix_2f_1r_to_stereo(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] += output[2][i];
output[2][i] += output[3][i];
}
memset(output[3], 0, sizeof(output[3]));
}
| false | FFmpeg | 486637af8ef29ec215e0e0b7ecd3b5470f0e04e5 | static inline void mix_2f_1r_to_stereo(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++) {
output[1][i] += output[2][i];
output[2][i] += output[3][i];
}
memset(output[3], 0, sizeof(output[3]));
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1;
float (*VAR_2)[256] = VAR_0->audio_block.block_output;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_2[1][VAR_1] += VAR_2[2][VAR_1];
VAR_2[2][VAR_1] += VAR_2[3][VAR_1];
}
memset(VAR_2[3], 0, sizeof(VAR_2[3]));
}... | [
"static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1;",
"float (*VAR_2)[256] = VAR_0->audio_block.block_output;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_2[1][VAR_1] += VAR_2[2][VAR_1];",
"VAR_2[2][VAR_1] += VAR_2[3][VAR_1];",
"}",
"memset(VAR_2[3], 0, sizeof(VAR_2[3]));",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
27,229 | static int decode_cabac_mb_cbp_chroma( H264Context *h) {
int ctx;
int cbp_a, cbp_b;
cbp_a = (h->left_cbp>>4)&0x03;
cbp_b = (h-> top_cbp>>4)&0x03;
ctx = 0;
if( cbp_a > 0 ) ctx++;
if( cbp_b > 0 ) ctx += 2;
if( get_cabac( &h->cabac, &h->cabac_state[77 + ctx] ) == 0 )
re... | false | FFmpeg | 851ded8918c977d8160c6617b69604f758cabf50 | static int decode_cabac_mb_cbp_chroma( H264Context *h) {
int ctx;
int cbp_a, cbp_b;
cbp_a = (h->left_cbp>>4)&0x03;
cbp_b = (h-> top_cbp>>4)&0x03;
ctx = 0;
if( cbp_a > 0 ) ctx++;
if( cbp_b > 0 ) ctx += 2;
if( get_cabac( &h->cabac, &h->cabac_state[77 + ctx] ) == 0 )
re... | {
"code": [],
"line_no": []
} | static int FUNC_0( H264Context *VAR_0) {
int VAR_1;
int VAR_2, VAR_3;
VAR_2 = (VAR_0->left_cbp>>4)&0x03;
VAR_3 = (VAR_0-> top_cbp>>4)&0x03;
VAR_1 = 0;
if( VAR_2 > 0 ) VAR_1++;
if( VAR_3 > 0 ) VAR_1 += 2;
if( get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] ) == 0 )
... | [
"static int FUNC_0( H264Context *VAR_0) {",
"int VAR_1;",
"int VAR_2, VAR_3;",
"VAR_2 = (VAR_0->left_cbp>>4)&0x03;",
"VAR_3 = (VAR_0-> top_cbp>>4)&0x03;",
"VAR_1 = 0;",
"if( VAR_2 > 0 ) VAR_1++;",
"if( VAR_3 > 0 ) VAR_1 += 2;",
"if( get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] ) == 0 )\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
27,230 | static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt)
{
MP3Context *mp3 = s->priv_data;
if (pkt && pkt->data && pkt->size >= 4) {
MPADecodeHeader c;
int av_unused base;
avpriv_mpegaudio_decode_header(&c, AV_RB32(pkt->data));
if (!mp3->initial_bitrate)... | false | FFmpeg | cb65b32c97b06fc611b53c1ab77a2edbaadee84f | static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt)
{
MP3Context *mp3 = s->priv_data;
if (pkt && pkt->data && pkt->size >= 4) {
MPADecodeHeader c;
int av_unused base;
avpriv_mpegaudio_decode_header(&c, AV_RB32(pkt->data));
if (!mp3->initial_bitrate)... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MP3Context *mp3 = VAR_0->priv_data;
if (VAR_1 && VAR_1->data && VAR_1->size >= 4) {
MPADecodeHeader c;
int VAR_2 base;
avpriv_mpegaudio_decode_header(&c, AV_RB32(VAR_1->data));
if (!mp3->initial_bitrate)
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MP3Context *mp3 = VAR_0->priv_data;",
"if (VAR_1 && VAR_1->data && VAR_1->size >= 4) {",
"MPADecodeHeader c;",
"int VAR_2 base;",
"avpriv_mpegaudio_decode_header(&c, AV_RB32(VAR_1->data));",
"if (!mp3->initial_bitrate)\nmp3->initial_bitr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21,
23
],
[
25,
27
],
[
31,
35
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
55
],
[
59,
61
],
[
63,
67,
69
],
... |
27,231 | int has_altivec(void)
{
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC) return 1;
return 0;
#else /* __AMIGAOS4__ */
#ifdef SYS_DARWIN
int sels[2] = {CTL_HW, HW_VECTOR... | false | FFmpeg | c97f54020d5d55511e28622551f13233bd8ceb56 | int has_altivec(void)
{
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC) return 1;
return 0;
#else
#ifdef SYS_DARWIN
int sels[2] = {CTL_HW, HW_VECTORUNIT};
int ha... | {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC) return 1;
return 0;
#else
#ifdef SYS_DARWIN
int sels[2] = {CTL_HW, HW_VECTORUNIT};
int has_vu ... | [
"int FUNC_0(void)\n{",
"#ifdef __AMIGAOS4__\nULONG result = 0;",
"extern struct ExecIFace *IExec;",
"IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);",
"if (result == VECTORTYPE_ALTIVEC) return 1;",
"return 0;",
"#else\n#ifdef SYS_DARWIN\nint sels[2] = {CTL_HW, HW_VECTORUNIT};",
"int has_vu ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19,
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41,
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
27,232 | static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
{
AVCodecContext *avctx = s->avctx;
Mpeg1Context *s1 = (Mpeg1Context *) s;
int ret;
if (s->picture_structure == PICT_FRAME)
s->first_field = 0;
else
s->first_field ^= 1;
/* start fr... | false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
{
AVCodecContext *avctx = s->avctx;
Mpeg1Context *s1 = (Mpeg1Context *) s;
int ret;
if (s->picture_structure == PICT_FRAME)
s->first_field = 0;
else
s->first_field ^= 1;
if (s... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
AVCodecContext *avctx = VAR_0->avctx;
Mpeg1Context *s1 = (Mpeg1Context *) VAR_0;
int VAR_3;
if (VAR_0->picture_structure == PICT_FRAME)
VAR_0->first_field = 0;
else
VAR_0->first_field ^= 1;
... | [
"static int FUNC_0(MpegEncContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"AVCodecContext *avctx = VAR_0->avctx;",
"Mpeg1Context *s1 = (Mpeg1Context *) VAR_0;",
"int VAR_3;",
"if (VAR_0->picture_structure == PICT_FRAME)\nVAR_0->first_field = 0;",
"else\nVAR_0->first_field ^= 1;",
"if (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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[
53,
55
],
[
57
],
[
59
],
[... |
27,233 | static inline int cris_bound_w(int v, int b)
{
int r = v;
asm ("bound.w\t%1, %0\n" : "+r" (r) : "ri" (b));
return r;
}
| true | qemu | 21ce148c7ec71ee32834061355a5ecfd1a11f90f | static inline int cris_bound_w(int v, int b)
{
int r = v;
asm ("bound.w\t%1, %0\n" : "+r" (r) : "ri" (b));
return r;
}
| {
"code": [
"static inline int cris_bound_w(int v, int b)"
],
"line_no": [
1
]
} | static inline int FUNC_0(int VAR_0, int VAR_1)
{
int VAR_2 = VAR_0;
asm ("bound.w\t%1, %0\n" : "+VAR_2" (VAR_2) : "ri" (VAR_1));
return VAR_2;
}
| [
"static inline int FUNC_0(int VAR_0, int VAR_1)\n{",
"int VAR_2 = VAR_0;",
"asm (\"bound.w\\t%1, %0\\n\" : \"+VAR_2\" (VAR_2) : \"ri\" (VAR_1));",
"return VAR_2;",
"}"
] | [
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
27,234 | static void mpeg_decode_picture_coding_extension(MpegEncContext *s)
{
s->full_pel[0] = s->full_pel[1] = 0;
s->mpeg_f_code[0][0] = get_bits(&s->gb, 4);
s->mpeg_f_code[0][1] = get_bits(&s->gb, 4);
s->mpeg_f_code[1][0] = get_bits(&s->gb, 4);
s->mpeg_f_code[1][1] = get_bits(&s->gb, 4);
s->int... | true | FFmpeg | 1cb0edb40b8e94e1a50ad40c40d43e34ed8435fe | static void mpeg_decode_picture_coding_extension(MpegEncContext *s)
{
s->full_pel[0] = s->full_pel[1] = 0;
s->mpeg_f_code[0][0] = get_bits(&s->gb, 4);
s->mpeg_f_code[0][1] = get_bits(&s->gb, 4);
s->mpeg_f_code[1][0] = get_bits(&s->gb, 4);
s->mpeg_f_code[1][1] = get_bits(&s->gb, 4);
s->int... | {
"code": [
" dprintf(\"intra_dc_precion=%d\\n\", s->intra_dc_precision);"
],
"line_no": [
39
]
} | static void FUNC_0(MpegEncContext *VAR_0)
{
VAR_0->full_pel[0] = VAR_0->full_pel[1] = 0;
VAR_0->mpeg_f_code[0][0] = get_bits(&VAR_0->gb, 4);
VAR_0->mpeg_f_code[0][1] = get_bits(&VAR_0->gb, 4);
VAR_0->mpeg_f_code[1][0] = get_bits(&VAR_0->gb, 4);
VAR_0->mpeg_f_code[1][1] = get_bits(&VAR_0->gb, 4... | [
"static void FUNC_0(MpegEncContext *VAR_0)\n{",
"VAR_0->full_pel[0] = VAR_0->full_pel[1] = 0;",
"VAR_0->mpeg_f_code[0][0] = get_bits(&VAR_0->gb, 4);",
"VAR_0->mpeg_f_code[0][1] = get_bits(&VAR_0->gb, 4);",
"VAR_0->mpeg_f_code[1][0] = get_bits(&VAR_0->gb, 4);",
"VAR_0->mpeg_f_code[1][1] = get_bits(&VAR_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
... |
27,235 | static int xen_remove_from_physmap(XenIOState *state,
hwaddr start_addr,
ram_addr_t size)
{
unsigned long i = 0;
int rc = 0;
XenPhysmap *physmap = NULL;
hwaddr phys_offset = 0;
physmap = get_physmapping(state, start_addr... | true | qemu | c5633d998a27502ad8cc10c2d46f91b02555ae7a | static int xen_remove_from_physmap(XenIOState *state,
hwaddr start_addr,
ram_addr_t size)
{
unsigned long i = 0;
int rc = 0;
XenPhysmap *physmap = NULL;
hwaddr phys_offset = 0;
physmap = get_physmapping(state, start_addr... | {
"code": [
" free(physmap);"
],
"line_no": [
79
]
} | static int FUNC_0(XenIOState *VAR_0,
hwaddr VAR_1,
ram_addr_t VAR_2)
{
unsigned long VAR_3 = 0;
int VAR_4 = 0;
XenPhysmap *physmap = NULL;
hwaddr phys_offset = 0;
physmap = get_physmapping(VAR_0, VAR_1, VAR_2);
if (... | [
"static int FUNC_0(XenIOState *VAR_0,\nhwaddr VAR_1,\nram_addr_t VAR_2)\n{",
"unsigned long VAR_3 = 0;",
"int VAR_4 = 0;",
"XenPhysmap *physmap = NULL;",
"hwaddr phys_offset = 0;",
"physmap = get_physmapping(VAR_0, VAR_1, VAR_2);",
"if (physmap == NULL) {",
"return -1;",
"}",
"phys_offset = physma... | [
0,
0,
0,
0,
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
27,236 | static int mpegvideo_probe(AVProbeData *p)
{
uint32_t code= -1;
int pic=0, seq=0, slice=0, pspack=0, vpes=0, apes=0, res=0, sicle=0;
int i;
uint32_t last = 0;
for(i=0; i<p->buf_size; i++){
code = (code<<8) + p->buf[i];
if ((code & 0xffffff00) == 0x100) {
switch... | true | FFmpeg | 3836af476534e6f84be7b3a19afce3530af50703 | static int mpegvideo_probe(AVProbeData *p)
{
uint32_t code= -1;
int pic=0, seq=0, slice=0, pspack=0, vpes=0, apes=0, res=0, sicle=0;
int i;
uint32_t last = 0;
for(i=0; i<p->buf_size; i++){
code = (code<<8) + p->buf[i];
if ((code & 0xffffff00) == 0x100) {
switch... | {
"code": [
" int i;",
" case SEQ_START_CODE: seq++; break;"
],
"line_no": [
9,
23
]
} | static int FUNC_0(AVProbeData *VAR_0)
{
uint32_t code= -1;
int VAR_1=0, VAR_2=0, VAR_3=0, VAR_4=0, VAR_5=0, VAR_6=0, VAR_7=0, VAR_8=0;
int VAR_9;
uint32_t last = 0;
for(VAR_9=0; VAR_9<VAR_0->buf_size; VAR_9++){
code = (code<<8) + VAR_0->buf[VAR_9];
if ((code & 0xffffff00) =... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"uint32_t code= -1;",
"int VAR_1=0, VAR_2=0, VAR_3=0, VAR_4=0, VAR_5=0, VAR_6=0, VAR_7=0, VAR_8=0;",
"int VAR_9;",
"uint32_t last = 0;",
"for(VAR_9=0; VAR_9<VAR_0->buf_size; VAR_9++){",
"code = (code<<8) + VAR_0->buf[VAR_9];",
"if ((code & 0xffffff00) == 0x1... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
27,238 | static void usb_ohci_init(OHCIState *ohci, DeviceState *dev,
int num_ports, dma_addr_t localmem_base,
char *masterbus, uint32_t firstport,
AddressSpace *as, Error **errp)
{
Error *err = NULL;
int i;
ohci->as = as;
if (usb_fram... | true | qemu | d400fc018b326104d26d730e5cc8c36c1f662c34 | static void usb_ohci_init(OHCIState *ohci, DeviceState *dev,
int num_ports, dma_addr_t localmem_base,
char *masterbus, uint32_t firstport,
AddressSpace *as, Error **errp)
{
Error *err = NULL;
int i;
ohci->as = as;
if (usb_fram... | {
"code": [],
"line_no": []
} | static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1,
int VAR_2, dma_addr_t VAR_3,
char *VAR_4, uint32_t VAR_5,
AddressSpace *VAR_6, Error **VAR_7)
{
Error *err = NULL;
int VAR_8;
VAR_0->VAR_6 = VAR_6;
if (usb_frame_time ==... | [
"static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1,\nint VAR_2, dma_addr_t VAR_3,\nchar *VAR_4, uint32_t VAR_5,\nAddressSpace *VAR_6, Error **VAR_7)\n{",
"Error *err = NULL;",
"int VAR_8;",
"VAR_0->VAR_6 = VAR_6;",
"if (usb_frame_time == 0) {",
"#ifdef OHCI_TIME_WARP\nusb_frame_time = NANOSECONDS_PE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4,
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10,
11
],
[
12
],
[
13,
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
23
],
[
24
],... |
27,239 | static void isabus_fdc_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = isabus_fdc_realize;
dc->fw_name = "fdc";
dc->no_user = 1;
dc->reset = fdctrl_external_reset_isa;
dc->vmsd = &vmstate_isa_fdc;
dc->props = isa_fdc_properties;
... | true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void isabus_fdc_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = isabus_fdc_realize;
dc->fw_name = "fdc";
dc->no_user = 1;
dc->reset = fdctrl_external_reset_isa;
dc->vmsd = &vmstate_isa_fdc;
dc->props = isa_fdc_properties;
... | {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = isabus_fdc_realize;
dc->fw_name = "fdc";
dc->no_user = 1;
dc->reset = fdctrl_external_reset_isa;
dc->vmsd = &vmstate_isa_fdc;
dc->props = isa_fdc_properties;
set_bit(DEVI... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = isabus_fdc_realize;",
"dc->fw_name = \"fdc\";",
"dc->no_user = 1;",
"dc->reset = fdctrl_external_reset_isa;",
"dc->vmsd = &vmstate_isa_fdc;",
"dc->props = isa_fdc_properties;",
"set_bit... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
27,240 | static int64_t expr_unary(Monitor *mon)
{
int64_t n;
char *p;
int ret;
switch(*pch) {
case '+':
next();
n = expr_unary(mon);
break;
case '-':
next();
n = -expr_unary(mon);
break;
case '~':
next();
n = ~expr_una... | false | qemu | 277acfe8b38de35be8cb6e274678b5a7919c2d44 | static int64_t expr_unary(Monitor *mon)
{
int64_t n;
char *p;
int ret;
switch(*pch) {
case '+':
next();
n = expr_unary(mon);
break;
case '-':
next();
n = -expr_unary(mon);
break;
case '~':
next();
n = ~expr_una... | {
"code": [],
"line_no": []
} | static int64_t FUNC_0(Monitor *mon)
{
int64_t n;
char *VAR_0;
int VAR_1;
switch(*pch) {
case '+':
next();
n = FUNC_0(mon);
break;
case '-':
next();
n = -FUNC_0(mon);
break;
case '~':
next();
n = ~FUNC_0(mon);
... | [
"static int64_t FUNC_0(Monitor *mon)\n{",
"int64_t n;",
"char *VAR_0;",
"int VAR_1;",
"switch(*pch) {",
"case '+':\nnext();",
"n = FUNC_0(mon);",
"break;",
"case '-':\nnext();",
"n = -FUNC_0(mon);",
"break;",
"case '~':\nnext();",
"n = ~FUNC_0(mon);",
"break;",
"case '(':\nnext();",
"n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
... |
27,241 | mst_fpga_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
{
mst_irq_state *s = (mst_irq_state *) opaque;
value &= 0xffffffff;
switch (addr) {
case MST_LEDDAT1:
s->leddat1 = value;
break;
case MST_LEDDAT2:
s->leddat2 = value;
break;
case MST_LEDCTRL:
s->ledctrl = value;
brea... | false | qemu | b2bedb214469af55179d907a60cd67fed6b0779e | mst_fpga_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
{
mst_irq_state *s = (mst_irq_state *) opaque;
value &= 0xffffffff;
switch (addr) {
case MST_LEDDAT1:
s->leddat1 = value;
break;
case MST_LEDDAT2:
s->leddat2 = value;
break;
case MST_LEDCTRL:
s->ledctrl = value;
brea... | {
"code": [],
"line_no": []
} | FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{
mst_irq_state *s = (mst_irq_state *) VAR_0;
VAR_2 &= 0xffffffff;
switch (VAR_1) {
case MST_LEDDAT1:
s->leddat1 = VAR_2;
break;
case MST_LEDDAT2:
s->leddat2 = VAR_2;
break;
case MST_LEDCTRL:
s->ledctrl = VAR_2;
break;
case... | [
"FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{",
"mst_irq_state *s = (mst_irq_state *) VAR_0;",
"VAR_2 &= 0xffffffff;",
"switch (VAR_1) {",
"case MST_LEDDAT1:\ns->leddat1 = VAR_2;",
"break;",
"case MST_LEDDAT2:\ns->leddat2 = VAR_2;",
"break;",
"case MST_LEDCTRL:\ns->ledctrl = 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49... |
27,243 | static int get_std_framerate(int i){
if(i<60*12) return i*1001;
else return ((const int[]){24,30,60,12,15,48})[i-60*12]*1000*12;
}
| false | FFmpeg | 59163139679b0aa2cb84cd6d7a3f696ed5a5813a | static int get_std_framerate(int i){
if(i<60*12) return i*1001;
else return ((const int[]){24,30,60,12,15,48})[i-60*12]*1000*12;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0){
if(VAR_0<60*12) return VAR_0*1001;
else return ((const int[]){24,30,60,12,15,48})[VAR_0-60*12]*1000*12;
}
| [
"static int FUNC_0(int VAR_0){",
"if(VAR_0<60*12) return VAR_0*1001;",
"else return ((const int[]){24,30,60,12,15,48})[VAR_0-60*12]*1000*12;",
"}"
] | [
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
]
] |
27,244 | void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
{
int reslevelno, bandno, precno;
for (reslevelno = 0;
comp->reslevel && reslevelno < codsty->nreslevels;
reslevelno++) {
Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
for (bandn... | false | FFmpeg | 912ce9dd2080c5837285a471d750fa311e09b555 | void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
{
int reslevelno, bandno, precno;
for (reslevelno = 0;
comp->reslevel && reslevelno < codsty->nreslevels;
reslevelno++) {
Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
for (bandn... | {
"code": [],
"line_no": []
} | void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
for (VAR_2 = 0;
VAR_0->reslevel && VAR_2 < VAR_1->nreslevels;
VAR_2++) {
Jpeg2000ResLevel *reslevel = VAR_0->reslevel + VAR_2;
for (VAR_3 = 0; VAR_3 < reslevel->nbands; VAR_3++... | [
"void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"for (VAR_2 = 0;",
"VAR_0->reslevel && VAR_2 < VAR_1->nreslevels;",
"VAR_2++) {",
"Jpeg2000ResLevel *reslevel = VAR_0->reslevel + VAR_2;",
"for (VAR_3 = 0; VAR_3 < reslevel->nbands; VAR_3++) {",
"Jpeg20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
27,245 | static void do_cont(int argc, const char **argv)
{
vm_start();
}
| false | qemu | 9307c4c1d93939db9b04117b654253af5113dc21 | static void do_cont(int argc, const char **argv)
{
vm_start();
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, const char **VAR_1)
{
vm_start();
}
| [
"static void FUNC_0(int VAR_0, const char **VAR_1)\n{",
"vm_start();",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
27,246 | static inline void _t_gen_mov_TN_env(TCGv tn, int offset)
{
if (offset > sizeof(CPUCRISState)) {
fprintf(stderr, "wrong load from env from off=%d\n", offset);
}
tcg_gen_ld_tl(tn, cpu_env, offset);
}
| false | qemu | 37654d9e6af84003982f8b9a5d59a4aef28e0a79 | static inline void _t_gen_mov_TN_env(TCGv tn, int offset)
{
if (offset > sizeof(CPUCRISState)) {
fprintf(stderr, "wrong load from env from off=%d\n", offset);
}
tcg_gen_ld_tl(tn, cpu_env, offset);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, int VAR_1)
{
if (VAR_1 > sizeof(CPUCRISState)) {
fprintf(stderr, "wrong load from env from off=%d\n", VAR_1);
}
tcg_gen_ld_tl(VAR_0, cpu_env, VAR_1);
}
| [
"static inline void FUNC_0(TCGv VAR_0, int VAR_1)\n{",
"if (VAR_1 > sizeof(CPUCRISState)) {",
"fprintf(stderr, \"wrong load from env from off=%d\\n\", VAR_1);",
"}",
"tcg_gen_ld_tl(VAR_0, cpu_env, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
27,248 | static const char *bdrv_get_parent_name(const BlockDriverState *bs)
{
BdrvChild *c;
const char *name;
/* If multiple parents have a name, just pick the first one. */
QLIST_FOREACH(c, &bs->parents, next_parent) {
if (c->role->get_name) {
name = c->role->get_name(c);
... | false | qemu | 1f0c461b82d5ec2664ca0cfc9548f80da87a8f8a | static const char *bdrv_get_parent_name(const BlockDriverState *bs)
{
BdrvChild *c;
const char *name;
QLIST_FOREACH(c, &bs->parents, next_parent) {
if (c->role->get_name) {
name = c->role->get_name(c);
if (name && *name) {
return name;
... | {
"code": [],
"line_no": []
} | static const char *FUNC_0(const BlockDriverState *VAR_0)
{
BdrvChild *c;
const char *VAR_1;
QLIST_FOREACH(c, &VAR_0->parents, next_parent) {
if (c->role->get_name) {
VAR_1 = c->role->get_name(c);
if (VAR_1 && *VAR_1) {
return VAR_1;
... | [
"static const char *FUNC_0(const BlockDriverState *VAR_0)\n{",
"BdrvChild *c;",
"const char *VAR_1;",
"QLIST_FOREACH(c, &VAR_0->parents, next_parent) {",
"if (c->role->get_name) {",
"VAR_1 = c->role->get_name(c);",
"if (VAR_1 && *VAR_1) {",
"return VAR_1;",
"}",
"}",
"}",
"return NULL;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.