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 |
|---|---|---|---|---|---|---|---|---|---|---|
19,497 | static void v9fs_getlock(void *opaque)
{
size_t offset = 7;
struct stat stbuf;
V9fsFidState *fidp;
V9fsGetlock *glock;
int32_t fid, err = 0;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
glock = g_malloc(sizeof(*glock));
pdu_unmarshal(pdu, offset, "dbqqds", &fid, &glock->... | false | qemu | ddca7f86ac022289840e0200fd4050b2b58e9176 | static void v9fs_getlock(void *opaque)
{
size_t offset = 7;
struct stat stbuf;
V9fsFidState *fidp;
V9fsGetlock *glock;
int32_t fid, err = 0;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
glock = g_malloc(sizeof(*glock));
pdu_unmarshal(pdu, offset, "dbqqds", &fid, &glock->... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
size_t offset = 7;
struct stat VAR_1;
V9fsFidState *fidp;
V9fsGetlock *glock;
int32_t fid, err = 0;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
glock = g_malloc(sizeof(*glock));
pdu_unmarshal(pdu, offset, "dbqqds", &fid, &glock->type,
... | [
"static void FUNC_0(void *VAR_0)\n{",
"size_t offset = 7;",
"struct stat VAR_1;",
"V9fsFidState *fidp;",
"V9fsGetlock *glock;",
"int32_t fid, err = 0;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"glock = g_malloc(sizeof(*glock));",
"pdu_unmarshal(pdu, offset, \"dbqqds\", &fid, &glock->typ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
19,498 | void stb_phys(target_phys_addr_t addr, uint32_t val)
{
uint8_t v = val;
cpu_physical_memory_write(addr, &v, 1);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | void stb_phys(target_phys_addr_t addr, uint32_t val)
{
uint8_t v = val;
cpu_physical_memory_write(addr, &v, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1)
{
uint8_t v = VAR_1;
cpu_physical_memory_write(VAR_0, &v, 1);
}
| [
"void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1)\n{",
"uint8_t v = VAR_1;",
"cpu_physical_memory_write(VAR_0, &v, 1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
19,499 | void error_set(Error **errp, const char *fmt, ...)
{
Error *err;
va_list ap;
if (errp == NULL) {
return;
}
assert(*errp == NULL);
err = g_malloc0(sizeof(*err));
va_start(ap, fmt);
err->obj = qobject_to_qdict(qobject_from_jsonv(fmt, &ap));
va_end(ap);
err... | false | qemu | 13f59ae8157e8ec238fa8aefe5309909a1eeb7e2 | void error_set(Error **errp, const char *fmt, ...)
{
Error *err;
va_list ap;
if (errp == NULL) {
return;
}
assert(*errp == NULL);
err = g_malloc0(sizeof(*err));
va_start(ap, fmt);
err->obj = qobject_to_qdict(qobject_from_jsonv(fmt, &ap));
va_end(ap);
err... | {
"code": [],
"line_no": []
} | void FUNC_0(Error **VAR_0, const char *VAR_1, ...)
{
Error *err;
va_list ap;
if (VAR_0 == NULL) {
return;
}
assert(*VAR_0 == NULL);
err = g_malloc0(sizeof(*err));
va_start(ap, VAR_1);
err->obj = qobject_to_qdict(qobject_from_jsonv(VAR_1, &ap));
va_end(ap);
... | [
"void FUNC_0(Error **VAR_0, const char *VAR_1, ...)\n{",
"Error *err;",
"va_list ap;",
"if (VAR_0 == NULL) {",
"return;",
"}",
"assert(*VAR_0 == NULL);",
"err = g_malloc0(sizeof(*err));",
"va_start(ap, VAR_1);",
"err->obj = qobject_to_qdict(qobject_from_jsonv(VAR_1, &ap));",
"va_end(ap);",
"er... | [
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
],
[
35
],
[
37
]
] |
19,500 | static void term_handle_command(const char *cmdline)
{
const char *p, *pstart, *typestr;
char *q;
int c, nb_args, len, i, has_arg;
term_cmd_t *cmd;
char cmdname[256];
char buf[1024];
void *str_allocated[MAX_ARGS];
void *args[MAX_ARGS];
#ifdef DEBUG
term_printf("command='... | false | qemu | 7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1 | static void term_handle_command(const char *cmdline)
{
const char *p, *pstart, *typestr;
char *q;
int c, nb_args, len, i, has_arg;
term_cmd_t *cmd;
char cmdname[256];
char buf[1024];
void *str_allocated[MAX_ARGS];
void *args[MAX_ARGS];
#ifdef DEBUG
term_printf("command='... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
const char *VAR_1, *VAR_2, *VAR_3;
char *VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
term_cmd_t *cmd;
char VAR_10[256];
char VAR_11[1024];
void *VAR_12[MAX_ARGS];
void *VAR_13[MAX_ARGS];
#ifdef DEBUG
term_printf("command='%s'\n",... | [
"static void FUNC_0(const char *VAR_0)\n{",
"const char *VAR_1, *VAR_2, *VAR_3;",
"char *VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"term_cmd_t *cmd;",
"char VAR_10[256];",
"char VAR_11[1024];",
"void *VAR_12[MAX_ARGS];",
"void *VAR_13[MAX_ARGS];",
"#ifdef DEBUG\nterm_printf(\"command='%s'... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27,
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51
],
[... |
19,501 | static inline void gen_op_eval_bleu(TCGv dst, TCGv_i32 src)
{
gen_mov_reg_Z(cpu_tmp0, src);
gen_mov_reg_C(dst, src);
tcg_gen_or_tl(dst, dst, cpu_tmp0);
}
| false | qemu | de9e9d9f17a36ff76c1a02a5348835e5e0a081b0 | static inline void gen_op_eval_bleu(TCGv dst, TCGv_i32 src)
{
gen_mov_reg_Z(cpu_tmp0, src);
gen_mov_reg_C(dst, src);
tcg_gen_or_tl(dst, dst, cpu_tmp0);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1)
{
gen_mov_reg_Z(cpu_tmp0, VAR_1);
gen_mov_reg_C(VAR_0, VAR_1);
tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);
}
| [
"static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1)\n{",
"gen_mov_reg_Z(cpu_tmp0, VAR_1);",
"gen_mov_reg_C(VAR_0, VAR_1);",
"tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
19,502 | static void usb_host_auto_check(void *unused)
{
struct USBHostDevice *s;
int unconnected = 0;
usb_host_scan(NULL, usb_host_auto_scan);
QTAILQ_FOREACH(s, &hostdevs, next) {
if (s->fd == -1) {
unconnected++;
}
}
if (unconnected == 0) {
/* nothin... | false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | static void usb_host_auto_check(void *unused)
{
struct USBHostDevice *s;
int unconnected = 0;
usb_host_scan(NULL, usb_host_auto_scan);
QTAILQ_FOREACH(s, &hostdevs, next) {
if (s->fd == -1) {
unconnected++;
}
}
if (unconnected == 0) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
struct USBHostDevice *VAR_1;
int VAR_2 = 0;
usb_host_scan(NULL, usb_host_auto_scan);
QTAILQ_FOREACH(VAR_1, &hostdevs, next) {
if (VAR_1->fd == -1) {
VAR_2++;
}
}
if (VAR_2 == 0) {
if (usb_auto_timer)... | [
"static void FUNC_0(void *VAR_0)\n{",
"struct USBHostDevice *VAR_1;",
"int VAR_2 = 0;",
"usb_host_scan(NULL, usb_host_auto_scan);",
"QTAILQ_FOREACH(VAR_1, &hostdevs, next) {",
"if (VAR_1->fd == -1) {",
"VAR_2++;",
"}",
"}",
"if (VAR_2 == 0) {",
"if (usb_auto_timer) {",
"qemu_del_timer(usb_auto... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
19,503 | int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transform, int ilv){
int i, t = 0;
uint8_t *zero, *last, *cur;
JLSState *state;
int off = 0, stride = 1, width, shift;
zero = av_mallocz(s->picture.linesize[0]);
last = zero;
cur = s->picture.data[0];
sta... | false | FFmpeg | 4acfe3d193c741126bd7f5c1a32a911e00595ecc | int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transform, int ilv){
int i, t = 0;
uint8_t *zero, *last, *cur;
JLSState *state;
int off = 0, stride = 1, width, shift;
zero = av_mallocz(s->picture.linesize[0]);
last = zero;
cur = s->picture.data[0];
sta... | {
"code": [],
"line_no": []
} | int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){
int VAR_4, VAR_5 = 0;
uint8_t *zero, *last, *cur;
JLSState *state;
int VAR_6 = 0, VAR_7 = 1, VAR_8, VAR_9;
zero = av_mallocz(VAR_0->picture.linesize[0]);
last = zero;
cur = VAR_0->picture.data[0];
state =... | [
"int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){",
"int VAR_4, VAR_5 = 0;",
"uint8_t *zero, *last, *cur;",
"JLSState *state;",
"int VAR_6 = 0, VAR_7 = 1, VAR_8, VAR_9;",
"zero = av_mallocz(VAR_0->picture.linesize[0]);",
"last = zero;",
"cur = VAR_0->picture.data[0];",
"state ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49,... |
19,505 | void tcg_gen_brcondi_i32(TCGCond cond, TCGv_i32 arg1, int32_t arg2, int label)
{
TCGv_i32 t0 = tcg_const_i32(arg2);
tcg_gen_brcond_i32(cond, arg1, t0, label);
tcg_temp_free_i32(t0);
}
| false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | void tcg_gen_brcondi_i32(TCGCond cond, TCGv_i32 arg1, int32_t arg2, int label)
{
TCGv_i32 t0 = tcg_const_i32(arg2);
tcg_gen_brcond_i32(cond, arg1, t0, label);
tcg_temp_free_i32(t0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(TCGCond VAR_0, TCGv_i32 VAR_1, int32_t VAR_2, int VAR_3)
{
TCGv_i32 t0 = tcg_const_i32(VAR_2);
tcg_gen_brcond_i32(VAR_0, VAR_1, t0, VAR_3);
tcg_temp_free_i32(t0);
}
| [
"void FUNC_0(TCGCond VAR_0, TCGv_i32 VAR_1, int32_t VAR_2, int VAR_3)\n{",
"TCGv_i32 t0 = tcg_const_i32(VAR_2);",
"tcg_gen_brcond_i32(VAR_0, VAR_1, t0, VAR_3);",
"tcg_temp_free_i32(t0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
19,506 | void s390x_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
MMUAccessType access_type,
int mmu_idx, uintptr_t retaddr)
{
S390CPU *cpu = S390_CPU(cs);
CPUS390XState *env = &cpu->env;
if (retaddr) {
cpu_restore_state(cs, r... | false | qemu | becf8217deb2afc347d5172d9f30c8a8964b8b27 | void s390x_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
MMUAccessType access_type,
int mmu_idx, uintptr_t retaddr)
{
S390CPU *cpu = S390_CPU(cs);
CPUS390XState *env = &cpu->env;
if (retaddr) {
cpu_restore_state(cs, r... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, vaddr VAR_1,
MMUAccessType VAR_2,
int VAR_3, uintptr_t VAR_4)
{
S390CPU *cpu = S390_CPU(VAR_0);
CPUS390XState *env = &cpu->env;
if (VAR_4) {
cpu_restore_state(VAR_0, VAR_4);
}
progra... | [
"void FUNC_0(CPUState *VAR_0, vaddr VAR_1,\nMMUAccessType VAR_2,\nint VAR_3, uintptr_t VAR_4)\n{",
"S390CPU *cpu = S390_CPU(VAR_0);",
"CPUS390XState *env = &cpu->env;",
"if (VAR_4) {",
"cpu_restore_state(VAR_0, VAR_4);",
"}",
"program_interrupt(env, PGM_SPECIFICATION, ILEN_LATER);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
19,507 | static void q35_host_get_pci_hole_start(Object *obj, Visitor *v,
const char *name, void *opaque,
Error **errp)
{
Q35PCIHost *s = Q35_HOST_DEVICE(obj);
uint32_t value = s->mch.pci_hole.begin;
visit_type_uint32(v, name, &v... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | static void q35_host_get_pci_hole_start(Object *obj, Visitor *v,
const char *name, void *opaque,
Error **errp)
{
Q35PCIHost *s = Q35_HOST_DEVICE(obj);
uint32_t value = s->mch.pci_hole.begin;
visit_type_uint32(v, name, &v... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1,
const char *VAR_2, void *VAR_3,
Error **VAR_4)
{
Q35PCIHost *s = Q35_HOST_DEVICE(VAR_0);
uint32_t value = s->mch.pci_hole.begin;
visit_type_uint32(VAR_1, VAR_2, &value, V... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1,\nconst char *VAR_2, void *VAR_3,\nError **VAR_4)\n{",
"Q35PCIHost *s = Q35_HOST_DEVICE(VAR_0);",
"uint32_t value = s->mch.pci_hole.begin;",
"visit_type_uint32(VAR_1, VAR_2, &value, VAR_4);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
19,508 | static int kvm_max_vcpus(KVMState *s)
{
int ret;
/* Find number of supported CPUs using the recommended
* procedure from the kernel API documentation to cope with
* older kernels that may be missing capabilities.
*/
ret = kvm_check_extension(s, KVM_CAP_MAX_VCPUS);
if (ret) {
... | false | qemu | 670436ced08738802e15764039d03ab0dbab2bf3 | static int kvm_max_vcpus(KVMState *s)
{
int ret;
ret = kvm_check_extension(s, KVM_CAP_MAX_VCPUS);
if (ret) {
return ret;
}
ret = kvm_check_extension(s, KVM_CAP_NR_VCPUS);
if (ret) {
return ret;
}
return 4;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(KVMState *VAR_0)
{
int VAR_1;
VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_MAX_VCPUS);
if (VAR_1) {
return VAR_1;
}
VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_NR_VCPUS);
if (VAR_1) {
return VAR_1;
}
return 4;
}
| [
"static int FUNC_0(KVMState *VAR_0)\n{",
"int VAR_1;",
"VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_MAX_VCPUS);",
"if (VAR_1) {",
"return VAR_1;",
"}",
"VAR_1 = kvm_check_extension(VAR_0, KVM_CAP_NR_VCPUS);",
"if (VAR_1) {",
"return VAR_1;",
"}",
"return 4;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
19,509 | static int cpu_load_old(QEMUFile *f, void *opaque, int version_id)
{
PowerPCCPU *cpu = opaque;
CPUPPCState *env = &cpu->env;
unsigned int i, j;
target_ulong sdr1;
uint32_t fpscr;
target_ulong xer;
for (i = 0; i < 32; i++)
qemu_get_betls(f, &env->gpr[i]);
#if !defined(TARG... | false | qemu | e57ca75ce3b2bd33102573a8c0555d62e1bcfceb | static int cpu_load_old(QEMUFile *f, void *opaque, int version_id)
{
PowerPCCPU *cpu = opaque;
CPUPPCState *env = &cpu->env;
unsigned int i, j;
target_ulong sdr1;
uint32_t fpscr;
target_ulong xer;
for (i = 0; i < 32; i++)
qemu_get_betls(f, &env->gpr[i]);
#if !defined(TARG... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{
PowerPCCPU *cpu = VAR_1;
CPUPPCState *env = &cpu->env;
unsigned int VAR_3, VAR_4;
target_ulong sdr1;
uint32_t fpscr;
target_ulong xer;
for (VAR_3 = 0; VAR_3 < 32; VAR_3++)
qemu_get_betls(VAR_0, &env->gpr[VAR_3]);... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{",
"PowerPCCPU *cpu = VAR_1;",
"CPUPPCState *env = &cpu->env;",
"unsigned int VAR_3, VAR_4;",
"target_ulong sdr1;",
"uint32_t fpscr;",
"target_ulong xer;",
"for (VAR_3 = 0; VAR_3 < 32; VAR_3++)",
"qemu_get_betls(VAR_0, &env->gpr[VAR_3]);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
19,510 | static inline uint32_t get_hwc_address(SM501State *state, int crt)
{
uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr;
return (addr & 0x03FFFFF0)/* >> 4*/;
}
| false | qemu | 6a2a5aae02b9a0b53807b9ad91f15cd4988781f9 | static inline uint32_t get_hwc_address(SM501State *state, int crt)
{
uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr;
return (addr & 0x03FFFFF0);
}
| {
"code": [],
"line_no": []
} | static inline uint32_t FUNC_0(SM501State *state, int crt)
{
uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr;
return (addr & 0x03FFFFF0);
}
| [
"static inline uint32_t FUNC_0(SM501State *state, int crt)\n{",
"uint32_t addr = crt ? state->dc_crt_hwc_addr : state->dc_panel_hwc_addr;",
"return (addr & 0x03FFFFF0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
19,511 | int do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
MigrationState *s = current_migration;
if (s)
s->cancel(s);
return 0;
}
| false | qemu | e6494061690df2af7368752f35f5c22b5856e83c | int do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
MigrationState *s = current_migration;
if (s)
s->cancel(s);
return 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{
MigrationState *s = current_migration;
if (s)
s->cancel(s);
return 0;
}
| [
"int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{",
"MigrationState *s = current_migration;",
"if (s)\ns->cancel(s);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
]
] |
19,512 | int cpu_is_bsp(CPUX86State *env)
{
/* We hard-wire the BSP to the first CPU. */
return env->cpu_index == 0;
}
| false | qemu | dd673288a8ff73ad77fcc1c255486d2466a772e1 | int cpu_is_bsp(CPUX86State *env)
{
return env->cpu_index == 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(CPUX86State *VAR_0)
{
return VAR_0->cpu_index == 0;
}
| [
"int FUNC_0(CPUX86State *VAR_0)\n{",
"return VAR_0->cpu_index == 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
]
] |
19,513 | void qerror_report(const char *fmt, ...)
{
va_list va;
QError *qerror;
va_start(va, fmt);
qerror = qerror_from_info(fmt, &va);
va_end(va);
if (monitor_cur_is_qmp()) {
monitor_set_error(cur_mon, qerror);
} else {
qerror_print(qerror);
QDECREF(qerror);
... | false | qemu | 13f59ae8157e8ec238fa8aefe5309909a1eeb7e2 | void qerror_report(const char *fmt, ...)
{
va_list va;
QError *qerror;
va_start(va, fmt);
qerror = qerror_from_info(fmt, &va);
va_end(va);
if (monitor_cur_is_qmp()) {
monitor_set_error(cur_mon, qerror);
} else {
qerror_print(qerror);
QDECREF(qerror);
... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, ...)
{
va_list va;
QError *qerror;
va_start(va, VAR_0);
qerror = qerror_from_info(VAR_0, &va);
va_end(va);
if (monitor_cur_is_qmp()) {
monitor_set_error(cur_mon, qerror);
} else {
qerror_print(qerror);
QDECREF(qerror);
... | [
"void FUNC_0(const char *VAR_0, ...)\n{",
"va_list va;",
"QError *qerror;",
"va_start(va, VAR_0);",
"qerror = qerror_from_info(VAR_0, &va);",
"va_end(va);",
"if (monitor_cur_is_qmp()) {",
"monitor_set_error(cur_mon, qerror);",
"} else {",
"qerror_print(qerror);",
"QDECREF(qerror);",
"}",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
19,514 | static void change_qscale(MpegEncContext * s, int dquant)
{
s->qscale += dquant;
if (s->qscale < 1)
s->qscale = 1;
else if (s->qscale > 31)
s->qscale = 31;
s->y_dc_scale= s->y_dc_scale_table[ s->qscale ];
s->c_dc_scale= s->c_dc_scale_table[ s->qscale ];
}
| false | FFmpeg | 332f9ac4e31ce5e6d0c42ac9e0229d7d1b2b4d60 | static void change_qscale(MpegEncContext * s, int dquant)
{
s->qscale += dquant;
if (s->qscale < 1)
s->qscale = 1;
else if (s->qscale > 31)
s->qscale = 31;
s->y_dc_scale= s->y_dc_scale_table[ s->qscale ];
s->c_dc_scale= s->c_dc_scale_table[ s->qscale ];
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext * VAR_0, int VAR_1)
{
VAR_0->qscale += VAR_1;
if (VAR_0->qscale < 1)
VAR_0->qscale = 1;
else if (VAR_0->qscale > 31)
VAR_0->qscale = 31;
VAR_0->y_dc_scale= VAR_0->y_dc_scale_table[ VAR_0->qscale ];
VAR_0->c_dc_scale= VAR_0->c_dc_scale_tab... | [
"static void FUNC_0(MpegEncContext * VAR_0, int VAR_1)\n{",
"VAR_0->qscale += VAR_1;",
"if (VAR_0->qscale < 1)\nVAR_0->qscale = 1;",
"else if (VAR_0->qscale > 31)\nVAR_0->qscale = 31;",
"VAR_0->y_dc_scale= VAR_0->y_dc_scale_table[ VAR_0->qscale ];",
"VAR_0->c_dc_scale= VAR_0->c_dc_scale_table[ VAR_0->qsca... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
19
],
[
21
],
[
23
]
] |
19,515 | void add_boot_device_path(int32_t bootindex, DeviceState *dev,
const char *suffix)
{
FWBootEntry *node, *i;
if (bootindex < 0) {
return;
}
assert(dev != NULL || suffix != NULL);
node = g_malloc0(sizeof(FWBootEntry));
node->bootindex = bootindex;
... | false | qemu | 7f303adc4f0aaa71b196d9f983150f3ec3367b46 | void add_boot_device_path(int32_t bootindex, DeviceState *dev,
const char *suffix)
{
FWBootEntry *node, *i;
if (bootindex < 0) {
return;
}
assert(dev != NULL || suffix != NULL);
node = g_malloc0(sizeof(FWBootEntry));
node->bootindex = bootindex;
... | {
"code": [],
"line_no": []
} | void FUNC_0(int32_t VAR_0, DeviceState *VAR_1,
const char *VAR_2)
{
FWBootEntry *node, *i;
if (VAR_0 < 0) {
return;
}
assert(VAR_1 != NULL || VAR_2 != NULL);
node = g_malloc0(sizeof(FWBootEntry));
node->VAR_0 = VAR_0;
node->VAR_2 = VAR_2 ? g_... | [
"void FUNC_0(int32_t VAR_0, DeviceState *VAR_1,\nconst char *VAR_2)\n{",
"FWBootEntry *node, *i;",
"if (VAR_0 < 0) {",
"return;",
"}",
"assert(VAR_1 != NULL || VAR_2 != NULL);",
"node = g_malloc0(sizeof(FWBootEntry));",
"node->VAR_0 = VAR_0;",
"node->VAR_2 = VAR_2 ? g_strdup(VAR_2) : NULL;",
"node... | [
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
19,516 | QOSState *qtest_vboot(QOSOps *ops, const char *cmdline_fmt, va_list ap)
{
char *cmdline;
struct QOSState *qs = g_malloc(sizeof(QOSState));
cmdline = g_strdup_vprintf(cmdline_fmt, ap);
qs->qts = qtest_start(cmdline);
qs->ops = ops;
qtest_irq_intercept_in(global_qtest, "ioapic");
i... | false | qemu | 8d6ef7c9fe880c710dd55cfe7a0f076be475bede | QOSState *qtest_vboot(QOSOps *ops, const char *cmdline_fmt, va_list ap)
{
char *cmdline;
struct QOSState *qs = g_malloc(sizeof(QOSState));
cmdline = g_strdup_vprintf(cmdline_fmt, ap);
qs->qts = qtest_start(cmdline);
qs->ops = ops;
qtest_irq_intercept_in(global_qtest, "ioapic");
i... | {
"code": [],
"line_no": []
} | QOSState *FUNC_0(QOSOps *ops, const char *cmdline_fmt, va_list ap)
{
char *VAR_0;
struct QOSState *VAR_1 = g_malloc(sizeof(QOSState));
VAR_0 = g_strdup_vprintf(cmdline_fmt, ap);
VAR_1->qts = qtest_start(VAR_0);
VAR_1->ops = ops;
qtest_irq_intercept_in(global_qtest, "ioapic");
if ... | [
"QOSState *FUNC_0(QOSOps *ops, const char *cmdline_fmt, va_list ap)\n{",
"char *VAR_0;",
"struct QOSState *VAR_1 = g_malloc(sizeof(QOSState));",
"VAR_0 = g_strdup_vprintf(cmdline_fmt, ap);",
"VAR_1->qts = qtest_start(VAR_0);",
"VAR_1->ops = ops;",
"qtest_irq_intercept_in(global_qtest, \"ioapic\");",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
19,517 | static void gen_dozo(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
TCGv t2 = tcg_temp_new();
/* Start with XER OV disabled, the most likely case */
tcg_gen_movi_tl(cpu_ov, 0);
tcg_gen_brcond_tl(TCG_CO... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void gen_dozo(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
TCGv t2 = tcg_temp_new();
tcg_gen_movi_tl(cpu_ov, 0);
tcg_gen_brcond_tl(TCG_COND_GE, cpu_gpr[rB(ctx->opcode)], cpu_gpr[rA(ctx->opcod... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
int VAR_1 = gen_new_label();
int VAR_2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
TCGv t2 = tcg_temp_new();
tcg_gen_movi_tl(cpu_ov, 0);
tcg_gen_brcond_tl(TCG_COND_GE, cpu_gpr[rB(VAR_0->opcode)], cpu_gpr[rA(VA... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"int VAR_1 = gen_new_label();",
"int VAR_2 = gen_new_label();",
"TCGv t0 = tcg_temp_new();",
"TCGv t1 = tcg_temp_new();",
"TCGv t2 = tcg_temp_new();",
"tcg_gen_movi_tl(cpu_ov, 0);",
"tcg_gen_brcond_tl(TCG_COND_GE, cpu_gpr[rB(VAR_0->opcode)], cpu_gpr[rA(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
19,518 | static void qdev_prop_cpy(DeviceState *dev, Property *props, void *src)
{
if (props->info->type == PROP_TYPE_BIT) {
bool *defval = src;
bit_prop_set(dev, props, *defval);
} else {
char *dst = qdev_get_prop_ptr(dev, props);
memcpy(dst, src, props->info->size);
}
}
| false | qemu | 4f2d3d705c1ae7dce29254e2c4645c84e77a74d4 | static void qdev_prop_cpy(DeviceState *dev, Property *props, void *src)
{
if (props->info->type == PROP_TYPE_BIT) {
bool *defval = src;
bit_prop_set(dev, props, *defval);
} else {
char *dst = qdev_get_prop_ptr(dev, props);
memcpy(dst, src, props->info->size);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Property *VAR_1, void *VAR_2)
{
if (VAR_1->info->type == PROP_TYPE_BIT) {
bool *defval = VAR_2;
bit_prop_set(VAR_0, VAR_1, *defval);
} else {
char *VAR_3 = qdev_get_prop_ptr(VAR_0, VAR_1);
memcpy(VAR_3, VAR_2, VAR_1->info->size);
... | [
"static void FUNC_0(DeviceState *VAR_0, Property *VAR_1, void *VAR_2)\n{",
"if (VAR_1->info->type == PROP_TYPE_BIT) {",
"bool *defval = VAR_2;",
"bit_prop_set(VAR_0, VAR_1, *defval);",
"} else {",
"char *VAR_3 = qdev_get_prop_ptr(VAR_0, VAR_1);",
"memcpy(VAR_3, VAR_2, VAR_1->info->size);",
"}",
"}"
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
19,519 | int qemu_cpu_self(void *_env)
{
CPUState *env = _env;
QemuThread this;
qemu_thread_self(&this);
return qemu_thread_equal(&this, env->thread);
}
| false | qemu | b7680cb6078bd7294a3dd86473d3f2fdee991dd0 | int qemu_cpu_self(void *_env)
{
CPUState *env = _env;
QemuThread this;
qemu_thread_self(&this);
return qemu_thread_equal(&this, env->thread);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(void *VAR_0)
{
CPUState *env = VAR_0;
QemuThread this;
qemu_thread_self(&this);
return qemu_thread_equal(&this, env->thread);
}
| [
"int FUNC_0(void *VAR_0)\n{",
"CPUState *env = VAR_0;",
"QemuThread this;",
"qemu_thread_self(&this);",
"return qemu_thread_equal(&this, env->thread);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
]
] |
19,521 | void pstrcpy_targphys(const char *name, target_phys_addr_t dest, int buf_size,
const char *source)
{
const char *nulp;
char *ptr;
if (buf_size <= 0) return;
nulp = memchr(source, 0, buf_size);
if (nulp) {
rom_add_blob_fixed(name, source, (nulp - source) + 1, d... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | void pstrcpy_targphys(const char *name, target_phys_addr_t dest, int buf_size,
const char *source)
{
const char *nulp;
char *ptr;
if (buf_size <= 0) return;
nulp = memchr(source, 0, buf_size);
if (nulp) {
rom_add_blob_fixed(name, source, (nulp - source) + 1, d... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, target_phys_addr_t VAR_1, int VAR_2,
const char *VAR_3)
{
const char *VAR_4;
char *VAR_5;
if (VAR_2 <= 0) return;
VAR_4 = memchr(VAR_3, 0, VAR_2);
if (VAR_4) {
rom_add_blob_fixed(VAR_0, VAR_3, (VAR_4 - VAR_3) + 1, VAR_1);
} ... | [
"void FUNC_0(const char *VAR_0, target_phys_addr_t VAR_1, int VAR_2,\nconst char *VAR_3)\n{",
"const char *VAR_4;",
"char *VAR_5;",
"if (VAR_2 <= 0) return;",
"VAR_4 = memchr(VAR_3, 0, VAR_2);",
"if (VAR_4) {",
"rom_add_blob_fixed(VAR_0, VAR_3, (VAR_4 - VAR_3) + 1, VAR_1);",
"} else {",
"rom_add_blo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
19,522 | static void ioport_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIQXLDevice *d = opaque;
uint32_t io_port = addr;
qxl_async_io async = QXL_SYNC;
#if SPICE_INTERFACE_QXL_MINOR >= 1
uint32_t orig_io_port = io_port;
#endif
switch (io_p... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | static void ioport_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIQXLDevice *d = opaque;
uint32_t io_port = addr;
qxl_async_io async = QXL_SYNC;
#if SPICE_INTERFACE_QXL_MINOR >= 1
uint32_t orig_io_port = io_port;
#endif
switch (io_p... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
PCIQXLDevice *d = VAR_0;
uint32_t io_port = VAR_1;
qxl_async_io async = QXL_SYNC;
#if SPICE_INTERFACE_QXL_MINOR >= 1
uint32_t orig_io_port = io_port;
#endif
switch (io_port... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"PCIQXLDevice *d = VAR_0;",
"uint32_t io_port = VAR_1;",
"qxl_async_io async = QXL_SYNC;",
"#if SPICE_INTERFACE_QXL_MINOR >= 1\nuint32_t orig_io_port = io_port;",
"#endif\nswitch (io_port) {",
"case QXL_IO_R... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45
],
[
47,
49
],
[
51
],
[
53
],
[
55,
57
],
[
59,... |
19,524 | void timer_mod_anticipate(QEMUTimer *ts, int64_t expire_time)
{
timer_mod_anticipate_ns(ts, expire_time * ts->scale);
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void timer_mod_anticipate(QEMUTimer *ts, int64_t expire_time)
{
timer_mod_anticipate_ns(ts, expire_time * ts->scale);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)
{
timer_mod_anticipate_ns(VAR_0, VAR_1 * VAR_0->scale);
}
| [
"void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)\n{",
"timer_mod_anticipate_ns(VAR_0, VAR_1 * VAR_0->scale);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
19,526 | static void musicpal_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[32];
DeviceState *dev... | false | qemu | 738012bec4c67e697e766edadab3f522c552a04d | static void musicpal_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[32];
DeviceState *dev... | {
"code": [],
"line_no": []
} | static void FUNC_0(ram_addr_t VAR_0,
const char *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5)
{
CPUState *env;
qemu_irq *cpu_pic;
qemu_irq pic[32];
DeviceState *dev;
DeviceState *i2c_dev;
DeviceState *lc... | [
"static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{",
"CPUState *env;",
"qemu_irq *cpu_pic;",
"qemu_irq pic[32];",
"DeviceState *dev;",
"DeviceState *i2c_dev;",
"DeviceState *lcd_dev;",
"DeviceState *key_dev;",
"#... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
45
],
[
47
],
[... |
19,527 | static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req)
{
uint8_t *cdb = req->iu.srp.cmd.cdb;
uint8_t resp_data[36];
int rc, len, alen;
/* We dont do EVPD. Also check that page_code is 0 */
if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {
/* Send INVALID FIELD IN ... | false | qemu | ec8929a55512606456e364ffa80586219f67c904 | static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req)
{
uint8_t *cdb = req->iu.srp.cmd.cdb;
uint8_t resp_data[36];
int rc, len, alen;
if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {
vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0);
vscsi... | {
"code": [],
"line_no": []
} | static void FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)
{
uint8_t *cdb = VAR_1->iu.srp.cmd.cdb;
uint8_t resp_data[36];
int VAR_2, VAR_3, VAR_4;
if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {
vscsi_makeup_sense(VAR_0, VAR_1, ILLEGAL_REQUEST, 0x24, 0);
vs... | [
"static void FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)\n{",
"uint8_t *cdb = VAR_1->iu.srp.cmd.cdb;",
"uint8_t resp_data[36];",
"int VAR_2, VAR_3, VAR_4;",
"if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {",
"vscsi_makeup_sense(VAR_0, VAR_1, ILLEGAL_REQUEST, 0x24, 0);",
"vscsi_send_rsp(VAR_0, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
19,528 | static SocketAddress *unix_build_address(const char *path)
{
SocketAddress *saddr;
saddr = g_new0(SocketAddress, 1);
saddr->type = SOCKET_ADDRESS_KIND_UNIX;
saddr->u.q_unix.data = g_new0(UnixSocketAddress, 1);
saddr->u.q_unix.data->path = g_strdup(path);
return saddr;
}
| false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | static SocketAddress *unix_build_address(const char *path)
{
SocketAddress *saddr;
saddr = g_new0(SocketAddress, 1);
saddr->type = SOCKET_ADDRESS_KIND_UNIX;
saddr->u.q_unix.data = g_new0(UnixSocketAddress, 1);
saddr->u.q_unix.data->path = g_strdup(path);
return saddr;
}
| {
"code": [],
"line_no": []
} | static SocketAddress *FUNC_0(const char *path)
{
SocketAddress *saddr;
saddr = g_new0(SocketAddress, 1);
saddr->type = SOCKET_ADDRESS_KIND_UNIX;
saddr->u.q_unix.data = g_new0(UnixSocketAddress, 1);
saddr->u.q_unix.data->path = g_strdup(path);
return saddr;
}
| [
"static SocketAddress *FUNC_0(const char *path)\n{",
"SocketAddress *saddr;",
"saddr = g_new0(SocketAddress, 1);",
"saddr->type = SOCKET_ADDRESS_KIND_UNIX;",
"saddr->u.q_unix.data = g_new0(UnixSocketAddress, 1);",
"saddr->u.q_unix.data->path = g_strdup(path);",
"return saddr;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
19,529 | void net_cleanup(void)
{
#if !defined(_WIN32)
VLANState *vlan;
/* close network clients */
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
... | true | qemu | b946a1533209f61a93e34898aebb5b43154b99c3 | void net_cleanup(void)
{
#if !defined(_WIN32)
VLANState *vlan;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
TAPState *s = vc... | {
"code": [
"#if !defined(_WIN32)",
" VLANClientState *vc;",
" for(vc = vlan->first_client; vc != NULL; vc = vc->next) {",
" if (vc->fd_read == tap_receive) {",
" TAPState *s = vc->opaque;",
" if (s->down_script[0])",
" ... | void FUNC_0(void)
{
#if !defined(_WIN32)
VLANState *vlan;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
TAPState *s = vc->opa... | [
"void FUNC_0(void)\n{",
"#if !defined(_WIN32)\nVLANState *vlan;",
"for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {",
"VLANClientState *vc;",
"for(vc = vlan->first_client; vc != NULL; vc = vc->next) {",
"if (vc->fd_read == tap_receive) {",
"TAPState *s = vc->opaque;",
"if (s->down_script[0])\... | [
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
]
] |
19,531 | void qmp_transaction(TransactionActionList *dev_list, Error **errp)
{
TransactionActionList *dev_entry = dev_list;
BlkTransactionState *state, *next;
Error *local_err = NULL;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionState) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
/* drain all i/o... | true | qemu | aa3fe714f70654da47d9c2659b2d9ee295a9d930 | void qmp_transaction(TransactionActionList *dev_list, Error **errp)
{
TransactionActionList *dev_entry = dev_list;
BlkTransactionState *state, *next;
Error *local_err = NULL;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionState) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
bdrv_drain_... | {
"code": [],
"line_no": []
} | void FUNC_0(TransactionActionList *VAR_0, Error **VAR_1)
{
TransactionActionList *dev_entry = VAR_0;
BlkTransactionState *state, *next;
Error *local_err = NULL;
QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionState) snap_bdrv_states;
QSIMPLEQ_INIT(&snap_bdrv_states);
bdrv_drain_all();
... | [
"void FUNC_0(TransactionActionList *VAR_0, Error **VAR_1)\n{",
"TransactionActionList *dev_entry = VAR_0;",
"BlkTransactionState *state, *next;",
"Error *local_err = NULL;",
"QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionState) snap_bdrv_states;",
"QSIMPLEQ_INIT(&snap_bdrv_states);",
"bdrv_drain_all();"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
]... |
19,532 | BlockDriverAIOCB *bdrv_aio_read(BlockDriverState *bs, int64_t sector_num,
uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return NULL;
... | true | qemu | b5eff355460643d09e533024360fe0522f368c07 | BlockDriverAIOCB *bdrv_aio_read(BlockDriverState *bs, int64_t sector_num,
uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return NULL;
... | {
"code": [
" if (bdrv_rd_badreq_sectors(bs, sector_num, nb_sectors))",
" if (bdrv_rd_badreq_sectors(bs, sector_num, nb_sectors))",
" return NULL;",
" return NULL;"
],
"line_no": [
19,
19,
17,
17
]
} | BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,
uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return NULL;
if (... | [
"BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,\nuint8_t *buf, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{",
"BlockDriver *drv = bs->drv;",
"BlockDriverAIOCB *ret;",
"if (!drv)\nreturn NULL;",
"if (bdrv_rd_badreq_sectors(bs, sector_num, nb_sectors))\nreturn NULL;",
... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
... |
19,533 | GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count,
int64_t count, Error **errp)
{
GuestFileRead *read_data = NULL;
guchar *buf;
HANDLE fh;
bool is_ok;
DWORD read_count;
GuestFileHandle *gfh = guest_file_handle_find(handle, errp);
... | true | qemu | f3a06403b82c7f036564e4caf18b52ce6885fcfb | GuestFileRead *qmp_guest_file_read(int64_t handle, bool has_count,
int64_t count, Error **errp)
{
GuestFileRead *read_data = NULL;
guchar *buf;
HANDLE fh;
bool is_ok;
DWORD read_count;
GuestFileHandle *gfh = guest_file_handle_find(handle, errp);
... | {
"code": [
" read_data = g_malloc0(sizeof(GuestFileRead));",
" read_data = g_malloc0(sizeof(GuestFileRead));"
],
"line_no": [
59,
59
]
} | GuestFileRead *FUNC_0(int64_t handle, bool has_count,
int64_t count, Error **errp)
{
GuestFileRead *read_data = NULL;
guchar *buf;
HANDLE fh;
bool is_ok;
DWORD read_count;
GuestFileHandle *gfh = guest_file_handle_find(handle, errp);
if (!gfh) {
... | [
"GuestFileRead *FUNC_0(int64_t handle, bool has_count,\nint64_t count, Error **errp)\n{",
"GuestFileRead *read_data = NULL;",
"guchar *buf;",
"HANDLE fh;",
"bool is_ok;",
"DWORD read_count;",
"GuestFileHandle *gfh = guest_file_handle_find(handle, errp);",
"if (!gfh) {",
"return NULL;",
"}",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
19,534 | void av_set_pts_info(AVStream *s, int pts_wrap_bits,
unsigned int pts_num, unsigned int pts_den)
{
unsigned int gcd= av_gcd(pts_num, pts_den);
s->pts_wrap_bits = pts_wrap_bits;
s->time_base.num = pts_num/gcd;
s->time_base.den = pts_den/gcd;
if(gcd>1)
av_log(NUL... | false | FFmpeg | d218a86a0da7b2630828d31393d52295f0e311e9 | void av_set_pts_info(AVStream *s, int pts_wrap_bits,
unsigned int pts_num, unsigned int pts_den)
{
unsigned int gcd= av_gcd(pts_num, pts_den);
s->pts_wrap_bits = pts_wrap_bits;
s->time_base.num = pts_num/gcd;
s->time_base.den = pts_den/gcd;
if(gcd>1)
av_log(NUL... | {
"code": [],
"line_no": []
} | void FUNC_0(AVStream *VAR_0, int VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{
unsigned int VAR_4= av_gcd(VAR_2, VAR_3);
VAR_0->VAR_1 = VAR_1;
VAR_0->time_base.num = VAR_2/VAR_4;
VAR_0->time_base.den = VAR_3/VAR_4;
if(VAR_4>1)
av_log(NULL, AV_LOG_DEBUG, "st:... | [
"void FUNC_0(AVStream *VAR_0, int VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{",
"unsigned int VAR_4= av_gcd(VAR_2, VAR_3);",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->time_base.num = VAR_2/VAR_4;",
"VAR_0->time_base.den = VAR_3/VAR_4;",
"if(VAR_4>1)\nav_log(NULL, AV_LOG_DEBUG, \"st:%d removing common factor... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
]
] |
19,535 | static int msvideo1_decode_init(AVCodecContext *avctx)
{
Msvideo1Context *s = avctx->priv_data;
s->avctx = avctx;
/* figure out the colorspace based on the presence of a palette */
if (s->avctx->palctrl) {
s->mode_8bit = 1;
avctx->pix_fmt = PIX_FMT_PAL8;
} else {
... | false | FFmpeg | 32c3047cac9294bb56d23c89a40a22409db5cc70 | static int msvideo1_decode_init(AVCodecContext *avctx)
{
Msvideo1Context *s = avctx->priv_data;
s->avctx = avctx;
if (s->avctx->palctrl) {
s->mode_8bit = 1;
avctx->pix_fmt = PIX_FMT_PAL8;
} else {
s->mode_8bit = 0;
avctx->pix_fmt = PIX_FMT_RGB555;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
Msvideo1Context *s = VAR_0->priv_data;
s->VAR_0 = VAR_0;
if (s->VAR_0->palctrl) {
s->mode_8bit = 1;
VAR_0->pix_fmt = PIX_FMT_PAL8;
} else {
s->mode_8bit = 0;
VAR_0->pix_fmt = PIX_FMT_RGB555;
}
dsput... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"Msvideo1Context *s = VAR_0->priv_data;",
"s->VAR_0 = VAR_0;",
"if (s->VAR_0->palctrl) {",
"s->mode_8bit = 1;",
"VAR_0->pix_fmt = PIX_FMT_PAL8;",
"} else {",
"s->mode_8bit = 0;",
"VAR_0->pix_fmt = PIX_FMT_RGB555;",
"}",
"dsputil_init(&s->dsp, VAR_0)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
39
],
[
41
]
] |
19,536 | static void convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64],
const uint16_t *quant_matrix, int bias, int qmin, int qmax)
{
int qscale;
for(qscale=qmin; qscale<=qmax; qscale++){
int i;
if (dsp->fdct == ff_jpeg_fdct_islow
#ifdef FAAN_... | true | FFmpeg | 732ce18eab8c409c92cf89b16e2d1d8e7113d7cd | static void convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64],
const uint16_t *quant_matrix, int bias, int qmin, int qmax)
{
int qscale;
for(qscale=qmin; qscale<=qmax; qscale++){
int i;
if (dsp->fdct == ff_jpeg_fdct_islow
#ifdef FAAN_... | {
"code": [
" const uint16_t *quant_matrix, int bias, int qmin, int qmax)"
],
"line_no": [
3
]
} | static void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64], VAR_2 (*qmat16)[2][64],
const VAR_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7;
for(VAR_7=VAR_5; VAR_7<=VAR_6; VAR_7++){
int VAR_8;
if (VAR_0->fdct == ff_jpeg_fdct_islow
#ifdef FAAN_POSTSCALE
... | [
"static void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64], VAR_2 (*qmat16)[2][64],\nconst VAR_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7;",
"for(VAR_7=VAR_5; VAR_7<=VAR_6; VAR_7++){",
"int VAR_8;",
"if (VAR_0->fdct == ff_jpeg_fdct_islow\n#ifdef FAAN_POSTSCALE\n|| VAR_0->fdct == ff_faandct\n#en... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15,
17,
19,
21,
23
],
[
25
],
[
27
],
[
39,
41
],
[
43
],
[
45
],
[
47,
49,
51,
53
],
[
55
],
[
57
],
[
69,
71
],
[
73... |
19,537 | static int encode_dvd_subtitles(uint8_t *outbuf, int outbuf_size,
const AVSubtitle *h)
{
uint8_t *q, *qq;
int object_id;
int offset1[20], offset2[20];
int i, imax, color, alpha, rects = h->num_rects;
unsigned long hmax;
unsigned long hist[256];
int ... | false | FFmpeg | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 | static int encode_dvd_subtitles(uint8_t *outbuf, int outbuf_size,
const AVSubtitle *h)
{
uint8_t *q, *qq;
int object_id;
int offset1[20], offset2[20];
int i, imax, color, alpha, rects = h->num_rects;
unsigned long hmax;
unsigned long hist[256];
int ... | {
"code": [],
"line_no": []
} | static int FUNC_0(uint8_t *VAR_0, int VAR_1,
const AVSubtitle *VAR_2)
{
uint8_t *q, *qq;
int VAR_3;
int VAR_4[20], VAR_5[20];
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10 = VAR_2->num_rects;
unsigned long VAR_11;
unsigned long VAR_12[256];
int VAR... | [
"static int FUNC_0(uint8_t *VAR_0, int VAR_1,\nconst AVSubtitle *VAR_2)\n{",
"uint8_t *q, *qq;",
"int VAR_3;",
"int VAR_4[20], VAR_5[20];",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10 = VAR_2->num_rects;",
"unsigned long VAR_11;",
"unsigned long VAR_12[256];",
"int VAR_13[256];",
"if (VAR_10 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
19,540 | bool io_mem_write(MemoryRegion *mr, hwaddr addr,
uint64_t val, unsigned size)
{
return memory_region_dispatch_write(mr, addr, val, size);
}
| true | qemu | cc05c43ad942165ecc6ffd39e41991bee43af044 | bool io_mem_write(MemoryRegion *mr, hwaddr addr,
uint64_t val, unsigned size)
{
return memory_region_dispatch_write(mr, addr, val, size);
}
| {
"code": [
" return memory_region_dispatch_write(mr, addr, val, size);"
],
"line_no": [
7
]
} | bool FUNC_0(MemoryRegion *mr, hwaddr addr,
uint64_t val, unsigned size)
{
return memory_region_dispatch_write(mr, addr, val, size);
}
| [
"bool FUNC_0(MemoryRegion *mr, hwaddr addr,\nuint64_t val, unsigned size)\n{",
"return memory_region_dispatch_write(mr, addr, val, size);",
"}"
] | [
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
19,541 | static int bit_allocation(IMCContext *q, IMCChannel *chctx,
int stream_format_code, int freebits, int flag)
{
int i, j;
const float limit = -1.e20;
float highest = 0.0;
int indx;
int t1 = 0;
int t2 = 1;
float summa = 0.0;
int iacc = 0;
int summer = 0;
in... | true | FFmpeg | 87fb18c3e4fea70d264c49428a66f86baf048450 | static int bit_allocation(IMCContext *q, IMCChannel *chctx,
int stream_format_code, int freebits, int flag)
{
int i, j;
const float limit = -1.e20;
float highest = 0.0;
int indx;
int t1 = 0;
int t2 = 1;
float summa = 0.0;
int iacc = 0;
int summer = 0;
in... | {
"code": [],
"line_no": []
} | static int FUNC_0(IMCContext *VAR_0, IMCChannel *VAR_1,
int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
const float VAR_7 = -1.e20;
float VAR_8 = 0.0;
int VAR_9;
int VAR_10 = 0;
int VAR_11 = 1;
float VAR_12 = 0.0;
int VAR_13 = 0;
int VAR_14 = 0;
int... | [
"static int FUNC_0(IMCContext *VAR_0, IMCChannel *VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"const float VAR_7 = -1.e20;",
"float VAR_8 = 0.0;",
"int VAR_9;",
"int VAR_10 = 0;",
"int VAR_11 = 1;",
"float VAR_12 = 0.0;",
"int VAR_13 = 0;",
"int VAR_14 = 0;",
"int VAR_15, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
... |
19,542 | static int sox_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
unsigned header_size, comment_size;
double sample_rate, sample_rate_frac;
AVStream *st;
st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_A... | true | FFmpeg | ad5807f8aa883bee5431186dc1f24c5435d722d3 | static int sox_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
unsigned header_size, comment_size;
double sample_rate, sample_rate_frac;
AVStream *st;
st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_A... | {
"code": [
" st->codecpar->bit_rate = st->codecpar->sample_rate *"
],
"line_no": [
139
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
unsigned VAR_1, VAR_2;
double VAR_3, VAR_4;
AVStream *st;
st = avformat_new_stream(VAR_0, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
if (avio_rl32(... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"unsigned VAR_1, VAR_2;",
"double VAR_3, VAR_4;",
"AVStream *st;",
"st = avformat_new_stream(VAR_0, NULL);",
"if (!st)\nreturn AVERROR(ENOMEM);",
"st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;",
"if (avio_rl32(pb) == SO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
19,543 | static void gen_swa(DisasContext *dc, TCGv rb, TCGv ra, int32_t ofs)
{
TCGv ea, val;
TCGLabel *lab_fail, *lab_done;
ea = tcg_temp_new();
tcg_gen_addi_tl(ea, ra, ofs);
lab_fail = gen_new_label();
lab_done = gen_new_label();
tcg_gen_brcond_tl(TCG_COND_NE, ea, cpu_lock_addr, lab_fai... | true | qemu | 6597c28d618a3d16d468770b7c30a0237a8c8ea9 | static void gen_swa(DisasContext *dc, TCGv rb, TCGv ra, int32_t ofs)
{
TCGv ea, val;
TCGLabel *lab_fail, *lab_done;
ea = tcg_temp_new();
tcg_gen_addi_tl(ea, ra, ofs);
lab_fail = gen_new_label();
lab_done = gen_new_label();
tcg_gen_brcond_tl(TCG_COND_NE, ea, cpu_lock_addr, lab_fai... | {
"code": [
"static void gen_swa(DisasContext *dc, TCGv rb, TCGv ra, int32_t ofs)",
" rb, dc->mem_idx, MO_TEUL);"
],
"line_no": [
1,
31
]
} | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, int32_t VAR_3)
{
TCGv ea, val;
TCGLabel *lab_fail, *lab_done;
ea = tcg_temp_new();
tcg_gen_addi_tl(ea, VAR_2, VAR_3);
lab_fail = gen_new_label();
lab_done = gen_new_label();
tcg_gen_brcond_tl(TCG_COND_NE, ea, cpu_loc... | [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, int32_t VAR_3)\n{",
"TCGv ea, val;",
"TCGLabel *lab_fail, *lab_done;",
"ea = tcg_temp_new();",
"tcg_gen_addi_tl(ea, VAR_2, VAR_3);",
"lab_fail = gen_new_label();",
"lab_done = gen_new_label();",
"tcg_gen_brcond_tl(TCG_COND_NE, ea, cpu_lo... | [
1,
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
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
]
] |
19,544 | static uint32_t get_cmd(ESPState *s, uint8_t *buf, uint8_t buflen)
{
uint32_t dmalen;
int target;
target = s->wregs[ESP_WBUSID] & BUSID_DID;
if (s->dma) {
dmalen = s->rregs[ESP_TCLO];
dmalen |= s->rregs[ESP_TCMID] << 8;
dmalen |= s->rregs[ESP_TCHI] << 16;
if (d... | true | qemu | d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a | static uint32_t get_cmd(ESPState *s, uint8_t *buf, uint8_t buflen)
{
uint32_t dmalen;
int target;
target = s->wregs[ESP_WBUSID] & BUSID_DID;
if (s->dma) {
dmalen = s->rregs[ESP_TCLO];
dmalen |= s->rregs[ESP_TCMID] << 8;
dmalen |= s->rregs[ESP_TCHI] << 16;
if (d... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(ESPState *s, uint8_t *buf, uint8_t buflen)
{
uint32_t dmalen;
int VAR_0;
VAR_0 = s->wregs[ESP_WBUSID] & BUSID_DID;
if (s->dma) {
dmalen = s->rregs[ESP_TCLO];
dmalen |= s->rregs[ESP_TCMID] << 8;
dmalen |= s->rregs[ESP_TCHI] << 16;
if (dmal... | [
"static uint32_t FUNC_0(ESPState *s, uint8_t *buf, uint8_t buflen)\n{",
"uint32_t dmalen;",
"int VAR_0;",
"VAR_0 = s->wregs[ESP_WBUSID] & BUSID_DID;",
"if (s->dma) {",
"dmalen = s->rregs[ESP_TCLO];",
"dmalen |= s->rregs[ESP_TCMID] << 8;",
"dmalen |= s->rregs[ESP_TCHI] << 16;",
"if (dmalen > buflen) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
34
],
[
36
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
55... |
19,545 | static void migration_bitmap_sync_range(ram_addr_t start, ram_addr_t length)
{
unsigned long *bitmap;
bitmap = atomic_rcu_read(&migration_bitmap);
migration_dirty_pages +=
cpu_physical_memory_sync_dirty_bitmap(bitmap, start, length);
}
| true | qemu | 60be6340796e66b5ac8aac2d98dde5c79336a89c | static void migration_bitmap_sync_range(ram_addr_t start, ram_addr_t length)
{
unsigned long *bitmap;
bitmap = atomic_rcu_read(&migration_bitmap);
migration_dirty_pages +=
cpu_physical_memory_sync_dirty_bitmap(bitmap, start, length);
}
| {
"code": [
" bitmap = atomic_rcu_read(&migration_bitmap);",
" bitmap = atomic_rcu_read(&migration_bitmap);"
],
"line_no": [
7,
7
]
} | static void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1)
{
unsigned long *VAR_2;
VAR_2 = atomic_rcu_read(&migration_bitmap);
migration_dirty_pages +=
cpu_physical_memory_sync_dirty_bitmap(VAR_2, VAR_0, VAR_1);
}
| [
"static void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1)\n{",
"unsigned long *VAR_2;",
"VAR_2 = atomic_rcu_read(&migration_bitmap);",
"migration_dirty_pages +=\ncpu_physical_memory_sync_dirty_bitmap(VAR_2, VAR_0, VAR_1);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
]
] |
19,546 | static int decode_frame_png(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
PNGDecContext *const s = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *p;
int64_t sig;
... | true | FFmpeg | 5480e82d77770e81e897a8c217f3c7f0c13a6de1 | static int decode_frame_png(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
PNGDecContext *const s = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *p;
int64_t sig;
... | {
"code": [
" return ret;"
],
"line_no": [
99
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
PNGDecContext *const s = VAR_0->priv_data;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
AVFrame *p;
int64_t sig;
int VAR_6;... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"PNGDecContext *const s = VAR_0->priv_data;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"AVFrame *p;",
"int64_t sig;",
"int VAR_6;",
"ff_thread_release_buffer(VAR_0, &s->l... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[... |
19,548 | static int ass_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr,
AVPacket *avpkt)
{
const char *ptr = avpkt->data;
int len, size = avpkt->size;
ff_ass_init(data);
while (size > 0) {
len = ff_ass_add_rect(data, ptr, 0, 0/* FIXME: duration */,... | false | FFmpeg | 3ee8ca9b0894df3aaf5086c643283cb58ef9763d | static int ass_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr,
AVPacket *avpkt)
{
const char *ptr = avpkt->data;
int len, size = avpkt->size;
ff_ass_init(data);
while (size > 0) {
len = ff_ass_add_rect(data, ptr, 0, 0, 1);
if (len... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const char *VAR_4 = VAR_3->VAR_1;
int VAR_5, VAR_6 = VAR_3->VAR_6;
ff_ass_init(VAR_1);
while (VAR_6 > 0) {
VAR_5 = ff_ass_add_rect(VAR_1, VAR_4, 0, 0, 1);
if (VAR_... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const char *VAR_4 = VAR_3->VAR_1;",
"int VAR_5, VAR_6 = VAR_3->VAR_6;",
"ff_ass_init(VAR_1);",
"while (VAR_6 > 0) {",
"VAR_5 = ff_ass_add_rect(VAR_1, VAR_4, 0, 0, 1);",
"if (VAR_5 < 0)\nreturn VAR_5;",
"VAR_4 +... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
]
] |
19,550 | int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
const AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
... | false | FFmpeg | cdd6f059a65f28ff7a18ccf1194e9554adad1a1b | int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
const AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
... | {
"code": [],
"line_no": []
} | int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx,
AVFrame *frame,
int *got_frame_ptr,
const AVPacket *avpkt)
{
AVCodecInternal *avci = avctx->internal;
int ret = 0... | [
"int VAR_0 avcodec_decode_audio4(AVCodecContext *avctx,\nAVFrame *frame,\nint *got_frame_ptr,\nconst AVPacket *avpkt)\n{",
"AVCodecInternal *avci = avctx->internal;",
"int ret = 0;",
"*got_frame_ptr = 0;",
"if (!avpkt->data && avpkt->size) {",
"av_log(avctx, AV_LOG_ERROR, \"invalid packet: NULL data, 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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
19,551 | static int parse_dsd_diin(AVFormatContext *s, AVStream *st, uint64_t eof)
{
AVIOContext *pb = s->pb;
while (avio_tell(pb) + 12 <= eof) {
uint32_t tag = avio_rl32(pb);
uint64_t size = avio_rb64(pb);
uint64_t orig_pos = avio_tell(pb);
const char * metadata_tag = N... | true | FFmpeg | 675cfb2f86a0bd76b0784da0c7ec9a9225e37353 | static int parse_dsd_diin(AVFormatContext *s, AVStream *st, uint64_t eof)
{
AVIOContext *pb = s->pb;
while (avio_tell(pb) + 12 <= eof) {
uint32_t tag = avio_rl32(pb);
uint64_t size = avio_rb64(pb);
uint64_t orig_pos = avio_tell(pb);
const char * metadata_tag = N... | {
"code": [
" while (avio_tell(pb) + 12 <= eof) {",
" while (avio_tell(pb) + 12 <= eof) {"
],
"line_no": [
9,
9
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, uint64_t VAR_2)
{
AVIOContext *pb = VAR_0->pb;
while (avio_tell(pb) + 12 <= VAR_2) {
uint32_t tag = avio_rl32(pb);
uint64_t size = avio_rb64(pb);
uint64_t orig_pos = avio_tell(pb);
const char * VAR_3 = N... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, uint64_t VAR_2)\n{",
"AVIOContext *pb = VAR_0->pb;",
"while (avio_tell(pb) + 12 <= VAR_2) {",
"uint32_t tag = avio_rl32(pb);",
"uint64_t size = avio_rb64(pb);",
"uint64_t orig_pos = avio_tell(pb);",
"const char * VAR_3 = NULL;",
"swi... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49... |
19,552 | static unsigned tget_short(const uint8_t **p, int le)
{
unsigned v = le ? AV_RL16(*p) : AV_RB16(*p);
*p += 2;
return v;
}
| true | FFmpeg | 0a467a9b594dd67aa96bad687d05f8845b009f18 | static unsigned tget_short(const uint8_t **p, int le)
{
unsigned v = le ? AV_RL16(*p) : AV_RB16(*p);
*p += 2;
return v;
}
| {
"code": [
"static unsigned tget_short(const uint8_t **p, int le)",
" unsigned v = le ? AV_RL16(*p) : AV_RB16(*p);",
" *p += 2;",
" return v;",
" return v;"
],
"line_no": [
1,
5,
7,
9,
9
]
} | static unsigned FUNC_0(const uint8_t **VAR_0, int VAR_1)
{
unsigned VAR_2 = VAR_1 ? AV_RL16(*VAR_0) : AV_RB16(*VAR_0);
*VAR_0 += 2;
return VAR_2;
}
| [
"static unsigned FUNC_0(const uint8_t **VAR_0, int VAR_1)\n{",
"unsigned VAR_2 = VAR_1 ? AV_RL16(*VAR_0) : AV_RB16(*VAR_0);",
"*VAR_0 += 2;",
"return VAR_2;",
"}"
] | [
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
19,553 | void checkasm_check_vf_interlace(void)
{
check_lowpass_line(8);
report("lowpass_line_8");
check_lowpass_line(16);
report("lowpass_line_16");
}
| true | FFmpeg | da032427786d9db4ab21014998cb1245083d6c85 | void checkasm_check_vf_interlace(void)
{
check_lowpass_line(8);
report("lowpass_line_8");
check_lowpass_line(16);
report("lowpass_line_16");
}
| {
"code": [
"void checkasm_check_vf_interlace(void)",
" check_lowpass_line(8);",
" report(\"lowpass_line_8\");",
" check_lowpass_line(16);",
" report(\"lowpass_line_16\");"
],
"line_no": [
1,
5,
7,
11,
13
]
} | void FUNC_0(void)
{
check_lowpass_line(8);
report("lowpass_line_8");
check_lowpass_line(16);
report("lowpass_line_16");
}
| [
"void FUNC_0(void)\n{",
"check_lowpass_line(8);",
"report(\"lowpass_line_8\");",
"check_lowpass_line(16);",
"report(\"lowpass_line_16\");",
"}"
] | [
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
19,555 | static int blk_mig_save_dirty_block(QEMUFile *f, int is_async)
{
BlkMigDevState *bmds;
int ret = 1;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
ret = mig_save_device_dirty(f, bmds, is_async);
if (ret <= 0) {
break;
}
}
return ret;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int blk_mig_save_dirty_block(QEMUFile *f, int is_async)
{
BlkMigDevState *bmds;
int ret = 1;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
ret = mig_save_device_dirty(f, bmds, is_async);
if (ret <= 0) {
break;
}
}
return ret;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, int VAR_1)
{
BlkMigDevState *bmds;
int VAR_2 = 1;
QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {
VAR_2 = mig_save_device_dirty(VAR_0, bmds, VAR_1);
if (VAR_2 <= 0) {
break;
}
}
return VAR_2;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, int VAR_1)\n{",
"BlkMigDevState *bmds;",
"int VAR_2 = 1;",
"QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {",
"VAR_2 = mig_save_device_dirty(VAR_0, bmds, VAR_1);",
"if (VAR_2 <= 0) {",
"break;",
"}",
"}",
"return VAR_2;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
19,556 | static void qtrle_decode_32bpp(QtrleContext *s)
{
int stream_ptr;
int header;
int start_line;
int lines_to_change;
signed char rle_code;
int row_ptr, pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char r, g, b;
unsigned int argb;
unsigned char *rgb = s->frame.... | true | FFmpeg | 5b0e811a65737463c7e4206b68a23e19d4473519 | static void qtrle_decode_32bpp(QtrleContext *s)
{
int stream_ptr;
int header;
int start_line;
int lines_to_change;
signed char rle_code;
int row_ptr, pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char r, g, b;
unsigned int argb;
unsigned char *rgb = s->frame.... | {
"code": [
" signed char rle_code;",
" signed char rle_code;",
" signed char rle_code;"
],
"line_no": [
13,
13,
13
]
} | static void FUNC_0(QtrleContext *VAR_0)
{
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
signed char VAR_5;
int VAR_6, VAR_7;
int VAR_8 = VAR_0->frame.linesize[0];
unsigned char VAR_9, VAR_10, VAR_11;
unsigned int VAR_12;
unsigned char *VAR_13 = VAR_0->frame.data[0];
... | [
"static void FUNC_0(QtrleContext *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"signed char VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8 = VAR_0->frame.linesize[0];",
"unsigned char VAR_9, VAR_10, VAR_11;",
"unsigned int VAR_12;",
"unsigned char *VAR_13 = VAR_0->frame.data[0];... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31,
33
],
[
39
],
[
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[... |
19,558 | static void scsi_command_complete(SCSIDiskReq *r, int status, int sense)
{
DPRINTF("Command complete tag=0x%x status=%d sense=%d\n",
r->req.tag, status, sense);
scsi_req_set_status(r, status, sense);
scsi_req_complete(&r->req);
scsi_remove_request(r);
}
| true | qemu | ad2d30f79d3b0812f02c741be2189796b788d6d7 | static void scsi_command_complete(SCSIDiskReq *r, int status, int sense)
{
DPRINTF("Command complete tag=0x%x status=%d sense=%d\n",
r->req.tag, status, sense);
scsi_req_set_status(r, status, sense);
scsi_req_complete(&r->req);
scsi_remove_request(r);
}
| {
"code": [
" scsi_remove_request(r);",
" scsi_remove_request(r);"
],
"line_no": [
13,
13
]
} | static void FUNC_0(SCSIDiskReq *VAR_0, int VAR_1, int VAR_2)
{
DPRINTF("Command complete tag=0x%x VAR_1=%d VAR_2=%d\n",
VAR_0->req.tag, VAR_1, VAR_2);
scsi_req_set_status(VAR_0, VAR_1, VAR_2);
scsi_req_complete(&VAR_0->req);
scsi_remove_request(VAR_0);
}
| [
"static void FUNC_0(SCSIDiskReq *VAR_0, int VAR_1, int VAR_2)\n{",
"DPRINTF(\"Command complete tag=0x%x VAR_1=%d VAR_2=%d\\n\",\nVAR_0->req.tag, VAR_1, VAR_2);",
"scsi_req_set_status(VAR_0, VAR_1, VAR_2);",
"scsi_req_complete(&VAR_0->req);",
"scsi_remove_request(VAR_0);",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
19,559 | static int vio_make_devnode(VIOsPAPRDevice *dev,
void *fdt)
{
VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev);
int vdevice_off, node_off, ret;
char *dt_name;
vdevice_off = fdt_path_offset(fdt, "/vdevice");
if (vdevice_off < 0) {
return vdevice_... | true | qemu | ad0ebb91cd8b5fdc4a583b03645677771f420a46 | static int vio_make_devnode(VIOsPAPRDevice *dev,
void *fdt)
{
VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev);
int vdevice_off, node_off, ret;
char *dt_name;
vdevice_off = fdt_path_offset(fdt, "/vdevice");
if (vdevice_off < 0) {
return vdevice_... | {
"code": [
" if (dev->rtce_window_size) {",
" uint32_t dma_prop[] = {cpu_to_be32(dev->reg),",
" 0, 0,",
" 0, cpu_to_be32(dev->rtce_window_size)};",
" ret = fdt_setprop_cell(fdt, node_off, \"ibm,#dma-address-cells\", 2);"... | static int FUNC_0(VIOsPAPRDevice *VAR_0,
void *VAR_1)
{
VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(VAR_0);
int VAR_2, VAR_3, VAR_4;
char *VAR_5;
VAR_2 = fdt_path_offset(VAR_1, "/vdevice");
if (VAR_2 < 0) {
return VAR_2;
}
VAR_5 = vi... | [
"static int FUNC_0(VIOsPAPRDevice *VAR_0,\nvoid *VAR_1)\n{",
"VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(VAR_0);",
"int VAR_2, VAR_3, VAR_4;",
"char *VAR_5;",
"VAR_2 = fdt_path_offset(VAR_1, \"/vdevice\");",
"if (VAR_2 < 0) {",
"return VAR_2;",
"}",
"VAR_5 = vio_format_dev_name(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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
1,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
19,560 | static void uc32_cpu_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(oc);
ucc->parent_realize = dc->realize;
dc->realize = uc32_cpu_realizefn;
cc->class_by_name = uc32_cpu_class_by_name;
... | true | qemu | 4c315c27661502a0813b129e41c0bf640c34a8d6 | static void uc32_cpu_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(oc);
ucc->parent_realize = dc->realize;
dc->realize = uc32_cpu_realizefn;
cc->class_by_name = uc32_cpu_class_by_name;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
CPUClass *cc = CPU_CLASS(VAR_0);
UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(VAR_0);
ucc->parent_realize = dc->realize;
dc->realize = uc32_cpu_realizefn;
cc->class_by_name = uc32_cpu_class_by_name;
... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"CPUClass *cc = CPU_CLASS(VAR_0);",
"UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(VAR_0);",
"ucc->parent_realize = dc->realize;",
"dc->realize = uc32_cpu_realizefn;",
"cc->class_by_name = uc32_cpu_class_b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14,
15
],
[
16,
17
],
[
18,
19
],
[
20
]
] |
19,561 | static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
{
int b, i, j;
int buffer1[10];
int buffer2[10];
int *bp1 = buffer1;
int *bp2 = buffer2;
for (i=0; i < 10; i++)
buffer2[i] = coefs[i];
refl[9] = bp2[9];
if ((unsigned) bp2[9] + 0x1000 > 0x1... | true | FFmpeg | 4fdb41a84bc4cbc50600f1ba5ab6af64c69ca092 | static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
{
int b, i, j;
int buffer1[10];
int buffer2[10];
int *bp1 = buffer1;
int *bp2 = buffer2;
for (i=0; i < 10; i++)
buffer2[i] = coefs[i];
refl[9] = bp2[9];
if ((unsigned) bp2[9] + 0x1000 > 0x1... | {
"code": [
" refl[i] = bp1[i];"
],
"line_no": [
55
]
} | static int FUNC_0(int *VAR_0, const int16_t *VAR_1, RA144Context *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
int VAR_6[10];
int VAR_7[10];
int *VAR_8 = VAR_6;
int *VAR_9 = VAR_7;
for (VAR_4=0; VAR_4 < 10; VAR_4++)
VAR_7[VAR_4] = VAR_1[VAR_4];
VAR_0[9] = VAR_9[9];
if ((unsi... | [
"static int FUNC_0(int *VAR_0, const int16_t *VAR_1, RA144Context *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6[10];",
"int VAR_7[10];",
"int *VAR_8 = VAR_6;",
"int *VAR_9 = VAR_7;",
"for (VAR_4=0; VAR_4 < 10; VAR_4++)",
"VAR_7[VAR_4] = VAR_1[VAR_4];",
"VAR_0[9] = VAR_9[9];",
"if ((unsigned)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43,
45
],
[
49
],
[
51
],
[
55
],
[... |
19,562 | static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner,
const char *name,
uint64_t ram_size)
{
if (mem_path) {
#ifdef __linux__
Error *err = NULL;
memory_region_init_ram_from_file(mr, own... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner,
const char *name,
uint64_t ram_size)
{
if (mem_path) {
#ifdef __linux__
Error *err = NULL;
memory_region_init_ram_from_file(mr, own... | {
"code": [
" memory_region_init_ram(mr, owner, name, ram_size, &error_abort);",
" memory_region_init_ram(mr, owner, name, ram_size, &error_abort);"
],
"line_no": [
31,
45
]
} | static void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1,
const char *VAR_2,
uint64_t VAR_3)
{
if (mem_path) {
#ifdef __linux__
Error *err = NULL;
memory_region_init_ram_from_file(VAR_0, VAR_1, VAR_2, VAR_3, fa... | [
"static void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1,\nconst char *VAR_2,\nuint64_t VAR_3)\n{",
"if (mem_path) {",
"#ifdef __linux__\nError *err = NULL;",
"memory_region_init_ram_from_file(VAR_0, VAR_1, VAR_2, VAR_3, false,\nmem_path, &err);",
"if (err) {",
"error_report_err(err);",
"memory_region_ini... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15,
17
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
]
] |
19,563 | static void cmd646_cmd_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
CMD646BAR *cmd646bar = opaque;
if (addr != 2 || size != 1) {
return;
}
ide_cmd_write(cmd646bar->bus, addr + 2, data);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void cmd646_cmd_write(void *opaque, target_phys_addr_t addr,
uint64_t data, unsigned size)
{
CMD646BAR *cmd646bar = opaque;
if (addr != 2 || size != 1) {
return;
}
ide_cmd_write(cmd646bar->bus, addr + 2, data);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
CMD646BAR *cmd646bar = VAR_0;
if (VAR_1 != 2 || VAR_3 != 1) {
return;
}
ide_cmd_write(cmd646bar->bus, VAR_1 + 2, VAR_2);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"CMD646BAR *cmd646bar = VAR_0;",
"if (VAR_1 != 2 || VAR_3 != 1) {",
"return;",
"}",
"ide_cmd_write(cmd646bar->bus, VAR_1 + 2, VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
19,564 | static void tcg_out_movi(TCGContext *s, TCGType type,
TCGReg ret, tcg_target_long arg)
{
tcg_target_long hi, lo;
/* A 13-bit constant sign-extended to 64-bits. */
if (check_fit_tl(arg, 13)) {
tcg_out_movi_imm13(s, ret, arg);
return;
}
/* A 32-bi... | false | qemu | 425532d71d5d295cc9c649500e4969ac621ce51d | static void tcg_out_movi(TCGContext *s, TCGType type,
TCGReg ret, tcg_target_long arg)
{
tcg_target_long hi, lo;
if (check_fit_tl(arg, 13)) {
tcg_out_movi_imm13(s, ret, arg);
return;
}
if (type == TCG_TYPE_I32 || arg == (uint32_t)arg) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1,
TCGReg VAR_2, tcg_target_long VAR_3)
{
tcg_target_long hi, lo;
if (check_fit_tl(VAR_3, 13)) {
tcg_out_movi_imm13(VAR_0, VAR_2, VAR_3);
return;
}
if (VAR_1 == TCG_TYPE_I32 || VAR_3 == (ui... | [
"static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1,\nTCGReg VAR_2, tcg_target_long VAR_3)\n{",
"tcg_target_long hi, lo;",
"if (check_fit_tl(VAR_3, 13)) {",
"tcg_out_movi_imm13(VAR_0, VAR_2, VAR_3);",
"return;",
"}",
"if (VAR_1 == TCG_TYPE_I32 || VAR_3 == (uint32_t)VAR_3) {",
"tcg_out_sethi(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
] | [
[
1,
3,
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57
],
... |
19,565 | int vnc_display_open(DisplayState *ds, const char *arg)
{
struct sockaddr *addr;
struct sockaddr_in iaddr;
#ifndef _WIN32
struct sockaddr_un uaddr;
#endif
int reuse_addr, ret;
socklen_t addrlen;
const char *p;
VncState *vs = ds ? (VncState *)ds->opaque : vnc_state;
vnc_displ... | false | qemu | 7084851534c834f00652f90a9da5e4032bd22130 | int vnc_display_open(DisplayState *ds, const char *arg)
{
struct sockaddr *addr;
struct sockaddr_in iaddr;
#ifndef _WIN32
struct sockaddr_un uaddr;
#endif
int reuse_addr, ret;
socklen_t addrlen;
const char *p;
VncState *vs = ds ? (VncState *)ds->opaque : vnc_state;
vnc_displ... | {
"code": [],
"line_no": []
} | int FUNC_0(DisplayState *VAR_0, const char *VAR_1)
{
struct sockaddr *VAR_2;
struct sockaddr_in VAR_3;
#ifndef _WIN32
struct sockaddr_un VAR_4;
#endif
int VAR_5, VAR_6;
socklen_t addrlen;
const char *VAR_7;
VncState *vs = VAR_0 ? (VncState *)VAR_0->opaque : vnc_state;
vnc_di... | [
"int FUNC_0(DisplayState *VAR_0, const char *VAR_1)\n{",
"struct sockaddr *VAR_2;",
"struct sockaddr_in VAR_3;",
"#ifndef _WIN32\nstruct sockaddr_un VAR_4;",
"#endif\nint VAR_5, VAR_6;",
"socklen_t addrlen;",
"const char *VAR_7;",
"VncState *vs = VAR_0 ? (VncState *)VAR_0->opaque : vnc_state;",
"vnc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
19,566 | static uint64_t msix_table_mmio_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PCIDevice *dev = opaque;
return pci_get_long(dev->msix_table + addr);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t msix_table_mmio_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PCIDevice *dev = opaque;
return pci_get_long(dev->msix_table + addr);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PCIDevice *dev = opaque;
return pci_get_long(dev->msix_table + addr);
}
| [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"PCIDevice *dev = opaque;",
"return pci_get_long(dev->msix_table + addr);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
]
] |
19,568 | PCIBus *pci_device_root_bus(const PCIDevice *d)
{
PCIBus *bus = d->bus;
while (!pci_bus_is_root(bus)) {
d = bus->parent_dev;
assert(d != NULL);
bus = d->bus;
}
return bus;
}
| false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | PCIBus *pci_device_root_bus(const PCIDevice *d)
{
PCIBus *bus = d->bus;
while (!pci_bus_is_root(bus)) {
d = bus->parent_dev;
assert(d != NULL);
bus = d->bus;
}
return bus;
}
| {
"code": [],
"line_no": []
} | PCIBus *FUNC_0(const PCIDevice *d)
{
PCIBus *bus = d->bus;
while (!pci_bus_is_root(bus)) {
d = bus->parent_dev;
assert(d != NULL);
bus = d->bus;
}
return bus;
}
| [
"PCIBus *FUNC_0(const PCIDevice *d)\n{",
"PCIBus *bus = d->bus;",
"while (!pci_bus_is_root(bus)) {",
"d = bus->parent_dev;",
"assert(d != NULL);",
"bus = d->bus;",
"}",
"return bus;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
19,569 | static int ftp_connect_data_connection(URLContext *h)
{
int err;
char buf[CONTROL_BUFFER_SIZE], opts_format[20];
AVDictionary *opts = NULL;
FTPContext *s = h->priv_data;
if (!s->conn_data) {
/* Enter passive mode */
if ((err = ftp_passive_mode(s)) < 0) {
av_dlo... | false | FFmpeg | 247e658784ead984f96021acb9c95052ba599f26 | static int ftp_connect_data_connection(URLContext *h)
{
int err;
char buf[CONTROL_BUFFER_SIZE], opts_format[20];
AVDictionary *opts = NULL;
FTPContext *s = h->priv_data;
if (!s->conn_data) {
if ((err = ftp_passive_mode(s)) < 0) {
av_dlog(h, "Set passive mode f... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0)
{
int VAR_1;
char VAR_2[CONTROL_BUFFER_SIZE], opts_format[20];
AVDictionary *opts = NULL;
FTPContext *s = VAR_0->priv_data;
if (!s->conn_data) {
if ((VAR_1 = ftp_passive_mode(s)) < 0) {
av_dlog(VAR_0, "Set passive mode fail... | [
"static int FUNC_0(URLContext *VAR_0)\n{",
"int VAR_1;",
"char VAR_2[CONTROL_BUFFER_SIZE], opts_format[20];",
"AVDictionary *opts = NULL;",
"FTPContext *s = VAR_0->priv_data;",
"if (!s->conn_data) {",
"if ((VAR_1 = ftp_passive_mode(s)) < 0) {",
"av_dlog(VAR_0, \"Set passive mode failed\\n\");",
"ret... | [
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
51,... |
19,570 | static BlockDriver *find_protocol(const char *filename)
{
BlockDriver *drv1;
char protocol[128];
int len;
const char *p;
#ifdef _WIN32
if (is_windows_drive(filename) ||
is_windows_drive_prefix(filename))
return bdrv_find_format("raw");
#endif
p = strchr(filename, ':'... | false | qemu | 84a12e6648444f517055138a7d7f25a22d7e1029 | static BlockDriver *find_protocol(const char *filename)
{
BlockDriver *drv1;
char protocol[128];
int len;
const char *p;
#ifdef _WIN32
if (is_windows_drive(filename) ||
is_windows_drive_prefix(filename))
return bdrv_find_format("raw");
#endif
p = strchr(filename, ':'... | {
"code": [],
"line_no": []
} | static BlockDriver *FUNC_0(const char *filename)
{
BlockDriver *drv1;
char VAR_0[128];
int VAR_1;
const char *VAR_2;
#ifdef _WIN32
if (is_windows_drive(filename) ||
is_windows_drive_prefix(filename))
return bdrv_find_format("raw");
#endif
VAR_2 = strchr(filename, ':'... | [
"static BlockDriver *FUNC_0(const char *filename)\n{",
"BlockDriver *drv1;",
"char VAR_0[128];",
"int VAR_1;",
"const char *VAR_2;",
"#ifdef _WIN32\nif (is_windows_drive(filename) ||\nis_windows_drive_prefix(filename))\nreturn bdrv_find_format(\"raw\");",
"#endif\nVAR_2 = strchr(filename, ':');",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19,
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
19,572 | static void virtio_net_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIONet *n = VIRTIO_NET(dev);
NetClientState *nc;
int i;
virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size);
n->max_queues = MAX(n->nic_conf.queues, 1);
... | false | qemu | d6085e3ace20bc9b0fa625d8d79b22668710e217 | static void virtio_net_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIONet *n = VIRTIO_NET(dev);
NetClientState *nc;
int i;
virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size);
n->max_queues = MAX(n->nic_conf.queues, 1);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIONet *n = VIRTIO_NET(VAR_0);
NetClientState *nc;
int VAR_2;
virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size);
n->max_queues = MAX(n->nic_conf.queues, 1);
n->vqs =... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIONet *n = VIRTIO_NET(VAR_0);",
"NetClientState *nc;",
"int VAR_2;",
"virtio_init(vdev, \"virtio-net\", VIRTIO_ID_NET, n->config_size);",
"n->max_queues = MAX(n->nic_conf.queues, 1);",
"n->vq... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37,
39,
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
... |
19,575 | static int usbredir_handle_control(USBDevice *udev, USBPacket *p,
int request, int value, int index, int length, uint8_t *data)
{
USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev);
struct usb_redir_control_packet_header control_packet;
AsyncURB *aurb;
/* Special cases for certai... | false | qemu | 104981d52b63dc3d68f39d4442881c667f44bbb9 | static int usbredir_handle_control(USBDevice *udev, USBPacket *p,
int request, int value, int index, int length, uint8_t *data)
{
USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev);
struct usb_redir_control_packet_header control_packet;
AsyncURB *aurb;
switch (request) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,
int VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6)
{
USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, VAR_0);
struct usb_redir_control_packet_header VAR_7;
AsyncURB *aurb;
switch (VAR_2) {
case DeviceOutRequest... | [
"static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6)\n{",
"USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, VAR_0);",
"struct usb_redir_control_packet_header VAR_7;",
"AsyncURB *aurb;",
"switch (VAR_2) {",
"case DeviceOutRequest | USB_REQ_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
49
],
[
55,
57,
59
],
[
63
... |
19,577 | void helper_ldl_kernel(uint64_t t0, uint64_t t1)
{
ldl_kernel(t1, t0);
}
| false | qemu | 2374e73edafff0586cbfb67c333c5a7588f81fd5 | void helper_ldl_kernel(uint64_t t0, uint64_t t1)
{
ldl_kernel(t1, t0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)
{
ldl_kernel(VAR_1, VAR_0);
}
| [
"void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)\n{",
"ldl_kernel(VAR_1, VAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
19,578 | static void test_visitor_out_any(TestOutputVisitorData *data,
const void *unused)
{
QObject *qobj;
QInt *qint;
QBool *qbool;
QString *qstring;
QDict *qdict;
QObject *obj;
qobj = QOBJECT(qint_from_int(-42));
visit_type_any(data->ov, NULL, &qobj... | false | qemu | 0abfc4b885566eb41c3a4e1de5e2e105bdc062d9 | static void test_visitor_out_any(TestOutputVisitorData *data,
const void *unused)
{
QObject *qobj;
QInt *qint;
QBool *qbool;
QString *qstring;
QDict *qdict;
QObject *obj;
qobj = QOBJECT(qint_from_int(-42));
visit_type_any(data->ov, NULL, &qobj... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{
QObject *qobj;
QInt *qint;
QBool *qbool;
QString *qstring;
QDict *qdict;
QObject *obj;
qobj = QOBJECT(qint_from_int(-42));
visit_type_any(VAR_0->ov, NULL, &qobj, &error_abor... | [
"static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"QObject *qobj;",
"QInt *qint;",
"QBool *qbool;",
"QString *qstring;",
"QDict *qdict;",
"QObject *obj;",
"qobj = QOBJECT(qint_from_int(-42));",
"visit_type_any(VAR_0->ov, NULL, &qobj, &error_abort);",
"obj = visitor_get(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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
19,579 | static void handle_user_command(Monitor *mon, const char *cmdline)
{
QDict *qdict;
const mon_cmd_t *cmd;
qdict = qdict_new();
cmd = monitor_parse_command(mon, cmdline, qdict);
if (!cmd)
goto out;
if (monitor_handler_is_async(cmd)) {
user_async_cmd_handler(mon, cmd,... | false | qemu | cde0fc7544ca590c83f349d4dcccf375d55d6042 | static void handle_user_command(Monitor *mon, const char *cmdline)
{
QDict *qdict;
const mon_cmd_t *cmd;
qdict = qdict_new();
cmd = monitor_parse_command(mon, cmdline, qdict);
if (!cmd)
goto out;
if (monitor_handler_is_async(cmd)) {
user_async_cmd_handler(mon, cmd,... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, const char *VAR_1)
{
QDict *qdict;
const mon_cmd_t *VAR_2;
qdict = qdict_new();
VAR_2 = monitor_parse_command(VAR_0, VAR_1, qdict);
if (!VAR_2)
goto out;
if (monitor_handler_is_async(VAR_2)) {
user_async_cmd_handler(VAR_0, VAR_2, ... | [
"static void FUNC_0(Monitor *VAR_0, const char *VAR_1)\n{",
"QDict *qdict;",
"const mon_cmd_t *VAR_2;",
"qdict = qdict_new();",
"VAR_2 = monitor_parse_command(VAR_0, VAR_1, qdict);",
"if (!VAR_2)\ngoto out;",
"if (monitor_handler_is_async(VAR_2)) {",
"user_async_cmd_handler(VAR_0, VAR_2, qdict);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45,
47
],
[
49
]
] |
19,580 | static inline void RENAME(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
for(y=0; y<height; y+=2)
{
#ifdef HAVE_MMX
asm volatile(
"xorl %%eax, %%eax \... | false | FFmpeg | 4bff9ef9d0781c4de228bf1f85634d2706fc589b | static inline void RENAME(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
for(y=0; y<height; y+=2)
{
#ifdef HAVE_MMX
asm volatile(
"xorl %%eax, %%eax \... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long VAR_0;
const long VAR_1= width>>1;
for(VAR_0=0; VAR_0<height; VAR_0+=2)
{
#ifdef HAVE_MMX
asm volatile(
"xorl %%ea... | [
"static inline void FUNC_0(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nlong width, long height,\nlong lumStride, long chromStride, long srcStride)\n{",
"long VAR_0;",
"const long VAR_1= width>>1;",
"for(VAR_0=0; VAR_0<height; VAR_0+=2)",
"{",
"#ifdef HAVE_MMX\nasm volatil... | [
0,
0,
0,
0,
0,
0,
0,
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,
55,
59,
61,
63,
65,
67,
69,
71,
73,... |
19,581 | static int do_create(struct iovec *iovec)
{
int ret;
V9fsString path;
int flags, mode, uid, gid, cur_uid, cur_gid;
v9fs_string_init(&path);
ret = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sdddd",
&path, &flags, &mode, &uid, &gid);
if (ret < 0) {
goto unma... | false | qemu | 9fd2ecdc8cb2dc1a8a7c57b6c9c60bc9947b6a73 | static int do_create(struct iovec *iovec)
{
int ret;
V9fsString path;
int flags, mode, uid, gid, cur_uid, cur_gid;
v9fs_string_init(&path);
ret = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sdddd",
&path, &flags, &mode, &uid, &gid);
if (ret < 0) {
goto unma... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct VAR_0 *VAR_0)
{
int VAR_1;
V9fsString path;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
v9fs_string_init(&path);
VAR_1 = proxy_unmarshal(VAR_0, PROXY_HDR_SZ, "sdddd",
&path, &VAR_2, &VAR_3, &VAR_4, &VAR_5);
if (VAR_1 < 0) {
... | [
"static int FUNC_0(struct VAR_0 *VAR_0)\n{",
"int VAR_1;",
"V9fsString path;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"v9fs_string_init(&path);",
"VAR_1 = proxy_unmarshal(VAR_0, PROXY_HDR_SZ, \"sdddd\",\n&path, &VAR_2, &VAR_3, &VAR_4, &VAR_5);",
"if (VAR_1 < 0) {",
"goto unmarshal_err_out;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
19,582 | static unsigned int dec_movem_rm(DisasContext *dc)
{
TCGv tmp;
TCGv addr;
int i;
DIS(fprintf (logfile, "movem $r%u, [$r%u%s\n", dc->op2, dc->op1,
dc->postinc ? "+]" : "]"));
cris_flush_cc_state(dc);
tmp = tcg_temp_new(TCG_TYPE_TL);
addr = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_movi_tl(tmp, 4)... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static unsigned int dec_movem_rm(DisasContext *dc)
{
TCGv tmp;
TCGv addr;
int i;
DIS(fprintf (logfile, "movem $r%u, [$r%u%s\n", dc->op2, dc->op1,
dc->postinc ? "+]" : "]"));
cris_flush_cc_state(dc);
tmp = tcg_temp_new(TCG_TYPE_TL);
addr = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_movi_tl(tmp, 4)... | {
"code": [],
"line_no": []
} | static unsigned int FUNC_0(DisasContext *VAR_0)
{
TCGv tmp;
TCGv addr;
int VAR_1;
DIS(fprintf (logfile, "movem $r%u, [$r%u%s\n", VAR_0->op2, VAR_0->op1,
VAR_0->postinc ? "+]" : "]"));
cris_flush_cc_state(VAR_0);
tmp = tcg_temp_new(TCG_TYPE_TL);
addr = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_mo... | [
"static unsigned int FUNC_0(DisasContext *VAR_0)\n{",
"TCGv tmp;",
"TCGv addr;",
"int VAR_1;",
"DIS(fprintf (logfile, \"movem $r%u, [$r%u%s\\n\", VAR_0->op2, VAR_0->op1,\nVAR_0->postinc ? \"+]\" : \"]\"));",
"cris_flush_cc_state(VAR_0);",
"tmp = tcg_temp_new(TCG_TYPE_TL);",
"addr = tcg_temp_new(TCG_TY... | [
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
19,583 | void event_notifier_init_fd(EventNotifier *e, int fd)
{
e->fd = fd;
}
| false | qemu | d0cc2fbfa607678866475383c508be84818ceb64 | void event_notifier_init_fd(EventNotifier *e, int fd)
{
e->fd = fd;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(EventNotifier *VAR_0, int VAR_1)
{
VAR_0->VAR_1 = VAR_1;
}
| [
"void FUNC_0(EventNotifier *VAR_0, int VAR_1)\n{",
"VAR_0->VAR_1 = VAR_1;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
19,584 | static int raw_probe(const uint8_t *buf, int buf_size, const char *filename)
{
/* smallest possible positive score so that raw is used if and only if no
* other block driver works
*/
return 1;
}
| false | qemu | 2e6fc7eb1a4af1b127df5f07b8bb28af891946fa | static int raw_probe(const uint8_t *buf, int buf_size, const char *filename)
{
return 1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)
{
return 1;
}
| [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)\n{",
"return 1;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
11
],
[
13
]
] |
19,585 | void visit_type_uint64(Visitor *v, uint64_t *obj, const char *name, Error **errp)
{
int64_t value;
if (v->type_uint64) {
v->type_uint64(v, obj, name, errp);
} else {
value = *obj;
v->type_int64(v, &value, name, errp);
*obj = value;
}
}
| false | qemu | f755dea79dc81b0d6a8f6414e0672e165e28d8ba | void visit_type_uint64(Visitor *v, uint64_t *obj, const char *name, Error **errp)
{
int64_t value;
if (v->type_uint64) {
v->type_uint64(v, obj, name, errp);
} else {
value = *obj;
v->type_int64(v, &value, name, errp);
*obj = value;
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)
{
int64_t value;
if (VAR_0->type_uint64) {
VAR_0->type_uint64(VAR_0, VAR_1, VAR_2, VAR_3);
} else {
value = *VAR_1;
VAR_0->type_int64(VAR_0, &value, VAR_2, VAR_3);
*VAR_1 = value;
}
... | [
"void FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{",
"int64_t value;",
"if (VAR_0->type_uint64) {",
"VAR_0->type_uint64(VAR_0, VAR_1, VAR_2, VAR_3);",
"} else {",
"value = *VAR_1;",
"VAR_0->type_int64(VAR_0, &value, VAR_2, VAR_3);",
"*VAR_1 = value;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
19,586 | void helper_fcmpu(CPUPPCState *env, uint64_t arg1, uint64_t arg2,
uint32_t crfD)
{
CPU_DoubleU farg1, farg2;
uint32_t ret = 0;
farg1.ll = arg1;
farg2.ll = arg2;
if (unlikely(float64_is_any_nan(farg1.d) ||
float64_is_any_nan(farg2.d))) {
ret = 0... | false | qemu | 59800ec8e52bcfa271fa61fb0aae19205ef1b7f1 | void helper_fcmpu(CPUPPCState *env, uint64_t arg1, uint64_t arg2,
uint32_t crfD)
{
CPU_DoubleU farg1, farg2;
uint32_t ret = 0;
farg1.ll = arg1;
farg2.ll = arg2;
if (unlikely(float64_is_any_nan(farg1.d) ||
float64_is_any_nan(farg2.d))) {
ret = 0... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUPPCState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,
uint32_t VAR_3)
{
CPU_DoubleU farg1, farg2;
uint32_t ret = 0;
farg1.ll = VAR_1;
farg2.ll = VAR_2;
if (unlikely(float64_is_any_nan(farg1.d) ||
float64_is_any_nan(farg2.d))) {
ret = ... | [
"void FUNC_0(CPUPPCState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nuint32_t VAR_3)\n{",
"CPU_DoubleU farg1, farg2;",
"uint32_t ret = 0;",
"farg1.ll = VAR_1;",
"farg2.ll = VAR_2;",
"if (unlikely(float64_is_any_nan(farg1.d) ||\nfloat64_is_any_nan(farg2.d))) {",
"ret = 0x01UL;",
"} else if (float64_lt(far... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51
... |
19,587 | static void gen_dmtc0 (CPUState *env, DisasContext *ctx, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(env, ctx, ISA_MIPS64);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_op_mtc0_index();
rn = "Index";
... | false | qemu | 7385ac0ba2456159a52b9b2cbb5f6c71921d0c23 | static void gen_dmtc0 (CPUState *env, DisasContext *ctx, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(env, ctx, ISA_MIPS64);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_op_mtc0_index();
rn = "Index";
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3)
{
const char *VAR_4 = "invalid";
if (VAR_3 != 0)
check_insn(VAR_0, VAR_1, ISA_MIPS64);
switch (VAR_2) {
case 0:
switch (VAR_3) {
case 0:
gen_op_mtc0_index();
VAR_... | [
"static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3)\n{",
"const char *VAR_4 = \"invalid\";",
"if (VAR_3 != 0)\ncheck_insn(VAR_0, VAR_1, ISA_MIPS64);",
"switch (VAR_2) {",
"case 0:\nswitch (VAR_3) {",
"case 0:\ngen_op_mtc0_index();",
"VAR_4 = \"Index\";",
"break;",
"case ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[
49,
51
],
[
55... |
19,588 | static void scsi_write_data(SCSIRequest *req)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
SCSIDiskClass *sdc = (SCSIDiskClass *) object_get_class(OBJECT(s));
/* No data transfer may already be in progress */
assert(r->re... | false | qemu | cd723b85601baa7a0eeffbac83421357a70d81ee | static void scsi_write_data(SCSIRequest *req)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
SCSIDiskClass *sdc = (SCSIDiskClass *) object_get_class(OBJECT(s));
assert(r->req.aiocb == NULL);
scsi_req_ref(&r->r... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIRequest *VAR_0)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, VAR_0, VAR_0);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->VAR_0.dev);
SCSIDiskClass *sdc = (SCSIDiskClass *) object_get_class(OBJECT(s));
assert(r->VAR_0.aiocb == NULL);
scsi_req_ref(&r->... | [
"static void FUNC_0(SCSIRequest *VAR_0)\n{",
"SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, VAR_0, VAR_0);",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->VAR_0.dev);",
"SCSIDiskClass *sdc = (SCSIDiskClass *) object_get_class(OBJECT(s));",
"assert(r->VAR_0.aiocb == NULL);",
"scsi_req_ref(&r->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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
19,589 | static int tpm_passthrough_unix_tx_bufs(TPMPassthruState *tpm_pt,
const uint8_t *in, uint32_t in_len,
uint8_t *out, uint32_t out_len)
{
int ret;
tpm_pt->tpm_op_canceled = false;
tpm_pt->tpm_executing = true;
ret =... | false | qemu | fd859081453f94c3cbd6527289e41b7fddbf645f | static int tpm_passthrough_unix_tx_bufs(TPMPassthruState *tpm_pt,
const uint8_t *in, uint32_t in_len,
uint8_t *out, uint32_t out_len)
{
int ret;
tpm_pt->tpm_op_canceled = false;
tpm_pt->tpm_executing = true;
ret =... | {
"code": [],
"line_no": []
} | static int FUNC_0(TPMPassthruState *VAR_0,
const uint8_t *VAR_1, uint32_t VAR_2,
uint8_t *VAR_3, uint32_t VAR_4)
{
int VAR_5;
VAR_0->tpm_op_canceled = false;
VAR_0->tpm_executing = true;
VAR_5 = tpm_passthrough_un... | [
"static int FUNC_0(TPMPassthruState *VAR_0,\nconst uint8_t *VAR_1, uint32_t VAR_2,\nuint8_t *VAR_3, uint32_t VAR_4)\n{",
"int VAR_5;",
"VAR_0->tpm_op_canceled = false;",
"VAR_0->tpm_executing = true;",
"VAR_5 = tpm_passthrough_unix_write(VAR_0->tpm_fd, VAR_1, VAR_2);",
"if (VAR_5 != VAR_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
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49,
51
],
[
53,
55,
57
... |
19,590 | static int get_str(char *buf, int buf_size, const char **pp)
{
const char *p;
char *q;
int c;
q = buf;
p = *pp;
while (qemu_isspace(*p))
p++;
if (*p == '\0') {
fail:
*q = '\0';
*pp = p;
return -1;
}
if (*p == '\"') {
p++;
... | false | qemu | f5438c0500bb22c97b30987d2e0eab953416c7c5 | static int get_str(char *buf, int buf_size, const char **pp)
{
const char *p;
char *q;
int c;
q = buf;
p = *pp;
while (qemu_isspace(*p))
p++;
if (*p == '\0') {
fail:
*q = '\0';
*pp = p;
return -1;
}
if (*p == '\"') {
p++;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(char *VAR_0, int VAR_1, const char **VAR_2)
{
const char *VAR_3;
char *VAR_4;
int VAR_5;
VAR_4 = VAR_0;
VAR_3 = *VAR_2;
while (qemu_isspace(*VAR_3))
VAR_3++;
if (*VAR_3 == '\0') {
fail:
*VAR_4 = '\0';
*VAR_2 = VAR_3;
return... | [
"static int FUNC_0(char *VAR_0, int VAR_1, const char **VAR_2)\n{",
"const char *VAR_3;",
"char *VAR_4;",
"int VAR_5;",
"VAR_4 = VAR_0;",
"VAR_3 = *VAR_2;",
"while (qemu_isspace(*VAR_3))\nVAR_3++;",
"if (*VAR_3 == '\\0') {",
"fail:\n*VAR_4 = '\\0';",
"*VAR_2 = VAR_3;",
"return -1;",
"}",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
19,591 | static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
{
// For PCE based channel configurations map the channels solely based on tags.
if (!ac->oc[1].m4ac.chan_config) {
return ac->tag_che_map[type][elem_id];
}
// Allow single CPE stereo files to be signalled with mono configurat... | true | FFmpeg | a3710f1ebb30225ee8f6e88524dbdcb6b50627f4 | static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
{
if (!ac->oc[1].m4ac.chan_config) {
return ac->tag_che_map[type][elem_id];
}
if (!ac->tags_mapped && type == TYPE_CPE && ac->oc[1].m4ac.chan_config == 1) {
uint8_t layout_map[MAX_ELEM_ID*4][3];
int layou... | {
"code": [],
"line_no": []
} | static ChannelElement *FUNC_0(AACContext *ac, int type, int elem_id)
{
if (!ac->oc[1].m4ac.chan_config) {
return ac->tag_che_map[type][elem_id];
}
if (!ac->tags_mapped && type == TYPE_CPE && ac->oc[1].m4ac.chan_config == 1) {
uint8_t layout_map[MAX_ELEM_ID*4][3];
int VAR_1;... | [
"static ChannelElement *FUNC_0(AACContext *ac, int type, int elem_id)\n{",
"if (!ac->oc[1].m4ac.chan_config) {",
"return ac->tag_che_map[type][elem_id];",
"}",
"if (!ac->tags_mapped && type == TYPE_CPE && ac->oc[1].m4ac.chan_config == 1) {",
"uint8_t layout_map[MAX_ELEM_ID*4][3];",
"int VAR_1;",
"push... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
4
],
[
5
],
[
6
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12,
13,
14
],
[
15,
16,
17
],
[
18
],
[
19
],
[
21
],
[
22
],
[
23
],
[
24
],
[
25
],
[
26,
... |
19,592 | static void hpet_reset(void *opaque) {
HPETState *s = opaque;
int i;
static int count = 0;
for (i=0; i<HPET_NUM_TIMERS; i++) {
HPETTimer *timer = &s->timer[i];
hpet_del_timer(timer);
timer->tn = i;
timer->cmp = ~0ULL;
timer->config = HPET_TN_PERIODIC_C... | true | qemu | 27bb0b2d6f80f058bdb6fcc8fcdfa69b0c8a6d71 | static void hpet_reset(void *opaque) {
HPETState *s = opaque;
int i;
static int count = 0;
for (i=0; i<HPET_NUM_TIMERS; i++) {
HPETTimer *timer = &s->timer[i];
hpet_del_timer(timer);
timer->tn = i;
timer->cmp = ~0ULL;
timer->config = HPET_TN_PERIODIC_C... | {
"code": [
"static void hpet_reset(void *opaque) {",
" for (i=0; i<HPET_NUM_TIMERS; i++) {",
" if (count > 0)",
" for (i=0; i<HPET_NUM_TIMERS; i++) {",
" HPETTimer *timer = &s->timer[i];"
],
"line_no": [
1,
11,
49,
11,
13
]
} | static void FUNC_0(void *VAR_0) {
HPETState *s = VAR_0;
int VAR_1;
static int VAR_2 = 0;
for (VAR_1=0; VAR_1<HPET_NUM_TIMERS; VAR_1++) {
HPETTimer *timer = &s->timer[VAR_1];
hpet_del_timer(timer);
timer->tn = VAR_1;
timer->cmp = ~0ULL;
timer->config = ... | [
"static void FUNC_0(void *VAR_0) {",
"HPETState *s = VAR_0;",
"int VAR_1;",
"static int VAR_2 = 0;",
"for (VAR_1=0; VAR_1<HPET_NUM_TIMERS; VAR_1++) {",
"HPETTimer *timer = &s->timer[VAR_1];",
"hpet_del_timer(timer);",
"timer->tn = VAR_1;",
"timer->cmp = ~0ULL;",
"timer->config = HPET_TN_PERIODIC_... | [
1,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
... |
19,594 | int bdrv_pread(BlockDriverState *bs, int64_t offset,
void *buf1, int count1)
{
BlockDriver *drv = bs->drv;
if (!drv)
return -ENOMEDIUM;
if (!drv->bdrv_pread)
return bdrv_pread_em(bs, offset, buf1, count1);
return drv->bdrv_pread(bs, offset, buf1, count1);
} | true | qemu | 902b27d0b8d5bfa840eaf389d7cbcc28b57e3fbe | int bdrv_pread(BlockDriverState *bs, int64_t offset,
void *buf1, int count1)
{
BlockDriver *drv = bs->drv;
if (!drv)
return -ENOMEDIUM;
if (!drv->bdrv_pread)
return bdrv_pread_em(bs, offset, buf1, count1);
return drv->bdrv_pread(bs, offset, buf1, count1);
} | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
void *VAR_2, int VAR_3)
{
BlockDriver *drv = VAR_0->drv;
if (!drv)
return -ENOMEDIUM;
if (!drv->FUNC_0)
return bdrv_pread_em(VAR_0, VAR_1, VAR_2, VAR_3);
return drv->FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3);
} | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nvoid *VAR_2, int VAR_3)\n{",
"BlockDriver *drv = VAR_0->drv;",
"if (!drv)\nreturn -ENOMEDIUM;",
"if (!drv->FUNC_0)\nreturn bdrv_pread_em(VAR_0, VAR_1, VAR_2, VAR_3);",
"return drv->FUNC_0(VAR_0, VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
21
],
[
23
]
] |
19,596 | static void schedule_refresh(VideoState *is, int delay)
{
if(!delay) delay=1; //SDL seems to be buggy when the delay is 0
SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
}
| false | FFmpeg | 6c7d3ead79af2de091ff74cb2e29770882cbae99 | static void schedule_refresh(VideoState *is, int delay)
{
if(!delay) delay=1;
SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(VideoState *VAR_0, int VAR_1)
{
if(!VAR_1) VAR_1=1;
SDL_AddTimer(VAR_1, sdl_refresh_timer_cb, VAR_0);
}
| [
"static void FUNC_0(VideoState *VAR_0, int VAR_1)\n{",
"if(!VAR_1) VAR_1=1;",
"SDL_AddTimer(VAR_1, sdl_refresh_timer_cb, VAR_0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
19,597 | static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, int frame_off)
{
int val, saved_val = 0;
int tmplen = src_len;
const uint8_t *src, *source_end = source + src_len;
uint8_t *frame_end = frame + SCREEN_WIDE * SCREEN_HIGH;
uint8_t *dst, *dst_end;
int len, mask;... | false | FFmpeg | 96fadfb1588b1bf4968af371693e6484ce3050f8 | static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, int frame_off)
{
int val, saved_val = 0;
int tmplen = src_len;
const uint8_t *src, *source_end = source + src_len;
uint8_t *frame_end = frame + SCREEN_WIDE * SCREEN_HIGH;
uint8_t *dst, *dst_end;
int len, mask;... | {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3)
{
int VAR_4, VAR_5 = 0;
int VAR_6 = VAR_1;
const uint8_t *VAR_7, *source_end = VAR_0 + VAR_1;
uint8_t *frame_end = VAR_2 + SCREEN_WIDE * SCREEN_HIGH;
uint8_t *dst, *dst_end;
int VAR_8, VAR_9;
int VAR_10 = (... | [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5 = 0;",
"int VAR_6 = VAR_1;",
"const uint8_t *VAR_7, *source_end = VAR_0 + VAR_1;",
"uint8_t *frame_end = VAR_2 + SCREEN_WIDE * SCREEN_HIGH;",
"uint8_t *dst, *dst_end;",
"int VAR_8, VAR_9;",
"int VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
19,598 | static inline void encode_dc(MpegEncContext *s, int diff, int component)
{
if (((unsigned) (diff + 255)) >= 511) {
int index;
if (diff < 0) {
index = av_log2_16bit(-2 * diff);
diff--;
} else {
index = av_log2_16bit(2 * diff);
}
... | false | FFmpeg | 37b3361e755361d4ff14a2973df001c0140d98d6 | static inline void encode_dc(MpegEncContext *s, int diff, int component)
{
if (((unsigned) (diff + 255)) >= 511) {
int index;
if (diff < 0) {
index = av_log2_16bit(-2 * diff);
diff--;
} else {
index = av_log2_16bit(2 * diff);
}
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2)
{
if (((unsigned) (VAR_1 + 255)) >= 511) {
int VAR_3;
if (VAR_1 < 0) {
VAR_3 = av_log2_16bit(-2 * VAR_1);
VAR_1--;
} else {
VAR_3 = av_log2_16bit(2 * VAR_1);
}
... | [
"static inline void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2)\n{",
"if (((unsigned) (VAR_1 + 255)) >= 511) {",
"int VAR_3;",
"if (VAR_1 < 0) {",
"VAR_3 = av_log2_16bit(-2 * VAR_1);",
"VAR_1--;",
"} else {",
"VAR_3 = av_log2_16bit(2 * VAR_1);",
"}",
"if (VAR_2 == 0)\nput_bits(&VAR_0->pb,\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25,
27,
29,
31
],
[
33,
35,
37,
39,
41
],
[
43
],
[
45,
47,
49,
51
],
[
53,
55... |
19,599 | static int tgv_decode_inter(TgvContext * s, const uint8_t *buf, const uint8_t *buf_end){
unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0];
int num_mvs;
int num_blocks_raw;
int num_blocks_packed;
int vector_bits;
int i,j,x,y;
GetBitContext g... | false | FFmpeg | a390aa0ea4d537fca1cb3c188206fac927482065 | static int tgv_decode_inter(TgvContext * s, const uint8_t *buf, const uint8_t *buf_end){
unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0];
int num_mvs;
int num_blocks_raw;
int num_blocks_packed;
int vector_bits;
int i,j,x,y;
GetBitContext g... | {
"code": [],
"line_no": []
} | static int FUNC_0(TgvContext * VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2){
unsigned char *VAR_3 = VAR_0->last_frame.data[0] + VAR_0->avctx->width*VAR_0->last_frame.linesize[0];
int VAR_4;
int VAR_5;
int VAR_6;
int VAR_7;
int VAR_8,VAR_9,VAR_10,VAR_11;
GetBitContext gb;
in... | [
"static int FUNC_0(TgvContext * VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2){",
"unsigned char *VAR_3 = VAR_0->last_frame.data[0] + VAR_0->avctx->width*VAR_0->last_frame.linesize[0];",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"int VAR_8,VAR_9,VAR_10,VAR_11;",
"GetBitContext gb;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
... |
19,600 | static int hls_transform_unit(HEVCContext *s, int x0, int y0,
int xBase, int yBase, int cb_xBase, int cb_yBase,
int log2_cb_size, int log2_trafo_size,
int trafo_depth, int blk_idx,
int cbf_luma, i... | false | FFmpeg | 9a3653c9ecc4bbbbb502513a70bccd4090ed12b0 | static int hls_transform_unit(HEVCContext *s, int x0, int y0,
int xBase, int yBase, int cb_xBase, int cb_yBase,
int log2_cb_size, int log2_trafo_size,
int trafo_depth, int blk_idx,
int cbf_luma, i... | {
"code": [],
"line_no": []
} | static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6,
int VAR_7, int VAR_8,
int VAR_9, int VAR_10,
int VAR_11, int *VAR_12, int *VAR_13)
{
H... | [
"static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6,\nint VAR_7, int VAR_8,\nint VAR_9, int VAR_10,\nint VAR_11, int *VAR_12, int *VAR_13)\n{",
"HEVCLocalContext *lc = VAR_0->HEVClc;",
"const int VAR_14 = VAR_8 - VAR_0->sps->hshift[1];",
"int VAR_15;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
51
],
[
53
],
[
55,
57,... |
19,601 | av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp)
{
#if HAVE_YASM
int cpu_flags;
if (bpp != 8) return;
cpu_flags = av_get_cpu_flags();
#define init_fpel(idx1, idx2, sz, type, opt) \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][... | false | FFmpeg | c16e99e3b3c02edcf33245468731d414eab97dac | av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp)
{
#if HAVE_YASM
int cpu_flags;
if (bpp != 8) return;
cpu_flags = av_get_cpu_flags();
#define init_fpel(idx1, idx2, sz, type, opt) \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(VP9DSPContext *dsp, int bpp)
{
#if HAVE_YASM
int cpu_flags;
if (bpp != 8) return;
cpu_flags = av_get_cpu_flags();
#define init_fpel(idx1, idx2, sz, type, opt) \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \
... | [
"av_cold void FUNC_0(VP9DSPContext *dsp, int bpp)\n{",
"#if HAVE_YASM\nint cpu_flags;",
"if (bpp != 8) return;",
"cpu_flags = av_get_cpu_flags();",
"#define init_fpel(idx1, idx2, sz, type, opt) \\\ndsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \\\ndsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \\\ndsp-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
17,
19,
21,
23,
25,
29,
31
],
[
33
],
[
35,
39,
41
],
[
43
],
[
45,
49,
51
],
[
53,
57,
59
],
[
61
],
[
63,
67,
69
],
[... |
19,602 | int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest)
{
int size = av_fifo_size(f);
if (size < buf_size)
return -1;
while (buf_size > 0) {
int len = FFMIN(f->end - f->rptr, buf_size);
if(func) func(dest, f->rptr, len);
... | false | FFmpeg | 50b4468598cbc032c0ec4597df9637f71b9ef664 | int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest)
{
int size = av_fifo_size(f);
if (size < buf_size)
return -1;
while (buf_size > 0) {
int len = FFMIN(f->end - f->rptr, buf_size);
if(func) func(dest, f->rptr, len);
... | {
"code": [],
"line_no": []
} | VAR_4intVAR_4 VAR_4av_fifo_generic_readVAR_4(VAR_4AVFifoBufferVAR_4 *VAR_4VAR_0VAR_4, VAR_4intVAR_4 VAR_4VAR_1VAR_4, VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4voidVAR_4*, VAR_4voidVAR_4*, VAR_4intVAR_4), VAR_4voidVAR_4* VAR_4destVAR_4)
{
VAR_4intVAR_4 VAR_4sizeVAR_4 = VAR_4av_fifo_sizeVAR_4(VAR_4VAR_0VAR_4);
... | [
"VAR_4intVAR_4 VAR_4av_fifo_generic_readVAR_4(VAR_4AVFifoBufferVAR_4 *VAR_4VAR_0VAR_4, VAR_4intVAR_4 VAR_4VAR_1VAR_4, VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4voidVAR_4*, VAR_4voidVAR_4*, VAR_4intVAR_4), VAR_4voidVAR_4* VAR_4destVAR_4)\n{",
"VAR_4intVAR_4 VAR_4sizeVAR_4 = VAR_4av_fifo_sizeVAR_4(VAR_4VAR_0VAR_4);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
19,604 | BlockAIOCB *bdrv_aio_ioctl(BlockDriverState *bs,
unsigned long int req, void *buf,
BlockCompletionFunc *cb, void *opaque)
{
BlockAIOCBCoroutine *acb = qemu_aio_get(&bdrv_em_co_aiocb_info,
bs, cb, opaque);
Coroutine *co;
acb->need_bh = true... | true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | BlockAIOCB *bdrv_aio_ioctl(BlockDriverState *bs,
unsigned long int req, void *buf,
BlockCompletionFunc *cb, void *opaque)
{
BlockAIOCBCoroutine *acb = qemu_aio_get(&bdrv_em_co_aiocb_info,
bs, cb, opaque);
Coroutine *co;
acb->need_bh = true... | {
"code": [
" qemu_coroutine_enter(co, acb);",
" qemu_coroutine_enter(co, acb);",
" qemu_coroutine_enter(co, acb);",
" qemu_coroutine_enter(co, acb);",
" co = qemu_coroutine_create(bdrv_co_aio_ioctl_entry);",
" qemu_coroutine_enter(co, acb);"
],
"line_no": [
27,
2... | BlockAIOCB *FUNC_0(BlockDriverState *bs,
unsigned long int req, void *buf,
BlockCompletionFunc *cb, void *opaque)
{
BlockAIOCBCoroutine *acb = qemu_aio_get(&bdrv_em_co_aiocb_info,
bs, cb, opaque);
Coroutine *co;
acb->need_bh = true;
a... | [
"BlockAIOCB *FUNC_0(BlockDriverState *bs,\nunsigned long int req, void *buf,\nBlockCompletionFunc *cb, void *opaque)\n{",
"BlockAIOCBCoroutine *acb = qemu_aio_get(&bdrv_em_co_aiocb_info,\nbs, cb, opaque);",
"Coroutine *co;",
"acb->need_bh = true;",
"acb->req.error = -EINPROGRESS;",
"acb->req.req = req;",
... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
19,605 | static void gen_rfi(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
/* FIXME: This instruction doesn't exist anymore on 64-bit server
* processors compliant with arch 2.x, we should remove it there,
* but we need to fix OpenBIOS not to u... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_rfi(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_update_cfar(ctx, ctx->nip);
gen_helper_rfi... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_update_cfar(VAR_0, VAR_0->nip);
gen... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"gen_update_cfar(VAR_0, VAR_0->nip);",
"gen_helper_rfi(cpu_env);... | [
0,
1,
1,
1,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
]
] |
19,606 | int main(int argc, char **argv, char **envp)
int i;
int snapshot, linux_boot;
const char *initrd_filename;
const char *kernel_filename, *kernel_cmdline;
const char *boot_order = NULL;
const char *boot_once = NULL;
DisplayState *ds;
int cyls, heads, secs, translation;
QemuOpts *opts, ... | true | qemu | 42e5f39378c6e7a0ada563779bbb6f470f7c03ff | int main(int argc, char **argv, char **envp)
int i;
int snapshot, linux_boot;
const char *initrd_filename;
const char *kernel_filename, *kernel_cmdline;
const char *boot_order = NULL;
const char *boot_once = NULL;
DisplayState *ds;
int cyls, heads, secs, translation;
QemuOpts *opts, ... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, char **VAR_43, char **VAR_2)
int VAR_3;
int VAR_4, VAR_5;
const char *VAR_6;
const char *VAR_7, *VAR_8;
const char *VAR_9 = NULL;
const char *VAR_10 = NULL;
DisplayState *VAR_11;
int VAR_12, VAR_13, VAR_14, VAR_15;
QemuOpts *VAR_16, *machine_opts;
QemuOpts *... | [
"int FUNC_0(int VAR_0, char **VAR_43, char **VAR_2)\nint VAR_3;",
"int VAR_4, VAR_5;",
"const char *VAR_6;",
"const char *VAR_7, *VAR_8;",
"const char *VAR_9 = NULL;",
"const char *VAR_10 = NULL;",
"DisplayState *VAR_11;",
"int VAR_12, VAR_13, VAR_14, VAR_15;",
"QemuOpts *VAR_16, *machine_opts;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],... |
19,607 | static void qmp_command_info(QmpCommand *cmd, void *opaque)
{
GuestAgentInfo *info = opaque;
GuestAgentCommandInfo *cmd_info;
GuestAgentCommandInfoList *cmd_info_list;
cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));
cmd_info->name = g_strdup(qmp_command_name(cmd));
cmd_info->enable... | true | qemu | f3a06403b82c7f036564e4caf18b52ce6885fcfb | static void qmp_command_info(QmpCommand *cmd, void *opaque)
{
GuestAgentInfo *info = opaque;
GuestAgentCommandInfo *cmd_info;
GuestAgentCommandInfoList *cmd_info_list;
cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));
cmd_info->name = g_strdup(qmp_command_name(cmd));
cmd_info->enable... | {
"code": [
" cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));",
" cmd_info_list = g_malloc0(sizeof(GuestAgentCommandInfoList));"
],
"line_no": [
13,
23
]
} | static void FUNC_0(QmpCommand *VAR_0, void *VAR_1)
{
GuestAgentInfo *info = VAR_1;
GuestAgentCommandInfo *cmd_info;
GuestAgentCommandInfoList *cmd_info_list;
cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));
cmd_info->name = g_strdup(qmp_command_name(VAR_0));
cmd_info->enabled = qmp_... | [
"static void FUNC_0(QmpCommand *VAR_0, void *VAR_1)\n{",
"GuestAgentInfo *info = VAR_1;",
"GuestAgentCommandInfo *cmd_info;",
"GuestAgentCommandInfoList *cmd_info_list;",
"cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));",
"cmd_info->name = g_strdup(qmp_command_name(VAR_0));",
"cmd_info->enabled = q... | [
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
19,608 | av_cold void ff_mpeg1_encode_init(MpegEncContext *s)
{
static int done = 0;
ff_mpeg12_common_init(s);
if (!done) {
int f_code;
int mv;
int i;
done = 1;
ff_rl_init(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]);
ff_rl_init(&ff_rl_mpeg2, ff_mp... | false | FFmpeg | 5b4da8a38a5ed211df9504c85ce401c30af86b97 | av_cold void ff_mpeg1_encode_init(MpegEncContext *s)
{
static int done = 0;
ff_mpeg12_common_init(s);
if (!done) {
int f_code;
int mv;
int i;
done = 1;
ff_rl_init(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]);
ff_rl_init(&ff_rl_mpeg2, ff_mp... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(MpegEncContext *s)
{
static int VAR_0 = 0;
ff_mpeg12_common_init(s);
if (!VAR_0) {
int VAR_1;
int VAR_2;
int VAR_3;
VAR_0 = 1;
ff_rl_init(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]);
ff_rl_init(&ff_rl_mpeg2, ff_mpeg12_... | [
"av_cold void FUNC_0(MpegEncContext *s)\n{",
"static int VAR_0 = 0;",
"ff_mpeg12_common_init(s);",
"if (!VAR_0) {",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"VAR_0 = 1;",
"ff_rl_init(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]);",
"ff_rl_init(&ff_rl_mpeg2, ff_mpeg12_static_rl_table_store[1])... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
51
],
[
53
],
[
55
],
... |
19,609 | void av_opt_set_defaults(void *s)
{
av_opt_set_defaults2(s, 0, 0);
}
| false | FFmpeg | 79eff9132581af69fbbd2674337b75fad29aa306 | void av_opt_set_defaults(void *s)
{
av_opt_set_defaults2(s, 0, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0)
{
av_opt_set_defaults2(VAR_0, 0, 0);
}
| [
"void FUNC_0(void *VAR_0)\n{",
"av_opt_set_defaults2(VAR_0, 0, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
19,610 | static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
//FIXME interpolate chroma
RENAME(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStr... | true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
RENAME(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);
}
| {
"code": [
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
... | static inline void FUNC_0(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
FUNC_0(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);
}
| [
"static inline void FUNC_0(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nlong width, long height,\nlong lumStride, long chromStride, long dstStride)\n{",
"FUNC_0(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
11
],
[
13
]
] |
19,611 | PPC_OP(check_reservation)
{
if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))
env->reserve = -1;
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(check_reservation)
{
if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))
env->reserve = -1;
RETURN();
}
| {
"code": [
" RETURN();",
"PPC_OP(check_reservation)",
" RETURN();"
],
"line_no": [
9,
1,
9
]
} | FUNC_0(VAR_0)
{
if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))
env->reserve = -1;
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))\nenv->reserve = -1;",
"RETURN();",
"}"
] | [
1,
0,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
]
] |
19,613 | int ff_mjpeg_decode_sos(MJpegDecodeContext *s)
{
int len, nb_components, i, h, v, predictor, point_transform;
int index, id;
const int block_size= s->lossless ? 1 : 8;
int ilv, prev_shift;
/* XXX: verify len field validity */
len = get_bits(&s->gb, 16);
nb_components = get_bits(&s-... | true | FFmpeg | 021dccba1ff01b9005199fe8671a1887a262b430 | int ff_mjpeg_decode_sos(MJpegDecodeContext *s)
{
int len, nb_components, i, h, v, predictor, point_transform;
int index, id;
const int block_size= s->lossless ? 1 : 8;
int ilv, prev_shift;
len = get_bits(&s->gb, 16);
nb_components = get_bits(&s->gb, 8);
if (len != 6+2*nb_... | {
"code": [],
"line_no": []
} | int FUNC_0(MJpegDecodeContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8, VAR_9;
const int VAR_10= VAR_0->lossless ? 1 : 8;
int VAR_11, VAR_12;
VAR_1 = get_bits(&VAR_0->gb, 16);
VAR_2 = get_bits(&VAR_0->gb, 8);
if (VAR_1 != 6+2*VAR_2)
{
... | [
"int FUNC_0(MJpegDecodeContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"const int VAR_10= VAR_0->lossless ? 1 : 8;",
"int VAR_11, VAR_12;",
"VAR_1 = get_bits(&VAR_0->gb, 16);",
"VAR_2 = get_bits(&VAR_0->gb, 8);",
"if (VAR_1 != 6+2*VAR_2)\n{",
"av_log... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
25,
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
],
[
57
],
[
61
],
[... |
19,614 | static void adx_decode(short *out,const unsigned char *in,PREV *prev)
{
int scale = ((in[0]<<8)|(in[1]));
int i;
int s0,s1,s2,d;
// printf("%x ",scale);
in+=2;
s1 = prev->s1;
s2 = prev->s2;
for(i=0;i<16;i++) {
d = in[i];
// d>>=4; if (d&8) d-=16;
d = ((signed char)d >> 4);
s0 = (BASEVOL*... | true | FFmpeg | f19af812a32c1398d48c3550d11dbc6aafbb2bfc | static void adx_decode(short *out,const unsigned char *in,PREV *prev)
{
int scale = ((in[0]<<8)|(in[1]));
int i;
int s0,s1,s2,d;
in+=2;
s1 = prev->s1;
s2 = prev->s2;
for(i=0;i<16;i++) {
d = in[i];
d = ((signed char)d >> 4);
s0 = (BASEVOL*d*scale + SCALE1*s1 - SCALE2*s2)>>14;
CLIP(s0... | {
"code": [
"\tint i;",
"\tint s0,s1,s2,d;",
"\ts1 = prev->s1;",
"\ts2 = prev->s2;",
"\t\ts2 = s1;",
"\t\ts1 = s0;",
"\tprev->s1 = s1;",
"\tprev->s2 = s2;",
"\tfor(i=0;i<16;i++) {",
"\tint scale = ((in[0]<<8)|(in[1]));",
"\tint i;",
"\tint s0,s1,s2,d;",
"\tin+=2;",
... | static void FUNC_0(short *VAR_0,const unsigned char *VAR_1,PREV *VAR_2)
{
int VAR_3 = ((VAR_1[0]<<8)|(VAR_1[1]));
int VAR_4;
int VAR_5,VAR_6,VAR_7,VAR_8;
VAR_1+=2;
VAR_6 = VAR_2->VAR_6;
VAR_7 = VAR_2->VAR_7;
for(VAR_4=0;VAR_4<16;VAR_4++) {
VAR_8 = VAR_1[VAR_4];
VAR_8 = ((signed char)VAR_8... | [
"static void FUNC_0(short *VAR_0,const unsigned char *VAR_1,PREV *VAR_2)\n{",
"int VAR_3 = ((VAR_1[0]<<8)|(VAR_1[1]));",
"int VAR_4;",
"int VAR_5,VAR_6,VAR_7,VAR_8;",
"VAR_1+=2;",
"VAR_6 = VAR_2->VAR_6;",
"VAR_7 = VAR_2->VAR_7;",
"for(VAR_4=0;VAR_4<16;VAR_4++) {",
"VAR_8 = VAR_1[VAR_4];",
"VAR_8 =... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
19,616 | static void spapr_dr_connector_class_init(ObjectClass *k, void *data)
{
DeviceClass *dk = DEVICE_CLASS(k);
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(k);
dk->reset = reset;
dk->realize = realize;
dk->unrealize = unrealize;
drck->set_isolation_state = set_isolation_state;
... | true | qemu | c401ae8c9cd4e335dca59661f2849e7a26b5eb31 | static void spapr_dr_connector_class_init(ObjectClass *k, void *data)
{
DeviceClass *dk = DEVICE_CLASS(k);
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(k);
dk->reset = reset;
dk->realize = realize;
dk->unrealize = unrealize;
drck->set_isolation_state = set_isolation_state;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dk = DEVICE_CLASS(VAR_0);
sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(VAR_0);
dk->reset = reset;
dk->realize = realize;
dk->unrealize = unrealize;
drck->set_isolation_state = set_isolation_state;
drck->se... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dk = DEVICE_CLASS(VAR_0);",
"sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(VAR_0);",
"dk->reset = reset;",
"dk->realize = realize;",
"dk->unrealize = unrealize;",
"drck->set_isolation_state = set_isolation_state;",
"drck-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
]
] |
19,617 | int dyngen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf,
const uint8_t *searched_pc)
{
return tcg_gen_code_common(s, gen_code_buf, 1, searched_pc);
}
| true | qemu | 2ba1eeb62c29d23238b95dc7e9ade3444b49f0a1 | int dyngen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf,
const uint8_t *searched_pc)
{
return tcg_gen_code_common(s, gen_code_buf, 1, searched_pc);
}
| {
"code": [
"int dyngen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf,",
" const uint8_t *searched_pc)",
" return tcg_gen_code_common(s, gen_code_buf, 1, searched_pc);",
"int dyngen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf,"
],
"line_no": [
1,
3... | int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1,
const uint8_t *VAR_2)
{
return tcg_gen_code_common(VAR_0, VAR_1, 1, VAR_2);
}
| [
"int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2)\n{",
"return tcg_gen_code_common(VAR_0, VAR_1, 1, VAR_2);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.