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 |
|---|---|---|---|---|---|---|---|---|---|---|
10,958 | struct pxa2xx_state_s *pxa270_init(unsigned int sdram_size,
DisplayState *ds, const char *revision)
{
struct pxa2xx_state_s *s;
struct pxa2xx_ssp_s *ssp;
int iomemtype, i;
s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));
if (revision && strncmp(revi... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | struct pxa2xx_state_s *pxa270_init(unsigned int sdram_size,
DisplayState *ds, const char *revision)
{
struct pxa2xx_state_s *s;
struct pxa2xx_ssp_s *ssp;
int iomemtype, i;
s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));
if (revision && strncmp(revi... | {
"code": [
" cpu_register_physical_memory(s->cm_base, 0xfff, iomemtype);",
" cpu_register_physical_memory(s->mm_base, 0xfff, iomemtype);",
" cpu_register_physical_memory(s->pm_base, 0xff, iomemtype);",
" cpu_register_physical_memory(ssp[i].base, 0xfff, iomemtype);",
" cpu_regis... | struct pxa2xx_state_s *FUNC_0(unsigned int VAR_0,
DisplayState *VAR_1, const char *VAR_2)
{
struct pxa2xx_state_s *VAR_3;
struct pxa2xx_ssp_s *VAR_4;
int VAR_5, VAR_6;
VAR_3 = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));
if (VAR_2 && strncmp(VAR_2, ... | [
"struct pxa2xx_state_s *FUNC_0(unsigned int VAR_0,\nDisplayState *VAR_1, const char *VAR_2)\n{",
"struct pxa2xx_state_s *VAR_3;",
"struct pxa2xx_ssp_s *VAR_4;",
"int VAR_5, VAR_6;",
"VAR_3 = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));",
"if (VAR_2 && strncmp(VAR_2, \"pxa27\", 5)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
37,
39
],
[
41,
43
],
[
47
],
[
51
],
[
55,
57
],
[
61
... |
10,959 | static void apc_init(target_phys_addr_t power_base, qemu_irq cpu_halt)
{
DeviceState *dev;
SysBusDevice *s;
dev = qdev_create(NULL, "apc");
qdev_init(dev);
s = sysbus_from_qdev(dev);
/* Power management (APC) XXX: not a Slavio device */
sysbus_mmio_map(s, 0, power_base);
sysbu... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | static void apc_init(target_phys_addr_t power_base, qemu_irq cpu_halt)
{
DeviceState *dev;
SysBusDevice *s;
dev = qdev_create(NULL, "apc");
qdev_init(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, power_base);
sysbus_connect_irq(s, 0, cpu_halt);
}
| {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | static void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1)
{
DeviceState *dev;
SysBusDevice *s;
dev = qdev_create(NULL, "apc");
qdev_init(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, VAR_0);
sysbus_connect_irq(s, 0, VAR_1);
}
| [
"static void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"dev = qdev_create(NULL, \"apc\");",
"qdev_init(dev);",
"s = sysbus_from_qdev(dev);",
"sysbus_mmio_map(s, 0, VAR_0);",
"sysbus_connect_irq(s, 0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
10,961 | static int wc3_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
Wc3DemuxContext *wc3 = s->priv_data;
ByteIOContext *pb = s->pb;
unsigned int fourcc_tag;
unsigned int size;
AVStream *st;
int ret = 0;
int current_palette = 0;
char *buffer;
... | true | FFmpeg | 24ae353dfbe61019a86093a9c5cd15476aabef49 | static int wc3_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
Wc3DemuxContext *wc3 = s->priv_data;
ByteIOContext *pb = s->pb;
unsigned int fourcc_tag;
unsigned int size;
AVStream *st;
int ret = 0;
int current_palette = 0;
char *buffer;
... | {
"code": [
" int current_palette = 0;",
" int i;",
" wc3->palettes = NULL;",
" wc3->palette_count = 0;",
" url_fseek(pb, 8, SEEK_CUR);",
" wc3->palette_count = get_le32(pb);",
" if((unsigned)wc3->palette_count >= UINT_MAX / PALETTE_SIZE){",
... | static int FUNC_0(AVFormatContext *VAR_0,
AVFormatParameters *VAR_1)
{
Wc3DemuxContext *wc3 = VAR_0->priv_data;
ByteIOContext *pb = VAR_0->pb;
unsigned int VAR_2;
unsigned int VAR_3;
AVStream *st;
int VAR_4 = 0;
int VAR_5 = 0;
char *VAR_6;
int VA... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{",
"Wc3DemuxContext *wc3 = VAR_0->priv_data;",
"ByteIOContext *pb = VAR_0->pb;",
"unsigned int VAR_2;",
"unsigned int VAR_3;",
"AVStream *st;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"char *VAR_6;",
"int VAR_7;",
"wc3->width =... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
53
],
[
55
],
[... |
10,963 | struct icp_state *xics_system_init(int nr_irqs)
{
CPUPPCState *env;
CPUState *cpu;
int max_server_num;
struct icp_state *icp;
struct ics_state *ics;
max_server_num = -1;
for (env = first_cpu; env != NULL; env = env->next_cpu) {
cpu = CPU(ppc_env_get_cpu(env));
if ... | true | qemu | 7b5651605836fd29572fd4c8769af5378d351712 | struct icp_state *xics_system_init(int nr_irqs)
{
CPUPPCState *env;
CPUState *cpu;
int max_server_num;
struct icp_state *icp;
struct ics_state *ics;
max_server_num = -1;
for (env = first_cpu; env != NULL; env = env->next_cpu) {
cpu = CPU(ppc_env_get_cpu(env));
if ... | {
"code": [
"struct icp_state *xics_system_init(int nr_irqs)",
" CPUPPCState *env;",
" CPUState *cpu;",
" int max_server_num;",
" struct icp_state *icp;",
" struct ics_state *ics;",
" max_server_num = -1;",
" for (env = first_cpu; env != NULL; env = env->next_cpu) ... | struct icp_state *FUNC_0(int VAR_0)
{
CPUPPCState *env;
CPUState *cpu;
int VAR_1;
struct icp_state *VAR_2;
struct ics_state *VAR_3;
VAR_1 = -1;
for (env = first_cpu; env != NULL; env = env->next_cpu) {
cpu = CPU(ppc_env_get_cpu(env));
if (cpu->cpu_index > VAR_1) {... | [
"struct icp_state *FUNC_0(int VAR_0)\n{",
"CPUPPCState *env;",
"CPUState *cpu;",
"int VAR_1;",
"struct icp_state *VAR_2;",
"struct ics_state *VAR_3;",
"VAR_1 = -1;",
"for (env = first_cpu; env != NULL; env = env->next_cpu) {",
"cpu = CPU(ppc_env_get_cpu(env));",
"if (cpu->cpu_index > VAR_1) {",
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
0,
1,
1,
1,
1,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
... |
10,966 | static uint16_t nvme_write_zeros(NvmeCtrl *n, NvmeNamespace *ns, NvmeCmd *cmd,
NvmeRequest *req)
{
NvmeRwCmd *rw = (NvmeRwCmd *)cmd;
const uint8_t lba_index = NVME_ID_NS_FLBAS_INDEX(ns->id_ns.flbas);
const uint8_t data_shift = ns->id_ns.lbaf[lba_index].ds;
uint64_t slba = le64_to_cpu(rw->slba)... | true | qemu | 1ee24514aed34760fb2863d98bea3a1b705d9c9f | static uint16_t nvme_write_zeros(NvmeCtrl *n, NvmeNamespace *ns, NvmeCmd *cmd,
NvmeRequest *req)
{
NvmeRwCmd *rw = (NvmeRwCmd *)cmd;
const uint8_t lba_index = NVME_ID_NS_FLBAS_INDEX(ns->id_ns.flbas);
const uint8_t data_shift = ns->id_ns.lbaf[lba_index].ds;
uint64_t slba = le64_to_cpu(rw->slba)... | {
"code": [
" if (slba + nlb > ns->id_ns.nsze) {"
],
"line_no": [
23
]
} | static uint16_t FUNC_0(NvmeCtrl *n, NvmeNamespace *ns, NvmeCmd *cmd,
NvmeRequest *req)
{
NvmeRwCmd *rw = (NvmeRwCmd *)cmd;
const uint8_t VAR_0 = NVME_ID_NS_FLBAS_INDEX(ns->id_ns.flbas);
const uint8_t VAR_1 = ns->id_ns.lbaf[VAR_0].ds;
uint64_t slba = le64_to_cpu(rw->slba);
uint32_t nlb = ... | [
"static uint16_t FUNC_0(NvmeCtrl *n, NvmeNamespace *ns, NvmeCmd *cmd,\nNvmeRequest *req)\n{",
"NvmeRwCmd *rw = (NvmeRwCmd *)cmd;",
"const uint8_t VAR_0 = NVME_ID_NS_FLBAS_INDEX(ns->id_ns.flbas);",
"const uint8_t VAR_1 = ns->id_ns.lbaf[VAR_0].ds;",
"uint64_t slba = le64_to_cpu(rw->slba);",
"uint32_t nlb =... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
]
] |
10,967 | static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame, packet_sequence... | true | FFmpeg | 67318187fbba382d887f9581dde48a50842f1bea | static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame, packet_sequence... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket* VAR_3)
{
WmallDecodeCtx *s = VAR_0->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
int VAR_6, VAR_7, VAR_8;
s->frame->nb_samples = 0;... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket* VAR_3)\n{",
"WmallDecodeCtx *s = VAR_0->priv_data;",
"GetBitContext* gb = &s->pgb;",
"const uint8_t* VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"int VAR_6, VAR_7, VAR_8;",
"s->frame->nb_samples = 0;",
"if (!V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12,
13
],
[
14
],
[
15
],
[
16,
17
],
[
18
],
[
19
],
[
20
],
[
22
],
[
23
],
[
... |
10,968 | int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size1)
{
int size, l;
if (f->is_write) {
abort();
}
size = size1;
while (size > 0) {
l = f->buf_size - f->buf_index;
if (l == 0) {
qemu_fill_buffer(f);
l = f->buf_size - f->buf_index;
... | true | qemu | c63807244fb55071675907460a0ecf228c1766c8 | int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size1)
{
int size, l;
if (f->is_write) {
abort();
}
size = size1;
while (size > 0) {
l = f->buf_size - f->buf_index;
if (l == 0) {
qemu_fill_buffer(f);
l = f->buf_size - f->buf_index;
... | {
"code": [
"int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size1)",
" int size, l;",
" size = size1;",
" while (size > 0) {",
" l = f->buf_size - f->buf_index;",
" if (l == 0) {",
" qemu_fill_buffer(f);",
" l = f->buf_size - f->buf_inde... | int FUNC_0(QEMUFile *VAR_0, uint8_t *VAR_1, int VAR_2)
{
int VAR_3, VAR_4;
if (VAR_0->is_write) {
abort();
}
VAR_3 = VAR_2;
while (VAR_3 > 0) {
VAR_4 = VAR_0->buf_size - VAR_0->buf_index;
if (VAR_4 == 0) {
qemu_fill_buffer(VAR_0);
VAR_4 ... | [
"int FUNC_0(QEMUFile *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4;",
"if (VAR_0->is_write) {",
"abort();",
"}",
"VAR_3 = VAR_2;",
"while (VAR_3 > 0) {",
"VAR_4 = VAR_0->buf_size - VAR_0->buf_index;",
"if (VAR_4 == 0) {",
"qemu_fill_buffer(VAR_0);",
"VAR_4 = VAR_0->buf_size - VAR_0->... | [
1,
1,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
10,969 | static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
{
AVIContext *avi = s->priv_data;
ByteIOContext *pb = s->pb;
int n, d[8], size;
offset_t i, sync;
void* dstr;
if (ENABLE_DV_DEMUXER && avi->dv_demux) {
size = dv_get_packet(avi->dv_demux, pkt);
if (size >= 0)
... | true | FFmpeg | fce88d52ca0b694a614e2cf030c3f622db65b164 | static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
{
AVIContext *avi = s->priv_data;
ByteIOContext *pb = s->pb;
int n, d[8], size;
offset_t i, sync;
void* dstr;
if (ENABLE_DV_DEMUXER && avi->dv_demux) {
size = dv_get_packet(avi->dv_demux, pkt);
if (size >= 0)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
AVIContext *avi = VAR_0->priv_data;
ByteIOContext *pb = VAR_0->pb;
int VAR_2, VAR_3[8], VAR_8;
offset_t VAR_7, sync;
void* VAR_5;
if (ENABLE_DV_DEMUXER && avi->dv_demux) {
VAR_8 = dv_get_packet(avi->dv_demux, VAR_1);
if... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"AVIContext *avi = VAR_0->priv_data;",
"ByteIOContext *pb = VAR_0->pb;",
"int VAR_2, VAR_3[8], VAR_8;",
"offset_t VAR_7, sync;",
"void* VAR_5;",
"if (ENABLE_DV_DEMUXER && avi->dv_demux) {",
"VAR_8 = dv_get_packet(avi->dv_demux, VAR_1);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10,
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
... |
10,972 | static bool is_zero_cluster_top_locked(BlockDriverState *bs, int64_t start)
{
BDRVQcow2State *s = bs->opaque;
int nr = s->cluster_sectors;
uint64_t off;
int ret;
ret = qcow2_get_cluster_offset(bs, start << BDRV_SECTOR_BITS, &nr, &off);
assert(nr == s->cluster_sectors);
return ret =... | true | qemu | ebb718a5c7240f6ffb308e0d0b67a92c3b63b91c | static bool is_zero_cluster_top_locked(BlockDriverState *bs, int64_t start)
{
BDRVQcow2State *s = bs->opaque;
int nr = s->cluster_sectors;
uint64_t off;
int ret;
ret = qcow2_get_cluster_offset(bs, start << BDRV_SECTOR_BITS, &nr, &off);
assert(nr == s->cluster_sectors);
return ret =... | {
"code": [
" BDRVQcow2State *s = bs->opaque;",
"static bool is_zero_cluster_top_locked(BlockDriverState *bs, int64_t start)",
" BDRVQcow2State *s = bs->opaque;",
" int nr = s->cluster_sectors;",
" uint64_t off;",
" int ret;",
" ret = qcow2_get_cluster_offset(bs, start <<... | static bool FUNC_0(BlockDriverState *bs, int64_t start)
{
BDRVQcow2State *s = bs->opaque;
int VAR_0 = s->cluster_sectors;
uint64_t off;
int VAR_1;
VAR_1 = qcow2_get_cluster_offset(bs, start << BDRV_SECTOR_BITS, &VAR_0, &off);
assert(VAR_0 == s->cluster_sectors);
return VAR_1 == QCO... | [
"static bool FUNC_0(BlockDriverState *bs, int64_t start)\n{",
"BDRVQcow2State *s = bs->opaque;",
"int VAR_0 = s->cluster_sectors;",
"uint64_t off;",
"int VAR_1;",
"VAR_1 = qcow2_get_cluster_offset(bs, start << BDRV_SECTOR_BITS, &VAR_0, &off);",
"assert(VAR_0 == s->cluster_sectors);",
"return VAR_1 == ... | [
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
10,973 | void spapr_lmb_release(DeviceState *dev)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_hotplug_handler(dev));
PCDIMMDevice *dimm = PC_DIMM(dev);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
sPAPRDIMMState *ds = spapr_pending_dimm_unpl... | true | qemu | 0479097859372a760843ad1b9c6ed3705c6423ca | void spapr_lmb_release(DeviceState *dev)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_hotplug_handler(dev));
PCDIMMDevice *dimm = PC_DIMM(dev);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
sPAPRDIMMState *ds = spapr_pending_dimm_unpl... | {
"code": [
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" MemoryRegion *mr = ddc->get_memory_region(dimm);",
" ... | void FUNC_0(DeviceState *VAR_0)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_hotplug_handler(VAR_0));
PCDIMMDevice *dimm = PC_DIMM(VAR_0);
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
sPAPRDIMMState *ds = spapr_pending_dimm_unplugs_f... | [
"void FUNC_0(DeviceState *VAR_0)\n{",
"sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_hotplug_handler(VAR_0));",
"PCDIMMDevice *dimm = PC_DIMM(VAR_0);",
"PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);",
"MemoryRegion *mr = ddc->get_memory_region(dimm);",
"sPAPRDIMMState *ds = spapr_pending_dimm_unpl... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
55
],
[
57
],
[
59
]
] |
10,975 | static void pc_xen_hvm_init(MachineState *machine)
{
PCIBus *bus;
pc_xen_hvm_init_pci(machine);
bus = pci_find_primary_bus();
if (bus != NULL) {
pci_create_simple(bus, -1, "xen-platform"); | true | qemu | a88ae0d44b6b5830b752641b2198735272f13eaf | static void pc_xen_hvm_init(MachineState *machine)
{
PCIBus *bus;
pc_xen_hvm_init_pci(machine);
bus = pci_find_primary_bus();
if (bus != NULL) {
pci_create_simple(bus, -1, "xen-platform"); | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
PCIBus *bus;
pc_xen_hvm_init_pci(VAR_0);
bus = pci_find_primary_bus();
if (bus != NULL) {
pci_create_simple(bus, -1, "xen-platform"); | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"PCIBus *bus;",
"pc_xen_hvm_init_pci(VAR_0);",
"bus = pci_find_primary_bus();",
"if (bus != NULL) {",
"pci_create_simple(bus, -1, \"xen-platform\");"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
]
] |
10,976 | static int usb_xhci_post_load(void *opaque, int version_id)
{
XHCIState *xhci = opaque;
PCIDevice *pci_dev = PCI_DEVICE(xhci);
XHCISlot *slot;
XHCIEPContext *epctx;
dma_addr_t dcbaap, pctx;
uint32_t slot_ctx[4];
uint32_t ep_ctx[5];
int slotid, epid, state, intr;
dcbaap = ... | true | qemu | f2ad97ff81da51c064b9e87720ff48a0874f45d4 | static int usb_xhci_post_load(void *opaque, int version_id)
{
XHCIState *xhci = opaque;
PCIDevice *pci_dev = PCI_DEVICE(xhci);
XHCISlot *slot;
XHCIEPContext *epctx;
dma_addr_t dcbaap, pctx;
uint32_t slot_ctx[4];
uint32_t ep_ctx[5];
int slotid, epid, state, intr;
dcbaap = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, int VAR_1)
{
XHCIState *xhci = VAR_0;
PCIDevice *pci_dev = PCI_DEVICE(xhci);
XHCISlot *slot;
XHCIEPContext *epctx;
dma_addr_t dcbaap, pctx;
uint32_t slot_ctx[4];
uint32_t ep_ctx[5];
int VAR_2, VAR_3, VAR_4, VAR_5;
dcbaap = xhci_addr64(xhci->... | [
"static int FUNC_0(void *VAR_0, int VAR_1)\n{",
"XHCIState *xhci = VAR_0;",
"PCIDevice *pci_dev = PCI_DEVICE(xhci);",
"XHCISlot *slot;",
"XHCIEPContext *epctx;",
"dma_addr_t dcbaap, pctx;",
"uint32_t slot_ctx[4];",
"uint32_t ep_ctx[5];",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"dcbaap = xhci_addr64(xhc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
49
],
[
53
],
[
55
],
[... |
10,977 | void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
MemoryRegion *parent)
{
ar->tmr.update_sci = update_sci;
ar->tmr.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, acpi_pm_tmr_timer, ar);
memory_region_init_io(&ar->tmr.io, memory_region_owner(parent),
... | false | qemu | 1beb99f787ba110a9de44254e7d62a1cb9117de8 | void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
MemoryRegion *parent)
{
ar->tmr.update_sci = update_sci;
ar->tmr.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, acpi_pm_tmr_timer, ar);
memory_region_init_io(&ar->tmr.io, memory_region_owner(parent),
... | {
"code": [],
"line_no": []
} | void FUNC_0(ACPIREGS *VAR_0, acpi_update_sci_fn VAR_1,
MemoryRegion *VAR_2)
{
VAR_0->tmr.VAR_1 = VAR_1;
VAR_0->tmr.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, acpi_pm_tmr_timer, VAR_0);
memory_region_init_io(&VAR_0->tmr.io, memory_region_owner(VAR_2),
&acpi... | [
"void FUNC_0(ACPIREGS *VAR_0, acpi_update_sci_fn VAR_1,\nMemoryRegion *VAR_2)\n{",
"VAR_0->tmr.VAR_1 = VAR_1;",
"VAR_0->tmr.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, acpi_pm_tmr_timer, VAR_0);",
"memory_region_init_io(&VAR_0->tmr.io, memory_region_owner(VAR_2),\n&acpi_pm_tmr_ops, VAR_0, \"acpi-tmr\", 4);",
"... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
]
] |
10,978 | INLINE int16 extractFloat32Exp( float32 a )
{
return ( a>>23 ) & 0xFF;
}
| false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | INLINE int16 extractFloat32Exp( float32 a )
{
return ( a>>23 ) & 0xFF;
}
| {
"code": [],
"line_no": []
} | INLINE VAR_0 extractFloat32Exp( float32 a )
{
return ( a>>23 ) & 0xFF;
}
| [
"INLINE VAR_0 extractFloat32Exp( float32 a )\n{",
"return ( a>>23 ) & 0xFF;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
11
]
] |
10,979 | START_TEST(simple_string)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{}
... | false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(simple_string)
{
int i;
struct {
const char *encoded;
const char *decoded;
} test_cases[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{}
... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
int VAR_1;
struct {
const char *encoded;
const char *decoded;
} VAR_2[] = {
{ "\"hello world\"", "hello world" },
{ "\"the quick brown fox jumped over the fence\"",
"the quick brown fox jumped over the fence" },
{}
};
fo... | [
"FUNC_0(VAR_0)\n{",
"int VAR_1;",
"struct {",
"const char *encoded;",
"const char *decoded;",
"} VAR_2[] = {",
"{ \"\\\"hello world\\\"\", \"hello world\" },",
"{ \"\\\"the quick brown fox jumped over the fence\\\"\",",
"\"the quick brown fox jumped over the fence\" },",
"{}",
"};",
"for (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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
... |
10,980 | int decode_luma_residual(const H264Context *h, H264SliceContext *sl,
GetBitContext *gb, const uint8_t *scan,
const uint8_t *scan8x8, int pixel_shift,
int mb_type, int cbp, int p)
{
int i4x4, i8x8;
int qscale = p == 0 ? sl->qscale :... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | int decode_luma_residual(const H264Context *h, H264SliceContext *sl,
GetBitContext *gb, const uint8_t *scan,
const uint8_t *scan8x8, int pixel_shift,
int mb_type, int cbp, int p)
{
int i4x4, i8x8;
int qscale = p == 0 ? sl->qscale :... | {
"code": [],
"line_no": []
} | int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1,
GetBitContext *VAR_2, const uint8_t *VAR_3,
const uint8_t *VAR_4, int VAR_5,
int VAR_6, int VAR_7, int VAR_8)
{
int VAR_9, VAR_10;
int VAR_11 = VAR_8 == 0 ? VAR_1->VAR_1... | [
"int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1,\nGetBitContext *VAR_2, const uint8_t *VAR_3,\nconst uint8_t *VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8)\n{",
"int VAR_9, VAR_10;",
"int VAR_11 = VAR_8 == 0 ? VAR_1->VAR_11 : VAR_1->chroma_qp[VAR_8 - 1];",
"if(IS_INTRA16x16(VAR_6)){",
"A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
... |
10,981 | static int get_codec_data(AVIOContext *pb, AVStream *vst,
AVStream *ast, int myth)
{
nuv_frametype frametype;
if (!vst && !myth)
return 1; // no codec data needed
while (!avio_feof(pb)) {
int size, subtype;
frametype = avio_r8(pb);
switc... | false | FFmpeg | f748e3b5a219061db021d8b6b7ebb097c65f23c5 | static int get_codec_data(AVIOContext *pb, AVStream *vst,
AVStream *ast, int myth)
{
nuv_frametype frametype;
if (!vst && !myth)
return 1;
while (!avio_feof(pb)) {
int size, subtype;
frametype = avio_r8(pb);
switch (frametype) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, AVStream *VAR_1,
AVStream *VAR_2, int VAR_3)
{
nuv_frametype frametype;
if (!VAR_1 && !VAR_3)
return 1;
while (!avio_feof(VAR_0)) {
int VAR_4, VAR_5;
frametype = avio_r8(VAR_0);
switch (frametype) {... | [
"static int FUNC_0(AVIOContext *VAR_0, AVStream *VAR_1,\nAVStream *VAR_2, int VAR_3)\n{",
"nuv_frametype frametype;",
"if (!VAR_1 && !VAR_3)\nreturn 1;",
"while (!avio_feof(VAR_0)) {",
"int VAR_4, VAR_5;",
"frametype = avio_r8(VAR_0);",
"switch (frametype) {",
"case NUV_EXTRADATA:\nVAR_5 = avio_r8(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
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49... |
10,983 | ram_addr_t migration_bitmap_find_and_reset_dirty(MemoryRegion *mr,
ram_addr_t start)
{
unsigned long base = mr->ram_addr >> TARGET_PAGE_BITS;
unsigned long nr = base + (start >> TARGET_PAGE_BITS);
uint64_t mr_size = TARGET_PAGE_ALIGN(memory_region_size(m... | false | qemu | 2ff64038a59e8de2baa485806be0838f49f70b79 | ram_addr_t migration_bitmap_find_and_reset_dirty(MemoryRegion *mr,
ram_addr_t start)
{
unsigned long base = mr->ram_addr >> TARGET_PAGE_BITS;
unsigned long nr = base + (start >> TARGET_PAGE_BITS);
uint64_t mr_size = TARGET_PAGE_ALIGN(memory_region_size(m... | {
"code": [],
"line_no": []
} | ram_addr_t FUNC_0(MemoryRegion *mr,
ram_addr_t start)
{
unsigned long VAR_0 = mr->ram_addr >> TARGET_PAGE_BITS;
unsigned long VAR_1 = VAR_0 + (start >> TARGET_PAGE_BITS);
uint64_t mr_size = TARGET_PAGE_ALIGN(memory_region_size(mr));
unsigned long VA... | [
"ram_addr_t FUNC_0(MemoryRegion *mr,\nram_addr_t start)\n{",
"unsigned long VAR_0 = mr->ram_addr >> TARGET_PAGE_BITS;",
"unsigned long VAR_1 = VAR_0 + (start >> TARGET_PAGE_BITS);",
"uint64_t mr_size = TARGET_PAGE_ALIGN(memory_region_size(mr));",
"unsigned long VAR_2 = VAR_0 + (mr_size >> TARGET_PAGE_BITS);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
10,985 | static uint64_t unassigned_mem_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
cpu_una... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t unassigned_mem_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
cpu_una... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)
cpu_unassigned_acces... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"#ifdef DEBUG_UNASSIGNED\nprintf(\"Unassigned mem read \" TARGET_FMT_plx \"\\n\", addr);",
"#endif\n#if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE)\ncpu_unassigned_access(cpu_single_env, addr, 0,... | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11,
13,
15
],
[
17,
19
],
[
21
]
] |
10,987 | build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets,
const char *oem_id, const char *oem_table_id)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int i;
const int table_data_len = (sizeof(uint32_t) * table_offsets->len);
rsdt_len = sizeof(*rsdt) + table_data_le... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | build_rsdt(GArray *table_data, GArray *linker, GArray *table_offsets,
const char *oem_id, const char *oem_table_id)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int i;
const int table_data_len = (sizeof(uint32_t) * table_offsets->len);
rsdt_len = sizeof(*rsdt) + table_data_le... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, GArray *VAR_2,
const char *VAR_3, const char *VAR_4)
{
AcpiRsdtDescriptorRev1 *rsdt;
size_t rsdt_len;
int VAR_5;
const int VAR_6 = (sizeof(uint32_t) * VAR_2->len);
rsdt_len = sizeof(*rsdt) + VAR_6;
rsdt = acpi_data_push(VAR_0, rsdt_len);
... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, GArray *VAR_2,\nconst char *VAR_3, const char *VAR_4)\n{",
"AcpiRsdtDescriptorRev1 *rsdt;",
"size_t rsdt_len;",
"int VAR_5;",
"const int VAR_6 = (sizeof(uint32_t) * VAR_2->len);",
"rsdt_len = sizeof(*rsdt) + VAR_6;",
"rsdt = acpi_data_push(VAR_0, rsdt_len);",
"mem... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29,
31,
33,
35
],
[
37
],
[
39,
41
],
[
43
]
] |
10,988 | static uint32_t pflash_read (pflash_t *pfl, target_phys_addr_t offset,
int width, int be)
{
target_phys_addr_t boff;
uint32_t ret;
uint8_t *p;
DPRINTF("%s: offset " TARGET_FMT_plx "\n", __func__, offset);
ret = -1;
if (pfl->rom_mode) {
/* Lazy rese... | false | qemu | 5145b3d1cc4dc77d82086d99b0690a76e1073071 | static uint32_t pflash_read (pflash_t *pfl, target_phys_addr_t offset,
int width, int be)
{
target_phys_addr_t boff;
uint32_t ret;
uint8_t *p;
DPRINTF("%s: offset " TARGET_FMT_plx "\n", __func__, offset);
ret = -1;
if (pfl->rom_mode) {
if... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0 (pflash_t *pfl, target_phys_addr_t offset,
int width, int be)
{
target_phys_addr_t boff;
uint32_t ret;
uint8_t *p;
DPRINTF("%s: offset " TARGET_FMT_plx "\n", __func__, offset);
ret = -1;
if (pfl->rom_mode) {
if (pfl... | [
"static uint32_t FUNC_0 (pflash_t *pfl, target_phys_addr_t offset,\nint width, int be)\n{",
"target_phys_addr_t boff;",
"uint32_t ret;",
"uint8_t *p;",
"DPRINTF(\"%s: offset \" TARGET_FMT_plx \"\\n\", __func__, offset);",
"ret = -1;",
"if (pfl->rom_mode) {",
"if (pfl->wcycle == 0)\npflash_register_mem... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43,
47
],
[
49
],
[
51
],
[... |
10,989 | static void disable_logging(void)
{
ga_disable_logging(ga_state);
}
| false | qemu | f22d85e9e67262db34504f4079745f9843da6a92 | static void disable_logging(void)
{
ga_disable_logging(ga_state);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
ga_disable_logging(ga_state);
}
| [
"static void FUNC_0(void)\n{",
"ga_disable_logging(ga_state);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
10,990 | int r4k_map_address (CPUMIPSState *env, hwaddr *physical, int *prot,
target_ulong address, int rw, int access_type)
{
uint8_t ASID = env->CP0_EntryHi & 0xFF;
int i;
for (i = 0; i < env->tlb->tlb_in_use; i++) {
r4k_tlb_t *tlb = &env->tlb->mmu.r4k.tlb[i];
/* 1k pa... | false | qemu | 9456c2fbcd82dd82328ac6e7602a815582b1043e | int r4k_map_address (CPUMIPSState *env, hwaddr *physical, int *prot,
target_ulong address, int rw, int access_type)
{
uint8_t ASID = env->CP0_EntryHi & 0xFF;
int i;
for (i = 0; i < env->tlb->tlb_in_use; i++) {
r4k_tlb_t *tlb = &env->tlb->mmu.r4k.tlb[i];
... | {
"code": [],
"line_no": []
} | int FUNC_0 (CPUMIPSState *VAR_0, hwaddr *VAR_1, int *VAR_2,
target_ulong VAR_3, int VAR_4, int VAR_5)
{
uint8_t ASID = VAR_0->CP0_EntryHi & 0xFF;
int VAR_6;
for (VAR_6 = 0; VAR_6 < VAR_0->tlb->tlb_in_use; VAR_6++) {
r4k_tlb_t *tlb = &VAR_0->tlb->mmu.r4k.tlb[VAR_6];
... | [
"int FUNC_0 (CPUMIPSState *VAR_0, hwaddr *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, int VAR_4, int VAR_5)\n{",
"uint8_t ASID = VAR_0->CP0_EntryHi & 0xFF;",
"int VAR_6;",
"for (VAR_6 = 0; VAR_6 < VAR_0->tlb->tlb_in_use; VAR_6++) {",
"r4k_tlb_t *tlb = &VAR_0->tlb->mmu.r4k.tlb[VAR_6];",
"target_ulong mask = tl... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
10,991 | GArray *bios_linker_loader_init(void)
{
return g_array_new(false, true /* clear */, 1);
}
| false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | GArray *bios_linker_loader_init(void)
{
return g_array_new(false, true , 1);
}
| {
"code": [],
"line_no": []
} | GArray *FUNC_0(void)
{
return g_array_new(false, true , 1);
}
| [
"GArray *FUNC_0(void)\n{",
"return g_array_new(false, true , 1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
10,993 | static void exynos4210_fimd_update(void *opaque)
{
Exynos4210fimdState *s = (Exynos4210fimdState *)opaque;
Exynos4210fimdWindow *w;
int i, line;
target_phys_addr_t fb_line_addr, inc_size;
int scrn_height;
int first_line = -1, last_line = -1, scrn_width;
bool blend = false;
uint8... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void exynos4210_fimd_update(void *opaque)
{
Exynos4210fimdState *s = (Exynos4210fimdState *)opaque;
Exynos4210fimdWindow *w;
int i, line;
target_phys_addr_t fb_line_addr, inc_size;
int scrn_height;
int first_line = -1, last_line = -1, scrn_width;
bool blend = false;
uint8... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
Exynos4210fimdState *s = (Exynos4210fimdState *)VAR_0;
Exynos4210fimdWindow *w;
int VAR_1, VAR_2;
target_phys_addr_t fb_line_addr, inc_size;
int VAR_3;
int VAR_4 = -1, VAR_5 = -1, VAR_6;
bool blend = false;
uint8_t *host_fb_addr;
bool is_di... | [
"static void FUNC_0(void *VAR_0)\n{",
"Exynos4210fimdState *s = (Exynos4210fimdState *)VAR_0;",
"Exynos4210fimdWindow *w;",
"int VAR_1, VAR_2;",
"target_phys_addr_t fb_line_addr, inc_size;",
"int VAR_3;",
"int VAR_4 = -1, VAR_5 = -1, VAR_6;",
"bool blend = false;",
"uint8_t *host_fb_addr;",
"bool ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
10,994 | static int find_large_solid_color_rect(VncState *vs, int x, int y,
int w, int h, int max_rows)
{
int dx, dy, dw, dh;
int n = 0;
/* Try to find large solid-color areas and send them separately. */
for (dy = y; dy < y + h; dy += VNC_TIGHT_MAX_SPLIT_TILE_SIZ... | false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | static int find_large_solid_color_rect(VncState *vs, int x, int y,
int w, int h, int max_rows)
{
int dx, dy, dw, dh;
int n = 0;
for (dy = y; dy < y + h; dy += VNC_TIGHT_MAX_SPLIT_TILE_SIZE) {
if (dy - y >= max_rows) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10 = 0;
for (VAR_7 = VAR_2; VAR_7 < VAR_2 + VAR_4; VAR_7 += VNC_TIGHT_MAX_SPLIT_TILE_SIZE) {
if (VA... | [
"static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10 = 0;",
"for (VAR_7 = VAR_2; VAR_7 < VAR_2 + VAR_4; VAR_7 += VNC_TIGHT_MAX_SPLIT_TILE_SIZE) {",
"if (VAR_7 - VAR_2 >= VAR_5) {",
"VAR_10 += send_rect_simple(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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
17
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
53
],
[
55
],
[
57
],
[
65,
67
],
[
77,... |
10,995 | static void iscsi_allocationmap_clear(IscsiLun *iscsilun, int64_t sector_num,
int nb_sectors)
{
int64_t cluster_num, nb_clusters;
if (iscsilun->allocationmap == NULL) {
return;
}
cluster_num = DIV_ROUND_UP(sector_num, iscsilun->cluster_sectors);
... | false | qemu | e1123a3b40a1a9a625a29c8ed4debb7e206ea690 | static void iscsi_allocationmap_clear(IscsiLun *iscsilun, int64_t sector_num,
int nb_sectors)
{
int64_t cluster_num, nb_clusters;
if (iscsilun->allocationmap == NULL) {
return;
}
cluster_num = DIV_ROUND_UP(sector_num, iscsilun->cluster_sectors);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(IscsiLun *VAR_0, int64_t VAR_1,
int VAR_2)
{
int64_t cluster_num, nb_clusters;
if (VAR_0->allocationmap == NULL) {
return;
}
cluster_num = DIV_ROUND_UP(VAR_1, VAR_0->cluster_sectors);
nb_clusters = (VAR_1 + VAR_2) / VAR_0->clus... | [
"static void FUNC_0(IscsiLun *VAR_0, int64_t VAR_1,\nint VAR_2)\n{",
"int64_t cluster_num, nb_clusters;",
"if (VAR_0->allocationmap == NULL) {",
"return;",
"}",
"cluster_num = DIV_ROUND_UP(VAR_1, VAR_0->cluster_sectors);",
"nb_clusters = (VAR_1 + VAR_2) / VAR_0->cluster_sectors\n- cluster_num;",
"if (... | [
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
]
] |
10,996 | static void h264_h_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
{
h264_loop_filter_luma_c(pix, 1, stride, alpha, beta, tc0);
}
| false | FFmpeg | dd561441b1e849df7d8681c6f32af82d4088dafd | static void h264_h_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
{
h264_loop_filter_luma_c(pix, 1, stride, alpha, beta, tc0);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4)
{
h264_loop_filter_luma_c(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4);
}
| [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4)\n{",
"h264_loop_filter_luma_c(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
10,997 | static int avi_read_header(AVFormatContext *s)
{
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int tag, tag1, handler;
int codec_type, stream_index, frame_period;
unsigned int size;
int i;
AVStream *st;
AVIStream *ast = NULL;
int avih_width = 0... | false | FFmpeg | 9d599e3f6e61438772d8cddd6c9b7c495251f51e | static int avi_read_header(AVFormatContext *s)
{
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int tag, tag1, handler;
int codec_type, stream_index, frame_period;
unsigned int size;
int i;
AVStream *st;
AVIStream *ast = NULL;
int avih_width = 0... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIContext *avi = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
unsigned int VAR_1, VAR_2, VAR_3;
int VAR_4, VAR_5, VAR_6;
unsigned int VAR_7;
int VAR_8;
AVStream *st;
AVIStream *ast = NULL;
int VAR_9 = 0, VAR_10 = 0;
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIContext *avi = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"unsigned int VAR_1, VAR_2, VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"unsigned int VAR_7;",
"int VAR_8;",
"AVStream *st;",
"AVIStream *ast = NULL;",
"int VAR_9 = 0, VAR_10 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
35
],
[
37,
39
],
[
43
],
[
45,
47
],
[
53
... |
10,998 | static void phys_page_set(AddressSpaceDispatch *d,
hwaddr index, hwaddr nb,
uint16_t leaf)
{
/* Wildly overreserve - it doesn't matter much. */
phys_map_node_reserve(3 * P_L2_LEVELS);
phys_page_set_level(&d->phys_map, &index, &nb, leaf, P_L2_LEVELS... | false | qemu | 53cb28cbfea038f8ad50132dc8a684e638c7d48b | static void phys_page_set(AddressSpaceDispatch *d,
hwaddr index, hwaddr nb,
uint16_t leaf)
{
phys_map_node_reserve(3 * P_L2_LEVELS);
phys_page_set_level(&d->phys_map, &index, &nb, leaf, P_L2_LEVELS - 1);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AddressSpaceDispatch *VAR_0,
hwaddr VAR_1, hwaddr VAR_2,
uint16_t VAR_3)
{
phys_map_node_reserve(3 * P_L2_LEVELS);
phys_page_set_level(&VAR_0->phys_map, &VAR_1, &VAR_2, VAR_3, P_L2_LEVELS - 1);
}
| [
"static void FUNC_0(AddressSpaceDispatch *VAR_0,\nhwaddr VAR_1, hwaddr VAR_2,\nuint16_t VAR_3)\n{",
"phys_map_node_reserve(3 * P_L2_LEVELS);",
"phys_page_set_level(&VAR_0->phys_map, &VAR_1, &VAR_2, VAR_3, P_L2_LEVELS - 1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
11
],
[
15
],
[
17
]
] |
11,000 | static av_cold int g726_decode_init(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
if (avctx->sample_rate <= 0) {
av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
return -1;
}
if(avctx->channels != 1){
av_log(avctx, AV_LOG_ERROR, "Only mono is supp... | false | FFmpeg | 6e8d4a7afbf40c0eb4bd70a6e7724d22ce7a6239 | static av_cold int g726_decode_init(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
if (avctx->sample_rate <= 0) {
av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
return -1;
}
if(avctx->channels != 1){
av_log(avctx, AV_LOG_ERROR, "Only mono is supp... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
if (avctx->sample_rate <= 0) {
av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
return -1;
}
if(avctx->channels != 1){
av_log(avctx, AV_LOG_ERROR, "Only mono is supported\n");... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"G726Context* c = avctx->priv_data;",
"if (avctx->sample_rate <= 0) {",
"av_log(avctx, AV_LOG_ERROR, \"Samplerate is invalid\\n\");",
"return -1;",
"}",
"if(avctx->channels != 1){",
"av_log(avctx, AV_LOG_ERROR, \"Only mono is supported\\n\");",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
]
] |
11,001 | static uint32_t isa_mmio_readw(void *opaque, target_phys_addr_t addr)
{
return cpu_inw(addr & IOPORTS_MASK);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t isa_mmio_readw(void *opaque, target_phys_addr_t addr)
{
return cpu_inw(addr & IOPORTS_MASK);
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
return cpu_inw(addr & IOPORTS_MASK);
}
| [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"return cpu_inw(addr & IOPORTS_MASK);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,002 | static void unassign_storage(SCLPDevice *sclp, SCCB *sccb)
{
MemoryRegion *mr = NULL;
AssignStorage *assign_info = (AssignStorage *) sccb;
sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev();
assert(mhd);
ram_addr_t unassign_addr = (assign_info->rn - 1) * mhd->rzm;
MemoryRegion *sys... | false | qemu | b02ef3d92b19ad304a84433d3817f0903296ebc7 | static void unassign_storage(SCLPDevice *sclp, SCCB *sccb)
{
MemoryRegion *mr = NULL;
AssignStorage *assign_info = (AssignStorage *) sccb;
sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev();
assert(mhd);
ram_addr_t unassign_addr = (assign_info->rn - 1) * mhd->rzm;
MemoryRegion *sys... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCLPDevice *VAR_0, SCCB *VAR_1)
{
MemoryRegion *mr = NULL;
AssignStorage *assign_info = (AssignStorage *) VAR_1;
sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev();
assert(mhd);
ram_addr_t unassign_addr = (assign_info->rn - 1) * mhd->rzm;
MemoryRegion *sysmem = g... | [
"static void FUNC_0(SCLPDevice *VAR_0, SCCB *VAR_1)\n{",
"MemoryRegion *mr = NULL;",
"AssignStorage *assign_info = (AssignStorage *) VAR_1;",
"sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev();",
"assert(mhd);",
"ram_addr_t unassign_addr = (assign_info->rn - 1) * mhd->rzm;",
"MemoryRegion *sysme... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
21,
23
],
[
25,
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
51
],
[
53
],
[
55
... |
11,003 | static int raw_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
{
return bdrv_get_info(bs->file->bs, bdi);
}
| false | qemu | 2e6fc7eb1a4af1b127df5f07b8bb28af891946fa | static int raw_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
{
return bdrv_get_info(bs->file->bs, bdi);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)
{
return bdrv_get_info(VAR_0->file->VAR_0, VAR_1);
}
| [
"static int FUNC_0(BlockDriverState *VAR_0, BlockDriverInfo *VAR_1)\n{",
"return bdrv_get_info(VAR_0->file->VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,004 | static int nbd_co_writev_1(NbdClientSession *client, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov,
int offset)
{
struct nbd_request request = { .type = NBD_CMD_WRITE };
struct nbd_reply reply;
ssize_t ret;
if (!bdrv_enable_write_ca... | false | qemu | f53a829bb9ef14be800556cbc02d8b20fc1050a7 | static int nbd_co_writev_1(NbdClientSession *client, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov,
int offset)
{
struct nbd_request request = { .type = NBD_CMD_WRITE };
struct nbd_reply reply;
ssize_t ret;
if (!bdrv_enable_write_ca... | {
"code": [],
"line_no": []
} | static int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,
int VAR_2, QEMUIOVector *VAR_3,
int VAR_4)
{
struct nbd_request VAR_5 = { .type = NBD_CMD_WRITE };
struct nbd_reply VAR_6;
ssize_t ret;
if (!bdrv_enable_write_cache(VAR_0->bs) &&
... | [
"static int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,\nint VAR_2, QEMUIOVector *VAR_3,\nint VAR_4)\n{",
"struct nbd_request VAR_5 = { .type = NBD_CMD_WRITE };",
"struct nbd_reply VAR_6;",
"ssize_t ret;",
"if (!bdrv_enable_write_cache(VAR_0->bs) &&\n(VAR_0->nbdflags & NBD_FLAG_SEND_FUA)) {",
"VAR_5.ty... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
11,005 | START_TEST(simple_whitespace)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = " [ 43 , 42 ]",
.decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(43),
QL... | false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(simple_whitespace)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = " [ 43 , 42 ]",
.decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(43),
QL... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
int VAR_1;
struct {
const char *encoded;
LiteralQObject decoded;
} VAR_2[] = {
{
.encoded = " [ 43 , 42 ]",
.decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(43),
QLIT_QINT(42),
... | [
"FUNC_0(VAR_0)\n{",
"int VAR_1;",
"struct {",
"const char *encoded;",
"LiteralQObject decoded;",
"} VAR_2[] = {",
"{",
".encoded = \" [ 43 , 42 ]\",\n.decoded = QLIT_QLIST(((LiteralQObject[]){",
"QLIT_QINT(43),\nQLIT_QINT(42),\n{ }",
"})),",
"},",
"{",
".encoded = \" [ 43 , { 'h' : 'b' }, [ ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
11,007 | gboolean qcrypto_hash_supports(QCryptoHashAlgorithm alg)
{
if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map)) {
return true;
}
return false;
}
| false | qemu | 0c16c056a4f9dec18fdd56feec82a5db9ff3c15e | gboolean qcrypto_hash_supports(QCryptoHashAlgorithm alg)
{
if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map)) {
return true;
}
return false;
}
| {
"code": [],
"line_no": []
} | gboolean FUNC_0(QCryptoHashAlgorithm alg)
{
if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map)) {
return true;
}
return false;
}
| [
"gboolean FUNC_0(QCryptoHashAlgorithm alg)\n{",
"if (alg < G_N_ELEMENTS(qcrypto_hash_alg_map)) {",
"return true;",
"}",
"return false;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
11,008 | static int nvic_pending_prio(NVICState *s)
{
/* return the priority of the current pending interrupt,
* or NVIC_NOEXC_PRIO if no interrupt is pending
*/
return s->vectpending ? s->vectors[s->vectpending].prio : NVIC_NOEXC_PRIO;
}
| false | qemu | 5255fcf8e47acd059e2f0d414841c40231c1bd22 | static int nvic_pending_prio(NVICState *s)
{
return s->vectpending ? s->vectors[s->vectpending].prio : NVIC_NOEXC_PRIO;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(NVICState *VAR_0)
{
return VAR_0->vectpending ? VAR_0->vectors[VAR_0->vectpending].prio : NVIC_NOEXC_PRIO;
}
| [
"static int FUNC_0(NVICState *VAR_0)\n{",
"return VAR_0->vectpending ? VAR_0->vectors[VAR_0->vectpending].prio : NVIC_NOEXC_PRIO;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
11
],
[
13
]
] |
11,009 | static uint64_t pci_config_get_pref_base(PCIDevice *d,
uint32_t base, uint32_t upper)
{
uint64_t val;
val = ((uint64_t)pci_get_word(d->config + base) &
PCI_PREF_RANGE_MASK) << 16;
val |= (uint64_t)pci_get_long(d->config + upper) << 32;
return va... | false | qemu | d46636b88339ecc2cb8d10113f45ada164817773 | static uint64_t pci_config_get_pref_base(PCIDevice *d,
uint32_t base, uint32_t upper)
{
uint64_t val;
val = ((uint64_t)pci_get_word(d->config + base) &
PCI_PREF_RANGE_MASK) << 16;
val |= (uint64_t)pci_get_long(d->config + upper) << 32;
return va... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(PCIDevice *d,
uint32_t base, uint32_t upper)
{
uint64_t val;
val = ((uint64_t)pci_get_word(d->config + base) &
PCI_PREF_RANGE_MASK) << 16;
val |= (uint64_t)pci_get_long(d->config + upper) << 32;
return val;
}
| [
"static uint64_t FUNC_0(PCIDevice *d,\nuint32_t base, uint32_t upper)\n{",
"uint64_t val;",
"val = ((uint64_t)pci_get_word(d->config + base) &\nPCI_PREF_RANGE_MASK) << 16;",
"val |= (uint64_t)pci_get_long(d->config + upper) << 32;",
"return val;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
]
] |
11,010 | static void qmp_output_type_enum(Visitor *v, int *obj, const char *strings[],
const char *kind, const char *name,
Error **errp)
{
int i = 0;
int value = *obj;
char *enum_str;
assert(strings);
while (strings[i++] != NULL);
... | false | qemu | 54d50be688aba80e0fd5ba53f23a074a0ce2e381 | static void qmp_output_type_enum(Visitor *v, int *obj, const char *strings[],
const char *kind, const char *name,
Error **errp)
{
int i = 0;
int value = *obj;
char *enum_str;
assert(strings);
while (strings[i++] != NULL);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[],
const char *VAR_3, const char *VAR_4,
Error **VAR_5)
{
int VAR_6 = 0;
int VAR_7 = *VAR_1;
char *VAR_8;
assert(VAR_2);
while (VAR_2[VAR_6++] != NULL);
i... | [
"static void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[],\nconst char *VAR_3, const char *VAR_4,\nError **VAR_5)\n{",
"int VAR_6 = 0;",
"int VAR_7 = *VAR_1;",
"char *VAR_8;",
"assert(VAR_2);",
"while (VAR_2[VAR_6++] != NULL);",
"if (VAR_7 >= VAR_6 - 1) {",
"error_set(VAR_5, QERR_INVALID_PAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
11,011 | static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
char color_parameter_type[5] = { 0 };
int color_primaries, color_trc, color_matrix;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
avio_read(pb, color_para... | false | FFmpeg | 0276b9524294e518cdc7cbfa12b7cb301ed86fb6 | static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
char color_parameter_type[5] = { 0 };
int color_primaries, color_trc, color_matrix;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
avio_read(pb, color_para... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
char VAR_3[5] = { 0 };
int VAR_4, VAR_5, VAR_6;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];
avio_read(VAR_1, VAR_3, 4);
if (strncmp(VA... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"char VAR_3[5] = { 0 };",
"int VAR_4, VAR_5, VAR_6;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];",
"avio_read(VAR_1, VAR_3, 4);",
"if (strncmp(VAR_3, \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51
],
[
53
],
[
55
... |
11,012 | static int v9fs_complete_rename(V9fsState *s, V9fsRenameState *vs)
{
int err = 0;
char *old_name, *new_name;
char *end;
if (vs->newdirfid != -1) {
V9fsFidState *dirfidp;
dirfidp = lookup_fid(s, vs->newdirfid);
if (dirfidp == NULL) {
err = -ENOENT;
... | false | qemu | 936532a4928ce6c95de5718974f6c987aaad7b68 | static int v9fs_complete_rename(V9fsState *s, V9fsRenameState *vs)
{
int err = 0;
char *old_name, *new_name;
char *end;
if (vs->newdirfid != -1) {
V9fsFidState *dirfidp;
dirfidp = lookup_fid(s, vs->newdirfid);
if (dirfidp == NULL) {
err = -ENOENT;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(V9fsState *VAR_0, V9fsRenameState *VAR_1)
{
int VAR_2 = 0;
char *VAR_3, *VAR_4;
char *VAR_5;
if (VAR_1->newdirfid != -1) {
V9fsFidState *dirfidp;
dirfidp = lookup_fid(VAR_0, VAR_1->newdirfid);
if (dirfidp == NULL) {
VAR_2 = -ENOENT;
... | [
"static int FUNC_0(V9fsState *VAR_0, V9fsRenameState *VAR_1)\n{",
"int VAR_2 = 0;",
"char *VAR_3, *VAR_4;",
"char *VAR_5;",
"if (VAR_1->newdirfid != -1) {",
"V9fsFidState *dirfidp;",
"dirfidp = lookup_fid(VAR_0, VAR_1->newdirfid);",
"if (dirfidp == NULL) {",
"VAR_2 = -ENOENT;",
"goto out;",
"}",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,013 | build_srat(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info)
{
AcpiSystemResourceAffinityTable *srat;
AcpiSratProcessorGiccAffinity *core;
AcpiSratMemoryAffinity *numamem;
int i, j, srat_start;
uint64_t mem_base;
uint32_t *cpu_node = g_malloc0(guest_info->smp_cpus * sizeof(ui... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | build_srat(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info)
{
AcpiSystemResourceAffinityTable *srat;
AcpiSratProcessorGiccAffinity *core;
AcpiSratMemoryAffinity *numamem;
int i, j, srat_start;
uint64_t mem_base;
uint32_t *cpu_node = g_malloc0(guest_info->smp_cpus * sizeof(ui... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)
{
AcpiSystemResourceAffinityTable *srat;
AcpiSratProcessorGiccAffinity *core;
AcpiSratMemoryAffinity *numamem;
int VAR_3, VAR_4, VAR_5;
uint64_t mem_base;
uint32_t *cpu_node = g_malloc0(VAR_2->smp_cpus * sizeof(uint32_t));
... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)\n{",
"AcpiSystemResourceAffinityTable *srat;",
"AcpiSratProcessorGiccAffinity *core;",
"AcpiSratMemoryAffinity *numamem;",
"int VAR_3, VAR_4, VAR_5;",
"uint64_t mem_base;",
"uint32_t *cpu_node = g_malloc0(VAR_2->smp_cpus * sizeof(uint32_t));",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
11,014 | static void tcg_out_ri64(TCGContext *s, int const_arg, TCGArg arg)
{
if (const_arg) {
assert(const_arg == 1);
tcg_out8(s, TCG_CONST);
tcg_out64(s, arg);
} else {
tcg_out_r(s, arg);
}
}
| false | qemu | eabb7b91b36b202b4dac2df2d59d698e3aff197a | static void tcg_out_ri64(TCGContext *s, int const_arg, TCGArg arg)
{
if (const_arg) {
assert(const_arg == 1);
tcg_out8(s, TCG_CONST);
tcg_out64(s, arg);
} else {
tcg_out_r(s, arg);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, int VAR_1, TCGArg VAR_2)
{
if (VAR_1) {
assert(VAR_1 == 1);
tcg_out8(VAR_0, TCG_CONST);
tcg_out64(VAR_0, VAR_2);
} else {
tcg_out_r(VAR_0, VAR_2);
}
}
| [
"static void FUNC_0(TCGContext *VAR_0, int VAR_1, TCGArg VAR_2)\n{",
"if (VAR_1) {",
"assert(VAR_1 == 1);",
"tcg_out8(VAR_0, TCG_CONST);",
"tcg_out64(VAR_0, VAR_2);",
"} else {",
"tcg_out_r(VAR_0, VAR_2);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
11,015 | static void tgen_compare_branch(TCGContext *s, S390Opcode opc, int cc,
TCGReg r1, TCGReg r2, int labelno)
{
TCGLabel* l = &s->labels[labelno];
intptr_t off;
if (l->has_value) {
off = l->u.value_ptr - s->code_ptr;
} else {
/* We need to keep the o... | false | qemu | bec1631100323fac0900aea71043d5c4e22fc2fa | static void tgen_compare_branch(TCGContext *s, S390Opcode opc, int cc,
TCGReg r1, TCGReg r2, int labelno)
{
TCGLabel* l = &s->labels[labelno];
intptr_t off;
if (l->has_value) {
off = l->u.value_ptr - s->code_ptr;
} else {
off = s->code_... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, S390Opcode VAR_1, int VAR_2,
TCGReg VAR_3, TCGReg VAR_4, int VAR_5)
{
TCGLabel* l = &VAR_0->labels[VAR_5];
intptr_t off;
if (l->has_value) {
off = l->u.value_ptr - VAR_0->code_ptr;
} else {
off = VA... | [
"static void FUNC_0(TCGContext *VAR_0, S390Opcode VAR_1, int VAR_2,\nTCGReg VAR_3, TCGReg VAR_4, int VAR_5)\n{",
"TCGLabel* l = &VAR_0->labels[VAR_5];",
"intptr_t off;",
"if (l->has_value) {",
"off = l->u.value_ptr - VAR_0->code_ptr;",
"} else {",
"off = VAR_0->code_ptr[1];",
"tcg_out_reloc(VAR_0, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
11,017 | void spapr_iommu_init(void)
{
QLIST_INIT(&spapr_tce_tables);
/* hcall-tce */
spapr_register_hypercall(H_PUT_TCE, h_put_tce);
}
| false | qemu | a83000f5e3fac30a7f213af1ba6a8f827622854d | void spapr_iommu_init(void)
{
QLIST_INIT(&spapr_tce_tables);
spapr_register_hypercall(H_PUT_TCE, h_put_tce);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
QLIST_INIT(&spapr_tce_tables);
spapr_register_hypercall(H_PUT_TCE, h_put_tce);
}
| [
"void FUNC_0(void)\n{",
"QLIST_INIT(&spapr_tce_tables);",
"spapr_register_hypercall(H_PUT_TCE, h_put_tce);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
]
] |
11,018 | static void migration_state_notifier(Notifier *notifier, void *data)
{
MigrationState *s = data;
if (migration_is_active(s)) {
#ifdef SPICE_INTERFACE_MIGRATION
spice_server_migrate_start(spice_server);
#endif
} else if (migration_has_finished(s)) {
#if SPICE_SERVER_VERSION >= 0x000701 /* 0... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | static void migration_state_notifier(Notifier *notifier, void *data)
{
MigrationState *s = data;
if (migration_is_active(s)) {
#ifdef SPICE_INTERFACE_MIGRATION
spice_server_migrate_start(spice_server);
#endif
} else if (migration_has_finished(s)) {
#if SPICE_SERVER_VERSION >= 0x000701
#i... | {
"code": [],
"line_no": []
} | static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{
MigrationState *s = VAR_1;
if (migration_is_active(s)) {
#ifdef SPICE_INTERFACE_MIGRATION
spice_server_migrate_start(spice_server);
#endif
} else if (migration_has_finished(s)) {
#if SPICE_SERVER_VERSION >= 0x000701
#ifndef SPICE_INTERFA... | [
"static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{",
"MigrationState *s = VAR_1;",
"if (migration_is_active(s)) {",
"#ifdef SPICE_INTERFACE_MIGRATION\nspice_server_migrate_start(spice_server);",
"#endif\n} else if (migration_has_finished(s)) {",
"#if SPICE_SERVER_VERSION >= 0x000701\n#ifndef SPICE_INTER... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19,
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
]
] |
11,020 | static inline void downmix_3f_1r_to_stereo(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 768]);
samples[i + 256] += (samples[i + 512] + samples[i + 768]);
samples[i + 512] = samples[i + 768] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_3f_1r_to_stereo(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 768]);
samples[i + 256] += (samples[i + 512] + samples[i + 768]);
samples[i + 512] = samples[i + 768] = 0;
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(float *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 768]);
VAR_0[VAR_1 + 256] += (VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);
VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;
}
}
| [
"static inline void FUNC_0(float *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 768]);",
"VAR_0[VAR_1 + 256] += (VAR_0[VAR_1 + 512] + VAR_0[VAR_1 + 768]);",
"VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
11,021 | static int lmlm4_read_packet(AVFormatContext *s, AVPacket *pkt) {
AVIOContext *pb = s->pb;
int ret;
unsigned int frame_type, packet_size, padding, frame_size;
avio_rb16(pb); /* channel number */
frame_type = avio_rb16(pb);
packet_size = avio_rb32(pb);
padding ... | false | FFmpeg | 4ce03a95e27d618a2c65b1ed134a72b48bbbff00 | static int lmlm4_read_packet(AVFormatContext *s, AVPacket *pkt) {
AVIOContext *pb = s->pb;
int ret;
unsigned int frame_type, packet_size, padding, frame_size;
avio_rb16(pb);
frame_type = avio_rb16(pb);
packet_size = avio_rb32(pb);
padding = -packet_size &... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {
AVIOContext *pb = VAR_0->pb;
int VAR_2;
unsigned int VAR_3, VAR_4, VAR_5, VAR_6;
avio_rb16(pb);
VAR_3 = avio_rb16(pb);
VAR_4 = avio_rb32(pb);
VAR_5 = -VAR_4 & 511;
VAR_6 = VAR_4 - 8;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2;",
"unsigned int VAR_3, VAR_4, VAR_5, VAR_6;",
"avio_rb16(pb);",
"VAR_3 = avio_rb16(pb);",
"VAR_4 = avio_rb32(pb);",
"VAR_5 = -VAR_4 & 511;",
"VAR_6 = VAR_4 - 8;",
"if (VAR_3 > LMLM4_MP... | [
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
51... |
11,022 | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
{
BinkContext * const c = avctx->priv_data;
GetBitContext gb;
int plane, plane_idx, ret;
int bits_count = pkt->size << 3;
if (c->version > 'b') {
if(c->pic->data[0])
avctx->release... | false | FFmpeg | f2960097e42ddf9a356bab6547f87906f6999e0a | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
{
BinkContext * const c = avctx->priv_data;
GetBitContext gb;
int plane, plane_idx, ret;
int bits_count = pkt->size << 3;
if (c->version > 'b') {
if(c->pic->data[0])
avctx->release... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)
{
BinkContext * const c = VAR_0->priv_data;
GetBitContext gb;
int VAR_4, VAR_5, VAR_6;
int VAR_7 = VAR_3->size << 3;
if (c->version > 'b') {
if(c->pic->VAR_1[0])
VAR_0->release_buffer(VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{",
"BinkContext * const c = VAR_0->priv_data;",
"GetBitContext gb;",
"int VAR_4, VAR_5, VAR_6;",
"int VAR_7 = VAR_3->size << 3;",
"if (c->version > 'b') {",
"if(c->pic->VAR_1[0])\nVAR_0->release_buffer(VAR_0, c->pic);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[... |
11,024 | static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
int i, j, p;
for (p = 0; p < 4; p++) {
int srcstr = srcStride[p] >> 1;
int dst... | false | FFmpeg | 91f4a44ff4fa55e0a48f71c432a1dc3158d662b9 | static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
int i, j, p;
for (p = 0; p < 4; p++) {
int srcstr = srcStride[p] >> 1;
int dst... | {
"code": [],
"line_no": []
} | static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],
int VAR_2[], int VAR_3, int VAR_4,
uint8_t *VAR_5[], int VAR_6[])
{
int VAR_7, VAR_8, VAR_9;
for (VAR_9 = 0; VAR_9 < 4; VAR_9++) {
int VAR_10 = VAR_2[VAR_9] >> 1;
int... | [
"static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],\nint VAR_2[], int VAR_3, int VAR_4,\nuint8_t *VAR_5[], int VAR_6[])\n{",
"int VAR_7, VAR_8, VAR_9;",
"for (VAR_9 = 0; VAR_9 < 4; VAR_9++) {",
"int VAR_10 = VAR_2[VAR_9] >> 1;",
"int VAR_11 = VAR_6[VAR_9] >> 1;",
"uint16_t *dstPtr = ... | [
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
],
[
47
],
[... |
11,025 | static void video_refresh(void *opaque)
{
VideoState *is = opaque;
VideoPicture *vp;
double time;
SubPicture *sp, *sp2;
if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)
check_external_clock_speed(is);
if (!display_disable && is->show_mo... | false | FFmpeg | b853cfe7eaf13b7d4ff3ceba7098544ccc049df8 | static void video_refresh(void *opaque)
{
VideoState *is = opaque;
VideoPicture *vp;
double time;
SubPicture *sp, *sp2;
if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)
check_external_clock_speed(is);
if (!display_disable && is->show_mo... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
VideoState *is = VAR_0;
VideoPicture *vp;
double VAR_1;
SubPicture *sp, *sp2;
if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)
check_external_clock_speed(is);
if (!display_disable && is->show_mode != SH... | [
"static void FUNC_0(void *VAR_0)\n{",
"VideoState *is = VAR_0;",
"VideoPicture *vp;",
"double VAR_1;",
"SubPicture *sp, *sp2;",
"if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)\ncheck_external_clock_speed(is);",
"if (!display_disable && is->show_mode != SHOW_MODE_V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
... |
11,028 | static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbuf)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
FrameBuffer *buf;
int i, ret;
int pixel_size;
int h_chroma_shift, v_chroma_shift;
int edge = 32; // XXX should be avcodec_get_edge_width()... | false | FFmpeg | d2a25c4032ce6ceabb0f51b5c1e6ca865395a793 | static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbuf)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
FrameBuffer *buf;
int i, ret;
int pixel_size;
int h_chroma_shift, v_chroma_shift;
int edge = 32;
int w = s->width, h = s->height;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(FrameBuffer **VAR_0, AVCodecContext *VAR_1, FrameBuffer **VAR_2)
{
const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->pix_fmt);
FrameBuffer *buf;
int VAR_4, VAR_5;
int VAR_6;
int VAR_7, VAR_8;
int VAR_9 = 32;
int VAR_10 = VAR_1->width, VAR_11 = VAR_1->hei... | [
"static int FUNC_0(FrameBuffer **VAR_0, AVCodecContext *VAR_1, FrameBuffer **VAR_2)\n{",
"const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->pix_fmt);",
"FrameBuffer *buf;",
"int VAR_4, VAR_5;",
"int VAR_6;",
"int VAR_7, VAR_8;",
"int VAR_9 = 32;",
"int VAR_10 = VAR_1->width, VAR_11 = VAR_1-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[... |
11,029 | URLProtocol *ffurl_protocol_next(const URLProtocol *prev)
{
return prev ? prev->next : first_protocol;
}
| false | FFmpeg | 2758cdedfb7ac61f8b5e4861f99218b6fd43491d | URLProtocol *ffurl_protocol_next(const URLProtocol *prev)
{
return prev ? prev->next : first_protocol;
}
| {
"code": [],
"line_no": []
} | URLProtocol *FUNC_0(const URLProtocol *prev)
{
return prev ? prev->next : first_protocol;
}
| [
"URLProtocol *FUNC_0(const URLProtocol *prev)\n{",
"return prev ? prev->next : first_protocol;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,030 | static int mov_get_codec_tag(AVFormatContext *s, MOVTrack *track)
{
int tag = track->enc->codec_tag;
if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL &&
(tag == MKTAG('d','v','c','p') ||
track->enc->codec_id == CODEC_ID_RAWVIDEO ||
... | false | FFmpeg | a2b7ed3274b2b575f6d2e8fd3bf0a6a1818b2c1e | static int mov_get_codec_tag(AVFormatContext *s, MOVTrack *track)
{
int tag = track->enc->codec_tag;
if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL &&
(tag == MKTAG('d','v','c','p') ||
track->enc->codec_id == CODEC_ID_RAWVIDEO ||
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, MOVTrack *VAR_1)
{
int VAR_2 = VAR_1->enc->codec_tag;
if (!VAR_2 || (VAR_1->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL &&
(VAR_2 == MKTAG('d','v','c','p') ||
VAR_1->enc->codec_id == CODEC_ID_RAWVIDEO ||
... | [
"static int FUNC_0(AVFormatContext *VAR_0, MOVTrack *VAR_1)\n{",
"int VAR_2 = VAR_1->enc->codec_tag;",
"if (!VAR_2 || (VAR_1->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL &&\n(VAR_2 == MKTAG('d','v','c','p') ||\nVAR_1->enc->codec_id == CODEC_ID_RAWVIDEO ||\nVAR_1->enc->codec_id == CODEC_ID_H263 ||\nav_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
] | [
[
1,
3
],
[
5
],
[
9,
11,
13,
15,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
11,031 | static av_cold int nvenc_recalc_surfaces(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
int nb_surfaces = 0;
if (ctx->rc_lookahead > 0) {
nb_surfaces = ctx->rc_lookahead + ((ctx->encode_config.frameIntervalP > 0) ? ctx->encode_config.frameIntervalP : 0) + 1 + 4;
if (c... | false | FFmpeg | 8de3458a07376b0a96772e586b6dba5e93432f52 | static av_cold int nvenc_recalc_surfaces(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
int nb_surfaces = 0;
if (ctx->rc_lookahead > 0) {
nb_surfaces = ctx->rc_lookahead + ((ctx->encode_config.frameIntervalP > 0) ? ctx->encode_config.frameIntervalP : 0) + 1 + 4;
if (c... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
NvencContext *ctx = avctx->priv_data;
int VAR_0 = 0;
if (ctx->rc_lookahead > 0) {
VAR_0 = ctx->rc_lookahead + ((ctx->encode_config.frameIntervalP > 0) ? ctx->encode_config.frameIntervalP : 0) + 1 + 4;
if (ctx->VAR_0 < VAR_0) {
... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"NvencContext *ctx = avctx->priv_data;",
"int VAR_0 = 0;",
"if (ctx->rc_lookahead > 0) {",
"VAR_0 = ctx->rc_lookahead + ((ctx->encode_config.frameIntervalP > 0) ? ctx->encode_config.frameIntervalP : 0) + 1 + 4;",
"if (ctx->VAR_0 < VAR_0) {",
"av_log... | [
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
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
11,032 | yuv2rgba64_full_2_c_template(SwsContext *c, const int32_t *buf[2],
const int32_t *ubuf[2], const int32_t *vbuf[2],
const int32_t *abuf[2], uint16_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum AVPixelFormat target, ... | false | FFmpeg | 7cf22c79706d23d40d16cee37eb32d5797adcc2c | yuv2rgba64_full_2_c_template(SwsContext *c, const int32_t *buf[2],
const int32_t *ubuf[2], const int32_t *vbuf[2],
const int32_t *abuf[2], uint16_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum AVPixelFormat target, ... | {
"code": [],
"line_no": []
} | FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2],
const int32_t *VAR_2[2], const int32_t *VAR_3[2],
const int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, int VAR_9,
enum AVPixelFormat VAR_10, int VAR_11... | [
"FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2],\nconst int32_t *VAR_2[2], const int32_t *VAR_3[2],\nconst int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum AVPixelFormat VAR_10, int VAR_11, int VAR_12)\n{",
"const int32_t *VAR_13 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
... |
11,033 | static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
{
if(st->codec->codec_id == CODEC_ID_PROBE){
AVProbeData *pd = &st->probe_data;
av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
--st->probe_packets;
pd->buf = av_realloc(pd->buf, pd->buf... | false | FFmpeg | f0ff9eb49394d4ba06eff30e0dac2f3ce590e311 | static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
{
if(st->codec->codec_id == CODEC_ID_PROBE){
AVProbeData *pd = &st->probe_data;
av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
--st->probe_packets;
pd->buf = av_realloc(pd->buf, pd->buf... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const AVPacket *VAR_2)
{
if(VAR_1->codec->codec_id == CODEC_ID_PROBE){
AVProbeData *pd = &VAR_1->probe_data;
av_log(VAR_0, AV_LOG_DEBUG, "probing stream %d\n", VAR_1->index);
--VAR_1->probe_packets;
pd->buf = av_real... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const AVPacket *VAR_2)\n{",
"if(VAR_1->codec->codec_id == CODEC_ID_PROBE){",
"AVProbeData *pd = &VAR_1->probe_data;",
"av_log(VAR_0, AV_LOG_DEBUG, \"probing stream %d\\n\", VAR_1->index);",
"--VAR_1->probe_packets;",
"pd->buf = av_realloc(pd->bu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
11,034 | static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number)
{
int vo_ver_id;
if(s->max_b_frames || s->quarter_sample){
vo_ver_id= 5;
s->vo_type= ADV_SIMPLE_VO_TYPE;
}else{
vo_ver_id= 1;
s->vo_type= SIMPLE_VO_TYPE;
}
put_bits(&s... | true | FFmpeg | 99683a307776a7638ccce236a4ce5aa3e914e77d | static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number)
{
int vo_ver_id;
if(s->max_b_frames || s->quarter_sample){
vo_ver_id= 5;
s->vo_type= ADV_SIMPLE_VO_TYPE;
}else{
vo_ver_id= 1;
s->vo_type= SIMPLE_VO_TYPE;
}
put_bits(&s... | {
"code": [
"\tput_string(&s->pb, LIBAVCODEC_IDENT);",
" ff_mpeg4_stuffing(&s->pb);"
],
"line_no": [
185,
187
]
} | static void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
if(VAR_0->max_b_frames || VAR_0->quarter_sample){
VAR_3= 5;
VAR_0->vo_type= ADV_SIMPLE_VO_TYPE;
}else{
VAR_3= 1;
VAR_0->vo_type= SIMPLE_VO_TYPE;
}
put_bits(&VAR_0->pb, 16, 0);
... | [
"static void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"if(VAR_0->max_b_frames || VAR_0->quarter_sample){",
"VAR_3= 5;",
"VAR_0->vo_type= ADV_SIMPLE_VO_TYPE;",
"}else{",
"VAR_3= 1;",
"VAR_0->vo_type= SIMPLE_VO_TYPE;",
"}",
"put_bits(&VAR_0->pb, 16, 0);",
"put_bits(&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51... |
11,035 | static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,
int sector_size)
{
s->lba = lba;
s->packet_transfer_size = nb_sectors * sector_size;
s->elementary_transfer_size = 0;
s->io_buffer_index = sector_size;
s->cd_sector_size = sector_size;
... | true | qemu | 5f81724d80a1492c73d329242663962139db739b | static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,
int sector_size)
{
s->lba = lba;
s->packet_transfer_size = nb_sectors * sector_size;
s->elementary_transfer_size = 0;
s->io_buffer_index = sector_size;
s->cd_sector_size = sector_size;
... | {
"code": [
" s->status = READY_STAT | SEEK_STAT;"
],
"line_no": [
19
]
} | static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,
int VAR_3)
{
VAR_0->VAR_1 = VAR_1;
VAR_0->packet_transfer_size = VAR_2 * VAR_3;
VAR_0->elementary_transfer_size = 0;
VAR_0->io_buffer_index = VAR_3;
VAR_0->cd_sector_size = VAR_3;
VAR_0->status... | [
"static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,\nint VAR_3)\n{",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->packet_transfer_size = VAR_2 * VAR_3;",
"VAR_0->elementary_transfer_size = 0;",
"VAR_0->io_buffer_index = VAR_3;",
"VAR_0->cd_sector_size = VAR_3;",
"VAR_0->status = READY_STAT | SEEK_STAT;",
"... | [
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
11,036 | static inline int *DEC_UPAIR(int *dst, unsigned idx, unsigned sign)
{
dst[0] = (idx & 15) * (1 - (sign & 0xFFFFFFFE));
dst[1] = (idx >> 4 & 15) * (1 - ((sign & 1) << 1));
return dst + 2;
}
| true | FFmpeg | 26227d91865ddfbfe35c9ff84853cc469e1c7daf | static inline int *DEC_UPAIR(int *dst, unsigned idx, unsigned sign)
{
dst[0] = (idx & 15) * (1 - (sign & 0xFFFFFFFE));
dst[1] = (idx >> 4 & 15) * (1 - ((sign & 1) << 1));
return dst + 2;
}
| {
"code": [
" dst[1] = (idx >> 4 & 15) * (1 - ((sign & 1) << 1));"
],
"line_no": [
7
]
} | static inline int *FUNC_0(int *VAR_0, unsigned VAR_1, unsigned VAR_2)
{
VAR_0[0] = (VAR_1 & 15) * (1 - (VAR_2 & 0xFFFFFFFE));
VAR_0[1] = (VAR_1 >> 4 & 15) * (1 - ((VAR_2 & 1) << 1));
return VAR_0 + 2;
}
| [
"static inline int *FUNC_0(int *VAR_0, unsigned VAR_1, unsigned VAR_2)\n{",
"VAR_0[0] = (VAR_1 & 15) * (1 - (VAR_2 & 0xFFFFFFFE));",
"VAR_0[1] = (VAR_1 >> 4 & 15) * (1 - ((VAR_2 & 1) << 1));",
"return VAR_0 + 2;",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
]
] |
11,037 | static void av_always_inline filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
con... | false | FFmpeg | a625e13208ad0ebf1554aa73c9bf41452520f176 | static void av_always_inline filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
con... | {
"code": [],
"line_no": []
} | static void VAR_0 filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
const int alpha = alpha_table[index_a];
const int beta... | [
"static void VAR_0 filter_mb_edgech( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {",
"const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);",
"const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;",
"const int alpha = alpha_table[index_a];",
"const int... | [
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
]
] |
11,038 | static void usbredir_configuration_status(void *priv, uint32_t id,
struct usb_redir_configuration_status_header *config_status)
{
USBRedirDevice *dev = priv;
AsyncURB *aurb;
int len = 0;
DPRINTF("set config status %d config %d id %u\n", config_status->status,
config_status->conf... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static void usbredir_configuration_status(void *priv, uint32_t id,
struct usb_redir_configuration_status_header *config_status)
{
USBRedirDevice *dev = priv;
AsyncURB *aurb;
int len = 0;
DPRINTF("set config status %d config %d id %u\n", config_status->status,
config_status->conf... | {
"code": [
" aurb->packet->len =",
" aurb->packet->len ="
],
"line_no": [
39,
39
]
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1,
struct usb_redir_configuration_status_header *VAR_2)
{
USBRedirDevice *dev = VAR_0;
AsyncURB *aurb;
int VAR_3 = 0;
DPRINTF("set config status %d config %d VAR_1 %u\n", VAR_2->status,
VAR_2->configuration, VAR_1);
aurb = asyn... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1,\nstruct usb_redir_configuration_status_header *VAR_2)\n{",
"USBRedirDevice *dev = VAR_0;",
"AsyncURB *aurb;",
"int VAR_3 = 0;",
"DPRINTF(\"set config status %d config %d VAR_1 %u\\n\", VAR_2->status,\nVAR_2->configuration, VAR_1);",
"aurb = async_find(dev, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
11,039 | static void gen_smul_dual(TCGv a, TCGv b)
{
TCGv tmp1 = new_tmp();
TCGv tmp2 = new_tmp();
tcg_gen_ext16s_i32(tmp1, a);
tcg_gen_ext16s_i32(tmp2, b);
tcg_gen_mul_i32(tmp1, tmp1, tmp2);
dead_tmp(tmp2);
tcg_gen_sari_i32(a, a, 16);
tcg_gen_sari_i32(b, b, 16);
tcg_gen_mul_i32(b, ... | true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void gen_smul_dual(TCGv a, TCGv b)
{
TCGv tmp1 = new_tmp();
TCGv tmp2 = new_tmp();
tcg_gen_ext16s_i32(tmp1, a);
tcg_gen_ext16s_i32(tmp2, b);
tcg_gen_mul_i32(tmp1, tmp1, tmp2);
dead_tmp(tmp2);
tcg_gen_sari_i32(a, a, 16);
tcg_gen_sari_i32(b, b, 16);
tcg_gen_mul_i32(b, ... | {
"code": [
" TCGv tmp1 = new_tmp();",
" TCGv tmp2 = new_tmp();",
" dead_tmp(tmp2);",
" dead_tmp(tmp1);",
" dead_tmp(tmp2);"
],
"line_no": [
5,
7,
15,
25,
15
]
} | static void FUNC_0(TCGv VAR_0, TCGv VAR_1)
{
TCGv tmp1 = new_tmp();
TCGv tmp2 = new_tmp();
tcg_gen_ext16s_i32(tmp1, VAR_0);
tcg_gen_ext16s_i32(tmp2, VAR_1);
tcg_gen_mul_i32(tmp1, tmp1, tmp2);
dead_tmp(tmp2);
tcg_gen_sari_i32(VAR_0, VAR_0, 16);
tcg_gen_sari_i32(VAR_1, VAR_1, 16);... | [
"static void FUNC_0(TCGv VAR_0, TCGv VAR_1)\n{",
"TCGv tmp1 = new_tmp();",
"TCGv tmp2 = new_tmp();",
"tcg_gen_ext16s_i32(tmp1, VAR_0);",
"tcg_gen_ext16s_i32(tmp2, VAR_1);",
"tcg_gen_mul_i32(tmp1, tmp1, tmp2);",
"dead_tmp(tmp2);",
"tcg_gen_sari_i32(VAR_0, VAR_0, 16);",
"tcg_gen_sari_i32(VAR_1, VAR_1,... | [
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
11,040 | static int ac3_parse_bsi(AC3DecodeContext *ctx)
{
ac3_bsi *bsi = &ctx->bsi;
uint32_t *flags = &bsi->flags;
GetBitContext *gb = &ctx->gb;
*flags = 0;
bsi->cmixlev = 0;
bsi->surmixlev = 0;
bsi->dsurmod = 0;
bsi->bsid = get_bits(gb, 5);
if (bsi->bsid > 0x08)
retur... | false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static int ac3_parse_bsi(AC3DecodeContext *ctx)
{
ac3_bsi *bsi = &ctx->bsi;
uint32_t *flags = &bsi->flags;
GetBitContext *gb = &ctx->gb;
*flags = 0;
bsi->cmixlev = 0;
bsi->surmixlev = 0;
bsi->dsurmod = 0;
bsi->bsid = get_bits(gb, 5);
if (bsi->bsid > 0x08)
retur... | {
"code": [],
"line_no": []
} | static int FUNC_0(AC3DecodeContext *VAR_0)
{
ac3_bsi *bsi = &VAR_0->bsi;
uint32_t *flags = &bsi->flags;
GetBitContext *gb = &VAR_0->gb;
*flags = 0;
bsi->cmixlev = 0;
bsi->surmixlev = 0;
bsi->dsurmod = 0;
bsi->bsid = get_bits(gb, 5);
if (bsi->bsid > 0x08)
return... | [
"static int FUNC_0(AC3DecodeContext *VAR_0)\n{",
"ac3_bsi *bsi = &VAR_0->bsi;",
"uint32_t *flags = &bsi->flags;",
"GetBitContext *gb = &VAR_0->gb;",
"*flags = 0;",
"bsi->cmixlev = 0;",
"bsi->surmixlev = 0;",
"bsi->dsurmod = 0;",
"bsi->bsid = get_bits(gb, 5);",
"if (bsi->bsid > 0x08)\nreturn -1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[... |
11,041 | int av_grab(AVFormatContext *s)
{
UINT8 audio_buf[AUDIO_FIFO_SIZE];
UINT8 audio_buf1[AUDIO_FIFO_SIZE];
UINT8 audio_out[AUDIO_FIFO_SIZE];
UINT8 video_buffer[1024*1024];
char buf[256];
short *samples;
URLContext *audio_handle = NULL, *video_handle = NULL;
int ret;
AVCodecCont... | false | FFmpeg | a38469e1da7b4829a2fba4279d8420a33f96832e | int av_grab(AVFormatContext *s)
{
UINT8 audio_buf[AUDIO_FIFO_SIZE];
UINT8 audio_buf1[AUDIO_FIFO_SIZE];
UINT8 audio_out[AUDIO_FIFO_SIZE];
UINT8 video_buffer[1024*1024];
char buf[256];
short *samples;
URLContext *audio_handle = NULL, *video_handle = NULL;
int ret;
AVCodecCont... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0)
{
UINT8 audio_buf[AUDIO_FIFO_SIZE];
UINT8 audio_buf1[AUDIO_FIFO_SIZE];
UINT8 audio_out[AUDIO_FIFO_SIZE];
UINT8 video_buffer[1024*1024];
char VAR_21[256];
short *VAR_2;
URLContext *audio_handle = NULL, *video_handle = NULL;
int VAR_19;
AVCo... | [
"int FUNC_0(AVFormatContext *VAR_0)\n{",
"UINT8 audio_buf[AUDIO_FIFO_SIZE];",
"UINT8 audio_buf1[AUDIO_FIFO_SIZE];",
"UINT8 audio_out[AUDIO_FIFO_SIZE];",
"UINT8 video_buffer[1024*1024];",
"char VAR_21[256];",
"short *VAR_2;",
"URLContext *audio_handle = NULL, *video_handle = NULL;",
"int VAR_19;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
45
... |
11,042 | static int64_t nfs_client_open(NFSClient *client, QDict *options,
int flags, Error **errp, int open_flags)
{
int ret = -EINVAL;
QemuOpts *opts = NULL;
Error *local_err = NULL;
struct stat st;
char *file = NULL, *strp = NULL;
opts = qemu_opts_create(&runti... | true | qemu | f67409a5bb43ebe74401fa8e187267eb0f139293 | static int64_t nfs_client_open(NFSClient *client, QDict *options,
int flags, Error **errp, int open_flags)
{
int ret = -EINVAL;
QemuOpts *opts = NULL;
Error *local_err = NULL;
struct stat st;
char *file = NULL, *strp = NULL;
opts = qemu_opts_create(&runti... | {
"code": [
" if (qemu_opt_get(opts, \"uid\")) {",
" client->uid = qemu_opt_get_number(opts, \"uid\", 0);",
" if (qemu_opt_get(opts, \"gid\")) {",
" client->gid = qemu_opt_get_number(opts, \"gid\", 0);",
" if (qemu_opt_get(opts, \"tcp-syncnt\")) {",
" client->tcp_... | static int64_t FUNC_0(NFSClient *client, QDict *options,
int flags, Error **errp, int open_flags)
{
int VAR_0 = -EINVAL;
QemuOpts *opts = NULL;
Error *local_err = NULL;
struct stat VAR_1;
char *VAR_2 = NULL, *VAR_3 = NULL;
opts = qemu_opts_create(&runtime... | [
"static int64_t FUNC_0(NFSClient *client, QDict *options,\nint flags, Error **errp, int open_flags)\n{",
"int VAR_0 = -EINVAL;",
"QemuOpts *opts = NULL;",
"Error *local_err = NULL;",
"struct stat VAR_1;",
"char *VAR_2 = NULL, *VAR_3 = NULL;",
"opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
11,043 | void ff_ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,
IVITile *tile, int32_t mv_scale)
{
int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type;
int offs, mb_offset, row_offset;
IVIMbInfo *mb, *ref_mb;
const int1... | true | FFmpeg | 4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95 | void ff_ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,
IVITile *tile, int32_t mv_scale)
{
int x, y, need_mc, mbn, blk, num_blocks, mv_x, mv_y, mc_type;
int offs, mb_offset, row_offset;
IVIMbInfo *mb, *ref_mb;
const int1... | {
"code": [
" if (band->inherit_mv) {"
],
"line_no": [
75
]
} | void FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1,
IVITile *VAR_2, int32_t VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21;
int VAR_13, VAR_14, VAR_15;
IVIMbInfo *mb, *ref_mb;
const int16_t *VAR_16;
... | [
"void FUNC_0(AVCodecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, int32_t VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_21;",
"int VAR_13, VAR_14, VAR_15;",
"IVIMbInfo *mb, *ref_mb;",
"const int16_t *VAR_16;",
"int16_t *dst;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
11,044 | static int init_duplicate_context(MpegEncContext *s, MpegEncContext *base){
int y_size = s->b8_stride * (2 * s->mb_height + 1);
int c_size = s->mb_stride * (s->mb_height + 1);
int yc_size = y_size + 2 * c_size;
int i;
// edge emu needs blocksize + filter length - 1 (=17x17 for halfpel / 21x21... | true | FFmpeg | 330deb75923675224fb9aed311d3d6ce3ec52420 | static int init_duplicate_context(MpegEncContext *s, MpegEncContext *base){
int y_size = s->b8_stride * (2 * s->mb_height + 1);
int c_size = s->mb_stride * (s->mb_height + 1);
int yc_size = y_size + 2 * c_size;
int i;
FF_ALLOCZ_OR_GOTO(s->avctx, s->allocated_edge_emu_buffer, (s->width+6... | {
"code": [
" s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*21;"
],
"line_no": [
17
]
} | static int FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1){
int VAR_2 = VAR_0->b8_stride * (2 * VAR_0->mb_height + 1);
int VAR_3 = VAR_0->mb_stride * (VAR_0->mb_height + 1);
int VAR_4 = VAR_2 + 2 * VAR_3;
int VAR_5;
FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->allocated_edge_emu_buffer, ... | [
"static int FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1){",
"int VAR_2 = VAR_0->b8_stride * (2 * VAR_0->mb_height + 1);",
"int VAR_3 = VAR_0->mb_stride * (VAR_0->mb_height + 1);",
"int VAR_4 = VAR_2 + 2 * VAR_3;",
"int VAR_5;",
"FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->allocated_edge_emu_buffer, (VA... | [
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
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37,
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
53
],
[
55
... |
11,045 | static int msrle_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MsrleContext *s = avctx->priv_data;
int istride = FFALIGN(avctx->width*avctx->bits... | true | FFmpeg | 754f84663e8b3a88fa2e953b195d59230393fb8d | static int msrle_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MsrleContext *s = avctx->priv_data;
int istride = FFALIGN(avctx->width*avctx->bits... | {
"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;
MsrleContext *s = VAR_0->priv_data;
int VAR_6 = FFALIGN(VAR_0->width*VAR_0->bits_per_coded_sample... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MsrleContext *s = VAR_0->priv_data;",
"int VAR_6 = FFALIGN(VAR_0->width*VAR_0->bits_per_coded_sample, 32) / 8;",
"int VAR_7;",
"s->VAR_4 = VAR_4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12,
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
21
],
[
22
],
[
24
],
[
... |
11,047 | static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat, int dstFormat,
int srcW, int srcH, int dstW, int dstH, int flags){
uint8_t *src[3];
uint8_t *dst[3];
uint8_t *out[3];
int srcStride[3], dstStride[3];
int i;
uint64_t ssdY, ssdU, ssdV;
... | true | FFmpeg | 54ea773614e6dd43e31f870cde969d762f2deba6 | static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat, int dstFormat,
int srcW, int srcH, int dstW, int dstH, int flags){
uint8_t *src[3];
uint8_t *dst[3];
uint8_t *out[3];
int srcStride[3], dstStride[3];
int i;
uint64_t ssdY, ssdU, ssdV;
... | {
"code": [
" struct SwsContext *srcContext, *dstContext, *outContext;",
" dstContext = outContext = NULL;"
],
"line_no": [
17,
71
]
} | static int FUNC_0(uint8_t *VAR_0[3], int VAR_1[3], int VAR_2, int VAR_3, int VAR_4, int VAR_5,
int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10){
uint8_t *src[3];
uint8_t *dst[3];
uint8_t *out[3];
int VAR_11[3], VAR_12[3];
int VAR_13;
uint64_t ssdY, ssdU, ssdV;
... | [
"static int FUNC_0(uint8_t *VAR_0[3], int VAR_1[3], int VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10){",
"uint8_t *src[3];",
"uint8_t *dst[3];",
"uint8_t *out[3];",
"int VAR_11[3], VAR_12[3];",
"int VAR_13;",
"uint64_t ssdY, ssdU, ssdV;",
"struct SwsC... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
... |
11,048 | static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
{
int ret;
struct addrinfo *res;
char port_str[16];
struct rdma_cm_event *cm_event;
char ip[40] = "unknown";
struct addrinfo *e;
if (rdma->host == NULL || !strcmp(rdma->host, "")) {
ERROR(errp, "RDMA hostna... | true | qemu | 7fc5b13fd7b05babc7bcad9dcb8281ae202a9494 | static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
{
int ret;
struct addrinfo *res;
char port_str[16];
struct rdma_cm_event *cm_event;
char ip[40] = "unknown";
struct addrinfo *e;
if (rdma->host == NULL || !strcmp(rdma->host, "")) {
ERROR(errp, "RDMA hostna... | {
"code": [
" struct addrinfo *res;",
" struct addrinfo *e;",
" return -1;",
" return -1;",
" ret = getaddrinfo(rdma->host, port_str, NULL, &res);",
" ERROR(errp, \"could not getaddrinfo address %s\", rdma->host);",
" &((struct sockaddr_in *) e->ai_... | static int FUNC_0(RDMAContext *VAR_0, Error **VAR_1)
{
int VAR_2;
struct addrinfo *VAR_3;
char VAR_4[16];
struct rdma_cm_event *VAR_5;
char VAR_6[40] = "unknown";
struct addrinfo *VAR_7;
if (VAR_0->host == NULL || !strcmp(VAR_0->host, "")) {
ERROR(VAR_1, "RDMA hostname has... | [
"static int FUNC_0(RDMAContext *VAR_0, Error **VAR_1)\n{",
"int VAR_2;",
"struct addrinfo *VAR_3;",
"char VAR_4[16];",
"struct rdma_cm_event *VAR_5;",
"char VAR_6[40] = \"unknown\";",
"struct addrinfo *VAR_7;",
"if (VAR_0->host == NULL || !strcmp(VAR_0->host, \"\")) {",
"ERROR(VAR_1, \"RDMA hostname... | [
0,
0,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,049 | static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
const char *model,
const char *name,
int fd, int is_connected,
... | true | qemu | bb160b571fe469b03228d4502c75a18045978a74 | static NetSocketState *net_socket_fd_init_dgram(NetClientState *peer,
const char *model,
const char *name,
int fd, int is_connected,
... | {
"code": [
" if (is_connected) {"
],
"line_no": [
97
]
} | static NetSocketState *FUNC_0(NetClientState *peer,
const char *model,
const char *name,
int fd, int is_connected,
const cha... | [
"static NetSocketState *FUNC_0(NetClientState *peer,\nconst char *model,\nconst char *name,\nint fd, int is_connected,\nconst char *mcast,\nError **errp)\n{",
"struct sockaddr_in VAR_0;",
"int VAR_1;",
"NetClientState *nc;",
"NetSocketState *s;",
"if (is_connected && mcast != NULL) {",
"if (parse_host_p... | [
0,
0,
0,
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
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[
61
],
[... |
11,050 | static void FUNCC(pred4x4_horizontal)(uint8_t *_src, const uint8_t *topright, int _stride){
pixel *src = (pixel*)_src;
int stride = _stride/sizeof(pixel);
((pixel4*)(src+0*stride))[0]= PIXEL_SPLAT_X4(src[-1+0*stride]);
((pixel4*)(src+1*stride))[0]= PIXEL_SPLAT_X4(src[-1+1*stride]);
((pixel4*)(s... | true | FFmpeg | 2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac | static void FUNCC(pred4x4_horizontal)(uint8_t *_src, const uint8_t *topright, int _stride){
pixel *src = (pixel*)_src;
int stride = _stride/sizeof(pixel);
((pixel4*)(src+0*stride))[0]= PIXEL_SPLAT_X4(src[-1+0*stride]);
((pixel4*)(src+1*stride))[0]= PIXEL_SPLAT_X4(src[-1+1*stride]);
((pixel4*)(s... | {
"code": [
" ((pixel4*)(src+0*stride))[0]= PIXEL_SPLAT_X4(src[-1+0*stride]);",
" ((pixel4*)(src+1*stride))[0]= PIXEL_SPLAT_X4(src[-1+1*stride]);",
" ((pixel4*)(src+2*stride))[0]= PIXEL_SPLAT_X4(src[-1+2*stride]);",
" ((pixel4*)(src+3*stride))[0]= PIXEL_SPLAT_X4(src[-1+3*stride]);"
],
... | static void FUNC_0(pred4x4_horizontal)(uint8_t *_src, const uint8_t *topright, int _stride){
pixel *src = (pixel*)_src;
int VAR_0 = _stride/sizeof(pixel);
((pixel4*)(src+0*VAR_0))[0]= PIXEL_SPLAT_X4(src[-1+0*VAR_0]);
((pixel4*)(src+1*VAR_0))[0]= PIXEL_SPLAT_X4(src[-1+1*VAR_0]);
((pixel4*)(src+2... | [
"static void FUNC_0(pred4x4_horizontal)(uint8_t *_src, const uint8_t *topright, int _stride){",
"pixel *src = (pixel*)_src;",
"int VAR_0 = _stride/sizeof(pixel);",
"((pixel4*)(src+0*VAR_0))[0]= PIXEL_SPLAT_X4(src[-1+0*VAR_0]);",
"((pixel4*)(src+1*VAR_0))[0]= PIXEL_SPLAT_X4(src[-1+1*VAR_0]);",
"((pixel4*)(... | [
0,
0,
0,
1,
1,
1,
1,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
11,051 | static void ehci_trace_itd(EHCIState *s, target_phys_addr_t addr, EHCIitd *itd)
{
trace_usb_ehci_itd(addr, itd->next);
}
| true | qemu | e654887f3880fb0f6d4d40d15d2977de245a6440 | static void ehci_trace_itd(EHCIState *s, target_phys_addr_t addr, EHCIitd *itd)
{
trace_usb_ehci_itd(addr, itd->next);
}
| {
"code": [
" trace_usb_ehci_itd(addr, itd->next);"
],
"line_no": [
5
]
} | static void FUNC_0(EHCIState *VAR_0, target_phys_addr_t VAR_1, EHCIitd *VAR_2)
{
trace_usb_ehci_itd(VAR_1, VAR_2->next);
}
| [
"static void FUNC_0(EHCIState *VAR_0, target_phys_addr_t VAR_1, EHCIitd *VAR_2)\n{",
"trace_usb_ehci_itd(VAR_1, VAR_2->next);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,052 | static inline void horizX1Filter(uint8_t *src, int stride, int QP)
{
int y;
static uint64_t *lut= NULL;
if(lut==NULL)
{
int i;
lut = av_malloc(256*8);
for(i=0; i<256; i++)
{
int v= i < 128 ? 2*i : 2*(i-256);
/*
//Simulate 112242211 9-Tap filter
... | true | FFmpeg | f9d8658d67cfb478e5e36ce1d2795eabdb201bcb | static inline void horizX1Filter(uint8_t *src, int stride, int QP)
{
int y;
static uint64_t *lut= NULL;
if(lut==NULL)
{
int i;
lut = av_malloc(256*8);
for(i=0; i<256; i++)
{
int v= i < 128 ? 2*i : 2*(i-256);
uint64_t a= (... | {
"code": [
" static uint64_t *lut= NULL;",
" if(lut==NULL)",
" lut = av_malloc(256*8);"
],
"line_no": [
7,
9,
15
]
} | static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
static uint64_t *VAR_4= NULL;
if(VAR_4==NULL)
{
int VAR_5;
VAR_4 = av_malloc(256*8);
for(VAR_5=0; VAR_5<256; VAR_5++)
{
int VAR_6= VAR_5 < 128 ? 2*VAR_5 : 2*(VAR_5-256);
... | [
"static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"static uint64_t *VAR_4= NULL;",
"if(VAR_4==NULL)\n{",
"int VAR_5;",
"VAR_4 = av_malloc(256*8);",
"for(VAR_5=0; VAR_5<256; VAR_5++)",
"{",
"int VAR_6= VAR_5 < 128 ? 2*VAR_5 : 2*(VAR_5-256);",
"uint64_t a= (VAR_6/16... | [
0,
0,
1,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57,
59
],
[
63
... |
11,053 | AVCodecParserContext *av_parser_init(int codec_id)
{
AVCodecParserContext *s;
AVCodecParser *parser;
int ret;
if(codec_id == CODEC_ID_NONE)
return NULL;
for(parser = av_first_parser; parser != NULL; parser = parser->next) {
if (parser->codec_ids[0] == codec_id ||
... | false | FFmpeg | 85ff33948963257d418abe7d8975b4c9c4641223 | AVCodecParserContext *av_parser_init(int codec_id)
{
AVCodecParserContext *s;
AVCodecParser *parser;
int ret;
if(codec_id == CODEC_ID_NONE)
return NULL;
for(parser = av_first_parser; parser != NULL; parser = parser->next) {
if (parser->codec_ids[0] == codec_id ||
... | {
"code": [],
"line_no": []
} | AVCodecParserContext *FUNC_0(int codec_id)
{
AVCodecParserContext *s;
AVCodecParser *parser;
int VAR_0;
if(codec_id == CODEC_ID_NONE)
return NULL;
for(parser = av_first_parser; parser != NULL; parser = parser->next) {
if (parser->codec_ids[0] == codec_id ||
p... | [
"AVCodecParserContext *FUNC_0(int codec_id)\n{",
"AVCodecParserContext *s;",
"AVCodecParser *parser;",
"int VAR_0;",
"if(codec_id == CODEC_ID_NONE)\nreturn NULL;",
"for(parser = av_first_parser; parser != NULL; parser = parser->next) {",
"if (parser->codec_ids[0] == codec_id ||\nparser->codec_ids[1] == ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21,
23,
25,
27,
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
11,054 | int migrate_use_xbzrle(void)
{
MigrationState *s;
s = migrate_get_current();
return s->enabled_capabilities[MIGRATION_CAPABILITY_XBZRLE];
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | int migrate_use_xbzrle(void)
{
MigrationState *s;
s = migrate_get_current();
return s->enabled_capabilities[MIGRATION_CAPABILITY_XBZRLE];
}
| {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
MigrationState *s;
s = migrate_get_current();
return s->enabled_capabilities[MIGRATION_CAPABILITY_XBZRLE];
}
| [
"int FUNC_0(void)\n{",
"MigrationState *s;",
"s = migrate_get_current();",
"return s->enabled_capabilities[MIGRATION_CAPABILITY_XBZRLE];",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
11,056 | static void xen_hvm_change_state_handler(void *opaque, int running,
RunState rstate)
{
if (running) {
xen_main_loop_prepare((XenIOState *)opaque);
}
}
| true | qemu | 3996e85c1822e05c50250f8d2d1e57b6bea1229d | static void xen_hvm_change_state_handler(void *opaque, int running,
RunState rstate)
{
if (running) {
xen_main_loop_prepare((XenIOState *)opaque);
}
}
| {
"code": [
" xen_main_loop_prepare((XenIOState *)opaque);"
],
"line_no": [
9
]
} | static void FUNC_0(void *VAR_0, int VAR_1,
RunState VAR_2)
{
if (VAR_1) {
xen_main_loop_prepare((XenIOState *)VAR_0);
}
}
| [
"static void FUNC_0(void *VAR_0, int VAR_1,\nRunState VAR_2)\n{",
"if (VAR_1) {",
"xen_main_loop_prepare((XenIOState *)VAR_0);",
"}",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
11,057 | static int parse_vlan(DeviceState *dev, Property *prop, const char *str)
{
VLANState **ptr = qdev_get_prop_ptr(dev, prop);
int id;
if (sscanf(str, "%d", &id) != 1)
return -EINVAL;
*ptr = qemu_find_vlan(id, 1);
if (*ptr == NULL)
return -ENOENT;
return 0;
}
| true | qemu | 5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde | static int parse_vlan(DeviceState *dev, Property *prop, const char *str)
{
VLANState **ptr = qdev_get_prop_ptr(dev, prop);
int id;
if (sscanf(str, "%d", &id) != 1)
return -EINVAL;
*ptr = qemu_find_vlan(id, 1);
if (*ptr == NULL)
return -ENOENT;
return 0;
}
| {
"code": [
" return -EINVAL;",
" return 0;",
" return -EINVAL;",
" return 0;",
" return -EINVAL;",
" return 0;",
" return -EINVAL;",
" return 0;",
" return -EINVAL;",
" return 0;",
" return -EINVAL;",
" return... | static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{
VLANState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);
int VAR_3;
if (sscanf(VAR_2, "%d", &VAR_3) != 1)
return -EINVAL;
*ptr = qemu_find_vlan(VAR_3, 1);
if (*ptr == NULL)
return -ENOENT;
return 0;
... | [
"static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)\n{",
"VLANState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);",
"int VAR_3;",
"if (sscanf(VAR_2, \"%d\", &VAR_3) != 1)\nreturn -EINVAL;",
"*ptr = qemu_find_vlan(VAR_3, 1);",
"if (*ptr == NULL)\nreturn -ENOENT;",
"return 0;",
"}"
] | [
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
]
] |
11,058 | static int qtrle_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
QtrleContext *s = avctx->priv_data;
int header, start_line;
int stream... | true | FFmpeg | de64d8cf171c6ecdca22d57f0bdd7efec95d0c0e | static int qtrle_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
QtrleContext *s = avctx->priv_data;
int header, start_line;
int stream... | {
"code": [
" const uint8_t *buf = avpkt->data;",
" int buf_size = avpkt->size;",
" int stream_ptr, height, row_ptr;",
" s->buf = buf;",
" s->size = buf_size;",
" if (s->size < 8)",
" stream_ptr = 4;",
" header = AV_RB16(&s->buf[stream_ptr]);",
" stream_p... | 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;
QtrleContext *s = VAR_0->priv_data;
int VAR_6, VAR_7;
int VAR_8, VAR_9, VAR_10;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"QtrleContext *s = VAR_0->priv_data;",
"int VAR_6, VAR_7;",
"int VAR_8, VAR_9, VAR_10;",
"int VAR_11 = 0;",
"s->VAR_4 = VAR_4;",
"s->size = V... | [
0,
1,
1,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47,
49
],
[
55
],
[
61
... |
11,059 | static void cabac_init_decoder(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
skip_bits(gb, 1);
align_get_bits(gb);
ff_init_cabac_decoder(&s->HEVClc->cc,
gb->buffer + get_bits_count(gb) / 8,
(get_bits_left(gb) + 7) / 8);
}
| true | FFmpeg | 933aa91e31d5cbf9dbc0cf416a988e6011bc4a40 | static void cabac_init_decoder(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
skip_bits(gb, 1);
align_get_bits(gb);
ff_init_cabac_decoder(&s->HEVClc->cc,
gb->buffer + get_bits_count(gb) / 8,
(get_bits_left(gb) + 7) / 8);
}
| {
"code": [
"static void cabac_init_decoder(HEVCContext *s)",
" ff_init_cabac_decoder(&s->HEVClc->cc,"
],
"line_no": [
1,
11
]
} | static void FUNC_0(HEVCContext *VAR_0)
{
GetBitContext *gb = &VAR_0->HEVClc->gb;
skip_bits(gb, 1);
align_get_bits(gb);
ff_init_cabac_decoder(&VAR_0->HEVClc->cc,
gb->buffer + get_bits_count(gb) / 8,
(get_bits_left(gb) + 7) / 8);
}
| [
"static void FUNC_0(HEVCContext *VAR_0)\n{",
"GetBitContext *gb = &VAR_0->HEVClc->gb;",
"skip_bits(gb, 1);",
"align_get_bits(gb);",
"ff_init_cabac_decoder(&VAR_0->HEVClc->cc,\ngb->buffer + get_bits_count(gb) / 8,\n(get_bits_left(gb) + 7) / 8);",
"}"
] | [
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17
]
] |
11,060 | static void swap_sample_fmts_on_filter(AVFilterContext *filter)
{
AVFilterLink *link = NULL;
int format, bps;
int i, j;
for (i = 0; i < filter->nb_inputs; i++) {
link = filter->inputs[i];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_formats->format_count == 1... | true | FFmpeg | 61d158c321a82ec7bfc46ce480997797e8048b85 | static void swap_sample_fmts_on_filter(AVFilterContext *filter)
{
AVFilterLink *link = NULL;
int format, bps;
int i, j;
for (i = 0; i < filter->nb_inputs; i++) {
link = filter->inputs[i];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_formats->format_count == 1... | {
"code": [
" int best_idx, best_score = INT_MIN;"
],
"line_no": [
43
]
} | static void FUNC_0(AVFilterContext *VAR_0)
{
AVFilterLink *link = NULL;
int VAR_1, VAR_2;
int VAR_3, VAR_4;
for (VAR_3 = 0; VAR_3 < VAR_0->nb_inputs; VAR_3++) {
link = VAR_0->inputs[VAR_3];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_formats->format_count ==... | [
"static void FUNC_0(AVFilterContext *VAR_0)\n{",
"AVFilterLink *link = NULL;",
"int VAR_1, VAR_2;",
"int VAR_3, VAR_4;",
"for (VAR_3 = 0; VAR_3 < VAR_0->nb_inputs; VAR_3++) {",
"link = VAR_0->inputs[VAR_3];",
"if (link->type == AVMEDIA_TYPE_AUDIO &&\nlink->out_formats->format_count == 1)\nbreak;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21,
23
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47,
49,
51
],
[
55
],
[
57
],
[... |
11,061 | int bdrv_drop_intermediate(BlockDriverState *active, BlockDriverState *top,
BlockDriverState *base, const char *backing_file_str)
{
BlockDriverState *intermediate;
BlockDriverState *base_bs = NULL;
BlockDriverState *new_top_bs = NULL;
BlkIntermediateStates *intermediate_... | true | qemu | 5839e53bbc0fec56021d758aab7610df421ed8c8 | int bdrv_drop_intermediate(BlockDriverState *active, BlockDriverState *top,
BlockDriverState *base, const char *backing_file_str)
{
BlockDriverState *intermediate;
BlockDriverState *base_bs = NULL;
BlockDriverState *new_top_bs = NULL;
BlkIntermediateStates *intermediate_... | {
"code": [
" intermediate_state = g_malloc0(sizeof(BlkIntermediateStates));"
],
"line_no": [
73
]
} | int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,
BlockDriverState *VAR_2, const char *VAR_3)
{
BlockDriverState *intermediate;
BlockDriverState *base_bs = NULL;
BlockDriverState *new_top_bs = NULL;
BlkIntermediateStates *intermediate_state, *next;
int VA... | [
"int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nBlockDriverState *VAR_2, const char *VAR_3)\n{",
"BlockDriverState *intermediate;",
"BlockDriverState *base_bs = NULL;",
"BlockDriverState *new_top_bs = NULL;",
"BlkIntermediateStates *intermediate_state, *next;",
"int VAR_4 = -EIO;",
"QSIMP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
41
],
[
43
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
11,062 | static int smacker_decode_bigtree(BitstreamContext *bc, HuffContext *hc,
DBCtx *ctx)
{
if (hc->current + 1 >= hc->length) {
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
return AVERROR_INVALIDDATA;
}
if (!bitstream_read_bit(bc)) { // Leaf
... | true | FFmpeg | 0ccddbad200c1d9439c5a836501917d515cddf76 | static int smacker_decode_bigtree(BitstreamContext *bc, HuffContext *hc,
DBCtx *ctx)
{
if (hc->current + 1 >= hc->length) {
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
return AVERROR_INVALIDDATA;
}
if (!bitstream_read_bit(bc)) {
int... | {
"code": [
" DBCtx *ctx)",
" r = smacker_decode_bigtree(bc, hc, ctx);",
" r_new = smacker_decode_bigtree(bc, hc, ctx);"
],
"line_no": [
3,
63,
73
]
} | static int FUNC_0(BitstreamContext *VAR_0, HuffContext *VAR_1,
DBCtx *VAR_2)
{
if (VAR_1->current + 1 >= VAR_1->length) {
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
return AVERROR_INVALIDDATA;
}
if (!bitstream_read_bit(VAR_0)) {
in... | [
"static int FUNC_0(BitstreamContext *VAR_0, HuffContext *VAR_1,\nDBCtx *VAR_2)\n{",
"if (VAR_1->current + 1 >= VAR_1->length) {",
"av_log(NULL, AV_LOG_ERROR, \"Tree size exceeded!\\n\");",
"return AVERROR_INVALIDDATA;",
"}",
"if (!bitstream_read_bit(VAR_0)) {",
"int VAR_3, VAR_4, VAR_5;",
"VAR_4 = VAR... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
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
... |
11,063 | static av_cold int qtrle_encode_end(AVCodecContext *avctx)
{
QtrleEncContext *s = avctx->priv_data;
av_frame_free(&avctx->coded_frame);
avpicture_free(&s->previous_frame);
av_free(s->rlecode_table);
av_free(s->length_table);
av_free(s->skip_table);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int qtrle_encode_end(AVCodecContext *avctx)
{
QtrleEncContext *s = avctx->priv_data;
av_frame_free(&avctx->coded_frame);
avpicture_free(&s->previous_frame);
av_free(s->rlecode_table);
av_free(s->length_table);
av_free(s->skip_table);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
QtrleEncContext *s = avctx->priv_data;
av_frame_free(&avctx->coded_frame);
avpicture_free(&s->previous_frame);
av_free(s->rlecode_table);
av_free(s->length_table);
av_free(s->skip_table);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"QtrleEncContext *s = avctx->priv_data;",
"av_frame_free(&avctx->coded_frame);",
"avpicture_free(&s->previous_frame);",
"av_free(s->rlecode_table);",
"av_free(s->length_table);",
"av_free(s->skip_table);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
11,064 | static av_cold int pcx_encode_init(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int pcx_encode_init(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"avctx->coded_frame = av_frame_alloc();",
"if (!avctx->coded_frame)\nreturn AVERROR(ENOMEM);",
"avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;",
"avctx->coded_frame->key_frame = 1;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
11,065 | static int decode_mb_info(IVI4DecContext *ctx, IVIBandDesc *band,
IVITile *tile, AVCodecContext *avctx)
{
int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
mv_scale, mb_type_bits;
IVIMbInfo *mb, *ref_mb;
int row_offset = band->mb_... | false | FFmpeg | 9759d2b886057b90355716edb23262e17f9bc3f9 | static int decode_mb_info(IVI4DecContext *ctx, IVIBandDesc *band,
IVITile *tile, AVCodecContext *avctx)
{
int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, blks_per_mb,
mv_scale, mb_type_bits;
IVIMbInfo *mb, *ref_mb;
int row_offset = band->mb_... | {
"code": [],
"line_no": []
} | static int FUNC_0(IVI4DecContext *VAR_0, IVIBandDesc *VAR_1,
IVITile *VAR_2, AVCodecContext *VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11,
VAR_12, VAR_13;
IVIMbInfo *mb, *ref_mb;
int VAR_14 = VAR_1->mb_size * VAR_1->p... | [
"static int FUNC_0(IVI4DecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, AVCodecContext *VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11,\nVAR_12, VAR_13;",
"IVIMbInfo *mb, *ref_mb;",
"int VAR_14 = VAR_1->mb_size * VAR_1->pitch;",
"mb = VAR_2->mbs;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
... |
11,067 | static void hevc_parser_close(AVCodecParserContext *s)
{
HEVCParserContext *ctx = s->priv_data;
int i;
#if ADVANCED_PARSER
HEVCContext *h = &ctx->h;
for (i = 0; i < FF_ARRAY_ELEMS(h->ps.vps_list); i++)
av_buffer_unref(&h->ps.vps_list[i]);
for (i = 0; i < FF_ARRAY_ELEMS(h->ps.sp... | false | FFmpeg | 1c088632e98af96f9cbe8129c5d7eb7274f8d4ed | static void hevc_parser_close(AVCodecParserContext *s)
{
HEVCParserContext *ctx = s->priv_data;
int i;
#if ADVANCED_PARSER
HEVCContext *h = &ctx->h;
for (i = 0; i < FF_ARRAY_ELEMS(h->ps.vps_list); i++)
av_buffer_unref(&h->ps.vps_list[i]);
for (i = 0; i < FF_ARRAY_ELEMS(h->ps.sp... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVCodecParserContext *VAR_0)
{
HEVCParserContext *ctx = VAR_0->priv_data;
int VAR_1;
#if ADVANCED_PARSER
HEVCContext *h = &ctx->h;
for (VAR_1 = 0; VAR_1 < FF_ARRAY_ELEMS(h->ps.vps_list); VAR_1++)
av_buffer_unref(&h->ps.vps_list[VAR_1]);
for (VAR_1 = 0; VAR_1 ... | [
"static void FUNC_0(AVCodecParserContext *VAR_0)\n{",
"HEVCParserContext *ctx = VAR_0->priv_data;",
"int VAR_1;",
"#if ADVANCED_PARSER\nHEVCContext *h = &ctx->h;",
"for (VAR_1 = 0; VAR_1 < FF_ARRAY_ELEMS(h->ps.vps_list); VAR_1++)",
"av_buffer_unref(&h->ps.vps_list[VAR_1]);",
"for (VAR_1 = 0; VAR_1 < F... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55... |
11,068 | static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
{
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *st = avctx->streams[mv->stream_index];
const AVIndexEntry *index;
int frame = mv->frame[mv->stream_index];
int ret;
uint64_t pos;
if (fra... | true | FFmpeg | 26c0cc154e06cb0064b3a3da49447ac44d82444f | static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
{
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *st = avctx->streams[mv->stream_index];
const AVIndexEntry *index;
int frame = mv->frame[mv->stream_index];
int ret;
uint64_t pos;
if (fra... | {
"code": [
" int ret;"
],
"line_no": [
15
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MvContext *mv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
AVStream *st = VAR_0->streams[mv->stream_index];
const AVIndexEntry *VAR_2;
int VAR_3 = mv->VAR_3[mv->stream_index];
int VAR_4;
uint64_t pos;
if (VAR_3 <... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MvContext *mv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st = VAR_0->streams[mv->stream_index];",
"const AVIndexEntry *VAR_2;",
"int VAR_3 = mv->VAR_3[mv->stream_index];",
"int VAR_4;",
"uint64_t pos;",
"if (VAR_... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[... |
11,071 | static av_cold int prores_encode_close(AVCodecContext *avctx)
{
ProresContext* ctx = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_free(ctx->fill_y);
av_free(ctx->fill_u);
av_free(ctx->fill_v);
return 0;
}
| true | FFmpeg | d9f4dc52a0fe3edb93f153cf13e750f7c46243d1 | static av_cold int prores_encode_close(AVCodecContext *avctx)
{
ProresContext* ctx = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_free(ctx->fill_y);
av_free(ctx->fill_u);
av_free(ctx->fill_v);
return 0;
}
| {
"code": [
" av_free(ctx->fill_y);",
" av_free(ctx->fill_u);",
" av_free(ctx->fill_v);"
],
"line_no": [
9,
11,
13
]
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
ProresContext* ctx = avctx->priv_data;
av_freep(&avctx->coded_frame);
av_free(ctx->fill_y);
av_free(ctx->fill_u);
av_free(ctx->fill_v);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"ProresContext* ctx = avctx->priv_data;",
"av_freep(&avctx->coded_frame);",
"av_free(ctx->fill_y);",
"av_free(ctx->fill_u);",
"av_free(ctx->fill_v);",
"return 0;",
"}"
] | [
0,
0,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
11,072 | int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd,
AVIOContext *avio)
{
int len, need_keyframe, missing_packets;
AVIOContext *pb;
uint8_t *buf;
int64_t now;
uint16_t first_missing, missing_mask;
if (!fd && !avio)
return -1;
n... | true | FFmpeg | 8fbab7a6c84fd75de4f752b412cea8032604f75b | int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd,
AVIOContext *avio)
{
int len, need_keyframe, missing_packets;
AVIOContext *pb;
uint8_t *buf;
int64_t now;
uint16_t first_missing, missing_mask;
if (!fd && !avio)
return -1;
n... | {
"code": [
" uint16_t first_missing, missing_mask;"
],
"line_no": [
15
]
} | int FUNC_0(RTPDemuxContext *VAR_0, URLContext *VAR_1,
AVIOContext *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
AVIOContext *pb;
uint8_t *buf;
int64_t now;
uint16_t first_missing, missing_mask;
if (!VAR_1 && !VAR_2)
return -1;
VAR_4 = VAR_0->handler &... | [
"int FUNC_0(RTPDemuxContext *VAR_0, URLContext *VAR_1,\nAVIOContext *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"AVIOContext *pb;",
"uint8_t *buf;",
"int64_t now;",
"uint16_t first_missing, missing_mask;",
"if (!VAR_1 && !VAR_2)\nreturn -1;",
"VAR_4 = VAR_0->handler && VAR_0->handler->VAR_4 &&\nVAR_0->ha... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
29
],
[
33,
35
],
[
45
],
[
47,
49,
51
],
[
53
],
[
57,
59
],
[
61,
63
],
[
67
... |
11,073 | static struct pathelem *add_entry(struct pathelem *root, const char *name)
{
root->num_entries++;
root = realloc(root, sizeof(*root)
+ sizeof(root->entries[0])*root->num_entries);
root->entries[root->num_entries-1] = new_entry(root->pathname, root, name);
root->entries[root-... | true | qemu | 2296f194dfde4c0a54f249d3fdb8c8ca21dc611b | static struct pathelem *add_entry(struct pathelem *root, const char *name)
{
root->num_entries++;
root = realloc(root, sizeof(*root)
+ sizeof(root->entries[0])*root->num_entries);
root->entries[root->num_entries-1] = new_entry(root->pathname, root, name);
root->entries[root-... | {
"code": [
"static struct pathelem *add_entry(struct pathelem *root, const char *name)",
" root->entries[root->num_entries-1] = new_entry(root->pathname, root, name);",
" root->entries[root->num_entries-1]",
" = add_dir_maybe(root->entries[root->num_entries-1]);"
],
"line_no": [
... | static struct pathelem *FUNC_0(struct pathelem *VAR_0, const char *VAR_1)
{
VAR_0->num_entries++;
VAR_0 = realloc(VAR_0, sizeof(*VAR_0)
+ sizeof(VAR_0->entries[0])*VAR_0->num_entries);
VAR_0->entries[VAR_0->num_entries-1] = new_entry(VAR_0->pathname, VAR_0, VAR_1);
VAR_0->en... | [
"static struct pathelem *FUNC_0(struct pathelem *VAR_0, const char *VAR_1)\n{",
"VAR_0->num_entries++;",
"VAR_0 = realloc(VAR_0, sizeof(*VAR_0)\n+ sizeof(VAR_0->entries[0])*VAR_0->num_entries);",
"VAR_0->entries[VAR_0->num_entries-1] = new_entry(VAR_0->pathname, VAR_0, VAR_1);",
"VAR_0->entries[VAR_0->num_e... | [
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
]
] |
11,074 | yuv2rgb_2_c_template(SwsContext *c, const int16_t *buf[2],
const int16_t *ubuf[2], const int16_t *vbuf[2],
const int16_t *abuf[2], uint8_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum PixelFormat target, int hasAlpha)
{
con... | true | FFmpeg | 9487fb4dea3498eb4711eb023f43199f68701b1e | yuv2rgb_2_c_template(SwsContext *c, const int16_t *buf[2],
const int16_t *ubuf[2], const int16_t *vbuf[2],
const int16_t *abuf[2], uint8_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum PixelFormat target, int hasAlpha)
{
con... | {
"code": [],
"line_no": []
} | FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],
const int16_t *VAR_2[2], const int16_t *VAR_3[2],
const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, int VAR_9,
enum PixelFormat VAR_10, int VAR_11)
{
const i... | [
"FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],\nconst int16_t *VAR_2[2], const int16_t *VAR_3[2],\nconst int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum PixelFormat VAR_10, int VAR_11)\n{",
"const int16_t *VAR_12 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = VAR_2[0], *ubuf... | [
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
],
[
25
],
[
26
],... |
11,076 | static void nbd_recv_coroutines_enter_all(NbdClientSession *s)
{
int i;
for (i = 0; i < MAX_NBD_REQUESTS; i++) {
if (s->recv_coroutine[i]) {
qemu_coroutine_enter(s->recv_coroutine[i], NULL);
}
}
}
| true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void nbd_recv_coroutines_enter_all(NbdClientSession *s)
{
int i;
for (i = 0; i < MAX_NBD_REQUESTS; i++) {
if (s->recv_coroutine[i]) {
qemu_coroutine_enter(s->recv_coroutine[i], NULL);
}
}
}
| {
"code": [
" qemu_coroutine_enter(s->recv_coroutine[i], NULL);"
],
"line_no": [
13
]
} | static void FUNC_0(NbdClientSession *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < MAX_NBD_REQUESTS; VAR_1++) {
if (VAR_0->recv_coroutine[VAR_1]) {
qemu_coroutine_enter(VAR_0->recv_coroutine[VAR_1], NULL);
}
}
}
| [
"static void FUNC_0(NbdClientSession *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < MAX_NBD_REQUESTS; VAR_1++) {",
"if (VAR_0->recv_coroutine[VAR_1]) {",
"qemu_coroutine_enter(VAR_0->recv_coroutine[VAR_1], NULL);",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
11,077 | static void dequantization_int(int x, int y, Jpeg2000Cblk *cblk,
Jpeg2000Component *comp,
Jpeg2000T1Context *t1, Jpeg2000Band *band)
{
int i, j, idx;
int32_t *datap =
(int32_t *) &comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y +... | true | FFmpeg | 8bedbb82cee4463a43e60eb22674c8bf927280ef | static void dequantization_int(int x, int y, Jpeg2000Cblk *cblk,
Jpeg2000Component *comp,
Jpeg2000T1Context *t1, Jpeg2000Band *band)
{
int i, j, idx;
int32_t *datap =
(int32_t *) &comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y +... | {
"code": [
" int32_t *datap =",
" (int32_t *) &comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y + x];",
" int32_t *datap =",
" (int32_t *) &comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y + x];"
],
"line_no": [
11,
13,
11,
13
]
} | static void FUNC_0(int VAR_0, int VAR_1, Jpeg2000Cblk *VAR_2,
Jpeg2000Component *VAR_3,
Jpeg2000T1Context *VAR_4, Jpeg2000Band *VAR_5)
{
int VAR_6, VAR_7, VAR_8;
int32_t *datap =
(int32_t *) &VAR_3->data[(VAR_3->coord[0][1] - VAR_3->coo... | [
"static void FUNC_0(int VAR_0, int VAR_1, Jpeg2000Cblk *VAR_2,\nJpeg2000Component *VAR_3,\nJpeg2000T1Context *VAR_4, Jpeg2000Band *VAR_5)\n{",
"int VAR_6, VAR_7, VAR_8;",
"int32_t *datap =\n(int32_t *) &VAR_3->data[(VAR_3->coord[0][1] - VAR_3->coord[0][0]) * VAR_1 + VAR_0];",
"for (VAR_7 = 0; VAR_7 < (VAR_2->... | [
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
]
] |
11,078 | static void ehci_queues_rip_device(EHCIState *ehci, USBDevice *dev)
{
EHCIQueue *q, *tmp;
QTAILQ_FOREACH_SAFE(q, &ehci->queues, next, tmp) {
if (q->packet.owner == NULL ||
q->packet.owner->dev != dev) {
continue;
}
ehci_free_queue(q);
}
}
| true | qemu | f53c398aa603cea135ee58fd15249aeff7b9c7ea | static void ehci_queues_rip_device(EHCIState *ehci, USBDevice *dev)
{
EHCIQueue *q, *tmp;
QTAILQ_FOREACH_SAFE(q, &ehci->queues, next, tmp) {
if (q->packet.owner == NULL ||
q->packet.owner->dev != dev) {
continue;
}
ehci_free_queue(q);
}
}
| {
"code": [
" if (q->packet.owner == NULL ||",
" q->packet.owner->dev != dev) {"
],
"line_no": [
11,
13
]
} | static void FUNC_0(EHCIState *VAR_0, USBDevice *VAR_1)
{
EHCIQueue *q, *tmp;
QTAILQ_FOREACH_SAFE(q, &VAR_0->queues, next, tmp) {
if (q->packet.owner == NULL ||
q->packet.owner->VAR_1 != VAR_1) {
continue;
}
ehci_free_queue(q);
}
}
| [
"static void FUNC_0(EHCIState *VAR_0, USBDevice *VAR_1)\n{",
"EHCIQueue *q, *tmp;",
"QTAILQ_FOREACH_SAFE(q, &VAR_0->queues, next, tmp) {",
"if (q->packet.owner == NULL ||\nq->packet.owner->VAR_1 != VAR_1) {",
"continue;",
"}",
"ehci_free_queue(q);",
"}",
"}"
] | [
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
11,079 | static int vfio_add_std_cap(VFIODevice *vdev, uint8_t pos)
{
PCIDevice *pdev = &vdev->pdev;
uint8_t cap_id, next, size;
int ret;
cap_id = pdev->config[pos];
next = pdev->config[pos + 1];
/*
* If it becomes important to configure capabilities to their actual
* size, use thi... | true | qemu | 96adc5c7c2178d02f0db2db368ba3e4aacef931a | static int vfio_add_std_cap(VFIODevice *vdev, uint8_t pos)
{
PCIDevice *pdev = &vdev->pdev;
uint8_t cap_id, next, size;
int ret;
cap_id = pdev->config[pos];
next = pdev->config[pos + 1];
size = vfio_std_cap_max_size(pdev, pos);
if (next) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VFIODevice *VAR_0, uint8_t VAR_1)
{
PCIDevice *pdev = &VAR_0->pdev;
uint8_t cap_id, next, size;
int VAR_2;
cap_id = pdev->config[VAR_1];
next = pdev->config[VAR_1 + 1];
size = vfio_std_cap_max_size(pdev, VAR_1);
if (next) {
... | [
"static int FUNC_0(VFIODevice *VAR_0, uint8_t VAR_1)\n{",
"PCIDevice *pdev = &VAR_0->pdev;",
"uint8_t cap_id, next, size;",
"int VAR_2;",
"cap_id = pdev->config[VAR_1];",
"next = pdev->config[VAR_1 + 1];",
"size = vfio_std_cap_max_size(pdev, VAR_1);",
"if (next) {",
"VAR_2 = FUNC_0(VAR_0, next);",
... | [
0,
0,
0,
0,
0,
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
],
[
31
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
67
],
[
69,
71
],
[
73
],
[
75,
77
... |
11,081 | void ff_xvmc_decode_mb(MpegEncContext *s)
{
XvMCMacroBlock *mv_block;
struct xvmc_pix_fmt *render;
int i, cbp, blocks_per_mb;
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
if (s->encoding) {
av_log(s->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n");
ret... | false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | void ff_xvmc_decode_mb(MpegEncContext *s)
{
XvMCMacroBlock *mv_block;
struct xvmc_pix_fmt *render;
int i, cbp, blocks_per_mb;
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
if (s->encoding) {
av_log(s->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n");
ret... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
XvMCMacroBlock *mv_block;
struct xvmc_pix_fmt *VAR_1;
int VAR_2, VAR_3, VAR_4;
const int VAR_5 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x;
if (VAR_0->encoding) {
av_log(VAR_0->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n");
... | [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"XvMCMacroBlock *mv_block;",
"struct xvmc_pix_fmt *VAR_1;",
"int VAR_2, VAR_3, VAR_4;",
"const int VAR_5 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x;",
"if (VAR_0->encoding) {",
"av_log(VAR_0->avctx, AV_LOG_ERROR, \"XVMC doesn't support encoding!!!\\n\");",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33,
35,
37
],
[
39
],
[
45
],
[
55
],
[
61
],
[
63
],
[
65
],
[
67
],
[
73,... |
11,082 | static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
MOVStreamContext *sc;
int i, edit_count, version;
if (c->fc->nb_streams < 1 || c->ignore_editlist)
return 0;
sc = c->fc->streams[c->fc->nb_streams-1]->priv_data;
version = avio_r8(pb); /* version */
avio... | false | FFmpeg | 80137531139588774e048d6e1dae34ab5cbbbfa2 | static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
MOVStreamContext *sc;
int i, edit_count, version;
if (c->fc->nb_streams < 1 || c->ignore_editlist)
return 0;
sc = c->fc->streams[c->fc->nb_streams-1]->priv_data;
version = avio_r8(pb);
avio_rb24(pb);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
MOVStreamContext *sc;
int VAR_3, VAR_4, VAR_5;
if (VAR_0->fc->nb_streams < 1 || VAR_0->ignore_editlist)
return 0;
sc = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]->priv_data;
VAR_5 = avio_r8(VAR_1);
av... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"MOVStreamContext *sc;",
"int VAR_3, VAR_4, VAR_5;",
"if (VAR_0->fc->nb_streams < 1 || VAR_0->ignore_editlist)\nreturn 0;",
"sc = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]->priv_data;",
"VAR_5 = avio_r8(VAR_1);",
"avio_rb24(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[
55... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.