id int32 0 27.3k | func stringlengths 26 142k | target bool 2
classes | project stringclasses 2
values | commit_id stringlengths 40 40 | func_clean stringlengths 26 131k | vul_lines dict | normalized_func stringlengths 24 132k | lines listlengths 1 2.8k | label listlengths 1 2.8k | line_no listlengths 1 2.8k |
|---|---|---|---|---|---|---|---|---|---|---|
26,253 | long do_sigreturn(CPUAlphaState *env)
{
struct target_sigcontext *sc;
abi_ulong sc_addr = env->ir[IR_A0];
target_sigset_t target_set;
sigset_t set;
if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) {
goto badframe;
}
target_sigemptyset(&target_set);
__get_user(tar... | false | qemu | 338c858c946017cd3ec8c2be06d817e001d94bc3 | long do_sigreturn(CPUAlphaState *env)
{
struct target_sigcontext *sc;
abi_ulong sc_addr = env->ir[IR_A0];
target_sigset_t target_set;
sigset_t set;
if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) {
goto badframe;
}
target_sigemptyset(&target_set);
__get_user(tar... | {
"code": [],
"line_no": []
} | long FUNC_0(CPUAlphaState *VAR_0)
{
struct target_sigcontext *VAR_1;
abi_ulong sc_addr = VAR_0->ir[IR_A0];
target_sigset_t target_set;
sigset_t set;
if (!lock_user_struct(VERIFY_READ, VAR_1, sc_addr, 1)) {
goto badframe;
}
target_sigemptyset(&target_set);
__get_user... | [
"long FUNC_0(CPUAlphaState *VAR_0)\n{",
"struct target_sigcontext *VAR_1;",
"abi_ulong sc_addr = VAR_0->ir[IR_A0];",
"target_sigset_t target_set;",
"sigset_t set;",
"if (!lock_user_struct(VERIFY_READ, VAR_1, sc_addr, 1)) {",
"goto badframe;",
"}",
"target_sigemptyset(&target_set);",
"__get_user(ta... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
]
] |
26,254 | static bool ide_sect_range_ok(IDEState *s,
uint64_t sector, uint64_t nb_sectors)
{
uint64_t total_sectors;
bdrv_get_geometry(s->bs, &total_sectors);
if (sector > total_sectors || nb_sectors > total_sectors - sector) {
return false;
}
return true;
}
| false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static bool ide_sect_range_ok(IDEState *s,
uint64_t sector, uint64_t nb_sectors)
{
uint64_t total_sectors;
bdrv_get_geometry(s->bs, &total_sectors);
if (sector > total_sectors || nb_sectors > total_sectors - sector) {
return false;
}
return true;
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(IDEState *s,
uint64_t sector, uint64_t nb_sectors)
{
uint64_t total_sectors;
bdrv_get_geometry(s->bs, &total_sectors);
if (sector > total_sectors || nb_sectors > total_sectors - sector) {
return false;
}
return true;
}
| [
"static bool FUNC_0(IDEState *s,\nuint64_t sector, uint64_t nb_sectors)\n{",
"uint64_t total_sectors;",
"bdrv_get_geometry(s->bs, &total_sectors);",
"if (sector > total_sectors || nb_sectors > total_sectors - sector) {",
"return false;",
"}",
"return true;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,255 | int qed_write_l1_table_sync(BDRVQEDState *s, unsigned int index,
unsigned int n)
{
int ret = -EINPROGRESS;
async_context_push();
qed_write_l1_table(s, index, n, qed_sync_cb, &ret);
while (ret == -EINPROGRESS) {
qemu_aio_wait();
}
async_context_p... | false | qemu | 384acbf46b70edf0d2c1648aa1a92a90bcf7057d | int qed_write_l1_table_sync(BDRVQEDState *s, unsigned int index,
unsigned int n)
{
int ret = -EINPROGRESS;
async_context_push();
qed_write_l1_table(s, index, n, qed_sync_cb, &ret);
while (ret == -EINPROGRESS) {
qemu_aio_wait();
}
async_context_p... | {
"code": [],
"line_no": []
} | int FUNC_0(BDRVQEDState *VAR_0, unsigned int VAR_1,
unsigned int VAR_2)
{
int VAR_3 = -EINPROGRESS;
async_context_push();
qed_write_l1_table(VAR_0, VAR_1, VAR_2, qed_sync_cb, &VAR_3);
while (VAR_3 == -EINPROGRESS) {
qemu_aio_wait();
}
async_cont... | [
"int FUNC_0(BDRVQEDState *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2)\n{",
"int VAR_3 = -EINPROGRESS;",
"async_context_push();",
"qed_write_l1_table(VAR_0, VAR_1, VAR_2, qed_sync_cb, &VAR_3);",
"while (VAR_3 == -EINPROGRESS) {",
"qemu_aio_wait();",
"}",
"async_context_pop();",
"return VAR_3;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
]
] |
26,256 | bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr,
hwaddr size, unsigned client)
{
assert(mr->terminates);
return cpu_physical_memory_get_dirty(mr->ram_addr + addr, size, client);
}
| false | qemu | ec05ec26f940564b1e07bf88857035ec27e21dd8 | bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr,
hwaddr size, unsigned client)
{
assert(mr->terminates);
return cpu_physical_memory_get_dirty(mr->ram_addr + addr, size, client);
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(MemoryRegion *mr, hwaddr addr,
hwaddr size, unsigned client)
{
assert(mr->terminates);
return cpu_physical_memory_get_dirty(mr->ram_addr + addr, size, client);
}
| [
"bool FUNC_0(MemoryRegion *mr, hwaddr addr,\nhwaddr size, unsigned client)\n{",
"assert(mr->terminates);",
"return cpu_physical_memory_get_dirty(mr->ram_addr + addr, size, client);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
26,258 | static void filter_mirror_setup(NetFilterState *nf, Error **errp)
{
MirrorState *s = FILTER_MIRROR(nf);
if (!s->outdev) {
error_setg(errp, "filter filter mirror needs 'outdev' "
"property set");
return;
}
s->chr_out = qemu_chr_find(s->outdev);
if (s->c... | false | qemu | 52cfcb464255b4da5115408e2a6ce3327bbcb9df | static void filter_mirror_setup(NetFilterState *nf, Error **errp)
{
MirrorState *s = FILTER_MIRROR(nf);
if (!s->outdev) {
error_setg(errp, "filter filter mirror needs 'outdev' "
"property set");
return;
}
s->chr_out = qemu_chr_find(s->outdev);
if (s->c... | {
"code": [],
"line_no": []
} | static void FUNC_0(NetFilterState *VAR_0, Error **VAR_1)
{
MirrorState *s = FILTER_MIRROR(VAR_0);
if (!s->outdev) {
error_setg(VAR_1, "filter filter mirror needs 'outdev' "
"property set");
return;
}
s->chr_out = qemu_chr_find(s->outdev);
if (s->chr_ou... | [
"static void FUNC_0(NetFilterState *VAR_0, Error **VAR_1)\n{",
"MirrorState *s = FILTER_MIRROR(VAR_0);",
"if (!s->outdev) {",
"error_setg(VAR_1, \"filter filter mirror needs 'outdev' \"\n\"property set\");",
"return;",
"}",
"s->chr_out = qemu_chr_find(s->outdev);",
"if (s->chr_out == NULL) {",
"erro... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
26,260 | static void generate_eeprom_spd(uint8_t *eeprom, ram_addr_t ram_size)
{
enum { SDR = 0x4, DDR2 = 0x8 } type;
uint8_t *spd = spd_eeprom.contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int i;
/* work in terms of MB */
ram_size >>= 20;
while ((ram_size >= 4) && (nbanks <= 2... | false | qemu | 8297be80f7cf71e09617669a8bd8b2836dcfd4c3 | static void generate_eeprom_spd(uint8_t *eeprom, ram_addr_t ram_size)
{
enum { SDR = 0x4, DDR2 = 0x8 } type;
uint8_t *spd = spd_eeprom.contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int i;
ram_size >>= 20;
while ((ram_size >= 4) && (nbanks <= 2)) {
int sz_log2... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, ram_addr_t VAR_1)
{
enum { SDR = 0x4, DDR2 = 0x8 } VAR_2;
uint8_t *spd = spd_eeprom.contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int VAR_3;
VAR_1 >>= 20;
while ((VAR_1 >= 4) && (nbanks <= 2)) {
int VAR_4 = MIN(31 - clz32(VA... | [
"static void FUNC_0(uint8_t *VAR_0, ram_addr_t VAR_1)\n{",
"enum { SDR = 0x4, DDR2 = 0x8 } VAR_2;",
"uint8_t *spd = spd_eeprom.contents;",
"uint8_t nbanks = 0;",
"uint16_t density = 0;",
"int VAR_3;",
"VAR_1 >>= 20;",
"while ((VAR_1 >= 4) && (nbanks <= 2)) {",
"int VAR_4 = MIN(31 - clz32(VAR_1), 14)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
... |
26,261 | static GenericList *next_list(Visitor *v, GenericList *tail, size_t size)
{
StringInputVisitor *siv = to_siv(v);
Range *r;
if (!siv->ranges || !siv->cur_range) {
return NULL;
}
r = siv->cur_range->data;
if (!r) {
return NULL;
}
if (siv->cur < r->begin || ... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | static GenericList *next_list(Visitor *v, GenericList *tail, size_t size)
{
StringInputVisitor *siv = to_siv(v);
Range *r;
if (!siv->ranges || !siv->cur_range) {
return NULL;
}
r = siv->cur_range->data;
if (!r) {
return NULL;
}
if (siv->cur < r->begin || ... | {
"code": [],
"line_no": []
} | static GenericList *FUNC_0(Visitor *v, GenericList *tail, size_t size)
{
StringInputVisitor *siv = to_siv(v);
Range *r;
if (!siv->ranges || !siv->cur_range) {
return NULL;
}
r = siv->cur_range->data;
if (!r) {
return NULL;
}
if (siv->cur < r->begin || siv... | [
"static GenericList *FUNC_0(Visitor *v, GenericList *tail, size_t size)\n{",
"StringInputVisitor *siv = to_siv(v);",
"Range *r;",
"if (!siv->ranges || !siv->cur_range) {",
"return NULL;",
"}",
"r = siv->cur_range->data;",
"if (!r) {",
"return NULL;",
"}",
"if (siv->cur < r->begin || siv->cur >= ... | [
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
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
26,262 | static int link_filter_inouts(AVFilterContext *filt_ctx,
AVFilterInOut **curr_inputs,
AVFilterInOut **open_inputs, void *log_ctx)
{
int pad, ret;
for (pad = 0; pad < filt_ctx->input_count; pad++) {
AVFilterInOut *p = *curr_inputs;
... | false | FFmpeg | aff01de6415f1ba022f1a58e354ad6e4d0796e97 | static int link_filter_inouts(AVFilterContext *filt_ctx,
AVFilterInOut **curr_inputs,
AVFilterInOut **open_inputs, void *log_ctx)
{
int pad, ret;
for (pad = 0; pad < filt_ctx->input_count; pad++) {
AVFilterInOut *p = *curr_inputs;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext *VAR_0,
AVFilterInOut **VAR_1,
AVFilterInOut **VAR_2, void *VAR_3)
{
int VAR_4, VAR_5;
for (VAR_4 = 0; VAR_4 < VAR_0->input_count; VAR_4++) {
AVFilterInOut *p = *VAR_1;
if (p)
*V... | [
"static int FUNC_0(AVFilterContext *VAR_0,\nAVFilterInOut **VAR_1,\nAVFilterInOut **VAR_2, void *VAR_3)\n{",
"int VAR_4, VAR_5;",
"for (VAR_4 = 0; VAR_4 < VAR_0->input_count; VAR_4++) {",
"AVFilterInOut *p = *VAR_1;",
"if (p)\n*VAR_1 = (*VAR_1)->next;",
"else if (!(p = av_mallocz(sizeof(*p))))\nreturn AVE... | [
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
26,263 | static void invalidate_and_set_dirty(hwaddr addr,
hwaddr length)
{
if (cpu_physical_memory_range_includes_clean(addr, length)) {
tb_invalidate_phys_range(addr, addr + length, 0);
cpu_physical_memory_set_dirty_range_nocode(addr, length);
}
xen_modif... | false | qemu | 49dfcec40349245ad365964468b67e132c3cedc7 | static void invalidate_and_set_dirty(hwaddr addr,
hwaddr length)
{
if (cpu_physical_memory_range_includes_clean(addr, length)) {
tb_invalidate_phys_range(addr, addr + length, 0);
cpu_physical_memory_set_dirty_range_nocode(addr, length);
}
xen_modif... | {
"code": [],
"line_no": []
} | static void FUNC_0(hwaddr VAR_0,
hwaddr VAR_1)
{
if (cpu_physical_memory_range_includes_clean(VAR_0, VAR_1)) {
tb_invalidate_phys_range(VAR_0, VAR_0 + VAR_1, 0);
cpu_physical_memory_set_dirty_range_nocode(VAR_0, VAR_1);
}
xen_modified_memory(VAR_0,... | [
"static void FUNC_0(hwaddr VAR_0,\nhwaddr VAR_1)\n{",
"if (cpu_physical_memory_range_includes_clean(VAR_0, VAR_1)) {",
"tb_invalidate_phys_range(VAR_0, VAR_0 + VAR_1, 0);",
"cpu_physical_memory_set_dirty_range_nocode(VAR_0, VAR_1);",
"}",
"xen_modified_memory(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
26,264 | static int proxy_unlinkat(FsContext *ctx, V9fsPath *dir,
const char *name, int flags)
{
int ret;
V9fsString fullname;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullname, "%s/%s", dir->data, name);
ret = proxy_remove(ctx, fullname.data);
v9fs_string_fre... | false | qemu | 494a8ebe713055d3946183f4b395f85a18b43e9e | static int proxy_unlinkat(FsContext *ctx, V9fsPath *dir,
const char *name, int flags)
{
int ret;
V9fsString fullname;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullname, "%s/%s", dir->data, name);
ret = proxy_remove(ctx, fullname.data);
v9fs_string_fre... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
const char *VAR_2, int VAR_3)
{
int VAR_4;
V9fsString fullname;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullname, "%s/%s", VAR_1->data, VAR_2);
VAR_4 = proxy_remove(VAR_0, fullname.data);
v9fs_stri... | [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst char *VAR_2, int VAR_3)\n{",
"int VAR_4;",
"V9fsString fullname;",
"v9fs_string_init(&fullname);",
"v9fs_string_sprintf(&fullname, \"%s/%s\", VAR_1->data, VAR_2);",
"VAR_4 = proxy_remove(VAR_0, fullname.data);",
"v9fs_string_free(&fullname);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
26,265 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
VirtIOHandleOutput ctrl,
VirtIOHandleOutput evt,
VirtIOHandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_S... | false | qemu | ad07cd69ecaffbaa015459a46975ab32e50df805 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
VirtIOHandleOutput ctrl,
VirtIOHandleOutput evt,
VirtIOHandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_S... | {
"code": [],
"line_no": []
} | void FUNC_0(DeviceState *VAR_0, Error **VAR_1,
VirtIOHandleOutput VAR_2,
VirtIOHandleOutput VAR_3,
VirtIOHandleOutput VAR_4)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON... | [
"void FUNC_0(DeviceState *VAR_0, Error **VAR_1,\nVirtIOHandleOutput VAR_2,\nVirtIOHandleOutput VAR_3,\nVirtIOHandleOutput VAR_4)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);",
"int VAR_5;",
"virtio_init(vdev, \"virtio-scsi\", VIRTIO_ID_SCSI,\nsizeof(Vi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
26,266 | static inline void gen_intermediate_code_internal(SPARCCPU *cpu,
TranslationBlock *tb,
bool spc)
{
CPUState *cs = CPU(cpu);
CPUSPARCState *env = &cpu->env;
target_ulong pc_start, last_pc;
uint16_t ... | false | qemu | cd42d5b23691ad73edfd6dbcfc935a960a9c5a65 | static inline void gen_intermediate_code_internal(SPARCCPU *cpu,
TranslationBlock *tb,
bool spc)
{
CPUState *cs = CPU(cpu);
CPUSPARCState *env = &cpu->env;
target_ulong pc_start, last_pc;
uint16_t ... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(SPARCCPU *VAR_0,
TranslationBlock *VAR_1,
bool VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPUSPARCState *env = &VAR_0->env;
target_ulong pc_start, last_pc;
uint16_t *gen_opc_end;... | [
"static inline void FUNC_0(SPARCCPU *VAR_0,\nTranslationBlock *VAR_1,\nbool VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPUSPARCState *env = &VAR_0->env;",
"target_ulong pc_start, last_pc;",
"uint16_t *gen_opc_end;",
"DisasContext dc1, *dc = &dc1;",
"CPUBreakpoint *bp;",
"int VAR_3, VAR_4 = -1;",
"in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,267 | static int load_uboot_image(const char *filename, hwaddr *ep, hwaddr *loadaddr,
int *is_linux, uint8_t image_type,
uint64_t (*translate_fn)(void *, uint64_t),
void *translate_opaque)
{
int fd;
int size;
hwaddr address... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static int load_uboot_image(const char *filename, hwaddr *ep, hwaddr *loadaddr,
int *is_linux, uint8_t image_type,
uint64_t (*translate_fn)(void *, uint64_t),
void *translate_opaque)
{
int fd;
int size;
hwaddr address... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, hwaddr *VAR_1, hwaddr *VAR_2,
int *VAR_3, uint8_t VAR_4,
VAR_5 (*translate_fn)(void *, VAR_5),
void *VAR_6)
{
int VAR_7;
int VAR_8;
hwaddr address;
uboot_image_header_t h;
... | [
"static int FUNC_0(const char *VAR_0, hwaddr *VAR_1, hwaddr *VAR_2,\nint *VAR_3, uint8_t VAR_4,\nVAR_5 (*translate_fn)(void *, VAR_5),\nvoid *VAR_6)\n{",
"int VAR_7;",
"int VAR_8;",
"hwaddr address;",
"uboot_image_header_t h;",
"uboot_image_header_t *hdr = &h;",
"uint8_t *data = NULL;",
"int VAR_9 = -... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
37
],
[
39,
41
],
[
45
],
[
49,
51
],
[
55
],
[
57,... |
26,268 | static void stellaris_init(const char *kernel_filename, const char *cpu_model,
DisplayState *ds, stellaris_board_info *board)
{
static const int uart_irq[] = {5, 6, 33, 34};
static const int timer_irq[] = {19, 21, 23, 35};
static const uint32_t gpio_addr[7] =
{ 0x40004... | false | qemu | 0ae18ceeaaa2c1749e742c4b112f6c3bf0896408 | static void stellaris_init(const char *kernel_filename, const char *cpu_model,
DisplayState *ds, stellaris_board_info *board)
{
static const int uart_irq[] = {5, 6, 33, 34};
static const int timer_irq[] = {19, 21, 23, 35};
static const uint32_t gpio_addr[7] =
{ 0x40004... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0, const char *VAR_1,
DisplayState *VAR_2, stellaris_board_info *VAR_3)
{
static const int VAR_4[] = {5, 6, 33, 34};
static const int VAR_5[] = {19, 21, 23, 35};
static const uint32_t VAR_6[7] =
{ 0x40004000, 0x40005000, 0x40006000, 0... | [
"static void FUNC_0(const char *VAR_0, const char *VAR_1,\nDisplayState *VAR_2, stellaris_board_info *VAR_3)\n{",
"static const int VAR_4[] = {5, 6, 33, 34};",
"static const int VAR_5[] = {19, 21, 23, 35};",
"static const uint32_t VAR_6[7] =\n{ 0x40004000, 0x40005000, 0x40006000, 0x40007000,",
"0x40024000, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
26,269 | static int pcnet_can_receive(void *opaque)
{
PCNetState *s = opaque;
if (CSR_STOP(s) || CSR_SPND(s))
return 0;
if (s->recv_pos > 0)
return 0;
return sizeof(s->buffer)-16;
}
| false | qemu | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 | static int pcnet_can_receive(void *opaque)
{
PCNetState *s = opaque;
if (CSR_STOP(s) || CSR_SPND(s))
return 0;
if (s->recv_pos > 0)
return 0;
return sizeof(s->buffer)-16;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
PCNetState *s = VAR_0;
if (CSR_STOP(s) || CSR_SPND(s))
return 0;
if (s->recv_pos > 0)
return 0;
return sizeof(s->buffer)-16;
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"PCNetState *s = VAR_0;",
"if (CSR_STOP(s) || CSR_SPND(s))\nreturn 0;",
"if (s->recv_pos > 0)\nreturn 0;",
"return sizeof(s->buffer)-16;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13,
15
],
[
19
],
[
21
]
] |
26,270 | static int write_object(int fd, char *buf, uint64_t oid, int copies,
unsigned int datalen, uint64_t offset, bool create,
bool cache)
{
return read_write_object(fd, buf, oid, copies, datalen, offset, true,
create, cache);
}
| false | qemu | 0e7106d8b5f7ef4f9df10baf1dfb3db482bcd046 | static int write_object(int fd, char *buf, uint64_t oid, int copies,
unsigned int datalen, uint64_t offset, bool create,
bool cache)
{
return read_write_object(fd, buf, oid, copies, datalen, offset, true,
create, cache);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, char *VAR_1, uint64_t VAR_2, int VAR_3,
unsigned int VAR_4, uint64_t VAR_5, bool VAR_6,
bool VAR_7)
{
return read_write_object(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, true,
VAR_6, VAR_7);
}
| [
"static int FUNC_0(int VAR_0, char *VAR_1, uint64_t VAR_2, int VAR_3,\nunsigned int VAR_4, uint64_t VAR_5, bool VAR_6,\nbool VAR_7)\n{",
"return read_write_object(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, true,\nVAR_6, VAR_7);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
]
] |
26,271 | static uint32_t cuda_readw (void *opaque, target_phys_addr_t addr)
{
return 0;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t cuda_readw (void *opaque, target_phys_addr_t addr)
{
return 0;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)
{
return 0;
}
| [
"static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)\n{",
"return 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,272 | void helper_iret_protected(int shift, int next_eip)
{
int tss_selector, type;
uint32_t e1, e2;
/* specific case for TSS */
if (env->eflags & NT_MASK) {
#ifdef TARGET_X86_64
if (env->hflags & HF_LMA_MASK)
raise_exception_err(EXCP0D_GPF, 0);
#endif
tss_selector = ld... | false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | void helper_iret_protected(int shift, int next_eip)
{
int tss_selector, type;
uint32_t e1, e2;
if (env->eflags & NT_MASK) {
#ifdef TARGET_X86_64
if (env->hflags & HF_LMA_MASK)
raise_exception_err(EXCP0D_GPF, 0);
#endif
tss_selector = lduw_kernel(env->tr.base + 0)... | {
"code": [],
"line_no": []
} | void FUNC_0(int VAR_0, int VAR_1)
{
int VAR_2, VAR_3;
uint32_t e1, e2;
if (env->eflags & NT_MASK) {
#ifdef TARGET_X86_64
if (env->hflags & HF_LMA_MASK)
raise_exception_err(EXCP0D_GPF, 0);
#endif
VAR_2 = lduw_kernel(env->tr.base + 0);
if (VAR_2 & 4)
... | [
"void FUNC_0(int VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3;",
"uint32_t e1, e2;",
"if (env->eflags & NT_MASK) {",
"#ifdef TARGET_X86_64\nif (env->hflags & HF_LMA_MASK)\nraise_exception_err(EXCP0D_GPF, 0);",
"#endif\nVAR_2 = lduw_kernel(env->tr.base + 0);",
"if (VAR_2 & 4)\nraise_exception_err(EXCP0A_TSS,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15,
17,
19
],
[
21,
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,
53
],
... |
26,273 | static void blend_image_rgba(AVFilterContext *ctx, AVFrame *dst, const AVFrame *src, int x, int y)
{
blend_image_packed_rgb(ctx, dst, src, 1, x, y, 0);
}
| false | FFmpeg | 6260ab60a80fd8baebf79f9ce9299b0db72333b5 | static void blend_image_rgba(AVFilterContext *ctx, AVFrame *dst, const AVFrame *src, int x, int y)
{
blend_image_packed_rgb(ctx, dst, src, 1, x, y, 0);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, const AVFrame *VAR_2, int VAR_3, int VAR_4)
{
blend_image_packed_rgb(VAR_0, VAR_1, VAR_2, 1, VAR_3, VAR_4, 0);
}
| [
"static void FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, const AVFrame *VAR_2, int VAR_3, int VAR_4)\n{",
"blend_image_packed_rgb(VAR_0, VAR_1, VAR_2, 1, VAR_3, VAR_4, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,274 | static void bonito_spciconf_writeb(void *opaque, target_phys_addr_t addr,
uint32_t val)
{
PCIBonitoState *s = opaque;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spc... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void bonito_spciconf_writeb(void *opaque, target_phys_addr_t addr,
uint32_t val)
{
PCIBonitoState *s = opaque;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spc... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{
PCIBonitoState *s = VAR_0;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("FUNC_0 "TARGET_FMT_plx" V... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{",
"PCIBonitoState *s = VAR_0;",
"PCIDevice *d = PCI_DEVICE(s);",
"PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);",
"uint32_t pciaddr;",
"uint16_t status;",
"DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\" VAR_2 %x\\n\", VAR_1, VAR_2);"... | [
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
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
]
] |
26,276 | pvscsi_command_complete(SCSIRequest *req, uint32_t status, size_t resid)
{
PVSCSIRequest *pvscsi_req = req->hba_private;
PVSCSIState *s = pvscsi_req->dev;
if (!pvscsi_req) {
trace_pvscsi_command_complete_not_found(req->tag);
return;
}
if (resid) {
/* Short transf... | false | qemu | b0f49d138777fb6609aa2ea96d2c59fb872d2c2d | pvscsi_command_complete(SCSIRequest *req, uint32_t status, size_t resid)
{
PVSCSIRequest *pvscsi_req = req->hba_private;
PVSCSIState *s = pvscsi_req->dev;
if (!pvscsi_req) {
trace_pvscsi_command_complete_not_found(req->tag);
return;
}
if (resid) {
trace... | {
"code": [],
"line_no": []
} | FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1, size_t VAR_2)
{
PVSCSIRequest *pvscsi_req = VAR_0->hba_private;
PVSCSIState *s = pvscsi_req->dev;
if (!pvscsi_req) {
trace_pvscsi_command_complete_not_found(VAR_0->tag);
return;
}
if (VAR_2) {
trace_pvscsi_comm... | [
"FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1, size_t VAR_2)\n{",
"PVSCSIRequest *pvscsi_req = VAR_0->hba_private;",
"PVSCSIState *s = pvscsi_req->dev;",
"if (!pvscsi_req) {",
"trace_pvscsi_command_complete_not_found(VAR_0->tag);",
"return;",
"}",
"if (VAR_2) {",
"trace_pvscsi_command_complete_data_run... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
26,277 | static int proxy_open(FsContext *ctx, V9fsPath *fs_path,
int flags, V9fsFidOpenState *fs)
{
fs->fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, flags);
if (fs->fd < 0) {
errno = -fs->fd;
fs->fd = -1;
}
return fs->fd;
}
| false | qemu | 494a8ebe713055d3946183f4b395f85a18b43e9e | static int proxy_open(FsContext *ctx, V9fsPath *fs_path,
int flags, V9fsFidOpenState *fs)
{
fs->fd = v9fs_request(ctx->private, T_OPEN, NULL, "sd", fs_path, flags);
if (fs->fd < 0) {
errno = -fs->fd;
fs->fd = -1;
}
return fs->fd;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
int VAR_2, V9fsFidOpenState *VAR_3)
{
VAR_3->fd = v9fs_request(VAR_0->private, T_OPEN, NULL, "sd", VAR_1, VAR_2);
if (VAR_3->fd < 0) {
errno = -VAR_3->fd;
VAR_3->fd = -1;
}
return VAR_3->fd;
}
| [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nint VAR_2, V9fsFidOpenState *VAR_3)\n{",
"VAR_3->fd = v9fs_request(VAR_0->private, T_OPEN, NULL, \"sd\", VAR_1, VAR_2);",
"if (VAR_3->fd < 0) {",
"errno = -VAR_3->fd;",
"VAR_3->fd = -1;",
"}",
"return VAR_3->fd;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
26,278 | void mips_r4k_init (ram_addr_t ram_size, int vga_ram_size,
const char *boot_device, DisplayState *ds,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
char buf[1024];
unsigned long bio... | false | qemu | 0ae18ceeaaa2c1749e742c4b112f6c3bf0896408 | void mips_r4k_init (ram_addr_t ram_size, int vga_ram_size,
const char *boot_device, DisplayState *ds,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
char buf[1024];
unsigned long bio... | {
"code": [],
"line_no": []
} | void FUNC_0 (ram_addr_t VAR_0, int VAR_1,
const char *VAR_2, DisplayState *VAR_3,
const char *VAR_4, const char *VAR_5,
const char *VAR_6, const char *VAR_7)
{
char VAR_8[1024];
unsigned long VAR_9;
int VAR_10;
CPUState *env;
RTCSt... | [
"void FUNC_0 (ram_addr_t VAR_0, int VAR_1,\nconst char *VAR_2, DisplayState *VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, const char *VAR_7)\n{",
"char VAR_8[1024];",
"unsigned long VAR_9;",
"int VAR_10;",
"CPUState *env;",
"RTCState *rtc_state;",
"int VAR_11;",
"qemu_irq *i8259;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
26,279 | static bool spapr_drc_needed(void *opaque)
{
sPAPRDRConnector *drc = (sPAPRDRConnector *)opaque;
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);
bool rc = false;
sPAPRDREntitySense value = drck->dr_entity_sense(drc);
/* If no dev is plugged in there is no need to migrate the... | false | qemu | f1c52354e5bdab6983d13a4c174759c585e834b3 | static bool spapr_drc_needed(void *opaque)
{
sPAPRDRConnector *drc = (sPAPRDRConnector *)opaque;
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);
bool rc = false;
sPAPRDREntitySense value = drck->dr_entity_sense(drc);
if (value != SPAPR_DR_ENTITY_SENSE_PRESENT) {
... | {
"code": [],
"line_no": []
} | static bool FUNC_0(void *opaque)
{
sPAPRDRConnector *drc = (sPAPRDRConnector *)opaque;
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);
bool rc = false;
sPAPRDREntitySense value = drck->dr_entity_sense(drc);
if (value != SPAPR_DR_ENTITY_SENSE_PRESENT) {
return ... | [
"static bool FUNC_0(void *opaque)\n{",
"sPAPRDRConnector *drc = (sPAPRDRConnector *)opaque;",
"sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);",
"bool rc = false;",
"sPAPRDREntitySense value = drck->dr_entity_sense(drc);",
"if (value != SPAPR_DR_ENTITY_SENSE_PRESENT) {",
"return false;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
33
],
[
35,
37,
39,
41,
43,
45
],
[
47
],
[
49,
51,
53,
55
],
[
57
],
[
59
],
[
61
]
] |
26,280 | static inline void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
... | false | FFmpeg | 9bcbb250e23959075765edd3cb4c1fcb46736d7d | static inline void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,
const int16_t *chrUSrc, const int16_t *chrVSrc,
const int16_t *alpSrc,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest,
... | [
"static inline void FUNC_0(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc,\nconst int16_t *chrUSrc, const int16_t *chrVSrc,\nconst int16_t *alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest,\nuint8_t *aDest, int dstW, int chrDstW)\n{",
"int VAR_0= 4;",
"const uint8_t *VAR_1[4]= { alpSrc + dstW, lumSrc + ds... | [
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,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57
],
[
59
],
[
61
],
[... |
26,281 | static inline void RENAME(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size)
{
register const uint8_t* s=src;
register uint8_t* d=dst;
register const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PREFETCH" %0"::"m"(*s));
... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size)
{
register const uint8_t* s=src;
register uint8_t* d=dst;
register const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PREFETCH" %0"::"m"(*s));
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size)
{
register const uint8_t* VAR_0=src;
register uint8_t* VAR_1=dst;
register const uint8_t *VAR_2;
const uint8_t *VAR_3;
VAR_2 = VAR_0 + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PREFETCH" %0... | [
"static inline void FUNC_0(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size)\n{",
"register const uint8_t* VAR_0=src;",
"register uint8_t* VAR_1=dst;",
"register const uint8_t *VAR_2;",
"const uint8_t *VAR_3;",
"VAR_2 = VAR_0 + src_size;",
"#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(PREFETCH\"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53
],
[
55
],
[... |
26,282 | PowerPCCPU *ppc4xx_init(const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
PowerPCCPU *cpu;
CPUPPCState *env;
/* init CPUs */
cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU, cpu_model));
if (cpu == NULL)... | true | qemu | 4482e05cbbb7e50e476f6a9500cf0b38913bd939 | PowerPCCPU *ppc4xx_init(const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
PowerPCCPU *cpu;
CPUPPCState *env;
cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU, cpu_model));
if (cpu == NULL) {
fpr... | {
"code": [
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" if (cpu == NULL) {",
" exit(1);",
" if (cpu == NULL) {",
" exit(1);",
" if (cpu == NULL) {",
... | PowerPCCPU *FUNC_0(const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
PowerPCCPU *cpu;
CPUPPCState *env;
cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU, cpu_model));
if (cpu == NULL) {
fprintf(... | [
"PowerPCCPU *FUNC_0(const char *cpu_model,\nclk_setup_t *cpu_clk, clk_setup_t *tb_clk,\nuint32_t sysclk)\n{",
"PowerPCCPU *cpu;",
"CPUPPCState *env;",
"cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU, cpu_model));",
"if (cpu == NULL) {",
"fprintf(stderr, \"Unable to find PowerPC %s CPU definition\\n\"... | [
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
]
] |
26,283 | void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf,
int buf_size, int slice_count)
{
struct vdpau_render_state *render, *last, *next;
int i;
render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
assert(render);
/* fill VdpPi... | true | FFmpeg | 9bbf1a5c232cffb64e5f8cf071d1626cc0d033e1 | void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf,
int buf_size, int slice_count)
{
struct vdpau_render_state *render, *last, *next;
int i;
render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
assert(render);
render->... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0, const uint8_t *VAR_1,
int VAR_2, int VAR_3)
{
struct vdpau_render_state *VAR_4, *VAR_5, *VAR_6;
int VAR_7;
VAR_4 = (struct vdpau_render_state *)VAR_0->current_picture_ptr->data[0];
assert(VAR_4);
VAR_4->info.mpeg.picture_str... | [
"void FUNC_0(MpegEncContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, int VAR_3)\n{",
"struct vdpau_render_state *VAR_4, *VAR_5, *VAR_6;",
"int VAR_7;",
"VAR_4 = (struct vdpau_render_state *)VAR_0->current_picture_ptr->data[0];",
"assert(VAR_4);",
"VAR_4->info.mpeg.picture_structure = VAR_0->pict... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
26,284 | static int open_input_stream(HTTPContext *c, const char *info)
{
char buf[128];
char input_filename[1024];
AVFormatContext *s = NULL;
int buf_size, i, ret;
int64_t stream_pos;
/* find file name */
if (c->stream->feed) {
strcpy(input_filename, c->stream->feed->feed_filename... | true | FFmpeg | bc9eb0467a52828d6be48de5e60f042bf3b62d1f | static int open_input_stream(HTTPContext *c, const char *info)
{
char buf[128];
char input_filename[1024];
AVFormatContext *s = NULL;
int buf_size, i, ret;
int64_t stream_pos;
if (c->stream->feed) {
strcpy(input_filename, c->stream->feed->feed_filename);
buf_size... | {
"code": [
" c->stream->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {"
],
"line_no": [
145
]
} | static int FUNC_0(HTTPContext *VAR_0, const char *VAR_1)
{
char VAR_2[128];
char VAR_3[1024];
AVFormatContext *s = NULL;
int VAR_4, VAR_5, VAR_6;
int64_t stream_pos;
if (VAR_0->stream->feed) {
strcpy(VAR_3, VAR_0->stream->feed->feed_filename);
VAR_4 = FFM_PACKET_... | [
"static int FUNC_0(HTTPContext *VAR_0, const char *VAR_1)\n{",
"char VAR_2[128];",
"char VAR_3[1024];",
"AVFormatContext *s = NULL;",
"int VAR_4, VAR_5, VAR_6;",
"int64_t stream_pos;",
"if (VAR_0->stream->feed) {",
"strcpy(VAR_3, VAR_0->stream->feed->feed_filename);",
"VAR_4 = FFM_PACKET_SIZE;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,285 | static int close_f(int argc, char **argv)
{
bdrv_close(bs);
bs = NULL;
return 0;
}
| true | qemu | b46578555c4bce64e3daba4591334aba2d12c156 | static int close_f(int argc, char **argv)
{
bdrv_close(bs);
bs = NULL;
return 0;
}
| {
"code": [
" bdrv_close(bs);"
],
"line_no": [
5
]
} | static int FUNC_0(int VAR_0, char **VAR_1)
{
bdrv_close(bs);
bs = NULL;
return 0;
}
| [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"bdrv_close(bs);",
"bs = NULL;",
"return 0;",
"}"
] | [
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
26,286 | static void pty_chr_state(CharDriverState *chr, int connected)
{
PtyCharDriver *s = chr->opaque;
if (!connected) {
if (s->fd_tag) {
io_remove_watch_poll(s->fd_tag);
s->fd_tag = 0;
}
s->connected = 0;
/* (re-)connect poll interval for idle guests... | true | qemu | 3a3567d337d3ee6fb2e2fcc1d27cd045ed97ae9b | static void pty_chr_state(CharDriverState *chr, int connected)
{
PtyCharDriver *s = chr->opaque;
if (!connected) {
if (s->fd_tag) {
io_remove_watch_poll(s->fd_tag);
s->fd_tag = 0;
}
s->connected = 0;
pty_chr_rearm_timer(chr, 1000);... | {
"code": [
" qemu_chr_be_generic_open(chr);"
],
"line_no": [
41
]
} | static void FUNC_0(CharDriverState *VAR_0, int VAR_1)
{
PtyCharDriver *s = VAR_0->opaque;
if (!VAR_1) {
if (s->fd_tag) {
io_remove_watch_poll(s->fd_tag);
s->fd_tag = 0;
}
s->VAR_1 = 0;
pty_chr_rearm_timer(VAR_0, 1000);
} else ... | [
"static void FUNC_0(CharDriverState *VAR_0, int VAR_1)\n{",
"PtyCharDriver *s = VAR_0->opaque;",
"if (!VAR_1) {",
"if (s->fd_tag) {",
"io_remove_watch_poll(s->fd_tag);",
"s->fd_tag = 0;",
"}",
"s->VAR_1 = 0;",
"pty_chr_rearm_timer(VAR_0, 1000);",
"} else {",
"if (s->timer_tag) {",
"g_source_re... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
26,287 | static void zynq_xadc_write(void *opaque, hwaddr offset, uint64_t val,
unsigned size)
{
ZynqXADCState *s = (ZynqXADCState *)opaque;
int reg = offset / 4;
int xadc_reg;
int xadc_cmd;
int xadc_data;
if (!zynq_xadc_check_offset(reg, false)) {
qemu_log_... | true | qemu | 4a94fc9bf2dac5965acb8e264d55a356737a2aa6 | static void zynq_xadc_write(void *opaque, hwaddr offset, uint64_t val,
unsigned size)
{
ZynqXADCState *s = (ZynqXADCState *)opaque;
int reg = offset / 4;
int xadc_reg;
int xadc_cmd;
int xadc_data;
if (!zynq_xadc_check_offset(reg, false)) {
qemu_log_... | {
"code": [
" if (xadc_reg > ZYNQ_XADC_NUM_ADC_REGS && xadc_cmd != CMD_NOP) {"
],
"line_no": [
75
]
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,
unsigned VAR_3)
{
ZynqXADCState *s = (ZynqXADCState *)VAR_0;
int VAR_4 = VAR_1 / 4;
int VAR_5;
int VAR_6;
int VAR_7;
if (!zynq_xadc_check_offset(VAR_4, false)) {
qemu_log_mask(LOG_GUEST_E... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{",
"ZynqXADCState *s = (ZynqXADCState *)VAR_0;",
"int VAR_4 = VAR_1 / 4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"if (!zynq_xadc_check_offset(VAR_4, false)) {",
"qemu_log_mask(LOG_GUEST_ERROR, \"zynq_xadc: Invalid wr... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[... |
26,288 | static inline void gen_set_Rc0 (DisasContext *ctx)
{
gen_op_cmpi(0);
gen_op_set_Rc0();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | static inline void gen_set_Rc0 (DisasContext *ctx)
{
gen_op_cmpi(0);
gen_op_set_Rc0();
}
| {
"code": [
" gen_op_cmpi(0);"
],
"line_no": [
5
]
} | static inline void FUNC_0 (DisasContext *VAR_0)
{
gen_op_cmpi(0);
gen_op_set_Rc0();
}
| [
"static inline void FUNC_0 (DisasContext *VAR_0)\n{",
"gen_op_cmpi(0);",
"gen_op_set_Rc0();",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,289 | static int kvm_log_start(CPUPhysMemoryClient *client,
target_phys_addr_t phys_addr, ram_addr_t size)
{
return kvm_dirty_pages_log_change(phys_addr, size, true);
}
| true | qemu | a01672d3968cf91208666d371784110bfde9d4f8 | static int kvm_log_start(CPUPhysMemoryClient *client,
target_phys_addr_t phys_addr, ram_addr_t size)
{
return kvm_dirty_pages_log_change(phys_addr, size, true);
}
| {
"code": [
"static int kvm_log_start(CPUPhysMemoryClient *client,",
" target_phys_addr_t phys_addr, ram_addr_t size)",
" return kvm_dirty_pages_log_change(phys_addr, size, true);"
],
"line_no": [
1,
3,
7
]
} | static int FUNC_0(CPUPhysMemoryClient *VAR_0,
target_phys_addr_t VAR_1, ram_addr_t VAR_2)
{
return kvm_dirty_pages_log_change(VAR_1, VAR_2, true);
}
| [
"static int FUNC_0(CPUPhysMemoryClient *VAR_0,\ntarget_phys_addr_t VAR_1, ram_addr_t VAR_2)\n{",
"return kvm_dirty_pages_log_change(VAR_1, VAR_2, true);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
26,290 | static int megasas_scsi_init(PCIDevice *dev)
{
DeviceState *d = DEVICE(dev);
MegasasState *s = MEGASAS(dev);
MegasasBaseClass *b = MEGASAS_DEVICE_GET_CLASS(s);
uint8_t *pci_conf;
int i, bar_type;
Error *err = NULL;
pci_conf = dev->config;
/* PCI latency timer = 0 */
pci... | true | qemu | fa617181839741727d0067ea68807133f498f29b | static int megasas_scsi_init(PCIDevice *dev)
{
DeviceState *d = DEVICE(dev);
MegasasState *s = MEGASAS(dev);
MegasasBaseClass *b = MEGASAS_DEVICE_GET_CLASS(s);
uint8_t *pci_conf;
int i, bar_type;
Error *err = NULL;
pci_conf = dev->config;
pci_conf[PCI_LATENCY_TIMER] = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
DeviceState *d = DEVICE(VAR_0);
MegasasState *s = MEGASAS(VAR_0);
MegasasBaseClass *b = MEGASAS_DEVICE_GET_CLASS(s);
uint8_t *pci_conf;
int VAR_1, VAR_2;
Error *err = NULL;
pci_conf = VAR_0->config;
pci_conf[PCI_LATENCY_TIMER] = 0;... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"DeviceState *d = DEVICE(VAR_0);",
"MegasasState *s = MEGASAS(VAR_0);",
"MegasasBaseClass *b = MEGASAS_DEVICE_GET_CLASS(s);",
"uint8_t *pci_conf;",
"int VAR_1, VAR_2;",
"Error *err = NULL;",
"pci_conf = VAR_0->config;",
"pci_conf[PCI_LATENCY_TIMER] = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
29
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
47,
49
],
[
51
],
[
53
],
[
55,
57,
59
... |
26,292 | VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf)
{
VirtIOBlock *s;
int cylinders, heads, secs;
static int virtio_blk_id;
DriveInfo *dinfo;
if (!conf->bs) {
error_report("virtio-blk-pci: drive property not set");
s = (VirtIOBlock *)virtio_common_init("vir... | true | qemu | 98f28ad7a7d26e5e77c5cb37b262d76d6ccd963d | VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf)
{
VirtIOBlock *s;
int cylinders, heads, secs;
static int virtio_blk_id;
DriveInfo *dinfo;
if (!conf->bs) {
error_report("virtio-blk-pci: drive property not set");
s = (VirtIOBlock *)virtio_common_init("vir... | {
"code": [],
"line_no": []
} | VirtIODevice *FUNC_0(DeviceState *dev, BlockConf *conf)
{
VirtIOBlock *s;
int VAR_0, VAR_1, VAR_2;
static int VAR_3;
DriveInfo *dinfo;
if (!conf->bs) {
error_report("virtio-blk-pci: drive property not set");
s = (VirtIOBlock *)virtio_common_init("virtio-blk", VIRTIO_ID_... | [
"VirtIODevice *FUNC_0(DeviceState *dev, BlockConf *conf)\n{",
"VirtIOBlock *s;",
"int VAR_0, VAR_1, VAR_2;",
"static int VAR_3;",
"DriveInfo *dinfo;",
"if (!conf->bs) {",
"error_report(\"virtio-blk-pci: drive property not set\");",
"s = (VirtIOBlock *)virtio_common_init(\"virtio-blk\", VIRTIO_ID_BLOCK... | [
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
],
[
27,
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
59
],
[
61
],
[
65
... |
26,293 | int qcow2_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab)
{
BDRVQcowState *s = bs->opaque;
QEMUSnapshotInfo *sn_tab, *sn_info;
QCowSnapshot *sn;
int i;
if (!s->nb_snapshots) {
*psn_tab = NULL;
return s->nb_snapshots;
}
sn_tab = g_malloc0(s->nb_sn... | true | qemu | 5839e53bbc0fec56021d758aab7610df421ed8c8 | int qcow2_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab)
{
BDRVQcowState *s = bs->opaque;
QEMUSnapshotInfo *sn_tab, *sn_info;
QCowSnapshot *sn;
int i;
if (!s->nb_snapshots) {
*psn_tab = NULL;
return s->nb_snapshots;
}
sn_tab = g_malloc0(s->nb_sn... | {
"code": [
" sn_tab = g_malloc0(s->nb_snapshots * sizeof(QEMUSnapshotInfo));"
],
"line_no": [
25
]
} | int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo **VAR_1)
{
BDRVQcowState *s = VAR_0->opaque;
QEMUSnapshotInfo *sn_tab, *sn_info;
QCowSnapshot *sn;
int VAR_2;
if (!s->nb_snapshots) {
*VAR_1 = NULL;
return s->nb_snapshots;
}
sn_tab = g_malloc0(s->nb_snapshots... | [
"int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo **VAR_1)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"QEMUSnapshotInfo *sn_tab, *sn_info;",
"QCowSnapshot *sn;",
"int VAR_2;",
"if (!s->nb_snapshots) {",
"*VAR_1 = NULL;",
"return s->nb_snapshots;",
"}",
"sn_tab = g_malloc0(s->nb_snapshots * size... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,295 | static void vc1_inv_trans_4x8_c(uint8_t *dest, int linesize, DCTELEM *block)
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst;
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
src = block;
dst = block;
for(i = 0; i < 8; i++){
t1 = 17 * (src[0] + src[2]) + 4;... | true | FFmpeg | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 | static void vc1_inv_trans_4x8_c(uint8_t *dest, int linesize, DCTELEM *block)
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst;
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
src = block;
dst = block;
for(i = 0; i < 8; i++){
t1 = 17 * (src[0] + src[2]) + 4;... | {
"code": [
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" des... | static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)
{
int VAR_3;
register int VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10,VAR_11;
DCTELEM *src, *dst;
const uint8_t *VAR_12 = ff_cropTbl + MAX_NEG_CROP;
src = VAR_2;
dst = VAR_2;
for(VAR_3 = 0; VAR_3 < 8; VAR_3++){
V... | [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{",
"int VAR_3;",
"register int VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9,VAR_10,VAR_11;",
"DCTELEM *src, *dst;",
"const uint8_t *VAR_12 = ff_cropTbl + MAX_NEG_CROP;",
"src = VAR_2;",
"dst = VAR_2;",
"for(VAR_3 = 0; VAR_3 < 8; VAR_3++){",
"VA... | [
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
... |
26,297 | DISAS_INSN(shift_reg)
{
TCGv reg;
TCGv shift;
reg = DREG(insn, 0);
shift = DREG(insn, 9);
if (insn & 0x100) {
gen_helper_shl_cc(reg, cpu_env, reg, shift);
} else {
if (insn & 8) {
gen_helper_shr_cc(reg, cpu_env, reg, shift);
} else {
... | true | qemu | 367790cce8e14131426f5190dfd7d1bdbf656e4d | DISAS_INSN(shift_reg)
{
TCGv reg;
TCGv shift;
reg = DREG(insn, 0);
shift = DREG(insn, 9);
if (insn & 0x100) {
gen_helper_shl_cc(reg, cpu_env, reg, shift);
} else {
if (insn & 8) {
gen_helper_shr_cc(reg, cpu_env, reg, shift);
} else {
... | {
"code": [
" TCGv reg;",
" TCGv shift;",
" reg = DREG(insn, 0);",
" if (insn & 0x100) {",
" gen_helper_shl_cc(reg, cpu_env, reg, shift);",
" if (insn & 8) {",
" gen_helper_shr_cc(reg, cpu_env, reg, shift);",
" gen_helper_sar_cc(reg, cpu_... | FUNC_0(VAR_0)
{
TCGv reg;
TCGv shift;
reg = DREG(insn, 0);
shift = DREG(insn, 9);
if (insn & 0x100) {
gen_helper_shl_cc(reg, cpu_env, reg, shift);
} else {
if (insn & 8) {
gen_helper_shr_cc(reg, cpu_env, reg, shift);
} else {
gen_help... | [
"FUNC_0(VAR_0)\n{",
"TCGv reg;",
"TCGv shift;",
"reg = DREG(insn, 0);",
"shift = DREG(insn, 9);",
"if (insn & 0x100) {",
"gen_helper_shl_cc(reg, cpu_env, reg, shift);",
"} else {",
"if (insn & 8) {",
"gen_helper_shr_cc(reg, cpu_env, reg, shift);",
"} else {",
"gen_helper_sar_cc(reg, cpu_env, r... | [
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
26,298 | static av_cold int decode_init(WMAProDecodeCtx *s, AVCodecContext *avctx)
{
uint8_t *edata_ptr = avctx->extradata;
unsigned int channel_mask;
int i, bits;
int log2_max_num_subframes;
int num_possible_block_sizes;
if (avctx->codec_id == AV_CODEC_ID_XMA1 || avctx->codec_id == AV_CODEC_ID_... | true | FFmpeg | 9ccc6cecd2d0645f5073382360509eb278b239b1 | static av_cold int decode_init(WMAProDecodeCtx *s, AVCodecContext *avctx)
{
uint8_t *edata_ptr = avctx->extradata;
unsigned int channel_mask;
int i, bits;
int log2_max_num_subframes;
int num_possible_block_sizes;
if (avctx->codec_id == AV_CODEC_ID_XMA1 || avctx->codec_id == AV_CODEC_ID_... | {
"code": [
" s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);",
" if (!s->fdsp)",
" return AVERROR(ENOMEM);"
],
"line_no": [
35,
37,
39
]
} | static av_cold int FUNC_0(WMAProDecodeCtx *s, AVCodecContext *avctx)
{
uint8_t *edata_ptr = avctx->extradata;
unsigned int VAR_0;
int VAR_1, VAR_2;
int VAR_3;
int VAR_4;
if (avctx->codec_id == AV_CODEC_ID_XMA1 || avctx->codec_id == AV_CODEC_ID_XMA2)
avctx->block_align = 2048;
... | [
"static av_cold int FUNC_0(WMAProDecodeCtx *s, AVCodecContext *avctx)\n{",
"uint8_t *edata_ptr = avctx->extradata;",
"unsigned int VAR_0;",
"int VAR_1, VAR_2;",
"int VAR_3;",
"int VAR_4;",
"if (avctx->codec_id == AV_CODEC_ID_XMA1 || avctx->codec_id == AV_CODEC_ID_XMA2)\navctx->block_align = 2048;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37,
39
],
[
43
],
[
47
],
[
53
],
[
55
],
[
57
... |
26,299 | static uint16_t qvirtio_pci_get_queue_size(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readw(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NUM);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static uint16_t qvirtio_pci_get_queue_size(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readw(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NUM);
}
| {
"code": [
" return qpci_io_readw(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NUM);"
],
"line_no": [
7
]
} | static uint16_t FUNC_0(QVirtioDevice *d)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
return qpci_io_readw(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NUM);
}
| [
"static uint16_t FUNC_0(QVirtioDevice *d)\n{",
"QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;",
"return qpci_io_readw(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NUM);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,301 | int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
const void *buf, int count)
{
int ret;
ret = bdrv_pwrite(bs, offset, buf, count);
if (ret < 0) {
return ret;
}
/* No flush needed for cache=writethrough, it uses O_DSYNC */
if ((bs->open_flags & BDRV_O_CACHE_MASK... | true | qemu | 92196b2f5664d5defa778b1b24df56e2239b5e93 | int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,
const void *buf, int count)
{
int ret;
ret = bdrv_pwrite(bs, offset, buf, count);
if (ret < 0) {
return ret;
}
if ((bs->open_flags & BDRV_O_CACHE_MASK) != 0) {
bdrv_flush(bs);
}
return 0;
}... | {
"code": [
" if ((bs->open_flags & BDRV_O_CACHE_MASK) != 0) {"
],
"line_no": [
23
]
} | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
const void *VAR_2, int VAR_3)
{
int VAR_4;
VAR_4 = bdrv_pwrite(VAR_0, VAR_1, VAR_2, VAR_3);
if (VAR_4 < 0) {
return VAR_4;
}
if ((VAR_0->open_flags & BDRV_O_CACHE_MASK) != 0) {
bdrv_flush(VAR_0);
}
... | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst void *VAR_2, int VAR_3)\n{",
"int VAR_4;",
"VAR_4 = bdrv_pwrite(VAR_0, VAR_1, VAR_2, VAR_3);",
"if (VAR_4 < 0) {",
"return VAR_4;",
"}",
"if ((VAR_0->open_flags & BDRV_O_CACHE_MASK) != 0) {",
"bdrv_flush(VAR_0);",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
26,302 | static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
RowContext *row, int n)
{
dnxhd_decode_dct_block(ctx, row, n, 4, 32, 6);
}
| true | FFmpeg | b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8 | static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
RowContext *row, int n)
{
dnxhd_decode_dct_block(ctx, row, n, 4, 32, 6);
}
| {
"code": [
"static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,",
"static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,",
" dnxhd_decode_dct_block(ctx, row, n, 4, 32, 6);"
],
"line_no": [
1,
1,
7
]
} | static void FUNC_0(const DNXHDContext *VAR_0,
RowContext *VAR_1, int VAR_2)
{
dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 4, 32, 6);
}
| [
"static void FUNC_0(const DNXHDContext *VAR_0,\nRowContext *VAR_1, int VAR_2)\n{",
"dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 4, 32, 6);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
26,303 | int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
{
unsigned int first_mb_in_slice;
unsigned int pps_id;
int ret;
unsigned int slice_type, tmp, i, j;
int last_pic_structure, last_pic_droppable;
int must_reinit;
int needs_reinit = 0;
int field_pic_flag, bottom... | true | FFmpeg | 386601286fed2dff5e1955bc21a0256f6f35ab19 | int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
{
unsigned int first_mb_in_slice;
unsigned int pps_id;
int ret;
unsigned int slice_type, tmp, i, j;
int last_pic_structure, last_pic_droppable;
int must_reinit;
int needs_reinit = 0;
int field_pic_flag, bottom... | {
"code": [
" h->mb_aff_frame = 0;",
" h->mb_aff_frame = h->sps.mb_aff;",
" last_pic_droppable != droppable) {"
],
"line_no": [
495,
531,
541
]
} | int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)
{
unsigned int VAR_2;
unsigned int VAR_3;
int VAR_4;
unsigned int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9, VAR_10;
int VAR_11;
int VAR_12 = 0;
int VAR_13, VAR_14;
int VAR_15 = VAR_1 == VAR_0->slice_ctx && !VAR_0->current... | [
"int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)\n{",
"unsigned int VAR_2;",
"unsigned int VAR_3;",
"int VAR_4;",
"unsigned int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9, VAR_10;",
"int VAR_11;",
"int VAR_12 = 0;",
"int VAR_13, VAR_14;",
"int VAR_15 = VAR_1 == VAR_0->slice_ctx && !VAR_0->cu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,304 | static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb,
int channel, int *last)
{
int t, t2;
int sign, base, add, ret;
WvChannel *c = &ctx->ch[channel];
*last = 0;
if ((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) &&
!ctx->zero &&... | true | FFmpeg | c6831e2a70f734c71f483d69d46d0635963530c7 | static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb,
int channel, int *last)
{
int t, t2;
int sign, base, add, ret;
WvChannel *c = &ctx->ch[channel];
*last = 0;
if ((ctx->ch[0].median[0] < 2U) && (ctx->ch[1].median[0] < 2U) &&
!ctx->zero &&... | {
"code": [],
"line_no": []
} | static int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,
int VAR_2, int *VAR_3)
{
int VAR_4, VAR_5;
int VAR_6, VAR_7, VAR_8, VAR_9;
WvChannel *c = &VAR_0->ch[VAR_2];
*VAR_3 = 0;
if ((VAR_0->ch[0].median[0] < 2U) && (VAR_0->ch[1].median[0] < 2U) &&
... | [
"static int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,\nint VAR_2, int *VAR_3)\n{",
"int VAR_4, VAR_5;",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"WvChannel *c = &VAR_0->ch[VAR_2];",
"*VAR_3 = 0;",
"if ((VAR_0->ch[0].median[0] < 2U) && (VAR_0->ch[1].median[0] < 2U) &&\n!VAR_0->zero && !VAR_0->one)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
34
],
[
36
],
[
38
],
[
40,
43
],
[
45
],
[
47,
51
],
[
53
... |
26,305 | static pxa2xx_timer_info *pxa2xx_timer_init(target_phys_addr_t base,
qemu_irq *irqs)
{
int i;
int iomemtype;
pxa2xx_timer_info *s;
s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info));
s->base = base;
s->irq_enabled = 0;
s->oldclock = 0;
s->clock ... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | static pxa2xx_timer_info *pxa2xx_timer_init(target_phys_addr_t base,
qemu_irq *irqs)
{
int i;
int iomemtype;
pxa2xx_timer_info *s;
s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info));
s->base = base;
s->irq_enabled = 0;
s->oldclock = 0;
s->clock ... | {
"code": [
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_phys... | static pxa2xx_timer_info *FUNC_0(target_phys_addr_t base,
qemu_irq *irqs)
{
int VAR_0;
int VAR_1;
pxa2xx_timer_info *s;
s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info));
s->base = base;
s->irq_enabled = 0;
s->oldclock = 0;
s->clock = 0;
s... | [
"static pxa2xx_timer_info *FUNC_0(target_phys_addr_t base,\nqemu_irq *irqs)\n{",
"int VAR_0;",
"int VAR_1;",
"pxa2xx_timer_info *s;",
"s = (pxa2xx_timer_info *) qemu_mallocz(sizeof(pxa2xx_timer_info));",
"s->base = base;",
"s->irq_enabled = 0;",
"s->oldclock = 0;",
"s->clock = 0;",
"s->lastload = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
... |
26,307 | static void http_write_packet(void *opaque,
unsigned char *buf, int size)
{
HTTPContext *c = opaque;
if (c->buffer_ptr == c->buffer_end || !c->buffer_ptr)
c->buffer_ptr = c->buffer_end = c->buffer;
if (c->buffer_end - c->buffer + size > IOBUFFER_MAX_SIZE)
... | true | FFmpeg | ec3b22326dc07fb8300a577bd6b17c19a0f1bcf7 | static void http_write_packet(void *opaque,
unsigned char *buf, int size)
{
HTTPContext *c = opaque;
if (c->buffer_ptr == c->buffer_end || !c->buffer_ptr)
c->buffer_ptr = c->buffer_end = c->buffer;
if (c->buffer_end - c->buffer + size > IOBUFFER_MAX_SIZE)
... | {
"code": [
" abort();",
" abort();"
],
"line_no": [
19,
19
]
} | static void FUNC_0(void *VAR_0,
unsigned char *VAR_1, int VAR_2)
{
HTTPContext *c = VAR_0;
if (c->buffer_ptr == c->buffer_end || !c->buffer_ptr)
c->buffer_ptr = c->buffer_end = c->buffer;
if (c->buffer_end - c->buffer + VAR_2 > IOBUFFER_MAX_SIZE)
abo... | [
"static void FUNC_0(void *VAR_0,\nunsigned char *VAR_1, int VAR_2)\n{",
"HTTPContext *c = VAR_0;",
"if (c->buffer_ptr == c->buffer_end || !c->buffer_ptr)\nc->buffer_ptr = c->buffer_end = c->buffer;",
"if (c->buffer_end - c->buffer + VAR_2 > IOBUFFER_MAX_SIZE)\nabort();",
"memcpy(c->buffer_end, VAR_1, VAR_2)... | [
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
]
] |
26,308 | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt,
const struct iovec *iov, int iovcnt,
size_t iovoff, bool strip_vlan,
uint16_t vet)
{
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->... | true | qemu | df8bf7a7fe75eb5d5caffa55f5cd4292b757aea6 | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt,
const struct iovec *iov, int iovcnt,
size_t iovoff, bool strip_vlan,
uint16_t vet)
{
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->... | {
"code": [
" pkt->vlan_stripped = false;",
" pkt->vlan_stripped = false;",
" pkt->vlan_stripped = eth_strip_vlan_ex(iov, iovcnt, iovoff, vet,",
" pkt->ehdr_buf,",
" &ploff, &tci);"
],
"lin... | void FUNC_0(struct NetRxPkt *VAR_0,
const struct iovec *VAR_1, int VAR_2,
size_t VAR_3, bool VAR_4,
uint16_t VAR_5)
{
uint16_t tci = 0;
uint16_t ploff = VAR_3;
assert(VAR_0);
VAR_0->vlan_stripped = fa... | [
"void FUNC_0(struct NetRxPkt *VAR_0,\nconst struct iovec *VAR_1, int VAR_2,\nsize_t VAR_3, bool VAR_4,\nuint16_t VAR_5)\n{",
"uint16_t tci = 0;",
"uint16_t ploff = VAR_3;",
"assert(VAR_0);",
"VAR_0->vlan_stripped = false;",
"if (VAR_4) {",
"VAR_0->vlan_stripped = eth_strip_vlan_ex(VAR_1, VAR_2, VAR_3, V... | [
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27
],
[
29
],
[
33
],
[
37
],
[
39
]
] |
26,309 | static int http_read_stream(URLContext *h, uint8_t *buf, int size)
{
HTTPContext *s = h->priv_data;
int err, new_location;
if (!s->hd)
return AVERROR_EOF;
if (s->end_chunked_post && !s->end_header) {
err = http_read_header(h, &new_location);
if (err < 0)
... | true | FFmpeg | 131644677970a3c4a0096270ea2a5b5d437c2e63 | static int http_read_stream(URLContext *h, uint8_t *buf, int size)
{
HTTPContext *s = h->priv_data;
int err, new_location;
if (!s->hd)
return AVERROR_EOF;
if (s->end_chunked_post && !s->end_header) {
err = http_read_header(h, &new_location);
if (err < 0)
... | {
"code": [
" if (!s->chunksize)"
],
"line_no": [
59
]
} | static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{
HTTPContext *s = VAR_0->priv_data;
int VAR_3, VAR_4;
if (!s->hd)
return AVERROR_EOF;
if (s->end_chunked_post && !s->end_header) {
VAR_3 = http_read_header(VAR_0, &VAR_4);
if (VAR_3 < 0)
ret... | [
"static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"HTTPContext *s = VAR_0->priv_data;",
"int VAR_3, VAR_4;",
"if (!s->hd)\nreturn AVERROR_EOF;",
"if (s->end_chunked_post && !s->end_header) {",
"VAR_3 = http_read_header(VAR_0, &VAR_4);",
"if (VAR_3 < 0)\nreturn VAR_3;",
"}",
"if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
49
],
[
53,
55
],
[
59... |
26,310 | static int lag_read_prob_header(lag_rac *rac, GetBitContext *gb)
{
int i, j, scale_factor;
unsigned prob, cumulative_target;
unsigned cumul_prob = 0;
unsigned scaled_cumul_prob = 0;
rac->prob[0] = 0;
rac->prob[257] = UINT_MAX;
/* Read probabilities from bitstream */
for (i = 1... | true | FFmpeg | ed3c9b5b0dd5abb545c48e930e1c32c187b0776a | static int lag_read_prob_header(lag_rac *rac, GetBitContext *gb)
{
int i, j, scale_factor;
unsigned prob, cumulative_target;
unsigned cumul_prob = 0;
unsigned scaled_cumul_prob = 0;
rac->prob[0] = 0;
rac->prob[257] = UINT_MAX;
for (i = 1; i < 257; i++) {
if (lag_deco... | {
"code": [
" cumulative_target = 1 << scale_factor;"
],
"line_no": [
113
]
} | static int FUNC_0(lag_rac *VAR_0, GetBitContext *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
unsigned VAR_5, VAR_6;
unsigned VAR_7 = 0;
unsigned VAR_8 = 0;
VAR_0->VAR_5[0] = 0;
VAR_0->VAR_5[257] = UINT_MAX;
for (VAR_2 = 1; VAR_2 < 257; VAR_2++) {
if (lag_decode_prob(VAR_1, &VA... | [
"static int FUNC_0(lag_rac *VAR_0, GetBitContext *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"unsigned VAR_5, VAR_6;",
"unsigned VAR_7 = 0;",
"unsigned VAR_8 = 0;",
"VAR_0->VAR_5[0] = 0;",
"VAR_0->VAR_5[257] = UINT_MAX;",
"for (VAR_2 = 1; VAR_2 < 257; VAR_2++) {",
"if (lag_decode_prob(VAR_1, &VAR_0->VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,311 | static int ata_passthrough_12_xfer_size(SCSIDevice *dev, uint8_t *buf)
{
int length = buf[2] & 0x3;
int xfer;
int unit = ata_passthrough_xfer_unit(dev, buf);
switch (length) {
case 0:
case 3: /* USB-specific. */
xfer = 0;
break;
case 1:
xfer = buf[3];
... | true | qemu | d83c951cce14dd3c7600c386d3791c4993744622 | static int ata_passthrough_12_xfer_size(SCSIDevice *dev, uint8_t *buf)
{
int length = buf[2] & 0x3;
int xfer;
int unit = ata_passthrough_xfer_unit(dev, buf);
switch (length) {
case 0:
case 3:
xfer = 0;
break;
case 1:
xfer = buf[3];
break;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(SCSIDevice *VAR_0, uint8_t *VAR_1)
{
int VAR_2 = VAR_1[2] & 0x3;
int VAR_3;
int VAR_4 = ata_passthrough_xfer_unit(VAR_0, VAR_1);
switch (VAR_2) {
case 0:
case 3:
VAR_3 = 0;
break;
case 1:
VAR_3 = VAR_1[3];
break;
case 2:
... | [
"static int FUNC_0(SCSIDevice *VAR_0, uint8_t *VAR_1)\n{",
"int VAR_2 = VAR_1[2] & 0x3;",
"int VAR_3;",
"int VAR_4 = ata_passthrough_xfer_unit(VAR_0, VAR_1);",
"switch (VAR_2) {",
"case 0:\ncase 3:\nVAR_3 = 0;",
"break;",
"case 1:\nVAR_3 = VAR_1[3];",
"break;",
"case 2:\nVAR_3 = VAR_1[4];",
"bre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17,
20
],
[
22
],
[
24,
26
],
[
28
],
[
30,
32
],
[
34
],
[
36
],
[
40
],
[
42
]
] |
26,312 | static inline void downmix_2f_2r_to_stereo(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += samples[i + 512];
samples[i + 256] = samples[i + 768];
samples[i + 512] = samples[i + 768] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_2f_2r_to_stereo(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += samples[i + 512];
samples[i + 256] = 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 + 512];
VAR_0[VAR_1 + 256] = 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 + 512];",
"VAR_0[VAR_1 + 256] = VAR_0[VAR_1 + 768];",
"VAR_0[VAR_1 + 512] = VAR_0[VAR_1 + 768] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
26,313 | static int video_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
AVStream *st;
st = av_new_stream(s, 0);
if (!st)
return AVERROR_NOMEM;
st->codec->codec_type = CODEC_TYPE_VIDEO;
st->codec->codec_id = s->iformat->value;
st->need_parsing ... | false | FFmpeg | c04c3282b4334ff64cfd69d40fea010602e830fd | static int video_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
AVStream *st;
st = av_new_stream(s, 0);
if (!st)
return AVERROR_NOMEM;
st->codec->codec_type = CODEC_TYPE_VIDEO;
st->codec->codec_id = s->iformat->value;
st->need_parsing ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
AVFormatParameters *VAR_1)
{
AVStream *st;
st = av_new_stream(VAR_0, 0);
if (!st)
return AVERROR_NOMEM;
st->codec->codec_type = CODEC_TYPE_VIDEO;
st->codec->codec_id = VAR_0->iformat->value;
st->need_pars... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{",
"AVStream *st;",
"st = av_new_stream(VAR_0, 0);",
"if (!st)\nreturn AVERROR_NOMEM;",
"st->codec->codec_type = CODEC_TYPE_VIDEO;",
"st->codec->codec_id = VAR_0->iformat->value;",
"st->need_parsing = 1;",
"if (VAR_1 && VAR_1->ti... | [
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
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
26,314 | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_size * 8... | false | FFmpeg | e278056fbad7405fc47901faea7de98db003a0fa | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_size * 8... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
Vp3DecodeContext *s = VAR_0->priv_data;
GetBitContext gb;
static int VAR_5 = 0;
int VAR_6;
init_get_bits(&gb, VAR_3, VAR_4 * 8);
if ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"GetBitContext gb;",
"static int VAR_5 = 0;",
"int VAR_6;",
"init_get_bits(&gb, VAR_3, VAR_4 * 8);",
"if (s->theora && get_bits1(&gb))\n{",
"#if 1\nav_log(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
39
],
[
43,
45
],
[
47,
49
],
[
51
],
[
53,
55
],
[
57
... |
26,316 | static inline int host_to_target_errno(int err)
{
if(host_to_target_errno_table[err])
return host_to_target_errno_table[err];
return err;
}
| true | qemu | 2466119c9551d606a0f92f9832e0c865bc04b488 | static inline int host_to_target_errno(int err)
{
if(host_to_target_errno_table[err])
return host_to_target_errno_table[err];
return err;
}
| {
"code": [
" if(host_to_target_errno_table[err])"
],
"line_no": [
5
]
} | static inline int FUNC_0(int VAR_0)
{
if(host_to_target_errno_table[VAR_0])
return host_to_target_errno_table[VAR_0];
return VAR_0;
}
| [
"static inline int FUNC_0(int VAR_0)\n{",
"if(host_to_target_errno_table[VAR_0])\nreturn host_to_target_errno_table[VAR_0];",
"return VAR_0;",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
]
] |
26,317 | void backup_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *target, int64_t speed,
MirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap,
bool compress,
BlockdevOnError on_source_error,
BlockdevOnError on_t... | true | qemu | e8a40bf71d606f9f87866fb2461eaed52814b38e | void backup_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *target, int64_t speed,
MirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap,
bool compress,
BlockdevOnError on_source_error,
BlockdevOnError on_t... | {
"code": [
" blk_unref(job->target);"
],
"line_no": [
243
]
} | void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,
BlockDriverState *VAR_2, int64_t VAR_3,
MirrorSyncMode VAR_4, BdrvDirtyBitmap *VAR_5,
bool VAR_6,
BlockdevOnError VAR_7,
BlockdevOnError VAR_8,
int VA... | [
"void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nBlockDriverState *VAR_2, int64_t VAR_3,\nMirrorSyncMode VAR_4, BdrvDirtyBitmap *VAR_5,\nbool VAR_6,\nBlockdevOnError VAR_7,\nBlockdevOnError VAR_8,\nint VAR_9,\nBlockCompletionFunc *VAR_10, void *VAR_11,\nBlockJobTxn *VAR_12, Error **VAR_13)\n{",
"int64_t ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
53
],
[
55
],
[... |
26,318 | static void restart_co_req(void *opaque)
{
Coroutine *co = opaque;
qemu_coroutine_enter(co, NULL);
}
| true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void restart_co_req(void *opaque)
{
Coroutine *co = opaque;
qemu_coroutine_enter(co, NULL);
}
| {
"code": [
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);",
" qemu_coroutine_enter(co, NULL);"
],
... | static void FUNC_0(void *VAR_0)
{
Coroutine *co = VAR_0;
qemu_coroutine_enter(co, NULL);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"Coroutine *co = VAR_0;",
"qemu_coroutine_enter(co, NULL);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
26,319 | static void nbd_coroutine_start(NBDClientSession *s,
NBDRequest *request)
{
/* Poor man semaphore. The free_sema is locked when no other request
* can be accepted, and unlocked after receiving one reply. */
if (s->in_flight == MAX_NBD_REQUESTS) {
qemu_co_queu... | true | qemu | 6bdcc018a6ed760b9dfe43539124e420aed83092 | static void nbd_coroutine_start(NBDClientSession *s,
NBDRequest *request)
{
if (s->in_flight == MAX_NBD_REQUESTS) {
qemu_co_queue_wait(&s->free_sema, NULL);
assert(s->in_flight < MAX_NBD_REQUESTS);
}
s->in_flight++;
}
| {
"code": [
"static void nbd_coroutine_start(NBDClientSession *s,",
" NBDRequest *request)",
" if (s->in_flight == MAX_NBD_REQUESTS) {",
" qemu_co_queue_wait(&s->free_sema, NULL);",
" assert(s->in_flight < MAX_NBD_REQUESTS);",
" s->in_flight++... | static void FUNC_0(NBDClientSession *VAR_0,
NBDRequest *VAR_1)
{
if (VAR_0->in_flight == MAX_NBD_REQUESTS) {
qemu_co_queue_wait(&VAR_0->free_sema, NULL);
assert(VAR_0->in_flight < MAX_NBD_REQUESTS);
}
VAR_0->in_flight++;
}
| [
"static void FUNC_0(NBDClientSession *VAR_0,\nNBDRequest *VAR_1)\n{",
"if (VAR_0->in_flight == MAX_NBD_REQUESTS) {",
"qemu_co_queue_wait(&VAR_0->free_sema, NULL);",
"assert(VAR_0->in_flight < MAX_NBD_REQUESTS);",
"}",
"VAR_0->in_flight++;",
"}"
] | [
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3,
5
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
]
] |
26,322 | void ff_h264_direct_dist_scale_factor(H264Context *const h)
{
const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD];
const int poc1 = h->ref_list[1][0].poc;
int i, field;
if (FRAME_MBAFF(h))
for (field = 0; field < 2; field++) {
const int poc ... | false | FFmpeg | c39059bea3adebcd888571d1181db215eee54495 | void ff_h264_direct_dist_scale_factor(H264Context *const h)
{
const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD];
const int poc1 = h->ref_list[1][0].poc;
int i, field;
if (FRAME_MBAFF(h))
for (field = 0; field < 2; field++) {
const int poc ... | {
"code": [],
"line_no": []
} | void FUNC_0(H264Context *const VAR_0)
{
const int VAR_5 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD];
const int VAR_5 = VAR_0->ref_list[1][0].VAR_5;
int VAR_3, VAR_4;
if (FRAME_MBAFF(VAR_0))
for (VAR_4 = 0; VAR_4 < 2; VAR_4++) {
const int V... | [
"void FUNC_0(H264Context *const VAR_0)\n{",
"const int VAR_5 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD];",
"const int VAR_5 = VAR_0->ref_list[1][0].VAR_5;",
"int VAR_3, VAR_4;",
"if (FRAME_MBAFF(VAR_0))\nfor (VAR_4 = 0; VAR_4 < 2; VAR_4++) {",
"const int VAR_5 = VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
26,323 | static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file,
QDict *options, int flags, BlockDriver *drv)
{
int ret, open_flags;
const char *filename;
assert(drv != NULL);
assert(bs->file == NULL);
assert(options != NULL && bs->options != options);
trace_bdrv_open_co... | true | qemu | 456736710df19c2275192269fe67a3f0b2583835 | static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file,
QDict *options, int flags, BlockDriver *drv)
{
int ret, open_flags;
const char *filename;
assert(drv != NULL);
assert(bs->file == NULL);
assert(options != NULL && bs->options != options);
trace_bdrv_open_co... | {
"code": [
" trace_bdrv_open_common(bs, filename, flags, drv->format_name);",
" if (file != NULL) {",
" filename = file->filename;",
" } else {",
" filename = qdict_get_try_str(options, \"filename\");"
],
"line_no": [
21,
65,
67,
69,
71
]
} | static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,
QDict *VAR_2, int VAR_3, BlockDriver *VAR_4)
{
int VAR_5, VAR_6;
const char *VAR_7;
assert(VAR_4 != NULL);
assert(VAR_0->VAR_1 == NULL);
assert(VAR_2 != NULL && VAR_0->VAR_2 != VAR_2);
trace_bdrv_open_common(VAR_... | [
"static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nQDict *VAR_2, int VAR_3, BlockDriver *VAR_4)\n{",
"int VAR_5, VAR_6;",
"const char *VAR_7;",
"assert(VAR_4 != NULL);",
"assert(VAR_0->VAR_1 == NULL);",
"assert(VAR_2 != NULL && VAR_0->VAR_2 != VAR_2);",
"trace_bdrv_open_common(VAR_0, ... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[... |
26,324 | static int qcow2_open(BlockDriverState *bs, int flags)
{
BDRVQcowState *s = bs->opaque;
int len, i, ret = 0;
QCowHeader header;
uint64_t ext_end;
ret = bdrv_pread(bs->file, 0, &header, sizeof(header));
if (ret < 0) {
goto fail;
}
be32_to_cpus(&header.magic);
be32... | true | qemu | b35278f75450e57c134a153e6da9744c1db8382f | static int qcow2_open(BlockDriverState *bs, int flags)
{
BDRVQcowState *s = bs->opaque;
int len, i, ret = 0;
QCowHeader header;
uint64_t ext_end;
ret = bdrv_pread(bs->file, 0, &header, sizeof(header));
if (ret < 0) {
goto fail;
}
be32_to_cpus(&header.magic);
be32... | {
"code": [
" qcow2_check_refcounts(bs, &result);",
" qcow2_check_refcounts(bs, &result);",
" qcow2_check_refcounts(bs, &result);"
],
"line_no": [
403,
403,
403
]
} | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_2, VAR_3, VAR_4 = 0;
QCowHeader header;
uint64_t ext_end;
VAR_4 = bdrv_pread(VAR_0->file, 0, &header, sizeof(header));
if (VAR_4 < 0) {
goto fail;
}
be32_to_cpus(&header.... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_2, VAR_3, VAR_4 = 0;",
"QCowHeader header;",
"uint64_t ext_end;",
"VAR_4 = bdrv_pread(VAR_0->file, 0, &header, sizeof(header));",
"if (VAR_4 < 0) {",
"goto fail;",
"}",
"be32_to_cpus(&header.m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
26,325 | static int read_packet(AVFormatContext *s, AVPacket *pkt)
{
PAFDemuxContext *p = s->priv_data;
AVIOContext *pb = s->pb;
uint32_t count, offset;
int size, i;
if (p->current_frame >= p->nb_frames)
return AVERROR_EOF;
if (url_feof(pb))
return AVER... | true | FFmpeg | f58cd2867a8af2eed13acdd21d067b48249b14a1 | static int read_packet(AVFormatContext *s, AVPacket *pkt)
{
PAFDemuxContext *p = s->priv_data;
AVIOContext *pb = s->pb;
uint32_t count, offset;
int size, i;
if (p->current_frame >= p->nb_frames)
return AVERROR_EOF;
if (url_feof(pb))
return AVER... | {
"code": [
" size = p->video_size - p->frames_offset_table[p->current_frame];",
" if (size < 1)"
],
"line_no": [
99,
101
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
PAFDemuxContext *p = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
uint32_t count, offset;
int VAR_2, VAR_3;
if (p->current_frame >= p->nb_frames)
return AVERROR_EOF;
if (url_feof(pb))
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"PAFDemuxContext *p = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"uint32_t count, offset;",
"int VAR_2, VAR_3;",
"if (p->current_frame >= p->nb_frames)\nreturn AVERROR_EOF;",
"if (url_feof(pb))\nreturn AVERR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21,
23
],
[
27
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[... |
26,326 | char *target_strerror(int err)
{
return strerror(target_to_host_errno(err));
| true | qemu | 962b289ef35087fcd8764e4e29808d8ac90157f7 | char *target_strerror(int err)
{
return strerror(target_to_host_errno(err));
| {
"code": [],
"line_no": []
} | char *FUNC_0(int VAR_0)
{
return strerror(target_to_host_errno(VAR_0));
| [
"char *FUNC_0(int VAR_0)\n{",
"return strerror(target_to_host_errno(VAR_0));"
] | [
0,
0
] | [
[
1,
3
],
[
8
]
] |
26,327 | AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
URLContext *handle, int packet_size)
{
AVFormatContext *rtpctx;
int ret;
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
if (!rtp_format)
return NULL;
... | true | FFmpeg | ce41c51b0c71c87f623914ba0786aef325d818fe | AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
URLContext *handle, int packet_size)
{
AVFormatContext *rtpctx;
int ret;
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
if (!rtp_format)
return NULL;
... | {
"code": [],
"line_no": []
} | AVFormatContext *FUNC_0(AVFormatContext *s, AVStream *st,
URLContext *handle, int packet_size)
{
AVFormatContext *rtpctx;
int VAR_0;
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
if (!rtp_format)
return NULL;
rtpctx ... | [
"AVFormatContext *FUNC_0(AVFormatContext *s, AVStream *st,\nURLContext *handle, int packet_size)\n{",
"AVFormatContext *rtpctx;",
"int VAR_0;",
"AVOutputFormat *rtp_format = av_guess_format(\"rtp\", NULL, NULL);",
"if (!rtp_format)\nreturn NULL;",
"rtpctx = avformat_alloc_context();",
"if (!rtpctx)\nret... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
53
],
[
63
],
[
65
],
[
69
],
[... |
26,328 | static int pci_cirrus_vga_initfn(PCIDevice *dev)
{
PCICirrusVGAState *d = DO_UPCAST(PCICirrusVGAState, dev, dev);
CirrusVGAState *s = &d->cirrus_vga;
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
int16_t device_id = pc->device_id;
/* setup VGA */
vga_common_init(&s->vga,... | true | qemu | f61d82c2dfe02a60642a76e8f0034a0244eef2bf | static int pci_cirrus_vga_initfn(PCIDevice *dev)
{
PCICirrusVGAState *d = DO_UPCAST(PCICirrusVGAState, dev, dev);
CirrusVGAState *s = &d->cirrus_vga;
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
int16_t device_id = pc->device_id;
vga_common_init(&s->vga, OBJECT(dev), t... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
PCICirrusVGAState *d = DO_UPCAST(PCICirrusVGAState, VAR_0, VAR_0);
CirrusVGAState *s = &d->cirrus_vga;
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(VAR_0);
int16_t device_id = pc->device_id;
vga_common_init(&s->vga, OBJECT(VAR_0), true);... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"PCICirrusVGAState *d = DO_UPCAST(PCICirrusVGAState, VAR_0, VAR_0);",
"CirrusVGAState *s = &d->cirrus_vga;",
"PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(VAR_0);",
"int16_t device_id = pc->device_id;",
"vga_common_init(&s->vga, OBJECT(VAR_0), true);",
"cirrus_init... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
25
],
[
27,
29
],
[
31
],
[
39
],
[
45
],
[
47,
49
],
[
61
],
[
63
],
[
65
],
[
68
]
] |
26,329 | static void rm_read_audio_stream_info(AVFormatContext *s, AVStream *st,
int read_all)
{
RMContext *rm = s->priv_data;
ByteIOContext *pb = &s->pb;
char buf[256];
uint32_t version;
int i;
/* ra type header */
version = get_be32(pb); /* version */
if ((... | true | FFmpeg | a443a2530d00b7019269202ac0f5ca8ba0a021c7 | static void rm_read_audio_stream_info(AVFormatContext *s, AVStream *st,
int read_all)
{
RMContext *rm = s->priv_data;
ByteIOContext *pb = &s->pb;
char buf[256];
uint32_t version;
int i;
version = get_be32(pb);
if (((version >> 16) & 0xff) == 3) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,
int VAR_2)
{
RMContext *rm = VAR_0->priv_data;
ByteIOContext *pb = &VAR_0->pb;
char VAR_3[256];
uint32_t version;
int VAR_10;
version = get_be32(pb);
if (((version >> 16) & 0xff) == 3) {
... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nint VAR_2)\n{",
"RMContext *rm = VAR_0->priv_data;",
"ByteIOContext *pb = &VAR_0->pb;",
"char VAR_3[256];",
"uint32_t version;",
"int VAR_10;",
"version = get_be32(pb);",
"if (((version >> 16) & 0xff) == 3) {",
"int64_t startpos = url_fte... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
10
],
[
11
],
[
12
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
22
],
[
23
],
[
25,
26
]... |
26,332 | static int vc1test_write_header(AVFormatContext *s)
{
AVCodecContext *avc = s->streams[0]->codec;
AVIOContext *pb = s->pb;
if (avc->codec_id != CODEC_ID_WMV3) {
av_log(s, AV_LOG_ERROR, "Only WMV3 is accepted!\n");
return -1;
}
avio_wl24(pb, 0); //frames count will be here
... | true | FFmpeg | aba232cfa9b193604ed98f3fa505378d006b1b3b | static int vc1test_write_header(AVFormatContext *s)
{
AVCodecContext *avc = s->streams[0]->codec;
AVIOContext *pb = s->pb;
if (avc->codec_id != CODEC_ID_WMV3) {
av_log(s, AV_LOG_ERROR, "Only WMV3 is accepted!\n");
return -1;
}
avio_wl24(pb, 0);
avio_w8(pb, 0xC5);
... | {
"code": [
" if (s->streams[0]->r_frame_rate.den && s->streams[0]->r_frame_rate.num == 1)",
" avio_wl32(pb, s->streams[0]->r_frame_rate.den);"
],
"line_no": [
39,
41
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVCodecContext *avc = VAR_0->streams[0]->codec;
AVIOContext *pb = VAR_0->pb;
if (avc->codec_id != CODEC_ID_WMV3) {
av_log(VAR_0, AV_LOG_ERROR, "Only WMV3 is accepted!\n");
return -1;
}
avio_wl24(pb, 0);
avio_w8(pb, 0xC5);
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVCodecContext *avc = VAR_0->streams[0]->codec;",
"AVIOContext *pb = VAR_0->pb;",
"if (avc->codec_id != CODEC_ID_WMV3) {",
"av_log(VAR_0, AV_LOG_ERROR, \"Only WMV3 is accepted!\\n\");",
"return -1;",
"}",
"avio_wl24(pb, 0);",
"avio_w8(pb, 0xC5);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45... |
26,334 | static int caca_write_trailer(AVFormatContext *s)
{
CACAContext *c = s->priv_data;
av_freep(&c->window_title);
caca_free_dither(c->dither);
caca_free_display(c->display);
caca_free_canvas(c->canvas);
return 0;
}
| true | FFmpeg | c0b91348fe4aec7d2245d95ccabb460a6971e361 | static int caca_write_trailer(AVFormatContext *s)
{
CACAContext *c = s->priv_data;
av_freep(&c->window_title);
caca_free_dither(c->dither);
caca_free_display(c->display);
caca_free_canvas(c->canvas);
return 0;
}
| {
"code": [
" caca_free_dither(c->dither);",
" caca_free_display(c->display);",
" caca_free_canvas(c->canvas);"
],
"line_no": [
13,
15,
17
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
CACAContext *c = VAR_0->priv_data;
av_freep(&c->window_title);
caca_free_dither(c->dither);
caca_free_display(c->display);
caca_free_canvas(c->canvas);
return 0;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"CACAContext *c = VAR_0->priv_data;",
"av_freep(&c->window_title);",
"caca_free_dither(c->dither);",
"caca_free_display(c->display);",
"caca_free_canvas(c->canvas);",
"return 0;",
"}"
] | [
0,
0,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,335 | static void dec_null(DisasContext *dc)
{
qemu_log ("unknown insn pc=%x opc=%x\n", dc->pc, dc->opcode);
dc->abort_at_next_insn = 1;
| true | qemu | 02b33596d09bafed5d58366403a2d369f0d1047e | static void dec_null(DisasContext *dc)
{
qemu_log ("unknown insn pc=%x opc=%x\n", dc->pc, dc->opcode);
dc->abort_at_next_insn = 1;
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
qemu_log ("unknown insn pc=%x opc=%x\n", VAR_0->pc, VAR_0->opcode);
VAR_0->abort_at_next_insn = 1;
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"qemu_log (\"unknown insn pc=%x opc=%x\\n\", VAR_0->pc, VAR_0->opcode);",
"VAR_0->abort_at_next_insn = 1;"
] | [
0,
0,
0
] | [
[
1,
3
],
[
11
],
[
13
]
] |
26,336 | int av_parse_cpu_flags(const char *s)
{
#define CPUFLAG_MMXEXT (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_CMOV)
#define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX)
#define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW)
#define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG_... | true | FFmpeg | e2710e790c09e49e86baa58c6063af0097cc8cb0 | int av_parse_cpu_flags(const char *s)
{
#define CPUFLAG_MMXEXT (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_CMOV)
#define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX)
#define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW)
#define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG_... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0)
{
#define CPUFLAG_MMXEXT (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_CMOV)
#define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX)
#define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW)
#define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG_MMXEXT)
... | [
"int FUNC_0(const char *VAR_0)\n{",
"#define CPUFLAG_MMXEXT (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_CMOV)\n#define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX)\n#define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW)\n#define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
... |
26,337 | void mpeg1_init_vlc(MpegEncContext *s)
{
static int done = 0;
if (!done) {
init_vlc(&dc_lum_vlc, 9, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, 9, 12,
vlc_dc_chroma_bits, 1, 1,
vlc... | true | FFmpeg | 915bbac6815eddd911fb5cb8a23517b3cac3a84b | void mpeg1_init_vlc(MpegEncContext *s)
{
static int done = 0;
if (!done) {
init_vlc(&dc_lum_vlc, 9, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, 9, 12,
vlc_dc_chroma_bits, 1, 1,
vlc... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
static int VAR_1 = 0;
if (!VAR_1) {
init_vlc(&dc_lum_vlc, 9, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, 9, 12,
vlc_dc_chroma_bits, 1, 1,
vlc_d... | [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"static int VAR_1 = 0;",
"if (!VAR_1) {",
"init_vlc(&dc_lum_vlc, 9, 12,\nvlc_dc_lum_bits, 1, 1,\nvlc_dc_lum_code, 2, 2);",
"init_vlc(&dc_chroma_vlc, 9, 12,\nvlc_dc_chroma_bits, 1, 1,\nvlc_dc_chroma_code, 2, 2);",
"init_vlc(&mv_vlc, 9, 17,\n&mbMotionVectorTable[0][1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
14,
16,
18
],
[
20,
22,
24
],
[
26,
28,
30
],
[
32,
34,
36
],
[
38,
40,
42
],
[
46,
48,
50
],
[
52,
54,
56
],
[
58
],
[
60
],
[
64... |
26,338 | static int encode_bitstream(FlashSVContext *s, const AVFrame *p, uint8_t *buf,
int buf_size, int block_width, int block_height,
uint8_t *previous_frame, int *I_frame)
{
PutBitContext pb;
int h_blocks, v_blocks, h_part, v_part, i, j;
int buf_pos... | true | FFmpeg | 50833c9f7b4e1922197a8955669f8ab3589c8cef | static int encode_bitstream(FlashSVContext *s, const AVFrame *p, uint8_t *buf,
int buf_size, int block_width, int block_height,
uint8_t *previous_frame, int *I_frame)
{
PutBitContext pb;
int h_blocks, v_blocks, h_part, v_part, i, j;
int buf_pos... | {
"code": [
" init_put_bits(&pb, buf, buf_size * 8);",
" init_put_bits(&pb, buf, buf_size * 8);"
],
"line_no": [
21,
21
]
} | static int FUNC_0(FlashSVContext *VAR_0, const AVFrame *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5,
uint8_t *VAR_6, int *VAR_7)
{
PutBitContext pb;
int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15;
int VAR_1... | [
"static int FUNC_0(FlashSVContext *VAR_0, const AVFrame *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nuint8_t *VAR_6, int *VAR_7)\n{",
"PutBitContext pb;",
"int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15;",
"int VAR_16 = 0;",
"init_put_bits(&pb, VAR_2, VAR_3 * 8);",
... | [
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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
55
],
[
57... |
26,339 | static void usb_uas_task(UASDevice *uas, uas_ui *ui)
{
uint16_t tag = be16_to_cpu(ui->hdr.tag);
uint64_t lun64 = be64_to_cpu(ui->task.lun);
SCSIDevice *dev = usb_uas_get_dev(uas, lun64);
int lun = usb_uas_get_lun(lun64);
UASRequest *req;
uint16_t task_tag;
req = usb_uas_find_req... | true | qemu | 3453f9a0dfa58578e6dadf0905ff4528b428ec73 | static void usb_uas_task(UASDevice *uas, uas_ui *ui)
{
uint16_t tag = be16_to_cpu(ui->hdr.tag);
uint64_t lun64 = be64_to_cpu(ui->task.lun);
SCSIDevice *dev = usb_uas_get_dev(uas, lun64);
int lun = usb_uas_get_lun(lun64);
UASRequest *req;
uint16_t task_tag;
req = usb_uas_find_req... | {
"code": [],
"line_no": []
} | static void FUNC_0(UASDevice *VAR_0, uas_ui *VAR_1)
{
uint16_t tag = be16_to_cpu(VAR_1->hdr.tag);
uint64_t lun64 = be64_to_cpu(VAR_1->task.VAR_2);
SCSIDevice *dev = usb_uas_get_dev(VAR_0, lun64);
int VAR_2 = usb_uas_get_lun(lun64);
UASRequest *req;
uint16_t task_tag;
req = usb_u... | [
"static void FUNC_0(UASDevice *VAR_0, uas_ui *VAR_1)\n{",
"uint16_t tag = be16_to_cpu(VAR_1->hdr.tag);",
"uint64_t lun64 = be64_to_cpu(VAR_1->task.VAR_2);",
"SCSIDevice *dev = usb_uas_get_dev(VAR_0, lun64);",
"int VAR_2 = usb_uas_get_lun(lun64);",
"UASRequest *req;",
"uint16_t task_tag;",
"req = usb_u... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
22
],
[
24
],
[
26
],
[
29
],
[
31
],
[
36
],
[
38,
40
],
[
42
],
[
44
],
[
46
],
[
48
],
[
51
],
[... |
26,340 | static int sch_handle_start_func_passthrough(SubchDev *sch)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int ret;
ORB *orb = &sch->orb;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
assert(orb != NULL);
p->intparm = orb->intparm;
}
/*
* Onl... | true | qemu | 66dc50f7057b9a0191f54e55764412202306858d | static int sch_handle_start_func_passthrough(SubchDev *sch)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int ret;
ORB *orb = &sch->orb;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
assert(orb != NULL);
p->intparm = orb->intparm;
}
if... | {
"code": [
"static int sch_handle_start_func_passthrough(SubchDev *sch)",
" int ret;",
" return -EINVAL;",
" ret = s390_ccw_cmd_request(orb, s, sch->driver_data);",
" switch (ret) {",
" case 0:",
" break;",
" case -EBUSY:",
" break;",
" c... | static int FUNC_0(SubchDev *VAR_0)
{
PMCW *p = &VAR_0->curr_status.pmcw;
SCSW *s = &VAR_0->curr_status.scsw;
int VAR_1;
ORB *orb = &VAR_0->orb;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
assert(orb != NULL);
p->intparm = orb->intparm;
}
if (!(orb->ctrl0 & ... | [
"static int FUNC_0(SubchDev *VAR_0)\n{",
"PMCW *p = &VAR_0->curr_status.pmcw;",
"SCSW *s = &VAR_0->curr_status.scsw;",
"int VAR_1;",
"ORB *orb = &VAR_0->orb;",
"if (!(s->ctrl & SCSW_ACTL_SUSP)) {",
"assert(orb != NULL);",
"p->intparm = orb->intparm;",
"}",
"if (!(orb->ctrl0 & ORB_CTRL0_MASK_PFCH) ... | [
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51,
53
],
[
55,
57
],
[
59,
61
],
[
63... |
26,341 | static int cmd_valid_while_locked(SDState *sd, SDRequest *req)
{
/* Valid commands in locked state:
* basic class (0)
* lock card class (7)
* CMD16
* implicitly, the ACMD prefix CMD55
* ACMD41 and ACMD42
* Anything else provokes an "illegal command" response.
*/
if (... | true | qemu | 1d06cb7ab93f879ac25c9f5ef1d1ac8d97a42dfc | static int cmd_valid_while_locked(SDState *sd, SDRequest *req)
{
if (sd->card_status & APP_CMD) {
return req->cmd == 41 || req->cmd == 42;
}
if (req->cmd == 16 || req->cmd == 55) {
return 1;
}
return sd_cmd_class[req->cmd] == 0 || sd_cmd_class[req->cmd] ==... | {
"code": [
" if (sd->card_status & APP_CMD) {",
" if (sd->card_status & APP_CMD) {"
],
"line_no": [
21,
21
]
} | static int FUNC_0(SDState *VAR_0, SDRequest *VAR_1)
{
if (VAR_0->card_status & APP_CMD) {
return VAR_1->cmd == 41 || VAR_1->cmd == 42;
}
if (VAR_1->cmd == 16 || VAR_1->cmd == 55) {
return 1;
}
return sd_cmd_class[VAR_1->cmd] == 0 || sd_cmd_class[VAR_1->cmd... | [
"static int FUNC_0(SDState *VAR_0, SDRequest *VAR_1)\n{",
"if (VAR_0->card_status & APP_CMD) {",
"return VAR_1->cmd == 41 || VAR_1->cmd == 42;",
"}",
"if (VAR_1->cmd == 16 || VAR_1->cmd == 55) {",
"return 1;",
"}",
"return sd_cmd_class[VAR_1->cmd] == 0 || sd_cmd_class[VAR_1->cmd] == 7;",
"}"
] | [
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
26,342 | static int smc_decode_init(AVCodecContext *avctx)
{
SmcContext *s = avctx->priv_data;
s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
dsputil_init(&s->dsp, avctx);
s->frame.data[0] = NULL;
return 0;
}
| false | FFmpeg | 32c3047cac9294bb56d23c89a40a22409db5cc70 | static int smc_decode_init(AVCodecContext *avctx)
{
SmcContext *s = avctx->priv_data;
s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
dsputil_init(&s->dsp, avctx);
s->frame.data[0] = NULL;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
SmcContext *s = VAR_0->priv_data;
s->VAR_0 = VAR_0;
VAR_0->pix_fmt = PIX_FMT_PAL8;
dsputil_init(&s->dsp, VAR_0);
s->frame.data[0] = NULL;
return 0;
}
| [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"SmcContext *s = VAR_0->priv_data;",
"s->VAR_0 = VAR_0;",
"VAR_0->pix_fmt = PIX_FMT_PAL8;",
"dsputil_init(&s->dsp, VAR_0);",
"s->frame.data[0] = NULL;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
]
] |
26,343 | int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
int track_index, int sample)
{
MOVMuxContext *mov = s->priv_data;
MOVTrack *trk = &mov->tracks[track_index];
AVFormatContext *rtp_ctx = trk->rtp_ctx;
uint8_t *buf = NULL;
int size;
AVIOContext *h... | false | FFmpeg | 403ee835e7913eb9536b22c2b22edfdd700166a9 | int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
int track_index, int sample)
{
MOVMuxContext *mov = s->priv_data;
MOVTrack *trk = &mov->tracks[track_index];
AVFormatContext *rtp_ctx = trk->rtp_ctx;
uint8_t *buf = NULL;
int size;
AVIOContext *h... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,
int VAR_2, int VAR_3)
{
MOVMuxContext *mov = VAR_0->priv_data;
MOVTrack *trk = &mov->tracks[VAR_2];
AVFormatContext *rtp_ctx = trk->rtp_ctx;
uint8_t *buf = NULL;
int VAR_4;
AVIOContext *hintbuf = NULL;
... | [
"int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,\nint VAR_2, int VAR_3)\n{",
"MOVMuxContext *mov = VAR_0->priv_data;",
"MOVTrack *trk = &mov->tracks[VAR_2];",
"AVFormatContext *rtp_ctx = trk->rtp_ctx;",
"uint8_t *buf = NULL;",
"int VAR_4;",
"AVIOContext *hintbuf = NULL;",
"AVPacket hint_pkt;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29,
31
],
[
35
],
[
41
],
[
49
],
[
51,
53,
55
],
[
59,
61
],
[
67,... |
26,344 | static void decode_lowdelay(DiracContext *s)
{
AVCodecContext *avctx = s->avctx;
int slice_x, slice_y, bytes, bufsize;
const uint8_t *buf;
struct lowdelay_slice *slices;
int slice_num = 0;
slices = av_mallocz_array(s->lowdelay.num_x, s->lowdelay.num_y * sizeof(struct lowdelay_slice));
... | false | FFmpeg | a4d3cf10b2ece441ae25849a66b1c11d838f9381 | static void decode_lowdelay(DiracContext *s)
{
AVCodecContext *avctx = s->avctx;
int slice_x, slice_y, bytes, bufsize;
const uint8_t *buf;
struct lowdelay_slice *slices;
int slice_num = 0;
slices = av_mallocz_array(s->lowdelay.num_x, s->lowdelay.num_y * sizeof(struct lowdelay_slice));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DiracContext *VAR_0)
{
AVCodecContext *avctx = VAR_0->avctx;
int VAR_1, VAR_2, VAR_3, VAR_4;
const uint8_t *VAR_5;
struct lowdelay_slice *VAR_6;
int VAR_7 = 0;
VAR_6 = av_mallocz_array(VAR_0->lowdelay.num_x, VAR_0->lowdelay.num_y * sizeof(struct lowdelay_slice));
... | [
"static void FUNC_0(DiracContext *VAR_0)\n{",
"AVCodecContext *avctx = VAR_0->avctx;",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"const uint8_t *VAR_5;",
"struct lowdelay_slice *VAR_6;",
"int VAR_7 = 0;",
"VAR_6 = av_mallocz_array(VAR_0->lowdelay.num_x, VAR_0->lowdelay.num_y * sizeof(struct lowdelay_slice));",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
26,345 | static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) {
*dst = *src;
if (src->qp_table) {
int qsize = src->qp_table_size;
dst->qp_table = av_malloc(qsize);
memcpy(dst->qp_table, src->qp_table, qsize);
}
}
| true | FFmpeg | b7e7ee6231bc1f3608ed4005c3e7550ec4815296 | static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) {
*dst = *src;
if (src->qp_table) {
int qsize = src->qp_table_size;
dst->qp_table = av_malloc(qsize);
memcpy(dst->qp_table, src->qp_table, qsize);
}
}
| {
"code": [
"static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) {"
],
"line_no": [
1
]
} | static void FUNC_0(AVFilterBufferRefVideoProps *VAR_0, AVFilterBufferRefVideoProps *VAR_1) {
*VAR_0 = *VAR_1;
if (VAR_1->qp_table) {
int VAR_2 = VAR_1->qp_table_size;
VAR_0->qp_table = av_malloc(VAR_2);
memcpy(VAR_0->qp_table, VAR_1->qp_table, VAR_2);
}
}
| [
"static void FUNC_0(AVFilterBufferRefVideoProps *VAR_0, AVFilterBufferRefVideoProps *VAR_1) {",
"*VAR_0 = *VAR_1;",
"if (VAR_1->qp_table) {",
"int VAR_2 = VAR_1->qp_table_size;",
"VAR_0->qp_table = av_malloc(VAR_2);",
"memcpy(VAR_0->qp_table, VAR_1->qp_table, VAR_2);",
"}",
"}"
] | [
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
26,347 | void qmp_blockdev_backup(BlockdevBackup *arg, Error **errp)
{
do_blockdev_backup(arg, NULL, errp);
}
| true | qemu | 111049a4ecefc9cf1ac75c773f4c5c165f27fe63 | void qmp_blockdev_backup(BlockdevBackup *arg, Error **errp)
{
do_blockdev_backup(arg, NULL, errp);
}
| {
"code": [
" do_blockdev_backup(arg, NULL, errp);"
],
"line_no": [
5
]
} | void FUNC_0(BlockdevBackup *VAR_0, Error **VAR_1)
{
do_blockdev_backup(VAR_0, NULL, VAR_1);
}
| [
"void FUNC_0(BlockdevBackup *VAR_0, Error **VAR_1)\n{",
"do_blockdev_backup(VAR_0, NULL, VAR_1);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,348 | int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
int ret;
int user_packet = !!avpkt->d... | true | FFmpeg | 3c6607eb6f946ed3e108db3f0694cab7e5a5df7e | int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
int ret;
int user_packet = !!avpkt->d... | {
"code": [
" if (!user_packet && avpkt->data) {",
" if (!user_packet && avpkt->data) {"
],
"line_no": [
219,
219
]
} | int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
int ret;
int user_packet = !!avpkt->data;
int ... | [
"int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx,\nAVPacket *avpkt,\nconst AVFrame *frame,\nint *got_packet_ptr)\n{",
"int ret;",
"int user_packet = !!avpkt->data;",
"int nb_samples;",
"*got_packet_ptr = 0;",
"if (!(avctx->codec->capabilities & CODEC_CAP_DELAY) && !frame) {",
"av_free_packet(avpkt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51,
53
],
[... |
26,349 | static void fsl_imx6_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = fsl_imx6_realize;
dc->desc = "i.MX6 SOC";
}
| true | qemu | 70fbd3c4bf9850fce733eea2c910c397905fb9a3 | static void fsl_imx6_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = fsl_imx6_realize;
dc->desc = "i.MX6 SOC";
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = fsl_imx6_realize;
dc->desc = "i.MX6 SOC";
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = fsl_imx6_realize;",
"dc->desc = \"i.MX6 SOC\";",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
26,350 | static void test_endianness_split(gconstpointer data)
{
const TestCase *test = data;
char *args;
args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
test->machine,
test->superio ? " -device " : "",
tes... | true | qemu | 2ad645d2854746b55ddfd1d8e951f689cca5d78f | static void test_endianness_split(gconstpointer data)
{
const TestCase *test = data;
char *args;
args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
test->machine,
test->superio ? " -device " : "",
tes... | {
"code": [
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",",
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",",
" args = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\","
],
"line_no": [
11,
11,
11
]
} | static void FUNC_0(gconstpointer VAR_0)
{
const TestCase *VAR_1 = VAR_0;
char *VAR_2;
VAR_2 = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
VAR_1->machine,
VAR_1->superio ? " -device " : "",
VAR_1->supe... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"const TestCase *VAR_1 = VAR_0;",
"char *VAR_2;",
"VAR_2 = g_strdup_printf(\"-display none -M %s%s%s -device pc-testdev\",\nVAR_1->machine,\nVAR_1->superio ? \" -device \" : \"\",\nVAR_1->superio ?: \"\");",
"qtest_start(VAR_2);",
"isa_outl(VAR_1, 0xe8, 0x8765... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
26,351 | static void test_qemu_strtoull_whitespace(void)
{
const char *str = " \t ";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(endptr == str... | true | qemu | 47d4be12c3997343e436c6cca89aefbbbeb70863 | static void test_qemu_strtoull_whitespace(void)
{
const char *str = " \t ";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(endptr == str... | {
"code": [
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, 0);",
" g_assert(endptr == str);",
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, 0);",
" g_assert(endptr == str);",
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, ... | static void FUNC_0(void)
{
const char *VAR_0 = " \t ";
char VAR_1 = 'X';
const char *VAR_2 = &VAR_1;
uint64_t res = 999;
int VAR_3;
VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res);
g_assert_cmpint(VAR_3, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(VAR_2 == VAR_0);
}
| [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = \" \\t \";",
"char VAR_1 = 'X';",
"const char *VAR_2 = &VAR_1;",
"uint64_t res = 999;",
"int VAR_3;",
"VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res);",
"g_assert_cmpint(VAR_3, ==, 0);",
"g_assert_cmpint(res, ==, 0);",
"g_assert(VAR_2 == VAR_0);... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
26,352 | static int matroska_parse_frame(MatroskaDemuxContext *matroska,
MatroskaTrack *track, AVStream *st,
uint8_t *data, int pkt_size,
uint64_t timecode, uint64_t duration,
int64_t pos, int is_k... | true | FFmpeg | 3c1199c3c4cbdb4ffff0de89f06d5a08acefe356 | static int matroska_parse_frame(MatroskaDemuxContext *matroska,
MatroskaTrack *track, AVStream *st,
uint8_t *data, int pkt_size,
uint64_t timecode, uint64_t duration,
int64_t pos, int is_k... | {
"code": [],
"line_no": []
} | static int FUNC_0(MatroskaDemuxContext *VAR_0,
MatroskaTrack *VAR_1, AVStream *VAR_2,
uint8_t *VAR_3, int VAR_4,
uint64_t VAR_5, uint64_t VAR_6,
int64_t VAR_7, int VAR_8)
{
MatroskaT... | [
"static int FUNC_0(MatroskaDemuxContext *VAR_0,\nMatroskaTrack *VAR_1, AVStream *VAR_2,\nuint8_t *VAR_3, int VAR_4,\nuint64_t VAR_5, uint64_t VAR_6,\nint64_t VAR_7, int VAR_8)\n{",
"MatroskaTrackEncoding *encodings = VAR_1->encodings.elem;",
"uint8_t *pkt_data = VAR_3;",
"int VAR_9 = 0, VAR_10;",
"AVPacket ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51,... |
26,353 | void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size)
{
if(min_size < *size)
return ptr;
*size= 17*min_size/16 + 32;
return av_realloc(ptr, *size);
}
| true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size)
{
if(min_size < *size)
return ptr;
*size= 17*min_size/16 + 32;
return av_realloc(ptr, *size);
}
| {
"code": [
" *size= 17*min_size/16 + 32;"
],
"line_no": [
11
]
} | void *FUNC_0(void *VAR_0, unsigned int *VAR_1, unsigned int VAR_2)
{
if(VAR_2 < *VAR_1)
return VAR_0;
*VAR_1= 17*VAR_2/16 + 32;
return av_realloc(VAR_0, *VAR_1);
}
| [
"void *FUNC_0(void *VAR_0, unsigned int *VAR_1, unsigned int VAR_2)\n{",
"if(VAR_2 < *VAR_1)\nreturn VAR_0;",
"*VAR_1= 17*VAR_2/16 + 32;",
"return av_realloc(VAR_0, *VAR_1);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
15
],
[
17
]
] |
26,354 | static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt, int *serial)
{
int got_picture;
if (packet_queue_get(&is->videoq, pkt, 1, serial) < 0)
return -1;
if (pkt->data == flush_pkt.data) {
avcodec_flush_buffers(is->video_st->codec);
SDL_Lo... | false | FFmpeg | 26c208cf0ff59efd7786528884a64d35fc42e9bf | static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacket *pkt, int *serial)
{
int got_picture;
if (packet_queue_get(&is->videoq, pkt, 1, serial) < 0)
return -1;
if (pkt->data == flush_pkt.data) {
avcodec_flush_buffers(is->video_st->codec);
SDL_Lo... | {
"code": [],
"line_no": []
} | static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, int64_t *VAR_2, AVPacket *VAR_3, int *VAR_4)
{
int VAR_5;
if (packet_queue_get(&VAR_0->videoq, VAR_3, 1, VAR_4) < 0)
return -1;
if (VAR_3->data == flush_pkt.data) {
avcodec_flush_buffers(VAR_0->video_st->codec);
SDL_Lo... | [
"static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, int64_t *VAR_2, AVPacket *VAR_3, int *VAR_4)\n{",
"int VAR_5;",
"if (packet_queue_get(&VAR_0->videoq, VAR_3, 1, VAR_4) < 0)\nreturn -1;",
"if (VAR_3->data == flush_pkt.data) {",
"avcodec_flush_buffers(VAR_0->video_st->codec);",
"SDL_LockMutex(VAR_0->pi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51,
53
],
[
57... |
26,355 | static void msix_mmio_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIDevice *dev = opaque;
unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
int vector = offset / PCI_MSIX_ENTRY_SIZE;
pci_set_long(dev->msix_table_page + offset, val);
... | true | qemu | 9a93b61730e3b46ef1c01ca522c6abe80ec13832 | static void msix_mmio_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIDevice *dev = opaque;
unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
int vector = offset / PCI_MSIX_ENTRY_SIZE;
pci_set_long(dev->msix_table_page + offset, val);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
PCIDevice *dev = VAR_0;
unsigned int VAR_4 = VAR_1 & (MSIX_PAGE_SIZE - 1) & ~0x3;
int VAR_5 = VAR_4 / PCI_MSIX_ENTRY_SIZE;
pci_set_long(dev->msix_table_page + VAR_4, VAR_2);
msix_h... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"PCIDevice *dev = VAR_0;",
"unsigned int VAR_4 = VAR_1 & (MSIX_PAGE_SIZE - 1) & ~0x3;",
"int VAR_5 = VAR_4 / PCI_MSIX_ENTRY_SIZE;",
"pci_set_long(dev->msix_table_page + VAR_4, VAR_2);",
"msix_handle_mask_updat... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
]
] |
26,356 | static void vfio_msix_enable(VFIOPCIDevice *vdev)
{
vfio_disable_interrupts(vdev);
vdev->msi_vectors = g_malloc0(vdev->msix->entries * sizeof(VFIOMSIVector));
vdev->interrupt = VFIO_INT_MSIX;
/*
* Some communication channels between VF & PF or PF & fw rely on the
* physical state ... | true | qemu | bdd81addf4033ce26e6cd180b060f63095f3ded9 | static void vfio_msix_enable(VFIOPCIDevice *vdev)
{
vfio_disable_interrupts(vdev);
vdev->msi_vectors = g_malloc0(vdev->msix->entries * sizeof(VFIOMSIVector));
vdev->interrupt = VFIO_INT_MSIX;
vfio_msix_vector_do_use(&vdev->pdev, 0, NULL, NULL);
vfio_msix_vec... | {
"code": [
" vdev->msi_vectors = g_malloc0(vdev->msix->entries * sizeof(VFIOMSIVector));"
],
"line_no": [
9
]
} | static void FUNC_0(VFIOPCIDevice *VAR_0)
{
vfio_disable_interrupts(VAR_0);
VAR_0->msi_vectors = g_malloc0(VAR_0->msix->entries * sizeof(VFIOMSIVector));
VAR_0->interrupt = VFIO_INT_MSIX;
vfio_msix_vector_do_use(&VAR_0->pdev, 0, NULL, NULL);
vfio_msix_vector_... | [
"static void FUNC_0(VFIOPCIDevice *VAR_0)\n{",
"vfio_disable_interrupts(VAR_0);",
"VAR_0->msi_vectors = g_malloc0(VAR_0->msix->entries * sizeof(VFIOMSIVector));",
"VAR_0->interrupt = VFIO_INT_MSIX;",
"vfio_msix_vector_do_use(&VAR_0->pdev, 0, NULL, NULL);",
"vfio_msix_vector_release(&VAR_0->pdev, 0);",
"... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
43
],
[
45
],
[
49,
51
],
[
53
],
[
55
],
[
59
],
[
61
]
] |
26,357 | static int check_bind(struct sockaddr *sa, socklen_t salen, bool *has_proto)
{
int fd;
fd = socket(sa->sa_family, SOCK_STREAM, 0);
if (fd < 0) {
return -1;
}
if (bind(fd, sa, salen) < 0) {
close(fd);
if (errno == EADDRNOTAVAIL) {
*has_proto = false;
... | true | qemu | cfd47a71df51047833d182e9e97244e7816b57da | static int check_bind(struct sockaddr *sa, socklen_t salen, bool *has_proto)
{
int fd;
fd = socket(sa->sa_family, SOCK_STREAM, 0);
if (fd < 0) {
return -1;
}
if (bind(fd, sa, salen) < 0) {
close(fd);
if (errno == EADDRNOTAVAIL) {
*has_proto = false;
... | {
"code": [
"static int check_bind(struct sockaddr *sa, socklen_t salen, bool *has_proto)",
" int fd;",
" fd = socket(sa->sa_family, SOCK_STREAM, 0);",
" return -1;",
" if (bind(fd, sa, salen) < 0) {",
" close(fd);",
" return 0;",
" return -1;",... | static int FUNC_0(struct sockaddr *VAR_0, socklen_t VAR_1, bool *VAR_2)
{
int VAR_3;
VAR_3 = socket(VAR_0->sa_family, SOCK_STREAM, 0);
if (VAR_3 < 0) {
return -1;
}
if (bind(VAR_3, VAR_0, VAR_1) < 0) {
close(VAR_3);
if (errno == EADDRNOTAVAIL) {
*VAR... | [
"static int FUNC_0(struct sockaddr *VAR_0, socklen_t VAR_1, bool *VAR_2)\n{",
"int VAR_3;",
"VAR_3 = socket(VAR_0->sa_family, SOCK_STREAM, 0);",
"if (VAR_3 < 0) {",
"return -1;",
"}",
"if (bind(VAR_3, VAR_0, VAR_1) < 0) {",
"close(VAR_3);",
"if (errno == EADDRNOTAVAIL) {",
"*VAR_2 = false;",
"re... | [
1,
1,
1,
0,
1,
0,
1,
1,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
26,358 | int ff_fft_init(FFTContext *s, int nbits, int inverse)
{
int i, j, m, n;
float alpha, c1, s1, s2;
int shuffle = 0;
int av_unused has_vectors;
s->nbits = nbits;
n = 1 << nbits;
s->exptab = av_malloc((n / 2) * sizeof(FFTComplex));
if (!s->exptab)
goto fail;
s->re... | true | FFmpeg | b9fa32082c71013e90eab9e9997967d2939cf4a6 | int ff_fft_init(FFTContext *s, int nbits, int inverse)
{
int i, j, m, n;
float alpha, c1, s1, s2;
int shuffle = 0;
int av_unused has_vectors;
s->nbits = nbits;
n = 1 << nbits;
s->exptab = av_malloc((n / 2) * sizeof(FFTComplex));
if (!s->exptab)
goto fail;
s->re... | {
"code": [],
"line_no": []
} | int FUNC_0(FFTContext *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
float VAR_7, VAR_8, VAR_9, VAR_10;
int VAR_11 = 0;
int VAR_12 has_vectors;
VAR_0->VAR_1 = VAR_1;
VAR_6 = 1 << VAR_1;
VAR_0->exptab = av_malloc((VAR_6 / 2) * sizeof(FFTComplex));
if (!VAR_0-... | [
"int FUNC_0(FFTContext *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"float VAR_7, VAR_8, VAR_9, VAR_10;",
"int VAR_11 = 0;",
"int VAR_12 has_vectors;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_6 = 1 << VAR_1;",
"VAR_0->exptab = av_malloc((VAR_6 / 2) * sizeof(FFTComplex));",
"if (!VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
26,359 | static void write_mainheader(NUTContext *nut, AVIOContext *bc)
{
int i, j, tmp_pts, tmp_flags, tmp_stream, tmp_mul, tmp_size, tmp_fields,
tmp_head_idx;
int64_t tmp_match;
ff_put_v(bc, nut->version);
if (nut->version > 3)
ff_put_v(bc, nut->minor_version);
ff_put_v(bc, nut->a... | false | FFmpeg | 45daae06fd6f05baddb897686a6fa90cda3abb49 | static void write_mainheader(NUTContext *nut, AVIOContext *bc)
{
int i, j, tmp_pts, tmp_flags, tmp_stream, tmp_mul, tmp_size, tmp_fields,
tmp_head_idx;
int64_t tmp_match;
ff_put_v(bc, nut->version);
if (nut->version > 3)
ff_put_v(bc, nut->minor_version);
ff_put_v(bc, nut->a... | {
"code": [],
"line_no": []
} | static void FUNC_0(NUTContext *VAR_0, AVIOContext *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9,
VAR_10;
int64_t tmp_match;
ff_put_v(VAR_1, VAR_0->version);
if (VAR_0->version > 3)
ff_put_v(VAR_1, VAR_0->minor_version);
ff_put_v(VAR_1, VAR_0->avf->nb_... | [
"static void FUNC_0(NUTContext *VAR_0, AVIOContext *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9,\nVAR_10;",
"int64_t tmp_match;",
"ff_put_v(VAR_1, VAR_0->version);",
"if (VAR_0->version > 3)\nff_put_v(VAR_1, VAR_0->minor_version);",
"ff_put_v(VAR_1, VAR_0->avf->nb_streams);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
26,361 | static void mmubooke_create_initial_mapping(CPUPPCState *env,
target_ulong va,
hwaddr pa)
{
ppcemb_tlb_t *tlb = &env->tlb.tlbe[0];
tlb->attr = 0;
tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4);
tlb->... | true | qemu | a1f7f97b950a46393b0e55a9a0082e70f540cbbd | static void mmubooke_create_initial_mapping(CPUPPCState *env,
target_ulong va,
hwaddr pa)
{
ppcemb_tlb_t *tlb = &env->tlb.tlbe[0];
tlb->attr = 0;
tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4);
tlb->... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUPPCState *VAR_0,
target_ulong VAR_1,
hwaddr VAR_2)
{
ppcemb_tlb_t *tlb = &VAR_0->tlb.tlbe[0];
tlb->attr = 0;
tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4);
tlb->size = 1 << 31;... | [
"static void FUNC_0(CPUPPCState *VAR_0,\ntarget_ulong VAR_1,\nhwaddr VAR_2)\n{",
"ppcemb_tlb_t *tlb = &VAR_0->tlb.tlbe[0];",
"tlb->attr = 0;",
"tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4);",
"tlb->size = 1 << 31;",
"tlb->EPN = VAR_1 & TARGET_PAGE_MASK;",
"tlb->RPN = VAR_2 & TARG... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
26,362 | struct pxa2xx_pcmcia_s *pxa2xx_pcmcia_init(target_phys_addr_t base)
{
int iomemtype;
struct pxa2xx_pcmcia_s *s;
s = (struct pxa2xx_pcmcia_s *)
qemu_mallocz(sizeof(struct pxa2xx_pcmcia_s));
/* Socket I/O Memory Space */
s->io_base = base | 0x00000000;
iomemtype = cpu_regis... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | struct pxa2xx_pcmcia_s *pxa2xx_pcmcia_init(target_phys_addr_t base)
{
int iomemtype;
struct pxa2xx_pcmcia_s *s;
s = (struct pxa2xx_pcmcia_s *)
qemu_mallocz(sizeof(struct pxa2xx_pcmcia_s));
s->io_base = base | 0x00000000;
iomemtype = cpu_register_io_memory(0, pxa2xx_pcmci... | {
"code": [
" cpu_register_physical_memory(s->io_base, 0x03ffffff, iomemtype);",
" cpu_register_physical_memory(s->attr_base, 0x03ffffff, iomemtype);",
" cpu_register_physical_memory(s->common_base, 0x03ffffff, iomemtype);"
],
"line_no": [
25,
41,
53
]
} | struct pxa2xx_pcmcia_s *FUNC_0(target_phys_addr_t VAR_0)
{
int VAR_1;
struct pxa2xx_pcmcia_s *VAR_2;
VAR_2 = (struct pxa2xx_pcmcia_s *)
qemu_mallocz(sizeof(struct pxa2xx_pcmcia_s));
VAR_2->io_base = VAR_0 | 0x00000000;
VAR_1 = cpu_register_io_memory(0, pxa2xx_pcmcia_io_r... | [
"struct pxa2xx_pcmcia_s *FUNC_0(target_phys_addr_t VAR_0)\n{",
"int VAR_1;",
"struct pxa2xx_pcmcia_s *VAR_2;",
"VAR_2 = (struct pxa2xx_pcmcia_s *)\nqemu_mallocz(sizeof(struct pxa2xx_pcmcia_s));",
"VAR_2->io_base = VAR_0 | 0x00000000;",
"VAR_1 = cpu_register_io_memory(0, pxa2xx_pcmcia_io_readfn,\npxa2xx_pc... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
19
],
[
21,
23
],
[
25
],
[
35
],
[
37,
39
],
[
41
],
[
47
],
[
49,
51
],
[
53
],
[
57,
59
],
[
61,
63
],
[
65
],
[
67... |
26,363 | static int mov_text_decode_frame(AVCodecContext *avctx,
void *data, int *got_sub_ptr, AVPacket *avpkt)
{
AVSubtitle *sub = data;
MovTextContext *m = avctx->priv_data;
int ret;
AVBPrint buf;
char *ptr = avpkt->data;
char *end;
int text_length, tsmb_type, ret_tsmb;
... | true | FFmpeg | bac9c03ed9328c63aba46e280ba408431b53fcb4 | static int mov_text_decode_frame(AVCodecContext *avctx,
void *data, int *got_sub_ptr, AVPacket *avpkt)
{
AVSubtitle *sub = data;
MovTextContext *m = avctx->priv_data;
int ret;
AVBPrint buf;
char *ptr = avpkt->data;
char *end;
int text_length, tsmb_type, ret_tsmb;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2, AVPacket *VAR_3)
{
AVSubtitle *sub = VAR_1;
MovTextContext *m = VAR_0->priv_data;
int VAR_4;
AVBPrint buf;
char *VAR_5 = VAR_3->VAR_1;
char *VAR_6;
int VAR_7, VAR_8, VAR_9;
uint64_t tsmb_size;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{",
"AVSubtitle *sub = VAR_1;",
"MovTextContext *m = VAR_0->priv_data;",
"int VAR_4;",
"AVBPrint buf;",
"char *VAR_5 = VAR_3->VAR_1;",
"char *VAR_6;",
"int VAR_7, VAR_8, VAR_9;",
"uint64_t tsmb_size;",
"const uin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
22,
23
],
[
29
],
[
30
],
[
31
],
[
32
],
[
33
],
[
34
],
[
... |
26,364 | static int ra144_decode_frame(AVCodecContext * avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
static const uint8_t sizes[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
... | true | FFmpeg | 53c0c637d36c1de9ea461a8d863e8703da090894 | static int ra144_decode_frame(AVCodecContext * avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
static const uint8_t sizes[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
... | {
"code": [
" *samples++ = av_clip_int16(ractx->curr_sblock[j + 10] << 2);"
],
"line_no": [
109
]
} | static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
static const uint8_t VAR_6[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
unsigned int VA... | [
"static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"static const uint8_t VAR_6[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};",
"unsigned int VAR_7[NBLOCKS];",
"int16_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
... |
26,365 | static void iscsi_timed_set_events(void *opaque)
{
IscsiLun *iscsilun = opaque;
iscsi_set_events(iscsilun);
}
| true | qemu | 5dd7a535b71a0f2f8e7af75c5d694174359ce323 | static void iscsi_timed_set_events(void *opaque)
{
IscsiLun *iscsilun = opaque;
iscsi_set_events(iscsilun);
}
| {
"code": [
"static void iscsi_timed_set_events(void *opaque)"
],
"line_no": [
1
]
} | static void FUNC_0(void *VAR_0)
{
IscsiLun *iscsilun = VAR_0;
iscsi_set_events(iscsilun);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"IscsiLun *iscsilun = VAR_0;",
"iscsi_set_events(iscsilun);",
"}"
] | [
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,366 | void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
int flags)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
int i;
cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx
" LO=0x" TARGET_FMT_lx " ds %04x "
... | true | qemu | b307446e04232b3a87e9da04886895a8e5a4a407 | void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
int flags)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
int i;
cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx
" LO=0x" TARGET_FMT_lx " ds %04x "
... | {
"code": [
"#if defined(TARGET_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS)",
" int i;",
" for (i = 0; i < 32; i++) {",
"#endif",
"#if defined(TARGET_MIPS64) && defined(MIPS_DEBUG_SIGN_EXTENSIONS)",
" cpu_mips_check_sign_extensions(env, f, cpu_fprintf, flags);",
"#endif"
],
... | void FUNC_0(CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,
int VAR_3)
{
MIPSCPU *cpu = MIPS_CPU(VAR_0);
CPUMIPSState *env = &cpu->env;
int VAR_4;
VAR_2(VAR_1, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx
" LO=0x" TARGET_FMT_lx " ds %04x "
... | [
"void FUNC_0(CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,\nint VAR_3)\n{",
"MIPSCPU *cpu = MIPS_CPU(VAR_0);",
"CPUMIPSState *env = &cpu->env;",
"int VAR_4;",
"VAR_2(VAR_1, \"pc=0x\" TARGET_FMT_lx \" HI=0x\" TARGET_FMT_lx\n\" LO=0x\" TARGET_FMT_lx \" ds %04x \"\nTARGET_FMT_lx \" \" TARGET_FMT_ld \"\... | [
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19,
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
41,
43
],
[
45,
47,
49
],
[
51,
53
],
[
55,
57
... |
26,369 | static gboolean serial_xmit(GIOChannel *chan, GIOCondition cond, void *opaque)
{
SerialState *s = opaque;
do {
if (s->tsr_retry <= 0) {
if (s->fcr & UART_FCR_FE) {
if (fifo8_is_empty(&s->xmit_fifo)) {
return FALSE;
}
... | true | qemu | 0d931d706266d6ada3bf22d3afca1afdc8d12fa9 | static gboolean serial_xmit(GIOChannel *chan, GIOCondition cond, void *opaque)
{
SerialState *s = opaque;
do {
if (s->tsr_retry <= 0) {
if (s->fcr & UART_FCR_FE) {
if (fifo8_is_empty(&s->xmit_fifo)) {
return FALSE;
}
... | {
"code": [
" if (fifo8_is_empty(&s->xmit_fifo)) {",
" return FALSE;",
" } else if ((s->lsr & UART_LSR_THRE)) {",
" return FALSE;",
" s->lsr &= ~UART_LSR_TEMT;",
" } while ((s->fcr & UART_FCR_FE) && !fifo8_is_empty(&... | static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)
{
SerialState *s = opaque;
do {
if (s->tsr_retry <= 0) {
if (s->fcr & UART_FCR_FE) {
if (fifo8_is_empty(&s->xmit_fifo)) {
return FALSE;
}
s... | [
"static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)\n{",
"SerialState *s = opaque;",
"do {",
"if (s->tsr_retry <= 0) {",
"if (s->fcr & UART_FCR_FE) {",
"if (fifo8_is_empty(&s->xmit_fifo)) {",
"return FALSE;",
"}",
"s->tsr = fifo8_pop(&s->xmit_fifo);",
"if (!s->xmit_fifo.num)... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
26,370 | static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
{
v->res_rtm_flag = 1;
v->level = get_bits(gb, 3);
if (v->level >= 5) {
av_log(v->s.avctx, AV_LOG_ERROR, "Reserved LEVEL %i\n",v->level);
}
v->chromaformat = get_bits(gb, 2);
if (v->chromaformat != 1) {
... | false | FFmpeg | 95b192de5d05f3e1542e7b2378cdefbc195f5185 | static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
{
v->res_rtm_flag = 1;
v->level = get_bits(gb, 3);
if (v->level >= 5) {
av_log(v->s.avctx, AV_LOG_ERROR, "Reserved LEVEL %i\n",v->level);
}
v->chromaformat = get_bits(gb, 2);
if (v->chromaformat != 1) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VC1Context *VAR_0, GetBitContext *VAR_1)
{
VAR_0->res_rtm_flag = 1;
VAR_0->level = get_bits(VAR_1, 3);
if (VAR_0->level >= 5) {
av_log(VAR_0->s.avctx, AV_LOG_ERROR, "Reserved LEVEL %VAR_7\n",VAR_0->level);
}
VAR_0->chromaformat = get_bits(VAR_1, 2);
if (VAR_0->c... | [
"static int FUNC_0(VC1Context *VAR_0, GetBitContext *VAR_1)\n{",
"VAR_0->res_rtm_flag = 1;",
"VAR_0->level = get_bits(VAR_1, 3);",
"if (VAR_0->level >= 5) {",
"av_log(VAR_0->s.avctx, AV_LOG_ERROR, \"Reserved LEVEL %VAR_7\\n\",VAR_0->level);",
"}",
"VAR_0->chromaformat = get_bits(VAR_1, 2);",
"if (VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.